@luzmo/analytics-components-kit 1.0.1-alpha.52 → 1.0.1-alpha.54
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/{de-Cxe7xkT4.cjs → de-BimXztr7.cjs} +1 -1
- package/components/{de-ZPzjN2kc.js → de-Ca_gJecj.js} +0 -1
- package/components/display-settings/display-settings.d.ts +1 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +2 -2
- package/components/display-settings-datetime/display-settings-datetime.d.ts +1 -1
- package/components/display-settings-datetime/index.cjs +43 -56
- package/components/display-settings-datetime/index.js +81 -95
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +2 -2
- package/components/display-settings-numeric/index.cjs +19 -19
- package/components/display-settings-numeric/index.js +84 -84
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +2 -2
- package/components/draggable-data-item/index.cjs +1 -1
- package/components/draggable-data-item/index.js +3 -3
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +1 -1
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +4 -4
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +6 -4
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/{en-GB-BtLbN8o_.js → en-GB-UzDYaNfY.js} +1 -1
- package/components/{en-GB-Dd11ROdW.cjs → en-GB-cN3S24Cg.cjs} +1 -1
- package/components/{es-C0JGlz18.js → es-BHAnPxmj.js} +0 -1
- package/components/{es-4dEouIgb.cjs → es-CDzU1gsd.cjs} +1 -1
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +2 -2
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +3 -3
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +2 -2
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +2 -2
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +2 -2
- package/components/{formatter-CQDms6fU.js → formatter-CqU9_98M.js} +1 -0
- package/components/{formatter-DiJYkB6b.cjs → formatter-Lo9PMcxy.cjs} +1 -1
- package/components/{fr-B_-_f-VN.js → fr-CKHxPDre.js} +0 -1
- package/components/{fr-Dwulhlbi.cjs → fr-s3wNsLiB.cjs} +1 -1
- package/components/grid/index.cjs +1 -1
- package/components/grid/index.js +2 -2
- package/components/{heat-map-options.config-DQya-lag.js → heat-map-options.config-BnLWe8jS.js} +16 -14
- package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
- package/components/index-BF9-Mgs_.cjs +249 -0
- package/components/{index-5Z9GD60H.js → index-CZ0HI7ep.js} +2 -2
- package/components/index-D05oY5ND.cjs +178 -0
- package/components/{index-Df-_TbOD.cjs → index-D4JNE3zI.cjs} +1 -1
- package/components/{index-fmbD10nN.js → index-DV63kOPg.js} +269 -242
- package/components/{index-BPVXrhaX.js → index-KFE-WtKZ.js} +5 -3
- package/components/index.cjs +1 -1
- package/components/index.js +4 -4
- package/components/item-context-configs.cjs +225 -0
- package/components/item-context-configs.js +1013 -0
- package/components/item-options-configs.cjs +20 -0
- package/components/item-options-configs.js +109 -0
- package/components/{localized-decorator-DIXYZ3RL.cjs → localized-decorator-CIHsaT2_.cjs} +1 -1
- package/components/{localized-decorator-Bl5gcI6n.js → localized-decorator-Di4TdvRQ.js} +1 -1
- package/components/{marker-map-options.config-CYoq89Oz.js → marker-map-options.config-DPJ955tt.js} +1 -1
- package/components/{marker-map-options.config-_XFv5XWK.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
- package/components/{nl-gdQCG4WV.js → nl-CMVty5rf.js} +0 -1
- package/components/{nl-DxdBIXDd.cjs → nl-DHgf0PUG.cjs} +1 -1
- package/components/{periods.const-7sXlqgEo.cjs → periods.const-CTd6Hskz.cjs} +1 -1
- package/components/{periods.const-B7FKokcH.js → periods.const-D77iT3rK.js} +1 -1
- package/components/{set-locale-DCPlazsZ.cjs → set-locale-CSL8WaxL.cjs} +1 -1
- package/components/{set-locale-GI34z_M7.js → set-locale-CW9yA503.js} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +3 -3
- package/components/slot-menu/index.cjs +8 -8
- package/components/slot-menu/index.js +88 -76
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +9 -10
- package/components/{symbol-map-options.config-Bj-UuL9m.js → symbol-map-options.config-DdDA4aa7.js} +1 -1
- package/components/{symbol-map-options.config-sdPlHspI.cjs → symbol-map-options.config-m-lwLTtu.cjs} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +1 -1
- package/components/venn-diagram-options.config-CGUMA930.js +23 -0
- package/components/venn-diagram-options.config-mPXMR1CE.cjs +20 -0
- package/custom-elements.json +6 -0
- package/item-definitions/area-chart/area-chart-context.config.d.ts +20 -0
- package/item-definitions/bar-chart/bar-chart-context.config.d.ts +20 -0
- package/item-definitions/box-plot/box-plot-context.config.d.ts +17 -0
- package/item-definitions/bubble-chart/bubble-chart-context.config.d.ts +20 -0
- package/item-definitions/bullet-chart/bullet-chart-context.config.d.ts +20 -0
- package/item-definitions/choropleth-map/choropleth-map-context.config.d.ts +20 -0
- package/item-definitions/circle-pack-chart/circle-pack-chart-context.config.d.ts +17 -0
- package/item-definitions/circular-gauge/circular-gauge-context.config.d.ts +17 -0
- package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +1 -1
- package/item-definitions/column-chart/column-chart-context.config.d.ts +20 -0
- package/item-definitions/combination-chart/combination-chart-context.config.d.ts +17 -0
- package/item-definitions/conditional-number/conditional-number-context.config.d.ts +17 -0
- package/item-definitions/context-helpers.d.ts +2 -0
- package/item-definitions/date-filter/date-filter-context.config.d.ts +14 -0
- package/item-definitions/donut-chart/donut-chart-context.config.d.ts +17 -0
- package/item-definitions/dropdown-filter/dropdown-filter-context.config.d.ts +14 -0
- package/item-definitions/evolution-number/evolution-number-context.config.d.ts +17 -0
- package/item-definitions/funnel-chart/funnel-chart-context.config.d.ts +17 -0
- package/item-definitions/heat-map/heat-map-context.config.d.ts +17 -0
- package/item-definitions/heat-table/heat-table-context.config.d.ts +20 -0
- package/item-definitions/hexbin-map/hexbin-map-context.config.d.ts +17 -0
- package/item-definitions/image/image-context.config.d.ts +10 -0
- package/item-definitions/item-context.config.d.ts +44 -0
- package/item-definitions/item-options.config.d.ts +44 -0
- package/item-definitions/line-chart/line-chart-context.config.d.ts +20 -0
- package/item-definitions/marker-map/marker-map-context.config.d.ts +17 -0
- package/item-definitions/ohlc-chart/ohlc-chart-context.config.d.ts +26 -0
- package/item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-context.config.d.ts +17 -0
- package/item-definitions/pivot-table/pivot-table-context.config.d.ts +20 -0
- package/item-definitions/pyramid-chart/pyramid-chart-context.config.d.ts +20 -0
- package/item-definitions/radar-chart/radar-chart-context.config.d.ts +20 -0
- package/item-definitions/regular-table/regular-table-context.config.d.ts +14 -0
- package/item-definitions/route-map/route-map-context.config.d.ts +23 -0
- package/item-definitions/sankey-diagram/sankey-diagram-context.config.d.ts +19 -0
- package/item-definitions/scatter-plot/scatter-plot-context.config.d.ts +26 -0
- package/item-definitions/search-filter/search-filter-context.config.d.ts +14 -0
- package/item-definitions/slicer-filter/slicer-filter-context.config.d.ts +17 -0
- package/item-definitions/slider-filter/slider-filter-context.config.d.ts +14 -0
- package/item-definitions/spacer/spacer-context.config.d.ts +10 -0
- package/item-definitions/speedometer-chart/speedometer-chart-context.config.d.ts +17 -0
- package/item-definitions/spike-map/spike-map-context.config.d.ts +20 -0
- package/item-definitions/strip-plot/strip-plot-context.config.d.ts +17 -0
- package/item-definitions/sunburst-chart/sunburst-chart-context.config.d.ts +17 -0
- package/item-definitions/symbol-map/symbol-map-context.config.d.ts +20 -0
- package/item-definitions/text/text-context.config.d.ts +10 -0
- package/item-definitions/treemap-chart/treemap-chart-context.config.d.ts +20 -0
- package/item-definitions/venn-diagram/venn-diagram-context.config.d.ts +20 -0
- package/item-definitions/venn-diagram/venn-diagram-options.config.d.ts +2 -0
- package/item-definitions/video/video-context.config.d.ts +10 -0
- package/item-definitions/wordcloud-chart/wordcloud-chart-context.config.d.ts +20 -0
- package/package.json +11 -1
- package/components/heat-map-options.config-BQ-Afrbi.cjs +0 -20
- package/components/index-3X8Iuo7y.cjs +0 -174
- package/components/index-CSfR7FMV.cjs +0 -249
@@ -0,0 +1,20 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2025 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./area-chart-options.config-C7sMAHco.cjs"),t=require("./bar-chart-options.config-DcxEkOT5.cjs"),i=require("./box-plot-options.config-SrrbDEYW.cjs"),n=require("./bubble-chart-options.config-Ihn6eVQI.cjs"),e=require("./bullet-chart-options.config-DfS4Bwds.cjs"),r=require("./choropleth-map-options.config-ZW8yoZH2.cjs"),s=require("./circle-pack-chart-options.config-DWql72cN.cjs"),a=require("./circular-gauge-options.config-msZ4mfpN.cjs"),f=require("./column-chart-options.config-BjDvA7i9.cjs"),p=require("./combination-chart-options.config-CyYEp-gX.cjs"),u=require("./conditional-number-options.config-DgzUo0xi.cjs"),c=require("./date-filter-options.config-CWPMtA18.cjs"),l=require("./donut-chart-options.config-tNpqBZfR.cjs"),g=require("./dropdown-filter-options.config-DS-MORmq.cjs"),O=require("./evolution-number-options.config-BgIZY4gQ.cjs"),C=require("./funnel-chart-options.config-D7H7gFcx.cjs"),d=require("./heat-map-options.config-DVH-Bb5-.cjs"),h=require("./heat-table-options.config-B12JEYnp.cjs"),q=require("./hexbin-map-options.config-DZERRhM8.cjs"),_=require("./image-options.config-Dqhc2c3b.cjs"),b=require("./line-chart-options.config-DSugoe0t.cjs"),m=require("./marker-map-options.config-_FYZzRwA.cjs"),M=require("./ohlc-chart-options.config-BLlRV_bs.cjs"),P=require("./parallel-coordinates-plot-options.config-B9eRq_Dj.cjs"),F=require("./pivot-table-options.config-BiJXKSFR.cjs"),v=require("./pyramid-chart-options.config-C4zbFS26.cjs"),k=require("./radar-chart-options.config-EqQu6PTh.cjs"),y=require("./regular-table-options.config-DTx3RTnS.cjs"),T=require("./route-map-options.config-D7NJePTu.cjs"),x=require("./sankey-diagram-options.config-RFB83YLZ.cjs"),w=require("./scatter-plot-options.config-CFfGJXsV.cjs"),D=require("./search-filter-options.config-BCaDlYqZ.cjs"),N=require("./slicer-filter-options.config-DNI-XevE.cjs"),G=require("./slider-filter-options.config-_8Z2zKmU.cjs"),S=require("./speedometer-chart-options.config-BX9LTQBH.cjs"),j=require("./spike-map-options.config-DoBFXPmN.cjs"),z=require("./strip-plot-options.config-CKy1s16H.cjs"),A=require("./sunburst-chart-options.config-AbNjWS6t.cjs"),B=require("./symbol-map-options.config-m-lwLTtu.cjs"),E=require("./text-options.config-BFB3rEmt.cjs"),H=require("./treemap-chart-options.config-C0Q9aQ1Z.cjs"),I=require("./venn-diagram-options.config-mPXMR1CE.cjs"),J=require("./video-options.config-CGsDTwHc.cjs"),K=require("./wordcloud-chart-options.config-vGfCW8kE.cjs");exports.areaChartOptionsConfig=o.default;exports.barChartOptionsConfig=t.default;exports.boxPlotOptionsConfig=i.default;exports.bubbleChartOptionsConfig=n.default;exports.bulletChartOptionsConfig=e.default;exports.choroplethMapOptionsConfig=r.default;exports.circlePackChartOptionsConfig=s.default;exports.circularGaugeOptionsConfig=a.default;exports.columnChartOptionsConfig=f.default;exports.combinationChartOptionsConfig=p.default;exports.conditionalNumberOptionsConfig=u.default;exports.dateFilterOptionsConfig=c.default;exports.donutChartOptionsConfig=l.default;exports.dropdownFilterOptionsConfig=g.default;exports.evolutionNumberOptionsConfig=O.default;exports.funnelChartOptionsConfig=C.default;exports.heatMapOptionsConfig=d.default;exports.heatTableOptionsConfig=h.default;exports.hexbinMapOptionsConfig=q.default;exports.imageOptionsConfig=_.default;exports.lineChartOptionsConfig=b.default;exports.markerMapOptionsConfig=m.default;exports.ohlcChartOptionsConfig=M.default;exports.parallelCoordinatesPlotOptionsConfig=P.default;exports.pivotTableOptionsConfig=F.default;exports.pyramidChartOptionsConfig=v.default;exports.radarChartOptionsConfig=k.default;exports.regularTableOptionsConfig=y.default;exports.routeMapOptionsConfig=T.default;exports.sankeyDiagramOptionsConfig=x.default;exports.scatterPlotOptionsConfig=w.default;exports.searchFilterOptionsConfig=D.default;exports.slicerFilterOptionsConfig=N.default;exports.sliderFilterOptionsConfig=G.default;exports.speedometerChartOptionsConfig=S.default;exports.spikeMapOptionsConfig=j.default;exports.stripPlotOptionsConfig=z.default;exports.sunburstChartOptionsConfig=A.default;exports.symbolMapOptionsConfig=B.default;exports.textOptionsConfig=E.default;exports.treemapChartOptionsConfig=H.default;exports.vennDiagramOptionsConfig=I.default;exports.videoOptionsConfig=J.default;exports.wordcloudChartOptionsConfig=K.default;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2025 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
import { default as a } from "./area-chart-options.config-_J0sG4NF.js";
|
21
|
+
import { default as f } from "./bar-chart-options.config-D1mb5TDl.js";
|
22
|
+
import { default as i } from "./box-plot-options.config-xu_i6ms7.js";
|
23
|
+
import { default as p } from "./bubble-chart-options.config-BacgXkJ_.js";
|
24
|
+
import { default as l } from "./bullet-chart-options.config-CDPpX1yc.js";
|
25
|
+
import { default as u } from "./choropleth-map-options.config-B_W9-rhe.js";
|
26
|
+
import { default as m } from "./circle-pack-chart-options.config-DEYL3DMK.js";
|
27
|
+
import { default as x } from "./circular-gauge-options.config-DAIjz4Rl.js";
|
28
|
+
import { default as h } from "./column-chart-options.config-B5SjBVdy.js";
|
29
|
+
import { default as c } from "./combination-chart-options.config-CApdgFvv.js";
|
30
|
+
import { default as F } from "./conditional-number-options.config-BCEpSK9J.js";
|
31
|
+
import { default as k } from "./date-filter-options.config-DBRxlTWy.js";
|
32
|
+
import { default as y } from "./donut-chart-options.config-BulUEiaH.js";
|
33
|
+
import { default as w } from "./dropdown-filter-options.config-D9dvPypF.js";
|
34
|
+
import { default as N } from "./evolution-number-options.config-DzkfeoIN.js";
|
35
|
+
import { default as j } from "./funnel-chart-options.config-C_VjTOvD.js";
|
36
|
+
import { default as z } from "./heat-map-options.config-BnLWe8jS.js";
|
37
|
+
import { default as B } from "./heat-table-options.config-CUsDdgUr.js";
|
38
|
+
import { default as H } from "./hexbin-map-options.config-F-7uCqxb.js";
|
39
|
+
import { default as J } from "./image-options.config-CBfeq5Zw.js";
|
40
|
+
import { default as L } from "./line-chart-options.config-DB3IsXXr.js";
|
41
|
+
import { default as R } from "./marker-map-options.config-DPJ955tt.js";
|
42
|
+
import { default as U } from "./ohlc-chart-options.config-D9npwajt.js";
|
43
|
+
import { default as W } from "./parallel-coordinates-plot-options.config-DxB4kd58.js";
|
44
|
+
import { default as Y } from "./pivot-table-options.config-DNK_AIG7.js";
|
45
|
+
import { default as _ } from "./pyramid-chart-options.config-CcVMatYx.js";
|
46
|
+
import { default as oo } from "./radar-chart-options.config-CUZn_3Fd.js";
|
47
|
+
import { default as ao } from "./regular-table-options.config-BoLZsBry.js";
|
48
|
+
import { default as fo } from "./route-map-options.config-CN86T7c0.js";
|
49
|
+
import { default as io } from "./sankey-diagram-options.config-tVLKy_Zn.js";
|
50
|
+
import { default as po } from "./scatter-plot-options.config-Corlzno1.js";
|
51
|
+
import { default as lo } from "./search-filter-options.config-BE3JhR-F.js";
|
52
|
+
import { default as uo } from "./slicer-filter-options.config-3JZZcw5C.js";
|
53
|
+
import { default as go } from "./slider-filter-options.config-DH4SS8wH.js";
|
54
|
+
import { default as Oo } from "./speedometer-chart-options.config-SL581yOa.js";
|
55
|
+
import { default as bo } from "./spike-map-options.config-C5KewecZ.js";
|
56
|
+
import { default as Mo } from "./strip-plot-options.config-Bdr8yQJu.js";
|
57
|
+
import { default as Po } from "./sunburst-chart-options.config-CNauGQJv.js";
|
58
|
+
import { default as vo } from "./symbol-map-options.config-DdDA4aa7.js";
|
59
|
+
import { default as To } from "./text-options.config-BWaJoeG2.js";
|
60
|
+
import { default as Do } from "./treemap-chart-options.config-D5AJaF_u.js";
|
61
|
+
import { default as Go } from "./venn-diagram-options.config-CGUMA930.js";
|
62
|
+
import { default as qo } from "./video-options.config-Dk36zJ1B.js";
|
63
|
+
import { default as Ao } from "./wordcloud-chart-options.config-w2NUIWVA.js";
|
64
|
+
export {
|
65
|
+
a as areaChartOptionsConfig,
|
66
|
+
f as barChartOptionsConfig,
|
67
|
+
i as boxPlotOptionsConfig,
|
68
|
+
p as bubbleChartOptionsConfig,
|
69
|
+
l as bulletChartOptionsConfig,
|
70
|
+
u as choroplethMapOptionsConfig,
|
71
|
+
m as circlePackChartOptionsConfig,
|
72
|
+
x as circularGaugeOptionsConfig,
|
73
|
+
h as columnChartOptionsConfig,
|
74
|
+
c as combinationChartOptionsConfig,
|
75
|
+
F as conditionalNumberOptionsConfig,
|
76
|
+
k as dateFilterOptionsConfig,
|
77
|
+
y as donutChartOptionsConfig,
|
78
|
+
w as dropdownFilterOptionsConfig,
|
79
|
+
N as evolutionNumberOptionsConfig,
|
80
|
+
j as funnelChartOptionsConfig,
|
81
|
+
z as heatMapOptionsConfig,
|
82
|
+
B as heatTableOptionsConfig,
|
83
|
+
H as hexbinMapOptionsConfig,
|
84
|
+
J as imageOptionsConfig,
|
85
|
+
L as lineChartOptionsConfig,
|
86
|
+
R as markerMapOptionsConfig,
|
87
|
+
U as ohlcChartOptionsConfig,
|
88
|
+
W as parallelCoordinatesPlotOptionsConfig,
|
89
|
+
Y as pivotTableOptionsConfig,
|
90
|
+
_ as pyramidChartOptionsConfig,
|
91
|
+
oo as radarChartOptionsConfig,
|
92
|
+
ao as regularTableOptionsConfig,
|
93
|
+
fo as routeMapOptionsConfig,
|
94
|
+
io as sankeyDiagramOptionsConfig,
|
95
|
+
po as scatterPlotOptionsConfig,
|
96
|
+
lo as searchFilterOptionsConfig,
|
97
|
+
uo as slicerFilterOptionsConfig,
|
98
|
+
go as sliderFilterOptionsConfig,
|
99
|
+
Oo as speedometerChartOptionsConfig,
|
100
|
+
bo as spikeMapOptionsConfig,
|
101
|
+
Mo as stripPlotOptionsConfig,
|
102
|
+
Po as sunburstChartOptionsConfig,
|
103
|
+
vo as symbolMapOptionsConfig,
|
104
|
+
To as textOptionsConfig,
|
105
|
+
Do as treemapChartOptionsConfig,
|
106
|
+
Go as vennDiagramOptionsConfig,
|
107
|
+
qo as videoOptionsConfig,
|
108
|
+
Ao as wordcloudChartOptionsConfig
|
109
|
+
};
|
@@ -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";const n=require("./set-locale-
|
20
|
+
"use strict";const n=require("./set-locale-CSL8WaxL.cjs");/**
|
21
21
|
* @license
|
22
22
|
* Copyright 2021 Google LLC
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -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 n } from "./set-locale-
|
20
|
+
import { L as n } from "./set-locale-CW9yA503.js";
|
21
21
|
/**
|
22
22
|
* @license
|
23
23
|
* Copyright 2021 Google LLC
|
package/components/{marker-map-options.config-_XFv5XWK.cjs → marker-map-options.config-_FYZzRwA.cjs}
RENAMED
@@ -17,4 +17,4 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DhDgy1sp.cjs"),l=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>t.mapVectorTileProviders[e]??{}}}]},{key:"marker",type:"group",open:!0,children:[{key:"
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-DhDgy1sp.cjs"),l=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>t.mapVectorTileProviders[e]??{}}}]},{key:"marker",type:"group",open:!0,children:[{key:"maxClusterRadius",control:{type:"action-button-group",label:"Cluster surface",default:["M"],values:{S:{buttonText:"S",label:"Small"},M:{buttonText:"M",label:"Medium"},L:{buttonText:"L",label:"Large"}},selects:"single",toValue:e=>e==="S"?30:e==="L"?90:60,parseValue:e=>e===30?"S":e===90?"L":"M"}}]}];exports.default=l;
|
@@ -121,7 +121,6 @@ const e = {
|
|
121
121
|
sbbb97b1c63507dc0: "Nummer",
|
122
122
|
sbeebe911264bed23: "laatste (x) beschikbare periodes",
|
123
123
|
sc1bf67624fa6d498: "% verandering",
|
124
|
-
sc27dc998602cdc61: "Voorbeeld:",
|
125
124
|
sc4842e5b8b90466a: "Seconden",
|
126
125
|
sc6e49f3d37e54030: "Uur van de dag",
|
127
126
|
sc6f5a4fc0583d734: "is in",
|
@@ -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={s00decbd8fed4f501:"Maximum",s0456d2ad905847d9:"laatste",s079a052719914d71:"Categorie",s08098b07b4c86ff2:"<=",s08108707b4ce87d4:">=",s088e3b07b5394bc3:"is",s099b18e1bd8a1154:"Uren",s09c2b609dff29061:"Cumulatieve som",s0acece4c687177a9:"Kwartaalnummers",s0bb151c9319a6813:"X-As",s0bca0c91195d8d6d:"bevat",s1125d159f7e64df5:"Weergave",s11326fd2590f4e5e:"Standaard",s122f7f3f1a22ea50:"niet gelijk",s13f5793e33ebda4f:"tussen",s146475c4daa430ed:"Decimalen",s178b06f4d02cfd40:"ontbreekt niet",s184501a399a815dc:"Kwartalen",s18498398aeb37b07:"Week begint op",s187528426100c44e:"Geen gegevens",s1cdb6b07fe827486:"Weeknummer",s1e593719b55d60c0:"MTD",s1f0916624a87d415:"Dag van het jaar",s2454d1f117573457:"Precisie",s247d110f13a3a288:"Dag van de week",s26273c258ddde0e1:"Selecteer...",s2695506122ffd614:"Seconde van de minuut",s2718cebf7de190e1:"is tussen",s2798d16f4e04857e:"Minuut van het uur",s281f1d977ddc0ebe:"Maandnummer",s2ea38ce3da088075:"Periodes",s2fb2a49481123d6a:"Weken",s2fedf26ef08343d4:"is gelijk aan",s3924c3d773a80312:"laatst beschikbaar",s3c6455b19fb1c3e4:"Absolute verandering",s3dcf7b255596a2c3:"Standaardafwijking",s441accd1cd3484c9:"Minuut",s463b8c4e92751ba5:"Opties",s467b030b9a34b3c8:"Gemiddelde",s48e186fb300e5464:"Tijd",s496c60f73bdf5725:"Aggregatie",s4b30fad1c34464e1:"groter dan of gelijk aan",s4b58c01e2578f5e4:"Legenda",s4e585eeea351a038:"bevat",s4efbcab48a433013:"Lang",s4f27f6b48a68b5c2:"Vergrendelen",s519d0aa80bbafd42:"week tot nu",s57ace73e7c6e719f:"is niet in",s58ec693e33483873:"kleiner dan",s5d929ff1619ac0c9:"Zoeken",s5e2654fb8587f442:"Dupliceer",s602805b1eb3106c6:"Y-As",s6031881827829901:"24u",s60b34c3c17dc35bd:"Jaren",s64ef2a6c2dd1d3d1:"Bewerken",s66722bc2ea775e05:"Uitgeschakeld",s669b18c6d2d9c95b:"Geen",s66dcbbc0355c2759:"Zondag",s680f01021b5e339d:"Week",s6b0bffd88024372f:"Uur",s708bbac083d05109:"begint niet met",s70a773eb3133e5fa:"maand tot nu",s716a6024e3fe999c:"Tonen",s71a5c9f4b68ef4d4:"Aantal",s74dcd519e6563a26:"WTD",s7632fc9aa12bf382:"Maanden",s7a6878d41ffac284:"laatst voltooid",s846876f9b712e843:"is niet gelijk aan",s862f5319f0256b94:"QTD",s8665d029b5cb8b24:"Eindtotalen",s8a56a8c8bd19c9c7:"ontbreekt",s8d0259032729869d:"Seconde",s965c503c3e42fdfe:"Ingeschakeld",s9689e928323dc124:"laatste voltooide (periode)",s981f232bd33ec927:"Percentage",s9854300ef4a37d18:"eindigt niet met",s987abe19fac8d108:"Som",s98c337186f2d57c6:"Intervalgrootte",s98db41a3eb532203:"jaar tot nu",s991d216e6efc157c:"Geen resultaten",s996319f23f6cf0b5:"eindigt met",s9b9009d4a5004fb8:"Groepering",s9b9d6ce29d05a298:"kleiner dan of gelijk aan",sa3c9339de23c1752:"Formaat",sa6ab5184d6315895:"Van",sa6f2645578b2d2bc:"Jaar",sa7effa06c0f6784c:"groter dan",sa8beb6b1182241ac:"Filters",sac8256732f2ee1e5:"Gegevens",sac8b59943205b14f:"volgende volledige (periode)",sac94bb71f7737997:"Mediaan",sacae74732f544fca:"Dagen",saf63b34c8601a6e1:">",sb1f654608a3eea75:"Weekdag",sb3b793ff5cc1bc39:"volgende (x) periodes",sb47daaf9e1c4a905:"Maand",sb5b295e3a7500b9c:"Duurniveaus",sb6513caf69971fb5:"Kort",sb70671db5700ff60:"eindigt niet met",sb93e5af29aca2e3d:"ontbreekt",sbbb97b1c63507dc0:"Nummer",sbeebe911264bed23:"laatste (x) beschikbare periodes",sc1bf67624fa6d498:"% verandering",
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={s00decbd8fed4f501:"Maximum",s0456d2ad905847d9:"laatste",s079a052719914d71:"Categorie",s08098b07b4c86ff2:"<=",s08108707b4ce87d4:">=",s088e3b07b5394bc3:"is",s099b18e1bd8a1154:"Uren",s09c2b609dff29061:"Cumulatieve som",s0acece4c687177a9:"Kwartaalnummers",s0bb151c9319a6813:"X-As",s0bca0c91195d8d6d:"bevat",s1125d159f7e64df5:"Weergave",s11326fd2590f4e5e:"Standaard",s122f7f3f1a22ea50:"niet gelijk",s13f5793e33ebda4f:"tussen",s146475c4daa430ed:"Decimalen",s178b06f4d02cfd40:"ontbreekt niet",s184501a399a815dc:"Kwartalen",s18498398aeb37b07:"Week begint op",s187528426100c44e:"Geen gegevens",s1cdb6b07fe827486:"Weeknummer",s1e593719b55d60c0:"MTD",s1f0916624a87d415:"Dag van het jaar",s2454d1f117573457:"Precisie",s247d110f13a3a288:"Dag van de week",s26273c258ddde0e1:"Selecteer...",s2695506122ffd614:"Seconde van de minuut",s2718cebf7de190e1:"is tussen",s2798d16f4e04857e:"Minuut van het uur",s281f1d977ddc0ebe:"Maandnummer",s2ea38ce3da088075:"Periodes",s2fb2a49481123d6a:"Weken",s2fedf26ef08343d4:"is gelijk aan",s3924c3d773a80312:"laatst beschikbaar",s3c6455b19fb1c3e4:"Absolute verandering",s3dcf7b255596a2c3:"Standaardafwijking",s441accd1cd3484c9:"Minuut",s463b8c4e92751ba5:"Opties",s467b030b9a34b3c8:"Gemiddelde",s48e186fb300e5464:"Tijd",s496c60f73bdf5725:"Aggregatie",s4b30fad1c34464e1:"groter dan of gelijk aan",s4b58c01e2578f5e4:"Legenda",s4e585eeea351a038:"bevat",s4efbcab48a433013:"Lang",s4f27f6b48a68b5c2:"Vergrendelen",s519d0aa80bbafd42:"week tot nu",s57ace73e7c6e719f:"is niet in",s58ec693e33483873:"kleiner dan",s5d929ff1619ac0c9:"Zoeken",s5e2654fb8587f442:"Dupliceer",s602805b1eb3106c6:"Y-As",s6031881827829901:"24u",s60b34c3c17dc35bd:"Jaren",s64ef2a6c2dd1d3d1:"Bewerken",s66722bc2ea775e05:"Uitgeschakeld",s669b18c6d2d9c95b:"Geen",s66dcbbc0355c2759:"Zondag",s680f01021b5e339d:"Week",s6b0bffd88024372f:"Uur",s708bbac083d05109:"begint niet met",s70a773eb3133e5fa:"maand tot nu",s716a6024e3fe999c:"Tonen",s71a5c9f4b68ef4d4:"Aantal",s74dcd519e6563a26:"WTD",s7632fc9aa12bf382:"Maanden",s7a6878d41ffac284:"laatst voltooid",s846876f9b712e843:"is niet gelijk aan",s862f5319f0256b94:"QTD",s8665d029b5cb8b24:"Eindtotalen",s8a56a8c8bd19c9c7:"ontbreekt",s8d0259032729869d:"Seconde",s965c503c3e42fdfe:"Ingeschakeld",s9689e928323dc124:"laatste voltooide (periode)",s981f232bd33ec927:"Percentage",s9854300ef4a37d18:"eindigt niet met",s987abe19fac8d108:"Som",s98c337186f2d57c6:"Intervalgrootte",s98db41a3eb532203:"jaar tot nu",s991d216e6efc157c:"Geen resultaten",s996319f23f6cf0b5:"eindigt met",s9b9009d4a5004fb8:"Groepering",s9b9d6ce29d05a298:"kleiner dan of gelijk aan",sa3c9339de23c1752:"Formaat",sa6ab5184d6315895:"Van",sa6f2645578b2d2bc:"Jaar",sa7effa06c0f6784c:"groter dan",sa8beb6b1182241ac:"Filters",sac8256732f2ee1e5:"Gegevens",sac8b59943205b14f:"volgende volledige (periode)",sac94bb71f7737997:"Mediaan",sacae74732f544fca:"Dagen",saf63b34c8601a6e1:">",sb1f654608a3eea75:"Weekdag",sb3b793ff5cc1bc39:"volgende (x) periodes",sb47daaf9e1c4a905:"Maand",sb5b295e3a7500b9c:"Duurniveaus",sb6513caf69971fb5:"Kort",sb70671db5700ff60:"eindigt niet met",sb93e5af29aca2e3d:"ontbreekt",sbbb97b1c63507dc0:"Nummer",sbeebe911264bed23:"laatste (x) beschikbare periodes",sc1bf67624fa6d498:"% verandering",sc4842e5b8b90466a:"Seconden",sc6e49f3d37e54030:"Uur van de dag",sc6f5a4fc0583d734:"is in",scb7bab1a17663a6c:"JTD",scf2bb2b0de9cdb8a:"Milliseconde",sd237be440de38cc7:"Kwartaal",sd28141a332dc31fa:"Dag van de maand",sd5b1040899eb149d:"volgende volledige",sd66a74fff07a11fb:"{count} geselecteerd",sd7ebafacf602c9bd:"Letter",sdb73788b3c975f16:"Automatisch",sdc673e73b5c13aea:"Verwijder",sdfeb2151b9e78d4d:"bevat niet",se0955919920ee87d:"Dag",se211e3d21bbf3bff:"Meting",se2b7530e30fa607d:"Periodevergelijking",se415bbea6c976fb1:"Groeperen op",se5316cbaa025f028:"volgende",se715be190539325a:"geleden",se8e9d799a9e267ce:"Uniek aantal",se9e535bb9591039e:"Selecteer een expressie",se9ff6e9a514d8cf9:"Maandag",seb4eae68d45315b7:"Minimum",seb9c440de1ce6044:"begint met",sec2f608650e36ac5:"laatste voltooide periode",secf42ec1c7c47be2:"ontbreekt niet",see0ec27fb03d880e:"Minuten",sef49aec68fd1dc66:"Naam",sf518b78d9734f57b:"begint niet met",sf6cda8263b3170af:"Gebruik periode-tot-nu-toe voor onvolledige periodes",sf70eaf9ab4c93082:"bevat niet",sf9c10516a62a23db:"Weergeven als",sfa2d0aa30ee5aa58:"laatste (x) periodes",sfad9ed343e97551c:"Vorige waarde",sfbac36245480ddbc:"Scheidingsteken",sfda1c9d0be35cec8:"kwartaal tot nu"};exports.templates=e;
|
@@ -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";const e=require("./set-locale-
|
20
|
+
"use strict";const e=require("./set-locale-CSL8WaxL.cjs"),t=[{level:1,key:"year",i18n:()=>e.msg("Year",{desc:"Date format option"})},{level:2,key:"quarter",i18n:()=>e.msg("Quarter",{desc:"Date format option"})},{level:3,key:"month",i18n:()=>e.msg("Month",{desc:"Month format setting"})},{level:4,key:"week",i18n:()=>e.msg("Week",{desc:"Date format option"})},{level:5,key:"day",i18n:()=>e.msg("Day",{desc:"Date format option"})},{level:6,key:"hour",i18n:()=>e.msg("Hour",{desc:"Date format option"})},{level:7,key:"minute",i18n:()=>e.msg("Minute",{desc:"Date format option"})},{level:8,key:"second",i18n:()=>e.msg("Second",{desc:"Date format option"})},{level:9,key:"millisecond",i18n:()=>e.msg("Millisecond",{desc:"Date format option"})}],o={level2:[{key:"default",label:"Default",i18n:()=>e.msg("Default",{desc:"Date format option"})},{key:"quarter_number",label:"Quarter numbers",i18n:()=>e.msg("Quarter numbers",{desc:"Date format option"})}],level3:[{key:"default",label:"Default",i18n:()=>e.msg("Default",{desc:"Date format option"})},{key:"month_in_year",label:"Month number",i18n:()=>e.msg("Month number",{desc:"Date format option"})}],level4:[{key:"default",label:"Default",i18n:()=>e.msg("Default",{desc:"Date format option"})},{key:"week_number",label:"Week number",i18n:()=>e.msg("Week number",{desc:"Date format option"})}],level5:[{key:"default",label:"Default",i18n:()=>e.msg("Default",{desc:"Date format option"})},{key:"day_in_week",label:"Day in week",i18n:()=>e.msg("Day in week",{desc:"Date format option"})},{key:"day_in_month",label:"Day in month",i18n:()=>e.msg("Day in month",{desc:"Date format option"})},{key:"day_in_year",label:"Day in year",i18n:()=>e.msg("Day in year",{desc:"Date format option"})}],level6:[{key:"default",label:"Default",i18n:()=>e.msg("Default",{desc:"Date format option"})},{key:"hour_in_day",label:"Hour in day",i18n:()=>e.msg("Hour in day",{desc:"Date format option"})}],level7:[{key:"default",label:"Default",i18n:()=>e.msg("Default",{desc:"Date format option"})},{key:"minute_in_hour",label:"Minute in hour",i18n:()=>e.msg("Minute in hour",{desc:"Date format option"})}],level8:[{key:"default",label:"Default",i18n:()=>e.msg("Default",{desc:"Date format option"})},{key:"second_in_minute",label:"Second in minute",i18n:()=>e.msg("Second in minute",{desc:"Date format option"})}]},a={number:()=>e.msg("Number",{desc:"Number format option"}),letter:()=>e.msg("Letter",{desc:"Letter format option. Letter of the alphabeth."}),short:()=>e.msg("Short",{desc:"Short format option"}),long:()=>e.msg("Long",{desc:"Long format option"})},n={sunday:()=>e.msg("Sunday",{desc:"Date format option"}),monday:()=>e.msg("Monday",{desc:"Date format option"})};exports.DATETIME_AS_STRING_FORMATS_PER_LEVEL=o;exports.DATETIME_LEVELS=t;exports.DATETIME_WEEKDAY_AND_MONTH_STRING_FORMATS=a;exports.WEEK_STARTS_ON=n;
|
@@ -49,4 +49,4 @@
|
|
49
49
|
* @license
|
50
50
|
* Copyright 2021 Google LLC
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
52
|
-
*/function h(e){window.dispatchEvent(new CustomEvent(y,{detail:e}))}let d="",L,M,f,m,w,i=new P;i.resolve();let u=0;const H=e=>(b((t,r)=>k(w,t,r)),d=M=e.sourceLocale,f=new Set(e.targetLocales),f.add(e.sourceLocale),m=e.loadLocale,{getLocale:N,setLocale:$}),N=()=>d,$=e=>{if(e===(L??d))return i.promise;if(!f||!m)throw new Error("Internal error");if(!f.has(e))throw new Error("Invalid locale code");u++;const t=u;return L=e,i.settled&&(i=new P),h({status:"loading",loadingLocale:e}),(e===M?Promise.resolve({templates:void 0}):m(e)).then(o=>{u===t&&(d=e,L=void 0,w=o.templates,h({status:"ready",readyLocale:e}),i.resolve())},o=>{u===t&&(h({status:"error",errorLocale:e,errorMessage:o.toString()}),i.reject(o))}),i.promise},D=(e,t,r)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((s,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})},O="en",p=["de","es","fr","nl"],{getLocale:U,setLocale:V}=H({sourceLocale:O,targetLocales:p,loadLocale:e=>D(Object.assign({"../../generated/locales/de.ts":()=>Promise.resolve().then(()=>require("./de-
|
52
|
+
*/function h(e){window.dispatchEvent(new CustomEvent(y,{detail:e}))}let d="",L,M,f,m,w,i=new P;i.resolve();let u=0;const H=e=>(b((t,r)=>k(w,t,r)),d=M=e.sourceLocale,f=new Set(e.targetLocales),f.add(e.sourceLocale),m=e.loadLocale,{getLocale:N,setLocale:$}),N=()=>d,$=e=>{if(e===(L??d))return i.promise;if(!f||!m)throw new Error("Internal error");if(!f.has(e))throw new Error("Invalid locale code");u++;const t=u;return L=e,i.settled&&(i=new P),h({status:"loading",loadingLocale:e}),(e===M?Promise.resolve({templates:void 0}):m(e)).then(o=>{u===t&&(d=e,L=void 0,w=o.templates,h({status:"ready",readyLocale:e}),i.resolve())},o=>{u===t&&(h({status:"error",errorLocale:e,errorMessage:o.toString()}),i.reject(o))}),i.promise},D=(e,t,r)=>{const o=e[t];return o?typeof o=="function"?o():Promise.resolve(o):new Promise((s,n)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(n.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==r?". Note that variables only represent file names one level deep.":""))))})},O="en",p=["de","es","fr","nl"],{getLocale:U,setLocale:V}=H({sourceLocale:O,targetLocales:p,loadLocale:e=>D(Object.assign({"../../generated/locales/de.ts":()=>Promise.resolve().then(()=>require("./de-BimXztr7.cjs")),"../../generated/locales/es.ts":()=>Promise.resolve().then(()=>require("./es-CDzU1gsd.cjs")),"../../generated/locales/fr.ts":()=>Promise.resolve().then(()=>require("./fr-s3wNsLiB.cjs")),"../../generated/locales/nl.ts":()=>Promise.resolve().then(()=>require("./nl-DHgf0PUG.cjs"))}),`../../generated/locales/${e}.ts`,5)});exports.LOCALE_STATUS_EVENT=y;exports.getLocale=U;exports.setLocale=V;exports.targetLocales=p;
|
@@ -177,7 +177,7 @@ const H = (e) => (j((t, s) => z(T, t, s)), d = S = e.sourceLocale, f = new Set(e
|
|
177
177
|
], { getLocale: U, setLocale: V } = H({
|
178
178
|
sourceLocale: F,
|
179
179
|
targetLocales: O,
|
180
|
-
loadLocale: (e) => N(/* @__PURE__ */ Object.assign({ "../../generated/locales/de.ts": () => import("./de-
|
180
|
+
loadLocale: (e) => N(/* @__PURE__ */ Object.assign({ "../../generated/locales/de.ts": () => import("./de-Ca_gJecj.js"), "../../generated/locales/es.ts": () => import("./es-BHAnPxmj.js"), "../../generated/locales/fr.ts": () => import("./fr-CKHxPDre.js"), "../../generated/locales/nl.ts": () => import("./nl-CMVty5rf.js") }), `../../generated/locales/${e}.ts`, 5)
|
181
181
|
});
|
182
182
|
export {
|
183
183
|
w as L,
|
@@ -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 h=require("../set-locale-DCPlazsZ.cjs"),v=require("../localized-decorator-DIXYZ3RL.cjs"),C=require("../task-CwmAXlv0.cjs"),u=require("../luzmo-icons-DonyjSXg.cjs");require("../index-Dy_5M3M5.cjs");require("../index-j8UKjHqY.cjs");require("../index-CUvucmA0.cjs");require("../index-1oIrlkAr.cjs");require("../index-CYeQkVeJ.cjs");const f=require("../calculate-data-item-icon-Dn-9Kd0U.cjs"),z=require("../localize-r7ALOUy_.cjs"),n=require("../property-Cu4Q1hS4.cjs"),y=require("../state-fyl3IYMu.cjs"),S=require("../focusable-DAGGGYyz.cjs"),b=require("../sized-mixin-j_7aJM4b.cjs");require("../index-3X8Iuo7y.cjs");require("../slot-menu/index.cjs");const _=":host{font-family:var(--luzmo-slot-contents-picker-font-family, var(--luzmo-font-family))}.container{width:fit-content;display:flex;flex-direction:column;gap:var(--luzmo-slot-contents-picker-gap, var(--slot-contents-picker-gap, var(--luzmo-spacing-5)))}.select-container{display:flex;align-items:center}:host([stretch]) .container{width:100%}:host([stretch]) .select-container{width:100%}:host([stretch]) luzmo-select{flex-grow:1}.extra-data-item-button-container{display:flex;align-items:center;justify-content:center}.slot-contents-picker-label{font-size:var(--luzmo-slot-contents-picker-label-font-size, var(--slot-contents-picker-label-font-size));flex-grow:1;margin-right:var(--luzmo-slot-contents-picker-text-to-controls, var(--slot-contents-picker-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-slot-contents-picker-controls-gap, var(--slot-contents-picker-controls-gap));background-color:var(--luzmo-slot-contents-picker-controls-background-color, var(--slot-contents-picker-controls-background-color));color:var(--luzmo-slot-contents-picker-controls-color, var(--slot-contents-picker-controls-color));margin-right:var(--luzmo-slot-contents-picker-controls-to-edge, var(--slot-contents-picker-controls-to-edge));padding:0 var(--luzmo-slot-contents-picker-controls-horizontal-padding, var(--slot-contents-picker-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-slot-contents-picker-controls-control-horizontal-padding, var(--slot-contents-picker-controls-control-horizontal-padding))}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-slot-contents-picker-overlay-vertical-gap, var(--slot-contents-picker-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-slot-contents-picker-overlay-horizontal-gap, var(--slot-contents-picker-overlay-horizontal-gap))}:host{--slot-contents-picker-border-width: var(--luzmo-border-width);--slot-contents-picker-border-style: dashed;--slot-contents-picker-border-color: var(--luzmo-border-color);--slot-contents-picker-accept-drag-controls-background-color: transparent;--slot-contents-picker-font-color: var(--luzmo-font-color);--slot-contents-picker-controls-background-color: transparent;--slot-contents-picker-text-to-controls: var(--luzmo-spacing-3);--slot-contents-picker-controls-to-edge: 0;--slot-contents-picker-controls-gap: var(--luzmo-spacing-2);--slot-contents-picker-controls-horizontal-padding: var(--luzmo-spacing-2);--slot-contents-picker-controls-control-horizontal-padding: var( --luzmo-spacing-3 );--slot-contents-picker-label-font-size: var(--luzmo-font-size)}:host{--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}";var k=Object.defineProperty,P=Object.getOwnPropertyDescriptor,a=(p,t,e,s)=>{for(var o=s>1?void 0:s?P(t,e):t,r=p.length-1,c;r>=0;r--)(c=p[r])&&(o=(s?c(t,e,o):c(o))||o);return s&&o&&k(t,e,o),o};exports.LuzmoSlotContentsPicker=class extends b.SizedMixin(S.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this._loadSlotsConfig=new C.h(this,{task:async([t])=>{if(t&&t!==this._itemTypeLoaded){const e=Object.assign({"../../item-definitions/area-chart/area-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../area-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/bar-chart/bar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bar-chart-slots.config-c_9ABPOI.cjs")),"../../item-definitions/box-plot/box-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../box-plot-slots.config-K-1CiWO-.cjs")),"../../item-definitions/bubble-chart/bubble-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bubble-chart-slots.config-BwSwgleO.cjs")),"../../item-definitions/bullet-chart/bullet-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bullet-chart-slots.config-DQarxMR7.cjs")),"../../item-definitions/choropleth-map/choropleth-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../choropleth-map-slots.config-CFERs0ca.cjs")),"../../item-definitions/circle-pack-chart/circle-pack-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../circle-pack-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/circular-gauge/circular-gauge-slots.config.ts":()=>Promise.resolve().then(()=>require("../circular-gauge-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/column-chart/column-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../column-chart-slots.config-C0nGjkmv.cjs")),"../../item-definitions/combination-chart/combination-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../combination-chart-slots.config-CY07Q5Hw.cjs")),"../../item-definitions/conditional-number/conditional-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../conditional-number-slots.config-CD5ZwXuY.cjs")),"../../item-definitions/date-filter/date-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../date-filter-slots.config-CrA5ijD3.cjs")),"../../item-definitions/donut-chart/donut-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../donut-chart-slots.config-DBowIZNO.cjs")),"../../item-definitions/dropdown-filter/dropdown-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../dropdown-filter-slots.config-0wn6pMvi.cjs")),"../../item-definitions/evolution-number/evolution-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../evolution-number-slots.config-CNNVp6vR.cjs")),"../../item-definitions/funnel-chart/funnel-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../funnel-chart-slots.config-GKBCY9xN.cjs")),"../../item-definitions/heat-map/heat-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/heat-table/heat-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-table-slots.config-GGX3BCh1.cjs")),"../../item-definitions/hexbin-map/hexbin-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../hexbin-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/image/image-slots.config.ts":()=>Promise.resolve().then(()=>require("../image-slots.config-mPXMR1CE.cjs")),"../../item-definitions/line-chart/line-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../line-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/marker-map/marker-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../marker-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/ohlc-chart/ohlc-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../ohlc-chart-slots.config-DMomcHMV.cjs")),"../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../parallel-coordinates-plot-slots.config--fk40ZDu.cjs")),"../../item-definitions/pivot-table/pivot-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../pivot-table-slots.config-45V_Gdm7.cjs")),"../../item-definitions/pyramid-chart/pyramid-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../pyramid-chart-slots.config-D5F0WX2d.cjs")),"../../item-definitions/radar-chart/radar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../radar-chart-slots.config-BEigR_Ml.cjs")),"../../item-definitions/regular-table/regular-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../regular-table-slots.config-RLnMgOXn.cjs")),"../../item-definitions/route-map/route-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../route-map-slots.config-DsVJBR3D.cjs")),"../../item-definitions/sankey-diagram/sankey-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../sankey-diagram-slots.config-CiyYElLX.cjs")),"../../item-definitions/scatter-plot/scatter-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../scatter-plot-slots.config-47cB5_RC.cjs")),"../../item-definitions/search-filter/search-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../search-filter-slots.config-DeHkvc2Q.cjs")),"../../item-definitions/slicer-filter/slicer-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slicer-filter-slots.config-V7hURjKI.cjs")),"../../item-definitions/slider-filter/slider-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slider-filter-slots.config-B--K9cpP.cjs")),"../../item-definitions/speedometer-chart/speedometer-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../speedometer-chart-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/spike-map/spike-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../spike-map-slots.config-BM5-Dlub.cjs")),"../../item-definitions/strip-plot/strip-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../strip-plot-slots.config-DDUlLO8K.cjs")),"../../item-definitions/sunburst-chart/sunburst-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../sunburst-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/symbol-map/symbol-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../symbol-map-slots.config-Dm_FRGHA.cjs")),"../../item-definitions/text/text-slots.config.ts":()=>Promise.resolve().then(()=>require("../text-slots.config-BMBEkf0O.cjs")),"../../item-definitions/treemap-chart/treemap-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../treemap-chart-slots.config-C3bnHCyy.cjs")),"../../item-definitions/venn-diagram/venn-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../venn-diagram-slots.config-GytlZGbF.cjs")),"../../item-definitions/video/video-slots.config.ts":()=>Promise.resolve().then(()=>require("../video-slots.config-mPXMR1CE.cjs")),"../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../wordcloud-chart-slots.config-D7CiYopX.cjs"))});if(e[`../../item-definitions/${t}/${t}-slots.config.ts`]){const s=await e[`../../item-definitions/${t}/${t}-slots.config.ts`]();this._slotsConfig=(s==null?void 0:s.default)??{}}return this._slotsConfig}},args:()=>[this.itemType,this.language]}),this.slotConfiguration={},this.slotContents=[],this.language="en",this.disabled=!1,this.menu="default",this.hasLabel=!1,this.selects="multiple",this.icons="only-menu",this.datasetsDataItems=[],this.placement="bottom-end",this.hideDelete=!0,this._hasExtraEmptySelects=!1,this._currentSlotContents=[],this._selectOptions=[],this._slotContentOptions=[],this.stretch=!1,this._changedSlotContents=t=>{this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:t}}))}}_emptySlotContents(t){typeof t!="number"?(this.slotContents=[],this._currentSlotContents=[],this._changedSlotContents([])):(this._currentSlotContents=this._currentSlotContents.filter((s,o)=>o!==t),this._changedSlotContents(this._currentSlotContents))}willUpdate(t){const e=t.has("slotContents"),s=t.has("datasetsDataItems"),o=t.has("language");e&&(this._currentSlotContents=structuredClone(this.slotContents)),s&&(this._selectOptions=this._createSelectOptions(),this._slotContentOptions=this._createSlotContentOptions()),o&&this.language!==h.getLocale()&&([...h.targetLocales].includes(this.language??"en")||this.language==="en")&&h.setLocale(this.language)}_onSlotMenuChanges(t){var e;t.preventDefault(),t.stopPropagation(),this.slotContents.length===((e=t.detail.slotContents)==null?void 0:e.length)?(this._currentSlotContents=t.detail.slotContents,this._changedSlotContents(this._currentSlotContents)):(this.slotContents=t.detail.slotContents,this._changedSlotContents(this.slotContents))}_setSlotContentAtIndex(t,e){var o,r,c,i,l,d;const s=(r=(o=t==null?void 0:t.detail)==null?void 0:o.value)==null?void 0:r[0];e>=this._currentSlotContents.length&&this._removeEmptySelect();for(let m=this._currentSlotContents.length;m<=e;m++)this._currentSlotContents[m]||this._currentSlotContents.push({});if(s&&!(s===((c=this._currentSlotContents[e])==null?void 0:c.columnId)||s===((i=this._currentSlotContents[e])==null?void 0:i.column)||s===((l=this._currentSlotContents[e])==null?void 0:l.formulaId)||s===((d=this._currentSlotContents[e])==null?void 0:d.formula))){const m=this._slotContentOptions.find(g=>g.columnId===s||g.formulaId===s);m&&(this._currentSlotContents[e]=structuredClone(m))}this.slotContents=structuredClone(this._currentSlotContents.filter(m=>m.columnId||m.formulaId||m.column||m.formula)),this._changedSlotContents(this.slotContents)}_setSlotContents(t){var s,o;let e=t.detail.value;(s=this.slotConfiguration)!=null&&s.canAcceptMultipleDataItems&&e.length>1||(e=e.slice(0,1)),this._currentSlotContents=((o=this._currentSlotContents)==null?void 0:o.filter(r=>e.includes(r.columnId??r.formulaId)))??[],e.forEach(r=>{if(this._currentSlotContents.some(i=>i.columnId===r||i.formulaId===r))return;const c=this._slotContentOptions.find(i=>i.columnId===r||i.formulaId===r);c&&this._currentSlotContents.push(structuredClone(c))}),this.slotContents=structuredClone(this._currentSlotContents),this._changedSlotContents(this._currentSlotContents)}_createSlotContentOptions(){var e,s;const t=[];for(const o of this.datasetsDataItems??[]){const r=(o==null?void 0:o.columns)??[],c=(o==null?void 0:o.formulas)??[];for(const i of r)if((((e=this.slotConfiguration)==null?void 0:e.acceptableDataItemTypes)??["hierarchy","numeric","datetime","array[hierarchy]","array[numeric]","array[datetime]"]).includes(i.type)){const l=structuredClone(i);l.columnId=i.id,l.datasetId=o.id,l.label=i.name,delete l.name,delete l.id,t.push(l)}if((s=this.slotConfiguration)!=null&&s.canAcceptFormula)for(const i of c){const l=structuredClone(i);l.formulaId=i.id,l.datasetId=o.id,l.label=i.name,delete l.name,delete l.id,t.push(l)}}return t}_createSelectOptions(){var e,s;const t=[];for(const o of this.datasetsDataItems??[]){const r=(o==null?void 0:o.columns)??[],c=(o==null?void 0:o.formulas)??[];for(const i of r)(((e=this.slotConfiguration)==null?void 0:e.acceptableDataItemTypes)??["hierarchy","numeric","datetime","array[hierarchy]","array[numeric]","array[datetime]"]).includes(i.type)&&t.push({value:i.id,label:z.localize((i==null?void 0:i.name)??{},this.language),icon:f.calculateDataItemIcon(i,this.size)});if((s=this.slotConfiguration)!=null&&s.canAcceptFormula)for(const i of c)t.push({value:i.id,label:z.localize((i==null?void 0:i.name)??{},this.language),icon:f.calculateDataItemIcon(i,this.size)})}return t}_renderFieldLabel(){return n.x`<luzmo-field-label for="data-item" size=${this.size}
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../set-locale-CSL8WaxL.cjs"),v=require("../localized-decorator-CIHsaT2_.cjs"),C=require("../task-CwmAXlv0.cjs"),u=require("../luzmo-icons-DonyjSXg.cjs");require("../index-Dy_5M3M5.cjs");require("../index-j8UKjHqY.cjs");require("../index-CUvucmA0.cjs");require("../index-1oIrlkAr.cjs");require("../index-CYeQkVeJ.cjs");const f=require("../calculate-data-item-icon-Dn-9Kd0U.cjs"),z=require("../localize-r7ALOUy_.cjs"),n=require("../property-Cu4Q1hS4.cjs"),y=require("../state-fyl3IYMu.cjs"),S=require("../focusable-DAGGGYyz.cjs"),b=require("../sized-mixin-j_7aJM4b.cjs");require("../index-D05oY5ND.cjs");require("../slot-menu/index.cjs");const _=":host{font-family:var(--luzmo-slot-contents-picker-font-family, var(--luzmo-font-family))}.container{width:fit-content;display:flex;flex-direction:column;gap:var(--luzmo-slot-contents-picker-gap, var(--slot-contents-picker-gap, var(--luzmo-spacing-5)))}.select-container{display:flex;align-items:center}:host([stretch]) .container{width:100%}:host([stretch]) .select-container{width:100%}:host([stretch]) luzmo-select{flex-grow:1}.extra-data-item-button-container{display:flex;align-items:center;justify-content:center}.slot-contents-picker-label{font-size:var(--luzmo-slot-contents-picker-label-font-size, var(--slot-contents-picker-label-font-size));flex-grow:1;margin-right:var(--luzmo-slot-contents-picker-text-to-controls, var(--slot-contents-picker-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-slot-contents-picker-controls-gap, var(--slot-contents-picker-controls-gap));background-color:var(--luzmo-slot-contents-picker-controls-background-color, var(--slot-contents-picker-controls-background-color));color:var(--luzmo-slot-contents-picker-controls-color, var(--slot-contents-picker-controls-color));margin-right:var(--luzmo-slot-contents-picker-controls-to-edge, var(--slot-contents-picker-controls-to-edge));padding:0 var(--luzmo-slot-contents-picker-controls-horizontal-padding, var(--slot-contents-picker-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-slot-contents-picker-controls-control-horizontal-padding, var(--slot-contents-picker-controls-control-horizontal-padding))}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-slot-contents-picker-overlay-vertical-gap, var(--slot-contents-picker-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-slot-contents-picker-overlay-horizontal-gap, var(--slot-contents-picker-overlay-horizontal-gap))}:host{--slot-contents-picker-border-width: var(--luzmo-border-width);--slot-contents-picker-border-style: dashed;--slot-contents-picker-border-color: var(--luzmo-border-color);--slot-contents-picker-accept-drag-controls-background-color: transparent;--slot-contents-picker-font-color: var(--luzmo-font-color);--slot-contents-picker-controls-background-color: transparent;--slot-contents-picker-text-to-controls: var(--luzmo-spacing-3);--slot-contents-picker-controls-to-edge: 0;--slot-contents-picker-controls-gap: var(--luzmo-spacing-2);--slot-contents-picker-controls-horizontal-padding: var(--luzmo-spacing-2);--slot-contents-picker-controls-control-horizontal-padding: var( --luzmo-spacing-3 );--slot-contents-picker-label-font-size: var(--luzmo-font-size)}:host{--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-4);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-4);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--slot-contents-picker-horizontal-padding: var(--luzmo-spacing-5);--slot-contents-picker-overlay-horizontal-gap: var(--luzmo-spacing-5);--slot-contents-picker-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}";var k=Object.defineProperty,P=Object.getOwnPropertyDescriptor,a=(p,t,e,s)=>{for(var o=s>1?void 0:s?P(t,e):t,r=p.length-1,c;r>=0;r--)(c=p[r])&&(o=(s?c(t,e,o):c(o))||o);return s&&o&&k(t,e,o),o};exports.LuzmoSlotContentsPicker=class extends b.SizedMixin(S.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this._loadSlotsConfig=new C.h(this,{task:async([t])=>{if(t&&t!==this._itemTypeLoaded){const e=Object.assign({"../../item-definitions/area-chart/area-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../area-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/bar-chart/bar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bar-chart-slots.config-c_9ABPOI.cjs")),"../../item-definitions/box-plot/box-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../box-plot-slots.config-K-1CiWO-.cjs")),"../../item-definitions/bubble-chart/bubble-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bubble-chart-slots.config-BwSwgleO.cjs")),"../../item-definitions/bullet-chart/bullet-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bullet-chart-slots.config-DQarxMR7.cjs")),"../../item-definitions/choropleth-map/choropleth-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../choropleth-map-slots.config-CFERs0ca.cjs")),"../../item-definitions/circle-pack-chart/circle-pack-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../circle-pack-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/circular-gauge/circular-gauge-slots.config.ts":()=>Promise.resolve().then(()=>require("../circular-gauge-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/column-chart/column-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../column-chart-slots.config-C0nGjkmv.cjs")),"../../item-definitions/combination-chart/combination-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../combination-chart-slots.config-CY07Q5Hw.cjs")),"../../item-definitions/conditional-number/conditional-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../conditional-number-slots.config-CD5ZwXuY.cjs")),"../../item-definitions/date-filter/date-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../date-filter-slots.config-CrA5ijD3.cjs")),"../../item-definitions/donut-chart/donut-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../donut-chart-slots.config-DBowIZNO.cjs")),"../../item-definitions/dropdown-filter/dropdown-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../dropdown-filter-slots.config-0wn6pMvi.cjs")),"../../item-definitions/evolution-number/evolution-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../evolution-number-slots.config-CNNVp6vR.cjs")),"../../item-definitions/funnel-chart/funnel-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../funnel-chart-slots.config-GKBCY9xN.cjs")),"../../item-definitions/heat-map/heat-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/heat-table/heat-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-table-slots.config-GGX3BCh1.cjs")),"../../item-definitions/hexbin-map/hexbin-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../hexbin-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/image/image-slots.config.ts":()=>Promise.resolve().then(()=>require("../image-slots.config-mPXMR1CE.cjs")),"../../item-definitions/line-chart/line-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../line-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/marker-map/marker-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../marker-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/ohlc-chart/ohlc-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../ohlc-chart-slots.config-DMomcHMV.cjs")),"../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../parallel-coordinates-plot-slots.config--fk40ZDu.cjs")),"../../item-definitions/pivot-table/pivot-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../pivot-table-slots.config-45V_Gdm7.cjs")),"../../item-definitions/pyramid-chart/pyramid-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../pyramid-chart-slots.config-D5F0WX2d.cjs")),"../../item-definitions/radar-chart/radar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../radar-chart-slots.config-BEigR_Ml.cjs")),"../../item-definitions/regular-table/regular-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../regular-table-slots.config-RLnMgOXn.cjs")),"../../item-definitions/route-map/route-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../route-map-slots.config-DsVJBR3D.cjs")),"../../item-definitions/sankey-diagram/sankey-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../sankey-diagram-slots.config-CiyYElLX.cjs")),"../../item-definitions/scatter-plot/scatter-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../scatter-plot-slots.config-47cB5_RC.cjs")),"../../item-definitions/search-filter/search-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../search-filter-slots.config-DeHkvc2Q.cjs")),"../../item-definitions/slicer-filter/slicer-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slicer-filter-slots.config-V7hURjKI.cjs")),"../../item-definitions/slider-filter/slider-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slider-filter-slots.config-B--K9cpP.cjs")),"../../item-definitions/speedometer-chart/speedometer-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../speedometer-chart-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/spike-map/spike-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../spike-map-slots.config-BM5-Dlub.cjs")),"../../item-definitions/strip-plot/strip-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../strip-plot-slots.config-DDUlLO8K.cjs")),"../../item-definitions/sunburst-chart/sunburst-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../sunburst-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/symbol-map/symbol-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../symbol-map-slots.config-Dm_FRGHA.cjs")),"../../item-definitions/text/text-slots.config.ts":()=>Promise.resolve().then(()=>require("../text-slots.config-BMBEkf0O.cjs")),"../../item-definitions/treemap-chart/treemap-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../treemap-chart-slots.config-C3bnHCyy.cjs")),"../../item-definitions/venn-diagram/venn-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../venn-diagram-slots.config-GytlZGbF.cjs")),"../../item-definitions/video/video-slots.config.ts":()=>Promise.resolve().then(()=>require("../video-slots.config-mPXMR1CE.cjs")),"../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../wordcloud-chart-slots.config-D7CiYopX.cjs"))});if(e[`../../item-definitions/${t}/${t}-slots.config.ts`]){const s=await e[`../../item-definitions/${t}/${t}-slots.config.ts`]();this._slotsConfig=(s==null?void 0:s.default)??{}}return this._slotsConfig}},args:()=>[this.itemType,this.language]}),this.slotConfiguration={},this.slotContents=[],this.language="en",this.disabled=!1,this.menu="default",this.hasLabel=!1,this.selects="multiple",this.icons="only-menu",this.datasetsDataItems=[],this.placement="bottom-end",this.hideDelete=!0,this._hasExtraEmptySelects=!1,this._currentSlotContents=[],this._selectOptions=[],this._slotContentOptions=[],this.stretch=!1,this._changedSlotContents=t=>{this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:t}}))}}_emptySlotContents(t){typeof t!="number"?(this.slotContents=[],this._currentSlotContents=[],this._changedSlotContents([])):(this._currentSlotContents=this._currentSlotContents.filter((s,o)=>o!==t),this._changedSlotContents(this._currentSlotContents))}willUpdate(t){const e=t.has("slotContents"),s=t.has("datasetsDataItems"),o=t.has("language");e&&(this._currentSlotContents=structuredClone(this.slotContents)),s&&(this._selectOptions=this._createSelectOptions(),this._slotContentOptions=this._createSlotContentOptions()),o&&this.language!==h.getLocale()&&([...h.targetLocales].includes(this.language??"en")||this.language==="en")&&h.setLocale(this.language)}_onSlotMenuChanges(t){var e;t.preventDefault(),t.stopPropagation(),this.slotContents.length===((e=t.detail.slotContents)==null?void 0:e.length)?(this._currentSlotContents=t.detail.slotContents,this._changedSlotContents(this._currentSlotContents)):(this.slotContents=t.detail.slotContents,this._changedSlotContents(this.slotContents))}_setSlotContentAtIndex(t,e){var o,r,c,i,l,d;const s=(r=(o=t==null?void 0:t.detail)==null?void 0:o.value)==null?void 0:r[0];e>=this._currentSlotContents.length&&this._removeEmptySelect();for(let m=this._currentSlotContents.length;m<=e;m++)this._currentSlotContents[m]||this._currentSlotContents.push({});if(s&&!(s===((c=this._currentSlotContents[e])==null?void 0:c.columnId)||s===((i=this._currentSlotContents[e])==null?void 0:i.column)||s===((l=this._currentSlotContents[e])==null?void 0:l.formulaId)||s===((d=this._currentSlotContents[e])==null?void 0:d.formula))){const m=this._slotContentOptions.find(g=>g.columnId===s||g.formulaId===s);m&&(this._currentSlotContents[e]=structuredClone(m))}this.slotContents=structuredClone(this._currentSlotContents.filter(m=>m.columnId||m.formulaId||m.column||m.formula)),this._changedSlotContents(this.slotContents)}_setSlotContents(t){var s,o;let e=t.detail.value;(s=this.slotConfiguration)!=null&&s.canAcceptMultipleDataItems&&e.length>1||(e=e.slice(0,1)),this._currentSlotContents=((o=this._currentSlotContents)==null?void 0:o.filter(r=>e.includes(r.columnId??r.formulaId)))??[],e.forEach(r=>{if(this._currentSlotContents.some(i=>i.columnId===r||i.formulaId===r))return;const c=this._slotContentOptions.find(i=>i.columnId===r||i.formulaId===r);c&&this._currentSlotContents.push(structuredClone(c))}),this.slotContents=structuredClone(this._currentSlotContents),this._changedSlotContents(this._currentSlotContents)}_createSlotContentOptions(){var e,s;const t=[];for(const o of this.datasetsDataItems??[]){const r=(o==null?void 0:o.columns)??[],c=(o==null?void 0:o.formulas)??[];for(const i of r)if((((e=this.slotConfiguration)==null?void 0:e.acceptableDataItemTypes)??["hierarchy","numeric","datetime","array[hierarchy]","array[numeric]","array[datetime]"]).includes(i.type)){const l=structuredClone(i);l.columnId=i.id,l.datasetId=o.id,l.label=i.name,delete l.name,delete l.id,t.push(l)}if((s=this.slotConfiguration)!=null&&s.canAcceptFormula)for(const i of c){const l=structuredClone(i);l.formulaId=i.id,l.datasetId=o.id,l.label=i.name,delete l.name,delete l.id,t.push(l)}}return t}_createSelectOptions(){var e,s;const t=[];for(const o of this.datasetsDataItems??[]){const r=(o==null?void 0:o.columns)??[],c=(o==null?void 0:o.formulas)??[];for(const i of r)(((e=this.slotConfiguration)==null?void 0:e.acceptableDataItemTypes)??["hierarchy","numeric","datetime","array[hierarchy]","array[numeric]","array[datetime]"]).includes(i.type)&&t.push({value:i.id,label:z.localize((i==null?void 0:i.name)??{},this.language),icon:f.calculateDataItemIcon(i,this.size)});if((s=this.slotConfiguration)!=null&&s.canAcceptFormula)for(const i of c)t.push({value:i.id,label:z.localize((i==null?void 0:i.name)??{},this.language),icon:f.calculateDataItemIcon(i,this.size)})}return t}_renderFieldLabel(){return n.x`<luzmo-field-label for="data-item" size=${this.size}
|
21
21
|
>${this.label??h.msg("Select...")}
|
22
22
|
</luzmo-field-label>`}_removeEmptySelect(){this._hasExtraEmptySelects=!1}_addDataItem(){this._hasExtraEmptySelects=!0}_renderExtraDataItemButton(){return n.x`<div class="extra-data-item-button-container">
|
23
23
|
<luzmo-action-button
|
@@ -17,8 +17,8 @@
|
|
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 C, t as _, s as S, m as k } from "../set-locale-
|
21
|
-
import { l as x } from "../localized-decorator-
|
20
|
+
import { g as C, t as _, s as S, m as k } from "../set-locale-CW9yA503.js";
|
21
|
+
import { l as x } from "../localized-decorator-Di4TdvRQ.js";
|
22
22
|
import { h as $ } from "../task-Bh_X-xIU.js";
|
23
23
|
import { a8 as d, aa as I, ab as z, a7 as h } from "../luzmo-icons-CVeTZ59u.js";
|
24
24
|
import "../index-D_jFGBMs.js";
|
@@ -32,7 +32,7 @@ import { x as c, r as w, n as m } from "../property-DCzt3DR1.js";
|
|
32
32
|
import { r as D } from "../state-nDsQPund.js";
|
33
33
|
import { L as E } from "../focusable-BbymtxWI.js";
|
34
34
|
import { S as O } from "../sized-mixin-BGzkX2g1.js";
|
35
|
-
import "../index-
|
35
|
+
import "../index-DV63kOPg.js";
|
36
36
|
import "../slot-menu/index.js";
|
37
37
|
const y = () => {
|
38
38
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
@@ -17,11 +17,11 @@
|
|
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("../index-DtohCwyO.cjs");const n=require("../property-Cu4Q1hS4.cjs"),
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-DtohCwyO.cjs");const n=require("../property-Cu4Q1hS4.cjs"),I=require("../index-D05oY5ND.cjs"),z=require("../luzmo-icons-DonyjSXg.cjs"),w=require("../index-DpHum3lw.cjs"),O=require("../localize-r7ALOUy_.cjs"),S=require("../state-fyl3IYMu.cjs"),D=require("../query-D5qWDopr.cjs"),T=require("../directive-BOOaQO_r.cjs"),U=require("../focusable-DAGGGYyz.cjs"),q=require("../sized-mixin-j_7aJM4b.cjs");require("../slot-menu-list/index.cjs");/**
|
21
21
|
* @license
|
22
22
|
* Copyright 2018 Google LLC
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
24
|
-
*/const R={},X=T.e(class extends T.i{constructor(){super(...arguments),this.ot=R}render(u,t){return t()}update(u,[t,o]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((e,r)=>e===this.ot[r]))return n.T}else if(this.ot===t)return n.T;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,o)}});function Y({element:u,handle:t,boundary:o=document.documentElement,onDragStart:e,onDragEnd:r}){if(!u||!t)throw new Error("makeDraggable: element and handle are required");const a=u.ownerDocument??document;let i=-1,m=0,y=0,c=0,h=0,b=0,L=0,_=0,C=0;const x=d=>{if(d.pointerId!==i)return;const g=d.clientX-m,f=d.clientY-y,p=(o??document.documentElement).getBoundingClientRect();let v=c+g,I=h+f;v=Math.min(Math.max(v,p.left),p.right-b),I=Math.min(Math.max(I,p.top),p.bottom-L);const M=v-c,A=I-h,B=_+M,P=C+A;u.style.transform=`translate3d(${B}px, ${P}px, 0)`},k=d=>{d.pointerId===i&&(a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",k),i=-1,r==null||r())},$=d=>{var f;if(d.button!==0)return;i=d.pointerId;const g=u.getBoundingClientRect();c=g.left,h=g.top,b=g.width,L=g.height,m=d.clientX,y=d.clientY;try{const p=(f=a.defaultView)==null?void 0:f.getComputedStyle(u);if(p){const v=new DOMMatrixReadOnly(p.transform);_=v.m41,C=v.m42}}catch{_=0,C=0}t.setPointerCapture(i),a.addEventListener("pointermove",x),a.addEventListener("pointerup",k),e==null||e()};return t.addEventListener("pointerdown",$),()=>{t.removeEventListener("pointerdown",$),a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",k)}}const N=":host{font-family:var(--luzmo-slot-menu-font-family, var(--luzmo-font-family));font-size:var(--luzmo-slot-menu-font-size, var(--slot-menu-font-size));color:var(--luzmo-slot-menu-font-color, var(--luzmo-font-color));display:block;width:fit-content}luzmo-slot-menu-list{min-width:var(--luzmo-slot-menu-list-min-width, var(--slot-menu-list-min-width));max-width:var(--luzmo-slot-menu-list-max-width, var(--slot-menu-list-max-width));background-color:var(--luzmo-slot-menu-list-background-color, var(--slot-menu-list-background-color))}.slot-contents-container{position:relative;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));background:var(--luzmo-slot-menu-background-color, var(--luzmo-background-color));box-shadow:var(--luzmo-slot-menu-popup-shadow-horizontal, var(--slot-menu-popup-shadow-horizontal)) var(--luzmo-slot-menu-popup-shadow-vertical, var(--slot-menu-popup-shadow-vertical)) var(--luzmo-slot-menu-popup-shadow-blur, var(--slot-menu-popup-shadow-blur)) var(--luzmo-slot-menu-popup-shadow-color, var(--slot-menu-popup-shadow-color));border-top-left-radius:0}.slot-contents-container .inner-container{display:flex}.slot-contents-container .inner-container luzmo-display-settings{min-width:var(--luzmo-slot-menu-display-settings-min-width, var(--slot-menu-display-settings-min-width));padding:var(--luzmo-slot-menu-display-settings-vertical-padding, var(--slot-menu-display-settings-vertical-padding)) var(--luzmo-slot-menu-display-settings-horizontal-padding, var(--slot-menu-display-settings-horizontal-padding))}:host([variant=popup]) .slot-contents-container{overflow:hidden;border-top-left-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));--slot-menu-popup-filter: drop-shadow( var( --luzmo-slot-menu-popup-shadow-horizontal, var(--slot-menu-popup-shadow-horizontal) ) var( --luzmo-slot-menu-popup-shadow-vertical, var(--slot-menu-popup-shadow-vertical) ) var( --luzmo-slot-menu-popup-shadow-blur, var(--slot-menu-popup-shadow-blur) ) var( --luzmo-slot-menu-popup-shadow-color, var(--slot-menu-popup-shadow-color) ) );filter:var(--luzmo-slot-menu-popup-filter, var(--slot-menu-popup-filter))}.slot-menu-top-menu{display:flex;align-items:center;border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden;width:fit-content}.drag-handle{background-color:var(--luzmo-slot-menu-drag-handle-background-color, var(--luzmo-background-color-highlight));cursor:grab;width:fit-content;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-drag-handle-size, var(--slot-menu-drag-handle-size));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.drag-handle:hover{background-color:var(--luzmo-slot-menu-drag-handle-background-color-hover, var(--luzmo-background-color-highlight-hover))}.slot-content-action{display:flex;flex:0 1 auto;max-width:var(--luzmo-slot-menu-top-menu-label-max-width, var(--slot-menu-top-menu-label-max-width));gap:var(--luzmo-slot-menu-label-to-icon-gap, var(--slot-menu-label-to-icon-gap));background-color:var(--luzmo-slot-menu-content-label-background-color, var(--luzmo-primary));color:var(--luzmo-slot-menu-content-label-color, var(--luzmo-primary-inverse-color));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-content-label-border-color, var(--luzmo-primary));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.slot-content-action:hover{background-color:var(--luzmo-slot-menu-content-label-background-color-hover, var(--luzmo-primary-hover))}.slot-content-action:focus{background-color:var(--luzmo-slot-menu-content-label-background-color-focus, var(--luzmo-primary-focus))}.slot-content-action .slot-content-label{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-content-action .slot-content-remove{flex:0 0 auto;cursor:pointer}.close{position:absolute;right:1rem;cursor:pointer;top:calc(-2 * var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)));background-color:var(--luzmo-slot-menu-close-button-background-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-close-button-size, var(--slot-menu-close-button-size));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-top-left-radius:0;border-top-right-radius:0;padding:var(--luzmo-slot-menu-close-button-vertical-padding, var(--slot-menu-close-button-vertical-padding)) var(--luzmo-slot-menu-close-button-horizontal-padding, var(--slot-menu-close-button-horizontal-padding))}.close:hover{background-color:var(--luzmo-slot-menu-close-button-background-color-hover, var(--luzmo-background-color-highlight-hover))}:host{--slot-menu-display-settings-min-width: 19rem;--slot-menu-min-height: calc(var(--luzmo-component-height) * 2);--slot-menu-font-size: var(--luzmo-font-size);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-5);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-4);--slot-menu-top-menu-label-max-width: 12rem;--slot-menu-list-min-width: 8rem;--slot-menu-list-max-width: 12rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-3);--slot-menu-drag-handle-size: var(--luzmo-font-size);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-s);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-popup-shadow-horizontal: 0;--slot-menu-popup-shadow-vertical: 1px;--slot-menu-popup-shadow-blur: 4px;--slot-menu-popup-shadow-color: var(--luzmo-border-color);--slot-menu-popup-box-shadow: var(--slot-menu-popup-shadow-horizontal) var(--slot-menu-popup-shadow-vertical) var(--slot-menu-popup-shadow-blur) var(--slot-menu-popup-shadow-color)}:host([size=s]){--slot-menu-display-settings-min-width: 16rem;--slot-menu-min-height: calc(var(--luzmo-component-height-s) * 2);--slot-menu-font-size: var(--luzmo-font-size-s);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-3);--slot-menu-top-menu-label-max-width: 10rem;--slot-menu-list-min-width: 6rem;--slot-menu-list-max-width: 10rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-2);--slot-menu-drag-handle-size: var(--luzmo-font-size-s);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-xs);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=l]){--slot-menu-display-settings-min-width: 23rem;--slot-menu-min-height: calc(var(--luzmo-component-height-l) * 2);--slot-menu-font-size: var(--luzmo-font-size-l);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 14rem;--slot-menu-list-min-width: 9rem;--slot-menu-list-max-width: 14rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-4);--slot-menu-drag-handle-size: var(--luzmo-font-size-l);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size);--slot-menu-close-button-vertical-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}:host([size=xl]){--slot-menu-display-settings-min-width: 26rem;--slot-menu-min-height: calc(var(--luzmo-component-height-xl) * 2);--slot-menu-font-size: var(--luzmo-font-size-xl);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 16rem;--slot-menu-list-min-width: 10rem;--slot-menu-list-max-width: 16rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-5);--slot-menu-drag-handle-size: var(--luzmo-font-size-xl);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-close-button-size: var(--luzmo-font-size-l);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-3);--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}";var K=Object.defineProperty,l=(u,t,o,e)=>{for(var r=void 0,a=u.length-1,i;a>=0;a--)(i=u[a])&&(r=i(t,o,r)||r);return r&&K(t,o,r),r};class s extends S.e(q.SizedMixin(U.LuzmoElement,{validSizes:Object.values(q.ElementSizes)})){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.variant="draggable",this._periodOverPeriodEnabled=!1,this.measureColumns=[],this.apiUrl="https://api.luzmo.com",this.authKey="",this.authToken="",this._slotContents=[],this._activeIndex=this.slotIndex??0,this._linkedDatasetsIds=[]}static get styles(){return[n.r(N)]}get _currentSlotContent(){return this._slotContents[this.slotIndex??this._activeIndex]??{}}get _currentLabel(){return O.localize(this._currentSlotContent.label,this.contentLanguage)??"Untitled"}connectedCallback(){const t={};this.apiUrl&&(t.apiUrl=this.apiUrl),this.authKey&&this.authToken&&(t.authKey=this.authKey,t.authToken=this.authToken),w.dataBroker.configure(t),super.connectedCallback(),this._attachDragHandle()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDrag&&(this._cleanupDrag(),this._cleanupDrag=void 0)}_attachDragHandle(){if(this._cleanupDrag||this.variant!=="draggable"||this.noDrag)return;const t=this.renderRoot.querySelector(".drag-handle");if(!t)return;const o=this.dragBoundary?document.querySelector(this.dragBoundary):document.documentElement;this._cleanupDrag=Y({element:this,handle:t,boundary:o})}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:[...this._slotContents],linkedDatasetsIds:[...this._linkedDatasetsIds]}}))}_sendCloseEvent(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0,cancelable:!0}))}isArrayColumnType(t){return new Set(["array[numeric]","array[spatial]","array[datetime]","array[hierarchy]"]).has(t)}async willUpdate(){var o,e,r,a;const t=this.slotContents??((o=this._store)==null?void 0:o.slotContents.get())??[];if(t!==this._slotContents){this._slotContents=structuredClone(t);const{set:i,column:m}=this._currentSlotContent;if(i&&i!==this._lastFetchedDatasetId){if(this._lastFetchedDatasetId=i,await w.dataBroker.fetchDatasetsRecursive([i]),!this.isConnected)return;this._linkedDatasetsIds=w.dataBroker.getLinkedDatasetsIds(i)}const y=w.dataBroker.getAvailableDatasets();this.measureColumns=y.map(c=>{var h;return{datasetId:c.id,datasetName:c.name,columns:(h=c.columns)==null?void 0:h.filter(b=>b.type==="numeric"&&b.id!==m)}}),((e=this._store)==null?void 0:e.activeIndex.get())!==this._activeIndex&&((r=this._store)==null||r.updateActive(this._activeIndex)),this.slotName==="measure"&&(this._periodOverPeriodEnabled=((a=this._store)==null?void 0:a.periodOverPeriodEnabled.get())&&this._currentSlotContent.subtype!=="duration"&&!this.isArrayColumnType(this._currentSlotContent.type))}}updated(){var t;this.displaySettingsElement&&(this.displaySettingsElement.periodOverPeriod=this._periodOverPeriodEnabled,this.displaySettingsElement.measureColumns=this.measureColumns,this.displaySettingsElement.showRemoveButton=this.variant==="popup"&&(typeof this.slotIndex=="number"||((t=this._slotContents)==null?void 0:t.length)===1))}_handleSlotListChange(t){var i,m;this._slotContents=structuredClone(t.detail.slotContents);const o=t.detail.activeIndex;o!==this._activeIndex&&(this._activeIndex=o,(i=this._store)==null||i.updateActive(o));const e=this._slotContents[this._activeIndex],r=(e==null?void 0:e.column)??(e==null?void 0:e.columnId),a=(e==null?void 0:e.set)??(e==null?void 0:e.datasetId);!r||!a||(this.dispatchEvent(new CustomEvent("slot-menu-highlight",{bubbles:!0,composed:!0,detail:{columnId:r,securableId:a,level:(e==null?void 0:e.level)??0}})),this._slotContents.length<=1&&this.requestUpdate(),(m=this._store)==null||m.setContents(this._slotContents,this.slotName),this._sendChangeEvent())}_handleSlotContentChange(t){var o;this._slotContents[this.slotIndex??this._activeIndex]=structuredClone(t.detail.slotContent),this.slotMenuListElement&&(this.slotMenuListElement.slotContents=this._slotContents),(o=this._store)==null||o.updateContent(t.detail.slotContent,this.slotIndex??this._activeIndex),this._sendChangeEvent()}removeSlotContent(t){var o;this._slotContents=this._slotContents.filter((e,r)=>r!==t),(o=this._store)==null||o.setContents(this._slotContents,this.slotName),this._sendChangeEvent(),this._sendCloseEvent(),this.requestUpdate()}close(){this._sendCloseEvent()}_removeActiveSlotContent(){this.removeSlotContent(this.slotIndex??this._activeIndex)}render(){var t,o;return n.x`<div class="slot-menu-top-menu">
|
24
|
+
*/const R={},X=T.e(class extends T.i{constructor(){super(...arguments),this.ot=R}render(u,t){return t()}update(u,[t,o]){if(Array.isArray(t)){if(Array.isArray(this.ot)&&this.ot.length===t.length&&t.every((e,s)=>e===this.ot[s]))return n.T}else if(this.ot===t)return n.T;return this.ot=Array.isArray(t)?Array.from(t):t,this.render(t,o)}});function Y({element:u,handle:t,boundary:o=document.documentElement,onDragStart:e,onDragEnd:s}){if(!u||!t)throw new Error("makeDraggable: element and handle are required");const a=u.ownerDocument??document;let i=-1,m=0,y=0,c=0,h=0,b=0,L=0,_=0,C=0;const x=d=>{if(d.pointerId!==i)return;const g=d.clientX-m,f=d.clientY-y,p=(o??document.documentElement).getBoundingClientRect();let v=c+g,E=h+f;v=Math.min(Math.max(v,p.left),p.right-b),E=Math.min(Math.max(E,p.top),p.bottom-L);const M=v-c,A=E-h,P=_+M,B=C+A;u.style.transform=`translate3d(${P}px, ${B}px, 0)`},k=d=>{d.pointerId===i&&(a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",k),i=-1,s==null||s())},$=d=>{var f;if(d.button!==0)return;i=d.pointerId;const g=u.getBoundingClientRect();c=g.left,h=g.top,b=g.width,L=g.height,m=d.clientX,y=d.clientY;try{const p=(f=a.defaultView)==null?void 0:f.getComputedStyle(u);if(p){const v=new DOMMatrixReadOnly(p.transform);_=v.m41,C=v.m42}}catch{_=0,C=0}t.setPointerCapture(i),a.addEventListener("pointermove",x),a.addEventListener("pointerup",k),e==null||e()};return t.addEventListener("pointerdown",$),()=>{t.removeEventListener("pointerdown",$),a.removeEventListener("pointermove",x),a.removeEventListener("pointerup",k)}}const N=":host{font-family:var(--luzmo-slot-menu-font-family, var(--luzmo-font-family));font-size:var(--luzmo-slot-menu-font-size, var(--slot-menu-font-size));color:var(--luzmo-slot-menu-font-color, var(--luzmo-font-color));display:block;width:fit-content}luzmo-slot-menu-list{min-width:var(--luzmo-slot-menu-list-min-width, var(--slot-menu-list-min-width));max-width:var(--luzmo-slot-menu-list-max-width, var(--slot-menu-list-max-width));background-color:var(--luzmo-slot-menu-list-background-color, var(--slot-menu-list-background-color))}.slot-contents-container{position:relative;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));background:var(--luzmo-slot-menu-background-color, var(--luzmo-background-color));box-shadow:var(--luzmo-slot-menu-popup-shadow-horizontal, var(--slot-menu-popup-shadow-horizontal)) var(--luzmo-slot-menu-popup-shadow-vertical, var(--slot-menu-popup-shadow-vertical)) var(--luzmo-slot-menu-popup-shadow-blur, var(--slot-menu-popup-shadow-blur)) var(--luzmo-slot-menu-popup-shadow-color, var(--slot-menu-popup-shadow-color));border-top-left-radius:0}.slot-contents-container .inner-container{display:flex}.slot-contents-container .inner-container luzmo-display-settings{min-width:var(--luzmo-slot-menu-display-settings-min-width, var(--slot-menu-display-settings-min-width));padding:var(--luzmo-slot-menu-display-settings-vertical-padding, var(--slot-menu-display-settings-vertical-padding)) var(--luzmo-slot-menu-display-settings-horizontal-padding, var(--slot-menu-display-settings-horizontal-padding))}:host([variant=popup]) .slot-contents-container{overflow:hidden;border-top-left-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));--slot-menu-popup-filter: drop-shadow( var( --luzmo-slot-menu-popup-shadow-horizontal, var(--slot-menu-popup-shadow-horizontal) ) var( --luzmo-slot-menu-popup-shadow-vertical, var(--slot-menu-popup-shadow-vertical) ) var( --luzmo-slot-menu-popup-shadow-blur, var(--slot-menu-popup-shadow-blur) ) var( --luzmo-slot-menu-popup-shadow-color, var(--slot-menu-popup-shadow-color) ) );filter:var(--luzmo-slot-menu-popup-filter, var(--slot-menu-popup-filter))}.slot-menu-top-menu{display:flex;align-items:center;border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-bottom-left-radius:0;border-bottom-right-radius:0;overflow:hidden;width:fit-content}.drag-handle{background-color:var(--luzmo-slot-menu-drag-handle-background-color, var(--luzmo-background-color-highlight));cursor:grab;width:fit-content;border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-drag-handle-size, var(--slot-menu-drag-handle-size));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.drag-handle:hover{background-color:var(--luzmo-slot-menu-drag-handle-background-color-hover, var(--luzmo-background-color-highlight-hover))}.slot-content-action{display:flex;flex:0 1 auto;max-width:var(--luzmo-slot-menu-top-menu-label-max-width, var(--slot-menu-top-menu-label-max-width));gap:var(--luzmo-slot-menu-label-to-icon-gap, var(--slot-menu-label-to-icon-gap));background-color:var(--luzmo-slot-menu-content-label-background-color, var(--luzmo-primary));color:var(--luzmo-slot-menu-content-label-color, var(--luzmo-primary-inverse-color));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-content-label-border-color, var(--luzmo-primary));padding:var(--luzmo-slot-menu-drag-handle-vertical-padding, var(--slot-menu-drag-handle-vertical-padding)) var(--luzmo-slot-menu-drag-handle-horizontal-padding, var(--slot-menu-drag-handle-horizontal-padding))}.slot-content-action:hover{background-color:var(--luzmo-slot-menu-content-label-background-color-hover, var(--luzmo-primary-hover))}.slot-content-action:focus{background-color:var(--luzmo-slot-menu-content-label-background-color-focus, var(--luzmo-primary-focus))}.slot-content-action .slot-content-label{flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.slot-content-action .slot-content-remove{flex:0 0 auto;cursor:pointer}.close{position:absolute;right:1rem;cursor:pointer;top:calc(-2 * var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)));background-color:var(--luzmo-slot-menu-close-button-background-color, var(--luzmo-background-color-highlight));font-size:var(--luzmo-slot-menu-close-button-size, var(--slot-menu-close-button-size));border:var(--luzmo-slot-menu-border-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-slot-menu-border-radius, var(--luzmo-border-radius));border-top-left-radius:0;border-top-right-radius:0;padding:var(--luzmo-slot-menu-close-button-vertical-padding, var(--slot-menu-close-button-vertical-padding)) var(--luzmo-slot-menu-close-button-horizontal-padding, var(--slot-menu-close-button-horizontal-padding))}.close:hover{background-color:var(--luzmo-slot-menu-close-button-background-color-hover, var(--luzmo-background-color-highlight-hover))}:host{--slot-menu-display-settings-min-width: 19rem;--slot-menu-min-height: calc(var(--luzmo-component-height) * 2);--slot-menu-font-size: var(--luzmo-font-size);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-5);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-4);--slot-menu-top-menu-label-max-width: 12rem;--slot-menu-list-min-width: 8rem;--slot-menu-list-max-width: 12rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-3);--slot-menu-drag-handle-size: var(--luzmo-font-size);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-s);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-popup-shadow-horizontal: 0;--slot-menu-popup-shadow-vertical: 1px;--slot-menu-popup-shadow-blur: 4px;--slot-menu-popup-shadow-color: var(--luzmo-border-color);--slot-menu-popup-box-shadow: var(--slot-menu-popup-shadow-horizontal) var(--slot-menu-popup-shadow-vertical) var(--slot-menu-popup-shadow-blur) var(--slot-menu-popup-shadow-color)}:host([size=s]){--slot-menu-display-settings-min-width: 16rem;--slot-menu-min-height: calc(var(--luzmo-component-height-s) * 2);--slot-menu-font-size: var(--luzmo-font-size-s);--slot-menu-display-settings-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-3);--slot-menu-top-menu-label-max-width: 10rem;--slot-menu-list-min-width: 6rem;--slot-menu-list-max-width: 10rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-2);--slot-menu-drag-handle-size: var(--luzmo-font-size-s);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-2);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size-xs);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-2);--slot-menu-close-button-horizontal-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) )}:host([size=l]){--slot-menu-display-settings-min-width: 23rem;--slot-menu-min-height: calc(var(--luzmo-component-height-l) * 2);--slot-menu-font-size: var(--luzmo-font-size-l);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 14rem;--slot-menu-list-min-width: 9rem;--slot-menu-list-max-width: 14rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-4);--slot-menu-drag-handle-size: var(--luzmo-font-size-l);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-close-button-size: var(--luzmo-font-size);--slot-menu-close-button-vertical-padding: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}:host([size=xl]){--slot-menu-display-settings-min-width: 26rem;--slot-menu-min-height: calc(var(--luzmo-component-height-xl) * 2);--slot-menu-font-size: var(--luzmo-font-size-xl);--slot-menu-display-settings-horizontal-padding: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--slot-menu-display-settings-vertical-padding: var(--luzmo-spacing-5);--slot-menu-top-menu-label-max-width: 16rem;--slot-menu-list-min-width: 10rem;--slot-menu-list-max-width: 16rem;--slot-menu-label-to-icon-gap: var(--luzmo-spacing-5);--slot-menu-drag-handle-size: var(--luzmo-font-size-xl);--slot-menu-drag-handle-vertical-padding: var(--luzmo-spacing-3);--slot-menu-drag-handle-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-close-button-size: var(--luzmo-font-size-l);--slot-menu-close-button-vertical-padding: var(--luzmo-spacing-3);--slot-menu-close-button-horizontal-padding: var(--luzmo-spacing-3)}";var K=Object.defineProperty,r=(u,t,o,e)=>{for(var s=void 0,a=u.length-1,i;a>=0;a--)(i=u[a])&&(s=i(t,o,s)||s);return s&&K(t,o,s),s};class l extends I.e(q.SizedMixin(U.LuzmoElement,{validSizes:Object.values(q.ElementSizes)})){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.variant="draggable",this._periodOverPeriodEnabled=!1,this.measureColumns=[],this.apiUrl="https://api.luzmo.com",this.authKey="",this.authToken="",this._slotContents=[],this._activeIndex=this.slotIndex??0,this._linkedDatasetsIds=[]}static get styles(){return[n.r(N)]}get _currentSlotContent(){return this._slotContents[this.slotIndex??this._activeIndex]??{}}get _currentLabel(){return O.localize(this._currentSlotContent.label,this.contentLanguage)??"Untitled"}connectedCallback(){const t={};this.apiUrl&&(t.apiUrl=this.apiUrl),this.authKey&&this.authToken&&(t.authKey=this.authKey,t.authToken=this.authToken),w.dataBroker.configure(t),super.connectedCallback(),this._attachDragHandle()}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDrag&&(this._cleanupDrag(),this._cleanupDrag=void 0)}_attachDragHandle(){if(this._cleanupDrag||this.variant!=="draggable"||this.noDrag)return;const t=this.renderRoot.querySelector(".drag-handle");if(!t)return;const o=this.dragBoundary?document.querySelector(this.dragBoundary):document.documentElement;this._cleanupDrag=Y({element:this,handle:t,boundary:o})}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:[...this._slotContents],linkedDatasetsIds:[...this._linkedDatasetsIds]}}))}_sendCloseEvent(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0,cancelable:!0}))}isArrayColumnType(t){return new Set(["array[numeric]","array[spatial]","array[datetime]","array[hierarchy]"]).has(t)}async willUpdate(){var o,e,s,a;const t=this.slotContents??((o=this._store)==null?void 0:o.slotContents.get())??[];if(t!==this._slotContents){this._slotContents=structuredClone(t);const{set:i,column:m}=this._currentSlotContent;if(i&&i!==this._lastFetchedDatasetId){if(this._lastFetchedDatasetId=i,await w.dataBroker.fetchDatasetsRecursive([i]),!this.isConnected)return;this._linkedDatasetsIds=w.dataBroker.getLinkedDatasetsIds(i)}const y=w.dataBroker.getAvailableDatasets();this.measureColumns=y.map(c=>{var h;return{datasetId:c.id,datasetName:c.name,columns:(h=c.columns)==null?void 0:h.filter(b=>b.type==="numeric"&&b.id!==m)}}),((e=this._store)==null?void 0:e.activeIndex.get())!==this._activeIndex&&((s=this._store)==null||s.updateActive(this._activeIndex)),this.slotName==="measure"&&(this._periodOverPeriodEnabled=((a=this._store)==null?void 0:a.periodOverPeriodEnabled.get())&&this._currentSlotContent.subtype!=="duration"&&!this.isArrayColumnType(this._currentSlotContent.type))}}updated(){var t;this.displaySettingsElement&&(this.displaySettingsElement.periodOverPeriod=this._periodOverPeriodEnabled,this.displaySettingsElement.measureColumns=this.measureColumns,this.displaySettingsElement.showRemoveButton=this.variant==="popup"&&(typeof this.slotIndex=="number"||((t=this._slotContents)==null?void 0:t.length)===1))}_handleSlotListChange(t){var i,m;this._slotContents=structuredClone(t.detail.slotContents);const o=t.detail.activeIndex;o!==this._activeIndex&&(this._activeIndex=o,(i=this._store)==null||i.updateActive(o));const e=this._slotContents[this._activeIndex],s=(e==null?void 0:e.column)??(e==null?void 0:e.columnId),a=(e==null?void 0:e.set)??(e==null?void 0:e.datasetId);s&&a&&this.dispatchEvent(new CustomEvent("slot-menu-highlight",{bubbles:!0,composed:!0,detail:{columnId:s,securableId:a,level:(e==null?void 0:e.level)??0}})),this._slotContents.length<=1&&this.requestUpdate(),(m=this._store)==null||m.setContents(this._slotContents,this.slotName),this._sendChangeEvent()}_handleSlotContentChange(t){var o;this._slotContents[this.slotIndex??this._activeIndex]=structuredClone(t.detail.slotContent),this.slotMenuListElement&&(this.slotMenuListElement.slotContents=this._slotContents),(o=this._store)==null||o.updateContent(t.detail.slotContent,this.slotIndex??this._activeIndex),this._sendChangeEvent()}removeSlotContent(t){var o;this._slotContents=this._slotContents.filter((e,s)=>s!==t),(o=this._store)==null||o.setContents(this._slotContents,this.slotName),this._slotContents.length===0&&this.dispatchEvent(new CustomEvent("slot-menu-inactive",{bubbles:!0,composed:!0})),this._sendChangeEvent(),this._sendCloseEvent(),this.requestUpdate()}close(){this._sendCloseEvent()}_removeActiveSlotContent(){this.removeSlotContent(this.slotIndex??this._activeIndex)}render(){var o,e,s;const t=`${this.slotType}-${((o=this._currentSlotContent)==null?void 0:o.type)??""}`;return n.x`<div class="slot-menu-top-menu">
|
25
25
|
${this.variant==="draggable"?n.x`<div class="drag-handle">${z.y3(z.W)}</div>`:""}
|
26
26
|
${this._slotContents&&this._slotContents.length===1&&this.variant!=="popup"?n.x` <div class="slot-content-action">
|
27
27
|
<div class="slot-content-label">${this._currentLabel}</div>
|
@@ -34,28 +34,28 @@
|
|
34
34
|
</div>`:""}
|
35
35
|
</div>
|
36
36
|
<div
|
37
|
-
class="slot-contents-container ${((
|
37
|
+
class="slot-contents-container ${((e=this._slotContents)==null?void 0:e.length)>1?"multiple":""}"
|
38
38
|
>
|
39
39
|
${this.variant==="popup"?"":n.x`<div class="close" @click=${this.close}>
|
40
40
|
${z.y3(z.F)}
|
41
41
|
</div>`}
|
42
42
|
<div class="inner-container">
|
43
|
-
${((
|
43
|
+
${((s=this._slotContents)==null?void 0:s.length)>1&&typeof this.slotIndex!="number"?n.x`<luzmo-slot-menu-list
|
44
44
|
.slotContents=${this._slotContents}
|
45
45
|
.contentLanguage=${this.contentLanguage}
|
46
46
|
.activeIndex=${this.slotIndex??this._activeIndex}
|
47
47
|
@slot-list-changed=${this._handleSlotListChange}
|
48
48
|
></luzmo-slot-menu-list>`:""}
|
49
|
-
${X([this.variant,this.
|
49
|
+
${X([this.variant,this.language,this.contentLanguage,this._periodOverPeriodEnabled,t],()=>{var a;return n.x`<luzmo-display-settings
|
50
50
|
.size=${this.size}
|
51
51
|
.language=${this.language}
|
52
52
|
.contentLanguage=${this.contentLanguage}
|
53
|
-
.slotContent=${this._currentSlotContent}
|
54
53
|
.slotType=${this.slotType}
|
55
54
|
.measureColumns=${this.measureColumns}
|
56
|
-
.showRemoveButton=${this.variant==="popup"&&(typeof this.slotIndex=="number"||((
|
55
|
+
.showRemoveButton=${this.variant==="popup"&&(typeof this.slotIndex=="number"||((a=this._slotContents)==null?void 0:a.length)===1)}
|
56
|
+
.slotContent=${this._currentSlotContent}
|
57
57
|
@slot-content-changed=${this._handleSlotContentChange}
|
58
58
|
@remove-slot-content=${this._removeActiveSlotContent}
|
59
59
|
></luzmo-display-settings>`})}
|
60
60
|
</div>
|
61
|
-
</div>`}firstUpdated(){this._attachDragHandle()}resetPosition(){this.style.transform=""}}
|
61
|
+
</div>`}firstUpdated(){this._attachDragHandle()}resetPosition(){this.style.transform=""}}r([n.n({type:String,reflect:!0})],l.prototype,"language");r([n.n({type:String,attribute:"content-language",reflect:!0})],l.prototype,"contentLanguage");r([n.n({type:String,attribute:"slot-type",reflect:!0})],l.prototype,"slotType");r([n.n({type:String,attribute:"slot-name",reflect:!0})],l.prototype,"slotName");r([n.n({type:String,attribute:"item-type",reflect:!0})],l.prototype,"itemType");r([n.n({type:Boolean,attribute:"no-drag",reflect:!0})],l.prototype,"noDrag");r([n.n({type:Boolean,attribute:"no-close",reflect:!0})],l.prototype,"noClose");r([n.n({type:String,reflect:!0})],l.prototype,"variant");r([n.n({type:Boolean,attribute:"no-top-menu-label",reflect:!0})],l.prototype,"noTopMenuLabel");r([I.c({context:I.slotContext,subscribe:!0})],l.prototype,"_store");r([n.n({type:String,attribute:"drag-boundary",reflect:!1})],l.prototype,"dragBoundary");r([n.n({type:Array,reflect:!1,attribute:"slot-contents"})],l.prototype,"slotContents");r([S.r()],l.prototype,"_periodOverPeriodEnabled");r([S.r()],l.prototype,"measureColumns");r([n.n({type:Number,reflect:!1,attribute:"slot-index"})],l.prototype,"slotIndex");r([D.e("luzmo-display-settings")],l.prototype,"displaySettingsElement");r([D.e("luzmo-slot-menu-list")],l.prototype,"slotMenuListElement");r([n.n({type:String,attribute:"api-url",reflect:!0})],l.prototype,"apiUrl");r([n.n({type:String,attribute:"auth-key",reflect:!0})],l.prototype,"authKey");r([n.n({type:String,attribute:"auth-token",reflect:!0})],l.prototype,"authToken");r([S.r()],l.prototype,"_slotContents");customElements.get("luzmo-slot-menu")||customElements.define("luzmo-slot-menu",l);exports.LuzmoSlotMenu=l;
|