@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular/README.md +1 -1
- package/angular/components/viz-item-menu.component.ts +25 -0
- package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
- package/angular/esm/components/viz-item-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -3
- package/angular/esm/index.js +3 -3
- package/angular/esm/types.d.ts +2 -2
- package/angular/index.ts +3 -3
- package/angular/types.ts +2 -2
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +50 -52
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/display-settings-numeric.d.ts +1 -2
- package/components/display-settings-numeric/index.cjs +49 -48
- package/components/display-settings-numeric/index.js +193 -218
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +45 -46
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +70 -73
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +208 -223
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en-D3ihEGXg.js +1483 -0
- package/components/en-DZcn_iz_.cjs +20 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
- package/components/get-css-variable-Pzks_rOx.cjs +24 -0
- package/components/grid/index.cjs +43 -49
- package/components/grid/index.js +2610 -1878
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/index-DNPULp4A.js +1755 -0
- package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +13 -13
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +94 -97
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/viz-item-menu/index.cjs +51 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +209 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +43 -23
- package/index.d.ts +1 -1
- package/package.json +7 -7
- package/types.d.ts +2 -2
- package/angular/components/widget-menu.component.ts +0 -25
- package/angular/esm/components/widget-menu.component.d.ts +0 -13
- package/angular/esm/components/widget-menu.component.js +0 -49
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
- package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-CDi4fe3N.js +0 -1716
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
- package/components/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/index.js +0 -211
- package/components/widget-menu/widget-menu.d.ts +0 -77
|
@@ -21,10 +21,10 @@ import { luzmoIcon as m, luzmoPlus as p, luzmoClose12 as b } from "@luzmo/icons"
|
|
|
21
21
|
import "@luzmo/lucero/overlay";
|
|
22
22
|
import "@luzmo/lucero/popover";
|
|
23
23
|
import "@luzmo/lucero/tooltip";
|
|
24
|
-
import { l as h } from "../localize-
|
|
25
|
-
import { g as z } from "../set-locale-
|
|
26
|
-
import { LitElement as v, unsafeCSS as g, html as
|
|
27
|
-
import { property as
|
|
24
|
+
import { l as h } from "../localize-CcDpq940.js";
|
|
25
|
+
import { g as z } from "../set-locale-hKTMz37h.js";
|
|
26
|
+
import { LitElement as v, unsafeCSS as g, html as d, nothing as w } from "lit";
|
|
27
|
+
import { property as l, state as f } from "lit/decorators.js";
|
|
28
28
|
import { repeat as y } from "lit/directives/repeat.js";
|
|
29
29
|
import "../dataset-icon/index.js";
|
|
30
30
|
import "../dataset-selector-list/index.js";
|
|
@@ -35,12 +35,12 @@ import "../dataset-selector-list/index.js";
|
|
|
35
35
|
}
|
|
36
36
|
})();
|
|
37
37
|
const x = ":host{box-sizing:border-box;display:flex;flex-direction:row;gap:var(--luzmo-dataset-selector-row-gap, var(--dataset-selector-row-gap));min-height:var(--luzmo-dataset-selector-row-min-height, var(--dataset-selector-row-min-height));flex-wrap:wrap;font-size:var(--luzmo-dataset-selector-row-font-size, var(--dataset-selector-row-font-size));color:var(--luzmo-dataset-selector-row-color, var(--dataset-selector-row-color));font-family:var(--luzmo-dataset-selector-row-font-family, var(--dataset-selector-row-font-family))}:host[disabled]{cursor:not-allowed;opacity:.6}:host .add-dataset-button{display:inline-flex;align-items:center;gap:var(--luzmo-dataset-selector-row-button-gap, var(--dataset-selector-row-button-gap));min-width:var(--luzmo-dataset-selector-row-button-min-width, var(--dataset-selector-row-button-min-width));height:var(--luzmo-dataset-selector-row-button-height, var(--dataset-selector-row-button-height));border-radius:var(--luzmo-dataset-selector-row-button-border-radius, var(--dataset-selector-row-button-border-radius));border:1px solid var(--luzmo-dataset-selector-row-button-border-color, var(--dataset-selector-row-button-border-color));background-color:var(--luzmo-dataset-selector-row-button-background, var(--dataset-selector-row-button-background));color:var(--luzmo-dataset-selector-row-button-color, var(--dataset-selector-row-button-color));padding:var(--luzmo-dataset-selector-row-button-padding, var(--dataset-selector-row-button-padding));cursor:pointer;font-size:inherit;font-family:inherit;outline:none;justify-content:center;transition:all .15s ease}:host .add-dataset-button:hover{background-color:var(--luzmo-dataset-selector-row-button-hover-background, var(--dataset-selector-row-button-hover-background));border-color:var(--luzmo-dataset-selector-row-button-hover-border-color, var(--dataset-selector-row-button-hover-border-color))}:host .add-dataset-button:focus{outline:none}:host .add-dataset-button svg{font-size:var(--luzmo-dataset-selector-row-button-icon-size, var(--dataset-selector-row-button-icon-size));color:var(--luzmo-dataset-selector-row-button-icon-color, var(--dataset-selector-row-button-icon-color))}:host .add-dataset-button.icon-only{padding:var(--luzmo-dataset-selector-row-button-icon-only-padding, var(--dataset-selector-row-button-icon-only-padding))}:host .add-dataset-button:disabled{cursor:not-allowed;opacity:.6}:host .add-dataset-button:disabled:hover{background-color:var(--luzmo-dataset-selector-row-button-background, var(--dataset-selector-row-button-background));border-color:var(--luzmo-dataset-selector-row-button-border-color, var(--dataset-selector-row-button-border-color))}:host[disabled] .removable-pill{cursor:not-allowed}:host[disabled] .removable-pill:hover{background-color:var(--luzmo-dataset-selector-row-pill-background, var(--dataset-selector-row-pill-background));border-color:var(--luzmo-dataset-selector-row-pill-border-color, var(--dataset-selector-row-pill-border-color))}:host[disabled] .removable-pill:hover .dataset-icon{display:flex}:host[disabled] .removable-pill:hover .close-icon{display:none}:host .removable-pill{box-sizing:border-box;display:flex;flex-direction:row;max-width:var(--luzmo-dataset-selector-row-pill-max-width, var(--dataset-selector-row-pill-max-width));height:var(--luzmo-dataset-selector-row-pill-height, var(--dataset-selector-row-pill-height));padding:var(--luzmo-dataset-selector-row-pill-padding, var(--dataset-selector-row-pill-padding));gap:var(--luzmo-dataset-selector-row-pill-gap, var(--dataset-selector-row-pill-gap));border-radius:var(--luzmo-dataset-selector-row-pill-border-radius, var(--dataset-selector-row-pill-border-radius));border:1px solid var(--luzmo-dataset-selector-row-pill-border-color, var(--dataset-selector-row-pill-border-color));background-color:var(--luzmo-dataset-selector-row-pill-background, var(--dataset-selector-row-pill-background));align-items:center;cursor:pointer;transition:all .15s ease}:host .removable-pill:hover{background-color:var(--luzmo-dataset-selector-row-pill-hover-background, var(--dataset-selector-row-pill-hover-background));border-color:var(--luzmo-dataset-selector-row-pill-hover-border-color, var(--dataset-selector-row-pill-hover-border-color))}:host .removable-pill:hover .dataset-icon{display:none}:host .removable-pill:hover .close-icon{display:inline-block;color:var(--luzmo-dataset-selector-row-pill-close-color, var(--dataset-selector-row-pill-close-color))}:host .removable-pill .close-icon{width:var(--luzmo-dataset-selector-row-pill-close-size, var(--dataset-selector-row-pill-close-size));display:none;flex-shrink:0}:host .removable-pill .dataset-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));height:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size))}:host .removable-pill .dataset-icon luzmo-icon{display:flex}:host .removable-pill .dataset-icon-img{width:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));height:var(--luzmo-dataset-selector-row-pill-icon-size, var(--dataset-selector-row-pill-icon-size));object-fit:contain}:host .removable-pill .dataset-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:inherit;line-height:var(--luzmo-dataset-selector-row-pill-text-line-height, var(--dataset-selector-row-pill-text-line-height))}:host luzmo-popover{width:var(--luzmo-dataset-selector-row-popover-width, var(--dataset-selector-row-popover-width));height:var(--luzmo-dataset-selector-row-popover-height, var(--dataset-selector-row-popover-height))}:host{--dataset-selector-row-gap: var(--luzmo-spacing-2);--dataset-selector-row-min-height: 1.75rem;--dataset-selector-row-font-size: .75rem;--dataset-selector-row-color: var(--luzmo-font-color);--dataset-selector-row-font-family: var(--luzmo-font-family);--dataset-selector-row-button-gap: var(--luzmo-spacing-1);--dataset-selector-row-button-min-width: 1.75rem;--dataset-selector-row-button-height: 1.75rem;--dataset-selector-row-button-border-radius: .5rem;--dataset-selector-row-button-border-color: var(--luzmo-border-color);--dataset-selector-row-button-background: var(--luzmo-background-color-alt-1, rgba(248, 248, 248, 1));--dataset-selector-row-button-color: var(--luzmo-font-color-tertiary, rgba(165, 165, 165, 1));--dataset-selector-row-button-padding: .25rem .375rem;--dataset-selector-row-button-icon-only-padding: .25rem;--dataset-selector-row-button-icon-size: .875rem;--dataset-selector-row-button-icon-color: var(--luzmo-font-color-tertiary);--dataset-selector-row-button-hover-background: var(--luzmo-background-color-highlight, rgba(248, 248, 248, 1));--dataset-selector-row-button-hover-border-color: var(--luzmo-border-color-hover);--dataset-selector-row-button-focus-outline-color: var(--luzmo-primary);--dataset-selector-row-pill-max-width: 10rem;--dataset-selector-row-pill-height: 1.75rem;--dataset-selector-row-pill-padding: .125rem .5rem;--dataset-selector-row-pill-gap: var(--luzmo-spacing-2);--dataset-selector-row-pill-border-radius: .5rem;--dataset-selector-row-pill-border-color: var(--luzmo-border-color);--dataset-selector-row-pill-background: var(--luzmo-background-color-alt-1, rgba(248, 248, 248, 1));--dataset-selector-row-pill-hover-background: var(--luzmo-background-color-highlight, rgba(248, 248, 248, 1));--dataset-selector-row-pill-hover-border-color: var(--luzmo-border-color-hover);--dataset-selector-row-pill-icon-size: 1rem;--dataset-selector-row-pill-close-size: 1rem;--dataset-selector-row-pill-close-color: var(--luzmo-danger, #dc3545);--dataset-selector-row-pill-text-line-height: 1.2;--dataset-selector-row-popover-width: 23.75rem;--dataset-selector-row-popover-height: 15rem}";
|
|
38
|
-
var k = Object.defineProperty,
|
|
39
|
-
for (var
|
|
40
|
-
(u = n
|
|
41
|
-
return
|
|
38
|
+
var k = Object.defineProperty, r = (c, o, e, s) => {
|
|
39
|
+
for (var a = void 0, n = c.length - 1, u; n >= 0; n--)
|
|
40
|
+
(u = c[n]) && (a = u(o, e, a) || a);
|
|
41
|
+
return a && k(o, e, a), a;
|
|
42
42
|
};
|
|
43
|
-
const
|
|
43
|
+
const i = class i extends v {
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments), this.selectedDatasets = [], this.buttonLabel = "Add dataset", this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.flagOpendata = !1, this.disabled = !1, this._overlayOpen = !1;
|
|
46
46
|
}
|
|
@@ -54,11 +54,10 @@ const c = class c extends v {
|
|
|
54
54
|
this.disabled || (this._overlayOpen = !this._overlayOpen);
|
|
55
55
|
}
|
|
56
56
|
_handleDatasetSelected(o) {
|
|
57
|
-
var t;
|
|
58
57
|
const e = o.detail;
|
|
59
58
|
if (!this._selectedDatasetIds.has(e.id)) {
|
|
60
|
-
const
|
|
61
|
-
this.selectedDatasets =
|
|
59
|
+
const a = [...this.selectedDatasets, e];
|
|
60
|
+
this.selectedDatasets = a, this.dispatchEvent(
|
|
62
61
|
new CustomEvent("dataset-selected", {
|
|
63
62
|
detail: e,
|
|
64
63
|
bubbles: !0,
|
|
@@ -66,13 +65,13 @@ const c = class c extends v {
|
|
|
66
65
|
})
|
|
67
66
|
);
|
|
68
67
|
}
|
|
69
|
-
const
|
|
70
|
-
|
|
68
|
+
const s = this.shadowRoot?.getElementById("add-dataset-button");
|
|
69
|
+
s && s.click(), this._overlayOpen = !1;
|
|
71
70
|
}
|
|
72
71
|
_handleDatasetRemoved(o) {
|
|
73
72
|
if (this.disabled)
|
|
74
73
|
return;
|
|
75
|
-
const e = this.selectedDatasets.filter((
|
|
74
|
+
const e = this.selectedDatasets.filter((s) => s.id !== o.id);
|
|
76
75
|
this.selectedDatasets = e, this.dispatchEvent(
|
|
77
76
|
new CustomEvent("dataset-removed", {
|
|
78
77
|
detail: o,
|
|
@@ -86,7 +85,7 @@ const c = class c extends v {
|
|
|
86
85
|
return h(o.name, e) || o.id || "Unknown Dataset";
|
|
87
86
|
}
|
|
88
87
|
_renderDatasetIcon(o) {
|
|
89
|
-
return
|
|
88
|
+
return d`
|
|
90
89
|
<luzmo-dataset-icon
|
|
91
90
|
.datasetInfo=${o}
|
|
92
91
|
size="16px"
|
|
@@ -95,7 +94,7 @@ const c = class c extends v {
|
|
|
95
94
|
`;
|
|
96
95
|
}
|
|
97
96
|
_renderAddButton() {
|
|
98
|
-
return
|
|
97
|
+
return d`
|
|
99
98
|
<button
|
|
100
99
|
id="add-dataset-button"
|
|
101
100
|
type="button"
|
|
@@ -109,7 +108,7 @@ const c = class c extends v {
|
|
|
109
108
|
`;
|
|
110
109
|
}
|
|
111
110
|
_renderDatasetPill(o) {
|
|
112
|
-
return
|
|
111
|
+
return d`
|
|
113
112
|
<div class="removable-pill" @click=${this._createDatasetRemovedHandler(o)}>
|
|
114
113
|
<div class="dataset-icon">
|
|
115
114
|
${this._renderDatasetIcon(o)}
|
|
@@ -134,8 +133,7 @@ const c = class c extends v {
|
|
|
134
133
|
}
|
|
135
134
|
_handleOverlayOpened() {
|
|
136
135
|
this._overlayOpen = !0, requestAnimationFrame(() => {
|
|
137
|
-
|
|
138
|
-
const o = (a = this.shadowRoot) == null ? void 0 : a.querySelector("luzmo-dataset-selector-list"), e = (t = o == null ? void 0 : o.shadowRoot) == null ? void 0 : t.querySelector(".search-input");
|
|
136
|
+
const e = this.shadowRoot?.querySelector("luzmo-dataset-selector-list")?.shadowRoot?.querySelector(".search-input");
|
|
139
137
|
e && e.focus();
|
|
140
138
|
});
|
|
141
139
|
}
|
|
@@ -146,7 +144,7 @@ const c = class c extends v {
|
|
|
146
144
|
return () => this._handleDatasetRemoved(o);
|
|
147
145
|
}
|
|
148
146
|
_renderOverlay() {
|
|
149
|
-
return
|
|
147
|
+
return d`
|
|
150
148
|
<luzmo-overlay
|
|
151
149
|
id="dataset-overlay"
|
|
152
150
|
trigger="add-dataset-button@click"
|
|
@@ -169,7 +167,7 @@ const c = class c extends v {
|
|
|
169
167
|
`;
|
|
170
168
|
}
|
|
171
169
|
render() {
|
|
172
|
-
return
|
|
170
|
+
return d`
|
|
173
171
|
${this._renderAddButton()}
|
|
174
172
|
${y(
|
|
175
173
|
this.selectedDatasets,
|
|
@@ -180,36 +178,36 @@ const c = class c extends v {
|
|
|
180
178
|
`;
|
|
181
179
|
}
|
|
182
180
|
};
|
|
183
|
-
|
|
184
|
-
let
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
],
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
],
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
],
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
],
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
],
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
],
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
],
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
],
|
|
209
|
-
|
|
181
|
+
i.styles = g(x), i.tagName = "luzmo-dataset-selector-row";
|
|
182
|
+
let t = i;
|
|
183
|
+
r([
|
|
184
|
+
l({ type: Array })
|
|
185
|
+
], t.prototype, "selectedDatasets");
|
|
186
|
+
r([
|
|
187
|
+
l({ type: String, attribute: "button-label" })
|
|
188
|
+
], t.prototype, "buttonLabel");
|
|
189
|
+
r([
|
|
190
|
+
l({ type: String, attribute: "auth-key" })
|
|
191
|
+
], t.prototype, "authKey");
|
|
192
|
+
r([
|
|
193
|
+
l({ type: String, attribute: "auth-token" })
|
|
194
|
+
], t.prototype, "authToken");
|
|
195
|
+
r([
|
|
196
|
+
l({ type: String, attribute: "api-url" })
|
|
197
|
+
], t.prototype, "apiUrl");
|
|
198
|
+
r([
|
|
199
|
+
l({ type: String, attribute: "app-server" })
|
|
200
|
+
], t.prototype, "appServer");
|
|
201
|
+
r([
|
|
202
|
+
l({ type: Boolean, attribute: "flag-opendata" })
|
|
203
|
+
], t.prototype, "flagOpendata");
|
|
204
|
+
r([
|
|
205
|
+
l({ type: Boolean, reflect: !0, attribute: "disabled" })
|
|
206
|
+
], t.prototype, "disabled");
|
|
207
|
+
r([
|
|
210
208
|
f()
|
|
211
|
-
],
|
|
212
|
-
customElements.get("luzmo-dataset-selector-row") || customElements.define("luzmo-dataset-selector-row",
|
|
209
|
+
], t.prototype, "_overlayOpen");
|
|
210
|
+
customElements.get("luzmo-dataset-selector-row") || customElements.define("luzmo-dataset-selector-row", t);
|
|
213
211
|
export {
|
|
214
|
-
|
|
212
|
+
t as LuzmoDatasetSelectorRow
|
|
215
213
|
};
|
|
@@ -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
|
-
const
|
|
20
|
+
const l = [
|
|
21
21
|
{
|
|
22
22
|
key: "general",
|
|
23
23
|
type: "group",
|
|
@@ -77,10 +77,7 @@ const a = [
|
|
|
77
77
|
label: "Always show calendars",
|
|
78
78
|
default: !0
|
|
79
79
|
},
|
|
80
|
-
visibleIf: ({ options: e }) =>
|
|
81
|
-
var l;
|
|
82
|
-
return ((l = e == null ? void 0 : e.dateRange) == null ? void 0 : l.showCustomRangeLabel) !== !1;
|
|
83
|
-
}
|
|
80
|
+
visibleIf: ({ options: e }) => e?.dateRange?.showCustomRangeLabel !== !1
|
|
84
81
|
}
|
|
85
82
|
]
|
|
86
83
|
},
|
|
@@ -161,5 +158,5 @@ const a = [
|
|
|
161
158
|
}
|
|
162
159
|
];
|
|
163
160
|
export {
|
|
164
|
-
|
|
161
|
+
l as default
|
|
165
162
|
};
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"dateRange.displayRanges",control:{type:"switch",label:"Display range options",default:!0}},{key:"baseSelector.placeholder",control:{type:"multi-language-field",label:"Placeholder",placeholder:"Select a range..."}},{key:"comparisonSelector.placeholder",control:{type:"multi-language-field",label:"Placeholder",placeholder:"Select a range..."}}]},{key:"rangeOptions",type:"group",open:!0,children:[{key:"dateRange.showCustomRangeLabel",control:{type:"switch",label:"Custom range option",default:!0}},{key:"dateRange.alwaysShowCalendars",control:{type:"switch",label:"Always show calendars",default:!0},visibleIf:({options:e})=>e?.dateRange?.showCustomRangeLabel!==!1}]},{key:"calendar",type:"group",open:!0,children:[{key:"dateRange.markUnavailable",control:{type:"switch",label:"Disable unavailable days",default:!1}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{type:"number-field",label:"Padding left",default:16,min:0,max:999,step:1,unit:"px"}},{key:"padding.right",control:{type:"number-field",label:"Padding right",default:16,min:0,max:999,step:1,unit:"px"}}]}];exports.default=l;
|
package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js}
RENAMED
|
@@ -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
|
-
const
|
|
20
|
+
const a = [
|
|
21
21
|
{
|
|
22
22
|
key: "general",
|
|
23
23
|
type: "group",
|
|
@@ -69,10 +69,7 @@ const l = [
|
|
|
69
69
|
label: "Always show calendars",
|
|
70
70
|
default: !0
|
|
71
71
|
},
|
|
72
|
-
visibleIf: ({ options: e }) =>
|
|
73
|
-
var a;
|
|
74
|
-
return ((a = e == null ? void 0 : e.dateRange) == null ? void 0 : a.showCustomRangeLabel) !== !1;
|
|
75
|
-
}
|
|
72
|
+
visibleIf: ({ options: e }) => e?.dateRange?.showCustomRangeLabel !== !1
|
|
76
73
|
}
|
|
77
74
|
]
|
|
78
75
|
},
|
|
@@ -153,5 +150,5 @@ const l = [
|
|
|
153
150
|
}
|
|
154
151
|
];
|
|
155
152
|
export {
|
|
156
|
-
|
|
153
|
+
a as default
|
|
157
154
|
};
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"dateRange.displayRanges",control:{type:"switch",label:"Display range options",default:!0}},{key:"placeholder",control:{type:"multi-language-field",label:"Placeholder",placeholder:"Select a range..."}}]},{key:"rangeOptions",type:"group",open:!0,children:[{key:"dateRange.showCustomRangeLabel",control:{type:"switch",label:"Custom range option",default:!0}},{key:"dateRange.alwaysShowCalendars",control:{type:"switch",label:"Always show calendars",default:!0},visibleIf:({options:e})=>e?.dateRange?.showCustomRangeLabel!==!1}]},{key:"calendar",type:"group",open:!0,children:[{key:"dateRange.markUnavailable",control:{type:"switch",label:"Disable unavailable days",default:!1}}]},{key:"padding",type:"group",open:!1,children:[{key:"padding.left",control:{type:"number-field",label:"Padding left",default:16,min:0,max:999,step:1,unit:"px"}},{key:"padding.right",control:{type:"number-field",label:"Padding right",default:16,min:0,max:999,step:1,unit:"px"}}]}];exports.default=a;
|
|
@@ -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 e=require("../index-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-BekTY3Em.cjs");exports.LuzmoDisplaySettings=e.LuzmoDisplaySettings;
|
|
@@ -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 { L as u } from "../index-
|
|
20
|
+
import { L as u } from "../index-CqKpf0B8.js";
|
|
21
21
|
(function() {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
const o = document.createElement("style");
|
|
@@ -17,9 +17,9 @@
|
|
|
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"});require("@luzmo/lucero/action-button");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");require("@luzmo/lucero/number-field");const d=require("lit"),
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@luzmo/lucero/action-button");require("@luzmo/lucero/field-label");require("@luzmo/lucero/icon");require("@luzmo/lucero/number-field");const d=require("lit"),n=require("@lit/localize"),c=require("@luzmo/icons"),l=require("lit/decorators.js"),b=require("../focusable-QLh-LlNt.cjs"),h=require("../sized-mixin-DcvJLFeo.cjs"),u=require("../set-locale-BRRalqne.cjs"),p=":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";var m=Object.defineProperty,z=Object.getOwnPropertyDescriptor,t=(a,i,o,s)=>{for(var e=s>1?void 0:s?z(i,o):i,g=a.length-1,r;g>=0;g--)(r=a[g])&&(e=(s?r(i,o,e):r(e))||e);return s&&e&&m(i,o,e),e};exports.LuzmoDisplaySettingsBinning=class extends h.SizedMixin(b.LuzmoElement,{validSizes:Object.values(h.ElementSizes)}){constructor(){super(...arguments),this.language="en",this.slotContent={},this._enabled=!1,this._binWidth=10}static get styles(){return[d.unsafeCSS(p)]}willUpdate(i){i.has("slotContent")&&(this._enabled=this.slotContent?.bins?.enabled??!1,this._binWidth=this.slotContent?.bins?.number??10),i.has("language")&&this.language!==u.getLocale()&&([...u.targetLocales].includes(this.language??"en")||this.language==="en")&&u.setLocale(this.language)}toggleBinning(){this._enabled=!this._enabled,this.sendEvent()}setBinning(){this._binWidth=this.binWidthElement.value,this.sendEvent()}sendEvent(){const i={enabled:!!this._enabled,number:this._binWidth??10};this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this.slotContent,bins:i}}}))}renderBinWidth(){return d.html`<div class="setting">
|
|
21
21
|
<luzmo-field-label for="bin-width"
|
|
22
|
-
>${
|
|
22
|
+
>${n.msg("Bin width",{desc:"The width of each bin in the histogram"})}</luzmo-field-label
|
|
23
23
|
>
|
|
24
24
|
<luzmo-number-field
|
|
25
25
|
id="bin-width"
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
<div class="settings-row">
|
|
33
33
|
<div class="setting">
|
|
34
34
|
<luzmo-field-label for="binning"
|
|
35
|
-
>${
|
|
35
|
+
>${n.msg("Binning",{desc:'Grouping numeric data into intervals or "bins" for analysis and visualization'})}</luzmo-field-label
|
|
36
36
|
>
|
|
37
37
|
<luzmo-action-button
|
|
38
38
|
id="binning"
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
.size=${this.size}
|
|
49
49
|
.icon=${this._enabled?c.luzmoCheckboxChecked:c.luzmoCheckbox}
|
|
50
50
|
></luzmo-icon>
|
|
51
|
-
${this._enabled?
|
|
51
|
+
${this._enabled?n.msg("Enabled",{desc:"Option set to enabled"}):n.msg("Disabled",{desc:"Option set to disabled"})}
|
|
52
52
|
</luzmo-action-button>
|
|
53
53
|
</div>
|
|
54
54
|
${this._enabled?this.renderBinWidth():""}
|
|
55
55
|
</div>
|
|
56
|
-
</div>`}};
|
|
56
|
+
</div>`}};t([l.property({type:String,reflect:!0})],exports.LuzmoDisplaySettingsBinning.prototype,"language",2);t([l.property()],exports.LuzmoDisplaySettingsBinning.prototype,"slotContent",2);t([l.state()],exports.LuzmoDisplaySettingsBinning.prototype,"_enabled",2);t([l.query("#bin-width")],exports.LuzmoDisplaySettingsBinning.prototype,"binWidthElement",2);exports.LuzmoDisplaySettingsBinning=t([n.localized()],exports.LuzmoDisplaySettingsBinning);customElements.get("luzmo-display-settings-binning")||customElements.define("luzmo-display-settings-binning",exports.LuzmoDisplaySettingsBinning);
|
|
@@ -22,25 +22,25 @@ import "@luzmo/lucero/field-label";
|
|
|
22
22
|
import "@luzmo/lucero/icon";
|
|
23
23
|
import "@luzmo/lucero/number-field";
|
|
24
24
|
import { unsafeCSS as d, html as m } from "lit";
|
|
25
|
-
import { msg as
|
|
25
|
+
import { msg as r, localized as z } from "@lit/localize";
|
|
26
26
|
import { luzmoCheckboxChecked as g, luzmoCheckbox as b } from "@luzmo/icons";
|
|
27
27
|
import { property as c, state as p, query as h } from "lit/decorators.js";
|
|
28
|
-
import { L as f } from "../focusable-
|
|
28
|
+
import { L as f } from "../focusable-BS2pbY7w.js";
|
|
29
29
|
import { S as v, E as x } from "../sized-mixin-cJbo3PKR.js";
|
|
30
|
-
import { g as y, t as w, s as _ } from "../set-locale-
|
|
30
|
+
import { g as y, t as w, s as _ } from "../set-locale-hKTMz37h.js";
|
|
31
31
|
(function() {
|
|
32
32
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
33
|
-
const
|
|
34
|
-
|
|
33
|
+
const e = document.createElement("style");
|
|
34
|
+
e.setAttribute("data-luzmo-vars", ""), e.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(e);
|
|
35
35
|
}
|
|
36
36
|
})();
|
|
37
37
|
const C = ":host .settings-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-vertical-gap, var(--luzmo-spacing-2))}:host .settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-binning-gap, var(--display-settings-binning-gap))}:host{--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=s]){--display-settings-binning-gap: var(--luzmo-spacing-3)}:host([size=l]){--display-settings-binning-gap: var(--luzmo-spacing-4)}:host([size=xl]){--display-settings-binning-gap: var(--luzmo-spacing-5)}";
|
|
38
|
-
var E = Object.defineProperty, S = Object.getOwnPropertyDescriptor,
|
|
39
|
-
for (var
|
|
40
|
-
(u =
|
|
41
|
-
return
|
|
38
|
+
var E = Object.defineProperty, S = Object.getOwnPropertyDescriptor, t = (o, e, s, n) => {
|
|
39
|
+
for (var l = n > 1 ? void 0 : n ? S(e, s) : e, a = o.length - 1, u; a >= 0; a--)
|
|
40
|
+
(u = o[a]) && (l = (n ? u(e, s, l) : u(l)) || l);
|
|
41
|
+
return n && l && E(e, s, l), l;
|
|
42
42
|
};
|
|
43
|
-
let
|
|
43
|
+
let i = class extends v(f, {
|
|
44
44
|
validSizes: Object.values(x)
|
|
45
45
|
}) {
|
|
46
46
|
constructor() {
|
|
@@ -49,9 +49,8 @@ let t = class extends v(f, {
|
|
|
49
49
|
static get styles() {
|
|
50
50
|
return [d(C)];
|
|
51
51
|
}
|
|
52
|
-
willUpdate(
|
|
53
|
-
|
|
54
|
-
l.has("slotContent") && (this._enabled = ((n = (o = this.slotContent) == null ? void 0 : o.bins) == null ? void 0 : n.enabled) ?? !1, this._binWidth = ((e = (i = this.slotContent) == null ? void 0 : i.bins) == null ? void 0 : e.number) ?? 10), l.has("language") && this.language !== y() && ([...w].includes(this.language ?? "en") || this.language === "en") && _(this.language);
|
|
52
|
+
willUpdate(o) {
|
|
53
|
+
o.has("slotContent") && (this._enabled = this.slotContent?.bins?.enabled ?? !1, this._binWidth = this.slotContent?.bins?.number ?? 10), o.has("language") && this.language !== y() && ([...w].includes(this.language ?? "en") || this.language === "en") && _(this.language);
|
|
55
54
|
}
|
|
56
55
|
toggleBinning() {
|
|
57
56
|
this._enabled = !this._enabled, this.sendEvent();
|
|
@@ -60,7 +59,7 @@ let t = class extends v(f, {
|
|
|
60
59
|
this._binWidth = this.binWidthElement.value, this.sendEvent();
|
|
61
60
|
}
|
|
62
61
|
sendEvent() {
|
|
63
|
-
const
|
|
62
|
+
const o = {
|
|
64
63
|
enabled: !!this._enabled,
|
|
65
64
|
number: this._binWidth ?? 10
|
|
66
65
|
};
|
|
@@ -72,7 +71,7 @@ let t = class extends v(f, {
|
|
|
72
71
|
detail: {
|
|
73
72
|
slotContent: {
|
|
74
73
|
...this.slotContent,
|
|
75
|
-
bins:
|
|
74
|
+
bins: o
|
|
76
75
|
}
|
|
77
76
|
}
|
|
78
77
|
})
|
|
@@ -81,7 +80,7 @@ let t = class extends v(f, {
|
|
|
81
80
|
renderBinWidth() {
|
|
82
81
|
return m`<div class="setting">
|
|
83
82
|
<luzmo-field-label for="bin-width"
|
|
84
|
-
>${
|
|
83
|
+
>${r("Bin width", {
|
|
85
84
|
desc: "The width of each bin in the histogram"
|
|
86
85
|
})}</luzmo-field-label
|
|
87
86
|
>
|
|
@@ -99,7 +98,7 @@ let t = class extends v(f, {
|
|
|
99
98
|
<div class="settings-row">
|
|
100
99
|
<div class="setting">
|
|
101
100
|
<luzmo-field-label for="binning"
|
|
102
|
-
>${
|
|
101
|
+
>${r("Binning", {
|
|
103
102
|
desc: 'Grouping numeric data into intervals or "bins" for analysis and visualization'
|
|
104
103
|
})}</luzmo-field-label
|
|
105
104
|
>
|
|
@@ -117,7 +116,7 @@ let t = class extends v(f, {
|
|
|
117
116
|
.size=${this.size}
|
|
118
117
|
.icon=${this._enabled ? g : b}
|
|
119
118
|
></luzmo-icon>
|
|
120
|
-
${this._enabled ?
|
|
119
|
+
${this._enabled ? r("Enabled", { desc: "Option set to enabled" }) : r("Disabled", { desc: "Option set to disabled" })}
|
|
121
120
|
</luzmo-action-button>
|
|
122
121
|
</div>
|
|
123
122
|
${this._enabled ? this.renderBinWidth() : ""}
|
|
@@ -125,25 +124,25 @@ let t = class extends v(f, {
|
|
|
125
124
|
</div>`;
|
|
126
125
|
}
|
|
127
126
|
};
|
|
128
|
-
|
|
127
|
+
t([
|
|
129
128
|
c({ type: String, reflect: !0 })
|
|
130
|
-
],
|
|
131
|
-
|
|
129
|
+
], i.prototype, "language", 2);
|
|
130
|
+
t([
|
|
132
131
|
c()
|
|
133
|
-
],
|
|
134
|
-
|
|
132
|
+
], i.prototype, "slotContent", 2);
|
|
133
|
+
t([
|
|
135
134
|
p()
|
|
136
|
-
],
|
|
137
|
-
|
|
135
|
+
], i.prototype, "_enabled", 2);
|
|
136
|
+
t([
|
|
138
137
|
h("#bin-width")
|
|
139
|
-
],
|
|
140
|
-
|
|
138
|
+
], i.prototype, "binWidthElement", 2);
|
|
139
|
+
i = t([
|
|
141
140
|
z()
|
|
142
|
-
],
|
|
141
|
+
], i);
|
|
143
142
|
customElements.get("luzmo-display-settings-binning") || customElements.define(
|
|
144
143
|
"luzmo-display-settings-binning",
|
|
145
|
-
|
|
144
|
+
i
|
|
146
145
|
);
|
|
147
146
|
export {
|
|
148
|
-
|
|
147
|
+
i as LuzmoDisplaySettingsBinning
|
|
149
148
|
};
|