@luzmo/analytics-components-kit 1.0.1-alpha.97 → 1.0.1-alpha.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +1 -0
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +2 -1
- package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
- package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
- package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
- package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
- package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
- package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
- package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
- package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
- package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
- package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
- package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
- package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
- package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
- package/components/color-B6LaL8qz.cjs +20 -0
- package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
- package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
- package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
- package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
- package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
- package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
- package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +2 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +35 -32
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +52 -50
- package/components/{date-comparison-filter-options.config-QaoWaFUn.cjs → date-comparison-filter-options.config-DAVncmi0.cjs} +1 -1
- package/components/{date-comparison-filter-options.config-CSwGyuBg.js → date-comparison-filter-options.config-JA_yYpJa.js} +6 -3
- package/components/{date-filter-options.config-n-zhWaYa.cjs → date-filter-options.config-CWPMtA18.cjs} +1 -1
- package/components/{date-filter-options.config-BTVyHRkp.js → date-filter-options.config-DBRxlTWy.js} +6 -3
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +30 -29
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +120 -112
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +24 -23
- package/components/display-settings-numeric/index.cjs +48 -48
- package/components/display-settings-numeric/index.js +206 -190
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +97 -91
- package/components/{donut-chart-options.config-3ZqX8Cbb.js → donut-chart-options.config-BulUEiaH.js} +37 -21
- package/components/donut-chart-options.config-tNpqBZfR.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +46 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +73 -70
- package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
- package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +223 -208
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +119 -116
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +53 -52
- package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
- package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +117 -106
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +27 -26
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +25 -21
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +81 -76
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +22 -21
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +23 -22
- package/components/en-BKBhKBXY.cjs +20 -0
- package/components/en-BOTjhwEc.js +1488 -0
- package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
- package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
- package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
- package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
- package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +86 -85
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +119 -109
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +36 -34
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +71 -56
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +124 -113
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +110 -101
- package/components/focusable-B3E_hQmm.cjs +20 -0
- package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
- package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/{get-css-variable-Bb7TxJdX.js → get-css-variable-YlLiVgo8.js} +37 -37
- package/components/grid/index.cjs +49 -43
- package/components/grid/index.js +1878 -2610
- package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
- package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
- package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
- package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
- package/components/helpers-DXQwEH1P.cjs +20 -0
- package/components/helpers-v1bPALRP.js +91 -0
- package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
- package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
- package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
- package/components/index-CDi4fe3N.js +1716 -0
- package/components/index-CQ9ck-BO.cjs +249 -0
- package/components/index-CXn67vdn.cjs +121 -0
- package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
- package/components/index-Cz9vSXy6.cjs +20 -0
- package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
- package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
- package/components/index.cjs +1 -1
- package/components/index.js +5 -5
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
- package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
- package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
- package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
- package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
- package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
- package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
- package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
- package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
- package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
- package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
- package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
- package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
- package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
- package/components/route-map-options.config-D7NJePTu.cjs +20 -0
- package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
- package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
- package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
- package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
- package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
- package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
- package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
- package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
- package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +205 -194
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +184 -171
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +103 -97
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
- package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
- package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
- package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
- package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
- package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
- package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
- package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
- package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
- package/components/utils.cjs +1 -1
- package/components/utils.js +97 -94
- package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
- package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
- package/components/viz-item-menu/index.cjs +2 -2
- package/components/viz-item-menu/index.js +5 -4
- package/components/{wordcloud-chart-options.config-BKtJT8Va.cjs → wordcloud-chart-options.config-vGfCW8kE.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-BoB_KuhA.js → wordcloud-chart-options.config-w2NUIWVA.js} +7 -4
- package/custom-elements.json +0 -20
- package/package.json +1 -1
- package/components/area-chart-options.config-Bl8bhhOo.cjs +0 -20
- package/components/bar-chart-options.config-CePAqM83.cjs +0 -20
- package/components/box-plot-options.config-BVNrV2eD.cjs +0 -20
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +0 -20
- package/components/calculate-data-item-icon-DMDhKq_m.js +0 -147
- package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
- package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
- package/components/color-Czp4Im5q.cjs +0 -20
- package/components/color-range-utils-DYYR-iwx.cjs +0 -20
- package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
- package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
- package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
- package/components/en-D3ihEGXg.js +0 -1483
- package/components/en-DZcn_iz_.cjs +0 -20
- package/components/focusable-QLh-LlNt.cjs +0 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
- package/components/get-css-variable-Pzks_rOx.cjs +0 -24
- package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
- package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
- package/components/helpers-9I0oLoUB.cjs +0 -20
- package/components/helpers-bR8Ibjqh.js +0 -79
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
- package/components/index-BekTY3Em.cjs +0 -121
- package/components/index-CFL6gmIu.cjs +0 -20
- package/components/index-DNPULp4A.js +0 -1755
- package/components/index-DvkzMbLt.cjs +0 -249
- package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
- package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
- package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
- package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
- package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
- package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
- package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js}
RENAMED
|
@@ -17,9 +17,12 @@
|
|
|
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 { g as
|
|
22
|
-
const
|
|
20
|
+
import { g as i, a as c } from "./color-palettes-BqH2Fv19.js";
|
|
21
|
+
import { g as u, a as y, b as d, c as k } from "./helpers-v1bPALRP.js";
|
|
22
|
+
const t = ({ options: e }) => {
|
|
23
|
+
var r;
|
|
24
|
+
return ((r = e == null ? void 0 : e.observations) == null ? void 0 : r.display) === !0;
|
|
25
|
+
}, C = [
|
|
23
26
|
{
|
|
24
27
|
key: "general",
|
|
25
28
|
type: "group",
|
|
@@ -75,14 +78,14 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
75
78
|
control: {
|
|
76
79
|
type: "color-picker",
|
|
77
80
|
label: "Box fill",
|
|
78
|
-
default: ({ theme: e }) =>
|
|
79
|
-
extraLabel: ({ options: e, theme:
|
|
80
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
81
|
+
default: ({ theme: e }) => k(e),
|
|
82
|
+
extraLabel: ({ options: e, theme: r }) => d(e, r, "boxFill"),
|
|
83
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => y(
|
|
81
84
|
e,
|
|
82
|
-
|
|
85
|
+
r,
|
|
83
86
|
"boxFill"
|
|
84
87
|
),
|
|
85
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
88
|
+
extraLabelClickAction: ({ options: e, theme: r }) => u(e, r, "boxFill")
|
|
86
89
|
}
|
|
87
90
|
},
|
|
88
91
|
{
|
|
@@ -90,18 +93,25 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
90
93
|
control: {
|
|
91
94
|
type: "slider",
|
|
92
95
|
label: "Rounded corners",
|
|
93
|
-
default: ({ theme: e }) =>
|
|
96
|
+
default: ({ theme: e }) => {
|
|
97
|
+
var r;
|
|
98
|
+
return ((r = e == null ? void 0 : e.itemSpecific) == null ? void 0 : r.rounding) ?? 8;
|
|
99
|
+
},
|
|
94
100
|
min: 0,
|
|
95
101
|
max: 24,
|
|
96
102
|
step: 1,
|
|
97
|
-
extraLabel: ({ options: e, theme:
|
|
98
|
-
|
|
99
|
-
|
|
103
|
+
extraLabel: ({ options: e, theme: r }) => {
|
|
104
|
+
var l;
|
|
105
|
+
if (typeof ((l = r == null ? void 0 : r.itemSpecific) == null ? void 0 : l.rounding) == "number")
|
|
106
|
+
return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
|
|
107
|
+
},
|
|
108
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
109
|
+
var l;
|
|
110
|
+
return !(typeof ((l = r == null ? void 0 : r.itemSpecific) == null ? void 0 : l.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
|
|
100
111
|
},
|
|
101
|
-
extraLabelHasClickAction: ({ options: e, theme: o }) => !(typeof o?.itemSpecific?.rounding != "number" || typeof e?.roundedCorners != "number"),
|
|
102
112
|
extraLabelClickAction: ({ options: e }) => {
|
|
103
|
-
const
|
|
104
|
-
return
|
|
113
|
+
const r = { ...e };
|
|
114
|
+
return (r == null ? void 0 : r.roundedCorners) !== void 0 && delete r.roundedCorners, { value: null, options: r };
|
|
105
115
|
}
|
|
106
116
|
}
|
|
107
117
|
},
|
|
@@ -121,16 +131,16 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
121
131
|
control: {
|
|
122
132
|
type: "color-picker",
|
|
123
133
|
label: "Box stroke color",
|
|
124
|
-
default: ({ theme: e }) =>
|
|
125
|
-
extraLabel: ({ options: e, theme:
|
|
126
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
134
|
+
default: ({ theme: e }) => k(e),
|
|
135
|
+
extraLabel: ({ options: e, theme: r }) => d(e, r, "boxStrokeColor"),
|
|
136
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => y(
|
|
127
137
|
e,
|
|
128
|
-
|
|
138
|
+
r,
|
|
129
139
|
"boxStrokeColor"
|
|
130
140
|
),
|
|
131
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
141
|
+
extraLabelClickAction: ({ options: e, theme: r }) => u(
|
|
132
142
|
e,
|
|
133
|
-
|
|
143
|
+
r,
|
|
134
144
|
"boxStrokeColor"
|
|
135
145
|
)
|
|
136
146
|
}
|
|
@@ -176,7 +186,7 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
176
186
|
label: "Only outliers",
|
|
177
187
|
default: !1
|
|
178
188
|
},
|
|
179
|
-
visibleIf:
|
|
189
|
+
visibleIf: t
|
|
180
190
|
},
|
|
181
191
|
{
|
|
182
192
|
key: "observations.type",
|
|
@@ -186,7 +196,7 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
186
196
|
default: "dot",
|
|
187
197
|
enum: ["dot", "ticks"]
|
|
188
198
|
},
|
|
189
|
-
visibleIf:
|
|
199
|
+
visibleIf: t
|
|
190
200
|
},
|
|
191
201
|
{
|
|
192
202
|
key: "observations.size",
|
|
@@ -198,7 +208,7 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
198
208
|
max: 10,
|
|
199
209
|
step: 1
|
|
200
210
|
},
|
|
201
|
-
visibleIf:
|
|
211
|
+
visibleIf: t
|
|
202
212
|
},
|
|
203
213
|
{
|
|
204
214
|
key: "observations.opacity",
|
|
@@ -210,7 +220,7 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
210
220
|
max: 1,
|
|
211
221
|
step: 0.1
|
|
212
222
|
},
|
|
213
|
-
visibleIf:
|
|
223
|
+
visibleIf: t
|
|
214
224
|
},
|
|
215
225
|
{
|
|
216
226
|
key: "observations.jitter",
|
|
@@ -222,7 +232,7 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
222
232
|
max: 100,
|
|
223
233
|
step: 1
|
|
224
234
|
},
|
|
225
|
-
visibleIf:
|
|
235
|
+
visibleIf: t
|
|
226
236
|
},
|
|
227
237
|
{
|
|
228
238
|
key: "observations.colorType",
|
|
@@ -232,28 +242,39 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
232
242
|
default: "single",
|
|
233
243
|
enum: ["single", "range"]
|
|
234
244
|
},
|
|
235
|
-
visibleIf:
|
|
245
|
+
visibleIf: t
|
|
236
246
|
},
|
|
237
247
|
{
|
|
238
248
|
key: "observations.color",
|
|
239
249
|
control: {
|
|
240
250
|
type: "color-picker",
|
|
241
251
|
label: "Color",
|
|
242
|
-
default: ({ theme: e }) =>
|
|
243
|
-
|
|
244
|
-
|
|
252
|
+
default: ({ theme: e }) => {
|
|
253
|
+
var r;
|
|
254
|
+
return (r = e == null ? void 0 : e.colors) == null ? void 0 : r[1];
|
|
255
|
+
},
|
|
256
|
+
extraLabel: ({ options: e, theme: r }) => {
|
|
257
|
+
var l, o, a, s;
|
|
258
|
+
if ((l = r == null ? void 0 : r.colors) != null && l[1] && ((o = e.observations) != null && o.color) && ((a = e.observations) == null ? void 0 : a.color) !== ((s = r == null ? void 0 : r.colors) == null ? void 0 : s[1]))
|
|
245
259
|
return "reset";
|
|
246
260
|
},
|
|
247
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
261
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
262
|
+
var l, o, a;
|
|
263
|
+
return !!((l = r == null ? void 0 : r.colors) != null && l[1] && ((o = e.observations) == null ? void 0 : o.color) !== ((a = r == null ? void 0 : r.colors) == null ? void 0 : a[1]));
|
|
264
|
+
},
|
|
265
|
+
extraLabelClickAction: ({ options: e, theme: r }) => {
|
|
266
|
+
var o;
|
|
267
|
+
const l = { ...e };
|
|
268
|
+
return l.observations.color = (o = r == null ? void 0 : r.colors) == null ? void 0 : o[1], {
|
|
269
|
+
value: l.observations.color,
|
|
270
|
+
options: l
|
|
253
271
|
};
|
|
254
272
|
}
|
|
255
273
|
},
|
|
256
|
-
visibleIf: ({ options: e }) =>
|
|
274
|
+
visibleIf: ({ options: e }) => {
|
|
275
|
+
var r;
|
|
276
|
+
return t({ options: e }) && ((r = e == null ? void 0 : e.observations) == null ? void 0 : r.colorType) === "single";
|
|
277
|
+
}
|
|
257
278
|
},
|
|
258
279
|
{
|
|
259
280
|
key: "observations.colorsType",
|
|
@@ -267,9 +288,16 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
267
288
|
"divergent"
|
|
268
289
|
/* , 'manual' */
|
|
269
290
|
],
|
|
270
|
-
calculateValue: ({ options: e }) =>
|
|
271
|
-
|
|
272
|
-
if (o === "manual")
|
|
291
|
+
calculateValue: ({ options: e }) => {
|
|
292
|
+
var o, a, s;
|
|
293
|
+
if (((o = e == null ? void 0 : e.observations) == null ? void 0 : o.colorsClass) === "manual")
|
|
294
|
+
return "manual";
|
|
295
|
+
const r = i();
|
|
296
|
+
return ((s = r == null ? void 0 : r[(a = e == null ? void 0 : e.observations) == null ? void 0 : a.colorsClass]) == null ? void 0 : s.type) ?? "divergent";
|
|
297
|
+
},
|
|
298
|
+
toOptions: ({ options: e, value: r }) => {
|
|
299
|
+
var s, n, b;
|
|
300
|
+
if (r === "manual")
|
|
273
301
|
return {
|
|
274
302
|
...e,
|
|
275
303
|
observations: {
|
|
@@ -279,19 +307,22 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
279
307
|
colorsClass: "manual"
|
|
280
308
|
}
|
|
281
309
|
};
|
|
282
|
-
let
|
|
283
|
-
const
|
|
284
|
-
return
|
|
310
|
+
let l = (s = e.observations) == null ? void 0 : s.colorClass;
|
|
311
|
+
const o = i(), a = (b = o == null ? void 0 : o[(n = e == null ? void 0 : e.observations) == null ? void 0 : n.colorsClass]) == null ? void 0 : b.type;
|
|
312
|
+
return r !== a && (l = c(r ?? "divergent")[0]), {
|
|
285
313
|
...e,
|
|
286
314
|
observations: {
|
|
287
315
|
...e.observations,
|
|
288
|
-
colorsClass:
|
|
289
|
-
colorsType:
|
|
316
|
+
colorsClass: l,
|
|
317
|
+
colorsType: r
|
|
290
318
|
}
|
|
291
319
|
};
|
|
292
320
|
}
|
|
293
321
|
},
|
|
294
|
-
visibleIf: ({ options: e }) =>
|
|
322
|
+
visibleIf: ({ options: e }) => {
|
|
323
|
+
var r;
|
|
324
|
+
return t({ options: e }) && ((r = e == null ? void 0 : e.observations) == null ? void 0 : r.colorType) === "range";
|
|
325
|
+
}
|
|
295
326
|
},
|
|
296
327
|
/* TODO: need to be able to retrieve values from the boxplot
|
|
297
328
|
{
|
|
@@ -317,19 +348,24 @@ const l = ({ options: e }) => e?.observations?.display === !0, d = [
|
|
|
317
348
|
label: "Color palette",
|
|
318
349
|
hideLabel: !0,
|
|
319
350
|
default: ({ options: e }) => {
|
|
320
|
-
|
|
321
|
-
|
|
351
|
+
var o, a;
|
|
352
|
+
const r = i(), l = (a = r == null ? void 0 : r[(o = e == null ? void 0 : e.observations) == null ? void 0 : o.colorsClass]) == null ? void 0 : a.type;
|
|
353
|
+
return c(l ?? "divergent")[0];
|
|
322
354
|
},
|
|
323
355
|
enum: ({ options: e }) => {
|
|
324
|
-
|
|
325
|
-
|
|
356
|
+
var o, a;
|
|
357
|
+
const r = i(), l = (a = r == null ? void 0 : r[(o = e == null ? void 0 : e.observations) == null ? void 0 : o.colorsClass]) == null ? void 0 : a.type;
|
|
358
|
+
return c(l ?? "divergent");
|
|
326
359
|
}
|
|
327
360
|
},
|
|
328
|
-
visibleIf: ({ options: e }) =>
|
|
361
|
+
visibleIf: ({ options: e }) => {
|
|
362
|
+
var r, l;
|
|
363
|
+
return t({ options: e }) && ((r = e == null ? void 0 : e.observations) == null ? void 0 : r.colorType) === "range" && ((l = e == null ? void 0 : e.observations) == null ? void 0 : l.colorsClass) !== "manual";
|
|
364
|
+
}
|
|
329
365
|
}
|
|
330
366
|
]
|
|
331
367
|
}
|
|
332
368
|
];
|
|
333
369
|
export {
|
|
334
|
-
|
|
370
|
+
C as default
|
|
335
371
|
};
|
|
@@ -17,8 +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 { g as
|
|
21
|
-
const o = ({ slots: e }) =>
|
|
20
|
+
import { g as i, a as n, b as c, c as b } from "./helpers-v1bPALRP.js";
|
|
21
|
+
const o = ({ slots: e }) => {
|
|
22
|
+
var l, t;
|
|
23
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((t = (l = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : t.length) > 0 : !1;
|
|
24
|
+
}, r = ({ slots: e }) => {
|
|
25
|
+
var l, t;
|
|
26
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? !(((t = (l = e == null ? void 0 : e.find((a) => (a == null ? void 0 : a.name) === "color")) == null ? void 0 : l.content) == null ? void 0 : t.length) > 0) : !0;
|
|
27
|
+
}, g = [
|
|
22
28
|
{
|
|
23
29
|
key: "general",
|
|
24
30
|
type: "group",
|
|
@@ -67,19 +73,22 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
67
73
|
label: "Bubble color by category",
|
|
68
74
|
default: !0
|
|
69
75
|
},
|
|
70
|
-
visibleIf:
|
|
76
|
+
visibleIf: r
|
|
71
77
|
},
|
|
72
78
|
{
|
|
73
79
|
key: "color",
|
|
74
80
|
control: {
|
|
75
81
|
type: "color-picker",
|
|
76
82
|
label: "Bubble color",
|
|
77
|
-
default: ({ theme: e }) =>
|
|
78
|
-
extraLabel: ({ options: e, theme:
|
|
79
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
80
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
83
|
+
default: ({ theme: e }) => b(e),
|
|
84
|
+
extraLabel: ({ options: e, theme: l }) => c(e, l, "color"),
|
|
85
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => n(e, l, "color"),
|
|
86
|
+
extraLabelClickAction: ({ options: e, theme: l }) => i(e, l, "color")
|
|
81
87
|
},
|
|
82
|
-
visibleIf: ({ options: e, slots:
|
|
88
|
+
visibleIf: ({ options: e, slots: l }) => {
|
|
89
|
+
var t;
|
|
90
|
+
return ((t = e == null ? void 0 : e.categories) == null ? void 0 : t.colored) === !1 && r({ slots: l });
|
|
91
|
+
}
|
|
83
92
|
}
|
|
84
93
|
]
|
|
85
94
|
},
|
|
@@ -111,5 +120,5 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
111
120
|
}
|
|
112
121
|
];
|
|
113
122
|
export {
|
|
114
|
-
|
|
123
|
+
g as default
|
|
115
124
|
};
|
|
@@ -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-DXQwEH1P.cjs"),a=({slots:e})=>{var t,l;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((l=(t=e==null?void 0:e.find(r=>(r==null?void 0:r.name)==="color"))==null?void 0:t.content)==null?void 0:l.length)>0:!1},i=({slots:e})=>{var t,l;return Array.isArray(e)&&(e==null?void 0:e.length)>0?!(((l=(t=e==null?void 0:e.find(r=>(r==null?void 0:r.name)==="color"))==null?void 0:t.content)==null?void 0:l.length)>0):!0},n=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.legend",control:{type:"switch",label:"Legend",default:!0},visibleIf:a},{key:"display.bubbleLabels",control:{type:"switch",label:"Show labels",tooltip:"If enough room available",default:!0}},{key:"display.bubbleValues",control:{type:"picker",label:"Show values",tooltip:"If enough room available",default:"none",enum:["none","percentage","absolute"]}},{key:"categories.colored",control:{type:"switch",label:"Bubble color by category",default:!0},visibleIf:i},{key:"color",control:{type:"color-picker",label:"Bubble color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:t})=>o.getThemeMainColorResetLabel(e,t,"color"),extraLabelHasClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelHasClickAction(e,t,"color"),extraLabelClickAction:({options:e,theme:t})=>o.getThemeMainColorExtraLabelClickAction(e,t,"color")},visibleIf:({options:e,slots:t})=>{var l;return((l=e==null?void 0:e.categories)==null?void 0:l.colored)===!1&&i({slots:t})}}]},{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:a}];exports.default=n;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { g as t, a as o, b as a, c as r } from "./helpers-
|
|
20
|
+
import { g as t, a as o, b as a, c as r } from "./helpers-v1bPALRP.js";
|
|
21
21
|
const i = [
|
|
22
22
|
{
|
|
23
23
|
key: "general",
|
|
@@ -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 t=require("./helpers-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./helpers-DXQwEH1P.cjs"),o=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"display.ranges",control:{type:"switch",label:"Ranges",default:!0}},{key:"display.bulletSubtitles",control:{type:"switch",label:"Bullet subtitle",default:!1}},{key:"color",control:{type:"color-picker",label:"Bullet color",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"color"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"color"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"color")}},{key:"sort.direction",control:{type:"picker",label:"Bullet order",default:"asc",enum:["asc","desc"]}}]}];exports.default=o;
|
|
@@ -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 r=require("@luzmo/icons"),u={"array[hierarchy]":{s:r.luzmoTypeArrayHierarchy12,m:r.luzmoTypeArrayHierarchy14,l:r.luzmoTypeArrayHierarchy,xl:r.luzmoTypeArrayHierarchy},"array[datetime]":{s:r.luzmoTypeArrayDatetime12,m:r.luzmoTypeArrayDatetime14,l:r.luzmoTypeArrayDatetime,xl:r.luzmoTypeArrayDatetime},"array[numeric]":{s:r.luzmoTypeArrayNumeric12,m:r.luzmoTypeArrayNumeric14,l:r.luzmoTypeArrayNumeric,xl:r.luzmoTypeArrayNumeric},"array[currency]":{s:r.luzmoTypeArrayCurrency12,m:r.luzmoTypeArrayCurrency14,l:r.luzmoTypeArrayCurrency,xl:r.luzmoTypeArrayCurrency},"array[duration]":{s:r.luzmoTypeArrayDuration12,m:r.luzmoTypeArrayDuration14,l:r.luzmoTypeArrayDuration,xl:r.luzmoTypeArrayDuration},coordinates:{s:r.luzmoTypeCoordinates12,m:r.luzmoTypeCoordinates14,l:r.luzmoTypeCoordinates,xl:r.luzmoTypeCoordinates},currency:{s:r.luzmoTypeCurrency12,m:r.luzmoTypeCurrency14,l:r.luzmoTypeCurrency,xl:r.luzmoTypeCurrency},date:{s:r.luzmoTypeDate12,m:r.luzmoTypeDate14,l:r.luzmoTypeDate,xl:r.luzmoTypeDate},datetime:{s:r.luzmoTypeDatetime12,m:r.luzmoTypeDatetime14,l:r.luzmoTypeDatetime,xl:r.luzmoTypeDatetime},derived:{s:r.luzmoTypeDerived12,m:r.luzmoTypeDerived14,l:r.luzmoTypeDerived,xl:r.luzmoTypeDerived},duration:{s:r.luzmoTypeDuration12,m:r.luzmoTypeDuration14,l:r.luzmoTypeDuration,xl:r.luzmoTypeDuration},hierarchy:{s:r.luzmoTypeHierarchy12,m:r.luzmoTypeHierarchy14,l:r.luzmoTypeHierarchy,xl:r.luzmoTypeHierarchy},image:{s:r.luzmoTypeImage12,m:r.luzmoTypeImage14,l:r.luzmoTypeImage,xl:r.luzmoTypeImage},numeric:{s:r.luzmoTypeNumeric12,m:r.luzmoTypeNumeric14,l:r.luzmoTypeNumeric,xl:r.luzmoTypeNumeric},topography:{s:r.luzmoTypeTopography,m:r.luzmoTypeTopography,l:r.luzmoTypeTopography,xl:r.luzmoTypeTopography},ipaddress:{s:r.luzmoTypeIpAddress12,m:r.luzmoTypeIpAddress14,l:r.luzmoTypeIpAddress,xl:r.luzmoTypeIpAddress},formula:{s:r.luzmoFormula,m:r.luzmoFormula,l:r.luzmoFormula,xl:r.luzmoFormula}},i={xxs:"s",xs:"s",s:"s",m:"m",l:"l",xl:"xl",xxl:"xl"},o=e=>e?i[e]:"m",p=(e,y="m")=>{const l=o(y);return(e==null?void 0:e.type)==="array[hierarchy]"?u["array[hierarchy]"][l]:(e==null?void 0:e.type)==="array[datetime]"?u["array[datetime]"][l]:(e==null?void 0:e.type)==="array[numeric]"?(e==null?void 0:e.subtype)==="currency"?u["array[currency]"][l]:(e==null?void 0:e.subtype)==="duration"?u["array[duration]"][l]:u["array[numeric]"][l]:(e==null?void 0:e.type)==="spatial"?(e==null?void 0:e.subtype)==="topography"?u.topography[l]:u.coordinates[l]:(e==null?void 0:e.type)==="numeric"?(e==null?void 0:e.subtype)==="currency"?u.currency[l]:(e==null?void 0:e.subtype)==="duration"?u.duration[l]:u.numeric[l]:(e==null?void 0:e.type)==="datetime"?e!=null&&e.lowestLevel&&(e==null?void 0:e.lowestLevel)>5&&(e==null?void 0:e.lowestLevel)<=9?u.datetime[l]:e!=null&&e.lowestLevel&&(e==null?void 0:e.lowestLevel)>1&&(e==null?void 0:e.lowestLevel)<=5?u.date[l]:u.datetime[l]:(e==null?void 0:e.type)==="hierarchy"&&(e==null?void 0:e.subtype)==="ip_address"?u.ipaddress[l]:(e==null?void 0:e.type)==="hierarchy"&&(e==null?void 0:e.subtype)==="hierarchy_element_expression"?u.image[l]:u.hierarchy[l]},n=(e,y="m")=>{if(!e)return;const l=o(y),m=typeof e.expression=="string"?e.expression.trim().length>0:e.expression!=null;if(e.formulaId!=null)return u.formula[l];if(e.formulaId==null&&e.columnId!=null&&m)return u.derived[l]};exports.calculateDataItemIcon=p;exports.calculateDataItemSecondaryIcon=n;
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
import { luzmoTypeArrayHierarchy as m, luzmoTypeArrayHierarchy14 as C, luzmoTypeArrayHierarchy12 as b, luzmoTypeArrayDatetime as i, luzmoTypeArrayDatetime14 as N, luzmoTypeArrayDatetime12 as w, luzmoTypeArrayCurrency as n, luzmoTypeArrayCurrency14 as H, luzmoTypeArrayCurrency12 as L, luzmoTypeArrayDuration as p, luzmoTypeArrayDuration14 as S, luzmoTypeArrayDuration12 as E, luzmoTypeArrayNumeric as s, luzmoTypeArrayNumeric14 as _, luzmoTypeArrayNumeric12 as B, luzmoTypeTopography as y, luzmoTypeCoordinates as c, luzmoTypeCoordinates14 as F, luzmoTypeCoordinates12 as j, luzmoTypeCurrency as z, luzmoTypeCurrency14 as k, luzmoTypeCurrency12 as q, luzmoTypeDuration as T, luzmoTypeDuration14 as G, luzmoTypeDuration12 as J, luzmoTypeNumeric as x, luzmoTypeNumeric14 as K, luzmoTypeNumeric12 as M, luzmoTypeDatetime as h, luzmoTypeDatetime14 as O, luzmoTypeDatetime12 as P, luzmoTypeDate as f, luzmoTypeDate14 as Q, luzmoTypeDate12 as R, luzmoTypeIpAddress as D, luzmoTypeIpAddress14 as U, luzmoTypeIpAddress12 as V, luzmoTypeImage as A, luzmoTypeImage14 as W, luzmoTypeImage12 as X, luzmoTypeHierarchy as I, luzmoTypeHierarchy14 as Y, luzmoTypeHierarchy12 as Z, luzmoFormula as u, luzmoTypeDerived as g, luzmoTypeDerived14 as $, luzmoTypeDerived12 as d } from "@luzmo/icons";
|
|
21
|
+
const l = {
|
|
22
|
+
"array[hierarchy]": {
|
|
23
|
+
s: b,
|
|
24
|
+
m: C,
|
|
25
|
+
l: m,
|
|
26
|
+
xl: m
|
|
27
|
+
},
|
|
28
|
+
"array[datetime]": {
|
|
29
|
+
s: w,
|
|
30
|
+
m: N,
|
|
31
|
+
l: i,
|
|
32
|
+
xl: i
|
|
33
|
+
},
|
|
34
|
+
"array[numeric]": {
|
|
35
|
+
s: B,
|
|
36
|
+
m: _,
|
|
37
|
+
l: s,
|
|
38
|
+
xl: s
|
|
39
|
+
},
|
|
40
|
+
"array[currency]": {
|
|
41
|
+
s: L,
|
|
42
|
+
m: H,
|
|
43
|
+
l: n,
|
|
44
|
+
xl: n
|
|
45
|
+
},
|
|
46
|
+
"array[duration]": {
|
|
47
|
+
s: E,
|
|
48
|
+
m: S,
|
|
49
|
+
l: p,
|
|
50
|
+
xl: p
|
|
51
|
+
},
|
|
52
|
+
coordinates: {
|
|
53
|
+
s: j,
|
|
54
|
+
m: F,
|
|
55
|
+
l: c,
|
|
56
|
+
xl: c
|
|
57
|
+
},
|
|
58
|
+
currency: {
|
|
59
|
+
s: q,
|
|
60
|
+
m: k,
|
|
61
|
+
l: z,
|
|
62
|
+
xl: z
|
|
63
|
+
},
|
|
64
|
+
date: {
|
|
65
|
+
s: R,
|
|
66
|
+
m: Q,
|
|
67
|
+
l: f,
|
|
68
|
+
xl: f
|
|
69
|
+
},
|
|
70
|
+
datetime: {
|
|
71
|
+
s: P,
|
|
72
|
+
m: O,
|
|
73
|
+
l: h,
|
|
74
|
+
xl: h
|
|
75
|
+
},
|
|
76
|
+
derived: {
|
|
77
|
+
s: d,
|
|
78
|
+
m: $,
|
|
79
|
+
l: g,
|
|
80
|
+
xl: g
|
|
81
|
+
},
|
|
82
|
+
duration: {
|
|
83
|
+
s: J,
|
|
84
|
+
m: G,
|
|
85
|
+
l: T,
|
|
86
|
+
xl: T
|
|
87
|
+
},
|
|
88
|
+
hierarchy: {
|
|
89
|
+
s: Z,
|
|
90
|
+
m: Y,
|
|
91
|
+
l: I,
|
|
92
|
+
xl: I
|
|
93
|
+
},
|
|
94
|
+
image: {
|
|
95
|
+
s: X,
|
|
96
|
+
m: W,
|
|
97
|
+
l: A,
|
|
98
|
+
xl: A
|
|
99
|
+
},
|
|
100
|
+
numeric: {
|
|
101
|
+
s: M,
|
|
102
|
+
m: K,
|
|
103
|
+
l: x,
|
|
104
|
+
xl: x
|
|
105
|
+
},
|
|
106
|
+
topography: {
|
|
107
|
+
s: y,
|
|
108
|
+
m: y,
|
|
109
|
+
l: y,
|
|
110
|
+
xl: y
|
|
111
|
+
},
|
|
112
|
+
ipaddress: {
|
|
113
|
+
s: V,
|
|
114
|
+
m: U,
|
|
115
|
+
l: D,
|
|
116
|
+
xl: D
|
|
117
|
+
},
|
|
118
|
+
formula: {
|
|
119
|
+
s: u,
|
|
120
|
+
m: u,
|
|
121
|
+
l: u,
|
|
122
|
+
xl: u
|
|
123
|
+
}
|
|
124
|
+
}, a = {
|
|
125
|
+
xxs: "s",
|
|
126
|
+
xs: "s",
|
|
127
|
+
s: "s",
|
|
128
|
+
m: "m",
|
|
129
|
+
l: "l",
|
|
130
|
+
xl: "xl",
|
|
131
|
+
xxl: "xl"
|
|
132
|
+
}, v = (e) => e ? a[e] : "m", re = (e, o = "m") => {
|
|
133
|
+
const r = v(o);
|
|
134
|
+
return (e == null ? void 0 : e.type) === "array[hierarchy]" ? l["array[hierarchy]"][r] : (e == null ? void 0 : e.type) === "array[datetime]" ? l["array[datetime]"][r] : (e == null ? void 0 : e.type) === "array[numeric]" ? (e == null ? void 0 : e.subtype) === "currency" ? l["array[currency]"][r] : (e == null ? void 0 : e.subtype) === "duration" ? l["array[duration]"][r] : l["array[numeric]"][r] : (e == null ? void 0 : e.type) === "spatial" ? (e == null ? void 0 : e.subtype) === "topography" ? l.topography[r] : l.coordinates[r] : (e == null ? void 0 : e.type) === "numeric" ? (e == null ? void 0 : e.subtype) === "currency" ? l.currency[r] : (e == null ? void 0 : e.subtype) === "duration" ? l.duration[r] : l.numeric[r] : (e == null ? void 0 : e.type) === "datetime" ? e != null && e.lowestLevel && (e == null ? void 0 : e.lowestLevel) > 5 && (e == null ? void 0 : e.lowestLevel) <= 9 ? l.datetime[r] : e != null && e.lowestLevel && (e == null ? void 0 : e.lowestLevel) > 1 && (e == null ? void 0 : e.lowestLevel) <= 5 ? l.date[r] : l.datetime[r] : (e == null ? void 0 : e.type) === "hierarchy" && (e == null ? void 0 : e.subtype) === "ip_address" ? l.ipaddress[r] : (e == null ? void 0 : e.type) === "hierarchy" && (e == null ? void 0 : e.subtype) === "hierarchy_element_expression" ? l.image[r] : l.hierarchy[r];
|
|
135
|
+
}, le = (e, o = "m") => {
|
|
136
|
+
if (!e)
|
|
137
|
+
return;
|
|
138
|
+
const r = v(o), t = typeof e.expression == "string" ? e.expression.trim().length > 0 : e.expression != null;
|
|
139
|
+
if (e.formulaId != null)
|
|
140
|
+
return l.formula[r];
|
|
141
|
+
if (e.formulaId == null && e.columnId != null && t)
|
|
142
|
+
return l.derived[r];
|
|
143
|
+
};
|
|
144
|
+
export {
|
|
145
|
+
le as a,
|
|
146
|
+
re as c
|
|
147
|
+
};
|