@luzmo/analytics-components-kit 1.0.1-alpha.86 → 1.0.1-alpha.89
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/components/display-settings-binning.component.ts +2 -2
- package/angular/components/display-settings-datetime.component.ts +2 -2
- package/angular/components/display-settings-grand-totals.component.ts +2 -2
- package/angular/components/display-settings-numeric.component.ts +2 -2
- package/angular/components/display-settings.component.ts +3 -3
- package/angular/components/draggable-data-item/index.ts +1 -0
- package/angular/components/draggable-data-item/types.ts +40 -0
- package/angular/components/draggable-data-item-level/index.ts +1 -0
- package/angular/components/draggable-data-item-level/types.ts +15 -0
- package/angular/components/draggable-data-item-level.component.ts +4 -10
- package/angular/components/draggable-data-item.component.ts +4 -10
- package/angular/components/droppable-slot/index.ts +1 -0
- package/angular/components/droppable-slot/types.ts +16 -0
- package/angular/components/droppable-slot.component.ts +5 -3
- package/angular/components/slot-menu/index.ts +1 -0
- package/angular/components/slot-menu/types.ts +31 -0
- package/angular/components/slot-menu-list.component.ts +2 -2
- package/angular/components/slot-menu.component.ts +3 -3
- package/angular/esm/components/display-settings-binning.component.d.ts +2 -1
- package/angular/esm/components/display-settings-datetime.component.d.ts +2 -2
- package/angular/esm/components/display-settings-grand-totals.component.d.ts +2 -1
- package/angular/esm/components/display-settings-numeric.component.d.ts +2 -1
- package/angular/esm/components/display-settings.component.d.ts +3 -3
- package/angular/esm/components/draggable-data-item/index.d.ts +1 -0
- package/angular/esm/components/draggable-data-item/index.js +1 -0
- package/angular/esm/components/draggable-data-item/types.d.ts +22 -0
- package/angular/esm/components/draggable-data-item/types.js +1 -0
- package/angular/esm/components/draggable-data-item-level/index.d.ts +1 -0
- package/angular/esm/components/draggable-data-item-level/index.js +1 -0
- package/angular/esm/components/draggable-data-item-level/types.d.ts +12 -0
- package/angular/esm/components/draggable-data-item-level/types.js +1 -0
- package/angular/esm/components/draggable-data-item-level.component.d.ts +9 -7
- package/angular/esm/components/draggable-data-item-level.component.js +2 -17
- package/angular/esm/components/draggable-data-item.component.d.ts +9 -7
- package/angular/esm/components/draggable-data-item.component.js +2 -17
- package/angular/esm/components/droppable-slot/index.d.ts +1 -0
- package/angular/esm/components/droppable-slot/index.js +1 -0
- package/angular/esm/components/droppable-slot/types.d.ts +9 -0
- package/angular/esm/components/droppable-slot/types.js +1 -0
- package/angular/esm/components/droppable-slot.component.d.ts +5 -4
- package/angular/esm/components/droppable-slot.component.js +7 -2
- package/angular/esm/components/slot-menu/index.d.ts +1 -0
- package/angular/esm/components/slot-menu/index.js +1 -0
- package/angular/esm/components/slot-menu/types.d.ts +25 -0
- package/angular/esm/components/slot-menu/types.js +1 -0
- package/angular/esm/components/slot-menu-list.component.d.ts +2 -1
- package/angular/esm/components/slot-menu.component.d.ts +3 -3
- package/angular/esm/types.d.ts +9 -3
- package/angular/tsconfig.json +3 -0
- package/angular/types.ts +24 -3
- package/angular/utils/base/base.d.ts +16 -0
- package/angular/utils/base/focus-visible.d.ts +29 -0
- package/angular/utils/base/focusable.d.ts +58 -0
- package/angular/utils/base/index.d.ts +4 -0
- package/angular/utils/base/sized-mixin.d.ts +17 -0
- package/angular/utils/color/color-palettes.d.ts +17 -0
- package/angular/utils/color/extrapolate-color.d.ts +1 -0
- package/angular/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
- package/angular/utils/data-broker/index.d.ts +191 -0
- package/angular/utils/data-item-types/calculate-data-item-icon.d.ts +10 -0
- package/angular/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
- package/angular/utils/drag/draggable.d.ts +13 -0
- package/angular/utils/filters/expressions.d.ts +15 -0
- package/angular/utils/filters/index.d.ts +1 -0
- package/angular/utils/formatter/calculate-duration.d.ts +2 -0
- package/angular/utils/formatter/decompose-numeric-format.d.ts +11 -0
- package/angular/utils/formatter/default-local-formats.d.ts +20 -0
- package/angular/utils/formatter/formats/cs.d.ts +20 -0
- package/angular/utils/formatter/formats/da.d.ts +20 -0
- package/angular/utils/formatter/formats/de.d.ts +21 -0
- package/angular/utils/formatter/formats/en-GB.d.ts +21 -0
- package/angular/utils/formatter/formats/en-US.d.ts +1 -0
- package/angular/utils/formatter/formats/en.d.ts +1 -0
- package/angular/utils/formatter/formats/es.d.ts +54 -0
- package/angular/utils/formatter/formats/fi.d.ts +20 -0
- package/angular/utils/formatter/formats/fr.d.ts +54 -0
- package/angular/utils/formatter/formats/he.d.ts +20 -0
- package/angular/utils/formatter/formats/hu.d.ts +20 -0
- package/angular/utils/formatter/formats/it.d.ts +54 -0
- package/angular/utils/formatter/formats/ja.d.ts +20 -0
- package/angular/utils/formatter/formats/ko.d.ts +20 -0
- package/angular/utils/formatter/formats/mk.d.ts +20 -0
- package/angular/utils/formatter/formats/nl.d.ts +21 -0
- package/angular/utils/formatter/formats/no.d.ts +21 -0
- package/angular/utils/formatter/formats/pl.d.ts +20 -0
- package/angular/utils/formatter/formats/pt.d.ts +20 -0
- package/angular/utils/formatter/formats/ru.d.ts +20 -0
- package/angular/utils/formatter/formats/sv.d.ts +20 -0
- package/angular/utils/formatter/formats/tr.d.ts +21 -0
- package/angular/utils/formatter/formats/zh-CN.d.ts +20 -0
- package/angular/utils/formatter/formats/zh-TW.d.ts +20 -0
- package/angular/utils/formatter/formatter.d.ts +9 -0
- package/angular/utils/formatter/localize.d.ts +3 -0
- package/angular/utils/formatter/smart-datetime-formats.const.d.ts +36 -0
- package/angular/utils/get-css-variable.d.ts +1 -0
- package/angular/utils/index.d.ts +7 -0
- package/angular/utils/localize/set-locale.d.ts +7 -0
- package/angular/utils/map-tile-providers/index.d.ts +93 -0
- package/angular/utils/store/slot-context.d.ts +4 -0
- package/angular/utils/store/slot-store.d.ts +39 -0
- package/angular/utils/switch-item/index.d.ts +14 -0
- package/angular/utils/themes/bliss.d.ts +43 -0
- package/angular/utils/themes/classic-dark.d.ts +34 -0
- package/angular/utils/themes/classic.d.ts +43 -0
- package/angular/utils/themes/default-dark.d.ts +46 -0
- package/angular/utils/themes/default.d.ts +46 -0
- package/angular/utils/themes/index.d.ts +3 -0
- package/angular/utils/themes/orion.d.ts +44 -0
- package/angular/utils/themes/pinky.d.ts +42 -0
- package/angular/utils/themes/radiant.d.ts +42 -0
- package/angular/utils/themes/royale.d.ts +36 -0
- package/angular/utils/themes/seasonal.d.ts +43 -0
- package/angular/utils/themes/urban.d.ts +44 -0
- package/angular/utils/themes/vivid.d.ts +42 -0
- package/angular/utils/time/formats.const.d.ts +4 -0
- package/angular/utils/time/periods.const.d.ts +15 -0
- package/angular/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
- package/angular/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
- package/angular/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
- package/angular/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
- package/angular/utils/types/type-check.d.ts +7 -0
- 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-DjW1_RI1.cjs → calculate-data-item-icon-DtVGbet3.cjs} +1 -1
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +51 -53
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/display-settings.d.ts +4 -2
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/display-settings-binning.d.ts +2 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/display-settings-datetime.d.ts +2 -1
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/display-settings-grand-totals.d.ts +2 -1
- 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 +2 -1
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +192 -209
- 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/draggable-data-item.d.ts +5 -7
- package/components/draggable-data-item/index.cjs +16 -22
- package/components/draggable-data-item/index.d.ts +1 -0
- package/components/draggable-data-item/index.js +79 -87
- package/components/draggable-data-item/types.d.ts +22 -0
- package/components/draggable-data-item-level/draggable-data-item-level.d.ts +4 -6
- package/components/draggable-data-item-level/helpers/generate-preview.d.ts +9 -1
- package/components/draggable-data-item-level/index.cjs +13 -13
- package/components/draggable-data-item-level/index.js +85 -106
- package/components/draggable-data-item-level/types.d.ts +12 -0
- 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/droppable-slot.d.ts +4 -2
- package/components/droppable-slot/index.cjs +20 -20
- package/components/droppable-slot/index.d.ts +1 -0
- package/components/droppable-slot/index.js +239 -254
- package/components/droppable-slot/types.d.ts +9 -0
- 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-COd1d84B.cjs +24 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-CdwF98oh.js} +35 -35
- 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-PMDgRSzR.js → index-DdyZ2g5L.js} +94 -104
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +28 -26
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-B-Tz2sdI.js → set-locale-hKTMz37h.js} +7 -9
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.d.ts +1 -0
- package/components/slot-menu/index.js +174 -192
- package/components/slot-menu/slot-menu.d.ts +7 -6
- package/components/slot-menu/types.d.ts +25 -0
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/slot-menu-list/slot-menu-list.d.ts +2 -1
- 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 +131 -65
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +143 -126
- package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +1 -1
- package/package.json +3 -3
- package/types.d.ts +9 -3
- package/utils/data/load-draggable-items-for-datasets.d.ts +24 -0
- package/utils/data-broker/index.d.ts +69 -66
- package/utils/data-item-types/calculate-data-item-icon.d.ts +8 -2
- package/utils/data-item-types/tests/calculate-data-item-icon.test.d.ts +1 -0
- package/utils/index.d.ts +2 -0
- package/utils/transformations/convert-data-item-to-slot-content.d.ts +9 -0
- package/utils/transformations/convert-datasets-to-draggable-items.d.ts +17 -0
- package/utils/transformations/tests/convert-data-item-to-slot-content.test.d.ts +1 -0
- package/utils/transformations/tests/convert-datasets-to-draggable-items.test.d.ts +1 -0
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-DZDqb3xu.js +0 -139
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/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-BPN3bG9X.js +0 -1733
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-cfj52IbK.cjs +0 -20
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
- package/utils/types/column.types.d.ts +0 -57
|
@@ -17,17 +17,14 @@
|
|
|
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 { d as
|
|
21
|
-
const
|
|
22
|
-
var a, l, r, u;
|
|
23
|
-
return ((l = (a = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.name) === "target")) == null ? void 0 : a.content) == null ? void 0 : l.length) === 0 && ((u = (r = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.name) === "measure")) == null ? void 0 : r.content) == null ? void 0 : u.length) > 0;
|
|
24
|
-
}, s = [
|
|
20
|
+
import { d as n, j as u, k as o, l as i } from "./helpers-bR8Ibjqh.js";
|
|
21
|
+
const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 && e?.find((a) => a?.name === "measure")?.content?.length > 0, m = [
|
|
25
22
|
{ color: "#ff0000", value: 0 },
|
|
26
23
|
{ color: "#ffa500", value: 25 },
|
|
27
24
|
{ color: "#ffff00", value: 50 },
|
|
28
25
|
{ color: "#008000", value: 75 },
|
|
29
26
|
{ color: "#006400", value: 100 }
|
|
30
|
-
],
|
|
27
|
+
], d = [
|
|
31
28
|
{
|
|
32
29
|
key: "general",
|
|
33
30
|
type: "group",
|
|
@@ -107,25 +104,24 @@ const g = (e) => {
|
|
|
107
104
|
default: "relative",
|
|
108
105
|
enum: ["relative", "absolute"],
|
|
109
106
|
toOptions: ({ options: e, value: a }) => {
|
|
110
|
-
|
|
111
|
-
const l = ((u = e == null ? void 0 : e.manualValues) == null ? void 0 : u.mode) ?? "relative", r = {
|
|
107
|
+
const r = e?.manualValues?.mode ?? "relative", l = {
|
|
112
108
|
...e,
|
|
113
109
|
manualValues: {
|
|
114
110
|
...e.manualValues,
|
|
115
111
|
mode: a
|
|
116
112
|
}
|
|
117
113
|
};
|
|
118
|
-
return a === "absolute" &&
|
|
119
|
-
(
|
|
120
|
-
...
|
|
121
|
-
val:
|
|
114
|
+
return a === "absolute" && r === "relative" && l.manualValues?.ranges && l.manualValues?.target ? l.manualValues.ranges = l.manualValues.ranges.map(
|
|
115
|
+
(t) => ({
|
|
116
|
+
...t,
|
|
117
|
+
val: t.val * l.manualValues.target / 100
|
|
122
118
|
})
|
|
123
|
-
) : a === "relative" &&
|
|
124
|
-
(
|
|
125
|
-
...
|
|
126
|
-
value:
|
|
119
|
+
) : a === "relative" && r === "absolute" && l.manualValues?.ranges?.length && (l.manualValues.target = l.manualValues.ranges.at(-1)?.val, l.manualValues.ranges = l.manualValues.ranges.map(
|
|
120
|
+
(t) => ({
|
|
121
|
+
...t,
|
|
122
|
+
value: t.val * 100 / l.manualValues.target
|
|
127
123
|
})
|
|
128
|
-
)),
|
|
124
|
+
)), l;
|
|
129
125
|
}
|
|
130
126
|
}
|
|
131
127
|
},
|
|
@@ -137,10 +133,7 @@ const g = (e) => {
|
|
|
137
133
|
placeholder: "Target value",
|
|
138
134
|
minWidthInputField: "150px"
|
|
139
135
|
},
|
|
140
|
-
visibleIf: ({ options: e, slots: a }) =>
|
|
141
|
-
var l;
|
|
142
|
-
return ((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.mode) !== "absolute" && g(a);
|
|
143
|
-
}
|
|
136
|
+
visibleIf: ({ options: e, slots: a }) => e?.manualValues?.mode !== "absolute" && s(a)
|
|
144
137
|
},
|
|
145
138
|
{
|
|
146
139
|
key: "manualValues.ranges",
|
|
@@ -148,21 +141,18 @@ const g = (e) => {
|
|
|
148
141
|
type: "color-range",
|
|
149
142
|
editRangeSize: !0,
|
|
150
143
|
minimumRangeSize: 2,
|
|
151
|
-
percentage: ({ options: e }) =>
|
|
152
|
-
var a;
|
|
153
|
-
return ((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.mode) !== "absolute";
|
|
154
|
-
},
|
|
144
|
+
percentage: ({ options: e }) => e?.manualValues?.mode !== "absolute",
|
|
155
145
|
noAlphaChannel: !0,
|
|
156
146
|
hideLabel: !0,
|
|
157
147
|
label: "Color ranges",
|
|
158
|
-
default: () => structuredClone(
|
|
159
|
-
parseValue: (e) => e
|
|
160
|
-
color: a
|
|
161
|
-
value:
|
|
148
|
+
default: () => structuredClone(m),
|
|
149
|
+
parseValue: (e) => e?.map((a) => ({
|
|
150
|
+
color: a?.color,
|
|
151
|
+
value: a?.value ?? a?.val
|
|
162
152
|
})),
|
|
163
|
-
toValue: (e) => e
|
|
164
|
-
color: a
|
|
165
|
-
val: a
|
|
153
|
+
toValue: (e) => e?.map((a) => ({
|
|
154
|
+
color: a?.color,
|
|
155
|
+
val: a?.value
|
|
166
156
|
}))
|
|
167
157
|
}
|
|
168
158
|
}
|
|
@@ -194,23 +184,20 @@ const g = (e) => {
|
|
|
194
184
|
control: {
|
|
195
185
|
type: "color-picker",
|
|
196
186
|
label: "Marker color",
|
|
197
|
-
default: ({ theme: e }) =>
|
|
198
|
-
extraLabel: ({ options: e, theme: a }) =>
|
|
199
|
-
extraLabelHasClickAction: ({ options: e, theme: a }) =>
|
|
187
|
+
default: ({ theme: e }) => i(e),
|
|
188
|
+
extraLabel: ({ options: e, theme: a }) => o(e, a, "axis.y.color"),
|
|
189
|
+
extraLabelHasClickAction: ({ options: e, theme: a }) => u(
|
|
200
190
|
e,
|
|
201
191
|
a,
|
|
202
192
|
"axis.y.color"
|
|
203
193
|
),
|
|
204
|
-
extraLabelClickAction: ({ options: e, theme: a }) =>
|
|
194
|
+
extraLabelClickAction: ({ options: e, theme: a }) => n(
|
|
205
195
|
e,
|
|
206
196
|
a,
|
|
207
197
|
"axis.y.color"
|
|
208
198
|
)
|
|
209
199
|
},
|
|
210
|
-
visibleIf: ({ options: e }) =>
|
|
211
|
-
var a, l;
|
|
212
|
-
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type) !== "innerBand";
|
|
213
|
-
}
|
|
200
|
+
visibleIf: ({ options: e }) => e?.marker?.type && e?.marker?.type !== "innerBand"
|
|
214
201
|
},
|
|
215
202
|
{
|
|
216
203
|
key: "marker.centerBandWidth",
|
|
@@ -222,10 +209,7 @@ const g = (e) => {
|
|
|
222
209
|
max: 1,
|
|
223
210
|
step: 0.01
|
|
224
211
|
},
|
|
225
|
-
visibleIf: ({ options: e }) =>
|
|
226
|
-
var a, l;
|
|
227
|
-
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type) === "centerBand";
|
|
228
|
-
}
|
|
212
|
+
visibleIf: ({ options: e }) => e?.marker?.type && e?.marker?.type === "centerBand"
|
|
229
213
|
},
|
|
230
214
|
{
|
|
231
215
|
key: "marker.lineWidth",
|
|
@@ -237,10 +221,7 @@ const g = (e) => {
|
|
|
237
221
|
max: 10,
|
|
238
222
|
step: 1
|
|
239
223
|
},
|
|
240
|
-
visibleIf: ({ options: e }) =>
|
|
241
|
-
var a, l;
|
|
242
|
-
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type) === "line";
|
|
243
|
-
}
|
|
224
|
+
visibleIf: ({ options: e }) => e?.marker?.type && e?.marker?.type === "line"
|
|
244
225
|
},
|
|
245
226
|
{
|
|
246
227
|
key: "marker.arrowSize",
|
|
@@ -252,14 +233,11 @@ const g = (e) => {
|
|
|
252
233
|
max: 0.2,
|
|
253
234
|
step: 0.01
|
|
254
235
|
},
|
|
255
|
-
visibleIf: ({ options: e }) =>
|
|
256
|
-
var a, l;
|
|
257
|
-
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ["inside", "outside"].includes((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type);
|
|
258
|
-
}
|
|
236
|
+
visibleIf: ({ options: e }) => e?.marker?.type && ["inside", "outside"].includes(e?.marker?.type)
|
|
259
237
|
}
|
|
260
238
|
]
|
|
261
239
|
}
|
|
262
240
|
];
|
|
263
241
|
export {
|
|
264
|
-
|
|
242
|
+
d as default
|
|
265
243
|
};
|
|
@@ -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 o=require("./color-palettes-DhNHcib8.cjs"),f=require("./index-DhDgy1sp.cjs"),c=require("./helpers-9I0oLoUB.cjs"),t=require("./color-range-utils-DYYR-iwx.cjs"),b=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(l=>l?.name==="color")?.content?.length===0:!0,g=({slots:e})=>Array.isArray(e)&&e?.length>0?e?.find(l=>l?.name==="color")?.content?.length>0:!1,n=({slots:e})=>{if(Array.isArray(e)&&e?.length>0){const l=e?.find(a=>a?.name==="color");if(l){const a=l?.content;if(a)return a?.filter(s=>s?.type==="numeric")?.length>0}}return!1},d=[{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:g},{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?.name||"Basic",toValue:e=>f.mapVectorTileProviders[e]??{}}}]},{key:"spike",type:"group",open:!0,children:[{key:"color",control:{type:"color-picker",label:"Spike color",default:({theme:e})=>c.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>c.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>c.getThemeMainColorExtraLabelClickAction(e,l,"color")},visibleIf:b},{key:"spikeWidth",control:{type:"slider",label:"Width",default:30,min:1,max:100,step:1}},{key:"spikeHeight",control:{type:"slider",label:"Height",default:150,min:1,max:350,step:1}},{key:"strokeOpacity",control:{type:"slider",label:"Stroke opacity",default:.9,min:.1,max:1,step:.01}},{key:"fillOpacity",control:{type:"slider",label:"Fill opacity",default:.5,min:.1,max:1,step:.01}}]},{key:"colors",type:"group",open:!0,children:[{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],calculateValue:({options:e})=>e?.colorsClass==="manual"?"manual":o.getColorMaps()?.[e?.colorsClass]?.type??"sequential",toOptions:({options:e,value:l})=>{const a=e?.colorsClass??"PuBu",s=e?.numberClasses??5,r=t.toRangesWithValue(e?.manualValues?.ranges),m=a==="manual"?"manual":a;let u;if(l==="manual")u="manual";else{const y=o.getColorMaps()?.[e?.colorsClass]?.type;l!==y&&(u=o.getColorMapKeys(l??"sequential")[0])}const i={...e,colorsClass:u};if(l==="manual"||e?.classification==="manual"){const p=t.calculateManualRanges(s,l==="manual"?m:u,r);i.manualValues={...i.manualValues,ranges:t.toRangesWithVal(p)}}else delete i?.manualValues?.ranges;return i}},visibleIf:n},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{const a=o.getColorMaps()?.[e?.colorsClass]?.type;return o.getColorMapKeys(a??"sequential")[0]},enum:({options:e})=>{const a=o.getColorMaps()?.[e?.colorsClass]?.type;return o.getColorMapKeys(a??"sequential")},toOptions:({options:e,value:l})=>{const a={...e,colorsClass:l};if(e?.classification==="manual"){const s=o.getColorMaps()[l]?.[`colors${e?.numberClasses??5}`];a.manualValues={...a.manualValues,ranges:e?.manualValues?.ranges.map(r=>({...r,color:s?.[r.val]}))}}return a}},visibleIf:({options:e,slots:l})=>n({slots:l})&&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})=>t.calculateManualRanges(e?.numberClasses,e?.colorsClass,t.toRangesWithValue(e?.manualValues?.ranges)),toOptions:({options:e,value:l})=>({...e,manualValues:{...e.manualValues,ranges:t.toRangesWithVal(l)}}),visibleIf:({options:e,slots:l})=>n({slots:l})&&e?.colorsClass==="manual"}],visibleIf:n},{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:l})=>{l=Number.parseInt(l,10)??5;const a={...e,numberClasses:l};if(e?.classification==="manual"||e?.colorsClass==="manual"){const s=t.calculateManualRanges(l,e?.colorsClass,t.toRangesWithValue(e?.manualValues?.ranges));a.manualValues={...a.manualValues,ranges:t.toRangesWithVal(s)}}return a}},visibleIf:n},{key:"classification",control:{type:"picker",label:"Method",default:"interval",enum:["interval","manual","quantile","continuous"],toOptions:({options:e,value:l})=>{const a={...e,classification:l};if(l==="manual"||e?.colorsClass==="manual"){const s=t.calculateManualRanges(e?.numberClasses,e?.colorsClass,t.toRangesWithValue(e?.manualValues?.ranges));a.manualValues={...a.manualValues,ranges:t.toRangesWithVal(s)}}else delete a?.manualValues?.ranges;return a}},visibleIf:n},{key:"manualValues.rangesValues",control:{type:"color-range",editRangeSize:!1,debounce:500,noValues:!1,readOnlyColorPicker:!0,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>t.calculateManualRanges(e?.numberClasses,e?.colorsClass,t.toRangesWithValue(e?.manualValues?.ranges)),toOptions:({options:e,value:l})=>({...e,manualValues:{...e.manualValues,ranges:t.toRangesWithVal(l)}})},visibleIf:({options:e,slots:l})=>n({slots:l})&&e?.classification==="manual"}],visibleIf:n},{key:"legend",type:"group",open:!1,children:[{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})=>e?.display?.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})=>e?.display?.legend!==!1}],visibleIf:g}];exports.default=d;
|
package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js}
RENAMED
|
@@ -17,28 +17,21 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { g as
|
|
21
|
-
import { m as
|
|
22
|
-
import { g as
|
|
23
|
-
import { t as
|
|
24
|
-
const M = ({ slots: e }) => {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((r = (a = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color")) == null ? void 0 : a.content) == null ? void 0 : r.length) > 0 : !1;
|
|
30
|
-
}, c = ({ slots: e }) => {
|
|
31
|
-
var a;
|
|
32
|
-
if (Array.isArray(e) && (e == null ? void 0 : e.length) > 0) {
|
|
33
|
-
const r = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color");
|
|
34
|
-
if (r) {
|
|
35
|
-
const l = r == null ? void 0 : r.content;
|
|
20
|
+
import { g as o, a as p } from "./color-palettes-BqH2Fv19.js";
|
|
21
|
+
import { m as d } from "./index-t45_zv93.js";
|
|
22
|
+
import { g as C, a as k, b as h, c as V } from "./helpers-bR8Ibjqh.js";
|
|
23
|
+
import { t as r, c as n, a as i } from "./color-range-utils-BSfqtB3A.js";
|
|
24
|
+
const M = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a?.name === "color")?.content?.length === 0 : !0, f = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((a) => a?.name === "color")?.content?.length > 0 : !1, t = ({ slots: e }) => {
|
|
25
|
+
if (Array.isArray(e) && e?.length > 0) {
|
|
26
|
+
const a = e?.find((l) => l?.name === "color");
|
|
27
|
+
if (a) {
|
|
28
|
+
const l = a?.content;
|
|
36
29
|
if (l)
|
|
37
|
-
return
|
|
30
|
+
return l?.filter((s) => s?.type === "numeric")?.length > 0;
|
|
38
31
|
}
|
|
39
32
|
}
|
|
40
33
|
return !1;
|
|
41
|
-
},
|
|
34
|
+
}, O = [
|
|
42
35
|
{
|
|
43
36
|
key: "general",
|
|
44
37
|
type: "group",
|
|
@@ -59,7 +52,7 @@ const M = ({ slots: e }) => {
|
|
|
59
52
|
label: "Legend",
|
|
60
53
|
default: !0
|
|
61
54
|
},
|
|
62
|
-
visibleIf:
|
|
55
|
+
visibleIf: f
|
|
63
56
|
},
|
|
64
57
|
{
|
|
65
58
|
key: "enabled.zoom",
|
|
@@ -108,8 +101,8 @@ const M = ({ slots: e }) => {
|
|
|
108
101
|
"Voyager",
|
|
109
102
|
"No Tiles"
|
|
110
103
|
],
|
|
111
|
-
parseValue: (e) =>
|
|
112
|
-
toValue: (e) =>
|
|
104
|
+
parseValue: (e) => e?.name || "Basic",
|
|
105
|
+
toValue: (e) => d[e] ?? {}
|
|
113
106
|
}
|
|
114
107
|
}
|
|
115
108
|
]
|
|
@@ -124,10 +117,10 @@ const M = ({ slots: e }) => {
|
|
|
124
117
|
control: {
|
|
125
118
|
type: "color-picker",
|
|
126
119
|
label: "Spike color",
|
|
127
|
-
default: ({ theme: e }) =>
|
|
128
|
-
extraLabel: ({ options: e, theme: a }) =>
|
|
129
|
-
extraLabelHasClickAction: ({ options: e, theme: a }) =>
|
|
130
|
-
extraLabelClickAction: ({ options: e, theme: a }) =>
|
|
120
|
+
default: ({ theme: e }) => V(e),
|
|
121
|
+
extraLabel: ({ options: e, theme: a }) => h(e, a, "color"),
|
|
122
|
+
extraLabelHasClickAction: ({ options: e, theme: a }) => k(e, a, "color"),
|
|
123
|
+
extraLabelClickAction: ({ options: e, theme: a }) => C(e, a, "color")
|
|
131
124
|
},
|
|
132
125
|
visibleIf: M
|
|
133
126
|
},
|
|
@@ -189,42 +182,35 @@ const M = ({ slots: e }) => {
|
|
|
189
182
|
label: "Colors type",
|
|
190
183
|
default: "sequential",
|
|
191
184
|
enum: ["sequential", "divergent", "manual"],
|
|
192
|
-
calculateValue: ({ options: e }) =>
|
|
193
|
-
var l;
|
|
194
|
-
if ((e == null ? void 0 : e.colorsClass) === "manual")
|
|
195
|
-
return "manual";
|
|
196
|
-
const a = f();
|
|
197
|
-
return ((l = a == null ? void 0 : a[e == null ? void 0 : e.colorsClass]) == null ? void 0 : l.type) ?? "sequential";
|
|
198
|
-
},
|
|
185
|
+
calculateValue: ({ options: e }) => e?.colorsClass === "manual" ? "manual" : o()?.[e?.colorsClass]?.type ?? "sequential",
|
|
199
186
|
toOptions: ({ options: e, value: a }) => {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
let t;
|
|
187
|
+
const l = e?.colorsClass ?? "PuBu", s = e?.numberClasses ?? 5, u = r(
|
|
188
|
+
e?.manualValues?.ranges
|
|
189
|
+
), g = l === "manual" ? "manual" : l;
|
|
190
|
+
let c;
|
|
205
191
|
if (a === "manual")
|
|
206
|
-
|
|
192
|
+
c = "manual";
|
|
207
193
|
else {
|
|
208
|
-
const
|
|
209
|
-
a !==
|
|
194
|
+
const b = o()?.[e?.colorsClass]?.type;
|
|
195
|
+
a !== b && (c = p(a ?? "sequential")[0]);
|
|
210
196
|
}
|
|
211
|
-
const m = { ...e, colorsClass:
|
|
212
|
-
if (a === "manual" ||
|
|
213
|
-
const y =
|
|
214
|
-
|
|
215
|
-
a === "manual" ?
|
|
197
|
+
const m = { ...e, colorsClass: c };
|
|
198
|
+
if (a === "manual" || e?.classification === "manual") {
|
|
199
|
+
const y = n(
|
|
200
|
+
s,
|
|
201
|
+
a === "manual" ? g : c,
|
|
216
202
|
u
|
|
217
203
|
);
|
|
218
204
|
m.manualValues = {
|
|
219
205
|
...m.manualValues,
|
|
220
|
-
ranges:
|
|
206
|
+
ranges: i(y)
|
|
221
207
|
};
|
|
222
208
|
} else
|
|
223
|
-
|
|
209
|
+
delete m?.manualValues?.ranges;
|
|
224
210
|
return m;
|
|
225
211
|
}
|
|
226
212
|
},
|
|
227
|
-
visibleIf:
|
|
213
|
+
visibleIf: t
|
|
228
214
|
},
|
|
229
215
|
{
|
|
230
216
|
key: "colorsClass",
|
|
@@ -233,32 +219,29 @@ const M = ({ slots: e }) => {
|
|
|
233
219
|
label: "Color palette",
|
|
234
220
|
hideLabel: !0,
|
|
235
221
|
default: ({ options: e }) => {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
return d(r ?? "sequential")[0];
|
|
222
|
+
const l = o()?.[e?.colorsClass]?.type;
|
|
223
|
+
return p(l ?? "sequential")[0];
|
|
239
224
|
},
|
|
240
225
|
enum: ({ options: e }) => {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
return d(r ?? "sequential");
|
|
226
|
+
const l = o()?.[e?.colorsClass]?.type;
|
|
227
|
+
return p(l ?? "sequential");
|
|
244
228
|
},
|
|
245
229
|
toOptions: ({ options: e, value: a }) => {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
color: n == null ? void 0 : n[t.val]
|
|
230
|
+
const l = { ...e, colorsClass: a };
|
|
231
|
+
if (e?.classification === "manual") {
|
|
232
|
+
const s = o()[a]?.[`colors${e?.numberClasses ?? 5}`];
|
|
233
|
+
l.manualValues = {
|
|
234
|
+
...l.manualValues,
|
|
235
|
+
ranges: e?.manualValues?.ranges.map((u) => ({
|
|
236
|
+
...u,
|
|
237
|
+
color: s?.[u.val]
|
|
255
238
|
}))
|
|
256
239
|
};
|
|
257
240
|
}
|
|
258
|
-
return
|
|
241
|
+
return l;
|
|
259
242
|
}
|
|
260
243
|
},
|
|
261
|
-
visibleIf: ({ options: e, slots: a }) =>
|
|
244
|
+
visibleIf: ({ options: e, slots: a }) => t({ slots: a }) && e?.colorsClass !== "manual"
|
|
262
245
|
},
|
|
263
246
|
{
|
|
264
247
|
key: "manualValues.ranges",
|
|
@@ -271,25 +254,22 @@ const M = ({ slots: e }) => {
|
|
|
271
254
|
label: "Manual range colors",
|
|
272
255
|
hideLabel: !0
|
|
273
256
|
},
|
|
274
|
-
calculateValue: ({ options: e }) =>
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
s((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
|
|
280
|
-
);
|
|
281
|
-
},
|
|
257
|
+
calculateValue: ({ options: e }) => n(
|
|
258
|
+
e?.numberClasses,
|
|
259
|
+
e?.colorsClass,
|
|
260
|
+
r(e?.manualValues?.ranges)
|
|
261
|
+
),
|
|
282
262
|
toOptions: ({ options: e, value: a }) => ({
|
|
283
263
|
...e,
|
|
284
264
|
manualValues: {
|
|
285
265
|
...e.manualValues,
|
|
286
|
-
ranges:
|
|
266
|
+
ranges: i(a)
|
|
287
267
|
}
|
|
288
268
|
}),
|
|
289
|
-
visibleIf: ({ options: e, slots: a }) =>
|
|
269
|
+
visibleIf: ({ options: e, slots: a }) => t({ slots: a }) && e?.colorsClass === "manual"
|
|
290
270
|
}
|
|
291
271
|
],
|
|
292
|
-
visibleIf:
|
|
272
|
+
visibleIf: t
|
|
293
273
|
},
|
|
294
274
|
{
|
|
295
275
|
key: "classification",
|
|
@@ -303,26 +283,25 @@ const M = ({ slots: e }) => {
|
|
|
303
283
|
label: "Number of classes",
|
|
304
284
|
default: "5",
|
|
305
285
|
enum: ["3", "4", "5", "6", "7", "8", "9"],
|
|
306
|
-
parseValue: (e) =>
|
|
286
|
+
parseValue: (e) => e?.toString() ?? "5",
|
|
307
287
|
toOptions: ({ options: e, value: a }) => {
|
|
308
|
-
var l;
|
|
309
288
|
a = Number.parseInt(a, 10) ?? 5;
|
|
310
|
-
const
|
|
311
|
-
if (
|
|
312
|
-
const
|
|
289
|
+
const l = { ...e, numberClasses: a };
|
|
290
|
+
if (e?.classification === "manual" || e?.colorsClass === "manual") {
|
|
291
|
+
const s = n(
|
|
313
292
|
a,
|
|
314
|
-
e
|
|
315
|
-
|
|
293
|
+
e?.colorsClass,
|
|
294
|
+
r(e?.manualValues?.ranges)
|
|
316
295
|
);
|
|
317
|
-
|
|
318
|
-
...
|
|
319
|
-
ranges:
|
|
296
|
+
l.manualValues = {
|
|
297
|
+
...l.manualValues,
|
|
298
|
+
ranges: i(s)
|
|
320
299
|
};
|
|
321
300
|
}
|
|
322
|
-
return
|
|
301
|
+
return l;
|
|
323
302
|
}
|
|
324
303
|
},
|
|
325
|
-
visibleIf:
|
|
304
|
+
visibleIf: t
|
|
326
305
|
},
|
|
327
306
|
{
|
|
328
307
|
key: "classification",
|
|
@@ -332,24 +311,23 @@ const M = ({ slots: e }) => {
|
|
|
332
311
|
default: "interval",
|
|
333
312
|
enum: ["interval", "manual", "quantile", "continuous"],
|
|
334
313
|
toOptions: ({ options: e, value: a }) => {
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
e
|
|
340
|
-
e
|
|
341
|
-
s((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.ranges)
|
|
314
|
+
const l = { ...e, classification: a };
|
|
315
|
+
if (a === "manual" || e?.colorsClass === "manual") {
|
|
316
|
+
const s = n(
|
|
317
|
+
e?.numberClasses,
|
|
318
|
+
e?.colorsClass,
|
|
319
|
+
r(e?.manualValues?.ranges)
|
|
342
320
|
);
|
|
343
|
-
|
|
344
|
-
...
|
|
345
|
-
ranges:
|
|
321
|
+
l.manualValues = {
|
|
322
|
+
...l.manualValues,
|
|
323
|
+
ranges: i(s)
|
|
346
324
|
};
|
|
347
325
|
} else
|
|
348
|
-
|
|
349
|
-
return
|
|
326
|
+
delete l?.manualValues?.ranges;
|
|
327
|
+
return l;
|
|
350
328
|
}
|
|
351
329
|
},
|
|
352
|
-
visibleIf:
|
|
330
|
+
visibleIf: t
|
|
353
331
|
},
|
|
354
332
|
{
|
|
355
333
|
key: "manualValues.rangesValues",
|
|
@@ -361,26 +339,23 @@ const M = ({ slots: e }) => {
|
|
|
361
339
|
readOnlyColorPicker: !0,
|
|
362
340
|
label: "Manual range values",
|
|
363
341
|
hideLabel: !0,
|
|
364
|
-
calculateValue: ({ options: e }) =>
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
s((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.ranges)
|
|
370
|
-
);
|
|
371
|
-
},
|
|
342
|
+
calculateValue: ({ options: e }) => n(
|
|
343
|
+
e?.numberClasses,
|
|
344
|
+
e?.colorsClass,
|
|
345
|
+
r(e?.manualValues?.ranges)
|
|
346
|
+
),
|
|
372
347
|
toOptions: ({ options: e, value: a }) => ({
|
|
373
348
|
...e,
|
|
374
349
|
manualValues: {
|
|
375
350
|
...e.manualValues,
|
|
376
|
-
ranges:
|
|
351
|
+
ranges: i(a)
|
|
377
352
|
}
|
|
378
353
|
})
|
|
379
354
|
},
|
|
380
|
-
visibleIf: ({ options: e, slots: a }) =>
|
|
355
|
+
visibleIf: ({ options: e, slots: a }) => t({ slots: a }) && e?.classification === "manual"
|
|
381
356
|
}
|
|
382
357
|
],
|
|
383
|
-
visibleIf:
|
|
358
|
+
visibleIf: t
|
|
384
359
|
},
|
|
385
360
|
{
|
|
386
361
|
key: "legend",
|
|
@@ -400,10 +375,7 @@ const M = ({ slots: e }) => {
|
|
|
400
375
|
},
|
|
401
376
|
selects: "single"
|
|
402
377
|
},
|
|
403
|
-
visibleIf: ({ options: e }) =>
|
|
404
|
-
var a;
|
|
405
|
-
return ((a = e == null ? void 0 : e.display) == null ? void 0 : a.legend) !== !1;
|
|
406
|
-
}
|
|
378
|
+
visibleIf: ({ options: e }) => e?.display?.legend !== !1
|
|
407
379
|
},
|
|
408
380
|
{
|
|
409
381
|
key: "legend.position",
|
|
@@ -422,15 +394,12 @@ const M = ({ slots: e }) => {
|
|
|
422
394
|
"left"
|
|
423
395
|
]
|
|
424
396
|
},
|
|
425
|
-
visibleIf: ({ options: e }) =>
|
|
426
|
-
var a;
|
|
427
|
-
return ((a = e == null ? void 0 : e.display) == null ? void 0 : a.legend) !== !1;
|
|
428
|
-
}
|
|
397
|
+
visibleIf: ({ options: e }) => e?.display?.legend !== !1
|
|
429
398
|
}
|
|
430
399
|
],
|
|
431
|
-
visibleIf:
|
|
400
|
+
visibleIf: f
|
|
432
401
|
}
|
|
433
402
|
];
|
|
434
403
|
export {
|
|
435
|
-
|
|
404
|
+
O as default
|
|
436
405
|
};
|
|
@@ -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 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:!1}},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}}]},{key:"slices",type:"group",open:!0,children:[{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,step:1,extraLabel:({options:e,theme:
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const 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:!1}},{key:"display.labels",control:{type:"switch",label:"Show labels",default:!0}}]},{key:"slices",type:"group",open:!0,children:[{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:8,min:0,max:24,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})=>({value:void 0,options:{...e,roundedCorners:void 0}})}},{key:"internalPadding",control:{type:"slider",label:"Internal padding",default:5,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})=>({value:void 0,options:{...e,internalPadding:void 0}})}}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:({options:e})=>e?.display?.legend}];exports.default=n;
|
|
@@ -63,15 +63,11 @@ const n = [
|
|
|
63
63
|
min: 0,
|
|
64
64
|
max: 24,
|
|
65
65
|
step: 1,
|
|
66
|
-
extraLabel: ({ options: e, theme:
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
|
|
70
|
-
},
|
|
71
|
-
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
72
|
-
var t;
|
|
73
|
-
return !(typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
|
|
66
|
+
extraLabel: ({ options: e, theme: t }) => {
|
|
67
|
+
if (typeof t?.itemSpecific?.rounding == "number")
|
|
68
|
+
return typeof e?.roundedCorners != "number" ? "auto" : "reset";
|
|
74
69
|
},
|
|
70
|
+
extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.rounding != "number" || typeof e?.roundedCorners != "number"),
|
|
75
71
|
extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, roundedCorners: void 0 } })
|
|
76
72
|
}
|
|
77
73
|
},
|
|
@@ -84,15 +80,11 @@ const n = [
|
|
|
84
80
|
min: 0,
|
|
85
81
|
max: 20,
|
|
86
82
|
step: 1,
|
|
87
|
-
extraLabel: ({ options: e, theme:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return typeof (e == null ? void 0 : e.internalPadding) != "number" ? "auto" : "reset";
|
|
91
|
-
},
|
|
92
|
-
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
93
|
-
var t;
|
|
94
|
-
return !(typeof ((t = r == null ? void 0 : r.itemSpecific) == null ? void 0 : t.padding) != "number" || typeof (e == null ? void 0 : e.internalPadding) != "number");
|
|
83
|
+
extraLabel: ({ options: e, theme: t }) => {
|
|
84
|
+
if (typeof t?.itemSpecific?.padding == "number")
|
|
85
|
+
return typeof e?.internalPadding != "number" ? "auto" : "reset";
|
|
95
86
|
},
|
|
87
|
+
extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.padding != "number" || typeof e?.internalPadding != "number"),
|
|
96
88
|
extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, internalPadding: void 0 } })
|
|
97
89
|
}
|
|
98
90
|
}
|
|
@@ -122,10 +114,7 @@ const n = [
|
|
|
122
114
|
}
|
|
123
115
|
}
|
|
124
116
|
],
|
|
125
|
-
visibleIf: ({ options: e }) =>
|
|
126
|
-
var r;
|
|
127
|
-
return (r = e == null ? void 0 : e.display) == null ? void 0 : r.legend;
|
|
128
|
-
}
|
|
117
|
+
visibleIf: ({ options: e }) => e?.display?.legend
|
|
129
118
|
}
|
|
130
119
|
];
|
|
131
120
|
export {
|