@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
|
@@ -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 u=require("./color-Czp4Im5q.cjs"),l=require("./color-palettes-DhNHcib8.cjs"),p=require("./index-DhDgy1sp.cjs"),s=()=>structuredClone(l.getColorMaps().Spectrum.colors5),y=e=>{if(!e||e.length===0)return[];const o=/^rgb(a)?\s*\(/i.test(e.at(-1)?.trim()??"");return e.map(t=>new u.Color(t).toString({format:o?"hex":"rgb"}))},a=e=>{const o=e?.length||0;return o===0?{type:"heat",colorClass:"Spectrum",colors:s()}:l.getColorMapKeys().map(r=>({type:l.getColorMaps()[r]?.type,colorClass:r,colors:l.getColorMaps()[r]?.[`colors${o}`]})).find(r=>Array.isArray(r.colors)&&Array.isArray(e)&&r.colors.length===e.length&&r.colors.every((c,i)=>c===e[i]))??{type:"manual",colorClass:"manual",colors:e}},d=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>e?.name||"Basic",toValue:e=>p.mapVectorTileProviders[e]??{}}}]},{key:"heat",type:"group",open:!0,children:[{key:"enabled.adaptOnZoom",control:{type:"switch",label:"Adapt on zoom",tooltip:"If turned off, density is calculated based on map surface",default:!0}},{key:"screenRadius",control:{type:"slider",label:"Radius",default:20,min:1,max:50,step:1}},{key:"intensity",control:{type:"slider",label:"Intensity",tooltip:"Multiplier for the density, multiplies by 1 on minimum (default)",default:1,min:1,max:100,step:1}}]},{key:"heatColors",type:"group",open:!0,children:[{key:"transparency",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["heat","sequential","manual"],calculateValue:({options:e})=>a(e?.colors).type,toOptions:({options:e,value:o})=>{const t=a(e?.colors),n={...e};return t.type!==o&&(n.colors=o==="manual"?y(t.colors??s()):l.getColorMaps()[l.getColorMapKeys(o)?.[0]]?.colors5??s()),n}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:"Spectrum",enum:({options:e})=>{const o=a(e?.colors).type;return l.getColorMapKeys(["heat","sequential"].includes(o)?o:"heat")},calculateValue:({options:e})=>{const o=a(e?.colors);return o?.colorClass&&o.colorClass!=="manual"?o.colorClass:"Spectrum"},toOptions:({options:e,value:o})=>{const t={...e};return t.colors=l.getColorMaps()[o]?.colors5??s(),t}},visibleIf:({options:e})=>a(e?.colors).type!=="manual"},{key:"colors",control:{type:"color-range",editRangeSize:!1,noValues:!0,minimumRangeSize:4,noAlphaChannel:!0,hideLabel:!0,label:"Manual color ranges",default:s(),parseValue:e=>e?.map(o=>({color:o})),toValue:e=>e?.map(o=>o?.color)??[]},visibleIf:({options:e})=>a(e?.colors).type==="manual"}]}];exports.default=d;
|
package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js}
RENAMED
|
@@ -17,30 +17,26 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { C as
|
|
21
|
-
import { g as
|
|
22
|
-
import { m as
|
|
23
|
-
const
|
|
24
|
-
var l;
|
|
20
|
+
import { C as u } from "./color-B7m0j8lX.js";
|
|
21
|
+
import { g as s, a as c } from "./color-palettes-BqH2Fv19.js";
|
|
22
|
+
import { m as y } from "./index-t45_zv93.js";
|
|
23
|
+
const a = () => structuredClone(s().Spectrum.colors5), d = (e) => {
|
|
25
24
|
if (!e || e.length === 0) return [];
|
|
26
|
-
const t = /^rgb(a)?\s*\(/i.test(
|
|
27
|
-
return e.map((
|
|
28
|
-
},
|
|
29
|
-
const t =
|
|
25
|
+
const t = /^rgb(a)?\s*\(/i.test(e.at(-1)?.trim() ?? "");
|
|
26
|
+
return e.map((o) => new u(o).toString({ format: t ? "hex" : "rgb" }));
|
|
27
|
+
}, r = (e) => {
|
|
28
|
+
const t = e?.length || 0;
|
|
30
29
|
return t === 0 ? {
|
|
31
30
|
type: "heat",
|
|
32
31
|
colorClass: "Spectrum",
|
|
33
|
-
colors:
|
|
34
|
-
} :
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}).find(
|
|
42
|
-
(r) => Array.isArray(r.colors) && Array.isArray(e) && r.colors.length === e.length && r.colors.every(
|
|
43
|
-
(u, i) => u === e[i]
|
|
32
|
+
colors: a()
|
|
33
|
+
} : c().map((l) => ({
|
|
34
|
+
type: s()[l]?.type,
|
|
35
|
+
colorClass: l,
|
|
36
|
+
colors: s()[l]?.[`colors${t}`]
|
|
37
|
+
})).find(
|
|
38
|
+
(l) => Array.isArray(l.colors) && Array.isArray(e) && l.colors.length === e.length && l.colors.every(
|
|
39
|
+
(i, p) => i === e[p]
|
|
44
40
|
)
|
|
45
41
|
) ?? {
|
|
46
42
|
type: "manual",
|
|
@@ -108,8 +104,8 @@ const s = () => structuredClone(n().Spectrum.colors5), m = (e) => {
|
|
|
108
104
|
"Voyager",
|
|
109
105
|
"No Tiles"
|
|
110
106
|
],
|
|
111
|
-
parseValue: (e) =>
|
|
112
|
-
toValue: (e) =>
|
|
107
|
+
parseValue: (e) => e?.name || "Basic",
|
|
108
|
+
toValue: (e) => y[e] ?? {}
|
|
113
109
|
}
|
|
114
110
|
}
|
|
115
111
|
]
|
|
@@ -178,13 +174,12 @@ const s = () => structuredClone(n().Spectrum.colors5), m = (e) => {
|
|
|
178
174
|
label: "Colors type",
|
|
179
175
|
default: "sequential",
|
|
180
176
|
enum: ["heat", "sequential", "manual"],
|
|
181
|
-
calculateValue: ({ options: e }) =>
|
|
177
|
+
calculateValue: ({ options: e }) => r(e?.colors).type,
|
|
182
178
|
toOptions: ({ options: e, value: t }) => {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
return l.type !== t && (a.colors = t === "manual" ? m(l.colors ?? s()) : ((r = n()[(c = y(t)) == null ? void 0 : c[0]]) == null ? void 0 : r.colors5) ?? s()), a;
|
|
179
|
+
const o = r(
|
|
180
|
+
e?.colors
|
|
181
|
+
), n = { ...e };
|
|
182
|
+
return o.type !== t && (n.colors = t === "manual" ? d(o.colors ?? a()) : s()[c(t)?.[0]]?.colors5 ?? a()), n;
|
|
188
183
|
}
|
|
189
184
|
}
|
|
190
185
|
},
|
|
@@ -196,24 +191,23 @@ const s = () => structuredClone(n().Spectrum.colors5), m = (e) => {
|
|
|
196
191
|
hideLabel: !0,
|
|
197
192
|
default: "Spectrum",
|
|
198
193
|
enum: ({ options: e }) => {
|
|
199
|
-
const t =
|
|
200
|
-
e
|
|
194
|
+
const t = r(
|
|
195
|
+
e?.colors
|
|
201
196
|
).type;
|
|
202
|
-
return
|
|
197
|
+
return c(
|
|
203
198
|
["heat", "sequential"].includes(t) ? t : "heat"
|
|
204
199
|
);
|
|
205
200
|
},
|
|
206
201
|
calculateValue: ({ options: e }) => {
|
|
207
|
-
const t =
|
|
208
|
-
return t
|
|
202
|
+
const t = r(e?.colors);
|
|
203
|
+
return t?.colorClass && t.colorClass !== "manual" ? t.colorClass : "Spectrum";
|
|
209
204
|
},
|
|
210
205
|
toOptions: ({ options: e, value: t }) => {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
return l.colors = ((a = n()[t]) == null ? void 0 : a.colors5) ?? s(), l;
|
|
206
|
+
const o = { ...e };
|
|
207
|
+
return o.colors = s()[t]?.colors5 ?? a(), o;
|
|
214
208
|
}
|
|
215
209
|
},
|
|
216
|
-
visibleIf: ({ options: e }) =>
|
|
210
|
+
visibleIf: ({ options: e }) => r(e?.colors).type !== "manual"
|
|
217
211
|
},
|
|
218
212
|
{
|
|
219
213
|
key: "colors",
|
|
@@ -225,11 +219,11 @@ const s = () => structuredClone(n().Spectrum.colors5), m = (e) => {
|
|
|
225
219
|
noAlphaChannel: !0,
|
|
226
220
|
hideLabel: !0,
|
|
227
221
|
label: "Manual color ranges",
|
|
228
|
-
default:
|
|
229
|
-
parseValue: (e) => e
|
|
230
|
-
toValue: (e) =>
|
|
222
|
+
default: a(),
|
|
223
|
+
parseValue: (e) => e?.map((t) => ({ color: t })),
|
|
224
|
+
toValue: (e) => e?.map((t) => t?.color) ?? []
|
|
231
225
|
},
|
|
232
|
-
visibleIf: ({ options: e }) =>
|
|
226
|
+
visibleIf: ({ options: e }) => r(e?.colors).type === "manual"
|
|
233
227
|
}
|
|
234
228
|
]
|
|
235
229
|
}
|
package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js}
RENAMED
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { g, a as
|
|
21
|
-
import { g as
|
|
22
|
-
import { t as
|
|
23
|
-
const
|
|
20
|
+
import { g as p, a as b, b as y, c as d } from "./helpers-bR8Ibjqh.js";
|
|
21
|
+
import { g as o, a as n } from "./color-palettes-BqH2Fv19.js";
|
|
22
|
+
import { t as i, c, a as u } from "./color-range-utils-BSfqtB3A.js";
|
|
23
|
+
const T = [
|
|
24
24
|
{
|
|
25
25
|
key: "general",
|
|
26
26
|
type: "group",
|
|
@@ -66,22 +66,15 @@ const A = [
|
|
|
66
66
|
control: {
|
|
67
67
|
type: "slider",
|
|
68
68
|
label: "Rounding",
|
|
69
|
-
default: ({ theme: e }) =>
|
|
70
|
-
var l;
|
|
71
|
-
return (l = e == null ? void 0 : e.itemSpecific) == null ? void 0 : l.rounding;
|
|
72
|
-
},
|
|
69
|
+
default: ({ theme: e }) => e?.itemSpecific?.rounding,
|
|
73
70
|
min: 0,
|
|
74
71
|
max: 20,
|
|
75
72
|
step: 1,
|
|
76
73
|
extraLabel: ({ options: e, theme: l }) => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.rounding) != "number" ? "auto" : "reset";
|
|
80
|
-
},
|
|
81
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) => {
|
|
82
|
-
var a, r;
|
|
83
|
-
return !(typeof ((a = l == null ? void 0 : l.itemSpecific) == null ? void 0 : a.rounding) != "number" || typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.rounding) != "number");
|
|
74
|
+
if (typeof l?.itemSpecific?.rounding == "number")
|
|
75
|
+
return typeof e?.heattable?.rounding != "number" ? "auto" : "reset";
|
|
84
76
|
},
|
|
77
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => !(typeof l?.itemSpecific?.rounding != "number" || typeof e?.heattable?.rounding != "number"),
|
|
85
78
|
extraLabelClickAction: ({ options: e }) => {
|
|
86
79
|
const l = {
|
|
87
80
|
...e,
|
|
@@ -96,22 +89,15 @@ const A = [
|
|
|
96
89
|
control: {
|
|
97
90
|
type: "slider",
|
|
98
91
|
label: "Spacing",
|
|
99
|
-
default: ({ theme: e }) =>
|
|
100
|
-
var l;
|
|
101
|
-
return (l = e == null ? void 0 : e.itemSpecific) == null ? void 0 : l.padding;
|
|
102
|
-
},
|
|
92
|
+
default: ({ theme: e }) => e?.itemSpecific?.padding,
|
|
103
93
|
min: 0,
|
|
104
94
|
max: 20,
|
|
105
95
|
step: 1,
|
|
106
96
|
extraLabel: ({ options: e, theme: l }) => {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
return typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.spacing) != "number" ? "auto" : "reset";
|
|
110
|
-
},
|
|
111
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) => {
|
|
112
|
-
var a, r;
|
|
113
|
-
return !(typeof ((a = l == null ? void 0 : l.itemSpecific) == null ? void 0 : a.padding) != "number" || typeof ((r = e == null ? void 0 : e.heattable) == null ? void 0 : r.spacing) != "number");
|
|
97
|
+
if (typeof l?.itemSpecific?.padding == "number")
|
|
98
|
+
return typeof e?.heattable?.spacing != "number" ? "auto" : "reset";
|
|
114
99
|
},
|
|
100
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => !(typeof l?.itemSpecific?.padding != "number" || typeof e?.heattable?.spacing != "number"),
|
|
115
101
|
extraLabelClickAction: ({ options: e }) => {
|
|
116
102
|
const l = {
|
|
117
103
|
...e,
|
|
@@ -130,33 +116,32 @@ const A = [
|
|
|
130
116
|
default: "sequential",
|
|
131
117
|
enum: ["sequential", "divergent", "manual"],
|
|
132
118
|
toOptions: ({ options: e, value: l }) => {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
), T = r === "manual" ? "manual" : c, t = {
|
|
119
|
+
const a = o()?.[e?.colorsClass]?.type, t = e?.colorsType ?? a ?? "sequential", m = e?.colorsClass ?? "PuBu", f = e?.numberClasses ?? 7, k = i(
|
|
120
|
+
e?.manualValues?.ranges
|
|
121
|
+
), x = t === "manual" ? "manual" : m, s = {
|
|
137
122
|
...e,
|
|
138
123
|
colorsType: l
|
|
139
124
|
};
|
|
140
125
|
if (l === "manual") {
|
|
141
|
-
const
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
126
|
+
const r = c(
|
|
127
|
+
f,
|
|
128
|
+
x,
|
|
129
|
+
k
|
|
145
130
|
);
|
|
146
|
-
|
|
147
|
-
...
|
|
148
|
-
ranges:
|
|
131
|
+
s.manualValues = {
|
|
132
|
+
...s.manualValues,
|
|
133
|
+
ranges: u(r)
|
|
149
134
|
};
|
|
150
135
|
} else {
|
|
151
|
-
if (l !==
|
|
152
|
-
const
|
|
136
|
+
if (l !== t) {
|
|
137
|
+
const r = n(
|
|
153
138
|
l ?? "sequential"
|
|
154
139
|
)[0];
|
|
155
|
-
|
|
140
|
+
s.colorsClass = r;
|
|
156
141
|
}
|
|
157
|
-
delete
|
|
142
|
+
delete s.manualValues;
|
|
158
143
|
}
|
|
159
|
-
return
|
|
144
|
+
return s;
|
|
160
145
|
}
|
|
161
146
|
}
|
|
162
147
|
},
|
|
@@ -168,7 +153,7 @@ const A = [
|
|
|
168
153
|
default: "quantile",
|
|
169
154
|
enum: ["interval", "quantile", "continuous"]
|
|
170
155
|
},
|
|
171
|
-
visibleIf: ({ options: e }) =>
|
|
156
|
+
visibleIf: ({ options: e }) => e?.colorsType !== "manual"
|
|
172
157
|
},
|
|
173
158
|
{
|
|
174
159
|
key: "numberClasses",
|
|
@@ -177,20 +162,19 @@ const A = [
|
|
|
177
162
|
label: "Number of classes",
|
|
178
163
|
default: "7",
|
|
179
164
|
enum: ["3", "4", "5", "6", "7", "8", "9"],
|
|
180
|
-
parseValue: (e) =>
|
|
165
|
+
parseValue: (e) => e?.toString() ?? "7",
|
|
181
166
|
toOptions: ({ options: e, value: l }) => {
|
|
182
|
-
var r;
|
|
183
167
|
l = Number.parseInt(l, 10) ?? 7;
|
|
184
168
|
const a = { ...e, numberClasses: l };
|
|
185
|
-
if (
|
|
186
|
-
const
|
|
169
|
+
if (e?.colorsType === "manual") {
|
|
170
|
+
const t = c(
|
|
187
171
|
l,
|
|
188
172
|
"manual",
|
|
189
|
-
|
|
173
|
+
i(e?.manualValues?.ranges)
|
|
190
174
|
);
|
|
191
175
|
a.manualValues = {
|
|
192
176
|
...a.manualValues,
|
|
193
|
-
ranges:
|
|
177
|
+
ranges: u(t)
|
|
194
178
|
};
|
|
195
179
|
}
|
|
196
180
|
return a;
|
|
@@ -204,30 +188,27 @@ const A = [
|
|
|
204
188
|
label: "Color palette",
|
|
205
189
|
hideLabel: !0,
|
|
206
190
|
default: ({ options: e }) => {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
(e == null ? void 0 : e.colorsType) ?? a ?? "sequential"
|
|
191
|
+
const a = o()?.[e?.colorsClass]?.type;
|
|
192
|
+
return n(
|
|
193
|
+
e?.colorsType ?? a ?? "sequential"
|
|
211
194
|
)[0];
|
|
212
195
|
},
|
|
213
196
|
enum: ({ options: e }) => {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
(e == null ? void 0 : e.colorsType) ?? l ?? "sequential"
|
|
197
|
+
const l = o()?.[e?.colorsClass]?.type;
|
|
198
|
+
return n(
|
|
199
|
+
e?.colorsType ?? l ?? "sequential"
|
|
218
200
|
);
|
|
219
201
|
},
|
|
220
202
|
toOptions: ({ options: e, value: l }) => {
|
|
221
|
-
|
|
222
|
-
const a = (s = (c = u()) == null ? void 0 : c[e == null ? void 0 : e.colorsClass]) == null ? void 0 : s.type, r = {
|
|
203
|
+
const a = o()?.[e?.colorsClass]?.type, t = {
|
|
223
204
|
...e,
|
|
224
205
|
colorsClass: l,
|
|
225
206
|
colorsType: a ?? "sequential"
|
|
226
207
|
};
|
|
227
|
-
return delete
|
|
208
|
+
return delete t.manualValues, t;
|
|
228
209
|
}
|
|
229
210
|
},
|
|
230
|
-
visibleIf: ({ options: e }) =>
|
|
211
|
+
visibleIf: ({ options: e }) => e?.colorsType !== "manual"
|
|
231
212
|
},
|
|
232
213
|
{
|
|
233
214
|
key: "manualValues.ranges",
|
|
@@ -237,23 +218,20 @@ const A = [
|
|
|
237
218
|
debounce: 500,
|
|
238
219
|
label: "Manual range values",
|
|
239
220
|
hideLabel: !0,
|
|
240
|
-
calculateValue: ({ options: e }) =>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
b((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.ranges)
|
|
246
|
-
);
|
|
247
|
-
},
|
|
221
|
+
calculateValue: ({ options: e }) => c(
|
|
222
|
+
e?.numberClasses ?? 7,
|
|
223
|
+
"manual",
|
|
224
|
+
i(e?.manualValues?.ranges)
|
|
225
|
+
),
|
|
248
226
|
toOptions: ({ options: e, value: l }) => ({
|
|
249
227
|
...e,
|
|
250
228
|
manualValues: {
|
|
251
229
|
...e.manualValues,
|
|
252
|
-
ranges:
|
|
230
|
+
ranges: u(l)
|
|
253
231
|
}
|
|
254
232
|
})
|
|
255
233
|
},
|
|
256
|
-
visibleIf: ({ options: e }) =>
|
|
234
|
+
visibleIf: ({ options: e }) => e?.colorsType === "manual"
|
|
257
235
|
}
|
|
258
236
|
]
|
|
259
237
|
},
|
|
@@ -276,14 +254,14 @@ const A = [
|
|
|
276
254
|
control: {
|
|
277
255
|
type: "color-picker",
|
|
278
256
|
label: "X-axis color",
|
|
279
|
-
default: ({ theme: e }) =>
|
|
280
|
-
extraLabel: ({ options: e, theme: l }) =>
|
|
281
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) =>
|
|
257
|
+
default: ({ theme: e }) => d(e),
|
|
258
|
+
extraLabel: ({ options: e, theme: l }) => y(e, l, "axis.x.color"),
|
|
259
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => b(
|
|
282
260
|
e,
|
|
283
261
|
l,
|
|
284
262
|
"axis.x.color"
|
|
285
263
|
),
|
|
286
|
-
extraLabelClickAction: ({ options: e, theme: l }) =>
|
|
264
|
+
extraLabelClickAction: ({ options: e, theme: l }) => p(
|
|
287
265
|
e,
|
|
288
266
|
l,
|
|
289
267
|
"axis.x.color"
|
|
@@ -313,10 +291,7 @@ const A = [
|
|
|
313
291
|
default: "center",
|
|
314
292
|
enum: ["left", "center", "right"]
|
|
315
293
|
},
|
|
316
|
-
visibleIf: ({ options: e }) =>
|
|
317
|
-
var l, a;
|
|
318
|
-
return ((a = (l = e == null ? void 0 : e.axislabels) == null ? void 0 : l.x) == null ? void 0 : a.enabled) === !0;
|
|
319
|
-
}
|
|
294
|
+
visibleIf: ({ options: e }) => e?.axislabels?.x?.enabled === !0
|
|
320
295
|
}
|
|
321
296
|
]
|
|
322
297
|
},
|
|
@@ -355,14 +330,14 @@ const A = [
|
|
|
355
330
|
control: {
|
|
356
331
|
type: "color-picker",
|
|
357
332
|
label: "Y-axis color",
|
|
358
|
-
default: ({ theme: e }) =>
|
|
359
|
-
extraLabel: ({ options: e, theme: l }) =>
|
|
360
|
-
extraLabelHasClickAction: ({ options: e, theme: l }) =>
|
|
333
|
+
default: ({ theme: e }) => d(e),
|
|
334
|
+
extraLabel: ({ options: e, theme: l }) => y(e, l, "axis.y.color"),
|
|
335
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => b(
|
|
361
336
|
e,
|
|
362
337
|
l,
|
|
363
338
|
"axis.y.color"
|
|
364
339
|
),
|
|
365
|
-
extraLabelClickAction: ({ options: e, theme: l }) =>
|
|
340
|
+
extraLabelClickAction: ({ options: e, theme: l }) => p(
|
|
366
341
|
e,
|
|
367
342
|
l,
|
|
368
343
|
"axis.y.color"
|
|
@@ -392,10 +367,7 @@ const A = [
|
|
|
392
367
|
default: "top",
|
|
393
368
|
enum: ["top", "middle", "bottom"]
|
|
394
369
|
},
|
|
395
|
-
visibleIf: ({ options: e }) =>
|
|
396
|
-
var l, a;
|
|
397
|
-
return ((a = (l = e == null ? void 0 : e.axislabels) == null ? void 0 : l.y) == null ? void 0 : a.enabled) === !0;
|
|
398
|
-
}
|
|
370
|
+
visibleIf: ({ options: e }) => e?.axislabels?.y?.enabled === !0
|
|
399
371
|
}
|
|
400
372
|
]
|
|
401
373
|
},
|
|
@@ -421,5 +393,5 @@ const A = [
|
|
|
421
393
|
}
|
|
422
394
|
];
|
|
423
395
|
export {
|
|
424
|
-
|
|
396
|
+
T as default
|
|
425
397
|
};
|
|
@@ -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("./helpers-9I0oLoUB.cjs"),r=require("./color-palettes-DhNHcib8.cjs"),t=require("./color-range-utils-DYYR-iwx.cjs"),y=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.values",control:{type:"switch",label:"Show values",default:!1}}]},{key:"heatTable",type:"group",label:"Heat table",open:!0,children:[{key:"heattable.opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"heattable.rounding",control:{type:"slider",label:"Rounding",default:({theme:e})=>e?.itemSpecific?.rounding,min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{if(typeof l?.itemSpecific?.rounding=="number")return typeof e?.heattable?.rounding!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>!(typeof l?.itemSpecific?.rounding!="number"||typeof e?.heattable?.rounding!="number"),extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,rounding:void 0}};return delete l.heattable.rounding,{value:null,options:l}}}},{key:"heattable.spacing",control:{type:"slider",label:"Spacing",default:({theme:e})=>e?.itemSpecific?.padding,min:0,max:20,step:1,extraLabel:({options:e,theme:l})=>{if(typeof l?.itemSpecific?.padding=="number")return typeof e?.heattable?.spacing!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>!(typeof l?.itemSpecific?.padding!="number"||typeof e?.heattable?.spacing!="number"),extraLabelClickAction:({options:e})=>{const l={...e,heattable:{...e.heattable,spacing:void 0}};return delete l.heattable.spacing,{value:null,options:l}}}},{key:"colorsType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["sequential","divergent","manual"],toOptions:({options:e,value:l})=>{const a=r.getColorMaps()?.[e?.colorsClass]?.type,s=e?.colorsType??a??"sequential",c=e?.colorsClass??"PuBu",u=e?.numberClasses??7,p=t.toRangesWithValue(e?.manualValues?.ranges),b=s==="manual"?"manual":c,n={...e,colorsType:l};if(l==="manual"){const i=t.calculateManualRanges(u,b,p);n.manualValues={...n.manualValues,ranges:t.toRangesWithVal(i)}}else{if(l!==s){const i=r.getColorMapKeys(l??"sequential")[0];n.colorsClass=i}delete n.manualValues}return n}}},{key:"classification",control:{type:"picker",label:"Method",default:"quantile",enum:["interval","quantile","continuous"]},visibleIf:({options:e})=>e?.colorsType!=="manual"},{key:"numberClasses",control:{type:"picker",label:"Number of classes",default:"7",enum:["3","4","5","6","7","8","9"],parseValue:e=>e?.toString()??"7",toOptions:({options:e,value:l})=>{l=Number.parseInt(l,10)??7;const a={...e,numberClasses:l};if(e?.colorsType==="manual"){const s=t.calculateManualRanges(l,"manual",t.toRangesWithValue(e?.manualValues?.ranges));a.manualValues={...a.manualValues,ranges:t.toRangesWithVal(s)}}return a}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:({options:e})=>{const a=r.getColorMaps()?.[e?.colorsClass]?.type;return r.getColorMapKeys(e?.colorsType??a??"sequential")[0]},enum:({options:e})=>{const l=r.getColorMaps()?.[e?.colorsClass]?.type;return r.getColorMapKeys(e?.colorsType??l??"sequential")},toOptions:({options:e,value:l})=>{const a=r.getColorMaps()?.[e?.colorsClass]?.type,s={...e,colorsClass:l,colorsType:a??"sequential"};return delete s.manualValues,s}},visibleIf:({options:e})=>e?.colorsType!=="manual"},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!1,debounce:500,label:"Manual range values",hideLabel:!0,calculateValue:({options:e})=>t.calculateManualRanges(e?.numberClasses??7,"manual",t.toRangesWithValue(e?.manualValues?.ranges)),toOptions:({options:e,value:l})=>({...e,manualValues:{...e.manualValues,ranges:t.toRangesWithVal(l)}})},visibleIf:({options:e})=>e?.colorsType==="manual"}]},{key:"axes",type:"group",open:!1,children:[{key:"sort.x.order",control:{type:"picker",label:"X-axis order",default:"asc",enum:["asc","desc"]}},{key:"axis.x.color",control:{type:"color-picker",label:"X-axis color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>o.getThemeMainColorResetLabel(e,l,"axis.x.color"),extraLabelHasClickAction:({options:e,theme:l})=>o.getThemeMainColorExtraLabelHasClickAction(e,l,"axis.x.color"),extraLabelClickAction:({options:e,theme:l})=>o.getThemeMainColorExtraLabelClickAction(e,l,"axis.x.color")}},{key:"xAxisLabels",type:"group",label:"X-axis label",collapsible:!0,open:!1,children:[{key:"axislabels.x.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.x.position",control:{type:"picker",label:"Position",default:"center",enum:["left","center","right"]},visibleIf:({options:e})=>e?.axislabels?.x?.enabled===!0}]},{key:"xAxisTicks",type:"group",label:"X-axis ticks",collapsible:!0,open:!1,children:[{key:"axis.x.ticksMode",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]},{type:"divider"},{key:"sort.y.order",control:{type:"picker",label:"Y-axis order",default:"asc",enum:["asc","desc"]}},{key:"axis.y.color",control:{type:"color-picker",label:"Y-axis color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>o.getThemeMainColorResetLabel(e,l,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:l})=>o.getThemeMainColorExtraLabelHasClickAction(e,l,"axis.y.color"),extraLabelClickAction:({options:e,theme:l})=>o.getThemeMainColorExtraLabelClickAction(e,l,"axis.y.color")}},{key:"yAxisLabels",type:"group",label:"Y-axis label",collapsible:!0,open:!1,children:[{key:"axislabels.y.enabled",control:{type:"switch",label:"Enabled",default:!1}},{key:"axislabels.y.position",control:{type:"picker",label:"Position",default:"top",enum:["top","middle","bottom"]},visibleIf:({options:e})=>e?.axislabels?.y?.enabled===!0}]},{key:"yAxisTicks",type:"group",label:"Y-axis ticks",collapsible:!0,open:!1,children:[{key:"axis.y.ticks",control:{type:"picker",label:"Display mode",default:"ticks",enum:["ticks","hide"]}}]}]}];exports.default=y;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
"use strict";const l=(o,t)=>t.split(".").reduce((r,e)=>r&&r[e]!==void 0?r[e]:void 0,o),i=(o,t,a)=>{const r=t.split("."),e=r.pop(),c=r.reduce((n,s)=>(n[s]===void 0&&(n[s]={}),n[s]),o);return e&&(c[e]=a),o},g=o=>o?.mainColor??o?.colors?.[0],C=(o,t,a)=>{const r=t?.mainColor??t?.colors?.[0],e=l(o,a);if(r&&e&&e!==r)return"reset"},b=(o,t,a)=>{const r=t?.mainColor??t?.colors?.[0],e=l(o,a);return!!(r&&e&&e!==r)},d=(o,t,a)=>{const r=t?.mainColor??t?.colors?.[0],e={...o};return i(e,a,r),{value:r,options:e}},u=o=>o?.borders?.["border-color"]??(o?.darkOrLight==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)"),h=(o,t,a)=>{const r=t?.borders?.["border-color"]??(t?.darkOrLight==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)"),e=l(o,a);if(r&&e&&e!==r)return"reset"},m=(o,t,a)=>{const r=t?.borders?.["border-color"]??(t?.darkOrLight==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)"),e=l(o,a);return!!(r&&e&&e!==r)},k=(o,t,a)=>{const r=t?.borders?.["border-color"]??(t?.darkOrLight==="dark"?"rgba(216,216,216,1)":"rgba(0,0,0,1)"),e={...o};return i(e,a,r),{value:r,options:e}},L=o=>o?.darkOrLight==="dark"?"rgba(255, 255, 255)":"rgba(0,0,0)",T=(o,t,a)=>{const r=t?.darkOrLight==="dark"?"rgba(255, 255, 255)":"rgba(0,0,0)",e=l(o,a);if(e&&e!==r)return"reset"},x=(o,t,a)=>{const r=t?.darkOrLight==="dark"?"rgba(255, 255, 255)":"rgba(0,0,0)",e=l(o,a);return!!(e&&e!==r)},A=(o,t,a)=>{const r=t?.darkOrLight==="dark"?"rgb(255, 255, 255)":"rgba(0,0,0)",e={...o};return i(e,a,r),{value:r,options:e}};exports.getThemeAxisColor=L;exports.getThemeAxisColorExtraLabelClickAction=A;exports.getThemeAxisColorExtraLabelHasClickAction=x;exports.getThemeAxisColorResetLabel=T;exports.getThemeBorderColor=u;exports.getThemeBorderColorExtraLabelClickAction=k;exports.getThemeBorderColorExtraLabelHasClickAction=m;exports.getThemeBorderColorResetLabel=h;exports.getThemeMainColor=g;exports.getThemeMainColorExtraLabelClickAction=d;exports.getThemeMainColorExtraLabelHasClickAction=b;exports.getThemeMainColorResetLabel=C;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
const a = (o, t) => t.split(".").reduce(
|
|
21
|
+
(e, r) => e && e[r] !== void 0 ? e[r] : void 0,
|
|
22
|
+
o
|
|
23
|
+
), c = (o, t, s) => {
|
|
24
|
+
const e = t.split("."), r = e.pop(), i = e.reduce((n, l) => (n[l] === void 0 && (n[l] = {}), n[l]), o);
|
|
25
|
+
return r && (i[r] = s), o;
|
|
26
|
+
}, g = (o) => o?.mainColor ?? o?.colors?.[0], u = (o, t, s) => {
|
|
27
|
+
const e = t?.mainColor ?? t?.colors?.[0], r = a(o, s);
|
|
28
|
+
if (e && r && r !== e)
|
|
29
|
+
return "reset";
|
|
30
|
+
}, d = (o, t, s) => {
|
|
31
|
+
const e = t?.mainColor ?? t?.colors?.[0], r = a(o, s);
|
|
32
|
+
return !!(e && r && r !== e);
|
|
33
|
+
}, b = (o, t, s) => {
|
|
34
|
+
const e = t?.mainColor ?? t?.colors?.[0], r = { ...o };
|
|
35
|
+
return c(r, s, e), {
|
|
36
|
+
value: e,
|
|
37
|
+
options: r
|
|
38
|
+
};
|
|
39
|
+
}, C = (o) => o?.borders?.["border-color"] ?? (o?.darkOrLight === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)"), k = (o, t, s) => {
|
|
40
|
+
const e = t?.borders?.["border-color"] ?? (t?.darkOrLight === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)"), r = a(o, s);
|
|
41
|
+
if (e && r && r !== e)
|
|
42
|
+
return "reset";
|
|
43
|
+
}, h = (o, t, s) => {
|
|
44
|
+
const e = t?.borders?.["border-color"] ?? (t?.darkOrLight === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)"), r = a(o, s);
|
|
45
|
+
return !!(e && r && r !== e);
|
|
46
|
+
}, m = (o, t, s) => {
|
|
47
|
+
const e = t?.borders?.["border-color"] ?? (t?.darkOrLight === "dark" ? "rgba(216,216,216,1)" : "rgba(0,0,0,1)"), r = { ...o };
|
|
48
|
+
return c(r, s, e), {
|
|
49
|
+
value: e,
|
|
50
|
+
options: r
|
|
51
|
+
};
|
|
52
|
+
}, L = (o) => o?.darkOrLight === "dark" ? "rgba(255, 255, 255)" : "rgba(0,0,0)", f = (o, t, s) => {
|
|
53
|
+
const e = t?.darkOrLight === "dark" ? "rgba(255, 255, 255)" : "rgba(0,0,0)", r = a(o, s);
|
|
54
|
+
if (r && r !== e)
|
|
55
|
+
return "reset";
|
|
56
|
+
}, v = (o, t, s) => {
|
|
57
|
+
const e = t?.darkOrLight === "dark" ? "rgba(255, 255, 255)" : "rgba(0,0,0)", r = a(o, s);
|
|
58
|
+
return !!(r && r !== e);
|
|
59
|
+
}, T = (o, t, s) => {
|
|
60
|
+
const e = t?.darkOrLight === "dark" ? "rgb(255, 255, 255)" : "rgba(0,0,0)", r = { ...o };
|
|
61
|
+
return c(r, s, e), {
|
|
62
|
+
value: e,
|
|
63
|
+
options: r
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
d as a,
|
|
68
|
+
u as b,
|
|
69
|
+
g as c,
|
|
70
|
+
m as d,
|
|
71
|
+
h as e,
|
|
72
|
+
k as f,
|
|
73
|
+
b as g,
|
|
74
|
+
C as h,
|
|
75
|
+
T as i,
|
|
76
|
+
v as j,
|
|
77
|
+
f as k,
|
|
78
|
+
L as l
|
|
79
|
+
};
|