@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97
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 -1
- package/angular/components/viz-item-menu.component.ts +25 -0
- package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
- package/angular/esm/components/viz-item-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -3
- package/angular/esm/index.js +3 -3
- package/angular/esm/types.d.ts +2 -2
- package/angular/index.ts +3 -3
- package/angular/types.ts +2 -2
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- 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-DMDhKq_m.js +147 -0
- package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
- 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 +50 -52
- 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/display-settings-numeric.d.ts +1 -2
- package/components/display-settings-numeric/index.cjs +49 -48
- package/components/display-settings-numeric/index.js +193 -218
- 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 +5 -5
- package/components/draggable-data-item/index.js +45 -46
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +70 -73
- 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 +16 -16
- package/components/droppable-slot/index.js +208 -223
- 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-D3ihEGXg.js +1483 -0
- package/components/en-DZcn_iz_.cjs +20 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.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-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
- package/components/get-css-variable-Pzks_rOx.cjs +24 -0
- package/components/grid/index.cjs +43 -49
- package/components/grid/index.js +2610 -1878
- 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-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/index-DNPULp4A.js +1755 -0
- package/components/{index-D0GBF6tg.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 +13 -13
- 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-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
- 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 +94 -97
- 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/viz-item-menu/index.cjs +51 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +209 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
- 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 +43 -23
- package/index.d.ts +1 -1
- package/package.json +7 -7
- package/types.d.ts +2 -2
- package/angular/components/widget-menu.component.ts +0 -25
- package/angular/esm/components/widget-menu.component.d.ts +0 -13
- package/angular/esm/components/widget-menu.component.js +0 -49
- 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-CEa82-5u.cjs +0 -20
- package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
- 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/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- 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-CDi4fe3N.js +0 -1716
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- 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/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/index.js +0 -211
- package/components/widget-menu/widget-menu.d.ts +0 -77
|
@@ -17,8 +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 { i as
|
|
21
|
-
const
|
|
20
|
+
import { i as r, j as o, k as i, l } from "./helpers-bR8Ibjqh.js";
|
|
21
|
+
const n = [
|
|
22
22
|
{
|
|
23
23
|
key: "general",
|
|
24
24
|
type: "group",
|
|
@@ -90,25 +90,18 @@ const c = [
|
|
|
90
90
|
control: {
|
|
91
91
|
type: "slider",
|
|
92
92
|
label: "Rounded corners",
|
|
93
|
-
default: ({ theme: e }) =>
|
|
94
|
-
var r;
|
|
95
|
-
return (r = e == null ? void 0 : e.itemSpecific) == null ? void 0 : r.rounding;
|
|
96
|
-
},
|
|
93
|
+
default: ({ theme: e }) => e?.itemSpecific?.rounding,
|
|
97
94
|
min: 0,
|
|
98
95
|
max: 20,
|
|
99
96
|
step: 1,
|
|
100
|
-
extraLabel: ({ options: e, theme:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
|
|
104
|
-
},
|
|
105
|
-
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
106
|
-
var t;
|
|
107
|
-
return !(typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
|
|
97
|
+
extraLabel: ({ options: e, theme: t }) => {
|
|
98
|
+
if (typeof t?.itemSpecific?.rounding == "number")
|
|
99
|
+
return typeof e?.roundedCorners != "number" ? "auto" : "reset";
|
|
108
100
|
},
|
|
101
|
+
extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.rounding != "number" || typeof e?.roundedCorners != "number"),
|
|
109
102
|
extraLabelClickAction: ({ options: e }) => {
|
|
110
|
-
const
|
|
111
|
-
return delete
|
|
103
|
+
const t = { ...e };
|
|
104
|
+
return delete t.roundedCorners, { value: null, options: t };
|
|
112
105
|
}
|
|
113
106
|
}
|
|
114
107
|
},
|
|
@@ -117,25 +110,18 @@ const c = [
|
|
|
117
110
|
control: {
|
|
118
111
|
type: "slider",
|
|
119
112
|
label: "Internal padding",
|
|
120
|
-
default: ({ theme: e }) =>
|
|
121
|
-
var r;
|
|
122
|
-
return (r = e == null ? void 0 : e.itemSpecific) == null ? void 0 : r.padding;
|
|
123
|
-
},
|
|
113
|
+
default: ({ theme: e }) => e?.itemSpecific?.padding,
|
|
124
114
|
min: 0,
|
|
125
115
|
max: 20,
|
|
126
116
|
step: 1,
|
|
127
|
-
extraLabel: ({ options: e, theme:
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
return typeof (e == null ? void 0 : e.internalPadding) != "number" ? "auto" : "reset";
|
|
131
|
-
},
|
|
132
|
-
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
133
|
-
var t;
|
|
134
|
-
return !(typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.padding) != "number" || typeof (e == null ? void 0 : e.internalPadding) != "number");
|
|
117
|
+
extraLabel: ({ options: e, theme: t }) => {
|
|
118
|
+
if (typeof t?.itemSpecific?.padding == "number")
|
|
119
|
+
return typeof e?.internalPadding != "number" ? "auto" : "reset";
|
|
135
120
|
},
|
|
121
|
+
extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.padding != "number" || typeof e?.internalPadding != "number"),
|
|
136
122
|
extraLabelClickAction: ({ options: e }) => {
|
|
137
|
-
const
|
|
138
|
-
return delete
|
|
123
|
+
const t = { ...e };
|
|
124
|
+
return delete t.internalPadding, { value: null, options: t };
|
|
139
125
|
}
|
|
140
126
|
}
|
|
141
127
|
}
|
|
@@ -187,16 +173,16 @@ const c = [
|
|
|
187
173
|
control: {
|
|
188
174
|
type: "color-picker",
|
|
189
175
|
label: "Measure axis color",
|
|
190
|
-
default: ({ theme: e }) =>
|
|
191
|
-
extraLabel: ({ options: e, theme:
|
|
192
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
176
|
+
default: ({ theme: e }) => l(e),
|
|
177
|
+
extraLabel: ({ options: e, theme: t }) => i(e, t, "axis.x.color"),
|
|
178
|
+
extraLabelHasClickAction: ({ options: e, theme: t }) => o(
|
|
193
179
|
e,
|
|
194
|
-
|
|
180
|
+
t,
|
|
195
181
|
"axis.x.color"
|
|
196
182
|
),
|
|
197
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
183
|
+
extraLabelClickAction: ({ options: e, theme: t }) => r(
|
|
198
184
|
e,
|
|
199
|
-
|
|
185
|
+
t,
|
|
200
186
|
"axis.x.color"
|
|
201
187
|
)
|
|
202
188
|
}
|
|
@@ -238,16 +224,16 @@ const c = [
|
|
|
238
224
|
control: {
|
|
239
225
|
type: "color-picker",
|
|
240
226
|
label: "Category axis color",
|
|
241
|
-
default: ({ theme: e }) =>
|
|
242
|
-
extraLabel: ({ options: e, theme:
|
|
243
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
227
|
+
default: ({ theme: e }) => l(e),
|
|
228
|
+
extraLabel: ({ options: e, theme: t }) => i(e, t, "axis.y.color"),
|
|
229
|
+
extraLabelHasClickAction: ({ options: e, theme: t }) => o(
|
|
244
230
|
e,
|
|
245
|
-
|
|
231
|
+
t,
|
|
246
232
|
"axis.y.color"
|
|
247
233
|
),
|
|
248
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
234
|
+
extraLabelClickAction: ({ options: e, theme: t }) => r(
|
|
249
235
|
e,
|
|
250
|
-
|
|
236
|
+
t,
|
|
251
237
|
"axis.y.color"
|
|
252
238
|
)
|
|
253
239
|
}
|
|
@@ -281,5 +267,5 @@ const c = [
|
|
|
281
267
|
}
|
|
282
268
|
];
|
|
283
269
|
export {
|
|
284
|
-
|
|
270
|
+
n as default
|
|
285
271
|
};
|
|
@@ -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("./helpers-9I0oLoUB.cjs"),o=[{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:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:({theme:e})=>e?.itemSpecific?.rounding,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.rounding=="number")return typeof e?.roundedCorners!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.rounding!="number"||typeof e?.roundedCorners!="number"),extraLabelClickAction:({options:e})=>{const t={...e};return delete t.roundedCorners,{value:null,options:t}}}},{key:"internalPadding",control:{type:"slider",label:"Internal padding",default:({theme:e})=>e?.itemSpecific?.padding,min:0,max:20,step:1,extraLabel:({options:e,theme:t})=>{if(typeof t?.itemSpecific?.padding=="number")return typeof e?.internalPadding!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:t})=>!(typeof t?.itemSpecific?.padding!="number"||typeof e?.internalPadding!="number"),extraLabelClickAction:({options:e})=>{const t={...e};return delete t.internalPadding,{value:null,options:t}}}}]},{key:"order",type:"group",label:"Order & Limit",open:!0,children:[{key:"sort.by",control:{type:"picker",label:"Ordering",default:"category",enum:["category","leftbar","rightbar","measure"]}},{key:"sort.direction",control:{type:"picker",default:"desc",enum:["asc","desc"]}}]},{key:"axes",type:"group",open:!0,children:[{key:"axis.x.color",control:{type:"color-picker",label:"Measure axis color",default:({theme:e})=>r.getThemeAxisColor(e),extraLabel:({options:e,theme:t})=>r.getThemeAxisColorResetLabel(e,t,"axis.x.color"),extraLabelHasClickAction:({options:e,theme:t})=>r.getThemeAxisColorExtraLabelHasClickAction(e,t,"axis.x.color"),extraLabelClickAction:({options:e,theme:t})=>r.getThemeAxisColorExtraLabelClickAction(e,t,"axis.x.color")}},{key:"measureAxisTicks",type:"group",label:"Measure axis ticks",collapsible:!0,open:!0,children:[{key:"axis.x.ticksDensity",control:{type:"picker",label:"Density",default:"normal",enum:["compact","normal","sparse"]}},{key:"axis.x.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]},{key:"axis.y.color",control:{type:"color-picker",label:"Category axis color",default:({theme:e})=>r.getThemeAxisColor(e),extraLabel:({options:e,theme:t})=>r.getThemeAxisColorResetLabel(e,t,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:t})=>r.getThemeAxisColorExtraLabelHasClickAction(e,t,"axis.y.color"),extraLabelClickAction:({options:e,theme:t})=>r.getThemeAxisColorExtraLabelClickAction(e,t,"axis.y.color")}}]},{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"]}}]}];exports.default=o;
|
package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js}
RENAMED
|
@@ -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 t, l;
|
|
23
|
-
return Array.isArray(e) && ((l = (t = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "color")) == null ? void 0 : t.content) == null ? void 0 : l.length) > 0;
|
|
24
|
-
}, p = ({ slots: e }) => {
|
|
25
|
-
var t, l;
|
|
26
|
-
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? !(((l = (t = e == null ? void 0 : e.find((r) => (r == null ? void 0 : r.name) === "color")) == null ? void 0 : t.content) == null ? void 0 : l.length) > 0) : !0;
|
|
27
|
-
}, d = [
|
|
20
|
+
import { g as o, a as i, b as r, c as a } from "./helpers-bR8Ibjqh.js";
|
|
21
|
+
const l = ({ slots: e }) => Array.isArray(e) && e?.find((t) => t?.name === "color")?.content?.length > 0, n = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? !(e?.find((t) => t?.name === "color")?.content?.length > 0) : !0, c = [
|
|
28
22
|
{
|
|
29
23
|
key: "general",
|
|
30
24
|
type: "group",
|
|
@@ -45,7 +39,7 @@ const a = ({ slots: e }) => {
|
|
|
45
39
|
label: "Legend",
|
|
46
40
|
default: !0
|
|
47
41
|
},
|
|
48
|
-
visibleIf:
|
|
42
|
+
visibleIf: l
|
|
49
43
|
}
|
|
50
44
|
]
|
|
51
45
|
},
|
|
@@ -59,12 +53,12 @@ const a = ({ slots: e }) => {
|
|
|
59
53
|
control: {
|
|
60
54
|
type: "color-picker",
|
|
61
55
|
label: "Color",
|
|
62
|
-
default: ({ theme: e }) =>
|
|
63
|
-
extraLabel: ({ options: e, theme: t }) =>
|
|
64
|
-
extraLabelHasClickAction: ({ options: e, theme: t }) =>
|
|
65
|
-
extraLabelClickAction: ({ options: e, theme: t }) =>
|
|
56
|
+
default: ({ theme: e }) => a(e),
|
|
57
|
+
extraLabel: ({ options: e, theme: t }) => r(e, t, "color"),
|
|
58
|
+
extraLabelHasClickAction: ({ options: e, theme: t }) => i(e, t, "color"),
|
|
59
|
+
extraLabelClickAction: ({ options: e, theme: t }) => o(e, t, "color")
|
|
66
60
|
},
|
|
67
|
-
visibleIf:
|
|
61
|
+
visibleIf: n
|
|
68
62
|
},
|
|
69
63
|
{
|
|
70
64
|
key: "fillOpacity",
|
|
@@ -104,10 +98,7 @@ const a = ({ slots: e }) => {
|
|
|
104
98
|
max: 7,
|
|
105
99
|
step: 1
|
|
106
100
|
},
|
|
107
|
-
visibleIf: ({ options: e }) =>
|
|
108
|
-
var t;
|
|
109
|
-
return (t = e == null ? void 0 : e.display) == null ? void 0 : t.points;
|
|
110
|
-
}
|
|
101
|
+
visibleIf: ({ options: e }) => e?.display?.points
|
|
111
102
|
}
|
|
112
103
|
]
|
|
113
104
|
},
|
|
@@ -135,12 +126,9 @@ const a = ({ slots: e }) => {
|
|
|
135
126
|
}
|
|
136
127
|
}
|
|
137
128
|
],
|
|
138
|
-
visibleIf: ({ options: e, slots: t }) => {
|
|
139
|
-
var l;
|
|
140
|
-
return ((l = e == null ? void 0 : e.display) == null ? void 0 : l.legend) !== !1 && a({ slots: t });
|
|
141
|
-
}
|
|
129
|
+
visibleIf: ({ options: e, slots: t }) => e?.display?.legend !== !1 && l({ slots: t })
|
|
142
130
|
}
|
|
143
131
|
];
|
|
144
132
|
export {
|
|
145
|
-
|
|
133
|
+
c as default
|
|
146
134
|
};
|
|
@@ -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 l=require("./helpers-9I0oLoUB.cjs"),o=({slots:e})=>Array.isArray(e)&&e?.find(t=>t?.name==="color")?.content?.length>0,i=({slots:e})=>Array.isArray(e)&&e?.length>0?!(e?.find(t=>t?.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:o}]},{key:"radar",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Color",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>l.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>l.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>l.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:i},{key:"fillOpacity",control:{type:"slider",label:"Fill opacity",default:.05,min:0,max:.7,step:.01}},{key:"interpolation",control:{type:"picker",label:"Interpolation",default:"linear",enum:["linear","rounded"]}},{key:"display.points",control:{type:"switch",label:"Show points",default:!1}},{key:"pointSize",control:{type:"slider",label:"Point size",default:3,min:2,max:7,step:1},visibleIf:({options:e})=>e?.display?.points}]},{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:({options:e,slots:t})=>e?.display?.legend!==!1&&o({slots:t})}];exports.default=r;
|
|
@@ -17,8 +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
|
|
20
|
+
import { g as a, a as l, b as r, c as t, d as c, e as n, f as s, h as b } from "./helpers-bR8Ibjqh.js";
|
|
21
|
+
const d = [
|
|
22
22
|
{
|
|
23
23
|
key: "general",
|
|
24
24
|
type: "group",
|
|
@@ -77,16 +77,16 @@ const i = [
|
|
|
77
77
|
control: {
|
|
78
78
|
type: "color-picker",
|
|
79
79
|
label: "Headers background",
|
|
80
|
-
default: ({ theme: e }) =>
|
|
81
|
-
extraLabel: ({ options: e, theme:
|
|
82
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
80
|
+
default: ({ theme: e }) => t(e),
|
|
81
|
+
extraLabel: ({ options: e, theme: o }) => r(e, o, "headers.background"),
|
|
82
|
+
extraLabelHasClickAction: ({ options: e, theme: o }) => l(
|
|
83
83
|
e,
|
|
84
|
-
|
|
84
|
+
o,
|
|
85
85
|
"headers.background"
|
|
86
86
|
),
|
|
87
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
87
|
+
extraLabelClickAction: ({ options: e, theme: o }) => a(
|
|
88
88
|
e,
|
|
89
|
-
|
|
89
|
+
o,
|
|
90
90
|
"headers.background"
|
|
91
91
|
)
|
|
92
92
|
}
|
|
@@ -133,23 +133,20 @@ const i = [
|
|
|
133
133
|
control: {
|
|
134
134
|
type: "color-picker",
|
|
135
135
|
label: "Color",
|
|
136
|
-
default: ({ theme: e }) =>
|
|
137
|
-
extraLabel: ({ options: e, theme:
|
|
138
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
136
|
+
default: ({ theme: e }) => b(e),
|
|
137
|
+
extraLabel: ({ options: e, theme: o }) => s(e, o, "tableBorders.color"),
|
|
138
|
+
extraLabelHasClickAction: ({ options: e, theme: o }) => n(
|
|
139
139
|
e,
|
|
140
|
-
|
|
140
|
+
o,
|
|
141
141
|
"tableBorders.color"
|
|
142
142
|
),
|
|
143
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
143
|
+
extraLabelClickAction: ({ options: e, theme: o }) => c(
|
|
144
144
|
e,
|
|
145
|
-
|
|
145
|
+
o,
|
|
146
146
|
"tableBorders.color"
|
|
147
147
|
)
|
|
148
148
|
},
|
|
149
|
-
visibleIf: ({ options: e }) =>
|
|
150
|
-
var a, l;
|
|
151
|
-
return ((a = e == null ? void 0 : e.tableBorders) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.tableBorders) == null ? void 0 : l.type) !== "none";
|
|
152
|
-
}
|
|
149
|
+
visibleIf: ({ options: e }) => e?.tableBorders?.type && e?.tableBorders?.type !== "none"
|
|
153
150
|
},
|
|
154
151
|
{
|
|
155
152
|
key: "tableBorders.width",
|
|
@@ -162,14 +159,11 @@ const i = [
|
|
|
162
159
|
step: 1,
|
|
163
160
|
unit: "px"
|
|
164
161
|
},
|
|
165
|
-
visibleIf: ({ options: e }) =>
|
|
166
|
-
var a, l;
|
|
167
|
-
return ((a = e == null ? void 0 : e.tableBorders) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.tableBorders) == null ? void 0 : l.type) !== "none";
|
|
168
|
-
}
|
|
162
|
+
visibleIf: ({ options: e }) => e?.tableBorders?.type && e?.tableBorders?.type !== "none"
|
|
169
163
|
}
|
|
170
164
|
]
|
|
171
165
|
}
|
|
172
166
|
];
|
|
173
167
|
export {
|
|
174
|
-
|
|
168
|
+
d as default
|
|
175
169
|
};
|
|
@@ -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"),r=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"alternateRowColor",control:{type:"switch",label:"Alternate row coloring",default:!0}},{key:"rowHeight",control:{type:"picker",label:"Row height",default:"default",enum:["veryCompact","compact","default","comfortable","veryComfortable","spacious"],toValue:e=>({veryCompact:22,compact:24,default:28,comfortable:32,veryComfortable:36,spacious:40})[e]??28,parseValue:e=>({22:"veryCompact",24:"compact",28:"default",32:"comfortable",36:"veryComfortable",40:"spacious"})[e]??"default"}},{key:"headers.background",control:{type:"color-picker",label:"Headers background",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:o})=>l.getThemeMainColorResetLabel(e,o,"headers.background"),extraLabelHasClickAction:({options:e,theme:o})=>l.getThemeMainColorExtraLabelHasClickAction(e,o,"headers.background"),extraLabelClickAction:({options:e,theme:o})=>l.getThemeMainColorExtraLabelClickAction(e,o,"headers.background")}}]},{key:"borders",type:"group",open:!0,children:[{key:"tableBorders.type",control:{type:"action-button-group",label:"Type",default:["none"],values:{none:{iconName:"ban",label:"no border"},all:{iconName:"table",label:"row and column borders"},rows:{iconName:"rows",label:"rows border"},columns:{iconName:"columns",label:"columns border"}},selects:"single"}},{key:"tableBorders.color",control:{type:"color-picker",label:"Color",default:({theme:e})=>l.getThemeBorderColor(e),extraLabel:({options:e,theme:o})=>l.getThemeBorderColorResetLabel(e,o,"tableBorders.color"),extraLabelHasClickAction:({options:e,theme:o})=>l.getThemeBorderColorExtraLabelHasClickAction(e,o,"tableBorders.color"),extraLabelClickAction:({options:e,theme:o})=>l.getThemeBorderColorExtraLabelClickAction(e,o,"tableBorders.color")},visibleIf:({options:e})=>e?.tableBorders?.type&&e?.tableBorders?.type!=="none"},{key:"tableBorders.width",control:{type:"number-field",label:"Width",default:1,min:1,max:20,step:1,unit:"px"},visibleIf:({options:e})=>e?.tableBorders?.type&&e?.tableBorders?.type!=="none"}]}];exports.default=r;
|
|
@@ -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 t=require("./color-palettes-DhNHcib8.cjs"),y=require("./index-DhDgy1sp.cjs"),i=require("./helpers-9I0oLoUB.cjs"),s=require("./color-range-utils-DYYR-iwx.cjs"),C=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(a=>a?.name==="legend")?.content?.length===0:!0,r=({slots:e})=>{if(Array.isArray(e)&&e?.length>0){const a=e?.find(l=>l?.name==="legend");if(a){const l=a?.content;if(l)return l?.filter(n=>n?.type==="numeric")?.length>0}}return!1},f=[{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}},{key:"lineWeight",control:{type:"slider",label:"Line weight",default:4,min:1,max:8,step: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?.name||"Basic",toValue:e=>y.mapVectorTileProviders[e]??{}}}]},{key:"colors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"color",control:{type:"color-picker",label:"Route color",default:({theme:e})=>i.getThemeMainColor(e),extraLabel:({options:e,theme:a})=>i.getThemeMainColorResetLabel(e,a,"color"),extraLabelHasClickAction:({options:e,theme:a})=>i.getThemeMainColorExtraLabelHasClickAction(e,a,"color"),extraLabelClickAction:({options:e,theme:a})=>i.getThemeMainColorExtraLabelClickAction(e,a,"color")},visibleIf:C},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],calculateValue:({options:e})=>e?.colorsClass==="manual"?"manual":t.getColorMaps()?.[e?.colorsClass]?.type??"sequential",toOptions:({options:e,value:a})=>{const l=e?.colorsClass??"PuBu",n=e?.numberClasses??5,o=s.toRangesWithValue(e?.manualValues?.ranges),g=l==="manual"?"manual":l;let u;if(a==="manual")u="manual";else{const p=t.getColorMaps()?.[e?.colorsClass]?.type;a!==p&&(u=t.getColorMapKeys(a??"sequential")[0])}const c={...e,colorsClass:u};if(a==="manual"||e?.classification==="manual"){const m=s.calculateManualRanges(n,a==="manual"?g:u,o);c.manualValues={...c.manualValues,ranges:s.toRangesWithVal(m)}}else delete c?.manualValues?.ranges;return c}},visibleIf:r},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{const l=t.getColorMaps()?.[e?.colorsClass]?.type;return t.getColorMapKeys(l??"sequential")[0]},enum:({options:e})=>{const l=t.getColorMaps()?.[e?.colorsClass]?.type;return t.getColorMapKeys(l??"sequential")},toOptions:({options:e,value:a})=>{const l={...e,colorsClass:a};if(e?.classification==="manual"){const n=t.getColorMaps()[a]?.[`colors${e?.numberClasses??5}`];l.manualValues={...l.manualValues,ranges:e?.manualValues?.ranges.map(o=>({...o,color:n?.[o.val]}))}}return l}},visibleIf:({options:e,slots:a})=>r({slots:a})&&e?.colorsClass!=="manual"},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!0,noAlphaChannel:!0,label:"Manual range colors",hideLabel:!0},calculateValue:({options:e})=>s.calculateManualRanges(e?.numberClasses,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges)),toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:s.toRangesWithVal(a)}}),visibleIf:({options:e,slots:a})=>r({slots:a})&&e?.colorsClass==="manual"}]},{key:"classification",type:"group",open:!0,children:[{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"5",enum:["3","4","5","6","7","8","9"],parseValue:e=>e?.toString()??"5",toOptions:({options:e,value:a})=>{a=Number.parseInt(a,10)??5;const l={...e,numberClasses:a};if(e?.classification==="manual"||e?.colorsClass==="manual"){const n=s.calculateManualRanges(a,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges));l.manualValues={...l.manualValues,ranges:s.toRangesWithVal(n)}}return l}},visibleIf:r},{key:"classification",control:{type:"picker",label:"Method",default:"interval",enum:["interval","manual","quantile","continuous"],toOptions:({options:e,value:a})=>{const l={...e,classification:a};if(a==="manual"||e?.colorsClass==="manual"){const n=s.calculateManualRanges(e?.numberClasses,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges));l.manualValues={...l.manualValues,ranges:s.toRangesWithVal(n)}}else delete l?.manualValues?.ranges;return l}},visibleIf:r},{key:"manualValues.rangesValues",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!1,readOnlyColorPicker:!0,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>s.calculateManualRanges(e?.numberClasses,e?.colorsClass,s.toRangesWithValue(e?.manualValues?.ranges)),toOptions:({options:e,value:a})=>({...e,manualValues:{...e.manualValues,ranges:s.toRangesWithVal(a)}})},visibleIf:({options:e,slots:a})=>r({slots:a})&&e?.classification==="manual"}],visibleIf:r}];exports.default=f;
|