@luzmo/analytics-components-kit 1.0.1-alpha.94 → 1.0.1-alpha.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular/README.md +1 -1
- package/angular/components/viz-item-menu.component.ts +25 -0
- package/angular/esm/components/viz-item-menu.component.d.ts +13 -0
- package/angular/esm/components/viz-item-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -3
- package/angular/esm/index.js +3 -3
- package/angular/esm/types.d.ts +2 -2
- package/angular/index.ts +3 -3
- package/angular/types.ts +2 -2
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +0 -1
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +1 -2
- package/components/area-chart-options.config-Bl8bhhOo.cjs +20 -0
- package/components/{area-chart-options.config-_J0sG4NF.js → area-chart-options.config-u8itidsi.js} +14 -26
- package/components/bar-chart-options.config-CePAqM83.cjs +20 -0
- package/components/{bar-chart-options.config-D1mb5TDl.js → bar-chart-options.config-DIirbAJ0.js} +21 -35
- package/components/box-plot-options.config-BVNrV2eD.cjs +20 -0
- package/components/{box-plot-options.config-xu_i6ms7.js → box-plot-options.config-BWROiguA.js} +52 -88
- package/components/{bubble-chart-options.config-BacgXkJ_.js → bubble-chart-options.config-4QD8VPhU.js} +9 -18
- package/components/bubble-chart-options.config-BDgOe3GQ.cjs +20 -0
- package/components/{bullet-chart-options.config-CDPpX1yc.js → bullet-chart-options.config-3bH7uekx.js} +1 -1
- package/components/{bullet-chart-options.config-DfS4Bwds.cjs → bullet-chart-options.config-tWb6Fio-.cjs} +1 -1
- package/components/calculate-data-item-icon-DMDhKq_m.js +147 -0
- package/components/calculate-data-item-icon-DtVGbet3.cjs +20 -0
- package/components/{choropleth-map-options.config-B_W9-rhe.js → choropleth-map-options.config-CMxx3ORp.js} +63 -84
- package/components/choropleth-map-options.config-CWJACFd0.cjs +20 -0
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +20 -0
- package/components/{circular-gauge-options.config-DAIjz4Rl.js → circular-gauge-options.config-DhIKn44k.js} +23 -36
- package/components/{color-DuJ4-73S.js → color-B7m0j8lX.js} +941 -950
- package/components/color-Czp4Im5q.cjs +20 -0
- package/components/{color-range-utils-Bvo9sm5A.js → color-range-utils-BSfqtB3A.js} +31 -32
- package/components/color-range-utils-DYYR-iwx.cjs +20 -0
- package/components/column-chart-options.config-BV9R3ssH.cjs +20 -0
- package/components/{column-chart-options.config-B5SjBVdy.js → column-chart-options.config-D5-yR7iq.js} +27 -37
- package/components/conditional-number-options.config-Co099Qfm.cjs +20 -0
- package/components/{conditional-number-options.config-BCEpSK9J.js → conditional-number-options.config-DPYsdML5.js} +24 -40
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +1 -2
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +32 -35
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +50 -52
- package/components/{date-comparison-filter-options.config-JA_yYpJa.js → date-comparison-filter-options.config-CSwGyuBg.js} +3 -6
- package/components/{date-comparison-filter-options.config-DAVncmi0.cjs → date-comparison-filter-options.config-QaoWaFUn.cjs} +1 -1
- package/components/{date-filter-options.config-DBRxlTWy.js → date-filter-options.config-BTVyHRkp.js} +3 -6
- package/components/{date-filter-options.config-CWPMtA18.cjs → date-filter-options.config-n-zhWaYa.cjs} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +5 -5
- package/components/display-settings-binning/index.js +29 -30
- package/components/display-settings-datetime/index.cjs +29 -29
- package/components/display-settings-datetime/index.js +112 -120
- package/components/display-settings-grand-totals/index.cjs +4 -4
- package/components/display-settings-grand-totals/index.js +23 -24
- package/components/display-settings-numeric/display-settings-numeric.d.ts +1 -2
- package/components/display-settings-numeric/index.cjs +49 -48
- package/components/display-settings-numeric/index.js +193 -218
- package/components/display-settings-period-over-period/index.cjs +16 -16
- package/components/display-settings-period-over-period/index.js +91 -97
- package/components/{donut-chart-options.config-BulUEiaH.js → donut-chart-options.config-3ZqX8Cbb.js} +21 -37
- package/components/donut-chart-options.config-BQyPgnC9.cjs +20 -0
- package/components/draggable-data-item/index.cjs +5 -5
- package/components/draggable-data-item/index.js +45 -46
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +70 -73
- package/components/{dropdown-filter-options.config-D9dvPypF.js → dropdown-filter-options.config-CGJTtgAX.js} +7 -10
- package/components/{dropdown-filter-options.config-DS-MORmq.cjs → dropdown-filter-options.config-DJvfCTk7.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +208 -223
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +116 -119
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +52 -53
- package/components/{edit-option-base-DIc7iC-b.js → edit-option-base-Bh29-Cak.js} +1 -1
- package/components/{edit-option-base-VhTih9T1.cjs → edit-option-base-tFr8Qg2B.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +106 -117
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +26 -27
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +21 -25
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +76 -81
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +21 -22
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +22 -23
- package/components/en-D3ihEGXg.js +1483 -0
- package/components/en-DZcn_iz_.cjs +20 -0
- package/components/{en-GB-DG6uS3sM.cjs → en-GB-TqvgIw9B.cjs} +1 -1
- package/components/{en-GB-CEHEs8F2.js → en-GB-ialeqj_z.js} +1 -1
- package/components/{evolution-number-options.config-DzkfeoIN.js → evolution-number-options.config-BIPO_4n3.js} +11 -14
- package/components/{evolution-number-options.config-BgIZY4gQ.cjs → evolution-number-options.config-Bc9eKYnn.cjs} +1 -1
- package/components/{extrapolate-color-0j_AeYkz.cjs → extrapolate-color-C0n1UDs-.cjs} +1 -1
- package/components/{extrapolate-color-CC9CURf6.js → extrapolate-color-v1PimdQr.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +85 -86
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +109 -119
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +34 -36
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +56 -71
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +113 -124
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +101 -110
- package/components/{focusable-DCIFkpiW.js → focusable-BS2pbY7w.js} +24 -26
- package/components/focusable-QLh-LlNt.cjs +20 -0
- package/components/{funnel-chart-options.config-C_VjTOvD.js → funnel-chart-options.config-CrJy2U7_.js} +5 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +20 -0
- package/components/{get-css-variable-YlLiVgo8.js → get-css-variable-Bb7TxJdX.js} +37 -37
- package/components/get-css-variable-Pzks_rOx.cjs +24 -0
- package/components/grid/index.cjs +43 -49
- package/components/grid/index.js +2610 -1878
- package/components/heat-map-options.config-CIHnPdYE.cjs +20 -0
- package/components/{heat-map-options.config-BnLWe8jS.js → heat-map-options.config-CmL87j1j.js} +35 -41
- package/components/{heat-table-options.config-CUsDdgUr.js → heat-table-options.config-BrCYAgYD.js} +60 -88
- package/components/heat-table-options.config-DTlZRc_i.cjs +20 -0
- package/components/helpers-9I0oLoUB.cjs +20 -0
- package/components/helpers-bR8Ibjqh.js +79 -0
- package/components/{hexbin-map-options.config-F-7uCqxb.js → hexbin-map-options.config-BguV1w8q.js} +20 -38
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +20 -0
- package/components/{index-BPNsFiyq.cjs → index-BNAmjOkm.cjs} +4 -4
- package/components/index-BekTY3Em.cjs +121 -0
- package/components/index-CFL6gmIu.cjs +20 -0
- package/components/{index-Do7O9azB.js → index-CqKpf0B8.js} +112 -123
- package/components/index-DNPULp4A.js +1755 -0
- package/components/{index-D0GBF6tg.js → index-DdyZ2g5L.js} +94 -104
- package/components/index-DvkzMbLt.cjs +249 -0
- package/components/{index-CdIUfo-L.js → index-haa7WNrl.js} +453 -481
- package/components/index.cjs +1 -1
- package/components/index.js +13 -13
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-DB3IsXXr.js → line-chart-options.config-BhirTGqD.js} +13 -28
- package/components/line-chart-options.config-Cqwou5u6.cjs +20 -0
- package/components/{localize-r7ALOUy_.cjs → localize-C4zNlrwK.cjs} +1 -1
- package/components/{localize-BX7q0S0M.js → localize-CcDpq940.js} +10 -10
- package/components/{marker-map-options.config-DPJ955tt.js → marker-map-options.config-Bx17jmiq.js} +1 -1
- package/components/{marker-map-options.config-_FYZzRwA.cjs → marker-map-options.config-CvhCylSC.cjs} +1 -1
- package/components/{pivot-table-options.config-DNK_AIG7.js → pivot-table-options.config-CFc7y0IT.js} +15 -24
- package/components/pivot-table-options.config-uZDAertf.cjs +20 -0
- package/components/{pyramid-chart-options.config-CcVMatYx.js → pyramid-chart-options.config-2Waxb11l.js} +29 -43
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +20 -0
- package/components/{radar-chart-options.config-CUZn_3Fd.js → radar-chart-options.config-CPN5fOl8.js} +11 -23
- package/components/radar-chart-options.config-CtNUMN1l.cjs +20 -0
- package/components/{regular-table-options.config-BoLZsBry.js → regular-table-options.config-CFKCJQK1.js} +17 -23
- package/components/{regular-table-options.config-DTx3RTnS.cjs → regular-table-options.config-YRuoijIk.cjs} +1 -1
- package/components/route-map-options.config-CVTk5RVL.cjs +20 -0
- package/components/{route-map-options.config-CN86T7c0.js → route-map-options.config-CyolTJfK.js} +87 -109
- package/components/{sankey-diagram-options.config-RFB83YLZ.cjs → sankey-diagram-options.config-D7OSvSqm.cjs} +1 -1
- package/components/{sankey-diagram-options.config-tVLKy_Zn.js → sankey-diagram-options.config-Ldjk84ro.js} +7 -10
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +20 -0
- package/components/{scatter-plot-options.config-Corlzno1.js → scatter-plot-options.config-CfxEfkQ1.js} +56 -86
- package/components/{search-filter-options.config-BE3JhR-F.js → search-filter-options.config-C0syQmP4.js} +3 -6
- package/components/{search-filter-options.config-BCaDlYqZ.cjs → search-filter-options.config-Oqco9BKj.cjs} +1 -1
- package/components/{set-locale-Dp3N_gXN.js → set-locale-hKTMz37h.js} +1 -8
- package/components/slicer-filter-options.config-CrusP6a0.cjs +20 -0
- package/components/{slicer-filter-options.config-3JZZcw5C.js → slicer-filter-options.config-DmOe3440.js} +9 -18
- package/components/{slider-filter-options.config-DH4SS8wH.js → slider-filter-options.config-B1M8RcDs.js} +1 -1
- package/components/{slider-filter-options.config-_8Z2zKmU.cjs → slider-filter-options.config-k45I-t6G.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +194 -205
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +171 -184
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +97 -103
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +20 -0
- package/components/{speedometer-chart-options.config-SL581yOa.js → speedometer-chart-options.config-CzOmuEF8.js} +31 -53
- package/components/spike-map-options.config-BkkDqb4g.cjs +20 -0
- package/components/{spike-map-options.config-C5KewecZ.js → spike-map-options.config-Cbt1YUw6.js} +91 -122
- package/components/{sunburst-chart-options.config-AbNjWS6t.cjs → sunburst-chart-options.config-Yrxc2i57.cjs} +1 -1
- package/components/{sunburst-chart-options.config-CNauGQJv.js → sunburst-chart-options.config-_dyLQxPJ.js} +9 -20
- package/components/{symbol-map-options.config-DdDA4aa7.js → symbol-map-options.config-BORL1NSU.js} +11 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +20 -0
- package/components/{treemap-chart-options.config-D5AJaF_u.js → treemap-chart-options.config-B9i9qIm_.js} +20 -37
- package/components/treemap-chart-options.config-x4J54WSw.cjs +20 -0
- package/components/utils.cjs +1 -1
- package/components/utils.js +94 -97
- package/components/{video-options.config-CGsDTwHc.cjs → video-options.config-B0asgYt8.cjs} +1 -1
- package/components/{video-options.config-Dk36zJ1B.js → video-options.config-UX-9MDfS.js} +7 -10
- package/components/viz-item-menu/index.cjs +51 -0
- package/components/viz-item-menu/index.d.ts +8 -0
- package/components/viz-item-menu/index.js +209 -0
- package/components/viz-item-menu/viz-item-menu.d.ts +77 -0
- package/components/{wordcloud-chart-options.config-vGfCW8kE.cjs → wordcloud-chart-options.config-BKtJT8Va.cjs} +1 -1
- package/components/{wordcloud-chart-options.config-w2NUIWVA.js → wordcloud-chart-options.config-BoB_KuhA.js} +4 -7
- package/custom-elements.json +43 -23
- package/index.d.ts +1 -1
- package/package.json +7 -7
- package/types.d.ts +2 -2
- package/angular/components/widget-menu.component.ts +0 -25
- package/angular/esm/components/widget-menu.component.d.ts +0 -13
- package/angular/esm/components/widget-menu.component.js +0 -49
- package/components/area-chart-options.config-C7sMAHco.cjs +0 -20
- package/components/bar-chart-options.config-DcxEkOT5.cjs +0 -20
- package/components/box-plot-options.config-SrrbDEYW.cjs +0 -20
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +0 -20
- package/components/calculate-data-item-icon-CEa82-5u.cjs +0 -20
- package/components/calculate-data-item-icon-DjlZwMdO.js +0 -147
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +0 -20
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +0 -20
- package/components/color-B6LaL8qz.cjs +0 -20
- package/components/color-range-utils-C5yXW7ZC.cjs +0 -20
- package/components/column-chart-options.config-BjDvA7i9.cjs +0 -20
- package/components/conditional-number-options.config-DgzUo0xi.cjs +0 -20
- package/components/donut-chart-options.config-tNpqBZfR.cjs +0 -20
- package/components/en-BKBhKBXY.cjs +0 -20
- package/components/en-BOTjhwEc.js +0 -1488
- package/components/focusable-B3E_hQmm.cjs +0 -20
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +0 -20
- package/components/get-css-variable-BEYG097C.js +0 -1446
- package/components/get-css-variable-BZxY4IOa.cjs +0 -35
- package/components/get-css-variable-DLiZYZEi.cjs +0 -24
- package/components/heat-map-options.config-DVH-Bb5-.cjs +0 -20
- package/components/heat-table-options.config-B12JEYnp.cjs +0 -20
- package/components/helpers-DXQwEH1P.cjs +0 -20
- package/components/helpers-v1bPALRP.js +0 -91
- package/components/hexbin-map-options.config-DZERRhM8.cjs +0 -20
- package/components/index-CDi4fe3N.js +0 -1716
- package/components/index-CQ9ck-BO.cjs +0 -249
- package/components/index-CXn67vdn.cjs +0 -121
- package/components/index-Cz9vSXy6.cjs +0 -20
- package/components/index-Dn0j_pcR.cjs +0 -20
- package/components/index-E239Dotg.js +0 -1735
- package/components/line-chart-options.config-DSugoe0t.cjs +0 -20
- package/components/pivot-table-options.config-BiJXKSFR.cjs +0 -20
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +0 -20
- package/components/radar-chart-options.config-EqQu6PTh.cjs +0 -20
- package/components/route-map-options.config-D7NJePTu.cjs +0 -20
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +0 -20
- package/components/slicer-filter-options.config-DNI-XevE.cjs +0 -20
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +0 -20
- package/components/spike-map-options.config-DoBFXPmN.cjs +0 -20
- package/components/symbol-map-options.config-m-lwLTtu.cjs +0 -20
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +0 -20
- package/components/widget-menu/index.cjs +0 -51
- package/components/widget-menu/index.d.ts +0 -8
- package/components/widget-menu/index.js +0 -211
- package/components/widget-menu/widget-menu.d.ts +0 -77
|
@@ -17,44 +17,44 @@
|
|
|
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 { msg as
|
|
21
|
-
import { Task as
|
|
22
|
-
import { luzmoIcon as
|
|
20
|
+
import { msg as f, localized as z } from "@lit/localize";
|
|
21
|
+
import { Task as b } from "@lit/task";
|
|
22
|
+
import { luzmoIcon as m, luzmoPlus as v, luzmoCog as d, luzmoTrashOutline as p } from "@luzmo/icons";
|
|
23
23
|
import "@luzmo/lucero/action-button";
|
|
24
24
|
import "@luzmo/lucero/field-label";
|
|
25
25
|
import "@luzmo/lucero/overlay";
|
|
26
26
|
import "@luzmo/lucero/select";
|
|
27
27
|
import "@luzmo/lucero/tooltip";
|
|
28
|
-
import { c as
|
|
29
|
-
import { l as
|
|
30
|
-
import { html as
|
|
31
|
-
import { property as
|
|
32
|
-
import { L as
|
|
33
|
-
import { S as
|
|
34
|
-
import { g as
|
|
35
|
-
import "../index-
|
|
28
|
+
import { c as h } from "../calculate-data-item-icon-DMDhKq_m.js";
|
|
29
|
+
import { l as g } from "../localize-CcDpq940.js";
|
|
30
|
+
import { html as a, unsafeCSS as y } from "lit";
|
|
31
|
+
import { property as c, state as C } from "lit/decorators.js";
|
|
32
|
+
import { L as S } from "../focusable-BS2pbY7w.js";
|
|
33
|
+
import { S as _ } from "../sized-mixin-cJbo3PKR.js";
|
|
34
|
+
import { g as k, t as x, s as $ } from "../set-locale-hKTMz37h.js";
|
|
35
|
+
import "../index-CqKpf0B8.js";
|
|
36
36
|
import "../slot-menu/index.js";
|
|
37
37
|
(function() {
|
|
38
38
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
39
|
-
const
|
|
40
|
-
|
|
39
|
+
const o = document.createElement("style");
|
|
40
|
+
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
|
|
41
41
|
}
|
|
42
42
|
})();
|
|
43
|
-
const
|
|
44
|
-
var
|
|
45
|
-
for (var
|
|
46
|
-
(
|
|
47
|
-
return
|
|
43
|
+
const I = ":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}";
|
|
44
|
+
var w = Object.defineProperty, D = Object.getOwnPropertyDescriptor, n = (t, o, e, l) => {
|
|
45
|
+
for (var i = l > 1 ? void 0 : l ? D(o, e) : o, r = t.length - 1, u; r >= 0; r--)
|
|
46
|
+
(u = t[r]) && (i = (l ? u(o, e, i) : u(i)) || i);
|
|
47
|
+
return l && i && w(o, e, i), i;
|
|
48
48
|
};
|
|
49
|
-
let
|
|
49
|
+
let s = class extends _(S, {
|
|
50
50
|
validSizes: ["s", "m", "l", "xl"],
|
|
51
51
|
noDefaultSize: !0
|
|
52
52
|
}) {
|
|
53
53
|
constructor() {
|
|
54
|
-
super(...arguments), this._loadSlotsConfig = new
|
|
55
|
-
task: async ([
|
|
56
|
-
if (
|
|
57
|
-
const
|
|
54
|
+
super(...arguments), this._loadSlotsConfig = new b(this, {
|
|
55
|
+
task: async ([t]) => {
|
|
56
|
+
if (t && t !== this._itemTypeLoaded) {
|
|
57
|
+
const o = /* @__PURE__ */ Object.assign({
|
|
58
58
|
"../../item-definitions/area-chart/area-chart-slots.config.ts": () => import("../area-chart-slots.config-DoytjTpw.js"),
|
|
59
59
|
"../../item-definitions/bar-chart/bar-chart-slots.config.ts": () => import("../bar-chart-slots.config-Dn0IV43j.js"),
|
|
60
60
|
"../../item-definitions/box-plot/box-plot-slots.config.ts": () => import("../box-plot-slots.config-FI5Id-7p.js"),
|
|
@@ -101,128 +101,123 @@ let n = class extends I($, {
|
|
|
101
101
|
"../../item-definitions/video/video-slots.config.ts": () => import("../video-slots.config-IpwUxDyU.js"),
|
|
102
102
|
"../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts": () => import("../wordcloud-chart-slots.config-BS4sOOHt.js")
|
|
103
103
|
});
|
|
104
|
-
if (
|
|
105
|
-
const
|
|
106
|
-
this._slotsConfig =
|
|
104
|
+
if (o[`../../item-definitions/${t}/${t}-slots.config.ts`]) {
|
|
105
|
+
const e = await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();
|
|
106
|
+
this._slotsConfig = e?.default ?? {};
|
|
107
107
|
}
|
|
108
108
|
return this._slotsConfig;
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
args: () => [this.itemType, this.language]
|
|
112
|
-
}), 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 = (
|
|
112
|
+
}), 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) => {
|
|
113
113
|
this.dispatchEvent(
|
|
114
114
|
new CustomEvent("slot-contents-changed", {
|
|
115
115
|
bubbles: !0,
|
|
116
116
|
composed: !0,
|
|
117
117
|
cancelable: !0,
|
|
118
118
|
detail: {
|
|
119
|
-
slotContents:
|
|
119
|
+
slotContents: t
|
|
120
120
|
}
|
|
121
121
|
})
|
|
122
122
|
);
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
_emptySlotContents(
|
|
126
|
-
typeof
|
|
127
|
-
(
|
|
125
|
+
_emptySlotContents(t) {
|
|
126
|
+
typeof t != "number" ? (this.slotContents = [], this._currentSlotContents = [], this._changedSlotContents([])) : (this._currentSlotContents = this._currentSlotContents.filter(
|
|
127
|
+
(e, l) => l !== t
|
|
128
128
|
), this._changedSlotContents(this._currentSlotContents));
|
|
129
129
|
}
|
|
130
|
-
willUpdate(
|
|
131
|
-
const
|
|
132
|
-
|
|
130
|
+
willUpdate(t) {
|
|
131
|
+
const o = t.has("slotContents"), e = t.has("datasetsDataItems"), l = t.has("language");
|
|
132
|
+
o && (this._currentSlotContents = structuredClone(this.slotContents)), e && (this._selectOptions = this._createSelectOptions(), this._slotContentOptions = this._createSlotContentOptions()), l && this.language !== k() && ([...x].includes(this.language ?? "en") || this.language === "en") && $(this.language);
|
|
133
133
|
}
|
|
134
|
-
_onSlotMenuChanges(
|
|
135
|
-
|
|
136
|
-
o.preventDefault(), o.stopPropagation(), this.slotContents.length === ((t = o.detail.slotContents) == null ? void 0 : t.length) ? (this._currentSlotContents = o.detail.slotContents, this._changedSlotContents(this._currentSlotContents)) : (this.slotContents = o.detail.slotContents, this._changedSlotContents(this.slotContents));
|
|
134
|
+
_onSlotMenuChanges(t) {
|
|
135
|
+
t.preventDefault(), t.stopPropagation(), this.slotContents.length === t.detail.slotContents?.length ? (this._currentSlotContents = t.detail.slotContents, this._changedSlotContents(this._currentSlotContents)) : (this.slotContents = t.detail.slotContents, this._changedSlotContents(this.slotContents));
|
|
137
136
|
}
|
|
138
|
-
_setSlotContentAtIndex(
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
(f) => f.columnId === i || f.formulaId === i
|
|
137
|
+
_setSlotContentAtIndex(t, o) {
|
|
138
|
+
const e = t?.detail?.value?.[0];
|
|
139
|
+
o >= this._currentSlotContents.length && this._removeEmptySelect();
|
|
140
|
+
for (let l = this._currentSlotContents.length; l <= o; l++)
|
|
141
|
+
this._currentSlotContents[l] || this._currentSlotContents.push({});
|
|
142
|
+
if (e && !(e === this._currentSlotContents[o]?.columnId || e === this._currentSlotContents[o]?.column || e === this._currentSlotContents[o]?.formulaId || e === this._currentSlotContents[o]?.formula)) {
|
|
143
|
+
const l = this._slotContentOptions.find(
|
|
144
|
+
(i) => i.columnId === e || i.formulaId === e
|
|
147
145
|
);
|
|
148
|
-
|
|
146
|
+
l && (this._currentSlotContents[o] = structuredClone(l));
|
|
149
147
|
}
|
|
150
148
|
this.slotContents = structuredClone(
|
|
151
149
|
this._currentSlotContents.filter(
|
|
152
|
-
(
|
|
150
|
+
(l) => l.columnId || l.formulaId || l.column || l.formula
|
|
153
151
|
)
|
|
154
152
|
), this._changedSlotContents(this.slotContents);
|
|
155
153
|
}
|
|
156
|
-
_setSlotContents(
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
(i = this.slotConfiguration) != null && i.canAcceptMultipleDataItems && t.length > 1 || (t = t.slice(0, 1)), this._currentSlotContents = ((e = this._currentSlotContents) == null ? void 0 : e.filter((s) => t.includes(s.columnId ?? s.formulaId))) ?? [], t.forEach((s) => {
|
|
154
|
+
_setSlotContents(t) {
|
|
155
|
+
let o = t.detail.value;
|
|
156
|
+
this.slotConfiguration?.canAcceptMultipleDataItems && o.length > 1 || (o = o.slice(0, 1)), this._currentSlotContents = this._currentSlotContents?.filter((e) => o.includes(e.columnId ?? e.formulaId)) ?? [], o.forEach((e) => {
|
|
160
157
|
if (this._currentSlotContents.some(
|
|
161
|
-
(
|
|
158
|
+
(i) => i.columnId === e || i.formulaId === e
|
|
162
159
|
))
|
|
163
160
|
return;
|
|
164
|
-
const
|
|
165
|
-
(
|
|
161
|
+
const l = this._slotContentOptions.find(
|
|
162
|
+
(i) => i.columnId === e || i.formulaId === e
|
|
166
163
|
);
|
|
167
|
-
|
|
164
|
+
l && this._currentSlotContents.push(structuredClone(l));
|
|
168
165
|
}), this.slotContents = structuredClone(this._currentSlotContents), this._changedSlotContents(this._currentSlotContents);
|
|
169
166
|
}
|
|
170
167
|
_createSlotContentOptions() {
|
|
171
|
-
|
|
172
|
-
const o
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
if ((((t = this.slotConfiguration) == null ? void 0 : t.acceptableDataItemTypes) ?? [
|
|
168
|
+
const t = [];
|
|
169
|
+
for (const o of this.datasetsDataItems ?? []) {
|
|
170
|
+
const e = o?.columns ?? [], l = o?.formulas ?? [];
|
|
171
|
+
for (const i of e)
|
|
172
|
+
if ((this.slotConfiguration?.acceptableDataItemTypes ?? [
|
|
177
173
|
"hierarchy",
|
|
178
174
|
"numeric",
|
|
179
175
|
"datetime",
|
|
180
176
|
"array[hierarchy]",
|
|
181
177
|
"array[numeric]",
|
|
182
178
|
"array[datetime]"
|
|
183
|
-
]).includes(
|
|
184
|
-
const r = structuredClone(
|
|
185
|
-
r.columnId =
|
|
179
|
+
]).includes(i.type)) {
|
|
180
|
+
const r = structuredClone(i);
|
|
181
|
+
r.columnId = i.id, r.datasetId = o.id, r.label = i.name, delete r.name, delete r.id, t.push(r);
|
|
186
182
|
}
|
|
187
|
-
if (
|
|
188
|
-
for (const
|
|
189
|
-
const r = structuredClone(
|
|
190
|
-
r.formulaId =
|
|
183
|
+
if (this.slotConfiguration?.canAcceptFormula)
|
|
184
|
+
for (const i of l) {
|
|
185
|
+
const r = structuredClone(i);
|
|
186
|
+
r.formulaId = i.id, r.datasetId = o.id, r.label = i.name, delete r.name, delete r.id, t.push(r);
|
|
191
187
|
}
|
|
192
188
|
}
|
|
193
|
-
return
|
|
189
|
+
return t;
|
|
194
190
|
}
|
|
195
191
|
_createSelectOptions() {
|
|
196
|
-
|
|
197
|
-
const o
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
(((t = this.slotConfiguration) == null ? void 0 : t.acceptableDataItemTypes) ?? [
|
|
192
|
+
const t = [];
|
|
193
|
+
for (const o of this.datasetsDataItems ?? []) {
|
|
194
|
+
const e = o?.columns ?? [], l = o?.formulas ?? [];
|
|
195
|
+
for (const i of e)
|
|
196
|
+
(this.slotConfiguration?.acceptableDataItemTypes ?? [
|
|
202
197
|
"hierarchy",
|
|
203
198
|
"numeric",
|
|
204
199
|
"datetime",
|
|
205
200
|
"array[hierarchy]",
|
|
206
201
|
"array[numeric]",
|
|
207
202
|
"array[datetime]"
|
|
208
|
-
]).includes(
|
|
209
|
-
value:
|
|
210
|
-
label:
|
|
211
|
-
icon:
|
|
203
|
+
]).includes(i.type) && t.push({
|
|
204
|
+
value: i.id,
|
|
205
|
+
label: g(i?.name ?? {}, this.language),
|
|
206
|
+
icon: h(i, this.size)
|
|
212
207
|
});
|
|
213
|
-
if (
|
|
214
|
-
for (const
|
|
215
|
-
|
|
216
|
-
value:
|
|
217
|
-
label:
|
|
218
|
-
icon:
|
|
208
|
+
if (this.slotConfiguration?.canAcceptFormula)
|
|
209
|
+
for (const i of l)
|
|
210
|
+
t.push({
|
|
211
|
+
value: i.id,
|
|
212
|
+
label: g(i?.name ?? {}, this.language),
|
|
213
|
+
icon: h(i, this.size)
|
|
219
214
|
});
|
|
220
215
|
}
|
|
221
|
-
return
|
|
216
|
+
return t;
|
|
222
217
|
}
|
|
223
218
|
_renderFieldLabel() {
|
|
224
|
-
return
|
|
225
|
-
>${this.label ??
|
|
219
|
+
return a`<luzmo-field-label for="data-item" size=${this.size}
|
|
220
|
+
>${this.label ?? f("Select...")}
|
|
226
221
|
</luzmo-field-label>`;
|
|
227
222
|
}
|
|
228
223
|
_removeEmptySelect() {
|
|
@@ -232,13 +227,13 @@ let n = class extends I($, {
|
|
|
232
227
|
this._hasExtraEmptySelects = !0;
|
|
233
228
|
}
|
|
234
229
|
_renderExtraDataItemButton() {
|
|
235
|
-
return
|
|
230
|
+
return a`<div class="extra-data-item-button-container">
|
|
236
231
|
<luzmo-action-button
|
|
237
232
|
size="xs"
|
|
238
233
|
@click=${this._addDataItem}
|
|
239
234
|
?disabled=${this._hasExtraEmptySelects}
|
|
240
235
|
>
|
|
241
|
-
${
|
|
236
|
+
${m(v)}
|
|
242
237
|
</luzmo-action-button>
|
|
243
238
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
244
239
|
Add data item
|
|
@@ -246,19 +241,17 @@ let n = class extends I($, {
|
|
|
246
241
|
</div>`;
|
|
247
242
|
}
|
|
248
243
|
_renderSingleSelect() {
|
|
249
|
-
const
|
|
250
|
-
(
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
${this.
|
|
254
|
-
|
|
255
|
-
${((s = this.slotContents) == null ? void 0 : s.length) > 0 && !(this.hideConfiguration && this.hideDelete) ? c`<div class="controls">
|
|
256
|
-
${this.hideConfiguration ? "" : c`<luzmo-action-button
|
|
244
|
+
const t = this._renderFieldLabel(), o = this._currentSlotContents.map(
|
|
245
|
+
(e, l) => a` <div class="select-container">
|
|
246
|
+
${this.hasLabel && l === 0 ? t : ""}
|
|
247
|
+
${this._renderSelectMenu(l)}
|
|
248
|
+
${this.slotContents?.length > 0 && !(this.hideConfiguration && this.hideDelete) ? a`<div class="controls">
|
|
249
|
+
${this.hideConfiguration ? "" : a`<luzmo-action-button
|
|
257
250
|
.size=${this.size}
|
|
258
251
|
quiet
|
|
259
|
-
id=${`trigger-${
|
|
252
|
+
id=${`trigger-${l}`}
|
|
260
253
|
>
|
|
261
|
-
${d
|
|
254
|
+
${m(d)}
|
|
262
255
|
<luzmo-tooltip
|
|
263
256
|
self-managed
|
|
264
257
|
placement="top"
|
|
@@ -267,10 +260,10 @@ let n = class extends I($, {
|
|
|
267
260
|
edit
|
|
268
261
|
</luzmo-tooltip>
|
|
269
262
|
</luzmo-action-button>`}
|
|
270
|
-
${this.hideDelete ? "" :
|
|
271
|
-
@click=${this._emptySlotContents.bind(this,
|
|
263
|
+
${this.hideDelete ? "" : a`<div
|
|
264
|
+
@click=${this._emptySlotContents.bind(this, l)}
|
|
272
265
|
>
|
|
273
|
-
${
|
|
266
|
+
${m(p)}
|
|
274
267
|
<luzmo-tooltip
|
|
275
268
|
self-managed
|
|
276
269
|
placement="top"
|
|
@@ -280,26 +273,25 @@ let n = class extends I($, {
|
|
|
280
273
|
</luzmo-tooltip>
|
|
281
274
|
</div>`}
|
|
282
275
|
</div>` : ""}
|
|
283
|
-
${
|
|
284
|
-
trigger=${`trigger-${
|
|
276
|
+
${this.slotContents?.length > 0 ? a`<luzmo-overlay
|
|
277
|
+
trigger=${`trigger-${l}@click`}
|
|
285
278
|
.placement=${this.placement}
|
|
286
279
|
>
|
|
287
280
|
<luzmo-slot-menu
|
|
288
281
|
language=${this.language}
|
|
289
282
|
content-language=${this.language}
|
|
290
|
-
slot-type=${
|
|
283
|
+
slot-type=${this.slotConfiguration?.type}
|
|
291
284
|
.slotContents=${this._currentSlotContents}
|
|
292
|
-
.slotIndex=${
|
|
285
|
+
.slotIndex=${this.slotConfiguration?.canAcceptMultipleDataItems ? l : void 0}
|
|
293
286
|
variant="popup"
|
|
294
287
|
.size=${this.size}
|
|
295
288
|
@slot-contents-changed=${this._onSlotMenuChanges}
|
|
296
289
|
></luzmo-slot-menu>
|
|
297
290
|
</luzmo-overlay>` : ""}
|
|
298
|
-
</div
|
|
299
|
-
}
|
|
291
|
+
</div>`
|
|
300
292
|
);
|
|
301
|
-
return this._hasExtraEmptySelects &&
|
|
302
|
-
|
|
293
|
+
return this._hasExtraEmptySelects && o.push(
|
|
294
|
+
a`<div class="select-container">
|
|
303
295
|
${this._renderSelectMenu(this._currentSlotContents.length)}
|
|
304
296
|
<div class="controls">
|
|
305
297
|
<luzmo-action-button
|
|
@@ -307,42 +299,41 @@ let n = class extends I($, {
|
|
|
307
299
|
quiet
|
|
308
300
|
@click=${this._removeEmptySelect}
|
|
309
301
|
>
|
|
310
|
-
${
|
|
302
|
+
${m(p)}
|
|
311
303
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
312
304
|
Delete
|
|
313
305
|
</luzmo-tooltip>
|
|
314
306
|
</luzmo-action-button>
|
|
315
307
|
</div>
|
|
316
308
|
</div>`
|
|
317
|
-
),
|
|
309
|
+
), o.push(this._renderExtraDataItemButton()), o;
|
|
318
310
|
}
|
|
319
311
|
_renderMultipleSelect() {
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
${this.
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
${d(z)}
|
|
312
|
+
const t = this._renderFieldLabel();
|
|
313
|
+
return a`<div class="select-container">
|
|
314
|
+
${this.hasLabel ? t : ""} ${this._renderSelectMenu()}
|
|
315
|
+
${this.slotContents?.length > 0 && !(this.hideConfiguration && this.hideDelete) ? a`<div class="controls">
|
|
316
|
+
${this.hideConfiguration ? "" : a`<luzmo-action-button .size=${this.size} quiet id="trigger">
|
|
317
|
+
${m(d)}
|
|
327
318
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
328
319
|
edit
|
|
329
320
|
</luzmo-tooltip>
|
|
330
321
|
</luzmo-action-button>`}
|
|
331
|
-
${this.hideDelete ? "" :
|
|
332
|
-
${
|
|
322
|
+
${this.hideDelete ? "" : a`<div @click=${this._emptySlotContents}>
|
|
323
|
+
${m(p)}
|
|
333
324
|
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
|
334
325
|
Delete
|
|
335
326
|
</luzmo-tooltip>
|
|
336
327
|
</div>`}
|
|
337
328
|
</div>` : ""}
|
|
338
|
-
${
|
|
329
|
+
${this.slotContents?.length > 0 ? a`<luzmo-overlay
|
|
339
330
|
trigger="trigger@click"
|
|
340
331
|
.placement=${this.placement}
|
|
341
332
|
>
|
|
342
333
|
<luzmo-slot-menu
|
|
343
334
|
language=${this.language}
|
|
344
335
|
content-language=${this.language}
|
|
345
|
-
slot-type=${
|
|
336
|
+
slot-type=${this.slotConfiguration?.type}
|
|
346
337
|
.slotContents=${this._currentSlotContents}
|
|
347
338
|
variant="popup"
|
|
348
339
|
.size=${this.size}
|
|
@@ -351,10 +342,9 @@ let n = class extends I($, {
|
|
|
351
342
|
</luzmo-overlay>` : ""}
|
|
352
343
|
</div>`;
|
|
353
344
|
}
|
|
354
|
-
_renderSelectMenu(
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
return o && o >= this._currentSlotContents.length ? t = [] : (t = (i = this._currentSlotContents) == null ? void 0 : i.map((s) => s.columnId ?? s.formulaId ?? s.column ?? s.formula), this.selects === "single" && (t == null ? void 0 : t.length) > 0 && (t = [t[o ?? 0]])), c`<luzmo-select
|
|
345
|
+
_renderSelectMenu(t) {
|
|
346
|
+
let o;
|
|
347
|
+
return t && t >= this._currentSlotContents.length ? o = [] : (o = this._currentSlotContents?.map((e) => e.columnId ?? e.formulaId ?? e.column ?? e.formula), this.selects === "single" && o?.length > 0 && (o = [o[t ?? 0]])), a`<luzmo-select
|
|
358
348
|
label="Select..."
|
|
359
349
|
id="expression"
|
|
360
350
|
size=${this.size}
|
|
@@ -363,23 +353,22 @@ let n = class extends I($, {
|
|
|
363
353
|
placement="bottom-start"
|
|
364
354
|
?disabled=${this.disabled}
|
|
365
355
|
.options=${this._selectOptions}
|
|
366
|
-
.value=${
|
|
367
|
-
selects=${this.selects === "multiple" &&
|
|
368
|
-
data-index=${
|
|
356
|
+
.value=${o}
|
|
357
|
+
selects=${this.selects === "multiple" && this.slotConfiguration?.canAcceptMultipleDataItems ? "multiple" : "single"}
|
|
358
|
+
data-index=${t ?? 0}
|
|
369
359
|
@change=${this._handleSelectChange}
|
|
370
360
|
>
|
|
371
361
|
</luzmo-select>`;
|
|
372
362
|
}
|
|
373
|
-
_handleSelectChange(
|
|
374
|
-
var t;
|
|
363
|
+
_handleSelectChange(t) {
|
|
375
364
|
if (this.selects === "single") {
|
|
376
|
-
const
|
|
377
|
-
this._setSlotContentAtIndex(
|
|
365
|
+
const e = t.currentTarget?.dataset?.index, l = e ? Number.parseInt(e, 10) : 0;
|
|
366
|
+
this._setSlotContentAtIndex(t, Number.isNaN(l) ? 0 : l);
|
|
378
367
|
} else
|
|
379
|
-
this._setSlotContents(
|
|
368
|
+
this._setSlotContents(t);
|
|
380
369
|
}
|
|
381
370
|
_slotContentsPickerMarkup() {
|
|
382
|
-
return
|
|
371
|
+
return a`
|
|
383
372
|
<div class="container">
|
|
384
373
|
${this.selects === "multiple" ? this._renderMultipleSelect() : this._renderSingleSelect()}
|
|
385
374
|
</div>
|
|
@@ -387,84 +376,84 @@ let n = class extends I($, {
|
|
|
387
376
|
}
|
|
388
377
|
render() {
|
|
389
378
|
return this._loadSlotsConfig.render({
|
|
390
|
-
pending: () =>
|
|
391
|
-
complete: (
|
|
392
|
-
if (this.slotName && this.itemType &&
|
|
393
|
-
const
|
|
394
|
-
(
|
|
379
|
+
pending: () => a`<p>Loading...</p>`,
|
|
380
|
+
complete: (t) => {
|
|
381
|
+
if (this.slotName && this.itemType && t) {
|
|
382
|
+
const o = t.find(
|
|
383
|
+
(e) => e.name === this.slotName
|
|
395
384
|
);
|
|
396
|
-
|
|
385
|
+
o && (this.slotConfiguration = o);
|
|
397
386
|
}
|
|
398
387
|
return this._slotContentsPickerMarkup();
|
|
399
388
|
},
|
|
400
|
-
error: (
|
|
389
|
+
error: (t) => a`
|
|
401
390
|
<div>
|
|
402
391
|
Could not load slot-contents-picker: '${this.slotName}' of chart
|
|
403
|
-
'${this.itemType}': ${
|
|
392
|
+
'${this.itemType}': ${t}.
|
|
404
393
|
</div>
|
|
405
394
|
`
|
|
406
395
|
});
|
|
407
396
|
}
|
|
408
397
|
};
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
],
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
],
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
],
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
],
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
],
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
],
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
],
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
],
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
],
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
],
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
],
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
],
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
],
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
],
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
],
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
],
|
|
458
|
-
|
|
459
|
-
x()
|
|
460
|
-
], n.prototype, "_hasExtraEmptySelects", 2);
|
|
461
|
-
a([
|
|
462
|
-
m({ type: Boolean, reflect: !0 })
|
|
463
|
-
], n.prototype, "stretch", 2);
|
|
464
|
-
n = a([
|
|
398
|
+
s.styles = y(I);
|
|
399
|
+
n([
|
|
400
|
+
c({ type: String, reflect: !0, attribute: "item-type" })
|
|
401
|
+
], s.prototype, "itemType", 2);
|
|
402
|
+
n([
|
|
403
|
+
c({ type: String, reflect: !0, attribute: "slot-name" })
|
|
404
|
+
], s.prototype, "slotName", 2);
|
|
405
|
+
n([
|
|
406
|
+
c({ type: Object })
|
|
407
|
+
], s.prototype, "slotConfiguration", 2);
|
|
408
|
+
n([
|
|
409
|
+
c({ type: Object })
|
|
410
|
+
], s.prototype, "slotContents", 2);
|
|
411
|
+
n([
|
|
412
|
+
c({ type: String, reflect: !0 })
|
|
413
|
+
], s.prototype, "language", 2);
|
|
414
|
+
n([
|
|
415
|
+
c({ type: Boolean, attribute: "disabled", reflect: !0 })
|
|
416
|
+
], s.prototype, "disabled", 2);
|
|
417
|
+
n([
|
|
418
|
+
c({ type: String, reflect: !0 })
|
|
419
|
+
], s.prototype, "menu", 2);
|
|
420
|
+
n([
|
|
421
|
+
c({ type: Boolean, attribute: "has-label", reflect: !0 })
|
|
422
|
+
], s.prototype, "hasLabel", 2);
|
|
423
|
+
n([
|
|
424
|
+
c({ type: String, reflect: !0 })
|
|
425
|
+
], s.prototype, "label", 2);
|
|
426
|
+
n([
|
|
427
|
+
c({ type: String, reflect: !0 })
|
|
428
|
+
], s.prototype, "selects", 2);
|
|
429
|
+
n([
|
|
430
|
+
c({ type: String, reflect: !0 })
|
|
431
|
+
], s.prototype, "icons", 2);
|
|
432
|
+
n([
|
|
433
|
+
c({ type: String, attribute: "placeholder", reflect: !0 })
|
|
434
|
+
], s.prototype, "placeholder", 2);
|
|
435
|
+
n([
|
|
436
|
+
c({ type: Array, reflect: !1 })
|
|
437
|
+
], s.prototype, "datasetsDataItems", 2);
|
|
438
|
+
n([
|
|
439
|
+
c({ type: String, reflect: !0 })
|
|
440
|
+
], s.prototype, "placement", 2);
|
|
441
|
+
n([
|
|
442
|
+
c({ type: Boolean, reflect: !0, attribute: "hide-delete" })
|
|
443
|
+
], s.prototype, "hideDelete", 2);
|
|
444
|
+
n([
|
|
445
|
+
c({ type: Boolean, reflect: !0, attribute: "hide-configuration" })
|
|
446
|
+
], s.prototype, "hideConfiguration", 2);
|
|
447
|
+
n([
|
|
465
448
|
C()
|
|
466
|
-
],
|
|
467
|
-
|
|
449
|
+
], s.prototype, "_hasExtraEmptySelects", 2);
|
|
450
|
+
n([
|
|
451
|
+
c({ type: Boolean, reflect: !0 })
|
|
452
|
+
], s.prototype, "stretch", 2);
|
|
453
|
+
s = n([
|
|
454
|
+
z()
|
|
455
|
+
], s);
|
|
456
|
+
customElements.get("luzmo-slot-contents-picker") || customElements.define("luzmo-slot-contents-picker", s);
|
|
468
457
|
export {
|
|
469
|
-
|
|
458
|
+
s as LuzmoSlotContentsPicker
|
|
470
459
|
};
|