@luzmo/analytics-components-kit 1.0.1-alpha.18 → 1.0.1-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/area-chart-options.config-A8NH6aUG.cjs +20 -0
- package/components/{area-chart-options.config-B5qtlH-_.js → area-chart-options.config-BbSP_Auh.js} +32 -31
- package/components/bar-chart-options.config-CRGDLJCK.js +161 -0
- package/components/bar-chart-options.config-Cpbrpmp1.cjs +20 -0
- package/components/{box-plot-options.config-DoZHVmpm.js → box-plot-options.config-BtonHYul.js} +65 -90
- package/components/box-plot-options.config-CGIKZNsw.cjs +20 -0
- package/components/bubble-chart-options.config-BM7njnkG.cjs +20 -0
- package/components/{bubble-chart-options.config-Cp6OQnJl.js → bubble-chart-options.config-R5R-E3dd.js} +24 -42
- package/components/{bubble-chart-options.de-L-yQc0Vj.cjs → bubble-chart-options.de-D2Z88fwi.cjs} +1 -1
- package/components/{bubble-chart-options.de-BGWrRmuN.js → bubble-chart-options.de-D8Ap7joq.js} +6 -1
- package/components/{bubble-chart-options.en-CYwRht5M.js → bubble-chart-options.en-BU3F4n13.js} +8 -3
- package/components/{bubble-chart-options.en-CCG_rkEd.cjs → bubble-chart-options.en-CP9PhuPw.cjs} +1 -1
- package/components/{bubble-chart-options.es-CihHnrZ4.cjs → bubble-chart-options.es-B6mTDtxs.cjs} +1 -1
- package/components/{bubble-chart-options.es-ZnkjzgL_.js → bubble-chart-options.es-Bh_dRgE3.js} +7 -2
- package/components/{bubble-chart-options.fr-CFULfSKT.cjs → bubble-chart-options.fr-BMPe3Z5G.cjs} +1 -1
- package/components/{bubble-chart-options.fr-Cym1h3sF.js → bubble-chart-options.fr-CNiJgmGl.js} +7 -2
- package/components/{bubble-chart-options.nl-Deep5xXO.cjs → bubble-chart-options.nl-5thQrFoi.cjs} +1 -1
- package/components/{bubble-chart-options.nl-D1TFWi5k.js → bubble-chart-options.nl-BoV3kpaZ.js} +8 -3
- package/components/{bullet-chart-options.config-D8mAooLE.js → bullet-chart-options.config-D-_esi9S.js} +7 -25
- package/components/bullet-chart-options.config-D-wrbTMO.cjs +20 -0
- package/components/{choropleth-map-options.config-4QDypbCL.cjs → choropleth-map-options.config-BOuMfF8r.cjs} +1 -1
- package/components/{choropleth-map-options.config-V8tRnQqz.js → choropleth-map-options.config-z2fY__jr.js} +4 -4
- package/components/{circular-guage-options.config-C3ExuT5F.js → circular-gauge-options.config-9tIxyJj1.js} +19 -29
- package/components/circular-gauge-options.config-h9KNl5Eq.cjs +20 -0
- package/components/column-chart-options.config-B-e2SI2W.cjs +20 -0
- package/components/{column-chart-options.config-CGw1dN1E.js → column-chart-options.config-D87ZFT76.js} +34 -52
- package/components/conditional-number-options.config-D09JeUlU.cjs +20 -0
- package/components/{conditional-number-options.config-B24MqnZj.js → conditional-number-options.config-PVvKLc1P.js} +16 -34
- package/components/{donut-chart-options.config-DuJFyp4z.js → donut-chart-options.config-NPwNtLDW.js} +23 -20
- package/components/donut-chart-options.config-bqcKuyIu.cjs +20 -0
- package/components/{dropdown-filter-options.config-BxjR1xAD.js → dropdown-filter-options.config-D9dvPypF.js} +5 -5
- package/components/{dropdown-filter-options.config-C3YEGK-5.cjs → dropdown-filter-options.config-DS-MORmq.cjs} +1 -1
- package/components/edit-item/index.cjs +14 -14
- package/components/edit-item/index.js +74 -56
- package/components/edit-option/helpers/get-default-value.d.ts +1 -0
- package/components/edit-option/index.cjs +91 -91
- package/components/edit-option/index.js +330 -330
- package/components/edit-option-position-picker/edit-option-position-picker.d.ts +1 -1
- package/components/edit-option-position-picker/index.cjs +2 -2
- package/components/edit-option-position-picker/index.js +4 -6
- package/components/funnel-chart-options.config-CrlHKd36.js +184 -0
- package/components/funnel-chart-options.config-hw_GXs4s.cjs +20 -0
- package/components/funnel-chart-options.de-CuVFMJUC.js +93 -0
- package/components/funnel-chart-options.de-DRAGes5d.cjs +20 -0
- package/components/funnel-chart-options.en-CvPbJr1r.js +93 -0
- package/components/funnel-chart-options.en-b6BBKfZh.cjs +20 -0
- package/components/funnel-chart-options.es-DfDw5S5g.cjs +20 -0
- package/components/funnel-chart-options.es-_M7sC4m6.js +93 -0
- package/components/funnel-chart-options.fr-DWkPkC47.cjs +20 -0
- package/components/funnel-chart-options.fr-DvnZ-XbE.js +93 -0
- package/components/funnel-chart-options.nl-BdAL0ZJP.cjs +20 -0
- package/components/funnel-chart-options.nl-C72_FTNm.js +93 -0
- package/components/helpers-CKo1Fkek.cjs +20 -0
- package/components/helpers-DqqxcHaY.js +51 -0
- package/components/{line-chart-options.config-CEUJYNt7.js → line-chart-options.config-BtfCTjNr.js} +32 -31
- package/components/line-chart-options.config-Cb7txmmw.cjs +20 -0
- package/components/radar-chart-options.config-Ck7skfge.cjs +20 -0
- package/components/{radar-chart-options.config-gKHFbC63.js → radar-chart-options.config-DFxna7UF.js} +25 -43
- package/components/sankey-diagram-options.config-DJqI2dMh.cjs +20 -0
- package/components/{sankey-diagram-options.config-ylhZhJ6H.js → sankey-diagram-options.config-Dj9g2BOp.js} +16 -26
- package/components/{search-filter-options.config-C9CoGS9f.cjs → search-filter-options.config-BCaDlYqZ.cjs} +1 -1
- package/components/{search-filter-options.config-baX2Vdul.js → search-filter-options.config-BE3JhR-F.js} +1 -1
- package/components/{slicer-filter-options.config-A3YK_KZn.js → slicer-filter-options.config-BArPA7Mb.js} +20 -38
- package/components/slicer-filter-options.config-BW44EPso.cjs +20 -0
- package/components/{slider-filter-options.config-C-zvfTNl.js → slider-filter-options.config-BIKIbGbN.js} +7 -25
- package/components/slider-filter-options.config-zuWa8Rtt.cjs +20 -0
- package/components/sunburst-chart-options.config-BjtKxThH.cjs +20 -0
- package/components/{sunburst-chart-options.config-VZqDthcz.js → sunburst-chart-options.config-BxkJfdrU.js} +30 -30
- package/components/{textobject-options.nl-V03mmGmH.js → text-options.nl-C8sliUgH.js} +2 -2
- package/components/{treemap-chart-options.config-f8L8KfDj.js → treemap-chart-options.config-MyCTS35Y.js} +45 -63
- package/components/treemap-chart-options.config-PwXbMhHZ.cjs +20 -0
- package/components/{video-options.config-BBDHSf6_.cjs → video-options.config-CGsDTwHc.cjs} +1 -1
- package/components/{video-options.config-CbtNZAEK.js → video-options.config-Dk36zJ1B.js} +5 -5
- package/components/wordcloud-chart-options.config-Cv9l0THs.cjs +20 -0
- package/components/{wordcloud-chart-options.config-CQs8YFfd.js → wordcloud-chart-options.config-Dq7TF0sb.js} +10 -28
- package/custom-elements.json +31 -3
- package/item-definitions/area-chart/area-chart-options.config.d.ts +27 -6
- package/item-definitions/bar-chart/bar-chart-options.config.d.ts +13 -13
- package/item-definitions/box-plot/box-plot-options.config.d.ts +16 -16
- package/item-definitions/bubble-chart/bubble-chart-options.config.d.ts +7 -7
- package/item-definitions/bubble-chart/i18n/bubble-chart-options.de.d.ts +5 -0
- package/item-definitions/bubble-chart/i18n/bubble-chart-options.en.d.ts +5 -0
- package/item-definitions/bubble-chart/i18n/bubble-chart-options.es.d.ts +5 -0
- package/item-definitions/bubble-chart/i18n/bubble-chart-options.fr.d.ts +5 -0
- package/item-definitions/bubble-chart/i18n/bubble-chart-options.nl.d.ts +5 -0
- package/item-definitions/bullet-chart/bullet-chart-options.config.d.ts +4 -4
- package/item-definitions/choropleth-map/choropleth-map-options.config.d.ts +1 -1
- package/item-definitions/circular-gauge/{circular-guage-options.config.d.ts → circular-gauge-options.config.d.ts} +4 -4
- package/item-definitions/column-chart/column-chart-options.config.d.ts +13 -13
- package/item-definitions/conditional-number/conditional-number-options.config.d.ts +7 -7
- package/item-definitions/donut-chart/donut-chart-options.config.d.ts +8 -7
- package/item-definitions/dropdown-filter/dropdown-filter-options.config.d.ts +2 -2
- package/item-definitions/funnel-chart/funnel-chart-options.config.d.ts +88 -0
- package/item-definitions/funnel-chart/i18n/funnel-chart-options.de.d.ts +72 -0
- package/item-definitions/funnel-chart/i18n/funnel-chart-options.en.d.ts +72 -0
- package/item-definitions/funnel-chart/i18n/funnel-chart-options.es.d.ts +72 -0
- package/item-definitions/funnel-chart/i18n/funnel-chart-options.fr.d.ts +72 -0
- package/item-definitions/funnel-chart/i18n/funnel-chart-options.nl.d.ts +72 -0
- package/item-definitions/helpers.d.ts +7 -0
- package/item-definitions/line-chart/line-chart-options.config.d.ts +31 -7
- package/item-definitions/radar-chart/radar-chart-options.config.d.ts +8 -8
- package/item-definitions/sankey-diagram/sankey-diagram-options.config.d.ts +5 -5
- package/item-definitions/search-filter/search-filter-options.config.d.ts +1 -1
- package/item-definitions/slicer-filter/slicer-filter-options.config.d.ts +8 -8
- package/item-definitions/slider-filter/slider-filter-options.config.d.ts +4 -4
- package/item-definitions/sunburst-chart/sunburst-chart-options.config.d.ts +4 -4
- package/item-definitions/treemap-chart/treemap-chart-options.config.d.ts +10 -10
- package/item-definitions/video/video-options.config.d.ts +3 -3
- package/item-definitions/wordcloud-chart/wordcloud-chart-options.config.d.ts +5 -5
- package/package.json +1 -1
- package/components/area-chart-options.config-DMfRioZx.cjs +0 -20
- package/components/bar-chart-options.config-C7BGg5sh.cjs +0 -20
- package/components/bar-chart-options.config-CQfpV1Rx.js +0 -181
- package/components/box-plot-options.config-BsFp2CBS.cjs +0 -20
- package/components/bubble-chart-options.config-DL5Xl6Ad.cjs +0 -20
- package/components/bullet-chart-options.config-BO22R7gx.cjs +0 -20
- package/components/circular-guage-options.config-Dvg5quJ9.cjs +0 -20
- package/components/column-chart-options.config-DomUPYPM.cjs +0 -20
- package/components/conditional-number-options.config-C1eERsoe.cjs +0 -20
- package/components/donut-chart-options.config-kUyTbAtZ.cjs +0 -20
- package/components/line-chart-options.config-DNGyRAvG.cjs +0 -20
- package/components/radar-chart-options.config-DUXOzdbl.cjs +0 -20
- package/components/sankey-diagram-options.config-CG5S1OI3.cjs +0 -20
- package/components/slicer-filter-options.config-DQunaj8q.cjs +0 -20
- package/components/slider-filter-options.config-DF_sAElS.cjs +0 -20
- package/components/sunburst-chart-options.config-CEfAd1RQ.cjs +0 -20
- package/components/treemap-chart-options.config-Dc2UNcGG.cjs +0 -20
- package/components/wordcloud-chart-options.config-BLvcDvxT.cjs +0 -20
- /package/components/{imageobject-options.de-CBkRiIbw.cjs → image-options.de-CBkRiIbw.cjs} +0 -0
- /package/components/{imageobject-options.de-CYVnqdL_.js → image-options.de-CYVnqdL_.js} +0 -0
- /package/components/{imageobject-options.en-BMmV-4O-.js → image-options.en-BMmV-4O-.js} +0 -0
- /package/components/{imageobject-options.en-DflcU_2H.cjs → image-options.en-DflcU_2H.cjs} +0 -0
- /package/components/{imageobject-options.es-CRbNv384.cjs → image-options.es-CRbNv384.cjs} +0 -0
- /package/components/{imageobject-options.es-UN5rmaEt.js → image-options.es-UN5rmaEt.js} +0 -0
- /package/components/{imageobject-options.fr-DRE3zImB.js → image-options.fr-DRE3zImB.js} +0 -0
- /package/components/{imageobject-options.fr-ycH7UoX5.cjs → image-options.fr-ycH7UoX5.cjs} +0 -0
- /package/components/{imageobject-options.nl-D20hki6i.js → image-options.nl-D20hki6i.js} +0 -0
- /package/components/{imageobject-options.nl-DQL45o0j.cjs → image-options.nl-DQL45o0j.cjs} +0 -0
- /package/components/{textobject-options.de-BjfS5RBn.js → text-options.de-BjfS5RBn.js} +0 -0
- /package/components/{textobject-options.de-DLr2-jBn.cjs → text-options.de-DLr2-jBn.cjs} +0 -0
- /package/components/{textobject-options.en-BQqHFc7M.js → text-options.en-BQqHFc7M.js} +0 -0
- /package/components/{textobject-options.en-LfsMtwo6.cjs → text-options.en-LfsMtwo6.cjs} +0 -0
- /package/components/{textobject-options.es-BLQBqlvK.cjs → text-options.es-BLQBqlvK.cjs} +0 -0
- /package/components/{textobject-options.es-CMB1DKq4.js → text-options.es-CMB1DKq4.js} +0 -0
- /package/components/{textobject-options.fr-B8x29grG.cjs → text-options.fr-B8x29grG.cjs} +0 -0
- /package/components/{textobject-options.fr-VPJ3bDOM.js → text-options.fr-VPJ3bDOM.js} +0 -0
- /package/components/{textobject-options.nl-DzglrI3i.cjs → text-options.nl-DzglrI3i.cjs} +0 -0
- /package/item-definitions/image/i18n/{imageobject-options.de.d.ts → image-options.de.d.ts} +0 -0
- /package/item-definitions/image/i18n/{imageobject-options.en.d.ts → image-options.en.d.ts} +0 -0
- /package/item-definitions/image/i18n/{imageobject-options.es.d.ts → image-options.es.d.ts} +0 -0
- /package/item-definitions/image/i18n/{imageobject-options.fr.d.ts → image-options.fr.d.ts} +0 -0
- /package/item-definitions/image/i18n/{imageobject-options.nl.d.ts → image-options.nl.d.ts} +0 -0
- /package/item-definitions/text/i18n/{textobject-options.de.d.ts → text-options.de.d.ts} +0 -0
- /package/item-definitions/text/i18n/{textobject-options.en.d.ts → text-options.en.d.ts} +0 -0
- /package/item-definitions/text/i18n/{textobject-options.es.d.ts → text-options.es.d.ts} +0 -0
- /package/item-definitions/text/i18n/{textobject-options.fr.d.ts → text-options.fr.d.ts} +0 -0
- /package/item-definitions/text/i18n/{textobject-options.nl.d.ts → text-options.nl.d.ts} +0 -0
@@ -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 l=require("./helpers-CKo1Fkek.cjs"),o=({slots:e})=>{var n,i,r,t;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((i=(n=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:n.content)==null?void 0:i.length)>0||((t=(r=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:r.content)==null?void 0:t.length)>1:!1},u=({slots:e})=>{var n,i,r,t;return Array.isArray(e)&&(e==null?void 0:e.length)>0?!(((i=(n=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="legend"))==null?void 0:n.content)==null?void 0:i.length)>0)&&((t=(r=e==null?void 0:e.find(a=>(a==null?void 0:a.name)==="measure"))==null?void 0:r.content)==null?void 0:t.length)<=1:!0},d=({slots:e})=>{var n,i,r;return Array.isArray(e)&&((r=(i=(n=e==null?void 0:e.find(t=>(t==null?void 0:t.name)==="x-axis"))==null?void 0:n.content)==null?void 0:i[0])==null?void 0:r.type)==="datetime"},p=({options:e,slots:n})=>{var i,r,t,a;return Array.isArray(n)&&((t=(r=(i=n==null?void 0:n.find(c=>(c==null?void 0:c.name)==="x-axis"))==null?void 0:i.content)==null?void 0:r[0])==null?void 0:t.type)==="datetime"&&((a=e==null?void 0:e.missingValue)==null?void 0:a.type)==="manual"},y=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{label:"Title",type:"switch",default:!0}},{type:"divider"},{key:"mode",control:{label:"Mode",type:"picker",default:"unstacked",enum:["100","unstacked","stacked","stream"]},visibleIf:o},{key:"interpolation",control:{label:"Interpolation",type:"picker",default:"linear",enum:["linear","step-before","step-after","monotone"]}},{key:"display.legend",control:{label:"Legend",type:"switch",default:!0},visibleIf:o},{key:"display.modeOption",control:{label:"Mode option",type:"switch",default:!0},visibleIf:o},{key:"missingValue.type",control:{label:"Fill missing values",type:"picker",default:"no",enum:["no","break","manual"]},visibleIf:d},{key:"missingValue.value",control:{label:"Value",type:"number-field",default:"no",min:1},visibleIf:p},{key:"color",control:{label:"Area color",type:"color-picker",default:({theme:e})=>l.getThemeMainColor(e),extraLabel:({options:e,theme:n})=>l.getThemeMainColorResetLabel(e,n,"color"),extraLabelHasClickAction:({options:e,theme:n})=>l.getThemeMainColorExtraLabelHasClickAction(e,n,"color"),extraLabelClickAction:({options:e,theme:n})=>l.getThemeMainColorExtraLabelClickAction(e,n,"color")},visibleIf:u}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:o}];exports.default=y;
|
package/components/{area-chart-options.config-B5qtlH-_.js → area-chart-options.config-BbSP_Auh.js}
RENAMED
@@ -17,19 +17,20 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
20
|
+
import { g as c, a as u, b as d, c as p } from "./helpers-DqqxcHaY.js";
|
21
|
+
const l = ({ slots: e }) => {
|
22
|
+
var a, i, r, t;
|
23
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((i = (a = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : a.content) == null ? void 0 : i.length) > 0 || ((t = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : r.content) == null ? void 0 : t.length) > 1 : !1;
|
24
|
+
}, y = ({ slots: e }) => {
|
25
|
+
var a, i, r, t;
|
26
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? !(((i = (a = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : a.content) == null ? void 0 : i.length) > 0) && ((t = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : r.content) == null ? void 0 : t.length) <= 1 : !0;
|
27
|
+
}, m = ({ slots: e }) => {
|
28
|
+
var a, i, r;
|
29
|
+
return Array.isArray(e) && ((r = (i = (a = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.name) === "x-axis")) == null ? void 0 : a.content) == null ? void 0 : i[0]) == null ? void 0 : r.type) === "datetime";
|
30
|
+
}, f = ({ options: e, slots: a }) => {
|
31
|
+
var i, r, t, n;
|
32
|
+
return Array.isArray(a) && ((t = (r = (i = a == null ? void 0 : a.find((o) => (o == null ? void 0 : o.name) === "x-axis")) == null ? void 0 : i.content) == null ? void 0 : r[0]) == null ? void 0 : t.type) === "datetime" && ((n = e == null ? void 0 : e.missingValue) == null ? void 0 : n.type) === "manual";
|
33
|
+
}, b = [
|
33
34
|
{
|
34
35
|
key: "general",
|
35
36
|
type: "group",
|
@@ -54,7 +55,7 @@ const u = (l, e) => {
|
|
54
55
|
default: "unstacked",
|
55
56
|
enum: ["100", "unstacked", "stacked", "stream"]
|
56
57
|
},
|
57
|
-
visibleIf:
|
58
|
+
visibleIf: l
|
58
59
|
},
|
59
60
|
{
|
60
61
|
key: "interpolation",
|
@@ -72,7 +73,7 @@ const u = (l, e) => {
|
|
72
73
|
type: "switch",
|
73
74
|
default: !0
|
74
75
|
},
|
75
|
-
visibleIf:
|
76
|
+
visibleIf: l
|
76
77
|
},
|
77
78
|
{
|
78
79
|
key: "display.modeOption",
|
@@ -81,7 +82,7 @@ const u = (l, e) => {
|
|
81
82
|
type: "switch",
|
82
83
|
default: !0
|
83
84
|
},
|
84
|
-
visibleIf:
|
85
|
+
visibleIf: l
|
85
86
|
},
|
86
87
|
{
|
87
88
|
key: "missingValue.type",
|
@@ -91,7 +92,7 @@ const u = (l, e) => {
|
|
91
92
|
default: "no",
|
92
93
|
enum: ["no", "break", "manual"]
|
93
94
|
},
|
94
|
-
visibleIf:
|
95
|
+
visibleIf: m
|
95
96
|
},
|
96
97
|
{
|
97
98
|
key: "missingValue.value",
|
@@ -101,19 +102,19 @@ const u = (l, e) => {
|
|
101
102
|
default: "no",
|
102
103
|
min: 1
|
103
104
|
},
|
104
|
-
visibleIf:
|
105
|
+
visibleIf: f
|
105
106
|
},
|
106
107
|
{
|
107
108
|
key: "color",
|
108
109
|
control: {
|
109
|
-
label: "
|
110
|
+
label: "Area color",
|
110
111
|
type: "color-picker",
|
111
|
-
default: (
|
112
|
-
|
113
|
-
|
114
|
-
}
|
112
|
+
default: ({ theme: e }) => p(e),
|
113
|
+
extraLabel: ({ options: e, theme: a }) => d(e, a, "color"),
|
114
|
+
extraLabelHasClickAction: ({ options: e, theme: a }) => u(e, a, "color"),
|
115
|
+
extraLabelClickAction: ({ options: e, theme: a }) => c(e, a, "color")
|
115
116
|
},
|
116
|
-
visibleIf:
|
117
|
+
visibleIf: y
|
117
118
|
}
|
118
119
|
]
|
119
120
|
},
|
@@ -127,23 +128,23 @@ const u = (l, e) => {
|
|
127
128
|
control: {
|
128
129
|
label: "Position",
|
129
130
|
type: "position-picker",
|
130
|
-
default: "
|
131
|
+
default: "topRight",
|
131
132
|
enum: [
|
132
|
-
"
|
133
|
+
"topLeft",
|
133
134
|
"top",
|
134
|
-
"
|
135
|
+
"topRight",
|
135
136
|
"right",
|
136
|
-
"
|
137
|
+
"bottomRight",
|
137
138
|
"bottom",
|
138
|
-
"
|
139
|
+
"bottomLeft",
|
139
140
|
"left"
|
140
141
|
]
|
141
142
|
}
|
142
143
|
}
|
143
144
|
],
|
144
|
-
visibleIf:
|
145
|
+
visibleIf: l
|
145
146
|
}
|
146
147
|
];
|
147
148
|
export {
|
148
|
-
|
149
|
+
b as default
|
149
150
|
};
|
@@ -0,0 +1,161 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2025 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
import { g as c, a as u, b as d, c as f } from "./helpers-DqqxcHaY.js";
|
21
|
+
const l = ({ slots: e }) => {
|
22
|
+
var r, a, t, i;
|
23
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : r.content) == null ? void 0 : a.length) > 0 || ((i = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : i.length) > 1 : !1;
|
24
|
+
}, o = ({ slots: e }) => {
|
25
|
+
var r, a, t, i;
|
26
|
+
return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 ? ((a = (r = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "legend")) == null ? void 0 : r.content) == null ? void 0 : a.length) === 0 && ((i = (t = e == null ? void 0 : e.find((n) => (n == null ? void 0 : n.name) === "measure")) == null ? void 0 : t.content) == null ? void 0 : i.length) <= 1 : !0;
|
27
|
+
}, g = [
|
28
|
+
{
|
29
|
+
key: "general",
|
30
|
+
type: "group",
|
31
|
+
open: !0,
|
32
|
+
children: [
|
33
|
+
{
|
34
|
+
key: "mode",
|
35
|
+
control: {
|
36
|
+
type: "picker",
|
37
|
+
default: "grouped",
|
38
|
+
enum: ["grouped", "stacked", "100"]
|
39
|
+
},
|
40
|
+
visibleIf: l
|
41
|
+
},
|
42
|
+
{
|
43
|
+
type: "divider",
|
44
|
+
visibleIf: l
|
45
|
+
},
|
46
|
+
{
|
47
|
+
key: "display.title",
|
48
|
+
control: {
|
49
|
+
type: "switch",
|
50
|
+
default: !0
|
51
|
+
}
|
52
|
+
},
|
53
|
+
{
|
54
|
+
key: "display.legend",
|
55
|
+
control: {
|
56
|
+
type: "switch",
|
57
|
+
default: !0
|
58
|
+
},
|
59
|
+
visibleIf: l
|
60
|
+
},
|
61
|
+
{
|
62
|
+
key: "display.modeOption",
|
63
|
+
control: {
|
64
|
+
type: "switch",
|
65
|
+
default: !1
|
66
|
+
},
|
67
|
+
visibleIf: l
|
68
|
+
},
|
69
|
+
{
|
70
|
+
key: "bars.label",
|
71
|
+
control: {
|
72
|
+
type: "picker",
|
73
|
+
default: "none",
|
74
|
+
enum: [
|
75
|
+
"none",
|
76
|
+
"percentage",
|
77
|
+
"percentageLegend",
|
78
|
+
"percentageCategory",
|
79
|
+
"percentageMax"
|
80
|
+
]
|
81
|
+
}
|
82
|
+
},
|
83
|
+
{
|
84
|
+
key: "categories.colored",
|
85
|
+
control: {
|
86
|
+
type: "switch",
|
87
|
+
default: !1
|
88
|
+
},
|
89
|
+
visibleIf: o
|
90
|
+
},
|
91
|
+
{
|
92
|
+
key: "bars.roundedCorners",
|
93
|
+
control: {
|
94
|
+
type: "slider",
|
95
|
+
default: ({ theme: e }) => {
|
96
|
+
var r;
|
97
|
+
return (r = e == null ? void 0 : e.itemSpecific) == null ? void 0 : r.rounding;
|
98
|
+
},
|
99
|
+
min: 0,
|
100
|
+
max: 20,
|
101
|
+
step: 1,
|
102
|
+
extraLabel: ({ options: e, theme: r }) => {
|
103
|
+
var a, t;
|
104
|
+
if (typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) == "number")
|
105
|
+
return typeof ((t = e == null ? void 0 : e.bars) == null ? void 0 : t.roundedCorners) != "number" ? "auto" : "reset";
|
106
|
+
},
|
107
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => {
|
108
|
+
var a, t;
|
109
|
+
return !(typeof ((a = r == null ? void 0 : r.itemSpecific) == null ? void 0 : a.rounding) != "number" || typeof ((t = e == null ? void 0 : e.bars) == null ? void 0 : t.roundedCorners) != "number");
|
110
|
+
},
|
111
|
+
extraLabelClickAction: ({ options: e }) => {
|
112
|
+
var a;
|
113
|
+
const r = { ...e };
|
114
|
+
return (a = r == null ? void 0 : r.bars) == null || delete a.roundedCorners, { value: null, options: r };
|
115
|
+
}
|
116
|
+
}
|
117
|
+
},
|
118
|
+
{
|
119
|
+
key: "color",
|
120
|
+
control: {
|
121
|
+
type: "color-picker",
|
122
|
+
label: "Bar color",
|
123
|
+
default: ({ theme: e }) => f(e),
|
124
|
+
extraLabel: ({ options: e, theme: r }) => d(e, r, "color"),
|
125
|
+
extraLabelHasClickAction: ({ options: e, theme: r }) => u(e, r, "color"),
|
126
|
+
extraLabelClickAction: ({ options: e, theme: r }) => c(e, r, "color")
|
127
|
+
},
|
128
|
+
visibleIf: o
|
129
|
+
}
|
130
|
+
]
|
131
|
+
},
|
132
|
+
{
|
133
|
+
key: "legend",
|
134
|
+
type: "group",
|
135
|
+
open: !1,
|
136
|
+
children: [
|
137
|
+
{
|
138
|
+
key: "legend.position",
|
139
|
+
control: {
|
140
|
+
label: "Position",
|
141
|
+
type: "position-picker",
|
142
|
+
default: "topRight",
|
143
|
+
enum: [
|
144
|
+
"topLeft",
|
145
|
+
"top",
|
146
|
+
"topRight",
|
147
|
+
"right",
|
148
|
+
"bottomRight",
|
149
|
+
"bottom",
|
150
|
+
"bottomLeft",
|
151
|
+
"left"
|
152
|
+
]
|
153
|
+
}
|
154
|
+
}
|
155
|
+
],
|
156
|
+
visibleIf: l
|
157
|
+
}
|
158
|
+
];
|
159
|
+
export {
|
160
|
+
g as default
|
161
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/*! * A kit of modern Luzmo Web Components for analytics in your web application.
|
2
|
+
*
|
3
|
+
* Copyright © 2025 Luzmo
|
4
|
+
* All rights reserved.
|
5
|
+
* Luzmo web components (“Luzmo Web Components”)
|
6
|
+
* must be used according to the Luzmo Terms of Service.
|
7
|
+
* This license allows users with a current active Luzmo account
|
8
|
+
* to use the Luzmo Web Components. This license terminates
|
9
|
+
* automatically if a user no longer has an active Luzmo account.
|
10
|
+
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
11
|
+
*
|
12
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
13
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
14
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
15
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
16
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
17
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
|
+
* SOFTWARE.
|
19
|
+
* */
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./helpers-CKo1Fkek.cjs"),l=({slots:e})=>{var r,t,i,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((t=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:r.content)==null?void 0:t.length)>0||((a=(i=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:i.content)==null?void 0:a.length)>1:!1},c=({slots:e})=>{var r,t,i,a;return Array.isArray(e)&&(e==null?void 0:e.length)>0?((t=(r=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="legend"))==null?void 0:r.content)==null?void 0:t.length)===0&&((a=(i=e==null?void 0:e.find(n=>(n==null?void 0:n.name)==="measure"))==null?void 0:i.content)==null?void 0:a.length)<=1:!0},u=[{key:"general",type:"group",open:!0,children:[{key:"mode",control:{type:"picker",default:"grouped",enum:["grouped","stacked","100"]},visibleIf:l},{type:"divider",visibleIf:l},{key:"display.title",control:{type:"switch",default:!0}},{key:"display.legend",control:{type:"switch",default:!0},visibleIf:l},{key:"display.modeOption",control:{type:"switch",default:!1},visibleIf:l},{key:"bars.label",control:{type:"picker",default:"none",enum:["none","percentage","percentageLegend","percentageCategory","percentageMax"]}},{key:"categories.colored",control:{type:"switch",default:!1},visibleIf:c},{key:"bars.roundedCorners",control:{type:"slider",default:({theme:e})=>{var r;return(r=e==null?void 0:e.itemSpecific)==null?void 0:r.rounding},min:0,max:20,step:1,extraLabel:({options:e,theme:r})=>{var t,i;if(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)=="number")return typeof((i=e==null?void 0:e.bars)==null?void 0:i.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:r})=>{var t,i;return!(typeof((t=r==null?void 0:r.itemSpecific)==null?void 0:t.rounding)!="number"||typeof((i=e==null?void 0:e.bars)==null?void 0:i.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{var t;const r={...e};return(t=r==null?void 0:r.bars)==null||delete t.roundedCorners,{value:null,options:r}}}},{key:"color",control:{type:"color-picker",label:"Bar color",default:({theme:e})=>o.getThemeMainColor(e),extraLabel:({options:e,theme:r})=>o.getThemeMainColorResetLabel(e,r,"color"),extraLabelHasClickAction:({options:e,theme:r})=>o.getThemeMainColorExtraLabelHasClickAction(e,r,"color"),extraLabelClickAction:({options:e,theme:r})=>o.getThemeMainColorExtraLabelClickAction(e,r,"color")},visibleIf:c}]},{key:"legend",type:"group",open:!1,children:[{key:"legend.position",control:{label:"Position",type:"position-picker",default:"topRight",enum:["topLeft","top","topRight","right","bottomRight","bottom","bottomLeft","left"]}}],visibleIf:l}];exports.default=u;
|
package/components/{box-plot-options.config-DoZHVmpm.js → box-plot-options.config-BtonHYul.js}
RENAMED
@@ -17,10 +17,11 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
20
|
+
import { g as n, a as c, b as s, c as b } from "./helpers-DqqxcHaY.js";
|
21
|
+
const t = ({ options: e }) => {
|
22
|
+
var l;
|
23
|
+
return ((l = e == null ? void 0 : e.observations) == null ? void 0 : l.display) === !0;
|
24
|
+
}, d = [
|
24
25
|
{
|
25
26
|
key: "general",
|
26
27
|
type: "group",
|
@@ -41,8 +42,8 @@ const n = (r) => {
|
|
41
42
|
label: "Display",
|
42
43
|
default: "vertical",
|
43
44
|
enum: ["vertical", "horizontal"],
|
44
|
-
fromOptionValue: (
|
45
|
-
toOptionValue: (
|
45
|
+
fromOptionValue: (e) => e ? "horizontal" : "vertical",
|
46
|
+
toOptionValue: (e) => e === "horizontal"
|
46
47
|
}
|
47
48
|
},
|
48
49
|
{
|
@@ -76,29 +77,14 @@ const n = (r) => {
|
|
76
77
|
control: {
|
77
78
|
type: "color-picker",
|
78
79
|
label: "Box fill",
|
79
|
-
default: (
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
return "reset";
|
88
|
-
},
|
89
|
-
extraLabelHasClickAction: (r, s, o) => {
|
90
|
-
var i;
|
91
|
-
const l = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]);
|
92
|
-
return !!(l && r.boxFill !== l);
|
93
|
-
},
|
94
|
-
extraLabelClickAction: (r, s, o) => {
|
95
|
-
var i;
|
96
|
-
const l = { ...r };
|
97
|
-
return l.boxFill = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]), {
|
98
|
-
value: l.boxFill,
|
99
|
-
options: l
|
100
|
-
};
|
101
|
-
}
|
80
|
+
default: ({ theme: e }) => b(e),
|
81
|
+
extraLabel: ({ options: e, theme: l }) => s(e, l, "boxFill"),
|
82
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => c(
|
83
|
+
e,
|
84
|
+
l,
|
85
|
+
"boxFill"
|
86
|
+
),
|
87
|
+
extraLabelClickAction: ({ options: e, theme: l }) => n(e, l, "boxFill")
|
102
88
|
}
|
103
89
|
},
|
104
90
|
{
|
@@ -106,24 +92,24 @@ const n = (r) => {
|
|
106
92
|
control: {
|
107
93
|
type: "slider",
|
108
94
|
label: "Rounded corners",
|
109
|
-
default: (
|
95
|
+
default: ({ theme: e }) => {
|
110
96
|
var l;
|
111
|
-
return ((l =
|
97
|
+
return ((l = e == null ? void 0 : e.itemSpecific) == null ? void 0 : l.rounding) ?? 8;
|
112
98
|
},
|
113
99
|
min: 0,
|
114
100
|
max: 24,
|
115
101
|
step: 1,
|
116
|
-
extraLabel: (
|
117
|
-
var
|
118
|
-
if (typeof ((
|
119
|
-
return typeof (
|
102
|
+
extraLabel: ({ options: e, theme: l }) => {
|
103
|
+
var r;
|
104
|
+
if (typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.rounding) == "number")
|
105
|
+
return typeof (e == null ? void 0 : e.roundedCorners) != "number" ? "auto" : "reset";
|
120
106
|
},
|
121
|
-
extraLabelHasClickAction: (
|
122
|
-
var
|
123
|
-
return !(typeof ((
|
107
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => {
|
108
|
+
var r;
|
109
|
+
return !(typeof ((r = l == null ? void 0 : l.itemSpecific) == null ? void 0 : r.rounding) != "number" || typeof (e == null ? void 0 : e.roundedCorners) != "number");
|
124
110
|
},
|
125
|
-
extraLabelClickAction: (
|
126
|
-
const l = { ...
|
111
|
+
extraLabelClickAction: ({ options: e }) => {
|
112
|
+
const l = { ...e };
|
127
113
|
return (l == null ? void 0 : l.roundedCorners) !== void 0 && delete l.roundedCorners, { value: null, options: l };
|
128
114
|
}
|
129
115
|
}
|
@@ -144,29 +130,18 @@ const n = (r) => {
|
|
144
130
|
control: {
|
145
131
|
type: "color-picker",
|
146
132
|
label: "Box stroke color",
|
147
|
-
default: (
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
const l = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]);
|
160
|
-
return !!(l && r.boxStrokeColor !== l);
|
161
|
-
},
|
162
|
-
extraLabelClickAction: (r, s, o) => {
|
163
|
-
var i;
|
164
|
-
const l = { ...r };
|
165
|
-
return l.boxStrokeColor = (o == null ? void 0 : o.mainColor) ?? ((i = o == null ? void 0 : o.colors) == null ? void 0 : i[0]), {
|
166
|
-
value: l.boxStrokeColor,
|
167
|
-
options: l
|
168
|
-
};
|
169
|
-
}
|
133
|
+
default: ({ theme: e }) => b(e),
|
134
|
+
extraLabel: ({ options: e, theme: l }) => s(e, l, "boxStrokeColor"),
|
135
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => c(
|
136
|
+
e,
|
137
|
+
l,
|
138
|
+
"boxStrokeColor"
|
139
|
+
),
|
140
|
+
extraLabelClickAction: ({ options: e, theme: l }) => n(
|
141
|
+
e,
|
142
|
+
l,
|
143
|
+
"boxStrokeColor"
|
144
|
+
)
|
170
145
|
}
|
171
146
|
},
|
172
147
|
{
|
@@ -210,7 +185,7 @@ const n = (r) => {
|
|
210
185
|
label: "Only outliers",
|
211
186
|
default: !1
|
212
187
|
},
|
213
|
-
visibleIf:
|
188
|
+
visibleIf: t
|
214
189
|
},
|
215
190
|
{
|
216
191
|
key: "observations.type",
|
@@ -220,7 +195,7 @@ const n = (r) => {
|
|
220
195
|
default: "dot",
|
221
196
|
enum: ["dot", "ticks"]
|
222
197
|
},
|
223
|
-
visibleIf:
|
198
|
+
visibleIf: t
|
224
199
|
},
|
225
200
|
{
|
226
201
|
key: "observations.size",
|
@@ -232,7 +207,7 @@ const n = (r) => {
|
|
232
207
|
max: 10,
|
233
208
|
step: 1
|
234
209
|
},
|
235
|
-
visibleIf:
|
210
|
+
visibleIf: t
|
236
211
|
},
|
237
212
|
{
|
238
213
|
key: "observations.opacity",
|
@@ -244,7 +219,7 @@ const n = (r) => {
|
|
244
219
|
max: 1,
|
245
220
|
step: 0.1
|
246
221
|
},
|
247
|
-
visibleIf:
|
222
|
+
visibleIf: t
|
248
223
|
},
|
249
224
|
{
|
250
225
|
key: "observations.jitter",
|
@@ -256,7 +231,7 @@ const n = (r) => {
|
|
256
231
|
max: 100,
|
257
232
|
step: 1
|
258
233
|
},
|
259
|
-
visibleIf:
|
234
|
+
visibleIf: t
|
260
235
|
},
|
261
236
|
{
|
262
237
|
key: "observations.colorType",
|
@@ -266,38 +241,38 @@ const n = (r) => {
|
|
266
241
|
default: "single",
|
267
242
|
enum: ["single", "range"]
|
268
243
|
},
|
269
|
-
visibleIf:
|
244
|
+
visibleIf: t
|
270
245
|
},
|
271
246
|
{
|
272
247
|
key: "observations.color",
|
273
248
|
control: {
|
274
249
|
type: "color-picker",
|
275
250
|
label: "Color",
|
276
|
-
default: (
|
251
|
+
default: ({ theme: e }) => {
|
277
252
|
var l;
|
278
|
-
return (l =
|
253
|
+
return (l = e == null ? void 0 : e.colors) == null ? void 0 : l[1];
|
279
254
|
},
|
280
|
-
extraLabel: (
|
281
|
-
var
|
282
|
-
if ((
|
255
|
+
extraLabel: ({ options: e, theme: l }) => {
|
256
|
+
var r, o, a, i;
|
257
|
+
if ((r = l == null ? void 0 : l.colors) != null && r[1] && ((o = e.observations) != null && o.color) && ((a = e.observations) == null ? void 0 : a.color) !== ((i = l == null ? void 0 : l.colors) == null ? void 0 : i[1]))
|
283
258
|
return "reset";
|
284
259
|
},
|
285
|
-
extraLabelHasClickAction: (
|
286
|
-
var
|
287
|
-
return !!((
|
260
|
+
extraLabelHasClickAction: ({ options: e, theme: l }) => {
|
261
|
+
var r, o, a;
|
262
|
+
return !!((r = l == null ? void 0 : l.colors) != null && r[1] && ((o = e.observations) == null ? void 0 : o.color) !== ((a = l == null ? void 0 : l.colors) == null ? void 0 : a[1]));
|
288
263
|
},
|
289
|
-
extraLabelClickAction: (
|
290
|
-
var
|
291
|
-
const
|
292
|
-
return
|
293
|
-
value:
|
294
|
-
options:
|
264
|
+
extraLabelClickAction: ({ options: e, theme: l }) => {
|
265
|
+
var o;
|
266
|
+
const r = { ...e };
|
267
|
+
return r.observations.color = (o = l == null ? void 0 : l.colors) == null ? void 0 : o[1], {
|
268
|
+
value: r.observations.color,
|
269
|
+
options: r
|
295
270
|
};
|
296
271
|
}
|
297
272
|
},
|
298
|
-
visibleIf: (
|
299
|
-
var
|
300
|
-
return
|
273
|
+
visibleIf: ({ options: e }) => {
|
274
|
+
var l;
|
275
|
+
return t({ options: e }) && ((l = e == null ? void 0 : e.observations) == null ? void 0 : l.colorType) === "single";
|
301
276
|
}
|
302
277
|
},
|
303
278
|
{
|
@@ -308,14 +283,14 @@ const n = (r) => {
|
|
308
283
|
default: "divergent",
|
309
284
|
enum: ["sequential", "divergent", "manual"]
|
310
285
|
},
|
311
|
-
visibleIf: (
|
312
|
-
var
|
313
|
-
return
|
286
|
+
visibleIf: ({ options: e }) => {
|
287
|
+
var l;
|
288
|
+
return t({ options: e }) && ((l = e == null ? void 0 : e.observations) == null ? void 0 : l.colorType) === "range";
|
314
289
|
}
|
315
290
|
}
|
316
291
|
]
|
317
292
|
}
|
318
293
|
];
|
319
294
|
export {
|
320
|
-
|
295
|
+
d as default
|
321
296
|
};
|
@@ -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 t=require("./helpers-CKo1Fkek.cjs"),a=({options:e})=>{var l;return((l=e==null?void 0:e.observations)==null?void 0:l.display)===!0},c=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"horizontal",control:{type:"picker",label:"Display",default:"vertical",enum:["vertical","horizontal"],fromOptionValue:e=>e?"horizontal":"vertical",toOptionValue:e=>e==="horizontal"}},{key:"extentTicks",control:{type:"switch",label:"Extent ticks",default:!0}}]},{key:"box",type:"group",open:!0,children:[{key:"boxWidth",control:{type:"slider",label:"Box width",default:.9,min:.1,max:1,step:.1}},{key:"boxFill",control:{type:"color-picker",label:"Box fill",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"boxFill"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"boxFill"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"boxFill")}},{key:"roundedCorners",control:{type:"slider",label:"Rounded corners",default:({theme:e})=>{var l;return((l=e==null?void 0:e.itemSpecific)==null?void 0:l.rounding)??8},min:0,max:24,step:1,extraLabel:({options:e,theme:l})=>{var o;if(typeof((o=l==null?void 0:l.itemSpecific)==null?void 0:o.rounding)=="number")return typeof(e==null?void 0:e.roundedCorners)!="number"?"auto":"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var o;return!(typeof((o=l==null?void 0:l.itemSpecific)==null?void 0:o.rounding)!="number"||typeof(e==null?void 0:e.roundedCorners)!="number")},extraLabelClickAction:({options:e})=>{const l={...e};return(l==null?void 0:l.roundedCorners)!==void 0&&delete l.roundedCorners,{value:null,options:l}}}},{key:"boxStrokeWidth",control:{type:"slider",label:"Box stroke width",default:1,min:0,max:5,step:.5}},{key:"boxStrokeColor",control:{type:"color-picker",label:"Box stroke color",default:({theme:e})=>t.getThemeMainColor(e),extraLabel:({options:e,theme:l})=>t.getThemeMainColorResetLabel(e,l,"boxStrokeColor"),extraLabelHasClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelHasClickAction(e,l,"boxStrokeColor"),extraLabelClickAction:({options:e,theme:l})=>t.getThemeMainColorExtraLabelClickAction(e,l,"boxStrokeColor")}},{key:"medianStrokeWidth",control:{type:"slider",label:"Median stroke width",default:2,min:0,max:5,step:.5}},{key:"medianStrokeColor",control:{type:"color-picker",label:"Median stroke color",default:"#000000"}}]},{key:"observations",type:"group",open:!0,children:[{key:"observations.display",control:{type:"switch",label:"Show",default:!1}},{key:"observations.onlyOutliers",control:{type:"switch",label:"Only outliers",default:!1},visibleIf:a},{key:"observations.type",control:{type:"picker",label:"Type",default:"dot",enum:["dot","ticks"]},visibleIf:a},{key:"observations.size",control:{type:"slider",label:"Size",default:3,min:1,max:10,step:1},visibleIf:a},{key:"observations.opacity",control:{type:"slider",label:"Opacity",default:.4,min:.1,max:1,step:.1},visibleIf:a},{key:"observations.jitter",control:{type:"slider",label:"Jitter",default:30,min:1,max:100,step:1},visibleIf:a},{key:"observations.colorType",control:{type:"picker",label:"Color mode",default:"single",enum:["single","range"]},visibleIf:a},{key:"observations.color",control:{type:"color-picker",label:"Color",default:({theme:e})=>{var l;return(l=e==null?void 0:e.colors)==null?void 0:l[1]},extraLabel:({options:e,theme:l})=>{var o,r,i,n;if((o=l==null?void 0:l.colors)!=null&&o[1]&&((r=e.observations)!=null&&r.color)&&((i=e.observations)==null?void 0:i.color)!==((n=l==null?void 0:l.colors)==null?void 0:n[1]))return"reset"},extraLabelHasClickAction:({options:e,theme:l})=>{var o,r,i;return!!((o=l==null?void 0:l.colors)!=null&&o[1]&&((r=e.observations)==null?void 0:r.color)!==((i=l==null?void 0:l.colors)==null?void 0:i[1]))},extraLabelClickAction:({options:e,theme:l})=>{var r;const o={...e};return o.observations.color=(r=l==null?void 0:l.colors)==null?void 0:r[1],{value:o.observations.color,options:o}}},visibleIf:({options:e})=>{var l;return a({options:e})&&((l=e==null?void 0:e.observations)==null?void 0:l.colorType)==="single"}},{key:"observations.colorsType",control:{type:"picker",label:"Colors type",default:"divergent",enum:["sequential","divergent","manual"]},visibleIf:({options:e})=>{var l;return a({options:e})&&((l=e==null?void 0:e.observations)==null?void 0:l.colorType)==="range"}}]}];exports.default=c;
|