@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
|
@@ -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
|
|
20
|
+
import { g as i, a as o, b as c, c as d } from "./helpers-v1bPALRP.js";
|
|
21
|
+
const n = ({ slots: e }) => {
|
|
22
|
+
var r, a;
|
|
23
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : a.length) > 0 : !1;
|
|
24
|
+
}, t = ({ slots: e }) => {
|
|
25
|
+
var r, a;
|
|
26
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((l) => (l == null ? void 0 : l.name) === "color")) == null ? void 0 : r.content) == null ? void 0 : a.length) === 0 || !(e != null && e.some((l) => (l == null ? void 0 : l.name) === "color")) : !0;
|
|
27
|
+
}, f = [
|
|
22
28
|
{
|
|
23
29
|
key: "general",
|
|
24
30
|
type: "group",
|
|
@@ -39,7 +45,7 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
39
45
|
label: "Legend",
|
|
40
46
|
default: !0
|
|
41
47
|
},
|
|
42
|
-
visibleIf:
|
|
48
|
+
visibleIf: n
|
|
43
49
|
},
|
|
44
50
|
{
|
|
45
51
|
key: "display.modeOption",
|
|
@@ -48,7 +54,7 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
48
54
|
label: "Mode option",
|
|
49
55
|
default: !1
|
|
50
56
|
},
|
|
51
|
-
visibleIf:
|
|
57
|
+
visibleIf: n
|
|
52
58
|
},
|
|
53
59
|
{
|
|
54
60
|
key: "display.labels",
|
|
@@ -82,19 +88,22 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
82
88
|
label: "Color area by category",
|
|
83
89
|
default: !0
|
|
84
90
|
},
|
|
85
|
-
visibleIf:
|
|
91
|
+
visibleIf: t
|
|
86
92
|
},
|
|
87
93
|
{
|
|
88
94
|
key: "color",
|
|
89
95
|
control: {
|
|
90
96
|
type: "color-picker",
|
|
91
97
|
label: "Area color",
|
|
92
|
-
default: ({ theme: e }) =>
|
|
93
|
-
extraLabel: ({ options: e, theme:
|
|
94
|
-
extraLabelHasClickAction: ({ options: e, theme:
|
|
95
|
-
extraLabelClickAction: ({ options: e, theme:
|
|
98
|
+
default: ({ theme: e }) => d(e),
|
|
99
|
+
extraLabel: ({ options: e, theme: r }) => c(e, r, "color"),
|
|
100
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => o(e, r, "color"),
|
|
101
|
+
extraLabelClickAction: ({ options: e, theme: r }) => i(e, r, "color")
|
|
96
102
|
},
|
|
97
|
-
visibleIf: ({ options: e, slots:
|
|
103
|
+
visibleIf: ({ options: e, slots: r }) => {
|
|
104
|
+
var a;
|
|
105
|
+
return ((a = e == null ? void 0 : e.categories) == null ? void 0 : a.colored) === !1 && t({ slots: r });
|
|
106
|
+
}
|
|
98
107
|
},
|
|
99
108
|
{
|
|
100
109
|
key: "mode",
|
|
@@ -114,11 +123,15 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
114
123
|
min: 0,
|
|
115
124
|
max: 24,
|
|
116
125
|
step: 1,
|
|
117
|
-
extraLabel: ({ options: e, theme:
|
|
118
|
-
|
|
119
|
-
|
|
126
|
+
extraLabel: ({ options: e, theme: r }) => {
|
|
127
|
+
var a;
|
|
128
|
+
if (typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) == "number")
|
|
129
|
+
return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
|
|
130
|
+
},
|
|
131
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
132
|
+
var a;
|
|
133
|
+
return !(typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
|
|
120
134
|
},
|
|
121
|
-
extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.rounding != "number" || typeof e?.roundedCorners != "number"),
|
|
122
135
|
extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, roundedCorners: void 0 } })
|
|
123
136
|
}
|
|
124
137
|
},
|
|
@@ -131,11 +144,15 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
131
144
|
min: 0,
|
|
132
145
|
max: 20,
|
|
133
146
|
step: 1,
|
|
134
|
-
extraLabel: ({ options: e, theme:
|
|
135
|
-
|
|
136
|
-
|
|
147
|
+
extraLabel: ({ options: e, theme: r }) => {
|
|
148
|
+
var a;
|
|
149
|
+
if (typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.padding) == "number")
|
|
150
|
+
return typeof (e == null ? void 0 : e.padding) != "number" ? "auto" : "reset";
|
|
151
|
+
},
|
|
152
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
|
153
|
+
var a;
|
|
154
|
+
return !(typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.padding) != "number" || typeof (e == null ? void 0 : e.padding) != "number");
|
|
137
155
|
},
|
|
138
|
-
extraLabelHasClickAction: ({ options: e, theme: t }) => !(typeof t?.itemSpecific?.padding != "number" || typeof e?.padding != "number"),
|
|
139
156
|
extraLabelClickAction: ({ options: e }) => ({ value: void 0, options: { ...e, padding: void 0 } })
|
|
140
157
|
}
|
|
141
158
|
}
|
|
@@ -165,9 +182,9 @@ const o = ({ slots: e }) => Array.isArray(e) && e?.length > 0 ? e?.find((t) => t
|
|
|
165
182
|
}
|
|
166
183
|
}
|
|
167
184
|
],
|
|
168
|
-
visibleIf:
|
|
185
|
+
visibleIf: n
|
|
169
186
|
}
|
|
170
187
|
];
|
|
171
188
|
export {
|
|
172
|
-
|
|
189
|
+
f as default
|
|
173
190
|
};
|
package/components/utils.cjs
CHANGED
|
@@ -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 x=require("./index-Cz9vSXy6.cjs"),E=require("./decompose-numeric-format-B3rVVHpO.cjs"),L=require("./en-BKBhKBXY.cjs"),q=require("./localize-r7ALOUy_.cjs"),A=require("./index-6PmXiNch.cjs"),C=require("./index-Vdyb9z2D.cjs"),l=r=>!!(r&&Object.keys(r).length>0),B=(r,t,i={})=>{var a;if(t.hidden===!0&&!i.includeHidden||!t.id||!t.type)return null;const s=l(t.name)?t.name:{en:"Untitled"},o={datasetId:r,columnId:t.id,type:t.type,name:s};return t.description&&l(t.description)&&(o.description=t.description),t.subtype&&(o.subtype=t.subtype),t.format&&(o.format=t.format),typeof t.lowestLevel=="number"&&(o.lowestLevel=t.lowestLevel),t.expression&&(o.expression=t.expression),Array.isArray(t.duration_levels)&&t.duration_levels.length>0&&(o.duration_levels=[...t.duration_levels]),t.duration_format&&(o.duration_format=t.duration_format),Array.isArray(t.hierarchyLevels)&&t.hierarchyLevels.length>0&&(o.hierarchyLevels=t.hierarchyLevels.map(({id:d,level:f,name:y})=>({id:d,level:f,name:y}))),(a=t.currency)!=null&&a.id&&t.currency.symbol&&(o.currency={id:t.currency.id,name:t.currency.name,symbol:t.currency.symbol}),o},M=(r,t,i={})=>{var a;if(t.hidden===!0&&!i.includeHidden||!t.id||!t.type)return null;const s=l(t.name)?t.name:{en:"Untitled"},o={datasetId:r,formulaId:t.id,type:t.type,name:s};return t.description&&l(t.description)&&(o.description=t.description),t.subtype&&(o.subtype=t.subtype),t.format&&(o.format=t.format),typeof t.lowestLevel=="number"&&(o.lowestLevel=t.lowestLevel),t.expression&&(o.expression=t.expression),Array.isArray(t.duration_levels)&&t.duration_levels.length>0&&(o.duration_levels=[...t.duration_levels]),t.duration_format&&(o.duration_format=t.duration_format),(a=t.currency)!=null&&a.id&&t.currency.symbol&&(o.currency={id:t.currency.id,name:t.currency.name,symbol:t.currency.symbol}),o},U=(r,t={})=>{if(!(r!=null&&r.id))return[];const i=[];return Array.isArray(r.columns)&&r.columns.forEach(c=>{const s=B(r.id,c,t);s&&i.push(s)}),Array.isArray(r.formulas)&&r.formulas.forEach(c=>{const s=M(r.id,c,t);s&&i.push(s)}),i},D=(r,t={})=>r.map(i=>({id:i.id,name:i.name,description:i.description,dataItems:U(i,t)})),H=async(r,t)=>{if(!Array.isArray(r)||r.length===0)throw new Error("At least one dataset ID is required");const{dataBrokerConfig:i}=t;if(!i)throw new Error("dataBrokerConfig is required");if(!i.authKey||!i.authToken)throw new Error("Both authKey and authToken are required for DataBroker configuration");if(!i.apiUrl)throw new Error("apiUrl is required for DataBroker configuration");if(typeof i.apiUrl!="string")throw new TypeError("apiUrl must be a valid string");x.dataBroker.configure(i);try{const c=await x.dataBroker.fetchDatasetsWithColumnsAndFormulas(r);return D(c)}catch(c){throw c instanceof Error&&c.message.includes("Authentication failed")?new Error("Failed to load datasets: Authentication failed. Please verify your API credentials are correct."):c}};function P(r){var m,g,b,w;const t=[],i=[];Object.keys(A.slotsConfigs).forEach(e=>{e.replace("SlotsConfig","");const n=e.replace("SlotsConfig","").replaceAll(/([A-Z])/g,"-$1").toLowerCase();i.push({type:n,slotsConfig:A.slotsConfigs[e]})});const c=i.find(e=>e.type===(r==null?void 0:r.oldItemType)),s=i.find(e=>e.type===(r==null?void 0:r.newItemType)),o=structuredClone((s==null?void 0:s.slotsConfig)??[]);if(!s)return{type:(c==null?void 0:c.type)??"bar-chart",slots:r.slots??[]};const a=structuredClone(r.slots??[]);for(const e of a){const n=c==null?void 0:c.slotsConfig.find(_=>_.name===e.name);e.type=(n==null?void 0:n.type)??(e==null?void 0:e.type)}const d=a.filter(e=>e.type==="mixed").sort((e,n)=>e.order-n.order),f=o.filter(e=>e.type==="mixed").sort((e,n)=>e.order-n.order),y=a.filter(e=>e.type==="numeric").sort((e,n)=>e.order-n.order),k=o.filter(e=>e.type==="numeric").sort((e,n)=>e.order-n.order),p=[];for(const e of y)for(const n of e.content)n.key="old-measure-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),p.push(n);for(const e of d)for(const n of e.content)n.type==="numeric"&&(n.key="old-mixed-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),p.push(n));const v=[...k,...f].sort((e,n)=>o.indexOf(e)-o.indexOf(n));for(const e of p)for(const n of v)t.includes(e.key)||(n.content=(n==null?void 0:n.content)??[],(((m=n==null?void 0:n.content)==null?void 0:m.length)===0||((g=n==null?void 0:n.content)==null?void 0:g.length)>0&&(n==null?void 0:n.canAcceptMultipleDataItems)===!0)&&(n.content.push(e),t.push(e.key)));const S=a.filter(e=>e.type==="categorical").sort((e,n)=>e.order-n.order),T=o.filter(e=>e.type==="categorical").sort((e,n)=>e.order-n.order),h=[];for(const e of S)for(const n of e.content)n.key="old-dimension-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),h.push(n);for(const e of d)for(const n of e.content)n.type!=="numeric"&&(n.key="old-mixed-"+(e==null?void 0:e.name)+"-"+e.content.indexOf(n),h.push(n));const O=[...T,...f].sort((e,n)=>o.indexOf(e)-o.indexOf(n));for(const e of h)if(!t.includes(e.key))for(const n of O)n&&!t.includes(e.key)&&(n.content=(n==null?void 0:n.content)??[],(((b=n==null?void 0:n.content)==null?void 0:b.length)===0||((w=n==null?void 0:n.content)==null?void 0:w.length)>0&&(n==null?void 0:n.canAcceptMultipleDataItems)===!0)&&(n.content.push(e),t.push(e.key)));let u={...r.options};return s.setInitialOptions&&(u=s==null?void 0:s.setInitialOptions({...u})),{type:s.type??"bar-chart",slots:o.map(e=>({name:e.name,content:e.content??[]}))??[],options:u??{...r.options}}}exports.decomposeNumericFormat=E.decomposeNumericFormat;exports.formatter=L.formatter;exports.localize=q.localize;exports.getTheme=C.getTheme;exports.systemThemeIds=C.systemThemeIds;exports.convertDatasetsToDraggableItems=D;exports.loadDraggableItemsForDatasets=H;exports.switchItem=P;
|
package/components/utils.js
CHANGED
|
@@ -17,60 +17,62 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { d as
|
|
21
|
-
import { d as
|
|
22
|
-
import { f as
|
|
23
|
-
import { l as
|
|
24
|
-
import { s as
|
|
25
|
-
import { g as
|
|
26
|
-
const
|
|
27
|
-
|
|
20
|
+
import { d as x } from "./index-CDi4fe3N.js";
|
|
21
|
+
import { d as j } from "./decompose-numeric-format-BuZcjH2k.js";
|
|
22
|
+
import { f as N } from "./en-BOTjhwEc.js";
|
|
23
|
+
import { l as W } from "./localize-BX7q0S0M.js";
|
|
24
|
+
import { s as A } from "./index-V1XCZI4y.js";
|
|
25
|
+
import { g as $, s as G } from "./index-CgnTl6Sc.js";
|
|
26
|
+
const p = (r) => !!(r && Object.keys(r).length > 0), O = (r, t, i = {}) => {
|
|
27
|
+
var a;
|
|
28
|
+
if (t.hidden === !0 && !i.includeHidden || !t.id || !t.type)
|
|
28
29
|
return null;
|
|
29
|
-
const s =
|
|
30
|
+
const s = p(t.name) ? t.name : { en: "Untitled" }, o = {
|
|
30
31
|
datasetId: r,
|
|
31
|
-
columnId:
|
|
32
|
-
type:
|
|
32
|
+
columnId: t.id,
|
|
33
|
+
type: t.type,
|
|
33
34
|
name: s
|
|
34
35
|
};
|
|
35
|
-
return
|
|
36
|
-
id:
|
|
37
|
-
name:
|
|
38
|
-
symbol:
|
|
39
|
-
}),
|
|
40
|
-
},
|
|
41
|
-
|
|
36
|
+
return t.description && p(t.description) && (o.description = t.description), t.subtype && (o.subtype = t.subtype), t.format && (o.format = t.format), typeof t.lowestLevel == "number" && (o.lowestLevel = t.lowestLevel), t.expression && (o.expression = t.expression), Array.isArray(t.duration_levels) && t.duration_levels.length > 0 && (o.duration_levels = [...t.duration_levels]), t.duration_format && (o.duration_format = t.duration_format), Array.isArray(t.hierarchyLevels) && t.hierarchyLevels.length > 0 && (o.hierarchyLevels = t.hierarchyLevels.map(({ id: d, level: f, name: y }) => ({ id: d, level: f, name: y }))), (a = t.currency) != null && a.id && t.currency.symbol && (o.currency = {
|
|
37
|
+
id: t.currency.id,
|
|
38
|
+
name: t.currency.name,
|
|
39
|
+
symbol: t.currency.symbol
|
|
40
|
+
}), o;
|
|
41
|
+
}, _ = (r, t, i = {}) => {
|
|
42
|
+
var a;
|
|
43
|
+
if (t.hidden === !0 && !i.includeHidden || !t.id || !t.type)
|
|
42
44
|
return null;
|
|
43
|
-
const s =
|
|
45
|
+
const s = p(t.name) ? t.name : { en: "Untitled" }, o = {
|
|
44
46
|
datasetId: r,
|
|
45
|
-
formulaId:
|
|
46
|
-
type:
|
|
47
|
+
formulaId: t.id,
|
|
48
|
+
type: t.type,
|
|
47
49
|
name: s
|
|
48
50
|
};
|
|
49
|
-
return
|
|
50
|
-
id:
|
|
51
|
-
name:
|
|
52
|
-
symbol:
|
|
53
|
-
}),
|
|
54
|
-
},
|
|
55
|
-
if (!r
|
|
51
|
+
return t.description && p(t.description) && (o.description = t.description), t.subtype && (o.subtype = t.subtype), t.format && (o.format = t.format), typeof t.lowestLevel == "number" && (o.lowestLevel = t.lowestLevel), t.expression && (o.expression = t.expression), Array.isArray(t.duration_levels) && t.duration_levels.length > 0 && (o.duration_levels = [...t.duration_levels]), t.duration_format && (o.duration_format = t.duration_format), (a = t.currency) != null && a.id && t.currency.symbol && (o.currency = {
|
|
52
|
+
id: t.currency.id,
|
|
53
|
+
name: t.currency.name,
|
|
54
|
+
symbol: t.currency.symbol
|
|
55
|
+
}), o;
|
|
56
|
+
}, E = (r, t = {}) => {
|
|
57
|
+
if (!(r != null && r.id))
|
|
56
58
|
return [];
|
|
57
59
|
const i = [];
|
|
58
|
-
return Array.isArray(r.columns) && r.columns.forEach((
|
|
59
|
-
const s =
|
|
60
|
+
return Array.isArray(r.columns) && r.columns.forEach((c) => {
|
|
61
|
+
const s = O(r.id, c, t);
|
|
60
62
|
s && i.push(s);
|
|
61
|
-
}), Array.isArray(r.formulas) && r.formulas.forEach((
|
|
62
|
-
const s =
|
|
63
|
+
}), Array.isArray(r.formulas) && r.formulas.forEach((c) => {
|
|
64
|
+
const s = _(r.id, c, t);
|
|
63
65
|
s && i.push(s);
|
|
64
66
|
}), i;
|
|
65
|
-
},
|
|
67
|
+
}, L = (r, t = {}) => r.map((i) => ({
|
|
66
68
|
id: i.id,
|
|
67
69
|
name: i.name,
|
|
68
70
|
description: i.description,
|
|
69
|
-
dataItems:
|
|
70
|
-
})),
|
|
71
|
+
dataItems: E(i, t)
|
|
72
|
+
})), H = async (r, t) => {
|
|
71
73
|
if (!Array.isArray(r) || r.length === 0)
|
|
72
74
|
throw new Error("At least one dataset ID is required");
|
|
73
|
-
const { dataBrokerConfig: i } =
|
|
75
|
+
const { dataBrokerConfig: i } = t;
|
|
74
76
|
if (!i)
|
|
75
77
|
throw new Error("dataBrokerConfig is required");
|
|
76
78
|
if (!i.authKey || !i.authToken)
|
|
@@ -79,83 +81,84 @@ const f = (r) => !!(r && Object.keys(r).length > 0), I = (r, e, i = {}) => {
|
|
|
79
81
|
throw new Error("apiUrl is required for DataBroker configuration");
|
|
80
82
|
if (typeof i.apiUrl != "string")
|
|
81
83
|
throw new TypeError("apiUrl must be a valid string");
|
|
82
|
-
|
|
84
|
+
x.configure(i);
|
|
83
85
|
try {
|
|
84
|
-
const
|
|
85
|
-
return
|
|
86
|
-
} catch (
|
|
87
|
-
throw
|
|
86
|
+
const c = await x.fetchDatasetsWithColumnsAndFormulas(r);
|
|
87
|
+
return L(c);
|
|
88
|
+
} catch (c) {
|
|
89
|
+
throw c instanceof Error && c.message.includes("Authentication failed") ? new Error("Failed to load datasets: Authentication failed. Please verify your API credentials are correct.") : c;
|
|
88
90
|
}
|
|
89
91
|
};
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
function U(r) {
|
|
93
|
+
var m, b, g, w;
|
|
94
|
+
const t = [], i = [];
|
|
95
|
+
Object.keys(A).forEach((e) => {
|
|
96
|
+
e.replace("SlotsConfig", "");
|
|
97
|
+
const n = e.replace("SlotsConfig", "").replaceAll(/([A-Z])/g, "-$1").toLowerCase();
|
|
95
98
|
i.push({
|
|
96
|
-
type:
|
|
97
|
-
slotsConfig:
|
|
99
|
+
type: n,
|
|
100
|
+
slotsConfig: A[e]
|
|
98
101
|
});
|
|
99
102
|
});
|
|
100
|
-
const
|
|
101
|
-
(
|
|
103
|
+
const c = i.find(
|
|
104
|
+
(e) => e.type === (r == null ? void 0 : r.oldItemType)
|
|
102
105
|
), s = i.find(
|
|
103
|
-
(
|
|
104
|
-
),
|
|
106
|
+
(e) => e.type === (r == null ? void 0 : r.newItemType)
|
|
107
|
+
), o = structuredClone((s == null ? void 0 : s.slotsConfig) ?? []);
|
|
105
108
|
if (!s)
|
|
106
109
|
return {
|
|
107
|
-
type:
|
|
110
|
+
type: (c == null ? void 0 : c.type) ?? "bar-chart",
|
|
108
111
|
slots: r.slots ?? []
|
|
109
112
|
};
|
|
110
|
-
const
|
|
111
|
-
for (const
|
|
112
|
-
const
|
|
113
|
-
(
|
|
113
|
+
const a = structuredClone(r.slots ?? []);
|
|
114
|
+
for (const e of a) {
|
|
115
|
+
const n = c == null ? void 0 : c.slotsConfig.find(
|
|
116
|
+
(T) => T.name === e.name
|
|
114
117
|
);
|
|
115
|
-
|
|
118
|
+
e.type = (n == null ? void 0 : n.type) ?? (e == null ? void 0 : e.type);
|
|
116
119
|
}
|
|
117
|
-
const
|
|
118
|
-
for (const
|
|
119
|
-
for (const
|
|
120
|
-
|
|
121
|
-
for (const
|
|
122
|
-
for (const
|
|
123
|
-
|
|
124
|
-
const
|
|
125
|
-
(
|
|
120
|
+
const d = a.filter((e) => e.type === "mixed").sort((e, n) => e.order - n.order), f = o.filter((e) => e.type === "mixed").sort((e, n) => e.order - n.order), y = a.filter((e) => e.type === "numeric").sort((e, n) => e.order - n.order), C = o.filter((e) => e.type === "numeric").sort((e, n) => e.order - n.order), l = [];
|
|
121
|
+
for (const e of y)
|
|
122
|
+
for (const n of e.content)
|
|
123
|
+
n.key = "old-measure-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), l.push(n);
|
|
124
|
+
for (const e of d)
|
|
125
|
+
for (const n of e.content)
|
|
126
|
+
n.type === "numeric" && (n.key = "old-mixed-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), l.push(n));
|
|
127
|
+
const k = [...C, ...f].sort(
|
|
128
|
+
(e, n) => o.indexOf(e) - o.indexOf(n)
|
|
126
129
|
);
|
|
127
|
-
for (const
|
|
128
|
-
for (const
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
for (const
|
|
132
|
-
for (const
|
|
133
|
-
|
|
134
|
-
for (const
|
|
135
|
-
for (const
|
|
136
|
-
|
|
130
|
+
for (const e of l)
|
|
131
|
+
for (const n of k)
|
|
132
|
+
t.includes(e.key) || (n.content = (n == null ? void 0 : n.content) ?? [], (((m = n == null ? void 0 : n.content) == null ? void 0 : m.length) === 0 || ((b = n == null ? void 0 : n.content) == null ? void 0 : b.length) > 0 && (n == null ? void 0 : n.canAcceptMultipleDataItems) === !0) && (n.content.push(e), t.push(e.key)));
|
|
133
|
+
const v = a.filter((e) => e.type === "categorical").sort((e, n) => e.order - n.order), D = o.filter((e) => e.type === "categorical").sort((e, n) => e.order - n.order), h = [];
|
|
134
|
+
for (const e of v)
|
|
135
|
+
for (const n of e.content)
|
|
136
|
+
n.key = "old-dimension-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), h.push(n);
|
|
137
|
+
for (const e of d)
|
|
138
|
+
for (const n of e.content)
|
|
139
|
+
n.type !== "numeric" && (n.key = "old-mixed-" + (e == null ? void 0 : e.name) + "-" + e.content.indexOf(n), h.push(n));
|
|
137
140
|
const S = [
|
|
138
|
-
...
|
|
139
|
-
...
|
|
140
|
-
].sort((
|
|
141
|
-
for (const
|
|
142
|
-
if (!
|
|
143
|
-
for (const
|
|
144
|
-
|
|
141
|
+
...D,
|
|
142
|
+
...f
|
|
143
|
+
].sort((e, n) => o.indexOf(e) - o.indexOf(n));
|
|
144
|
+
for (const e of h)
|
|
145
|
+
if (!t.includes(e.key))
|
|
146
|
+
for (const n of S)
|
|
147
|
+
n && !t.includes(e.key) && (n.content = (n == null ? void 0 : n.content) ?? [], (((g = n == null ? void 0 : n.content) == null ? void 0 : g.length) === 0 || ((w = n == null ? void 0 : n.content) == null ? void 0 : w.length) > 0 && (n == null ? void 0 : n.canAcceptMultipleDataItems) === !0) && (n.content.push(e), t.push(e.key)));
|
|
145
148
|
let u = { ...r.options };
|
|
146
|
-
return s.setInitialOptions && (u = s
|
|
149
|
+
return s.setInitialOptions && (u = s == null ? void 0 : s.setInitialOptions({ ...u })), {
|
|
147
150
|
type: s.type ?? "bar-chart",
|
|
148
|
-
slots:
|
|
151
|
+
slots: o.map((e) => ({ name: e.name, content: e.content ?? [] })) ?? [],
|
|
149
152
|
options: u ?? { ...r.options }
|
|
150
153
|
};
|
|
151
154
|
}
|
|
152
155
|
export {
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
156
|
+
L as convertDatasetsToDraggableItems,
|
|
157
|
+
j as decomposeNumericFormat,
|
|
158
|
+
N as formatter,
|
|
159
|
+
$ as getTheme,
|
|
160
|
+
H as loadDraggableItemsForDatasets,
|
|
161
|
+
W as localize,
|
|
162
|
+
U as switchItem,
|
|
163
|
+
G as systemThemeIds
|
|
161
164
|
};
|
|
@@ -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 t=[{key:"general",type:"group",open:!0,children:[{key:"type",control:{type:"picker",label:"Type",default:"web",enum:["web","youtube"]}},{key:"youtube",control:{type:"multi-language-field",placeholder:"Enter the youtube URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)==="youtube"},{key:"ogg",control:{type:"multi-language-field",label:"ogg:",placeholder:"Enter the .ogg file URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)!=="youtube"},{key:"mp4",control:{type:"multi-language-field",label:"mp4:",placeholder:"Enter the .mp4 file URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)!=="youtube"},{key:"webm",control:{type:"multi-language-field",label:"webm:",placeholder:"Enter the .webm file URL"},visibleIf:({options:e})=>(e==null?void 0:e.type)!=="youtube"},{type:"divider"},{key:"showControls",control:{type:"switch",label:"Show controls",default:!0}},{key:"autoPlay",control:{type:"switch",label:"Auto play",default:!1}},{key:"loop",control:{type:"switch",label:"Loop",default:!1}},{key:"backdropColor",control:{type:"color-picker",label:"Backdrop color",default:"#000000"}}]},{key:"image",type:"group",open:!0,children:[{key:"poster.show",control:{type:"switch",label:"Show image on load",default:!1}},{key:"poster.url",control:{type:"multi-language-field",label:"Poster URL",placeholder:"Enter image URL"},visibleIf:({options:e})=>{var l;return(l=e==null?void 0:e.poster)==null?void 0:l.show}}]}];exports.default=t;
|
|
@@ -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 t = [
|
|
21
21
|
{
|
|
22
22
|
key: "general",
|
|
23
23
|
type: "group",
|
|
@@ -38,7 +38,7 @@ const l = [
|
|
|
38
38
|
type: "multi-language-field",
|
|
39
39
|
placeholder: "Enter the youtube URL"
|
|
40
40
|
},
|
|
41
|
-
visibleIf: ({ options: e }) => e
|
|
41
|
+
visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) === "youtube"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
key: "ogg",
|
|
@@ -47,7 +47,7 @@ const l = [
|
|
|
47
47
|
label: "ogg:",
|
|
48
48
|
placeholder: "Enter the .ogg file URL"
|
|
49
49
|
},
|
|
50
|
-
visibleIf: ({ options: e }) => e
|
|
50
|
+
visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) !== "youtube"
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
key: "mp4",
|
|
@@ -56,7 +56,7 @@ const l = [
|
|
|
56
56
|
label: "mp4:",
|
|
57
57
|
placeholder: "Enter the .mp4 file URL"
|
|
58
58
|
},
|
|
59
|
-
visibleIf: ({ options: e }) => e
|
|
59
|
+
visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) !== "youtube"
|
|
60
60
|
},
|
|
61
61
|
{
|
|
62
62
|
key: "webm",
|
|
@@ -65,7 +65,7 @@ const l = [
|
|
|
65
65
|
label: "webm:",
|
|
66
66
|
placeholder: "Enter the .webm file URL"
|
|
67
67
|
},
|
|
68
|
-
visibleIf: ({ options: e }) => e
|
|
68
|
+
visibleIf: ({ options: e }) => (e == null ? void 0 : e.type) !== "youtube"
|
|
69
69
|
},
|
|
70
70
|
{ type: "divider" },
|
|
71
71
|
{
|
|
@@ -122,11 +122,14 @@ const l = [
|
|
|
122
122
|
label: "Poster URL",
|
|
123
123
|
placeholder: "Enter image URL"
|
|
124
124
|
},
|
|
125
|
-
visibleIf: ({ options: e }) =>
|
|
125
|
+
visibleIf: ({ options: e }) => {
|
|
126
|
+
var l;
|
|
127
|
+
return (l = e == null ? void 0 : e.poster) == null ? void 0 : l.show;
|
|
128
|
+
}
|
|
126
129
|
}
|
|
127
130
|
]
|
|
128
131
|
}
|
|
129
132
|
];
|
|
130
133
|
export {
|
|
131
|
-
|
|
134
|
+
t as default
|
|
132
135
|
};
|
|
@@ -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
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@lit/localize"),d=require("@luzmo/icons");require("@luzmo/lucero/icon");require("@luzmo/lucero/tooltip");const n=require("lit"),m=require("lit/decorators.js"),v=require("../set-locale-BRRalqne.cjs"),z=':host{box-sizing:border-box;display:block;width:min-content}:host luzmo-icon{display:flex}:host .viz-item-menu{display:flex;flex-direction:column;align-items:center;gap:var(--luzmo-viz-item-menu-gap, var(--viz-item-menu-gap));font-size:var(--luzmo-viz-item-menu-font-size, var(--viz-item-menu-font-size));width:min-content}:host .viz-item-menu .viz-item-menu-top-section{display:flex;flex-direction:column;gap:var(--luzmo-viz-item-menu-button-edit-gap, var(--viz-item-menu-button-edit-gap))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button{padding:var(--luzmo-viz-item-menu-button-edit-padding, var(--viz-item-menu-button-edit-padding));background-color:var(--luzmo-viz-item-menu-button-edit-background, var(--viz-item-menu-button-edit-background))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:first-of-type{border-top-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-top-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:last-of-type{border-bottom-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-bottom-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:hover
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("@lit/localize"),d=require("@luzmo/icons");require("@luzmo/lucero/icon");require("@luzmo/lucero/tooltip");const n=require("lit"),m=require("lit/decorators.js"),v=require("../set-locale-BRRalqne.cjs"),z=':host{box-sizing:border-box;display:block;width:min-content}:host luzmo-icon{display:flex}:host .viz-item-menu{display:flex;flex-direction:column;align-items:center;gap:var(--luzmo-viz-item-menu-gap, var(--viz-item-menu-gap));font-size:var(--luzmo-viz-item-menu-font-size, var(--viz-item-menu-font-size));width:min-content}:host .viz-item-menu .viz-item-menu-top-section{display:flex;flex-direction:column;gap:var(--luzmo-viz-item-menu-button-edit-gap, var(--viz-item-menu-button-edit-gap))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button{padding:var(--luzmo-viz-item-menu-button-edit-padding, var(--viz-item-menu-button-edit-padding));background-color:var(--luzmo-viz-item-menu-button-edit-background, var(--viz-item-menu-button-edit-background))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:first-of-type{border-top-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-top-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:last-of-type{border-bottom-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-bottom-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:hover{background-color:var(--luzmo-viz-item-menu-button-edit-background-hover, var(--viz-item-menu-button-edit-background-hover))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:active,:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button[selected]{background-color:var(--luzmo-viz-item-menu-button-edit-background-active, var(--viz-item-menu-button-edit-background-active))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button luzmo-icon{color:var(--luzmo-viz-item-menu-button-edit-icon-color, var(--viz-item-menu-button-edit-icon-color))}:host .viz-item-menu .viz-item-menu-button{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;transition:var(--luzmo-viz-item-menu-transition, var(--viz-item-menu-transition));width:1rem;height:1rem}:host .viz-item-menu .viz-item-menu-button-delete{padding:var(--luzmo-viz-item-menu-delete-padding, var(--viz-item-menu-delete-padding));border-radius:var(--luzmo-viz-item-menu-delete-border-radius, var(--viz-item-menu-delete-border-radius));background-color:var(--luzmo-viz-item-menu-delete-background, var(--viz-item-menu-delete-background));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-button-delete:hover,:host .viz-item-menu .viz-item-menu-button-delete[selected]{background-color:var(--luzmo-viz-item-menu-delete-background-hover, var(--viz-item-menu-delete-background-hover))}:host .viz-item-menu .viz-item-menu-button-delete:hover luzmo-icon,:host .viz-item-menu .viz-item-menu-button-delete[selected] luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color-hover, var(--viz-item-menu-delete-icon-color-hover))}:host .viz-item-menu .viz-item-menu-button-delete:active{background-color:var(--luzmo-viz-item-menu-delete-background-active, var(--viz-item-menu-delete-background-active))}:host .viz-item-menu .viz-item-menu-button-delete:active luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color-hover, var(--viz-item-menu-delete-icon-color-hover))}:host .viz-item-menu .viz-item-menu-button-delete luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color, var(--viz-item-menu-delete-icon-color))}:host .viz-item-menu luzmo-tooltip{--tooltip-font-family: var( --luzmo-viz-item-menu-tooltip-font-family, var(--viz-item-menu-tooltip-font-family) );font-family:var(--luzmo-viz-item-menu-tooltip-font-family, var(--viz-item-menu-tooltip-font-family))}:host{--viz-item-menu-gap: var(--luzmo-spacing-3, .375rem);--viz-item-menu-button-edit-gap: 0;--viz-item-menu-button-edit-padding: var(--luzmo-spacing-3, .125rem);--viz-item-menu-button-edit-border-radius: var(--luzmo-border-radius, .25rem);--viz-item-menu-button-edit-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--viz-item-menu-button-edit-background-hover: var(--secondary, var(--luzmo-primary));--viz-item-menu-button-edit-background-active: var(--primary, var(--luzmo-primary));--viz-item-menu-button-edit-icon-color: var(--luzmo-primary-inverse-color, white);--viz-item-menu-delete-padding: var(--luzmo-spacing-3, .125rem);--viz-item-menu-delete-border-radius: var(--luzmo-border-radius, .25rem);--viz-item-menu-delete-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--viz-item-menu-delete-background-hover: var(--luzmo-negative-color, rgb(222, 55, 55));--viz-item-menu-delete-background-active: var(--luzmo-negative-color, rgb(222, 55, 55));--viz-item-menu-delete-icon-color: var(--luzmo-primary-inverse-color, white);--viz-item-menu-delete-icon-color-hover: var(--luzmo-primary-inverse-color, white);--viz-item-menu-transition: all var(--luzmo-animation-duration, .2s) ease;--viz-item-menu-font-size: var(--luzmo-font-size-m, .875rem);--viz-item-menu-box-shadow: 0px 4px 4px 0px var(--Boxshadow, rgba(var(--luzmo-border-color-rgb), .2));--viz-item-menu-tooltip-font-family: var(--luzmo-font-family, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif)}';var c=Object.defineProperty,b=Object.getOwnPropertyDescriptor,u=(r,e,t,i)=>{for(var o=i>1?void 0:i?b(e,t):e,l=r.length-1,a;l>=0;l--)(a=r[l])&&(o=(i?a(e,t,o):a(o))||o);return i&&o&&c(e,t,o),o};exports.LuzmoVizItemMenu=class extends n.LitElement{constructor(){super(...arguments),this.vizItemId="",this.hiddenButtons=[],this.language="en",this.selectedButton=null,this.menuButtonConfigs={edit:{icon:d.luzmoEdit,label:"Edit",eventName:"edit",type:"edit",cssClass:"viz-item-menu-button viz-item-menu-button-edit",dataE2e:"viz-item-menu-button-edit",onHover:()=>this._handleHoverOverEdit()},clone:{icon:d.luzmoClone,label:"Clone",eventName:"clone",type:"clone",cssClass:"viz-item-menu-button viz-item-menu-button-clone",dataE2e:"viz-item-menu-button-clone"},delete:{icon:d.luzmoTrashOutline,label:"Delete",eventName:"delete",type:"delete",cssClass:"viz-item-menu-button viz-item-menu-button-delete",dataE2e:"viz-item-menu-button-delete"}}}get hasTopSectionButtons(){const e=this._shouldShowButton("edit"),t=this._shouldShowButton("clone");return e||t}_shouldShowButton(e){var t;return!((t=this.hiddenButtons)!=null&&t.includes(e))}willUpdate(e){e.has("language")&&this.language!==v.getLocale()&&([...v.targetLocales].includes(this.language??"en")||this.language==="en")&&v.setLocale(this.language)}_handleSelectedToggle(e){e==="edit"&&(this.selectedButton=this.selectedButton===e?null:e,this._emitSelectedChanged())}_emitSelectedChanged(){this.dispatchEvent(new CustomEvent("selected-changed",{bubbles:!0,composed:!0,detail:{selectedButton:this.selectedButton}}))}_handleMenuButtonClick(e){this._handleSelectedToggle(e.type),this.dispatchEvent(new CustomEvent("button-clicked",{bubbles:!0,composed:!0,detail:{action:e.eventName,type:e.type,id:this.vizItemId}}))}_createMenuButtonClickHandler(e){return()=>this._handleMenuButtonClick(e)}_handleHoverOverEdit(){this.dispatchEvent(new CustomEvent("edit-button-hovered",{bubbles:!0,composed:!0}))}_renderMenuButton(e){const t=this.selectedButton===e.type,i=s.msg(e.label,{desc:`Viz item menu ${e.type} tooltip`});return n.html`
|
|
21
21
|
<div
|
|
22
22
|
class=${e.cssClass}
|
|
23
23
|
data-e2e=${e.dataE2e||""}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
@mouseenter=${e.onHover}
|
|
30
30
|
@click=${this._createMenuButtonClickHandler(e)}
|
|
31
31
|
>
|
|
32
|
-
<luzmo-icon .icon=${e.icon} size="
|
|
32
|
+
<luzmo-icon .icon=${e.icon} size="xs"></luzmo-icon>
|
|
33
33
|
<luzmo-tooltip
|
|
34
34
|
self-managed
|
|
35
35
|
placement="right"
|
|
@@ -23,14 +23,14 @@ import "@luzmo/lucero/icon";
|
|
|
23
23
|
import "@luzmo/lucero/tooltip";
|
|
24
24
|
import { unsafeCSS as h, LitElement as p, html as n } from "lit";
|
|
25
25
|
import { property as l } from "lit/decorators.js";
|
|
26
|
-
import { g, t as f, s as x } from "../set-locale-
|
|
26
|
+
import { g, t as f, s as x } from "../set-locale-Dp3N_gXN.js";
|
|
27
27
|
(function() {
|
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
29
29
|
const o = document.createElement("style");
|
|
30
30
|
o.setAttribute("data-luzmo-vars", ""), o.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(o);
|
|
31
31
|
}
|
|
32
32
|
})();
|
|
33
|
-
const y = ':host{box-sizing:border-box;display:block;width:min-content}:host luzmo-icon{display:flex}:host .viz-item-menu{display:flex;flex-direction:column;align-items:center;gap:var(--luzmo-viz-item-menu-gap, var(--viz-item-menu-gap));font-size:var(--luzmo-viz-item-menu-font-size, var(--viz-item-menu-font-size));width:min-content}:host .viz-item-menu .viz-item-menu-top-section{display:flex;flex-direction:column;gap:var(--luzmo-viz-item-menu-button-edit-gap, var(--viz-item-menu-button-edit-gap))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button{padding:var(--luzmo-viz-item-menu-button-edit-padding, var(--viz-item-menu-button-edit-padding));background-color:var(--luzmo-viz-item-menu-button-edit-background, var(--viz-item-menu-button-edit-background))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:first-of-type{border-top-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-top-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:last-of-type{border-bottom-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-bottom-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:hover
|
|
33
|
+
const y = ':host{box-sizing:border-box;display:block;width:min-content}:host luzmo-icon{display:flex}:host .viz-item-menu{display:flex;flex-direction:column;align-items:center;gap:var(--luzmo-viz-item-menu-gap, var(--viz-item-menu-gap));font-size:var(--luzmo-viz-item-menu-font-size, var(--viz-item-menu-font-size));width:min-content}:host .viz-item-menu .viz-item-menu-top-section{display:flex;flex-direction:column;gap:var(--luzmo-viz-item-menu-button-edit-gap, var(--viz-item-menu-button-edit-gap))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button{padding:var(--luzmo-viz-item-menu-button-edit-padding, var(--viz-item-menu-button-edit-padding));background-color:var(--luzmo-viz-item-menu-button-edit-background, var(--viz-item-menu-button-edit-background))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:first-of-type{border-top-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-top-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:last-of-type{border-bottom-right-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));border-bottom-left-radius:var(--luzmo-viz-item-menu-button-edit-border-radius, var(--viz-item-menu-button-edit-border-radius));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:hover{background-color:var(--luzmo-viz-item-menu-button-edit-background-hover, var(--viz-item-menu-button-edit-background-hover))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button:active,:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button[selected]{background-color:var(--luzmo-viz-item-menu-button-edit-background-active, var(--viz-item-menu-button-edit-background-active))}:host .viz-item-menu .viz-item-menu-top-section>.viz-item-menu-button luzmo-icon{color:var(--luzmo-viz-item-menu-button-edit-icon-color, var(--viz-item-menu-button-edit-icon-color))}:host .viz-item-menu .viz-item-menu-button{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;transition:var(--luzmo-viz-item-menu-transition, var(--viz-item-menu-transition));width:1rem;height:1rem}:host .viz-item-menu .viz-item-menu-button-delete{padding:var(--luzmo-viz-item-menu-delete-padding, var(--viz-item-menu-delete-padding));border-radius:var(--luzmo-viz-item-menu-delete-border-radius, var(--viz-item-menu-delete-border-radius));background-color:var(--luzmo-viz-item-menu-delete-background, var(--viz-item-menu-delete-background));box-shadow:var(--luzmo-viz-item-menu-box-shadow, var(--viz-item-menu-box-shadow))}:host .viz-item-menu .viz-item-menu-button-delete:hover,:host .viz-item-menu .viz-item-menu-button-delete[selected]{background-color:var(--luzmo-viz-item-menu-delete-background-hover, var(--viz-item-menu-delete-background-hover))}:host .viz-item-menu .viz-item-menu-button-delete:hover luzmo-icon,:host .viz-item-menu .viz-item-menu-button-delete[selected] luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color-hover, var(--viz-item-menu-delete-icon-color-hover))}:host .viz-item-menu .viz-item-menu-button-delete:active{background-color:var(--luzmo-viz-item-menu-delete-background-active, var(--viz-item-menu-delete-background-active))}:host .viz-item-menu .viz-item-menu-button-delete:active luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color-hover, var(--viz-item-menu-delete-icon-color-hover))}:host .viz-item-menu .viz-item-menu-button-delete luzmo-icon{color:var(--luzmo-viz-item-menu-delete-icon-color, var(--viz-item-menu-delete-icon-color))}:host .viz-item-menu luzmo-tooltip{--tooltip-font-family: var( --luzmo-viz-item-menu-tooltip-font-family, var(--viz-item-menu-tooltip-font-family) );font-family:var(--luzmo-viz-item-menu-tooltip-font-family, var(--viz-item-menu-tooltip-font-family))}:host{--viz-item-menu-gap: var(--luzmo-spacing-3, .375rem);--viz-item-menu-button-edit-gap: 0;--viz-item-menu-button-edit-padding: var(--luzmo-spacing-3, .125rem);--viz-item-menu-button-edit-border-radius: var(--luzmo-border-radius, .25rem);--viz-item-menu-button-edit-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--viz-item-menu-button-edit-background-hover: var(--secondary, var(--luzmo-primary));--viz-item-menu-button-edit-background-active: var(--primary, var(--luzmo-primary));--viz-item-menu-button-edit-icon-color: var(--luzmo-primary-inverse-color, white);--viz-item-menu-delete-padding: var(--luzmo-spacing-3, .125rem);--viz-item-menu-delete-border-radius: var(--luzmo-border-radius, .25rem);--viz-item-menu-delete-background: var(--luzmo-selected-color-hover, rgb(70, 69, 76));--viz-item-menu-delete-background-hover: var(--luzmo-negative-color, rgb(222, 55, 55));--viz-item-menu-delete-background-active: var(--luzmo-negative-color, rgb(222, 55, 55));--viz-item-menu-delete-icon-color: var(--luzmo-primary-inverse-color, white);--viz-item-menu-delete-icon-color-hover: var(--luzmo-primary-inverse-color, white);--viz-item-menu-transition: all var(--luzmo-animation-duration, .2s) ease;--viz-item-menu-font-size: var(--luzmo-font-size-m, .875rem);--viz-item-menu-box-shadow: 0px 4px 4px 0px var(--Boxshadow, rgba(var(--luzmo-border-color-rgb), .2));--viz-item-menu-tooltip-font-family: var(--luzmo-font-family, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif)}';
|
|
34
34
|
var k = Object.defineProperty, w = Object.getOwnPropertyDescriptor, u = (e, o, r, m) => {
|
|
35
35
|
for (var i = m > 1 ? void 0 : m ? w(o, r) : o, a = e.length - 1, d; a >= 0; a--)
|
|
36
36
|
(d = e[a]) && (i = (m ? d(o, r, i) : d(i)) || i);
|
|
@@ -77,7 +77,8 @@ let t = class extends p {
|
|
|
77
77
|
* Check if a menu button should be shown
|
|
78
78
|
*/
|
|
79
79
|
_shouldShowButton(e) {
|
|
80
|
-
|
|
80
|
+
var o;
|
|
81
|
+
return !((o = this.hiddenButtons) != null && o.includes(e));
|
|
81
82
|
}
|
|
82
83
|
willUpdate(e) {
|
|
83
84
|
e.has("language") && this.language !== g() && ([...f].includes(this.language ?? "en") || this.language === "en") && x(this.language);
|
|
@@ -149,7 +150,7 @@ let t = class extends p {
|
|
|
149
150
|
@mouseenter=${e.onHover}
|
|
150
151
|
@click=${this._createMenuButtonClickHandler(e)}
|
|
151
152
|
>
|
|
152
|
-
<luzmo-icon .icon=${e.icon} size="
|
|
153
|
+
<luzmo-icon .icon=${e.icon} size="xs"></luzmo-icon>
|
|
153
154
|
<luzmo-tooltip
|
|
154
155
|
self-managed
|
|
155
156
|
placement="right"
|