@luzmo/analytics-components-kit 1.0.1-alpha.90 → 1.0.1-alpha.94
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/README.md +195 -0
- package/angular/README.md +1 -0
- package/angular/components/widget-menu.component.ts +25 -0
- package/angular/esm/components/widget-menu.component.d.ts +13 -0
- package/angular/esm/components/widget-menu.component.js +49 -0
- package/angular/esm/index.d.ts +3 -1
- package/angular/esm/index.js +4 -1
- package/angular/esm/types.d.ts +4 -0
- package/angular/index.ts +4 -1
- package/angular/types.ts +6 -0
- package/components/ai-chat-message-assistant/index.cjs +1 -1
- package/components/ai-chat-message-assistant/index.js +1 -0
- package/components/ai-chat-messages-container/index.cjs +1 -1
- package/components/ai-chat-messages-container/index.js +2 -2
- package/components/ai-interaction-textarea/index.cjs +1 -1
- package/components/ai-interaction-textarea/index.js +2 -1
- package/components/area-chart-options.config-C7sMAHco.cjs +20 -0
- package/components/{area-chart-options.config-u8itidsi.js → area-chart-options.config-_J0sG4NF.js} +26 -14
- package/components/{bar-chart-options.config-DIirbAJ0.js → bar-chart-options.config-D1mb5TDl.js} +35 -21
- package/components/bar-chart-options.config-DcxEkOT5.cjs +20 -0
- package/components/box-plot-options.config-SrrbDEYW.cjs +20 -0
- package/components/{box-plot-options.config-BWROiguA.js → box-plot-options.config-xu_i6ms7.js} +88 -52
- package/components/{bubble-chart-options.config-4QD8VPhU.js → bubble-chart-options.config-BacgXkJ_.js} +18 -9
- package/components/bubble-chart-options.config-Ihn6eVQI.cjs +20 -0
- package/components/{bullet-chart-options.config-3bH7uekx.js → bullet-chart-options.config-CDPpX1yc.js} +1 -1
- package/components/{bullet-chart-options.config-tWb6Fio-.cjs → bullet-chart-options.config-DfS4Bwds.cjs} +1 -1
- package/components/calculate-data-item-icon-CEa82-5u.cjs +20 -0
- package/components/calculate-data-item-icon-DjlZwMdO.js +147 -0
- package/components/{choropleth-map-options.config-CMxx3ORp.js → choropleth-map-options.config-B_W9-rhe.js} +84 -63
- package/components/choropleth-map-options.config-ZW8yoZH2.cjs +20 -0
- package/components/{circular-gauge-options.config-DhIKn44k.js → circular-gauge-options.config-DAIjz4Rl.js} +36 -23
- package/components/circular-gauge-options.config-msZ4mfpN.cjs +20 -0
- package/components/color-B6LaL8qz.cjs +20 -0
- package/components/{color-B7m0j8lX.js → color-DuJ4-73S.js} +950 -941
- package/components/{color-range-utils-BSfqtB3A.js → color-range-utils-Bvo9sm5A.js} +32 -31
- package/components/color-range-utils-C5yXW7ZC.cjs +20 -0
- package/components/{column-chart-options.config-D5-yR7iq.js → column-chart-options.config-B5SjBVdy.js} +37 -27
- package/components/column-chart-options.config-BjDvA7i9.cjs +20 -0
- package/components/{conditional-number-options.config-DPYsdML5.js → conditional-number-options.config-BCEpSK9J.js} +40 -24
- package/components/conditional-number-options.config-DgzUo0xi.cjs +20 -0
- package/components/dataset-icon/index.cjs +1 -1
- package/components/dataset-icon/index.js +2 -1
- package/components/dataset-selector-list/index.cjs +1 -1
- package/components/dataset-selector-list/index.js +35 -32
- package/components/dataset-selector-row/index.cjs +9 -9
- package/components/dataset-selector-row/index.js +53 -51
- 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 +5 -5
- package/components/draggable-data-item/index.js +46 -45
- package/components/draggable-data-item-level/index.cjs +11 -11
- package/components/draggable-data-item-level/index.js +73 -70
- package/components/{dropdown-filter-options.config-CGJTtgAX.js → dropdown-filter-options.config-D9dvPypF.js} +10 -7
- package/components/{dropdown-filter-options.config-DJvfCTk7.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
- package/components/droppable-slot/index.cjs +16 -16
- package/components/droppable-slot/index.js +223 -208
- package/components/edit-item/index.cjs +9 -9
- package/components/edit-item/index.js +119 -116
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/edit-option-action-button-group/index.cjs +8 -8
- package/components/edit-option-action-button-group/index.js +53 -52
- package/components/{edit-option-base-Bh29-Cak.js → edit-option-base-DIc7iC-b.js} +1 -1
- package/components/{edit-option-base-tFr8Qg2B.cjs → edit-option-base-VhTih9T1.cjs} +1 -1
- package/components/edit-option-color-palette-picker/index.cjs +1 -1
- package/components/edit-option-color-palette-picker/index.js +1 -1
- package/components/edit-option-color-picker/index.cjs +1 -1
- package/components/edit-option-color-picker/index.js +1 -1
- package/components/edit-option-color-range/index.cjs +19 -19
- package/components/edit-option-color-range/index.js +117 -106
- package/components/edit-option-multi-language-field/index.cjs +3 -3
- package/components/edit-option-multi-language-field/index.js +27 -26
- package/components/edit-option-number-field/index.cjs +1 -1
- package/components/edit-option-number-field/index.js +1 -1
- package/components/edit-option-picker/index.cjs +5 -5
- package/components/edit-option-picker/index.js +7 -7
- package/components/edit-option-position-picker/index.cjs +4 -4
- package/components/edit-option-position-picker/index.js +25 -21
- package/components/edit-option-positions-number-field/index.cjs +9 -9
- package/components/edit-option-positions-number-field/index.js +81 -76
- package/components/edit-option-radio-button-group/index.cjs +6 -6
- package/components/edit-option-radio-button-group/index.js +22 -21
- package/components/edit-option-slider/index.cjs +1 -1
- package/components/edit-option-slider/index.js +1 -1
- package/components/edit-option-switch/index.cjs +1 -1
- package/components/edit-option-switch/index.js +1 -1
- package/components/edit-option-text-field/index.cjs +2 -2
- package/components/edit-option-text-field/index.js +23 -22
- package/components/en-BKBhKBXY.cjs +20 -0
- package/components/en-BOTjhwEc.js +1488 -0
- package/components/{en-GB-ialeqj_z.js → en-GB-CEHEs8F2.js} +1 -1
- package/components/{en-GB-TqvgIw9B.cjs → en-GB-DG6uS3sM.cjs} +1 -1
- package/components/{evolution-number-options.config-Bc9eKYnn.cjs → evolution-number-options.config-BgIZY4gQ.cjs} +1 -1
- package/components/{evolution-number-options.config-BIPO_4n3.js → evolution-number-options.config-DzkfeoIN.js} +14 -11
- package/components/{extrapolate-color-C0n1UDs-.cjs → extrapolate-color-0j_AeYkz.cjs} +1 -1
- package/components/{extrapolate-color-v1PimdQr.js → extrapolate-color-CC9CURf6.js} +1 -1
- package/components/filter-data-item-picker/index.cjs +7 -7
- package/components/filter-data-item-picker/index.js +86 -85
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +6 -6
- package/components/filter-item/index.js +119 -109
- package/components/filter-value-picker/index.cjs +2 -2
- package/components/filter-value-picker/index.js +36 -34
- package/components/filter-value-picker-datetime/index.cjs +8 -8
- package/components/filter-value-picker-datetime/index.js +71 -56
- package/components/filter-value-picker-hierarchy/index.cjs +12 -12
- package/components/filter-value-picker-hierarchy/index.js +124 -113
- package/components/filter-value-picker-numeric/index.cjs +8 -8
- package/components/filter-value-picker-numeric/index.js +110 -101
- package/components/focusable-B3E_hQmm.cjs +20 -0
- package/components/{focusable-BS2pbY7w.js → focusable-DCIFkpiW.js} +26 -24
- package/components/{funnel-chart-options.config-CrJy2U7_.js → funnel-chart-options.config-C_VjTOvD.js} +20 -5
- package/components/funnel-chart-options.config-D7H7gFcx.cjs +20 -0
- package/components/get-css-variable-BEYG097C.js +1446 -0
- package/components/get-css-variable-BZxY4IOa.cjs +35 -0
- package/components/get-css-variable-DLiZYZEi.cjs +24 -0
- package/components/{get-css-variable-CdwF98oh.js → get-css-variable-YlLiVgo8.js} +35 -35
- package/components/grid/index.cjs +49 -43
- package/components/grid/index.js +1878 -2610
- package/components/{heat-map-options.config-CmL87j1j.js → heat-map-options.config-BnLWe8jS.js} +41 -35
- package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
- package/components/heat-table-options.config-B12JEYnp.cjs +20 -0
- package/components/{heat-table-options.config-BrCYAgYD.js → heat-table-options.config-CUsDdgUr.js} +88 -60
- package/components/helpers-DXQwEH1P.cjs +20 -0
- package/components/helpers-v1bPALRP.js +91 -0
- package/components/hexbin-map-options.config-DZERRhM8.cjs +20 -0
- package/components/{hexbin-map-options.config-BguV1w8q.js → hexbin-map-options.config-F-7uCqxb.js} +38 -20
- package/components/{index-BNAmjOkm.cjs → index-BPNsFiyq.cjs} +4 -4
- package/components/index-CDi4fe3N.js +1716 -0
- package/components/index-CQ9ck-BO.cjs +249 -0
- package/components/index-CXn67vdn.cjs +121 -0
- package/components/{index-haa7WNrl.js → index-CdIUfo-L.js} +481 -453
- package/components/index-Cz9vSXy6.cjs +20 -0
- package/components/{index-DdyZ2g5L.js → index-D0GBF6tg.js} +104 -94
- package/components/index-Dn0j_pcR.cjs +20 -0
- package/components/{index-CqKpf0B8.js → index-Do7O9azB.js} +123 -112
- package/components/index-E239Dotg.js +1735 -0
- package/components/index.cjs +1 -1
- package/components/index.js +20 -18
- package/components/item-options-configs.cjs +1 -1
- package/components/item-options-configs.js +37 -37
- package/components/{line-chart-options.config-BhirTGqD.js → line-chart-options.config-DB3IsXXr.js} +28 -13
- package/components/line-chart-options.config-DSugoe0t.cjs +20 -0
- package/components/{localize-CcDpq940.js → localize-BX7q0S0M.js} +10 -10
- package/components/{localize-C4zNlrwK.cjs → localize-r7ALOUy_.cjs} +1 -1
- package/components/{marker-map-options.config-Bx17jmiq.js → marker-map-options.config-DPJ955tt.js} +1 -1
- package/components/{marker-map-options.config-CvhCylSC.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
- package/components/pivot-table-options.config-BiJXKSFR.cjs +20 -0
- package/components/{pivot-table-options.config-CFc7y0IT.js → pivot-table-options.config-DNK_AIG7.js} +24 -15
- package/components/pyramid-chart-options.config-C4zbFS26.cjs +20 -0
- package/components/{pyramid-chart-options.config-2Waxb11l.js → pyramid-chart-options.config-CcVMatYx.js} +43 -29
- package/components/{radar-chart-options.config-CPN5fOl8.js → radar-chart-options.config-CUZn_3Fd.js} +23 -11
- package/components/radar-chart-options.config-EqQu6PTh.cjs +20 -0
- package/components/{regular-table-options.config-CFKCJQK1.js → regular-table-options.config-BoLZsBry.js} +23 -17
- package/components/{regular-table-options.config-YRuoijIk.cjs → regular-table-options.config-DTx3RTnS.cjs} +1 -1
- package/components/{route-map-options.config-CyolTJfK.js → route-map-options.config-CN86T7c0.js} +109 -87
- package/components/route-map-options.config-D7NJePTu.cjs +20 -0
- package/components/{sankey-diagram-options.config-D7OSvSqm.cjs → sankey-diagram-options.config-RFB83YLZ.cjs} +1 -1
- package/components/{sankey-diagram-options.config-Ldjk84ro.js → sankey-diagram-options.config-tVLKy_Zn.js} +10 -7
- package/components/scatter-plot-options.config-CFfGJXsV.cjs +20 -0
- package/components/{scatter-plot-options.config-CfxEfkQ1.js → scatter-plot-options.config-Corlzno1.js} +86 -56
- package/components/{search-filter-options.config-Oqco9BKj.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
- package/components/{search-filter-options.config-C0syQmP4.js → search-filter-options.config-BE3JhR-F.js} +6 -3
- package/components/{set-locale-hKTMz37h.js → set-locale-Dp3N_gXN.js} +8 -1
- package/components/{slicer-filter-options.config-DmOe3440.js → slicer-filter-options.config-3JZZcw5C.js} +18 -9
- package/components/slicer-filter-options.config-DNI-XevE.cjs +20 -0
- package/components/{slider-filter-options.config-B1M8RcDs.js → slider-filter-options.config-DH4SS8wH.js} +1 -1
- package/components/{slider-filter-options.config-k45I-t6G.cjs → slider-filter-options.config-_8Z2zKmU.cjs} +1 -1
- package/components/slot-contents-picker/index.cjs +33 -33
- package/components/slot-contents-picker/index.js +205 -194
- package/components/slot-menu/index.cjs +12 -12
- package/components/slot-menu/index.js +184 -171
- package/components/slot-menu-list/index.cjs +3 -3
- package/components/slot-menu-list/index.js +103 -97
- package/components/speedometer-chart-options.config-BX9LTQBH.cjs +20 -0
- package/components/{speedometer-chart-options.config-CzOmuEF8.js → speedometer-chart-options.config-SL581yOa.js} +53 -31
- package/components/{spike-map-options.config-Cbt1YUw6.js → spike-map-options.config-C5KewecZ.js} +122 -91
- package/components/spike-map-options.config-DoBFXPmN.cjs +20 -0
- package/components/{sunburst-chart-options.config-Yrxc2i57.cjs → sunburst-chart-options.config-AbNjWS6t.cjs} +1 -1
- package/components/{sunburst-chart-options.config-_dyLQxPJ.js → sunburst-chart-options.config-CNauGQJv.js} +20 -9
- package/components/{symbol-map-options.config-BORL1NSU.js → symbol-map-options.config-DdDA4aa7.js} +20 -11
- package/components/symbol-map-options.config-m-lwLTtu.cjs +20 -0
- package/components/treemap-chart-options.config-C0Q9aQ1Z.cjs +20 -0
- package/components/{treemap-chart-options.config-B9i9qIm_.js → treemap-chart-options.config-D5AJaF_u.js} +37 -20
- package/components/utils.cjs +1 -1
- package/components/utils.js +97 -94
- package/components/{video-options.config-B0asgYt8.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
- package/components/{video-options.config-UX-9MDfS.js → video-options.config-Dk36zJ1B.js} +10 -7
- package/components/widget-menu/index.cjs +51 -0
- package/components/widget-menu/index.d.ts +8 -0
- package/components/widget-menu/index.js +211 -0
- package/components/widget-menu/widget-menu.d.ts +77 -0
- 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 +133 -20
- package/index.d.ts +1 -0
- package/package.json +6 -1
- package/types.d.ts +4 -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-DMDhKq_m.js +0 -147
- package/components/calculate-data-item-icon-DtVGbet3.cjs +0 -20
- package/components/choropleth-map-options.config-CWJACFd0.cjs +0 -20
- package/components/circular-gauge-options.config-BMxgq3zH.cjs +0 -20
- package/components/color-Czp4Im5q.cjs +0 -20
- package/components/color-range-utils-DYYR-iwx.cjs +0 -20
- package/components/column-chart-options.config-BV9R3ssH.cjs +0 -20
- package/components/conditional-number-options.config-Co099Qfm.cjs +0 -20
- package/components/donut-chart-options.config-BQyPgnC9.cjs +0 -20
- package/components/en-D3ihEGXg.js +0 -1483
- package/components/en-DZcn_iz_.cjs +0 -20
- package/components/focusable-QLh-LlNt.cjs +0 -20
- package/components/funnel-chart-options.config-DrP4AFgk.cjs +0 -20
- package/components/get-css-variable-COd1d84B.cjs +0 -24
- package/components/heat-map-options.config-CIHnPdYE.cjs +0 -20
- package/components/heat-table-options.config-DTlZRc_i.cjs +0 -20
- package/components/helpers-9I0oLoUB.cjs +0 -20
- package/components/helpers-bR8Ibjqh.js +0 -79
- package/components/hexbin-map-options.config-CKnn3VAB.cjs +0 -20
- package/components/index-BekTY3Em.cjs +0 -121
- package/components/index-CFL6gmIu.cjs +0 -20
- package/components/index-DNPULp4A.js +0 -1755
- package/components/index-DvkzMbLt.cjs +0 -249
- package/components/line-chart-options.config-Cqwou5u6.cjs +0 -20
- package/components/pivot-table-options.config-uZDAertf.cjs +0 -20
- package/components/pyramid-chart-options.config-DoGfEvzU.cjs +0 -20
- package/components/radar-chart-options.config-CtNUMN1l.cjs +0 -20
- package/components/route-map-options.config-CVTk5RVL.cjs +0 -20
- package/components/scatter-plot-options.config-5gN7pMTm.cjs +0 -20
- package/components/slicer-filter-options.config-CrusP6a0.cjs +0 -20
- package/components/speedometer-chart-options.config-B4ceg_qI.cjs +0 -20
- package/components/spike-map-options.config-BkkDqb4g.cjs +0 -20
- package/components/symbol-map-options.config-NpBKm64d.cjs +0 -20
- package/components/treemap-chart-options.config-x4J54WSw.cjs +0 -20
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
import { Task as f } from "@lit/task";
|
|
21
21
|
import "@luzmo/lucero/accordion";
|
|
22
22
|
import "@luzmo/lucero/divider";
|
|
23
|
-
import { html as
|
|
24
|
-
import { property as
|
|
25
|
-
import { L as h } from "../focusable-
|
|
26
|
-
import { g as b } from "../index-
|
|
23
|
+
import { html as m, unsafeCSS as u } from "lit";
|
|
24
|
+
import { property as a } from "lit/decorators.js";
|
|
25
|
+
import { L as h } from "../focusable-DCIFkpiW.js";
|
|
26
|
+
import { g as b } from "../index-CdIUfo-L.js";
|
|
27
27
|
(function() {
|
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
29
29
|
const i = document.createElement("style");
|
|
@@ -31,83 +31,83 @@ import { g as b } from "../index-haa7WNrl.js";
|
|
|
31
31
|
}
|
|
32
32
|
})();
|
|
33
33
|
const g = ":host{font-size:var(--luzmo-edit-item-font-size, var(--luzmo-font-size))}:host luzmo-divider{display:block;margin:var(--luzmo-edit-item-divider-vertical-margin, calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2))) 0}:host luzmo-edit-option{display:block;margin:var(--luzmo-edit-option-divider-vertical-margin, var(--luzmo-spacing-4)) 0}:host([size=s]){font-size:var(--luzmo-edit-item-font-size-s, var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-edit-item-font-size-l, var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-edit-item-font-size-xl, var(--luzmo-font-size-xl))}";
|
|
34
|
-
var z = Object.defineProperty,
|
|
35
|
-
for (var
|
|
36
|
-
(s = d[
|
|
37
|
-
return
|
|
34
|
+
var z = Object.defineProperty, l = (d, i, e, n) => {
|
|
35
|
+
for (var o = void 0, r = d.length - 1, s; r >= 0; r--)
|
|
36
|
+
(s = d[r]) && (o = s(i, e, o) || o);
|
|
37
|
+
return o && z(i, e, o), o;
|
|
38
38
|
};
|
|
39
39
|
const c = class c extends h {
|
|
40
40
|
constructor() {
|
|
41
41
|
super(...arguments), this._loadItemConfig = new f(this, {
|
|
42
42
|
task: async ([
|
|
43
43
|
i,
|
|
44
|
-
|
|
44
|
+
e,
|
|
45
45
|
n,
|
|
46
|
-
|
|
46
|
+
o
|
|
47
47
|
]) => {
|
|
48
|
-
let
|
|
48
|
+
let r = !1;
|
|
49
49
|
if (i && i !== this._itemTypeLoaded && !n) {
|
|
50
50
|
const s = /* @__PURE__ */ Object.assign({
|
|
51
|
-
"../../item-definitions/area-chart/area-chart-options.config.ts": () => import("../area-chart-options.config-
|
|
52
|
-
"../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("../bar-chart-options.config-
|
|
53
|
-
"../../item-definitions/box-plot/box-plot-options.config.ts": () => import("../box-plot-options.config-
|
|
54
|
-
"../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("../bubble-chart-options.config-
|
|
55
|
-
"../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("../bullet-chart-options.config-
|
|
56
|
-
"../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("../choropleth-map-options.config-
|
|
51
|
+
"../../item-definitions/area-chart/area-chart-options.config.ts": () => import("../area-chart-options.config-_J0sG4NF.js"),
|
|
52
|
+
"../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("../bar-chart-options.config-D1mb5TDl.js"),
|
|
53
|
+
"../../item-definitions/box-plot/box-plot-options.config.ts": () => import("../box-plot-options.config-xu_i6ms7.js"),
|
|
54
|
+
"../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("../bubble-chart-options.config-BacgXkJ_.js"),
|
|
55
|
+
"../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("../bullet-chart-options.config-CDPpX1yc.js"),
|
|
56
|
+
"../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("../choropleth-map-options.config-B_W9-rhe.js"),
|
|
57
57
|
"../../item-definitions/circle-pack-chart/circle-pack-chart-options.config.ts": () => import("../circle-pack-chart-options.config-DEYL3DMK.js"),
|
|
58
|
-
"../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("../circular-gauge-options.config-
|
|
59
|
-
"../../item-definitions/column-chart/column-chart-options.config.ts": () => import("../column-chart-options.config-
|
|
58
|
+
"../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("../circular-gauge-options.config-DAIjz4Rl.js"),
|
|
59
|
+
"../../item-definitions/column-chart/column-chart-options.config.ts": () => import("../column-chart-options.config-B5SjBVdy.js"),
|
|
60
60
|
"../../item-definitions/combination-chart/combination-chart-options.config.ts": () => import("../combination-chart-options.config-CApdgFvv.js"),
|
|
61
|
-
"../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("../conditional-number-options.config-
|
|
62
|
-
"../../item-definitions/date-comparison-filter/date-comparison-filter-options.config.ts": () => import("../date-comparison-filter-options.config-
|
|
63
|
-
"../../item-definitions/date-filter/date-filter-options.config.ts": () => import("../date-filter-options.config-
|
|
64
|
-
"../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("../donut-chart-options.config-
|
|
65
|
-
"../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("../dropdown-filter-options.config-
|
|
66
|
-
"../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("../evolution-number-options.config-
|
|
67
|
-
"../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("../funnel-chart-options.config-
|
|
68
|
-
"../../item-definitions/heat-map/heat-map-options.config.ts": () => import("../heat-map-options.config-
|
|
69
|
-
"../../item-definitions/heat-table/heat-table-options.config.ts": () => import("../heat-table-options.config-
|
|
70
|
-
"../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("../hexbin-map-options.config-
|
|
61
|
+
"../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("../conditional-number-options.config-BCEpSK9J.js"),
|
|
62
|
+
"../../item-definitions/date-comparison-filter/date-comparison-filter-options.config.ts": () => import("../date-comparison-filter-options.config-JA_yYpJa.js"),
|
|
63
|
+
"../../item-definitions/date-filter/date-filter-options.config.ts": () => import("../date-filter-options.config-DBRxlTWy.js"),
|
|
64
|
+
"../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("../donut-chart-options.config-BulUEiaH.js"),
|
|
65
|
+
"../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("../dropdown-filter-options.config-D9dvPypF.js"),
|
|
66
|
+
"../../item-definitions/evolution-number/evolution-number-options.config.ts": () => import("../evolution-number-options.config-DzkfeoIN.js"),
|
|
67
|
+
"../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("../funnel-chart-options.config-C_VjTOvD.js"),
|
|
68
|
+
"../../item-definitions/heat-map/heat-map-options.config.ts": () => import("../heat-map-options.config-BnLWe8jS.js"),
|
|
69
|
+
"../../item-definitions/heat-table/heat-table-options.config.ts": () => import("../heat-table-options.config-CUsDdgUr.js"),
|
|
70
|
+
"../../item-definitions/hexbin-map/hexbin-map-options.config.ts": () => import("../hexbin-map-options.config-F-7uCqxb.js"),
|
|
71
71
|
"../../item-definitions/image/image-options.config.ts": () => import("../image-options.config-CBfeq5Zw.js"),
|
|
72
72
|
"../../item-definitions/item-options.config.ts": () => import("../item-options-configs.js"),
|
|
73
|
-
"../../item-definitions/line-chart/line-chart-options.config.ts": () => import("../line-chart-options.config-
|
|
74
|
-
"../../item-definitions/marker-map/marker-map-options.config.ts": () => import("../marker-map-options.config-
|
|
73
|
+
"../../item-definitions/line-chart/line-chart-options.config.ts": () => import("../line-chart-options.config-DB3IsXXr.js"),
|
|
74
|
+
"../../item-definitions/marker-map/marker-map-options.config.ts": () => import("../marker-map-options.config-DPJ955tt.js"),
|
|
75
75
|
"../../item-definitions/ohlc-chart/ohlc-chart-options.config.ts": () => import("../ohlc-chart-options.config-D9npwajt.js"),
|
|
76
76
|
"../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-options.config.ts": () => import("../parallel-coordinates-plot-options.config-DxB4kd58.js"),
|
|
77
|
-
"../../item-definitions/pivot-table/pivot-table-options.config.ts": () => import("../pivot-table-options.config-
|
|
78
|
-
"../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("../pyramid-chart-options.config-
|
|
79
|
-
"../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("../radar-chart-options.config-
|
|
80
|
-
"../../item-definitions/regular-table/regular-table-options.config.ts": () => import("../regular-table-options.config-
|
|
81
|
-
"../../item-definitions/route-map/route-map-options.config.ts": () => import("../route-map-options.config-
|
|
82
|
-
"../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("../sankey-diagram-options.config-
|
|
83
|
-
"../../item-definitions/scatter-plot/scatter-plot-options.config.ts": () => import("../scatter-plot-options.config-
|
|
84
|
-
"../../item-definitions/search-filter/search-filter-options.config.ts": () => import("../search-filter-options.config-
|
|
85
|
-
"../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("../slicer-filter-options.config-
|
|
86
|
-
"../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("../slider-filter-options.config-
|
|
77
|
+
"../../item-definitions/pivot-table/pivot-table-options.config.ts": () => import("../pivot-table-options.config-DNK_AIG7.js"),
|
|
78
|
+
"../../item-definitions/pyramid-chart/pyramid-chart-options.config.ts": () => import("../pyramid-chart-options.config-CcVMatYx.js"),
|
|
79
|
+
"../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("../radar-chart-options.config-CUZn_3Fd.js"),
|
|
80
|
+
"../../item-definitions/regular-table/regular-table-options.config.ts": () => import("../regular-table-options.config-BoLZsBry.js"),
|
|
81
|
+
"../../item-definitions/route-map/route-map-options.config.ts": () => import("../route-map-options.config-CN86T7c0.js"),
|
|
82
|
+
"../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("../sankey-diagram-options.config-tVLKy_Zn.js"),
|
|
83
|
+
"../../item-definitions/scatter-plot/scatter-plot-options.config.ts": () => import("../scatter-plot-options.config-Corlzno1.js"),
|
|
84
|
+
"../../item-definitions/search-filter/search-filter-options.config.ts": () => import("../search-filter-options.config-BE3JhR-F.js"),
|
|
85
|
+
"../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("../slicer-filter-options.config-3JZZcw5C.js"),
|
|
86
|
+
"../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("../slider-filter-options.config-DH4SS8wH.js"),
|
|
87
87
|
"../../item-definitions/spacer/spacer-options.config.ts": () => import("../spacer-options.config-IpwUxDyU.js"),
|
|
88
|
-
"../../item-definitions/speedometer-chart/speedometer-chart-options.config.ts": () => import("../speedometer-chart-options.config-
|
|
89
|
-
"../../item-definitions/spike-map/spike-map-options.config.ts": () => import("../spike-map-options.config-
|
|
88
|
+
"../../item-definitions/speedometer-chart/speedometer-chart-options.config.ts": () => import("../speedometer-chart-options.config-SL581yOa.js"),
|
|
89
|
+
"../../item-definitions/spike-map/spike-map-options.config.ts": () => import("../spike-map-options.config-C5KewecZ.js"),
|
|
90
90
|
"../../item-definitions/strip-plot/strip-plot-options.config.ts": () => import("../strip-plot-options.config-Bdr8yQJu.js"),
|
|
91
|
-
"../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("../sunburst-chart-options.config-
|
|
92
|
-
"../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("../symbol-map-options.config-
|
|
91
|
+
"../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("../sunburst-chart-options.config-CNauGQJv.js"),
|
|
92
|
+
"../../item-definitions/symbol-map/symbol-map-options.config.ts": () => import("../symbol-map-options.config-DdDA4aa7.js"),
|
|
93
93
|
"../../item-definitions/text/text-options.config.ts": () => import("../text-options.config-BWaJoeG2.js"),
|
|
94
|
-
"../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("../treemap-chart-options.config-
|
|
94
|
+
"../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("../treemap-chart-options.config-D5AJaF_u.js"),
|
|
95
95
|
"../../item-definitions/venn-diagram/venn-diagram-options.config.ts": () => import("../venn-diagram-options.config-CGUMA930.js"),
|
|
96
|
-
"../../item-definitions/video/video-options.config.ts": () => import("../video-options.config-
|
|
97
|
-
"../../item-definitions/wordcloud-chart/wordcloud-chart-options.config.ts": () => import("../wordcloud-chart-options.config-
|
|
96
|
+
"../../item-definitions/video/video-options.config.ts": () => import("../video-options.config-Dk36zJ1B.js"),
|
|
97
|
+
"../../item-definitions/wordcloud-chart/wordcloud-chart-options.config.ts": () => import("../wordcloud-chart-options.config-w2NUIWVA.js")
|
|
98
98
|
});
|
|
99
99
|
if (s[`../../item-definitions/${i}/${i}-options.config.ts`])
|
|
100
100
|
try {
|
|
101
|
-
const
|
|
102
|
-
this._optionsConfiguration =
|
|
103
|
-
} catch (
|
|
104
|
-
this._optionsConfiguration = [], console.error(
|
|
101
|
+
const t = await s[`../../item-definitions/${i}/${i}-options.config.ts`]();
|
|
102
|
+
this._optionsConfiguration = (t == null ? void 0 : t.default) ?? [];
|
|
103
|
+
} catch (t) {
|
|
104
|
+
this._optionsConfiguration = [], console.error(t);
|
|
105
105
|
}
|
|
106
106
|
else
|
|
107
107
|
this._optionsConfiguration = [];
|
|
108
|
-
this._isCustomOptionsConfiguration = !1,
|
|
108
|
+
this._isCustomOptionsConfiguration = !1, r = !0;
|
|
109
109
|
} else n ? (this._isCustomOptionsConfiguration = !0, this._optionsConfiguration = n) : this._optionsConfiguration = [];
|
|
110
|
-
if (
|
|
110
|
+
if (e && (e !== this._languageLoaded || r) && !o) {
|
|
111
111
|
const s = /* @__PURE__ */ Object.assign({
|
|
112
112
|
"../../item-definitions/area-chart/i18n/area-chart-options.de.ts": () => import("../area-chart-options.de-FcVE2Ywe.js"),
|
|
113
113
|
"../../item-definitions/area-chart/i18n/area-chart-options.en.ts": () => import("../area-chart-options.en-Cz5aXeVe.js"),
|
|
@@ -330,14 +330,14 @@ const c = class c extends h {
|
|
|
330
330
|
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.fr.ts": () => import("../wordcloud-chart-options.fr-DNK5Ouc5.js"),
|
|
331
331
|
"../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.nl.ts": () => import("../wordcloud-chart-options.nl-CcgmqL7I.js")
|
|
332
332
|
});
|
|
333
|
-
if (s[`../../item-definitions/${i}/i18n/${i}-options.${
|
|
333
|
+
if (s[`../../item-definitions/${i}/i18n/${i}-options.${e}.ts`])
|
|
334
334
|
try {
|
|
335
|
-
const
|
|
336
|
-
this._translations =
|
|
337
|
-
} catch (
|
|
338
|
-
this._translations = {}, console.warn("Translation file not found",
|
|
335
|
+
const t = await s[`../../item-definitions/${i}/i18n/${i}-options.${e}.ts`]();
|
|
336
|
+
this._translations = (t == null ? void 0 : t.default) ?? {};
|
|
337
|
+
} catch (t) {
|
|
338
|
+
this._translations = {}, console.warn("Translation file not found", t);
|
|
339
339
|
}
|
|
340
|
-
} else
|
|
340
|
+
} else o ? this._translations = o : this._translations = {};
|
|
341
341
|
return {
|
|
342
342
|
config: this._optionsConfiguration,
|
|
343
343
|
translations: this._translations
|
|
@@ -351,40 +351,41 @@ const c = class c extends h {
|
|
|
351
351
|
]
|
|
352
352
|
}), this.language = "en", this.options = {}, this.slots = {}, this.theme = {}, this.size = "m", this._optionsConfiguration = [], this._translations = {}, this.renderAllGroups = (i) => {
|
|
353
353
|
if (!Array.isArray(i))
|
|
354
|
-
return
|
|
355
|
-
const
|
|
356
|
-
if (n
|
|
354
|
+
return m``;
|
|
355
|
+
const e = i == null ? void 0 : i.map((n) => {
|
|
356
|
+
if (n != null && n.children)
|
|
357
357
|
return this.renderGroup(n);
|
|
358
358
|
});
|
|
359
|
-
return i && i.length > 0 ?
|
|
359
|
+
return i && i.length > 0 ? m`<luzmo-accordion
|
|
360
360
|
variant="highlight"
|
|
361
361
|
.size=${this.size}
|
|
362
362
|
density="compact"
|
|
363
363
|
allow-multiple
|
|
364
364
|
no-content-padding
|
|
365
365
|
header-case="uppercase"
|
|
366
|
-
>${
|
|
367
|
-
>` :
|
|
366
|
+
>${e}</luzmo-accordion
|
|
367
|
+
>` : m``;
|
|
368
368
|
}, this.renderGroup = (i) => {
|
|
369
|
-
|
|
369
|
+
var n, o, r;
|
|
370
|
+
if (typeof (i == null ? void 0 : i.visibleIf) == "function" && !i.visibleIf({
|
|
370
371
|
options: this.options,
|
|
371
372
|
slots: this.slots,
|
|
372
373
|
theme: this.theme
|
|
373
374
|
}))
|
|
374
|
-
return
|
|
375
|
-
const
|
|
376
|
-
if (typeof t
|
|
375
|
+
return m``;
|
|
376
|
+
const e = (s) => s == null ? void 0 : s.map((t) => {
|
|
377
|
+
if (typeof (t == null ? void 0 : t.visibleIf) == "function" && !t.visibleIf({
|
|
377
378
|
options: this.options,
|
|
378
379
|
slots: this.slots,
|
|
379
380
|
theme: this.theme
|
|
380
381
|
}))
|
|
381
|
-
return
|
|
382
|
-
if (t
|
|
383
|
-
return this.renderOptionControl(t
|
|
384
|
-
if (t
|
|
382
|
+
return m``;
|
|
383
|
+
if (t != null && t.control)
|
|
384
|
+
return this.renderOptionControl(t == null ? void 0 : t.key);
|
|
385
|
+
if ((t == null ? void 0 : t.type) === "divider")
|
|
385
386
|
return this.renderDivider();
|
|
386
|
-
if (t
|
|
387
|
-
return
|
|
387
|
+
if ((t == null ? void 0 : t.type) === "group")
|
|
388
|
+
return m`<luzmo-accordion
|
|
388
389
|
variant="highlight-child"
|
|
389
390
|
.size=${this.size}
|
|
390
391
|
density="compact"
|
|
@@ -394,36 +395,38 @@ const c = class c extends h {
|
|
|
394
395
|
>${this.renderGroup(t)}</luzmo-accordion
|
|
395
396
|
>`;
|
|
396
397
|
});
|
|
397
|
-
return
|
|
398
|
-
label=${this._translations
|
|
398
|
+
return m`<luzmo-accordion-item
|
|
399
|
+
label=${((r = (o = (n = this._translations) == null ? void 0 : n.groups) == null ? void 0 : o[i.key]) == null ? void 0 : r.label) ?? i.key}
|
|
399
400
|
?open=${i.open}
|
|
400
401
|
>
|
|
401
|
-
${
|
|
402
|
+
${e(i.children)}
|
|
402
403
|
</luzmo-accordion-item>`;
|
|
403
404
|
}, this.changedOptions = (i) => {
|
|
404
|
-
|
|
405
|
-
|
|
405
|
+
var n, o;
|
|
406
|
+
const e = (n = i == null ? void 0 : i.detail) == null ? void 0 : n.options;
|
|
407
|
+
this.options = (o = i == null ? void 0 : i.detail) == null ? void 0 : o.options, i.preventDefault(), i.stopPropagation(), this.dispatchEvent(
|
|
406
408
|
new CustomEvent("options-changed", {
|
|
407
409
|
bubbles: !0,
|
|
408
410
|
composed: !0,
|
|
409
411
|
cancelable: !0,
|
|
410
412
|
detail: {
|
|
411
|
-
options:
|
|
413
|
+
options: e
|
|
412
414
|
}
|
|
413
415
|
})
|
|
414
416
|
);
|
|
415
417
|
}, this.renderOptionControl = (i) => {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
+
var o, r;
|
|
419
|
+
let e, n;
|
|
420
|
+
return this._isCustomOptionsConfiguration && (e = b(
|
|
418
421
|
i,
|
|
419
422
|
this.customOptionsConfiguration,
|
|
420
423
|
!0
|
|
421
|
-
), n = this._translations
|
|
424
|
+
), n = (r = (o = this._translations) == null ? void 0 : o.options) == null ? void 0 : r[i]), m`<luzmo-edit-option
|
|
422
425
|
class="control"
|
|
423
426
|
.itemType=${this.itemType}
|
|
424
427
|
.optionKey=${i}
|
|
425
428
|
.options=${this.options}
|
|
426
|
-
.customOptionConfiguration=${
|
|
429
|
+
.customOptionConfiguration=${e}
|
|
427
430
|
.customTranslations=${n}
|
|
428
431
|
.slots=${this.slots}
|
|
429
432
|
.theme=${this.theme}
|
|
@@ -431,43 +434,43 @@ const c = class c extends h {
|
|
|
431
434
|
.language=${this.language}
|
|
432
435
|
@options-changed=${this.changedOptions}
|
|
433
436
|
></luzmo-edit-option>`;
|
|
434
|
-
}, this.renderDivider = () =>
|
|
437
|
+
}, this.renderDivider = () => m`<luzmo-divider></luzmo-divider>`;
|
|
435
438
|
}
|
|
436
439
|
render() {
|
|
437
440
|
return this._loadItemConfig.render({
|
|
438
|
-
pending: () =>
|
|
441
|
+
pending: () => m`<p>Loading...</p>`,
|
|
439
442
|
complete: (i) => this.renderAllGroups(i.config),
|
|
440
|
-
error: (i) => (console.error(i),
|
|
443
|
+
error: (i) => (console.error(i), m``)
|
|
441
444
|
});
|
|
442
445
|
}
|
|
443
446
|
};
|
|
444
447
|
c.styles = u(g);
|
|
445
|
-
let
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
],
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
],
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
],
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
],
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
],
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
],
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
],
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
],
|
|
470
|
-
customElements.get("luzmo-edit-item") || customElements.define("luzmo-edit-item",
|
|
448
|
+
let p = c;
|
|
449
|
+
l([
|
|
450
|
+
a({ type: String, reflect: !0 })
|
|
451
|
+
], p.prototype, "language");
|
|
452
|
+
l([
|
|
453
|
+
a({ type: String, reflect: !0, attribute: "item-type" })
|
|
454
|
+
], p.prototype, "itemType");
|
|
455
|
+
l([
|
|
456
|
+
a({ type: Object })
|
|
457
|
+
], p.prototype, "options");
|
|
458
|
+
l([
|
|
459
|
+
a({ type: Object })
|
|
460
|
+
], p.prototype, "slots");
|
|
461
|
+
l([
|
|
462
|
+
a({ type: Object, reflect: !1 })
|
|
463
|
+
], p.prototype, "customOptionsConfiguration");
|
|
464
|
+
l([
|
|
465
|
+
a({ type: Object, reflect: !1 })
|
|
466
|
+
], p.prototype, "customTranslations");
|
|
467
|
+
l([
|
|
468
|
+
a({ type: Object })
|
|
469
|
+
], p.prototype, "theme");
|
|
470
|
+
l([
|
|
471
|
+
a({ type: String, reflect: !0 })
|
|
472
|
+
], p.prototype, "size");
|
|
473
|
+
customElements.get("luzmo-edit-item") || customElements.define("luzmo-edit-item", p);
|
|
471
474
|
export {
|
|
472
|
-
|
|
475
|
+
p as LuzmoEditItem
|
|
473
476
|
};
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../index-CQ9ck-BO.cjs");exports.LuzmoEditOption=t.LuzmoEditOption;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { L as u } from "../index-
|
|
20
|
+
import { L as u } from "../index-CdIUfo-L.js";
|
|
21
21
|
(function() {
|
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
23
23
|
const o = document.createElement("style");
|
|
@@ -17,26 +17,26 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
"use strict";var
|
|
20
|
+
"use strict";var z=Object.getPrototypeOf;var b=Reflect.get;var d=(c,t,n)=>b(z(c),n,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("@luzmo/icons");require("@luzmo/lucero/action-button");require("@luzmo/lucero/action-group");require("@luzmo/lucero/icon");const r=require("lit"),l=require("lit/decorators.js"),g=require("../edit-option-base-VhTih9T1.cjs"),h="luzmo-action-group{--luzmo-edit-option-action-button-group-button-background-hover: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-background-down: rgba( var(--luzmo-primary-rgb), .2 );--luzmo-edit-option-action-button-group-button-background-focus: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-content-color-default: var( --luzmo-font-color-disabled );--luzmo-edit-option-action-button-group-button-content-color-hover: var( --luzmo-font-color-hover );--luzmo-edit-option-action-button-group-button-content-color-down: var( --luzmo-font-color-down );--luzmo-edit-option-action-button-group-button-content-color-focus: var( --luzmo-font-color-focus )}luzmo-action-group[compact][quiet][emphasized]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-hover );--luzmo-action-button-background-color-down: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-focus: var( --luzmo-edit-option-action-button-group-button-background-focus );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-default );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-hover );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-focus: var( --luzmo-edit-option-action-button-group-button-content-color-focus )}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-default: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down )}";var v=Object.defineProperty,i=(c,t,n,s)=>{for(var u=void 0,p=c.length-1,m;p>=0;p--)(m=c[p])&&(u=m(t,n,u)||u);return u&&v(t,n,u),u};const f={alignBottom:o.luzmoAlignBottom,alignMiddle:o.luzmoAlignMiddle,alignTop:o.luzmoAlignTop,alignLeft:o.luzmoAlignLeft,alignCenter:o.luzmoAlignCenter,alignRight:o.luzmoAlignRight,ban:o.luzmoBan,borderSolid:o.luzmoBorderSolid,borderDashed:o.luzmoBorderDashed,borderDotted:o.luzmoBorderDotted,compress:o.luzmoCompress,expand:o.luzmoExpand,arrowsExpand:o.luzmoArrowsExpand,arrowsHorizontal:o.luzmoArrowsHorizontal,arrowsVertical:o.luzmoArrowsVertical,italic:o.luzmoItalic,bold:o.luzmoBold,underline:o.luzmoUnderline,rows:o.luzmoRows,columns:o.luzmoColumns,table:o.luzmoTable},a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}_handleEvent(){var n,s,u;const t=this.selects==="multiple"?(n=this.actionGroup)==null?void 0:n.selected:(u=(s=this.actionGroup)==null?void 0:s.selected)==null?void 0:u[0];this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:t}}))}_generateButtonContents(t){return typeof t=="string"?r.html`${t}`:t.iconName||t.icon?r.html`
|
|
21
21
|
<luzmo-icon
|
|
22
22
|
slot="icon"
|
|
23
23
|
.size=${this.size}
|
|
24
|
-
.icon=${t.icon??
|
|
24
|
+
.icon=${t.icon??f[t.iconName]}
|
|
25
25
|
.label=${t.label??""}
|
|
26
26
|
></luzmo-icon>
|
|
27
27
|
${t.buttonText??""}
|
|
28
|
-
`:
|
|
28
|
+
`:r.html`${t.buttonText??""}`}_generateActionButtons(){return Object.entries(this.values).map(([t,n])=>r.html`
|
|
29
29
|
<luzmo-action-button value=${t} ?disabled=${this.disabled}>
|
|
30
|
-
${this._generateButtonContents(
|
|
31
|
-
${
|
|
30
|
+
${this._generateButtonContents(n)}
|
|
31
|
+
${n.label?r.html`<luzmo-tooltip
|
|
32
32
|
self-managed
|
|
33
33
|
placement="top"
|
|
34
34
|
size=${this.size}
|
|
35
35
|
>
|
|
36
|
-
${
|
|
36
|
+
${n.label}
|
|
37
37
|
</luzmo-tooltip>`:""}
|
|
38
38
|
</luzmo-action-button>
|
|
39
|
-
`)}renderController(){const t=this._generateActionButtons();return
|
|
39
|
+
`)}renderController(){const t=this._generateActionButtons();return r.html`
|
|
40
40
|
<luzmo-action-group
|
|
41
41
|
compact
|
|
42
42
|
quiet
|
|
@@ -49,4 +49,4 @@
|
|
|
49
49
|
>
|
|
50
50
|
${t}
|
|
51
51
|
</luzmo-action-group>
|
|
52
|
-
`}};a.styles=[...
|
|
52
|
+
`}};a.styles=[...d(a,a,"styles"),r.unsafeCSS(h)];let e=a;i([l.property({type:Array})],e.prototype,"values");i([l.property({type:Boolean,reflect:!0})],e.prototype,"disabled");i([l.property({type:String})],e.prototype,"selects");i([l.property({type:Array})],e.prototype,"value");i([l.property({type:Array})],e.prototype,"default");i([l.query("luzmo-action-group")],e.prototype,"actionGroup");customElements.get("luzmo-edit-option-action-button-group")||customElements.define("luzmo-edit-option-action-button-group",e);exports.LuzmoEditOptionActionButtonGroup=e;
|