@luzmo/analytics-components-kit 1.0.1-alpha.91 → 1.0.1-alpha.94
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/angular/README.md +1 -0
- package/angular/components/widget-menu.component.ts +25 -0
- package/angular/esm/components/widget-menu.component.d.ts +13 -0
- package/angular/esm/components/widget-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -1
- package/angular/esm/index.js +4 -1
- package/angular/esm/types.d.ts +4 -0
- package/angular/index.ts +4 -1
- package/angular/types.ts +6 -0
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +1 -0
- 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 +2 -1
- package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
- package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
- package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
- package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
- package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
- package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
- package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
- package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
- package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
- package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
- package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
- package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
- package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
- package/components/color-B6LaL8qz.cjs +20 -0
- package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
- package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
- package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
- package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
- package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
- package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
- package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +2 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +35 -32
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +53 -51
- package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
- package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
- package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
- package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
- 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 +30 -29
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +120 -112
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +24 -23
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +211 -194
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +97 -91
- package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
- package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +46 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +73 -70
- package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
- package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +223 -208
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +119 -116
- 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 +53 -52
- package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
- package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.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 +117 -106
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +27 -26
- 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 +25 -21
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +81 -76
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +22 -21
- 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 +23 -22
- package/components/en-BKBhKBXY.cjs +20 -0
- package/components/en-BOTjhwEc.js +1488 -0
- package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
- package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
- package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
- package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
- package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +86 -85
- 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 +119 -109
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +36 -34
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +71 -56
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +124 -113
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +110 -101
- package/components/focusable-B3E_hQmm.cjs +20 -0
- package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
- package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
- package/components/get-css-variable-BEYG097C.js +1446 -0
- package/components/get-css-variable-BZxY4IOa.cjs +35 -0
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
- package/components/grid/index.cjs +49 -43
- package/components/grid/index.js +1878 -2610
- package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
- package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
- package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
- package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
- package/components/helpers-DXQwEH1P.cjs +20 -0
- package/components/helpers-v1bPALRP.js +91 -0
- package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
- package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
- package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
- package/components/index-CDi4fe3N.js +1716 -0
- package/components/index-CQ9ck-BO.cjs +249 -0
- package/components/index-CXn67vdn.cjs +121 -0
- package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
- package/components/index-Cz9vSXy6.cjs +20 -0
- package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
- package/components/index-Dn0j_pcR.cjs +20 -0
- package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
- package/components/index-E239Dotg.js +1735 -0
- package/components/index.cjs +1 -1
- package/components/index.js +20 -18
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
- package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
- package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
- package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
- package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
- package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
- package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
- package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
- package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
- package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
- package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
- package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
- package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
- package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
- package/components/route-map-options.config-D7NJePTu.cjs +20 -0
- package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
- package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
- package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
- package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
- package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
- package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
- package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
- package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
- package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +205 -194
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +184 -171
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +103 -97
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
- package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
- package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
- package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
- package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
- package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
- package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
- package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
- package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
- package/components/utils.cjs +1 -1
- package/components/utils.js +97 -94
- package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
- package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
- package/components/widget-menu/index.cjs +51 -0
- package/components/widget-menu/index.d.ts +8 -0
- package/components/widget-menu/index.js +211 -0
- package/components/widget-menu/widget-menu.d.ts +77 -0
- package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
- package/custom-elements.json +133 -20
- package/index.d.ts +1 -0
- package/package.json +6 -1
- package/types.d.ts +4 -0
- package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
- package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
- package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
- package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
- package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
- package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
- package/components/color-Czp4Im5q.cjs +0 -20
- package/components/color-range-utils-DYYR-iwx.cjs +0 -20
- package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
- package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
- package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
- package/components/en-D3ihEGXg.js +0 -1483
- package/components/en-DZcn_iz_.cjs +0 -20
- package/components/focusable-QLh-LlNt.cjs +0 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
- package/components/get-css-variable-Pzks_rOx.cjs +0 -24
- package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
- package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
- package/components/helpers-9I0oLoUB.cjs +0 -20
- package/components/helpers-bR8Ibjqh.js +0 -79
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
- package/components/index-BekTY3Em.cjs +0 -121
- package/components/index-CFL6gmIu.cjs +0 -20
- package/components/index-DNPULp4A.js +0 -1755
- package/components/index-DvkzMbLt.cjs +0 -249
- package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
- package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
- package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
- package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
- package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
- package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
- package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js}
RENAMED
|
@@ -17,26 +17,30 @@
|
|
|
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 { C as
|
|
21
|
-
import { g as
|
|
22
|
-
import { m as
|
|
23
|
-
const
|
|
20
|
+
import { C as p } from "./color-DuJ4-73S.js";
|
|
21
|
+
import { g as n, a as y } from "./color-palettes-BqH2Fv19.js";
|
|
22
|
+
import { m as d } from "./index-t45_zv93.js";
|
|
23
|
+
const s = () => structuredClone(n().Spectrum.colors5), m = (e) => {
|
|
24
|
+
var l;
|
|
24
25
|
if (!e || e.length === 0) return [];
|
|
25
|
-
const t = /^rgb(a)?\s*\(/i.test(e.at(-1)
|
|
26
|
-
return e.map((
|
|
27
|
-
},
|
|
28
|
-
const t = e
|
|
26
|
+
const t = /^rgb(a)?\s*\(/i.test(((l = e.at(-1)) == null ? void 0 : l.trim()) ?? "");
|
|
27
|
+
return e.map((a) => new p(a).toString({ format: t ? "hex" : "rgb" }));
|
|
28
|
+
}, o = (e) => {
|
|
29
|
+
const t = (e == null ? void 0 : e.length) || 0;
|
|
29
30
|
return t === 0 ? {
|
|
30
31
|
type: "heat",
|
|
31
32
|
colorClass: "Spectrum",
|
|
32
|
-
colors:
|
|
33
|
-
} :
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
colors: s()
|
|
34
|
+
} : y().map((r) => {
|
|
35
|
+
var u, i;
|
|
36
|
+
return {
|
|
37
|
+
type: (u = n()[r]) == null ? void 0 : u.type,
|
|
38
|
+
colorClass: r,
|
|
39
|
+
colors: (i = n()[r]) == null ? void 0 : i[`colors${t}`]
|
|
40
|
+
};
|
|
41
|
+
}).find(
|
|
42
|
+
(r) => Array.isArray(r.colors) && Array.isArray(e) && r.colors.length === e.length && r.colors.every(
|
|
43
|
+
(u, i) => u === e[i]
|
|
40
44
|
)
|
|
41
45
|
) ?? {
|
|
42
46
|
type: "manual",
|
|
@@ -104,8 +108,8 @@ const a = () => structuredClone(s().Spectrum.colors5), d = (e) => {
|
|
|
104
108
|
"Voyager",
|
|
105
109
|
"No Tiles"
|
|
106
110
|
],
|
|
107
|
-
parseValue: (e) => e
|
|
108
|
-
toValue: (e) =>
|
|
111
|
+
parseValue: (e) => (e == null ? void 0 : e.name) || "Basic",
|
|
112
|
+
toValue: (e) => d[e] ?? {}
|
|
109
113
|
}
|
|
110
114
|
}
|
|
111
115
|
]
|
|
@@ -174,12 +178,13 @@ const a = () => structuredClone(s().Spectrum.colors5), d = (e) => {
|
|
|
174
178
|
label: "Colors type",
|
|
175
179
|
default: "sequential",
|
|
176
180
|
enum: ["heat", "sequential", "manual"],
|
|
177
|
-
calculateValue: ({ options: e }) =>
|
|
181
|
+
calculateValue: ({ options: e }) => o(e == null ? void 0 : e.colors).type,
|
|
178
182
|
toOptions: ({ options: e, value: t }) => {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
+
var c, r;
|
|
184
|
+
const l = o(
|
|
185
|
+
e == null ? void 0 : e.colors
|
|
186
|
+
), a = { ...e };
|
|
187
|
+
return l.type !== t && (a.colors = t === "manual" ? m(l.colors ?? s()) : ((r = n()[(c = y(t)) == null ? void 0 : c[0]]) == null ? void 0 : r.colors5) ?? s()), a;
|
|
183
188
|
}
|
|
184
189
|
}
|
|
185
190
|
},
|
|
@@ -191,23 +196,24 @@ const a = () => structuredClone(s().Spectrum.colors5), d = (e) => {
|
|
|
191
196
|
hideLabel: !0,
|
|
192
197
|
default: "Spectrum",
|
|
193
198
|
enum: ({ options: e }) => {
|
|
194
|
-
const t =
|
|
195
|
-
e
|
|
199
|
+
const t = o(
|
|
200
|
+
e == null ? void 0 : e.colors
|
|
196
201
|
).type;
|
|
197
|
-
return
|
|
202
|
+
return y(
|
|
198
203
|
["heat", "sequential"].includes(t) ? t : "heat"
|
|
199
204
|
);
|
|
200
205
|
},
|
|
201
206
|
calculateValue: ({ options: e }) => {
|
|
202
|
-
const t =
|
|
203
|
-
return t
|
|
207
|
+
const t = o(e == null ? void 0 : e.colors);
|
|
208
|
+
return t != null && t.colorClass && t.colorClass !== "manual" ? t.colorClass : "Spectrum";
|
|
204
209
|
},
|
|
205
210
|
toOptions: ({ options: e, value: t }) => {
|
|
206
|
-
|
|
207
|
-
|
|
211
|
+
var a;
|
|
212
|
+
const l = { ...e };
|
|
213
|
+
return l.colors = ((a = n()[t]) == null ? void 0 : a.colors5) ?? s(), l;
|
|
208
214
|
}
|
|
209
215
|
},
|
|
210
|
-
visibleIf: ({ options: e }) =>
|
|
216
|
+
visibleIf: ({ options: e }) => o(e == null ? void 0 : e.colors).type !== "manual"
|
|
211
217
|
},
|
|
212
218
|
{
|
|
213
219
|
key: "colors",
|
|
@@ -219,11 +225,11 @@ const a = () => structuredClone(s().Spectrum.colors5), d = (e) => {
|
|
|
219
225
|
noAlphaChannel: !0,
|
|
220
226
|
hideLabel: !0,
|
|
221
227
|
label: "Manual color ranges",
|
|
222
|
-
default:
|
|
223
|
-
parseValue: (e) => e
|
|
224
|
-
toValue: (e) => e
|
|
228
|
+
default: s(),
|
|
229
|
+
parseValue: (e) => e == null ? void 0 : e.map((t) => ({ color: t })),
|
|
230
|
+
toValue: (e) => (e == null ? void 0 : e.map((t) => t == null ? void 0 : t.color)) ?? []
|
|
225
231
|
},
|
|
226
|
-
visibleIf: ({ options: e }) =>
|
|
232
|
+
visibleIf: ({ options: e }) => o(e == null ? void 0 : e.colors).type === "manual"
|
|
227
233
|
}
|
|
228
234
|
]
|
|
229
235
|
}
|
|
@@ -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 y=require("./color-B6LaL8qz.cjs"),o=require("./color-palettes-DhNHcib8.cjs"),p=require("./index-DhDgy1sp.cjs"),n=()=>structuredClone(o.getColorMaps().Spectrum.colors5),d=e=>{var l;if(!e||e.length===0)return[];const t=/^rgb(a)?\s*\(/i.test(((l=e.at(-1))==null?void 0:l.trim())??"");return e.map(a=>new y.Color(a).toString({format:t?"hex":"rgb"}))},s=e=>{const t=(e==null?void 0:e.length)||0;return t===0?{type:"heat",colorClass:"Spectrum",colors:n()}:o.getColorMapKeys().map(r=>{var u,i;return{type:(u=o.getColorMaps()[r])==null?void 0:u.type,colorClass:r,colors:(i=o.getColorMaps()[r])==null?void 0:i[`colors${t}`]}}).find(r=>Array.isArray(r.colors)&&Array.isArray(e)&&r.colors.length===e.length&&r.colors.every((u,i)=>u===e[i]))??{type:"manual",colorClass:"manual",colors:e}},m=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>p.mapVectorTileProviders[e]??{}}}]},{key:"heat",type:"group",open:!0,children:[{key:"enabled.adaptOnZoom",control:{type:"switch",label:"Adapt on zoom",tooltip:"If turned off, density is calculated based on map surface",default:!0}},{key:"screenRadius",control:{type:"slider",label:"Radius",default:20,min:1,max:50,step:1}},{key:"intensity",control:{type:"slider",label:"Intensity",tooltip:"Multiplier for the density, multiplies by 1 on minimum (default)",default:1,min:1,max:100,step:1}}]},{key:"heatColors",type:"group",open:!0,children:[{key:"transparency",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["heat","sequential","manual"],calculateValue:({options:e})=>s(e==null?void 0:e.colors).type,toOptions:({options:e,value:t})=>{var c,r;const l=s(e==null?void 0:e.colors),a={...e};return l.type!==t&&(a.colors=t==="manual"?d(l.colors??n()):((r=o.getColorMaps()[(c=o.getColorMapKeys(t))==null?void 0:c[0]])==null?void 0:r.colors5)??n()),a}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:"Spectrum",enum:({options:e})=>{const t=s(e==null?void 0:e.colors).type;return o.getColorMapKeys(["heat","sequential"].includes(t)?t:"heat")},calculateValue:({options:e})=>{const t=s(e==null?void 0:e.colors);return t!=null&&t.colorClass&&t.colorClass!=="manual"?t.colorClass:"Spectrum"},toOptions:({options:e,value:t})=>{var a;const l={...e};return l.colors=((a=o.getColorMaps()[t])==null?void 0:a.colors5)??n(),l}},visibleIf:({options:e})=>s(e==null?void 0:e.colors).type!=="manual"},{key:"colors",control:{type:"color-range",editRangeSize:!1,noValues:!0,minimumRangeSize:4,noAlphaChannel:!0,hideLabel:!0,label:"Manual color ranges",default:n(),parseValue:e=>e==null?void 0:e.map(t=>({color:t})),toValue:e=>(e==null?void 0:e.map(t=>t==null?void 0:t.color))??[]},visibleIf:({options:e})=>s(e==null?void 0:e.colors).type==="manual"}]}];exports.default=m;
|
|
@@ -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 c=require("./helpers-DXQwEH1P.cjs"),s=require("./color-palettes-DhNHcib8.cjs"),t=require("./color-range-utils-C5yXW7ZC.cjs"),k=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.values",control:{type:"switch",label:"Show values",default:!1}}]},{key:"heatTable",type:"group",label:"Heat table",open:!0,children:[{key:"heattable.opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"heattable.rounding",control:{type:"slider",label:"Rounding",default:({theme:e})=>{var l;return(l=e==null?void 0:e.itemSpecific)==null?void 0:l.rounding},min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var a,r;if(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.rounding)=="number")return typeof((r=e==null?void 0:e.heattable)==null?void 0:r.rounding)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var a,r;return!(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.rounding)!="number"||typeof((r=e==null?void 0:e.heattable)==null?void 0:r.rounding)!="number")},extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,rounding:void 0}};return delete l.heattable.rounding,{value:null,options:l}}}},{key:"heattable.spacing",control:{type:"slider",label:"Spacing",default:({theme:e})=>{var l;return(l=e==null?void 0:e.itemSpecific)==null?void 0:l.padding},min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{var a,r;if(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.padding)=="number")return typeof((r=e==null?void 0:e.heattable)==null?void 0:r.spacing)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var a,r;return!(typeof((a=l==null?void 0:l.itemSpecific)==null?void 0:a.padding)!="number"||typeof((r=e==null?void 0:e.heattable)==null?void 0:r.spacing)!="number")},extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,spacing:void 0}};return delete l.heattable.spacing,{value:null,options:l}}}},{key:"colorsType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],toOptions:({options:e,value:l})=>{var y,d,o;const a=(d=(y=s.getColorMaps())==null?void 0:y[e==null?void 0:e.colorsClass])==null?void 0:d.type,r=(e==null?void 0:e.colorsType)??a??"sequential",u=(e==null?void 0:e.colorsClass)??"PuBu",i=(e==null?void 0:e.numberClasses)??7,g=t.toRangesWithValue((o=e==null?void 0:e.manualValues)==null?void 0:o.ranges),f=r==="manual"?"manual":u,n={...e,colorsType:l};if(l==="manual"){const b=t.calculateManualRanges(i,f,g);n.manualValues={...n.manualValues,ranges:t.toRangesWithVal(b)}}else{if(l!==r){const b=s.getColorMapKeys(l??"sequential")[0];n.colorsClass=b}delete n.manualValues}return n}}},{key:"classification",control:{type:"picker",label:"Method",default:"quantile",enum:["interval","quantile","continuous"]},visibleIf:({options:e})=>(e==null?void 0:e.colorsType)!=="manual"},{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"7",enum:["3","4","5","6","7","8","9"],parseValue:e=>(e==null?void 0:e.toString())??"7",toOptions:({options:e,value:l})=>{var r;l=Number.parseInt(l,10)??7;const a={...e,numberClasses:l};if((e==null?void 0:e.colorsType)==="manual"){const u=t.calculateManualRanges(l,"manual",t.toRangesWithValue((r=e==null?void 0:e.manualValues)==null?void 0:r.ranges));a.manualValues={...a.manualValues,ranges:t.toRangesWithVal(u)}}return a}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{var r;const l=s.getColorMaps(),a=(r=l==null?void 0:l[e==null?void 0:e.colorsClass])==null?void 0:r.type;return s.getColorMapKeys((e==null?void 0:e.colorsType)??a??"sequential")[0]},enum:({options:e})=>{var a,r;const l=(r=(a=s.getColorMaps())==null?void 0:a[e==null?void 0:e.colorsClass])==null?void 0:r.type;return s.getColorMapKeys((e==null?void 0:e.colorsType)??l??"sequential")},toOptions:({options:e,value:l})=>{var u,i;const a=(i=(u=s.getColorMaps())==null?void 0:u[e==null?void 0:e.colorsClass])==null?void 0:i.type,r={...e,colorsClass:l,colorsType:a??"sequential"};return delete r.manualValues,r}},visibleIf:({options:e})=>(e==null?void 0:e.colorsType)!=="manual"},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!1,debounce:500,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>{var l;return t.calculateManualRanges((e==null?void 0:e.numberClasses)??7,"manual",t.toRangesWithValue((l=e==null?void 0:e.manualValues)==null?void 0:l.ranges))},toOptions:({options:e,value:l})=>({...e,manualValues:{...e.manualValues,ranges:t.toRangesWithVal(l)}})},visibleIf:({options:e})=>(e==null?void 0:e.colorsType)==="manual"}]},{key:"axes",type:"group",open:!1,children:[{key:"sort.x.order",control:{type:"picker",label:"X-axis order",default:"asc",enum:["asc","desc"]}},{key:"axis.x.color",control:{type:"color-picker",label:"X-axis color",default:({theme:e})=>c.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>c.getThemeMainColorResetLabel(e,l,"axis.x.color"),extraLabelHasClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelHasClickAction(e,l,"axis.x.color"),extraLabelClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelClickAction(e,l,"axis.x.color")}},{key:"xAxisLabels",type:"group",label:"X-axis label",collapsible:!0,open:!1,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})=>{var l,a;return((a=(l=e==null?void 0:e.axislabels)==null?void 0:l.x)==null?void 0:a.enabled)===!0}}]},{key:"xAxisTicks",type:"group",label:"X-axis ticks",collapsible:!0,open:!1,children:[{key:"axis.x.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]},{type:"divider"},{key:"sort.y.order",control:{type:"picker",label:"Y-axis order",default:"asc",enum:["asc","desc"]}},{key:"axis.y.color",control:{type:"color-picker",label:"Y-axis color",default:({theme:e})=>c.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>c.getThemeMainColorResetLabel(e,l,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelHasClickAction(e,l,"axis.y.color"),extraLabelClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelClickAction(e,l,"axis.y.color")}},{key:"yAxisLabels",type:"group",label:"Y-axis label",collapsible:!0,open:!1,children:[{key:"axislabels.y.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.y.position",control:{type:"picker",label:"Position",default:"top",enum:["top","middle","bottom"]},visibleIf:({options:e})=>{var l,a;return((a=(l=e==null?void 0:e.axislabels)==null?void 0:l.y)==null?void 0:a.enabled)===!0}}]},{key:"yAxisTicks",type:"group",label:"Y-axis ticks",collapsible:!0,open:!1,children:[{key:"axis.y.ticks",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]}]}];exports.default=k;
|
package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js}
RENAMED
|
@@ -17,10 +17,10 @@
|
|
|
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
|
|
21
|
-
import { g as
|
|
22
|
-
import { t as
|
|
23
|
-
const
|
|
20
|
+
import { g, a as m, b as o, c as C } from "./helpers-v1bPALRP.js";
|
|
21
|
+
import { g as u, a as i } from "./color-palettes-BqH2Fv19.js";
|
|
22
|
+
import { t as b, c as y, a as d } from "./color-range-utils-Bvo9sm5A.js";
|
|
23
|
+
const A = [
|
|
24
24
|
{
|
|
25
25
|
key: "general",
|
|
26
26
|
type: "group",
|
|
@@ -66,15 +66,22 @@ const T = [
|
|
|
66
66
|
control: {
|
|
67
67
|
type: "slider",
|
|
68
68
|
label: "Rounding",
|
|
69
|
-
default: ({ theme: e }) =>
|
|
69
|
+
default: ({ theme: e }) => {
|
|
70
|
+
var l;
|
|
71
|
+
return (l = e == null ? void 0 : e.itemSpecific) == null ? void 0 : l.rounding;
|
|
72
|
+
},
|
|
70
73
|
min: 0,
|
|
71
74
|
max: 20,
|
|
72
75
|
step: 1,
|
|
73
76
|
extraLabel: ({ options: e, theme: l }) => {
|
|
74
|
-
|
|
75
|
-
|
|
77
|
+
var a, r;
|
|
78
|
+
if (typeof ((a = l == null ? void 0 : l.itemSpecific) == null ? void 0 : a.rounding) == "number")
|
|
79
|
+
return typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.rounding) != "number" ? "auto" : "reset";
|
|
80
|
+
},
|
|
81
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => {
|
|
82
|
+
var a, r;
|
|
83
|
+
return !(typeof ((a = l == null ? void 0 : l.itemSpecific) == null ? void 0 : a.rounding) != "number" || typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.rounding) != "number");
|
|
76
84
|
},
|
|
77
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) => !(typeof l?.itemSpecific?.rounding != "number" || typeof e?.heattable?.rounding != "number"),
|
|
78
85
|
extraLabelClickAction: ({ options: e }) => {
|
|
79
86
|
const l = {
|
|
80
87
|
...e,
|
|
@@ -89,15 +96,22 @@ const T = [
|
|
|
89
96
|
control: {
|
|
90
97
|
type: "slider",
|
|
91
98
|
label: "Spacing",
|
|
92
|
-
default: ({ theme: e }) =>
|
|
99
|
+
default: ({ theme: e }) => {
|
|
100
|
+
var l;
|
|
101
|
+
return (l = e == null ? void 0 : e.itemSpecific) == null ? void 0 : l.padding;
|
|
102
|
+
},
|
|
93
103
|
min: 0,
|
|
94
104
|
max: 20,
|
|
95
105
|
step: 1,
|
|
96
106
|
extraLabel: ({ options: e, theme: l }) => {
|
|
97
|
-
|
|
98
|
-
|
|
107
|
+
var a, r;
|
|
108
|
+
if (typeof ((a = l == null ? void 0 : l.itemSpecific) == null ? void 0 : a.padding) == "number")
|
|
109
|
+
return typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.spacing) != "number" ? "auto" : "reset";
|
|
110
|
+
},
|
|
111
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => {
|
|
112
|
+
var a, r;
|
|
113
|
+
return !(typeof ((a = l == null ? void 0 : l.itemSpecific) == null ? void 0 : a.padding) != "number" || typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.spacing) != "number");
|
|
99
114
|
},
|
|
100
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) => !(typeof l?.itemSpecific?.padding != "number" || typeof e?.heattable?.spacing != "number"),
|
|
101
115
|
extraLabelClickAction: ({ options: e }) => {
|
|
102
116
|
const l = {
|
|
103
117
|
...e,
|
|
@@ -116,32 +130,33 @@ const T = [
|
|
|
116
130
|
default: "sequential",
|
|
117
131
|
enum: ["sequential", "divergent", "manual"],
|
|
118
132
|
toOptions: ({ options: e, value: l }) => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
133
|
+
var f, k, x;
|
|
134
|
+
const a = (k = (f = u()) == null ? void 0 : f[e == null ? void 0 : e.colorsClass]) == null ? void 0 : k.type, r = (e == null ? void 0 : e.colorsType) ?? a ?? "sequential", c = (e == null ? void 0 : e.colorsClass) ?? "PuBu", s = (e == null ? void 0 : e.numberClasses) ?? 7, p = b(
|
|
135
|
+
(x = e == null ? void 0 : e.manualValues) == null ? void 0 : x.ranges
|
|
136
|
+
), T = r === "manual" ? "manual" : c, t = {
|
|
122
137
|
...e,
|
|
123
138
|
colorsType: l
|
|
124
139
|
};
|
|
125
140
|
if (l === "manual") {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
141
|
+
const n = y(
|
|
142
|
+
s,
|
|
143
|
+
T,
|
|
144
|
+
p
|
|
130
145
|
);
|
|
131
|
-
|
|
132
|
-
...
|
|
133
|
-
ranges:
|
|
146
|
+
t.manualValues = {
|
|
147
|
+
...t.manualValues,
|
|
148
|
+
ranges: d(n)
|
|
134
149
|
};
|
|
135
150
|
} else {
|
|
136
|
-
if (l !==
|
|
137
|
-
const
|
|
151
|
+
if (l !== r) {
|
|
152
|
+
const n = i(
|
|
138
153
|
l ?? "sequential"
|
|
139
154
|
)[0];
|
|
140
|
-
|
|
155
|
+
t.colorsClass = n;
|
|
141
156
|
}
|
|
142
|
-
delete
|
|
157
|
+
delete t.manualValues;
|
|
143
158
|
}
|
|
144
|
-
return
|
|
159
|
+
return t;
|
|
145
160
|
}
|
|
146
161
|
}
|
|
147
162
|
},
|
|
@@ -153,7 +168,7 @@ const T = [
|
|
|
153
168
|
default: "quantile",
|
|
154
169
|
enum: ["interval", "quantile", "continuous"]
|
|
155
170
|
},
|
|
156
|
-
visibleIf: ({ options: e }) => e
|
|
171
|
+
visibleIf: ({ options: e }) => (e == null ? void 0 : e.colorsType) !== "manual"
|
|
157
172
|
},
|
|
158
173
|
{
|
|
159
174
|
key: "numberClasses",
|
|
@@ -162,19 +177,20 @@ const T = [
|
|
|
162
177
|
label: "Number of classes",
|
|
163
178
|
default: "7",
|
|
164
179
|
enum: ["3", "4", "5", "6", "7", "8", "9"],
|
|
165
|
-
parseValue: (e) => e
|
|
180
|
+
parseValue: (e) => (e == null ? void 0 : e.toString()) ?? "7",
|
|
166
181
|
toOptions: ({ options: e, value: l }) => {
|
|
182
|
+
var r;
|
|
167
183
|
l = Number.parseInt(l, 10) ?? 7;
|
|
168
184
|
const a = { ...e, numberClasses: l };
|
|
169
|
-
if (e
|
|
170
|
-
const
|
|
185
|
+
if ((e == null ? void 0 : e.colorsType) === "manual") {
|
|
186
|
+
const c = y(
|
|
171
187
|
l,
|
|
172
188
|
"manual",
|
|
173
|
-
|
|
189
|
+
b((r = e == null ? void 0 : e.manualValues) == null ? void 0 : r.ranges)
|
|
174
190
|
);
|
|
175
191
|
a.manualValues = {
|
|
176
192
|
...a.manualValues,
|
|
177
|
-
ranges:
|
|
193
|
+
ranges: d(c)
|
|
178
194
|
};
|
|
179
195
|
}
|
|
180
196
|
return a;
|
|
@@ -188,27 +204,30 @@ const T = [
|
|
|
188
204
|
label: "Color palette",
|
|
189
205
|
hideLabel: !0,
|
|
190
206
|
default: ({ options: e }) => {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
207
|
+
var r;
|
|
208
|
+
const l = u(), a = (r = l == null ? void 0 : l[e == null ? void 0 : e.colorsClass]) == null ? void 0 : r.type;
|
|
209
|
+
return i(
|
|
210
|
+
(e == null ? void 0 : e.colorsType) ?? a ?? "sequential"
|
|
194
211
|
)[0];
|
|
195
212
|
},
|
|
196
213
|
enum: ({ options: e }) => {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
214
|
+
var a, r;
|
|
215
|
+
const l = (r = (a = u()) == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : r.type;
|
|
216
|
+
return i(
|
|
217
|
+
(e == null ? void 0 : e.colorsType) ?? l ?? "sequential"
|
|
200
218
|
);
|
|
201
219
|
},
|
|
202
220
|
toOptions: ({ options: e, value: l }) => {
|
|
203
|
-
|
|
221
|
+
var c, s;
|
|
222
|
+
const a = (s = (c = u()) == null ? void 0 : c[e == null ? void 0 : e.colorsClass]) == null ? void 0 : s.type, r = {
|
|
204
223
|
...e,
|
|
205
224
|
colorsClass: l,
|
|
206
225
|
colorsType: a ?? "sequential"
|
|
207
226
|
};
|
|
208
|
-
return delete
|
|
227
|
+
return delete r.manualValues, r;
|
|
209
228
|
}
|
|
210
229
|
},
|
|
211
|
-
visibleIf: ({ options: e }) => e
|
|
230
|
+
visibleIf: ({ options: e }) => (e == null ? void 0 : e.colorsType) !== "manual"
|
|
212
231
|
},
|
|
213
232
|
{
|
|
214
233
|
key: "manualValues.ranges",
|
|
@@ -218,20 +237,23 @@ const T = [
|
|
|
218
237
|
debounce: 500,
|
|
219
238
|
label: "Manual range values",
|
|
220
239
|
hideLabel: !0,
|
|
221
|
-
calculateValue: ({ options: e }) =>
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
240
|
+
calculateValue: ({ options: e }) => {
|
|
241
|
+
var l;
|
|
242
|
+
return y(
|
|
243
|
+
(e == null ? void 0 : e.numberClasses) ?? 7,
|
|
244
|
+
"manual",
|
|
245
|
+
b((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.ranges)
|
|
246
|
+
);
|
|
247
|
+
},
|
|
226
248
|
toOptions: ({ options: e, value: l }) => ({
|
|
227
249
|
...e,
|
|
228
250
|
manualValues: {
|
|
229
251
|
...e.manualValues,
|
|
230
|
-
ranges:
|
|
252
|
+
ranges: d(l)
|
|
231
253
|
}
|
|
232
254
|
})
|
|
233
255
|
},
|
|
234
|
-
visibleIf: ({ options: e }) => e
|
|
256
|
+
visibleIf: ({ options: e }) => (e == null ? void 0 : e.colorsType) === "manual"
|
|
235
257
|
}
|
|
236
258
|
]
|
|
237
259
|
},
|
|
@@ -254,14 +276,14 @@ const T = [
|
|
|
254
276
|
control: {
|
|
255
277
|
type: "color-picker",
|
|
256
278
|
label: "X-axis color",
|
|
257
|
-
default: ({ theme: e }) =>
|
|
258
|
-
extraLabel: ({ options: e, theme: l }) =>
|
|
259
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) =>
|
|
279
|
+
default: ({ theme: e }) => C(e),
|
|
280
|
+
extraLabel: ({ options: e, theme: l }) => o(e, l, "axis.x.color"),
|
|
281
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => m(
|
|
260
282
|
e,
|
|
261
283
|
l,
|
|
262
284
|
"axis.x.color"
|
|
263
285
|
),
|
|
264
|
-
extraLabelClickAction: ({ options: e, theme: l }) =>
|
|
286
|
+
extraLabelClickAction: ({ options: e, theme: l }) => g(
|
|
265
287
|
e,
|
|
266
288
|
l,
|
|
267
289
|
"axis.x.color"
|
|
@@ -291,7 +313,10 @@ const T = [
|
|
|
291
313
|
default: "center",
|
|
292
314
|
enum: ["left", "center", "right"]
|
|
293
315
|
},
|
|
294
|
-
visibleIf: ({ options: e }) =>
|
|
316
|
+
visibleIf: ({ options: e }) => {
|
|
317
|
+
var l, a;
|
|
318
|
+
return ((a = (l = e == null ? void 0 : e.axislabels) == null ? void 0 : l.x) == null ? void 0 : a.enabled) === !0;
|
|
319
|
+
}
|
|
295
320
|
}
|
|
296
321
|
]
|
|
297
322
|
},
|
|
@@ -330,14 +355,14 @@ const T = [
|
|
|
330
355
|
control: {
|
|
331
356
|
type: "color-picker",
|
|
332
357
|
label: "Y-axis color",
|
|
333
|
-
default: ({ theme: e }) =>
|
|
334
|
-
extraLabel: ({ options: e, theme: l }) =>
|
|
335
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) =>
|
|
358
|
+
default: ({ theme: e }) => C(e),
|
|
359
|
+
extraLabel: ({ options: e, theme: l }) => o(e, l, "axis.y.color"),
|
|
360
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => m(
|
|
336
361
|
e,
|
|
337
362
|
l,
|
|
338
363
|
"axis.y.color"
|
|
339
364
|
),
|
|
340
|
-
extraLabelClickAction: ({ options: e, theme: l }) =>
|
|
365
|
+
extraLabelClickAction: ({ options: e, theme: l }) => g(
|
|
341
366
|
e,
|
|
342
367
|
l,
|
|
343
368
|
"axis.y.color"
|
|
@@ -367,7 +392,10 @@ const T = [
|
|
|
367
392
|
default: "top",
|
|
368
393
|
enum: ["top", "middle", "bottom"]
|
|
369
394
|
},
|
|
370
|
-
visibleIf: ({ options: e }) =>
|
|
395
|
+
visibleIf: ({ options: e }) => {
|
|
396
|
+
var l, a;
|
|
397
|
+
return ((a = (l = e == null ? void 0 : e.axislabels) == null ? void 0 : l.y) == null ? void 0 : a.enabled) === !0;
|
|
398
|
+
}
|
|
371
399
|
}
|
|
372
400
|
]
|
|
373
401
|
},
|
|
@@ -393,5 +421,5 @@ const T = [
|
|
|
393
421
|
}
|
|
394
422
|
];
|
|
395
423
|
export {
|
|
396
|
-
|
|
424
|
+
A as default
|
|
397
425
|
};
|
|
@@ -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";const i=(o,r)=>r.split(".").reduce((a,l)=>a&&a[l]!==void 0?a[l]:void 0,o),g=(o,r,n)=>{const a=r.split("."),l=a.pop(),s=a.reduce((c,t)=>(c[t]===void 0&&(c[t]={}),c[t]),o);return l&&(s[l]=n),o},C=o=>{var r;return(o==null?void 0:o.mainColor)??((r=o==null?void 0:o.colors)==null?void 0:r[0])},b=(o,r,n)=>{var s;const a=(r==null?void 0:r.mainColor)??((s=r==null?void 0:r.colors)==null?void 0:s[0]),l=i(o,n);if(a&&l&&l!==a)return"reset"},d=(o,r,n)=>{var s;const a=(r==null?void 0:r.mainColor)??((s=r==null?void 0:r.colors)==null?void 0:s[0]),l=i(o,n);return!!(a&&l&&l!==a)},u=(o,r,n)=>{var s;const a=(r==null?void 0:r.mainColor)??((s=r==null?void 0:r.colors)==null?void 0:s[0]),l={...o};return g(l,n,a),{value:a,options:l}},k=o=>{var r;return((r=o==null?void 0:o.borders)==null?void 0:r["border-color"])??((o==null?void 0:o.darkOrLight)==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)")},L=(o,r,n)=>{var s;const a=((s=r==null?void 0:r.borders)==null?void 0:s["border-color"])??((r==null?void 0:r.darkOrLight)==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)"),l=i(o,n);if(a&&l&&l!==a)return"reset"},T=(o,r,n)=>{var s;const a=((s=r==null?void 0:r.borders)==null?void 0:s["border-color"])??((r==null?void 0:r.darkOrLight)==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)"),l=i(o,n);return!!(a&&l&&l!==a)},e=(o,r,n)=>{var s;const a=((s=r==null?void 0:r.borders)==null?void 0:s["border-color"])??((r==null?void 0:r.darkOrLight)==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)"),l={...o};return g(l,n,a),{value:a,options:l}},x=o=>(o==null?void 0:o.darkOrLight)==="dark"?"rgba(255, 255, 255)":"rgba(0,0,0)",A=(o,r,n)=>{const a=(r==null?void 0:r.darkOrLight)==="dark"?"rgba(255, 255, 255)":"rgba(0,0,0)",l=i(o,n);if(a&&l&&l!==a)return"reset"},v=(o,r,n)=>{const a=(r==null?void 0:r.darkOrLight)==="dark"?"rgba(255, 255, 255)":"rgba(0,0,0)",l=i(o,n);return!!(a&&l&&l!==a)},E=(o,r,n)=>{const a=(r==null?void 0:r.darkOrLight)==="dark"?"rgb(255, 255, 255)":"rgba(0,0,0)",l={...o};return g(l,n,a),{value:a,options:l}};exports.getThemeAxisColor=x;exports.getThemeAxisColorExtraLabelClickAction=E;exports.getThemeAxisColorExtraLabelHasClickAction=v;exports.getThemeAxisColorResetLabel=A;exports.getThemeBorderColor=k;exports.getThemeBorderColorExtraLabelClickAction=e;exports.getThemeBorderColorExtraLabelHasClickAction=T;exports.getThemeBorderColorResetLabel=L;exports.getThemeMainColor=C;exports.getThemeMainColorExtraLabelClickAction=u;exports.getThemeMainColorExtraLabelHasClickAction=d;exports.getThemeMainColorResetLabel=b;
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
const c = (o, r) => r.split(".").reduce(
|
|
21
|
+
(s, a) => s && s[a] !== void 0 ? s[a] : void 0,
|
|
22
|
+
o
|
|
23
|
+
), u = (o, r, n) => {
|
|
24
|
+
const s = r.split("."), a = s.pop(), l = s.reduce((i, g) => (i[g] === void 0 && (i[g] = {}), i[g]), o);
|
|
25
|
+
return a && (l[a] = n), o;
|
|
26
|
+
}, d = (o) => {
|
|
27
|
+
var r;
|
|
28
|
+
return (o == null ? void 0 : o.mainColor) ?? ((r = o == null ? void 0 : o.colors) == null ? void 0 : r[0]);
|
|
29
|
+
}, t = (o, r, n) => {
|
|
30
|
+
var l;
|
|
31
|
+
const s = (r == null ? void 0 : r.mainColor) ?? ((l = r == null ? void 0 : r.colors) == null ? void 0 : l[0]), a = c(o, n);
|
|
32
|
+
if (s && a && a !== s)
|
|
33
|
+
return "reset";
|
|
34
|
+
}, b = (o, r, n) => {
|
|
35
|
+
var l;
|
|
36
|
+
const s = (r == null ? void 0 : r.mainColor) ?? ((l = r == null ? void 0 : r.colors) == null ? void 0 : l[0]), a = c(o, n);
|
|
37
|
+
return !!(s && a && a !== s);
|
|
38
|
+
}, C = (o, r, n) => {
|
|
39
|
+
var l;
|
|
40
|
+
const s = (r == null ? void 0 : r.mainColor) ?? ((l = r == null ? void 0 : r.colors) == null ? void 0 : l[0]), a = { ...o };
|
|
41
|
+
return u(a, n, s), {
|
|
42
|
+
value: s,
|
|
43
|
+
options: a
|
|
44
|
+
};
|
|
45
|
+
}, k = (o) => {
|
|
46
|
+
var r;
|
|
47
|
+
return ((r = o == null ? void 0 : o.borders) == null ? void 0 : r["border-color"]) ?? ((o == null ? void 0 : o.darkOrLight) === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)");
|
|
48
|
+
}, L = (o, r, n) => {
|
|
49
|
+
var l;
|
|
50
|
+
const s = ((l = r == null ? void 0 : r.borders) == null ? void 0 : l["border-color"]) ?? ((r == null ? void 0 : r.darkOrLight) === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)"), a = c(o, n);
|
|
51
|
+
if (s && a && a !== s)
|
|
52
|
+
return "reset";
|
|
53
|
+
}, f = (o, r, n) => {
|
|
54
|
+
var l;
|
|
55
|
+
const s = ((l = r == null ? void 0 : r.borders) == null ? void 0 : l["border-color"]) ?? ((r == null ? void 0 : r.darkOrLight) === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)"), a = c(o, n);
|
|
56
|
+
return !!(s && a && a !== s);
|
|
57
|
+
}, v = (o, r, n) => {
|
|
58
|
+
var l;
|
|
59
|
+
const s = ((l = r == null ? void 0 : r.borders) == null ? void 0 : l["border-color"]) ?? ((r == null ? void 0 : r.darkOrLight) === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)"), a = { ...o };
|
|
60
|
+
return u(a, n, s), {
|
|
61
|
+
value: s,
|
|
62
|
+
options: a
|
|
63
|
+
};
|
|
64
|
+
}, T = (o) => (o == null ? void 0 : o.darkOrLight) === "dark" ? "rgba(255, 255, 255)" : "rgba(0,0,0)", p = (o, r, n) => {
|
|
65
|
+
const s = (r == null ? void 0 : r.darkOrLight) === "dark" ? "rgba(255, 255, 255)" : "rgba(0,0,0)", a = c(o, n);
|
|
66
|
+
if (s && a && a !== s)
|
|
67
|
+
return "reset";
|
|
68
|
+
}, x = (o, r, n) => {
|
|
69
|
+
const s = (r == null ? void 0 : r.darkOrLight) === "dark" ? "rgba(255, 255, 255)" : "rgba(0,0,0)", a = c(o, n);
|
|
70
|
+
return !!(s && a && a !== s);
|
|
71
|
+
}, O = (o, r, n) => {
|
|
72
|
+
const s = (r == null ? void 0 : r.darkOrLight) === "dark" ? "rgb(255, 255, 255)" : "rgba(0,0,0)", a = { ...o };
|
|
73
|
+
return u(a, n, s), {
|
|
74
|
+
value: s,
|
|
75
|
+
options: a
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
b as a,
|
|
80
|
+
t as b,
|
|
81
|
+
d as c,
|
|
82
|
+
v as d,
|
|
83
|
+
f as e,
|
|
84
|
+
L as f,
|
|
85
|
+
C as g,
|
|
86
|
+
k as h,
|
|
87
|
+
O as i,
|
|
88
|
+
x as j,
|
|
89
|
+
p as k,
|
|
90
|
+
T as l
|
|
91
|
+
};
|
|
@@ -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 r=require("./color-palettes-DhNHcib8.cjs"),c=require("./index-DhDgy1sp.cjs"),n=[{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}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>c.mapVectorTileProviders[e]??{}}}]},{key:"classification",type:"group",open:!0,children:[{key:"radius",control:{type:"slider",label:"Radius",default:16,min:4,max:100,step:1}},{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"5",enum:["3","4","5","6","7","8","9"],parseValue:e=>(e==null?void 0:e.toString())??"5",toValue:e=>Number.parseInt(e,10)??5}},{key:"aggregationType",control:{type:"picker",label:"Hexbin aggregation",default:"count",enum:["count","sum","mean","median","minimum","maximum"]}},{key:"classification",control:{type:"picker",label:"Color Method",default:"interval",enum:["interval","quantile"]}}]},{key:"colors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.85,min:0,max:1,step:.01}},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent"],calculateValue:({options:e})=>{var t;if((e==null?void 0:e.colorsClass)==="manual")return"manual";const l=r.getColorMaps();return((t=l==null?void 0:l[e==null?void 0:e.colorsClass])==null?void 0:t.type)??"sequential"},toOptions:({options:e,value:l})=>{var o;if(l==="manual")return{...e,colorsClass:"manual"};let a=e.colorClass;const t=r.getColorMaps(),s=(o=t==null?void 0:t[e==null?void 0:e.colorsClass])==null?void 0:o.type;return l!==s&&(a=r.getColorMapKeys(l??"sequential")[0]),{...e,colorsClass:a}}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{var t;const l=r.getColorMaps(),a=(t=l==null?void 0:l[e==null?void 0:e.colorsClass])==null?void 0:t.type;return r.getColorMapKeys(a??"sequential")[0]},enum:({options:e})=>{var t;const l=r.getColorMaps(),a=(t=l==null?void 0:l[e==null?void 0:e.colorsClass])==null?void 0:t.type;return r.getColorMapKeys(a??"sequential")}}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.type",control:{type:"picker",label:"Type",default:"bar",enum:["bar","list"]},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1}},{key:"legend.size",control:{type:"action-button-group",label:"Size",default:["M"],values:{S:{buttonText:"S",label:"Small"},M:{buttonText:"M",label:"Medium"},L:{buttonText:"L",label:"Large"}},selects:"single"},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1}},{key:"legend.position",control:{type:"position-picker",label:"Position",default:"bottomLeft",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]},visibleIf:({options:e})=>{var l;return((l=e==null?void 0:e.display)==null?void 0:l.legend)!==!1}}]}];exports.default=n;
|