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