@luzmo/analytics-components-kit 1.0.1-alpha.86 → 1.0.1-alpha.87
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/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-C8CbsMQf.js +139 -0
- package/components/{calculate-data-item-icon-DjW1_RI1.cjs → calculate-data-item-icon-CX4VW9Km.cjs} +1 -1
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +51 -53
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +194 -211
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +8 -8
- package/components/draggable-data-item/index.js +44 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +89 -92
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/index.cjs +20 -20
- package/components/droppable-slot/index.js +167 -181
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en--a5SfjnM.cjs +20 -0
- package/components/en-CtCctD2c.js +1483 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-CXVKFWyH.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-CbNfyZMo.js} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/{get-css-variable-DLiZYZEi.cjs → get-css-variable-CuDaWSjr.cjs} +2 -2
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-DEf4GhTH.js} +4 -4
- package/components/grid/index.cjs +46 -46
- package/components/grid/index.js +2612 -1873
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-3WsfvkZF.js} +112 -123
- package/components/index-BGb_wRRW.js +1766 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BUal0r_D.cjs +121 -0
- package/components/index-D1Y5TRsH.cjs +20 -0
- package/components/{index-PMDgRSzR.js → index-DdyZ2g5L.js} +94 -104
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +5 -5
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-B-Tz2sdI.js → set-locale-hKTMz37h.js} +7 -9
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +64 -65
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +20 -0
- package/package.json +3 -3
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-DZDqb3xu.js +0 -139
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-BPN3bG9X.js +0 -1733
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-cfj52IbK.cjs +0 -20
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js}
RENAMED
|
@@ -17,25 +17,21 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { g as
|
|
21
|
-
import { m as
|
|
22
|
-
import { g as
|
|
23
|
-
import { t as
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (Array.isArray(e) && (e == null ? void 0 : e.length) > 0) {
|
|
30
|
-
const r = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "legend");
|
|
31
|
-
if (r) {
|
|
32
|
-
const l = r == null ? void 0 : r.content;
|
|
20
|
+
import { g as r, a as p } from "./color-palettes-BqH2Fv19.js";
|
|
21
|
+
import { m as C } from "./index-t45_zv93.js";
|
|
22
|
+
import { g as b, a as d, b as V, c as h } from "./helpers-bR8Ibjqh.js";
|
|
23
|
+
import { t as o, c as t, a as u } from "./color-range-utils-BSfqtB3A.js";
|
|
24
|
+
const k = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a?.name === "legend")?.content?.length === 0 : !0, n = ({ slots: e }) => {
|
|
25
|
+
if (Array.isArray(e) && e?.length > 0) {
|
|
26
|
+
const a = e?.find((l) => l?.name === "legend");
|
|
27
|
+
if (a) {
|
|
28
|
+
const l = a?.content;
|
|
33
29
|
if (l)
|
|
34
|
-
return
|
|
30
|
+
return l?.filter((s) => s?.type === "numeric")?.length > 0;
|
|
35
31
|
}
|
|
36
32
|
}
|
|
37
33
|
return !1;
|
|
38
|
-
},
|
|
34
|
+
}, R = [
|
|
39
35
|
{
|
|
40
36
|
key: "general",
|
|
41
37
|
type: "group",
|
|
@@ -107,8 +103,8 @@ const O = ({ slots: e }) => {
|
|
|
107
103
|
"Voyager",
|
|
108
104
|
"No Tiles"
|
|
109
105
|
],
|
|
110
|
-
parseValue: (e) =>
|
|
111
|
-
toValue: (e) =>
|
|
106
|
+
parseValue: (e) => e?.name || "Basic",
|
|
107
|
+
toValue: (e) => C[e] ?? {}
|
|
112
108
|
}
|
|
113
109
|
}
|
|
114
110
|
]
|
|
@@ -134,12 +130,12 @@ const O = ({ slots: e }) => {
|
|
|
134
130
|
control: {
|
|
135
131
|
type: "color-picker",
|
|
136
132
|
label: "Route color",
|
|
137
|
-
default: ({ theme: e }) =>
|
|
138
|
-
extraLabel: ({ options: e, theme: a }) =>
|
|
139
|
-
extraLabelHasClickAction: ({ options: e, theme: a }) =>
|
|
140
|
-
extraLabelClickAction: ({ options: e, theme: a }) =>
|
|
133
|
+
default: ({ theme: e }) => h(e),
|
|
134
|
+
extraLabel: ({ options: e, theme: a }) => V(e, a, "color"),
|
|
135
|
+
extraLabelHasClickAction: ({ options: e, theme: a }) => d(e, a, "color"),
|
|
136
|
+
extraLabelClickAction: ({ options: e, theme: a }) => b(e, a, "color")
|
|
141
137
|
},
|
|
142
|
-
visibleIf:
|
|
138
|
+
visibleIf: k
|
|
143
139
|
},
|
|
144
140
|
{
|
|
145
141
|
key: "colorsClassType",
|
|
@@ -148,39 +144,32 @@ const O = ({ slots: e }) => {
|
|
|
148
144
|
label: "Colors type",
|
|
149
145
|
default: "sequential",
|
|
150
146
|
enum: ["sequential", "divergent", "manual"],
|
|
151
|
-
calculateValue: ({ options: e }) =>
|
|
152
|
-
var l;
|
|
153
|
-
if ((e == null ? void 0 : e.colorsClass) === "manual")
|
|
154
|
-
return "manual";
|
|
155
|
-
const a = t();
|
|
156
|
-
return ((l = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : l.type) ?? "sequential";
|
|
157
|
-
},
|
|
147
|
+
calculateValue: ({ options: e }) => e?.colorsClass === "manual" ? "manual" : r()?.[e?.colorsClass]?.type ?? "sequential",
|
|
158
148
|
toOptions: ({ options: e, value: a }) => {
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
let m;
|
|
149
|
+
const l = e?.colorsClass ?? "PuBu", s = e?.numberClasses ?? 5, c = o(
|
|
150
|
+
e?.manualValues?.ranges
|
|
151
|
+
), g = l === "manual" ? "manual" : l;
|
|
152
|
+
let i;
|
|
164
153
|
if (a === "manual")
|
|
165
|
-
|
|
154
|
+
i = "manual";
|
|
166
155
|
else {
|
|
167
|
-
const
|
|
168
|
-
a !==
|
|
156
|
+
const f = r()?.[e?.colorsClass]?.type;
|
|
157
|
+
a !== f && (i = p(a ?? "sequential")[0]);
|
|
169
158
|
}
|
|
170
|
-
const
|
|
171
|
-
if (a === "manual" ||
|
|
172
|
-
const y =
|
|
173
|
-
|
|
174
|
-
a === "manual" ?
|
|
175
|
-
|
|
159
|
+
const m = { ...e, colorsClass: i };
|
|
160
|
+
if (a === "manual" || e?.classification === "manual") {
|
|
161
|
+
const y = t(
|
|
162
|
+
s,
|
|
163
|
+
a === "manual" ? g : i,
|
|
164
|
+
c
|
|
176
165
|
);
|
|
177
|
-
|
|
178
|
-
...
|
|
179
|
-
ranges:
|
|
166
|
+
m.manualValues = {
|
|
167
|
+
...m.manualValues,
|
|
168
|
+
ranges: u(y)
|
|
180
169
|
};
|
|
181
170
|
} else
|
|
182
|
-
|
|
183
|
-
return
|
|
171
|
+
delete m?.manualValues?.ranges;
|
|
172
|
+
return m;
|
|
184
173
|
}
|
|
185
174
|
},
|
|
186
175
|
visibleIf: n
|
|
@@ -192,32 +181,29 @@ const O = ({ slots: e }) => {
|
|
|
192
181
|
label: "Color palette",
|
|
193
182
|
hideLabel: !0,
|
|
194
183
|
default: ({ options: e }) => {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
return C(r ?? "sequential")[0];
|
|
184
|
+
const l = r()?.[e?.colorsClass]?.type;
|
|
185
|
+
return p(l ?? "sequential")[0];
|
|
198
186
|
},
|
|
199
187
|
enum: ({ options: e }) => {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
return C(r ?? "sequential");
|
|
188
|
+
const l = r()?.[e?.colorsClass]?.type;
|
|
189
|
+
return p(l ?? "sequential");
|
|
203
190
|
},
|
|
204
191
|
toOptions: ({ options: e, value: a }) => {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
color: c == null ? void 0 : c[m.val]
|
|
192
|
+
const l = { ...e, colorsClass: a };
|
|
193
|
+
if (e?.classification === "manual") {
|
|
194
|
+
const s = r()[a]?.[`colors${e?.numberClasses ?? 5}`];
|
|
195
|
+
l.manualValues = {
|
|
196
|
+
...l.manualValues,
|
|
197
|
+
ranges: e?.manualValues?.ranges.map((c) => ({
|
|
198
|
+
...c,
|
|
199
|
+
color: s?.[c.val]
|
|
214
200
|
}))
|
|
215
201
|
};
|
|
216
202
|
}
|
|
217
|
-
return
|
|
203
|
+
return l;
|
|
218
204
|
}
|
|
219
205
|
},
|
|
220
|
-
visibleIf: ({ options: e, slots: a }) => n({ slots: a }) &&
|
|
206
|
+
visibleIf: ({ options: e, slots: a }) => n({ slots: a }) && e?.colorsClass !== "manual"
|
|
221
207
|
},
|
|
222
208
|
{
|
|
223
209
|
key: "manualValues.ranges",
|
|
@@ -230,22 +216,19 @@ const O = ({ slots: e }) => {
|
|
|
230
216
|
label: "Manual range colors",
|
|
231
217
|
hideLabel: !0
|
|
232
218
|
},
|
|
233
|
-
calculateValue: ({ options: e }) =>
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
g((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
|
|
239
|
-
);
|
|
240
|
-
},
|
|
219
|
+
calculateValue: ({ options: e }) => t(
|
|
220
|
+
e?.numberClasses,
|
|
221
|
+
e?.colorsClass,
|
|
222
|
+
o(e?.manualValues?.ranges)
|
|
223
|
+
),
|
|
241
224
|
toOptions: ({ options: e, value: a }) => ({
|
|
242
225
|
...e,
|
|
243
226
|
manualValues: {
|
|
244
227
|
...e.manualValues,
|
|
245
|
-
ranges:
|
|
228
|
+
ranges: u(a)
|
|
246
229
|
}
|
|
247
230
|
}),
|
|
248
|
-
visibleIf: ({ options: e, slots: a }) => n({ slots: a }) &&
|
|
231
|
+
visibleIf: ({ options: e, slots: a }) => n({ slots: a }) && e?.colorsClass === "manual"
|
|
249
232
|
}
|
|
250
233
|
]
|
|
251
234
|
},
|
|
@@ -261,23 +244,22 @@ const O = ({ slots: e }) => {
|
|
|
261
244
|
label: "Number of classes",
|
|
262
245
|
default: "5",
|
|
263
246
|
enum: ["3", "4", "5", "6", "7", "8", "9"],
|
|
264
|
-
parseValue: (e) =>
|
|
247
|
+
parseValue: (e) => e?.toString() ?? "5",
|
|
265
248
|
toOptions: ({ options: e, value: a }) => {
|
|
266
|
-
var l;
|
|
267
249
|
a = Number.parseInt(a, 10) ?? 5;
|
|
268
|
-
const
|
|
269
|
-
if (
|
|
270
|
-
const
|
|
250
|
+
const l = { ...e, numberClasses: a };
|
|
251
|
+
if (e?.classification === "manual" || e?.colorsClass === "manual") {
|
|
252
|
+
const s = t(
|
|
271
253
|
a,
|
|
272
|
-
e
|
|
273
|
-
|
|
254
|
+
e?.colorsClass,
|
|
255
|
+
o(e?.manualValues?.ranges)
|
|
274
256
|
);
|
|
275
|
-
|
|
276
|
-
...
|
|
277
|
-
ranges:
|
|
257
|
+
l.manualValues = {
|
|
258
|
+
...l.manualValues,
|
|
259
|
+
ranges: u(s)
|
|
278
260
|
};
|
|
279
261
|
}
|
|
280
|
-
return
|
|
262
|
+
return l;
|
|
281
263
|
}
|
|
282
264
|
},
|
|
283
265
|
visibleIf: n
|
|
@@ -290,21 +272,20 @@ const O = ({ slots: e }) => {
|
|
|
290
272
|
default: "interval",
|
|
291
273
|
enum: ["interval", "manual", "quantile", "continuous"],
|
|
292
274
|
toOptions: ({ options: e, value: a }) => {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
e
|
|
298
|
-
e
|
|
299
|
-
g((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.ranges)
|
|
275
|
+
const l = { ...e, classification: a };
|
|
276
|
+
if (a === "manual" || e?.colorsClass === "manual") {
|
|
277
|
+
const s = t(
|
|
278
|
+
e?.numberClasses,
|
|
279
|
+
e?.colorsClass,
|
|
280
|
+
o(e?.manualValues?.ranges)
|
|
300
281
|
);
|
|
301
|
-
|
|
302
|
-
...
|
|
303
|
-
ranges:
|
|
282
|
+
l.manualValues = {
|
|
283
|
+
...l.manualValues,
|
|
284
|
+
ranges: u(s)
|
|
304
285
|
};
|
|
305
286
|
} else
|
|
306
|
-
|
|
307
|
-
return
|
|
287
|
+
delete l?.manualValues?.ranges;
|
|
288
|
+
return l;
|
|
308
289
|
}
|
|
309
290
|
},
|
|
310
291
|
visibleIf: n
|
|
@@ -319,28 +300,25 @@ const O = ({ slots: e }) => {
|
|
|
319
300
|
readOnlyColorPicker: !0,
|
|
320
301
|
label: "Manual range values",
|
|
321
302
|
hideLabel: !0,
|
|
322
|
-
calculateValue: ({ options: e }) =>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
g((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
|
|
328
|
-
);
|
|
329
|
-
},
|
|
303
|
+
calculateValue: ({ options: e }) => t(
|
|
304
|
+
e?.numberClasses,
|
|
305
|
+
e?.colorsClass,
|
|
306
|
+
o(e?.manualValues?.ranges)
|
|
307
|
+
),
|
|
330
308
|
toOptions: ({ options: e, value: a }) => ({
|
|
331
309
|
...e,
|
|
332
310
|
manualValues: {
|
|
333
311
|
...e.manualValues,
|
|
334
|
-
ranges:
|
|
312
|
+
ranges: u(a)
|
|
335
313
|
}
|
|
336
314
|
})
|
|
337
315
|
},
|
|
338
|
-
visibleIf: ({ options: e, slots: a }) => n({ slots: a }) &&
|
|
316
|
+
visibleIf: ({ options: e, slots: a }) => n({ slots: a }) && e?.classification === "manual"
|
|
339
317
|
}
|
|
340
318
|
],
|
|
341
319
|
visibleIf: n
|
|
342
320
|
}
|
|
343
321
|
];
|
|
344
322
|
export {
|
|
345
|
-
|
|
323
|
+
R as default
|
|
346
324
|
};
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./helpers-9I0oLoUB.cjs"),t=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"alignment",control:{type:"picker",label:"Node alignment",default:"justify",enum:["justify","left","right","center"]}}]},{key:"nodes",type:"group",open:!0,children:[{key:"nodeSorting",control:{type:"picker",label:"Sorting",default:"default",enum:["default","asc","desc"]}},{key:"labels.display",control:{type:"switch",label:"Show node label",default:!0}},{key:"labels.value",control:{type:"switch",label:"Show node value",default:!1}},{key:"colors.byCategory",control:{type:"switch",label:"Use node category color",default:!0}},{key:"colors.nodeColor",control:{type:"color-picker",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:o})=>l.getThemeMainColorResetLabel(e,o,"colors.nodeColor"),extraLabelHasClickAction:({options:e,theme:o})=>l.getThemeMainColorExtraLabelHasClickAction(e,o,"colors.nodeColor"),extraLabelClickAction:({options:e,theme:o})=>l.getThemeMainColorExtraLabelClickAction(e,o,"colors.nodeColor")},visibleIf:({options:e})=>e?.colors?.byCategory===!1}]},{key:"links",type:"group",open:!0,children:[{key:"colors.linkColor",control:{type:"picker",label:"Color",default:"gradient",enum:["gradient","source","target","none"]}}]}];exports.default=t;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { g as
|
|
20
|
+
import { g as l, a as t, b as r, c as a } from "./helpers-bR8Ibjqh.js";
|
|
21
21
|
const c = [
|
|
22
22
|
{
|
|
23
23
|
key: "general",
|
|
@@ -86,22 +86,19 @@ const c = [
|
|
|
86
86
|
control: {
|
|
87
87
|
type: "color-picker",
|
|
88
88
|
default: ({ theme: e }) => a(e),
|
|
89
|
-
extraLabel: ({ options: e, theme:
|
|
90
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
89
|
+
extraLabel: ({ options: e, theme: o }) => r(e, o, "colors.nodeColor"),
|
|
90
|
+
extraLabelHasClickAction: ({ options: e, theme: o }) => t(
|
|
91
91
|
e,
|
|
92
|
-
|
|
92
|
+
o,
|
|
93
93
|
"colors.nodeColor"
|
|
94
94
|
),
|
|
95
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
95
|
+
extraLabelClickAction: ({ options: e, theme: o }) => l(
|
|
96
96
|
e,
|
|
97
|
-
|
|
97
|
+
o,
|
|
98
98
|
"colors.nodeColor"
|
|
99
99
|
)
|
|
100
100
|
},
|
|
101
|
-
visibleIf: ({ options: e }) =>
|
|
102
|
-
var l;
|
|
103
|
-
return ((l = e == null ? void 0 : e.colors) == null ? void 0 : l.byCategory) === !1;
|
|
104
|
-
}
|
|
101
|
+
visibleIf: ({ options: e }) => e?.colors?.byCategory === !1
|
|
105
102
|
}
|
|
106
103
|
]
|
|
107
104
|
},
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./helpers-9I0oLoUB.cjs"),t=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(l=>l?.name==="color")?.content?.length>0:!1,o=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(l=>l?.name==="color")?.content?.length===0:!0,r=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:t},{key:"color",control:{type:"color-picker",label:"Color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>i.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeMainColorExtraLabelClickAction(e,l,"color")},visibleIf:o}]},{key:"axes",type:"group",open:!1,children:[{key:"axis.x.color",control:{type:"color-picker",label:"X-axis color",default:({theme:e})=>i.getThemeAxisColor(e),extraLabel:({options:e,theme:l})=>i.getThemeAxisColorResetLabel(e,l,"axis.x.color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeAxisColorExtraLabelHasClickAction(e,l,"axis.x.color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeAxisColorExtraLabelClickAction(e,l,"axis.x.color")}},{key:"xAxisLabels",type:"group",label:"X-axis label",collapsible:!0,open:!0,children:[{key:"axislabels.x.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.x.position",control:{type:"picker",label:"Position",default:"center",enum:["left","center","right"]},visibleIf:({options:e})=>e?.axislabels?.x?.enabled===!0}]},{key:"xAxisTicks",type:"group",label:"X-axis ticks",collapsible:!0,open:!0,children:[{key:"axis.x.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide","gridlines"],toOptions:({options:e,value:l})=>({...e,axis:{...e?.axis,x:{...e?.axis?.x,ticksMode:l}},grid:{...e?.grid,x:{...e?.grid?.x,enabled:l==="gridlines"}}})}},{key:"grid.x.style",control:{type:"picker",label:"Gridline style",default:"solid",enum:["solid","dotted","dashed"]},visibleIf:({options:e})=>e?.axis?.x?.ticksMode==="gridlines"&&e?.grid?.x?.enabled===!0},{key:"grid.x.opacity",control:{type:"slider",label:"Gridline opacity",default:.3,min:.1,max:1,step:.1},visibleIf:({options:e})=>e?.axis?.x?.ticksMode==="gridlines"&&e?.grid?.x?.enabled===!0}]},{type:"divider"},{key:"axis.y.color",control:{type:"color-picker",label:"Y-axis color",default:({theme:e})=>i.getThemeAxisColor(e),extraLabel:({options:e,theme:l})=>i.getThemeAxisColorResetLabel(e,l,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:l})=>i.getThemeAxisColorExtraLabelHasClickAction(e,l,"axis.y.color"),extraLabelClickAction:({options:e,theme:l})=>i.getThemeBorderColorExtraLabelClickAction(e,l,"axis.y.color")}},{key:"yAxisLabels",type:"group",label:"Y-axis label",collapsible:!0,open:!0,children:[{key:"axislabels.y.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.y.position",control:{type:"picker",label:"Position",default:"middle",enum:["top","middle","bottom"]},visibleIf:({options:e})=>e?.axislabels?.y?.enabled===!0}]},{key:"yAxisTicks",type:"group",label:"Y-axis ticks",collapsible:!0,open:!0,children:[{key:"axis.y.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide","gridlines"],toOptions:({options:e,value:l})=>({...e,axis:{...e?.axis,y:{...e?.axis?.y,ticksMode:l}},grid:{...e?.grid,y:{...e?.grid?.y,enabled:l==="gridlines"}}})}},{key:"grid.y.style",control:{type:"picker",label:"Gridline style",default:"solid",enum:["solid","dotted","dashed"]},visibleIf:({options:e})=>e?.axis?.y?.ticksMode==="gridlines"&&e?.grid?.y?.enabled===!0},{key:"grid.y.opacity",control:{type:"slider",label:"Gridline opacity",default:.3,min:.1,max:1,step:.1},visibleIf:({options:e})=>e?.axis?.y?.ticksMode==="gridlines"&&e?.grid?.y?.enabled===!0}]}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:t}];exports.default=r;
|
|
@@ -17,14 +17,8 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { g as
|
|
21
|
-
const
|
|
22
|
-
var l, a;
|
|
23
|
-
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (l = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : a.length) > 0 : !1;
|
|
24
|
-
}, h = ({ slots: e }) => {
|
|
25
|
-
var l, a;
|
|
26
|
-
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (l = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : a.length) === 0 : !0;
|
|
27
|
-
}, n = [
|
|
20
|
+
import { g as r, a as s, b as c, c as d, i as n, j as i, k as t, l as a, d as y } from "./helpers-bR8Ibjqh.js";
|
|
21
|
+
const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((l) => l?.name === "color")?.content?.length > 0 : !1, x = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((l) => l?.name === "color")?.content?.length === 0 : !0, p = [
|
|
28
22
|
{
|
|
29
23
|
key: "general",
|
|
30
24
|
type: "group",
|
|
@@ -45,19 +39,19 @@ const y = ({ slots: e }) => {
|
|
|
45
39
|
label: "Legend",
|
|
46
40
|
default: !0
|
|
47
41
|
},
|
|
48
|
-
visibleIf:
|
|
42
|
+
visibleIf: o
|
|
49
43
|
},
|
|
50
44
|
{
|
|
51
45
|
key: "color",
|
|
52
46
|
control: {
|
|
53
47
|
type: "color-picker",
|
|
54
48
|
label: "Color",
|
|
55
|
-
default: ({ theme: e }) =>
|
|
56
|
-
extraLabel: ({ options: e, theme: l }) =>
|
|
57
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) =>
|
|
58
|
-
extraLabelClickAction: ({ options: e, theme: l }) =>
|
|
49
|
+
default: ({ theme: e }) => d(e),
|
|
50
|
+
extraLabel: ({ options: e, theme: l }) => c(e, l, "color"),
|
|
51
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => s(e, l, "color"),
|
|
52
|
+
extraLabelClickAction: ({ options: e, theme: l }) => r(e, l, "color")
|
|
59
53
|
},
|
|
60
|
-
visibleIf:
|
|
54
|
+
visibleIf: x
|
|
61
55
|
}
|
|
62
56
|
]
|
|
63
57
|
},
|
|
@@ -79,14 +73,14 @@ const y = ({ slots: e }) => {
|
|
|
79
73
|
control: {
|
|
80
74
|
type: "color-picker",
|
|
81
75
|
label: "X-axis color",
|
|
82
|
-
default: ({ theme: e }) =>
|
|
83
|
-
extraLabel: ({ options: e, theme: l }) =>
|
|
84
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) =>
|
|
76
|
+
default: ({ theme: e }) => a(e),
|
|
77
|
+
extraLabel: ({ options: e, theme: l }) => t(e, l, "axis.x.color"),
|
|
78
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => i(
|
|
85
79
|
e,
|
|
86
80
|
l,
|
|
87
81
|
"axis.x.color"
|
|
88
82
|
),
|
|
89
|
-
extraLabelClickAction: ({ options: e, theme: l }) =>
|
|
83
|
+
extraLabelClickAction: ({ options: e, theme: l }) => n(
|
|
90
84
|
e,
|
|
91
85
|
l,
|
|
92
86
|
"axis.x.color"
|
|
@@ -117,10 +111,7 @@ const y = ({ slots: e }) => {
|
|
|
117
111
|
default: "center",
|
|
118
112
|
enum: ["left", "center", "right"]
|
|
119
113
|
},
|
|
120
|
-
visibleIf: ({ options: e }) =>
|
|
121
|
-
var l, a;
|
|
122
|
-
return ((a = (l = e == null ? void 0 : e.axislabels) == null ? void 0 : l.x) == null ? void 0 : a.enabled) === !0;
|
|
123
|
-
}
|
|
114
|
+
visibleIf: ({ options: e }) => e?.axislabels?.x?.enabled === !0
|
|
124
115
|
}
|
|
125
116
|
]
|
|
126
117
|
},
|
|
@@ -138,26 +129,23 @@ const y = ({ slots: e }) => {
|
|
|
138
129
|
label: "Display mode",
|
|
139
130
|
default: "ticks",
|
|
140
131
|
enum: ["ticks", "hide", "gridlines"],
|
|
141
|
-
toOptions: ({ options: e, value: l }) => {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
...e,
|
|
145
|
-
|
|
146
|
-
...e
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
...e
|
|
154
|
-
|
|
155
|
-
...(r = e == null ? void 0 : e.grid) == null ? void 0 : r.x,
|
|
156
|
-
enabled: l === "gridlines"
|
|
157
|
-
}
|
|
132
|
+
toOptions: ({ options: e, value: l }) => ({
|
|
133
|
+
...e,
|
|
134
|
+
axis: {
|
|
135
|
+
...e?.axis,
|
|
136
|
+
x: {
|
|
137
|
+
...e?.axis?.x,
|
|
138
|
+
ticksMode: l
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
grid: {
|
|
142
|
+
...e?.grid,
|
|
143
|
+
x: {
|
|
144
|
+
...e?.grid?.x,
|
|
145
|
+
enabled: l === "gridlines"
|
|
158
146
|
}
|
|
159
|
-
}
|
|
160
|
-
}
|
|
147
|
+
}
|
|
148
|
+
})
|
|
161
149
|
}
|
|
162
150
|
},
|
|
163
151
|
{
|
|
@@ -168,10 +156,7 @@ const y = ({ slots: e }) => {
|
|
|
168
156
|
default: "solid",
|
|
169
157
|
enum: ["solid", "dotted", "dashed"]
|
|
170
158
|
},
|
|
171
|
-
visibleIf: ({ options: e }) =>
|
|
172
|
-
var l, a, r, i;
|
|
173
|
-
return ((a = (l = e == null ? void 0 : e.axis) == null ? void 0 : l.x) == null ? void 0 : a.ticksMode) === "gridlines" && ((i = (r = e == null ? void 0 : e.grid) == null ? void 0 : r.x) == null ? void 0 : i.enabled) === !0;
|
|
174
|
-
}
|
|
159
|
+
visibleIf: ({ options: e }) => e?.axis?.x?.ticksMode === "gridlines" && e?.grid?.x?.enabled === !0
|
|
175
160
|
},
|
|
176
161
|
{
|
|
177
162
|
key: "grid.x.opacity",
|
|
@@ -183,10 +168,7 @@ const y = ({ slots: e }) => {
|
|
|
183
168
|
max: 1,
|
|
184
169
|
step: 0.1
|
|
185
170
|
},
|
|
186
|
-
visibleIf: ({ options: e }) =>
|
|
187
|
-
var l, a, r, i;
|
|
188
|
-
return ((a = (l = e == null ? void 0 : e.axis) == null ? void 0 : l.x) == null ? void 0 : a.ticksMode) === "gridlines" && ((i = (r = e == null ? void 0 : e.grid) == null ? void 0 : r.x) == null ? void 0 : i.enabled) === !0;
|
|
189
|
-
}
|
|
171
|
+
visibleIf: ({ options: e }) => e?.axis?.x?.ticksMode === "gridlines" && e?.grid?.x?.enabled === !0
|
|
190
172
|
}
|
|
191
173
|
]
|
|
192
174
|
},
|
|
@@ -206,14 +188,14 @@ const y = ({ slots: e }) => {
|
|
|
206
188
|
control: {
|
|
207
189
|
type: "color-picker",
|
|
208
190
|
label: "Y-axis color",
|
|
209
|
-
default: ({ theme: e }) =>
|
|
210
|
-
extraLabel: ({ options: e, theme: l }) =>
|
|
211
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) =>
|
|
191
|
+
default: ({ theme: e }) => a(e),
|
|
192
|
+
extraLabel: ({ options: e, theme: l }) => t(e, l, "axis.y.color"),
|
|
193
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => i(
|
|
212
194
|
e,
|
|
213
195
|
l,
|
|
214
196
|
"axis.y.color"
|
|
215
197
|
),
|
|
216
|
-
extraLabelClickAction: ({ options: e, theme: l }) =>
|
|
198
|
+
extraLabelClickAction: ({ options: e, theme: l }) => y(
|
|
217
199
|
e,
|
|
218
200
|
l,
|
|
219
201
|
"axis.y.color"
|
|
@@ -244,10 +226,7 @@ const y = ({ slots: e }) => {
|
|
|
244
226
|
default: "middle",
|
|
245
227
|
enum: ["top", "middle", "bottom"]
|
|
246
228
|
},
|
|
247
|
-
visibleIf: ({ options: e }) =>
|
|
248
|
-
var l, a;
|
|
249
|
-
return ((a = (l = e == null ? void 0 : e.axislabels) == null ? void 0 : l.y) == null ? void 0 : a.enabled) === !0;
|
|
250
|
-
}
|
|
229
|
+
visibleIf: ({ options: e }) => e?.axislabels?.y?.enabled === !0
|
|
251
230
|
}
|
|
252
231
|
]
|
|
253
232
|
},
|
|
@@ -265,26 +244,23 @@ const y = ({ slots: e }) => {
|
|
|
265
244
|
label: "Display mode",
|
|
266
245
|
default: "ticks",
|
|
267
246
|
enum: ["ticks", "hide", "gridlines"],
|
|
268
|
-
toOptions: ({ options: e, value: l }) => {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
...e,
|
|
272
|
-
|
|
273
|
-
...e
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
...e
|
|
281
|
-
|
|
282
|
-
...(r = e == null ? void 0 : e.grid) == null ? void 0 : r.y,
|
|
283
|
-
enabled: l === "gridlines"
|
|
284
|
-
}
|
|
247
|
+
toOptions: ({ options: e, value: l }) => ({
|
|
248
|
+
...e,
|
|
249
|
+
axis: {
|
|
250
|
+
...e?.axis,
|
|
251
|
+
y: {
|
|
252
|
+
...e?.axis?.y,
|
|
253
|
+
ticksMode: l
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
grid: {
|
|
257
|
+
...e?.grid,
|
|
258
|
+
y: {
|
|
259
|
+
...e?.grid?.y,
|
|
260
|
+
enabled: l === "gridlines"
|
|
285
261
|
}
|
|
286
|
-
}
|
|
287
|
-
}
|
|
262
|
+
}
|
|
263
|
+
})
|
|
288
264
|
}
|
|
289
265
|
},
|
|
290
266
|
{
|
|
@@ -295,10 +271,7 @@ const y = ({ slots: e }) => {
|
|
|
295
271
|
default: "solid",
|
|
296
272
|
enum: ["solid", "dotted", "dashed"]
|
|
297
273
|
},
|
|
298
|
-
visibleIf: ({ options: e }) =>
|
|
299
|
-
var l, a, r, i;
|
|
300
|
-
return ((a = (l = e == null ? void 0 : e.axis) == null ? void 0 : l.y) == null ? void 0 : a.ticksMode) === "gridlines" && ((i = (r = e == null ? void 0 : e.grid) == null ? void 0 : r.y) == null ? void 0 : i.enabled) === !0;
|
|
301
|
-
}
|
|
274
|
+
visibleIf: ({ options: e }) => e?.axis?.y?.ticksMode === "gridlines" && e?.grid?.y?.enabled === !0
|
|
302
275
|
},
|
|
303
276
|
{
|
|
304
277
|
key: "grid.y.opacity",
|
|
@@ -310,10 +283,7 @@ const y = ({ slots: e }) => {
|
|
|
310
283
|
max: 1,
|
|
311
284
|
step: 0.1
|
|
312
285
|
},
|
|
313
|
-
visibleIf: ({ options: e }) =>
|
|
314
|
-
var l, a, r, i;
|
|
315
|
-
return ((a = (l = e == null ? void 0 : e.axis) == null ? void 0 : l.y) == null ? void 0 : a.ticksMode) === "gridlines" && ((i = (r = e == null ? void 0 : e.grid) == null ? void 0 : r.y) == null ? void 0 : i.enabled) === !0;
|
|
316
|
-
}
|
|
286
|
+
visibleIf: ({ options: e }) => e?.axis?.y?.ticksMode === "gridlines" && e?.grid?.y?.enabled === !0
|
|
317
287
|
}
|
|
318
288
|
]
|
|
319
289
|
}
|
|
@@ -343,9 +313,9 @@ const y = ({ slots: e }) => {
|
|
|
343
313
|
}
|
|
344
314
|
}
|
|
345
315
|
],
|
|
346
|
-
visibleIf:
|
|
316
|
+
visibleIf: o
|
|
347
317
|
}
|
|
348
318
|
];
|
|
349
319
|
export {
|
|
350
|
-
|
|
320
|
+
p as default
|
|
351
321
|
};
|