@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
|
@@ -17,27 +17,27 @@
|
|
|
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 { unsafeCSS as
|
|
21
|
-
import { _ as
|
|
22
|
-
import { luzmoIcon as
|
|
23
|
-
import { l as
|
|
24
|
-
import { property as
|
|
25
|
-
import { L as
|
|
26
|
-
import { S as
|
|
20
|
+
import { unsafeCSS as I, html as w } from "lit";
|
|
21
|
+
import { _ as S, d as P, s as F, a as j, g as k } from "../get-css-variable-BEYG097C.js";
|
|
22
|
+
import { luzmoIcon as D, luzmoTrashOutline as L } from "@luzmo/icons";
|
|
23
|
+
import { l as $ } from "../localize-BX7q0S0M.js";
|
|
24
|
+
import { property as x, queryAll as A } from "lit/decorators.js";
|
|
25
|
+
import { L as M } from "../focusable-DCIFkpiW.js";
|
|
26
|
+
import { S as T, E as q } from "../sized-mixin-cJbo3PKR.js";
|
|
27
27
|
(function() {
|
|
28
28
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
|
29
29
|
const o = document.createElement("style");
|
|
30
30
|
o.setAttribute("data-luzmo-vars", ""), o.textContent = 'html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: rgb(140, 140, 140);--luzmo-border-color-full-down: rgb(110, 110, 110);--luzmo-border-color-full-focus: rgb(140, 140, 140);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: #f0f0fc;--luzmo-background-color-down: #f1f1ff;--luzmo-background-color-focus: #f0f0fc;--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: rgb(225, 225, 225);--luzmo-background-color-highlight-down: rgb(215, 215, 215);--luzmo-background-color-highlight-focus: rgb(225, 225, 225);--luzmo-background-color-alt-1: rgb(250, 250, 250);--luzmo-background-color-alt-2: rgb(239, 239, 239);--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-hard: #000;--luzmo-font-color-disabled: var(--luzmo-color-disabled);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: #333;--luzmo-font-color-down: #111;--luzmo-font-color-focus: #333;--luzmo-primary: #4434ff;--luzmo-primary-hover: #4234e4;--luzmo-primary-down: #392cc7;--luzmo-primary-focus: #4234e4;--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-secondary: #ff00ff;--luzmo-secondary-hover: #e309e3;--luzmo-secondary-down: #c711c7;--luzmo-secondary-focus: #e309e3;--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 255, 0, 255;--luzmo-secondary-outline: rgba(255, 0, 255, 0.2);--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: #b3241f;--luzmo-negative-color-down: #9f231f;--luzmo-negative-color-focus: #b3241f;--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-positive-color: rgb(20, 150, 101);--luzmo-positive-color-hover: rgb(17, 128, 86);--luzmo-positive-color-down: rgb(16, 105, 71);--luzmo-positive-color-focus: rgb(17, 128, 86);--luzmo-positive-color-rgb: 20, 150, 101;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: rgb(70, 70, 70);--luzmo-selected-color-down: rgb(40, 40, 40);--luzmo-selected-color-focus: rgb(70, 70, 70);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: rgb(0, 0, 0);--luzmo-selected-color-hard-down: rgb(0, 0, 0);--luzmo-selected-color-hard-focus: rgb(0, 0, 0);--luzmo-color-informative: #1a77e9;--luzmo-color-informative-rgb: 26, 119, 233;--luzmo-color-disabled: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 12px;--luzmo-icon-size-xs: 14px;--luzmo-icon-size-s: 16px;--luzmo-icon-size-m: 18px;--luzmo-icon-size-l: 20px;--luzmo-icon-size-xl: 22px;--luzmo-icon-size-xxl: 32px}', document.head.appendChild(o);
|
|
31
31
|
}
|
|
32
32
|
})();
|
|
33
|
-
var
|
|
33
|
+
var R = {
|
|
34
34
|
large: 700
|
|
35
35
|
};
|
|
36
|
-
function
|
|
37
|
-
|
|
36
|
+
function U(r) {
|
|
37
|
+
r.animate([{
|
|
38
38
|
backgroundColor: "var(--ds-background-selected, #E9F2FF)"
|
|
39
39
|
}, {}], {
|
|
40
|
-
duration:
|
|
40
|
+
duration: R.large,
|
|
41
41
|
/**
|
|
42
42
|
* This is equivalent to the browser default, but we are making it
|
|
43
43
|
* explicit to avoid relying on implicit behavior.
|
|
@@ -49,28 +49,28 @@ function M(l) {
|
|
|
49
49
|
iterations: 1
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
var t = Object.keys(
|
|
52
|
+
function E(r, o) {
|
|
53
|
+
var t = Object.keys(r);
|
|
54
54
|
if (Object.getOwnPropertySymbols) {
|
|
55
|
-
var e = Object.getOwnPropertySymbols(
|
|
55
|
+
var e = Object.getOwnPropertySymbols(r);
|
|
56
56
|
o && (e = e.filter(function(s) {
|
|
57
|
-
return Object.getOwnPropertyDescriptor(
|
|
57
|
+
return Object.getOwnPropertyDescriptor(r, s).enumerable;
|
|
58
58
|
})), t.push.apply(t, e);
|
|
59
59
|
}
|
|
60
60
|
return t;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function C(r) {
|
|
63
63
|
for (var o = 1; o < arguments.length; o++) {
|
|
64
64
|
var t = arguments[o] != null ? arguments[o] : {};
|
|
65
|
-
o % 2 ?
|
|
66
|
-
|
|
67
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
68
|
-
Object.defineProperty(
|
|
65
|
+
o % 2 ? E(Object(t), !0).forEach(function(e) {
|
|
66
|
+
S(r, e, t[e]);
|
|
67
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(t)) : E(Object(t)).forEach(function(e) {
|
|
68
|
+
Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(t, e));
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return r;
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var B = {
|
|
74
74
|
top: function(o, t) {
|
|
75
75
|
return Math.abs(t.y - o.top);
|
|
76
76
|
},
|
|
@@ -83,33 +83,33 @@ var T = {
|
|
|
83
83
|
left: function(o, t) {
|
|
84
84
|
return Math.abs(t.x - o.left);
|
|
85
85
|
}
|
|
86
|
-
},
|
|
87
|
-
function
|
|
88
|
-
var t, e, s = o.element,
|
|
89
|
-
x:
|
|
90
|
-
y:
|
|
91
|
-
}, i = s.getBoundingClientRect(), a =
|
|
86
|
+
}, O = Symbol("closestEdge");
|
|
87
|
+
function N(r, o) {
|
|
88
|
+
var t, e, s = o.element, d = o.input, l = o.allowedEdges, n = {
|
|
89
|
+
x: d.clientX,
|
|
90
|
+
y: d.clientY
|
|
91
|
+
}, i = s.getBoundingClientRect(), a = l.map(function(c) {
|
|
92
92
|
return {
|
|
93
93
|
edge: c,
|
|
94
|
-
value:
|
|
94
|
+
value: B[c](i, n)
|
|
95
95
|
};
|
|
96
|
-
}), u = (t = (e = a.sort(function(c,
|
|
97
|
-
return c.value -
|
|
96
|
+
}), u = (t = (e = a.sort(function(c, p) {
|
|
97
|
+
return c.value - p.value;
|
|
98
98
|
})[0]) === null || e === void 0 ? void 0 : e.edge) !== null && t !== void 0 ? t : null;
|
|
99
|
-
return
|
|
99
|
+
return C(C({}, r), {}, S({}, O, u));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function y(r) {
|
|
102
102
|
var o;
|
|
103
|
-
return (o =
|
|
103
|
+
return (o = r[O]) !== null && o !== void 0 ? o : null;
|
|
104
104
|
}
|
|
105
|
-
const
|
|
106
|
-
var
|
|
107
|
-
for (var s = void 0,
|
|
108
|
-
(
|
|
109
|
-
return s &&
|
|
105
|
+
const V = ':host{font-family:var(--luzmo-slot-menu-list-font-family, var(--luzmo-font-family));font-size:var(--luzmo-slot-menu-list-font-size, var(--slot-menu-list-font-size));color:var(--luzmo-slot-menu-listfont-color, var(--luzmo-font-color))}:host{margin:0;padding:0;list-style:none;max-height:var(--luzmo-slot-menu-list-max-height, var(--slot-menu-list-max-height));overflow-y:auto;border-right:var(--luzmo-slot-menu-list-border-right-width, var(--luzmo-border-width)) solid var(--luzmo-slot-menu-list-border-right-color, var(--luzmo-border-color))}:host li{position:relative;cursor:pointer;border-bottom:var(--luzmo-slot-menu-list-border-bottom-width, var(--slot-menu-list-border-bottom-width)) solid var(--luzmo-slot-menu-list-border-bottom-color, var(--slot-menu-list-border-bottom-color))}:host li:hover{background-color:var(--luzmo-slot-menu-list-background-color-hover, var(--slot-menu-list-background-color-hover))}:host .active{background-color:var(--luzmo-slot-menu-list-active-background-color, var(--slot-menu-list-active-background-color));color:var(--luzmo-slot-menu-list-active-color, var(--slot-menu-list-active-color))}:host .active:hover{background-color:var(--luzmo-slot-menu-list-active-background-color-hover, var(--slot-menu-list-active-background-color-hover))}.drop-indicator{position:absolute;left:0;right:0;height:var(--luzmo-slot-menu-list-drop-indicator-height, var(--slot-menu-list-drop-indicator-height));background-color:var(--luzmo-slot-menu-list-drop-indicator-color, var(--slot-menu-list-drop-indicator-color))}.drop-indicator:before{content:"";display:block;width:100%;border:var(--luzmo-slot-menu-list-drop-indicator-height, var(--slot-menu-list-drop-indicator-height)) solid var(--luzmo-slot-menu-list-drop-indicator-color, var(--slot-menu-list-drop-indicator-color));border-radius:50%;position:absolute;background:var(--luzmo-slot-menu-list-drop-indicator-background, var(--luzmo-background-color));left:calc(-.5 * (var(--luzmo-slot-menu-list-drop-indicator-circle-size, var(--slot-menu-list-drop-indicator-circle-size)) + var(--luzmo-slot-menu-list-drop-indicator-height, var(--slot-menu-list-drop-indicator-height))));top:calc(-.5 * (var(--luzmo-slot-menu-list-drop-indicator-circle-size, var(--slot-menu-list-drop-indicator-circle-size)) + var(--luzmo-slot-menu-list-drop-indicator-height, var(--slot-menu-list-drop-indicator-height))));height:var(--luzmo-slot-menu-list-drop-indicator-circle-size, var(--slot-menu-list-drop-indicator-circle-size));width:var(--luzmo-slot-menu-list-drop-indicator-circle-size, var(--slot-menu-list-drop-indicator-circle-size))}.drop-indicator[data-edge=top]{top:calc(-.5 * var(--luzmo-slot-menu-list-drop-indicator-height, var(--slot-menu-list-drop-indicator-height)))}.drop-indicator[data-edge=bottom]{bottom:calc(-.5 * var(--luzmo-slot-menu-list-drop-indicator-height, var(--slot-menu-list-drop-indicator-height)))}.draggable-slot-content{display:flex;justify-content:space-between;gap:var(--luzmo-slot-menu-label-to-icon-gap, var(--slot-menu-label-to-icon-gap));align-items:center;touch-action:none}.draggable-slot-content .draggable-slot-content-label,.draggable-slot-content .draggable-slot-content-remove{padding-block-start:var(--luzmo-slot-menu-list-item-vertical-padding, var(--slot-menu-list-item-vertical-padding));padding-block-end:var(--luzmo-slot-menu-list-item-vertical-padding, var(--slot-menu-list-item-vertical-padding))}.draggable-slot-content .draggable-slot-content-label{padding-inline-start:var(--luzmo-slot-menu-list-item-horizontal-padding, var(--slot-menu-list-item-horizontal-padding));flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.draggable-slot-content .draggable-slot-content-remove{padding-inline-end:var(--luzmo-slot-menu-list-item-horizontal-padding, var(--slot-menu-list-item-horizontal-padding));flex:0 0 auto}:host{--slot-menu-list-active-background-color: var(--luzmo-primary);--slot-menu-list-active-background-color-hover: var(--luzmo-primary-hover);--slot-menu-list-active-color: var(--luzmo-primary-inverse-color);--slot-menu-list-background-color-hover: var(--luzmo-background-color-hover);--slot-menu-list-drop-indicator-color: var(--luzmo-font-color-down);--slot-menu-list-drop-indicator-height: 2px;--slot-menu-list-drop-indicator-circle-size: 4px;--slot-menu-list-border-bottom-width: 0px;--slot-menu-list-border-bottom-color: transparent;--slot-menu-list-max-height: calc(var(--luzmo-component-height) * 4)}:host{--slot-menu-display-settings-min-width: 19rem;--slot-menu-min-height: calc(var(--luzmo-component-height) * 2);--slot-menu-font-size: var(--luzmo-font-size);--slot-menu-list-item-horizontal-padding: var(--luzmo-spacing-4);--slot-menu-list-item-vertical-padding: var(--luzmo-spacing-3);--slot-menu-label-to-icon-gap: var(--luzmo-spacing-3)}:host([size=s]){--slot-menu-display-settings-min-width: 16rem;--slot-menu-min-height: calc(var(--luzmo-component-height-s) * 2);--slot-menu-font-size: var(--luzmo-font-size-s);--slot-menu-list-item-horizontal-padding: var(--luzmo-spacing-3);--slot-menu-list-item-vertical-padding: var(--luzmo-spacing-3);--slot-menu-label-to-icon-gap: var(--luzmo-spacing-2)}:host([size=l]){--slot-menu-display-settings-min-width: 23rem;--slot-menu-min-height: calc(var(--luzmo-component-height-l) * 2);--slot-menu-font-size: var(--luzmo-font-size-l);--slot-menu-list-item-horizontal-padding: var(--luzmo-spacing-5);--slot-menu-list-item-vertical-padding: var(--luzmo-spacing-3);--slot-menu-label-to-icon-gap: var(--luzmo-spacing-4)}:host([size=xl]){--slot-menu-display-settings-min-width: 26rem;--slot-menu-min-height: calc(var(--luzmo-component-height-xl) * 2);--slot-menu-font-size: var(--luzmo-font-size-xl);--slot-menu-list-item-horizontal-padding: var(--luzmo-spacing-5);--slot-menu-list-item-vertical-padding: var(--luzmo-spacing-4);--slot-menu-label-to-icon-gap: var(--luzmo-spacing-5)}';
|
|
106
|
+
var G = Object.defineProperty, h = (r, o, t, e) => {
|
|
107
|
+
for (var s = void 0, d = r.length - 1, l; d >= 0; d--)
|
|
108
|
+
(l = r[d]) && (s = l(o, t, s) || s);
|
|
109
|
+
return s && G(o, t, s), s;
|
|
110
110
|
};
|
|
111
|
-
class
|
|
112
|
-
validSizes: Object.values(
|
|
111
|
+
class z extends T(M, {
|
|
112
|
+
validSizes: Object.values(q)
|
|
113
113
|
}) {
|
|
114
114
|
constructor() {
|
|
115
115
|
super(...arguments), this.language = "en", this.contentLanguage = "en", this.slotContents = [], this.activeIndex = 0, this._sendChangeEvent = () => {
|
|
@@ -126,12 +126,13 @@ class p extends L(D, {
|
|
|
126
126
|
);
|
|
127
127
|
}, this._cleanupFns = [], this._attachAll = () => {
|
|
128
128
|
[...this._draggableSlotContentElements].forEach((o) => {
|
|
129
|
-
const t = this._sendChangeEvent.bind(this), e = this, s =
|
|
129
|
+
const t = this._sendChangeEvent.bind(this), e = this, s = P({
|
|
130
130
|
element: o,
|
|
131
|
-
onGenerateDragPreview({ nativeSetDragImage:
|
|
132
|
-
|
|
133
|
-
nativeSetDragImage:
|
|
131
|
+
onGenerateDragPreview({ nativeSetDragImage: l }) {
|
|
132
|
+
F({
|
|
133
|
+
nativeSetDragImage: l,
|
|
134
134
|
render({ container: n }) {
|
|
135
|
+
var u;
|
|
135
136
|
const i = document.createElement("div");
|
|
136
137
|
i.classList.add("drag-preview");
|
|
137
138
|
const a = {};
|
|
@@ -176,10 +177,10 @@ class p extends L(D, {
|
|
|
176
177
|
"--luzmo-slot-menu-list-font-family",
|
|
177
178
|
"--luzmo-font-family"
|
|
178
179
|
]
|
|
179
|
-
].forEach(([
|
|
180
|
-
const
|
|
181
|
-
a[
|
|
182
|
-
}), i.textContent = o.querySelector("[data-task-content]")
|
|
180
|
+
].forEach(([c, p, b]) => {
|
|
181
|
+
const m = k(o, p) || k(o, b);
|
|
182
|
+
a[c] = m;
|
|
183
|
+
}), i.textContent = ((u = o.querySelector("[data-task-content]")) == null ? void 0 : u.textContent) ?? // worst case fallback if we set up our data-* up wrong
|
|
183
184
|
o.textContent, Object.assign(i.style, {
|
|
184
185
|
border: `1px solid ${a.borderColor}`,
|
|
185
186
|
backgroundColor: a.backgroundColor,
|
|
@@ -194,10 +195,11 @@ class p extends L(D, {
|
|
|
194
195
|
});
|
|
195
196
|
},
|
|
196
197
|
getInitialData() {
|
|
197
|
-
|
|
198
|
+
var i;
|
|
199
|
+
const l = o.parentElement;
|
|
198
200
|
let n = 0;
|
|
199
|
-
return
|
|
200
|
-
|
|
201
|
+
return l && (n = [...((i = l.parentElement) == null ? void 0 : i.children) ?? []].indexOf(
|
|
202
|
+
l
|
|
201
203
|
)), {
|
|
202
204
|
index: n
|
|
203
205
|
};
|
|
@@ -210,17 +212,18 @@ class p extends L(D, {
|
|
|
210
212
|
}
|
|
211
213
|
});
|
|
212
214
|
this._cleanupFns.push(s);
|
|
213
|
-
const
|
|
215
|
+
const d = j({
|
|
214
216
|
element: o,
|
|
215
|
-
canDrop({ source:
|
|
216
|
-
|
|
217
|
+
canDrop({ source: l }) {
|
|
218
|
+
var n;
|
|
219
|
+
return l.element === o ? !1 : (n = l == null ? void 0 : l.element) == null ? void 0 : n.classList.contains("draggable-slot-content");
|
|
217
220
|
},
|
|
218
|
-
getData(
|
|
219
|
-
return
|
|
221
|
+
getData(l) {
|
|
222
|
+
return N(
|
|
220
223
|
{},
|
|
221
224
|
{
|
|
222
225
|
element: o,
|
|
223
|
-
input:
|
|
226
|
+
input: l.input,
|
|
224
227
|
allowedEdges: ["top", "bottom"]
|
|
225
228
|
}
|
|
226
229
|
);
|
|
@@ -228,50 +231,53 @@ class p extends L(D, {
|
|
|
228
231
|
getIsSticky() {
|
|
229
232
|
return !0;
|
|
230
233
|
},
|
|
231
|
-
onDragEnter({ self:
|
|
232
|
-
const n =
|
|
234
|
+
onDragEnter({ self: l }) {
|
|
235
|
+
const n = y(l.data);
|
|
233
236
|
if (!n)
|
|
234
237
|
return;
|
|
235
238
|
const i = document.createElement("div");
|
|
236
239
|
i.classList.add("drop-indicator"), i.dataset.edge = n, o.after(i);
|
|
237
240
|
},
|
|
238
|
-
onDrag({ self:
|
|
239
|
-
|
|
241
|
+
onDrag({ self: l }) {
|
|
242
|
+
var a, u, c;
|
|
243
|
+
const n = y(l.data);
|
|
240
244
|
if (!n) {
|
|
241
|
-
o.nextElementSibling
|
|
245
|
+
(a = o.nextElementSibling) == null || a.remove();
|
|
242
246
|
return;
|
|
243
247
|
}
|
|
244
|
-
if (o.nextElementSibling
|
|
248
|
+
if (((u = o.nextElementSibling) == null ? void 0 : u.getAttribute("data-edge")) === n)
|
|
245
249
|
return;
|
|
246
|
-
o.nextElementSibling
|
|
250
|
+
(c = o.nextElementSibling) == null || c.remove();
|
|
247
251
|
const i = document.createElement("div");
|
|
248
252
|
i.classList.add("drop-indicator"), i.dataset.edge = n, o.after(i);
|
|
249
253
|
},
|
|
250
254
|
onDragLeave() {
|
|
251
|
-
|
|
255
|
+
var l;
|
|
256
|
+
(l = o.nextElementSibling) == null || l.remove();
|
|
252
257
|
},
|
|
253
|
-
onDrop({ self:
|
|
254
|
-
|
|
255
|
-
|
|
258
|
+
onDrop({ self: l, source: n }) {
|
|
259
|
+
var u, c, p, b;
|
|
260
|
+
(u = o.nextElementSibling) == null || u.remove();
|
|
261
|
+
const i = y(l.data), a = l.element.parentElement;
|
|
256
262
|
if (typeof n.data.index == "number" && a) {
|
|
257
|
-
let
|
|
263
|
+
let m = [...((c = a.parentElement) == null ? void 0 : c.children) ?? []].indexOf(
|
|
258
264
|
a
|
|
259
265
|
);
|
|
260
|
-
i === "bottom" && n.data.index >=
|
|
261
|
-
const
|
|
262
|
-
e.slotContents.splice(
|
|
266
|
+
i === "bottom" && n.data.index >= m && m < (((b = (p = a == null ? void 0 : a.parentElement) == null ? void 0 : p.children) == null ? void 0 : b.length) ?? 0) - 1 ? m += 1 : i === "top" && m > n.data.index && (m -= 1);
|
|
267
|
+
const g = e.activeIndex, v = n.data.index, f = m, _ = e.slotContents[v];
|
|
268
|
+
e.slotContents.splice(v, 1), e.slotContents.splice(f, 0, _), v === g ? e.activeIndex = f : v < g && f >= g ? e.activeIndex = g - 1 : v > g && f <= g && (e.activeIndex = g + 1);
|
|
263
269
|
}
|
|
264
|
-
i && (
|
|
270
|
+
i && (U(n.element), e.requestUpdate(), t());
|
|
265
271
|
}
|
|
266
272
|
});
|
|
267
|
-
this._cleanupFns.push(
|
|
273
|
+
this._cleanupFns.push(d);
|
|
268
274
|
});
|
|
269
275
|
}, this._detachAll = () => {
|
|
270
276
|
this._cleanupFns.forEach((o) => o()), this._cleanupFns = [];
|
|
271
277
|
};
|
|
272
278
|
}
|
|
273
279
|
static get styles() {
|
|
274
|
-
return [
|
|
280
|
+
return [I(V)];
|
|
275
281
|
}
|
|
276
282
|
willUpdate() {
|
|
277
283
|
this._detachAll();
|
|
@@ -293,8 +299,8 @@ class p extends L(D, {
|
|
|
293
299
|
render() {
|
|
294
300
|
const o = this.slotContents.map(
|
|
295
301
|
(t, e) => {
|
|
296
|
-
const s =
|
|
297
|
-
return
|
|
302
|
+
const s = $(t.label ?? {}, this.contentLanguage);
|
|
303
|
+
return w`<li class=${e === this.activeIndex ? "active" : ""}>
|
|
298
304
|
<div class="draggable-slot-content">
|
|
299
305
|
<div
|
|
300
306
|
class="draggable-slot-content-label"
|
|
@@ -306,31 +312,31 @@ class p extends L(D, {
|
|
|
306
312
|
class="draggable-slot-content-remove"
|
|
307
313
|
@click=${this.removeSlotContent.bind(this, e)}
|
|
308
314
|
>
|
|
309
|
-
${
|
|
315
|
+
${D(L)}
|
|
310
316
|
</div>
|
|
311
317
|
</div>
|
|
312
318
|
</li>`;
|
|
313
319
|
}
|
|
314
320
|
);
|
|
315
|
-
return
|
|
321
|
+
return w`<div>${o}</div>`;
|
|
316
322
|
}
|
|
317
323
|
}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
],
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
],
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
],
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
],
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
],
|
|
333
|
-
customElements.get("luzmo-slot-menu-list") || customElements.define("luzmo-slot-menu-list",
|
|
324
|
+
h([
|
|
325
|
+
x({ type: String, reflect: !0 })
|
|
326
|
+
], z.prototype, "language");
|
|
327
|
+
h([
|
|
328
|
+
x({ type: String, attribute: "content-language", reflect: !0 })
|
|
329
|
+
], z.prototype, "contentLanguage");
|
|
330
|
+
h([
|
|
331
|
+
A(".draggable-slot-content")
|
|
332
|
+
], z.prototype, "_draggableSlotContentElements");
|
|
333
|
+
h([
|
|
334
|
+
x()
|
|
335
|
+
], z.prototype, "slotContents");
|
|
336
|
+
h([
|
|
337
|
+
x({ type: Number })
|
|
338
|
+
], z.prototype, "activeIndex");
|
|
339
|
+
customElements.get("luzmo-slot-menu-list") || customElements.define("luzmo-slot-menu-list", z);
|
|
334
340
|
export {
|
|
335
|
-
|
|
341
|
+
z as LuzmoSlotMenuList
|
|
336
342
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
|
2
|
+
*
|
|
3
|
+
* Copyright © 2025 Luzmo
|
|
4
|
+
* All rights reserved.
|
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
|
7
|
+
* This license allows users with a current active Luzmo account
|
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
11
|
+
*
|
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
|
+
* SOFTWARE.
|
|
19
|
+
* */
|
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./helpers-DXQwEH1P.cjs"),k=e=>{var a,l,r,u;return((l=(a=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="target"))==null?void 0:a.content)==null?void 0:l.length)===0&&((u=(r=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="measure"))==null?void 0:r.content)==null?void 0:u.length)>0},b=[{color:"#ff0000",value:0},{color:"#ffa500",value:25},{color:"#ffff00",value:50},{color:"#008000",value:75},{color:"#006400",value:100}],f=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!1}},{key:"display.meterValue",control:{type:"switch",label:"Value",default:!0}},{key:"display.meterLabel",control:{type:"switch",label:"Label",default:!0}},{key:"display.ticks",control:{type:"switch",label:"Ticks",default:!0}},{key:"degrees",control:{type:"slider",label:"Arc size",default:230,min:180,max:360,step:1}},{key:"arcWidth",control:{type:"slider",label:"Gauge width",default:.08,min:.02,max:.7,step:.01}},{type:"divider"},{key:"manualValues.display",control:{type:"picker",label:"Ticks display",default:"absolute",enum:["absolute","percentage"]}},{key:"manualValues.mode",control:{type:"picker",label:"Range type",default:"relative",enum:["relative","absolute"],toOptions:({options:e,value:a})=>{var u,t,m,d,i,y;const l=((u=e==null?void 0:e.manualValues)==null?void 0:u.mode)??"relative",r={...e,manualValues:{...e.manualValues,mode:a}};return a==="absolute"&&l==="relative"&&((t=r.manualValues)!=null&&t.ranges)&&((m=r.manualValues)!=null&&m.target)?r.manualValues.ranges=r.manualValues.ranges.map(n=>({...n,val:n.val*r.manualValues.target/100})):a==="relative"&&l==="absolute"&&((i=(d=r.manualValues)==null?void 0:d.ranges)!=null&&i.length)&&(r.manualValues.target=(y=r.manualValues.ranges.at(-1))==null?void 0:y.val,r.manualValues.ranges=r.manualValues.ranges.map(n=>({...n,value:n.val*100/r.manualValues.target}))),r}}},{key:"manualValues.target",control:{type:"number-field",label:"Manual target",placeholder:"Target value",minWidthInputField:"150px"},visibleIf:({options:e,slots:a})=>{var l;return((l=e==null?void 0:e.manualValues)==null?void 0:l.mode)!=="absolute"&&k(a)}},{key:"manualValues.ranges",control:{type:"color-range",editRangeSize:!0,minimumRangeSize:2,percentage:({options:e})=>{var a;return((a=e==null?void 0:e.manualValues)==null?void 0:a.mode)!=="absolute"},noAlphaChannel:!0,hideLabel:!0,label:"Color ranges",default:()=>structuredClone(b),parseValue:e=>e==null?void 0:e.map(a=>({color:a==null?void 0:a.color,value:(a==null?void 0:a.value)??(a==null?void 0:a.val)})),toValue:e=>e==null?void 0:e.map(a=>({color:a==null?void 0:a.color,val:a==null?void 0:a.value}))}}]},{key:"marker",type:"group",open:!1,children:[{key:"marker.type",control:{type:"picker",label:"Marker type",default:"innerBand",enum:["needle","line","inside","outside","centerBand","innerBand"]}},{key:"marker.color",control:{type:"color-picker",label:"Marker color",default:({theme:e})=>c.getThemeAxisColor(e),extraLabel:({options:e,theme:a})=>c.getThemeAxisColorResetLabel(e,a,"axis.y.color"),extraLabelHasClickAction:({options:e,theme:a})=>c.getThemeAxisColorExtraLabelHasClickAction(e,a,"axis.y.color"),extraLabelClickAction:({options:e,theme:a})=>c.getThemeBorderColorExtraLabelClickAction(e,a,"axis.y.color")},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&((l=e==null?void 0:e.marker)==null?void 0:l.type)!=="innerBand"}},{key:"marker.centerBandWidth",control:{type:"slider",label:"Marker width",default:.34,min:.1,max:1,step:.01},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&((l=e==null?void 0:e.marker)==null?void 0:l.type)==="centerBand"}},{key:"marker.lineWidth",control:{type:"slider",label:"Line width",default:2,min:1,max:10,step:1},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&((l=e==null?void 0:e.marker)==null?void 0:l.type)==="line"}},{key:"marker.arrowSize",control:{type:"slider",label:"Arrow size",default:.05,min:.05,max:.2,step:.01},visibleIf:({options:e})=>{var a,l;return((a=e==null?void 0:e.marker)==null?void 0:a.type)&&["inside","outside"].includes((l=e==null?void 0:e.marker)==null?void 0:l.type)}}]}];exports.default=f;
|
|
@@ -17,14 +17,17 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
import { d as
|
|
21
|
-
const
|
|
20
|
+
import { d as i, j as k, k as f, l as b } from "./helpers-v1bPALRP.js";
|
|
21
|
+
const g = (e) => {
|
|
22
|
+
var a, l, r, u;
|
|
23
|
+
return ((l = (a = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.name) === "target")) == null ? void 0 : a.content) == null ? void 0 : l.length) === 0 && ((u = (r = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.name) === "measure")) == null ? void 0 : r.content) == null ? void 0 : u.length) > 0;
|
|
24
|
+
}, s = [
|
|
22
25
|
{ color: "#ff0000", value: 0 },
|
|
23
26
|
{ color: "#ffa500", value: 25 },
|
|
24
27
|
{ color: "#ffff00", value: 50 },
|
|
25
28
|
{ color: "#008000", value: 75 },
|
|
26
29
|
{ color: "#006400", value: 100 }
|
|
27
|
-
],
|
|
30
|
+
], V = [
|
|
28
31
|
{
|
|
29
32
|
key: "general",
|
|
30
33
|
type: "group",
|
|
@@ -104,24 +107,25 @@ const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 &&
|
|
|
104
107
|
default: "relative",
|
|
105
108
|
enum: ["relative", "absolute"],
|
|
106
109
|
toOptions: ({ options: e, value: a }) => {
|
|
107
|
-
|
|
110
|
+
var u, t, n, c, d, y;
|
|
111
|
+
const l = ((u = e == null ? void 0 : e.manualValues) == null ? void 0 : u.mode) ?? "relative", r = {
|
|
108
112
|
...e,
|
|
109
113
|
manualValues: {
|
|
110
114
|
...e.manualValues,
|
|
111
115
|
mode: a
|
|
112
116
|
}
|
|
113
117
|
};
|
|
114
|
-
return a === "absolute" &&
|
|
115
|
-
(
|
|
116
|
-
...
|
|
117
|
-
val:
|
|
118
|
+
return a === "absolute" && l === "relative" && ((t = r.manualValues) != null && t.ranges) && ((n = r.manualValues) != null && n.target) ? r.manualValues.ranges = r.manualValues.ranges.map(
|
|
119
|
+
(m) => ({
|
|
120
|
+
...m,
|
|
121
|
+
val: m.val * r.manualValues.target / 100
|
|
118
122
|
})
|
|
119
|
-
) : a === "relative" &&
|
|
120
|
-
(
|
|
121
|
-
...
|
|
122
|
-
value:
|
|
123
|
+
) : a === "relative" && l === "absolute" && ((d = (c = r.manualValues) == null ? void 0 : c.ranges) != null && d.length) && (r.manualValues.target = (y = r.manualValues.ranges.at(-1)) == null ? void 0 : y.val, r.manualValues.ranges = r.manualValues.ranges.map(
|
|
124
|
+
(m) => ({
|
|
125
|
+
...m,
|
|
126
|
+
value: m.val * 100 / r.manualValues.target
|
|
123
127
|
})
|
|
124
|
-
)),
|
|
128
|
+
)), r;
|
|
125
129
|
}
|
|
126
130
|
}
|
|
127
131
|
},
|
|
@@ -133,7 +137,10 @@ const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 &&
|
|
|
133
137
|
placeholder: "Target value",
|
|
134
138
|
minWidthInputField: "150px"
|
|
135
139
|
},
|
|
136
|
-
visibleIf: ({ options: e, slots: a }) =>
|
|
140
|
+
visibleIf: ({ options: e, slots: a }) => {
|
|
141
|
+
var l;
|
|
142
|
+
return ((l = e == null ? void 0 : e.manualValues) == null ? void 0 : l.mode) !== "absolute" && g(a);
|
|
143
|
+
}
|
|
137
144
|
},
|
|
138
145
|
{
|
|
139
146
|
key: "manualValues.ranges",
|
|
@@ -141,18 +148,21 @@ const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 &&
|
|
|
141
148
|
type: "color-range",
|
|
142
149
|
editRangeSize: !0,
|
|
143
150
|
minimumRangeSize: 2,
|
|
144
|
-
percentage: ({ options: e }) =>
|
|
151
|
+
percentage: ({ options: e }) => {
|
|
152
|
+
var a;
|
|
153
|
+
return ((a = e == null ? void 0 : e.manualValues) == null ? void 0 : a.mode) !== "absolute";
|
|
154
|
+
},
|
|
145
155
|
noAlphaChannel: !0,
|
|
146
156
|
hideLabel: !0,
|
|
147
157
|
label: "Color ranges",
|
|
148
|
-
default: () => structuredClone(
|
|
149
|
-
parseValue: (e) => e
|
|
150
|
-
color: a
|
|
151
|
-
value: a
|
|
158
|
+
default: () => structuredClone(s),
|
|
159
|
+
parseValue: (e) => e == null ? void 0 : e.map((a) => ({
|
|
160
|
+
color: a == null ? void 0 : a.color,
|
|
161
|
+
value: (a == null ? void 0 : a.value) ?? (a == null ? void 0 : a.val)
|
|
152
162
|
})),
|
|
153
|
-
toValue: (e) => e
|
|
154
|
-
color: a
|
|
155
|
-
val: a
|
|
163
|
+
toValue: (e) => e == null ? void 0 : e.map((a) => ({
|
|
164
|
+
color: a == null ? void 0 : a.color,
|
|
165
|
+
val: a == null ? void 0 : a.value
|
|
156
166
|
}))
|
|
157
167
|
}
|
|
158
168
|
}
|
|
@@ -184,20 +194,23 @@ const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 &&
|
|
|
184
194
|
control: {
|
|
185
195
|
type: "color-picker",
|
|
186
196
|
label: "Marker color",
|
|
187
|
-
default: ({ theme: e }) =>
|
|
188
|
-
extraLabel: ({ options: e, theme: a }) =>
|
|
189
|
-
extraLabelHasClickAction: ({ options: e, theme: a }) =>
|
|
197
|
+
default: ({ theme: e }) => b(e),
|
|
198
|
+
extraLabel: ({ options: e, theme: a }) => f(e, a, "axis.y.color"),
|
|
199
|
+
extraLabelHasClickAction: ({ options: e, theme: a }) => k(
|
|
190
200
|
e,
|
|
191
201
|
a,
|
|
192
202
|
"axis.y.color"
|
|
193
203
|
),
|
|
194
|
-
extraLabelClickAction: ({ options: e, theme: a }) =>
|
|
204
|
+
extraLabelClickAction: ({ options: e, theme: a }) => i(
|
|
195
205
|
e,
|
|
196
206
|
a,
|
|
197
207
|
"axis.y.color"
|
|
198
208
|
)
|
|
199
209
|
},
|
|
200
|
-
visibleIf: ({ options: e }) =>
|
|
210
|
+
visibleIf: ({ options: e }) => {
|
|
211
|
+
var a, l;
|
|
212
|
+
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type) !== "innerBand";
|
|
213
|
+
}
|
|
201
214
|
},
|
|
202
215
|
{
|
|
203
216
|
key: "marker.centerBandWidth",
|
|
@@ -209,7 +222,10 @@ const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 &&
|
|
|
209
222
|
max: 1,
|
|
210
223
|
step: 0.01
|
|
211
224
|
},
|
|
212
|
-
visibleIf: ({ options: e }) =>
|
|
225
|
+
visibleIf: ({ options: e }) => {
|
|
226
|
+
var a, l;
|
|
227
|
+
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type) === "centerBand";
|
|
228
|
+
}
|
|
213
229
|
},
|
|
214
230
|
{
|
|
215
231
|
key: "marker.lineWidth",
|
|
@@ -221,7 +237,10 @@ const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 &&
|
|
|
221
237
|
max: 10,
|
|
222
238
|
step: 1
|
|
223
239
|
},
|
|
224
|
-
visibleIf: ({ options: e }) =>
|
|
240
|
+
visibleIf: ({ options: e }) => {
|
|
241
|
+
var a, l;
|
|
242
|
+
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type) === "line";
|
|
243
|
+
}
|
|
225
244
|
},
|
|
226
245
|
{
|
|
227
246
|
key: "marker.arrowSize",
|
|
@@ -233,11 +252,14 @@ const s = (e) => e?.find((a) => a?.name === "target")?.content?.length === 0 &&
|
|
|
233
252
|
max: 0.2,
|
|
234
253
|
step: 0.01
|
|
235
254
|
},
|
|
236
|
-
visibleIf: ({ options: e }) =>
|
|
255
|
+
visibleIf: ({ options: e }) => {
|
|
256
|
+
var a, l;
|
|
257
|
+
return ((a = e == null ? void 0 : e.marker) == null ? void 0 : a.type) && ["inside", "outside"].includes((l = e == null ? void 0 : e.marker) == null ? void 0 : l.type);
|
|
258
|
+
}
|
|
237
259
|
}
|
|
238
260
|
]
|
|
239
261
|
}
|
|
240
262
|
];
|
|
241
263
|
export {
|
|
242
|
-
|
|
264
|
+
V as default
|
|
243
265
|
};
|