@luzmo/analytics-components-kit 1.0.1-alpha.52 → 1.0.1-alpha.54
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/{de-Cxe7xkT4.cjs → de-BimXztr7.cjs} +1 -1
- package/components/{de-ZPzjN2kc.js → de-Ca_gJecj.js} +0 -1
- package/components/display-settings/display-settings.d.ts +1 -0
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/display-settings-binning/index.cjs +1 -1
- package/components/display-settings-binning/index.js +2 -2
- package/components/display-settings-datetime/display-settings-datetime.d.ts +1 -1
- package/components/display-settings-datetime/index.cjs +43 -56
- package/components/display-settings-datetime/index.js +81 -95
- package/components/display-settings-grand-totals/index.cjs +1 -1
- package/components/display-settings-grand-totals/index.js +2 -2
- package/components/display-settings-numeric/index.cjs +19 -19
- package/components/display-settings-numeric/index.js +84 -84
- package/components/display-settings-period-over-period/index.cjs +1 -1
- package/components/display-settings-period-over-period/index.js +2 -2
- package/components/draggable-data-item/index.cjs +1 -1
- package/components/draggable-data-item/index.js +3 -3
- package/components/draggable-data-item-level/index.cjs +1 -1
- package/components/draggable-data-item-level/index.js +1 -1
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +4 -4
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +6 -4
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/{en-GB-BtLbN8o_.js → en-GB-UzDYaNfY.js} +1 -1
- package/components/{en-GB-Dd11ROdW.cjs → en-GB-cN3S24Cg.cjs} +1 -1
- package/components/{es-C0JGlz18.js → es-BHAnPxmj.js} +0 -1
- package/components/{es-4dEouIgb.cjs → es-CDzU1gsd.cjs} +1 -1
- package/components/filter-data-item-picker/index.cjs +1 -1
- package/components/filter-data-item-picker/index.js +2 -2
- package/components/filter-expression-picker/index.cjs +1 -1
- package/components/filter-expression-picker/index.js +1 -1
- package/components/filter-item/index.cjs +1 -1
- package/components/filter-item/index.js +3 -3
- package/components/filter-value-picker/index.cjs +1 -1
- package/components/filter-value-picker/index.js +1 -1
- package/components/filter-value-picker-datetime/index.cjs +1 -1
- package/components/filter-value-picker-datetime/index.js +2 -2
- package/components/filter-value-picker-hierarchy/index.cjs +1 -1
- package/components/filter-value-picker-hierarchy/index.js +2 -2
- package/components/filter-value-picker-numeric/index.cjs +1 -1
- package/components/filter-value-picker-numeric/index.js +2 -2
- package/components/{formatter-CQDms6fU.js → formatter-CqU9_98M.js} +1 -0
- package/components/{formatter-DiJYkB6b.cjs → formatter-Lo9PMcxy.cjs} +1 -1
- package/components/{fr-B_-_f-VN.js → fr-CKHxPDre.js} +0 -1
- package/components/{fr-Dwulhlbi.cjs → fr-s3wNsLiB.cjs} +1 -1
- package/components/grid/index.cjs +1 -1
- package/components/grid/index.js +2 -2
- package/components/{heat-map-options.config-DQya-lag.js → heat-map-options.config-BnLWe8jS.js} +16 -14
- package/components/heat-map-options.config-DVH-Bb5-.cjs +20 -0
- package/components/index-BF9-Mgs_.cjs +249 -0
- package/components/{index-5Z9GD60H.js → index-CZ0HI7ep.js} +2 -2
- package/components/index-D05oY5ND.cjs +178 -0
- package/components/{index-Df-_TbOD.cjs → index-D4JNE3zI.cjs} +1 -1
- package/components/{index-fmbD10nN.js → index-DV63kOPg.js} +269 -242
- package/components/{index-BPVXrhaX.js → index-KFE-WtKZ.js} +5 -3
- package/components/index.cjs +1 -1
- package/components/index.js +4 -4
- package/components/item-context-configs.cjs +225 -0
- package/components/item-context-configs.js +1013 -0
- package/components/item-options-configs.cjs +20 -0
- package/components/item-options-configs.js +109 -0
- package/components/{localized-decorator-DIXYZ3RL.cjs → localized-decorator-CIHsaT2_.cjs} +1 -1
- package/components/{localized-decorator-Bl5gcI6n.js → localized-decorator-Di4TdvRQ.js} +1 -1
- package/components/{marker-map-options.config-CYoq89Oz.js → marker-map-options.config-DPJ955tt.js} +1 -1
- package/components/{marker-map-options.config-_XFv5XWK.cjs → marker-map-options.config-_FYZzRwA.cjs} +1 -1
- package/components/{nl-gdQCG4WV.js → nl-CMVty5rf.js} +0 -1
- package/components/{nl-DxdBIXDd.cjs → nl-DHgf0PUG.cjs} +1 -1
- package/components/{periods.const-7sXlqgEo.cjs → periods.const-CTd6Hskz.cjs} +1 -1
- package/components/{periods.const-B7FKokcH.js → periods.const-D77iT3rK.js} +1 -1
- package/components/{set-locale-DCPlazsZ.cjs → set-locale-CSL8WaxL.cjs} +1 -1
- package/components/{set-locale-GI34z_M7.js → set-locale-CW9yA503.js} +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +3 -3
- package/components/slot-menu/index.cjs +8 -8
- package/components/slot-menu/index.js +88 -76
- package/components/slot-menu-list/index.cjs +1 -1
- package/components/slot-menu-list/index.js +9 -10
- package/components/{symbol-map-options.config-Bj-UuL9m.js → symbol-map-options.config-DdDA4aa7.js} +1 -1
- package/components/{symbol-map-options.config-sdPlHspI.cjs → symbol-map-options.config-m-lwLTtu.cjs} +1 -1
- package/components/utils.cjs +1 -1
- package/components/utils.js +1 -1
- package/components/venn-diagram-options.config-CGUMA930.js +23 -0
- package/components/venn-diagram-options.config-mPXMR1CE.cjs +20 -0
- package/custom-elements.json +6 -0
- package/item-definitions/area-chart/area-chart-context.config.d.ts +20 -0
- package/item-definitions/bar-chart/bar-chart-context.config.d.ts +20 -0
- package/item-definitions/box-plot/box-plot-context.config.d.ts +17 -0
- package/item-definitions/bubble-chart/bubble-chart-context.config.d.ts +20 -0
- package/item-definitions/bullet-chart/bullet-chart-context.config.d.ts +20 -0
- package/item-definitions/choropleth-map/choropleth-map-context.config.d.ts +20 -0
- package/item-definitions/circle-pack-chart/circle-pack-chart-context.config.d.ts +17 -0
- package/item-definitions/circular-gauge/circular-gauge-context.config.d.ts +17 -0
- package/item-definitions/circular-gauge/circular-gauge-options.config.d.ts +1 -1
- package/item-definitions/column-chart/column-chart-context.config.d.ts +20 -0
- package/item-definitions/combination-chart/combination-chart-context.config.d.ts +17 -0
- package/item-definitions/conditional-number/conditional-number-context.config.d.ts +17 -0
- package/item-definitions/context-helpers.d.ts +2 -0
- package/item-definitions/date-filter/date-filter-context.config.d.ts +14 -0
- package/item-definitions/donut-chart/donut-chart-context.config.d.ts +17 -0
- package/item-definitions/dropdown-filter/dropdown-filter-context.config.d.ts +14 -0
- package/item-definitions/evolution-number/evolution-number-context.config.d.ts +17 -0
- package/item-definitions/funnel-chart/funnel-chart-context.config.d.ts +17 -0
- package/item-definitions/heat-map/heat-map-context.config.d.ts +17 -0
- package/item-definitions/heat-table/heat-table-context.config.d.ts +20 -0
- package/item-definitions/hexbin-map/hexbin-map-context.config.d.ts +17 -0
- package/item-definitions/image/image-context.config.d.ts +10 -0
- package/item-definitions/item-context.config.d.ts +44 -0
- package/item-definitions/item-options.config.d.ts +44 -0
- package/item-definitions/line-chart/line-chart-context.config.d.ts +20 -0
- package/item-definitions/marker-map/marker-map-context.config.d.ts +17 -0
- package/item-definitions/ohlc-chart/ohlc-chart-context.config.d.ts +26 -0
- package/item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-context.config.d.ts +17 -0
- package/item-definitions/pivot-table/pivot-table-context.config.d.ts +20 -0
- package/item-definitions/pyramid-chart/pyramid-chart-context.config.d.ts +20 -0
- package/item-definitions/radar-chart/radar-chart-context.config.d.ts +20 -0
- package/item-definitions/regular-table/regular-table-context.config.d.ts +14 -0
- package/item-definitions/route-map/route-map-context.config.d.ts +23 -0
- package/item-definitions/sankey-diagram/sankey-diagram-context.config.d.ts +19 -0
- package/item-definitions/scatter-plot/scatter-plot-context.config.d.ts +26 -0
- package/item-definitions/search-filter/search-filter-context.config.d.ts +14 -0
- package/item-definitions/slicer-filter/slicer-filter-context.config.d.ts +17 -0
- package/item-definitions/slider-filter/slider-filter-context.config.d.ts +14 -0
- package/item-definitions/spacer/spacer-context.config.d.ts +10 -0
- package/item-definitions/speedometer-chart/speedometer-chart-context.config.d.ts +17 -0
- package/item-definitions/spike-map/spike-map-context.config.d.ts +20 -0
- package/item-definitions/strip-plot/strip-plot-context.config.d.ts +17 -0
- package/item-definitions/sunburst-chart/sunburst-chart-context.config.d.ts +17 -0
- package/item-definitions/symbol-map/symbol-map-context.config.d.ts +20 -0
- package/item-definitions/text/text-context.config.d.ts +10 -0
- package/item-definitions/treemap-chart/treemap-chart-context.config.d.ts +20 -0
- package/item-definitions/venn-diagram/venn-diagram-context.config.d.ts +20 -0
- package/item-definitions/venn-diagram/venn-diagram-options.config.d.ts +2 -0
- package/item-definitions/video/video-context.config.d.ts +10 -0
- package/item-definitions/wordcloud-chart/wordcloud-chart-context.config.d.ts +20 -0
- package/package.json +11 -1
- package/components/heat-map-options.config-BQ-Afrbi.cjs +0 -20
- package/components/index-3X8Iuo7y.cjs +0 -174
- package/components/index-CSfR7FMV.cjs +0 -249
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare const slicerFilterContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
dimension: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
measure: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare const speedometerChartContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
measure: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
target: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare const spikeMapContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
geo: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
measure: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
color: {
|
17
|
+
description: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare const stripPlotContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
measure: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
'y-axis': {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
export declare const sunburstChartContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
measure: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
levels: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare const symbolMapContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
geo: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
measure: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
category: {
|
17
|
+
description: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare const treemapChartContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
measure: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
category: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
color: {
|
17
|
+
description: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare const vennDiagramContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
category: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
identifier: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
measure: {
|
17
|
+
description: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export declare const wordcloudChartContextConfig: {
|
2
|
+
name: string;
|
3
|
+
label: string;
|
4
|
+
defaultSize: {
|
5
|
+
width: number;
|
6
|
+
height: number;
|
7
|
+
};
|
8
|
+
description: string;
|
9
|
+
slots: {
|
10
|
+
measure: {
|
11
|
+
description: string;
|
12
|
+
};
|
13
|
+
category: {
|
14
|
+
description: string;
|
15
|
+
};
|
16
|
+
color: {
|
17
|
+
description: string;
|
18
|
+
};
|
19
|
+
};
|
20
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@luzmo/analytics-components-kit",
|
3
|
-
"version": "1.0.1-alpha.
|
3
|
+
"version": "1.0.1-alpha.54",
|
4
4
|
"type": "module",
|
5
5
|
"main": "./components/index.js",
|
6
6
|
"module": "./components/index.js",
|
@@ -206,6 +206,16 @@
|
|
206
206
|
"import": "./components/utils.js",
|
207
207
|
"require": "./components/utils.cjs"
|
208
208
|
},
|
209
|
+
"./item-options-configs": {
|
210
|
+
"types": "./item-definitions/item-options.config.d.ts",
|
211
|
+
"import": "./components/item-options-configs.js",
|
212
|
+
"require": "./components/item-options-configs.cjs"
|
213
|
+
},
|
214
|
+
"./item-context-configs": {
|
215
|
+
"types": "./item-definitions/item-context.config.d.ts",
|
216
|
+
"import": "./components/item-context-configs.js",
|
217
|
+
"require": "./components/item-context-configs.cjs"
|
218
|
+
},
|
209
219
|
"./item-list": {
|
210
220
|
"types": "./item-definitions/item-list.d.ts",
|
211
221
|
"import": "./components/item-list.js",
|
@@ -1,20 +0,0 @@
|
|
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 y=require("./color-B6LaL8qz.cjs"),a=require("./color-palettes-DhNHcib8.cjs"),p=require("./index-DhDgy1sp.cjs"),n=()=>structuredClone(a.getColorMaps().Spectrum.colors5),d=e=>{var r;if(!e||e.length===0)return[];const t=/^rgb(a)?\s*\(/i.test(((r=e.at(-1))==null?void 0:r.trim())??"");return e.map(o=>new y.Color(o).toString({format:t?"hex":"rgb"}))},s=e=>{const t=(e==null?void 0:e.length)||0;return t===0?{type:"heat",colorClass:"Spectrum",colors:n()}:a.getColorMapKeys().map(l=>{var u,i;return{type:(u=a.getColorMaps()[l])==null?void 0:u.type,colorClass:l,colors:(i=a.getColorMaps()[l])==null?void 0:i[`colors${t}`]}}).find(l=>Array.isArray(l.colors)&&Array.isArray(e)&&l.colors.length===e.length&&l.colors.every((u,i)=>u===e[i]))??{type:"manual",colorClass:"manual",colors:e}},m=[{key:"general",type:"group",open:!0,children:[{key:"display.title",control:{type:"switch",label:"Title",default:!0}},{key:"enabled.zoom",control:{type:"switch",label:"Zoom",default:!0}},{key:"enabled.pan",control:{type:"switch",label:"Pan",default:!0}},{key:"enabled.pitchBearing",control:{type:"switch",label:"Pitch & Rotate",default:!1}},{type:"divider"},{key:"vectorTileProvider",control:{type:"picker",label:"Map style",default:"Basic",enum:["Basic","Bright","Dark","Fiord","Liberty","Pastel","Positron","Streets","Toner","Topographique","Voyager","No Tiles"],parseValue:e=>(e==null?void 0:e.name)||"Basic",toValue:e=>p.mapVectorTileProviders[e]??{}}}]},{key:"heat",type:"group",open:!0,children:[{key:"enabled.adaptOnZoom",control:{type:"switch",label:"Adapt on zoom",tooltip:"If turned off, density is calculated based on map surface",default:!0}},{key:"heatRadius",control:{type:"slider",label:"Radius",default:20,min:1,max:50,step:1}},{key:"intensity",control:{type:"slider",label:"Intensity",tooltip:"Multiplier for the density, multiplies by 1 on minimum (default)",default:1,min:1,max:100,step:1}}]},{key:"heatColors",type:"group",open:!0,children:[{key:"opacity",control:{type:"slider",label:"Opacity",default:.8,min:0,max:1,step:.01}},{key:"colorsClassType",control:{type:"picker",label:"Colors type",default:"sequential",enum:["heat","sequential","manual"],calculateValue:({options:e})=>s(e==null?void 0:e.colors).type,toOptions:({options:e,value:t})=>{var c,l;const r=s(e==null?void 0:e.colors),o={...e};return r.type!==t&&(o.colors=t==="manual"?d(r.colors??n()):((l=a.getColorMaps()[(c=a.getColorMapKeys(t))==null?void 0:c[0]])==null?void 0:l.colors5)??n()),o}}},{key:"colorsClass",control:{type:"color-palette-picker",label:"Color palette",hideLabel:!0,default:"Spectrum",enum:({options:e})=>{const t=s(e==null?void 0:e.colors).type;return a.getColorMapKeys(["heat","sequential"].includes(t)?t:"heat")},calculateValue:({options:e})=>{const t=s(e==null?void 0:e.colors);return t!=null&&t.colorClass&&t.colorClass!=="manual"?t.colorClass:"Spectrum"},toOptions:({options:e,value:t})=>{var o;const r={...e};return r.colors=((o=a.getColorMaps()[t])==null?void 0:o.colors5)??n(),r}},visibleIf:({options:e})=>s(e==null?void 0:e.colors).type!=="manual"},{key:"colors",control:{type:"color-range",editRangeSize:!1,noValues:!0,minimumRangeSize:4,noAlphaChannel:!0,hideLabel:!0,label:"Manual color ranges",default:n(),parseValue:e=>e==null?void 0:e.map(t=>({color:t})),toValue:e=>(e==null?void 0:e.map(t=>t==null?void 0:t.color))??[]},visibleIf:({options:e})=>s(e==null?void 0:e.colors).type==="manual"}]}];exports.default=m;
|
@@ -1,174 +0,0 @@
|
|
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";const c=require("./property-Cu4Q1hS4.cjs"),le=require("./task-CwmAXlv0.cjs");require("./index-DtohCwyO.cjs");require("./index-j8UKjHqY.cjs");require("./index-DSQyBS9Z.cjs");require("./index-Tx5oQjbt.cjs");require("./index-BKwbYw6x.cjs");require("./index-cHKqEi5-.cjs");require("./index-CYeQkVeJ.cjs");const ue=require("./state-fyl3IYMu.cjs"),ce=require("./query-D5qWDopr.cjs"),T=require("./luzmo-icons-DonyjSXg.cjs"),de=require("./focusable-DAGGGYyz.cjs"),V=require("./sized-mixin-j_7aJM4b.cjs");var pe=Object.defineProperty,he=(e,t,s)=>t in e?pe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,q=(e,t,s)=>(he(e,typeof t!="symbol"?t+"":t,s),s),me=(e,t,s)=>{if(!t.has(e))throw TypeError("Cannot "+s)},P=(e,t)=>{if(Object(t)!==t)throw TypeError('Cannot use the "in" operator on this value');return e.has(t)},N=(e,t,s)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,s)},B=(e,t,s)=>(me(e,t,"access private method"),s);/**
|
21
|
-
* @license
|
22
|
-
* Copyright Google LLC All Rights Reserved.
|
23
|
-
*
|
24
|
-
* Use of this source code is governed by an MIT-style license that can be
|
25
|
-
* found in the LICENSE file at https://angular.io/license
|
26
|
-
*/function G(e,t){return Object.is(e,t)}/**
|
27
|
-
* @license
|
28
|
-
* Copyright Google LLC All Rights Reserved.
|
29
|
-
*
|
30
|
-
* Use of this source code is governed by an MIT-style license that can be
|
31
|
-
* found in the LICENSE file at https://angular.io/license
|
32
|
-
*/let u=null,x=!1,E=1;const I=Symbol("SIGNAL");function _(e){const t=u;return u=e,t}function ge(){return u}function ve(){return x}const A={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function O(e){if(x)throw new Error(typeof ngDevMode<"u"&&ngDevMode?"Assertion error: signal read during notification phase":"");if(u===null)return;u.consumerOnSignalRead(e);const t=u.nextProducerIndex++;if(S(u),t<u.producerNode.length&&u.producerNode[t]!==e&&D(u)){const s=u.producerNode[t];k(s,u.producerIndexOfThis[t])}u.producerNode[t]!==e&&(u.producerNode[t]=e,u.producerIndexOfThis[t]=D(u)?K(e,u,t):0),u.producerLastReadVersion[t]=e.version}function fe(){E++}function H(e){if(!(!e.dirty&&e.lastCleanEpoch===E)){if(!e.producerMustRecompute(e)&&!we(e)){e.dirty=!1,e.lastCleanEpoch=E;return}e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=E}}function J(e){if(e.liveConsumerNode===void 0)return;const t=x;x=!0;try{for(const s of e.liveConsumerNode)s.dirty||be(s)}finally{x=t}}function ye(){return(u==null?void 0:u.consumerAllowSignalWrites)!==!1}function be(e){var t;e.dirty=!0,J(e),(t=e.consumerMarkedDirty)==null||t.call(e.wrapper??e)}function ze(e){return e&&(e.nextProducerIndex=0),_(e)}function Ce(e,t){if(_(t),!(!e||e.producerNode===void 0||e.producerIndexOfThis===void 0||e.producerLastReadVersion===void 0)){if(D(e))for(let s=e.nextProducerIndex;s<e.producerNode.length;s++)k(e.producerNode[s],e.producerIndexOfThis[s]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function we(e){S(e);for(let t=0;t<e.producerNode.length;t++){const s=e.producerNode[t],o=e.producerLastReadVersion[t];if(o!==s.version||(H(s),o!==s.version))return!0}return!1}function K(e,t,s){var o;if(U(e),S(e),e.liveConsumerNode.length===0){(o=e.watched)==null||o.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=K(e.producerNode[r],e,r)}return e.liveConsumerIndexOfThis.push(s),e.liveConsumerNode.push(t)-1}function k(e,t){var s;if(U(e),S(e),typeof ngDevMode<"u"&&ngDevMode&&t>=e.liveConsumerNode.length)throw new Error(`Assertion error: active consumer index ${t} is out of bounds of ${e.liveConsumerNode.length} consumers)`);if(e.liveConsumerNode.length===1){(s=e.unwatched)==null||s.call(e.wrapper);for(let r=0;r<e.producerNode.length;r++)k(e.producerNode[r],e.producerIndexOfThis[r])}const o=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[o],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[o],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],n=e.liveConsumerNode[t];S(n),n.producerIndexOfThis[r]=t}}function D(e){var t;return e.consumerIsAlwaysLive||(((t=e==null?void 0:e.liveConsumerNode)==null?void 0:t.length)??0)>0}function S(e){e.producerNode??(e.producerNode=[]),e.producerIndexOfThis??(e.producerIndexOfThis=[]),e.producerLastReadVersion??(e.producerLastReadVersion=[])}function U(e){e.liveConsumerNode??(e.liveConsumerNode=[]),e.liveConsumerIndexOfThis??(e.liveConsumerIndexOfThis=[])}/**
|
33
|
-
* @license
|
34
|
-
* Copyright Google LLC All Rights Reserved.
|
35
|
-
*
|
36
|
-
* Use of this source code is governed by an MIT-style license that can be
|
37
|
-
* found in the LICENSE file at https://angular.io/license
|
38
|
-
*/function Q(e){if(H(e),O(e),e.value===R)throw e.error;return e.value}function _e(e){const t=Object.create(Se);t.computation=e;const s=()=>Q(t);return s[I]=t,s}const L=Symbol("UNSET"),W=Symbol("COMPUTING"),R=Symbol("ERRORED"),Se={...A,value:L,dirty:!0,error:null,equal:G,producerMustRecompute(e){return e.value===L||e.value===W},producerRecomputeValue(e){if(e.value===W)throw new Error("Detected cycle in computations.");const t=e.value;e.value=W;const s=ze(e);let o,r=!1;try{o=e.computation.call(e.wrapper),r=t!==L&&t!==R&&e.equal.call(e.wrapper,t,o)}catch(n){o=R,e.error=n}finally{Ce(e,s)}if(r){e.value=t;return}e.value=o,e.version++}};/**
|
39
|
-
* @license
|
40
|
-
* Copyright Google LLC All Rights Reserved.
|
41
|
-
*
|
42
|
-
* Use of this source code is governed by an MIT-style license that can be
|
43
|
-
* found in the LICENSE file at https://angular.io/license
|
44
|
-
*/function xe(){throw new Error}let $e=xe;function Te(){$e()}/**
|
45
|
-
* @license
|
46
|
-
* Copyright Google LLC All Rights Reserved.
|
47
|
-
*
|
48
|
-
* Use of this source code is governed by an MIT-style license that can be
|
49
|
-
* found in the LICENSE file at https://angular.io/license
|
50
|
-
*/function Ne(e){const t=Object.create(Oe);t.value=e;const s=()=>(O(t),t.value);return s[I]=t,s}function Ee(){return O(this),this.value}function Ie(e,t){ye()||Te(),e.equal.call(e.wrapper,e.value,t)||(e.value=t,ke(e))}const Oe={...A,equal:G,value:void 0};function ke(e){e.version++,fe(),J(e)}/**
|
51
|
-
* @license
|
52
|
-
* Copyright 2024 Bloomberg Finance L.P.
|
53
|
-
*
|
54
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
55
|
-
* you may not use this file except in compliance with the License.
|
56
|
-
* You may obtain a copy of the License at
|
57
|
-
*
|
58
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
59
|
-
*
|
60
|
-
* Unless required by applicable law or agreed to in writing, software
|
61
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
62
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
63
|
-
* See the License for the specific language governing permissions and
|
64
|
-
* limitations under the License.
|
65
|
-
*/const p=Symbol("node");var y;(e=>{var t,s,o,r;class n{constructor(z,m={}){N(this,s),q(this,t);const h=Ne(z)[I];if(this[p]=h,h.wrapper=this,m){const C=m.equals;C&&(h.equal=C),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.get");return Ee.call(this[p])}set(z){if(!(0,e.isState)(this))throw new TypeError("Wrong receiver type for Signal.State.prototype.set");if(ve())throw new Error("Writes to signals not permitted during Watcher callback");const m=this[p];Ie(m,z)}}t=p,s=new WeakSet,e.isState=d=>typeof d=="object"&&P(s,d),e.State=n;class b{constructor(z,m){N(this,r),q(this,o);const h=_e(z)[I];if(h.consumerAllowSignalWrites=!0,this[p]=h,h.wrapper=this,m){const C=m.equals;C&&(h.equal=C),h.watched=m[e.subtle.watched],h.unwatched=m[e.subtle.unwatched]}}get(){if(!(0,e.isComputed)(this))throw new TypeError("Wrong receiver type for Signal.Computed.prototype.get");return Q(this[p])}}o=p,r=new WeakSet,e.isComputed=d=>typeof d=="object"&&P(r,d),e.Computed=b,(d=>{var z,m,w,h;function C(l){let a,i=null;try{i=_(null),a=l()}finally{_(i)}return a}d.untrack=C;function te(l){var a;if(!(0,e.isComputed)(l)&&!(0,e.isWatcher)(l))throw new TypeError("Called introspectSources without a Computed or Watcher argument");return((a=l[p].producerNode)==null?void 0:a.map(i=>i.wrapper))??[]}d.introspectSources=te;function se(l){var a;if(!(0,e.isComputed)(l)&&!(0,e.isState)(l))throw new TypeError("Called introspectSinks without a Signal argument");return((a=l[p].liveConsumerNode)==null?void 0:a.map(i=>i.wrapper))??[]}d.introspectSinks=se;function re(l){if(!(0,e.isComputed)(l)&&!(0,e.isState)(l))throw new TypeError("Called hasSinks without a Signal argument");const a=l[p].liveConsumerNode;return a?a.length>0:!1}d.hasSinks=re;function ie(l){if(!(0,e.isComputed)(l)&&!(0,e.isWatcher)(l))throw new TypeError("Called hasSources without a Computed or Watcher argument");const a=l[p].producerNode;return a?a.length>0:!1}d.hasSources=ie;class oe{constructor(a){N(this,m),N(this,w),q(this,z);let i=Object.create(A);i.wrapper=this,i.consumerMarkedDirty=a,i.consumerIsAlwaysLive=!0,i.consumerAllowSignalWrites=!1,i.producerNode=[],this[p]=i}watch(...a){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,w,h).call(this,a);const i=this[p];i.dirty=!1;const v=_(i);for(const $ of a)O($[p]);_(v)}unwatch(...a){if(!(0,e.isWatcher)(this))throw new TypeError("Called unwatch without Watcher receiver");B(this,w,h).call(this,a);const i=this[p];S(i);for(let v=i.producerNode.length-1;v>=0;v--)if(a.includes(i.producerNode[v].wrapper)){k(i.producerNode[v],i.producerIndexOfThis[v]);const $=i.producerNode.length-1;if(i.producerNode[v]=i.producerNode[$],i.producerIndexOfThis[v]=i.producerIndexOfThis[$],i.producerNode.length--,i.producerIndexOfThis.length--,i.nextProducerIndex--,v<i.producerNode.length){const ae=i.producerIndexOfThis[v],M=i.producerNode[v];U(M),M.liveConsumerIndexOfThis[ae]=v}}}getPending(){if(!(0,e.isWatcher)(this))throw new TypeError("Called getPending without Watcher receiver");return this[p].producerNode.filter(i=>i.dirty).map(i=>i.wrapper)}}z=p,m=new WeakSet,w=new WeakSet,h=function(l){for(const a of l)if(!(0,e.isComputed)(a)&&!(0,e.isState)(a))throw new TypeError("Called watch/unwatch without a Computed or State argument")},e.isWatcher=l=>P(m,l),d.Watcher=oe;function ne(){var l;return(l=ge())==null?void 0:l.wrapper}d.currentComputed=ne,d.watched=Symbol("watched"),d.unwatched=Symbol("unwatched")})(e.subtle||(e.subtle={}))})(y||(y={}));/**
|
66
|
-
* @license
|
67
|
-
* Copyright 2023 Google LLC
|
68
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
69
|
-
*/const qe=Symbol("SignalWatcherBrand"),Pe=new FinalizationRegistry(({watcher:e,signal:t})=>{e.unwatch(t)}),F=new WeakMap;function X(e){return e[qe]===!0?(console.warn("SignalWatcher should not be applied to the same class more than once."),e):class extends e{constructor(){super(...arguments),this._$St=new y.State(0),this._$Si=!1,this._$So=!0,this._$Sh=new Set}_$Sl(){if(this._$Su!==void 0)return;this._$Sv=new y.Computed(()=>{this._$St.get(),super.performUpdate()});const t=this._$Su=new y.subtle.Watcher(function(){const s=F.get(this);s!==void 0&&(s._$Si===!1&&s.requestUpdate(),this.watch())});F.set(t,this),Pe.register(this,{watcher:t,signal:this._$Sv}),t.watch(this._$Sv)}_$Sp(){this._$Su!==void 0&&(this._$Su.unwatch(this._$Sv),this._$Sv=void 0,this._$Su=void 0)}performUpdate(){this.isUpdatePending&&(this._$Sl(),this._$Si=!0,this._$St.set(this._$St.get()+1),this._$Si=!1,this._$Sv.get())}update(t){try{this._$So?(this._$So=!1,super.update(t)):this._$Sh.forEach(s=>s.commit())}finally{this.isUpdatePending=!1,this._$Sh.clear()}}requestUpdate(t,s,o){this._$So=!0,super.requestUpdate(t,s,o)}connectedCallback(){super.connectedCallback(),this.requestUpdate()}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected===!1&&this._$Sp()})}_(t){this._$Sh.add(t);const s=this._$So;this.requestUpdate(),this._$So=s}m(t){this._$Sh.delete(t)}}}/**
|
70
|
-
* @license
|
71
|
-
* Copyright 2023 Google LLC
|
72
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
73
|
-
*/y.State;y.Computed;const Le=(e,t)=>new y.State(e,t),We=(e,t)=>new y.Computed(e,t);/**
|
74
|
-
* @license
|
75
|
-
* Copyright 2021 Google LLC
|
76
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
77
|
-
*/let Y=class extends Event{constructor(t,s,o,r){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=s,this.callback=o,this.subscribe=r??!1}};/**
|
78
|
-
* @license
|
79
|
-
* Copyright 2021 Google LLC
|
80
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
81
|
-
*//**
|
82
|
-
* @license
|
83
|
-
* Copyright 2021 Google LLC
|
84
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
85
|
-
*/class j{constructor(t,s,o,r){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(n,b)=>{this.unsubscribe&&(this.unsubscribe!==b&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=n,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(n,b)),this.unsubscribe=b},this.host=t,s.context!==void 0){const n=s;this.context=n.context,this.callback=n.callback,this.subscribe=n.subscribe??!1}else this.context=s,this.callback=o,this.subscribe=r??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Y(this.context,this.host,this.t,this.subscribe))}}/**
|
86
|
-
* @license
|
87
|
-
* Copyright 2022 Google LLC
|
88
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
89
|
-
*/function Z({context:e,subscribe:t}){return(s,o)=>{typeof o=="object"?o.addInitializer(function(){new j(this,{context:e,callback:r=>{s.set.call(this,r)},subscribe:t})}):s.constructor.addInitializer(r=>{new j(r,{context:e,callback:n=>{r[o]=n},subscribe:t})})}}const ee=Symbol("slot-store-context"),De=":host{font-family:var(--luzmo-display-settings-font-family, var(--luzmo-font-family));font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.settings-container{display:flex;flex-direction:column;gap:var(--luzmo-spacing-2)}.settings-row{display:flex;justify-content:flex-start;align-items:center;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap))}luzmo-divider{margin:var(--luzmo-display-settings-ids-container-vertical-margin, var(--display-settings-ids-container-vertical-margin)) 0}.setting{display:flex;align-items:center}.label-action-container{display:flex;align-items:center;justify-content:space-between;gap:var(--luzmo-display-settings-info-to-remove-icon-gap, var(--display-settings-info-to-remove-icon-gap))}.id-button,.remove-button{outline:none;cursor:pointer;border:none;background:none;font-size:var(--luzmo-display-settings-font-size, var(--display-settings-font-size));color:var(--luzmo-display-settings-font-color, var(--luzmo-font-color))}.remove-button{display:block;width:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));height:var(--luzmo-display-settings-remove-button-size, var(--display-settings-remove-button-size));border-radius:var(--luzmo-display-settings-remove-button-border-radius, 50%)}.remove-button:hover{background-color:var(--luzmo-display-settings-remove-button-background-color-hover, var(--luzmo-background-color-hover))}.remove-button:active,.remove-button:focus{background-color:var(--luzmo-display-settings-remove-button-background-color-down, var(--luzmo-background-color-down))}.remove-button:focus-visible{box-shadow:0 0 0 var(--luzmo-display-settings-remove-button-indicator-thickness, var(--display-settings-remove-button-indicator-thickness)) var(--highcontrast-remove-button-indicator-color, var(--luzmo-display-settings-remove-button-indicator-color, var(--display-settings-remove-button-indicator-color)))}.ids-container{display:flex;flex-direction:column;gap:var(--luzmo-display-settings-gap, var(--display-settings-gap));border-radius:50%}.id-label{text-transform:var(--luzmo-display-settings-id-label-text-transform, var(--display-settings-id-label-text-transform));font-size:var(--luzmo-display-settings-id-label-font-size, var(--display-settings-id-label-font-size));color:var(--luzmo-display-settings-id-label-color, var(--display-settings-id-label-color))}:host{--display-settings-font-family: var(--luzmo-font-family);--display-settings-id-label-text-transform: uppercase;--display-settings-id-label-color: var(--luzmo-secondary);--display-settings-remove-button-indicator-color: var(--luzmo-primary);--display-settings-remove-button-indicator-thickness: var( --luzmo-border-width )}:host{--display-settings-font-size: var(--luzmo-font-size);--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-4);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-5);--display-settings-remove-button-size: var(--luzmo-component-height)}:host([size=s]){--display-settings-id-label-font-size: var(--luzmo-font-size-s);--display-settings-font-size: var(--luzmo-font-size-s);--display-settings-gap: var(--luzmo-spacing-3);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-3);--display-settings-info-to-remove-icon-gap: var(--luzmo-spacing-4);--display-settings-remove-button-size: var(--luzmo-component-height-s)}:host([size=l]){--display-settings-id-label-font-size: var(--luzmo-font-size);--display-settings-font-size: var(--luzmo-font-size-l);--display-settings-gap: var(--luzmo-spacing-4);--display-settings-ids-container-vertical-margin: var(--luzmo-spacing-5);--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-remove-button-size: var(--luzmo-component-height-l)}:host([size=xl]){--display-settings-id-label-font-size: var(--luzmo-font-size-l);--display-settings-font-size: var(--luzmo-font-size-xl);--display-settings-gap: var(--luzmo-spacing-5);--display-settings-ids-container-vertical-margin: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-1) );--display-settings-info-to-remove-icon-gap: calc( var(--luzmo-spacing-5) + var(--luzmo-spacing-2) );--display-settings-remove-button-size: var(--luzmo-component-height-xl)}";var Re=Object.defineProperty,f=(e,t,s,o)=>{for(var r=void 0,n=e.length-1,b;n>=0;n--)(b=e[n])&&(r=b(t,s,r)||r);return r&&Re(t,s,r),r};class g extends X(V.SizedMixin(de.LuzmoElement,{validSizes:Object.values(V.ElementSizes)})){constructor(){super(...arguments),this._loadDisplaySettings=new le.h(this,{task:async([t,s,o,r])=>{const n=[];this.grandTotals&&n.push("grandTotals"),r&&n.push("periodOverPeriod"),(s==="numeric"||s==="mixed"&&(t==null?void 0:t.type)==="numeric")&&n.push("numeric"),s!=="numeric"&&(t==null?void 0:t.type)==="datetime"&&n.push("datetime"),!["numeric","mixed"].includes(s??"")&&(t==null?void 0:t.type)==="numeric"&&!this.binningDisabled&&n.push("binning"),n.length>0&&!o&&(n.includes("numeric")&&!this._settingsTypeLoaded.numeric?(await Promise.resolve().then(()=>require("./display-settings-numeric/index.cjs")),this._settingsTypeLoaded.numeric=!0,n.includes("periodOverPeriod")&&!this._settingsTypeLoaded.periodOverPeriod&&(await Promise.resolve().then(()=>require("./display-settings-period-over-period/index.cjs")),this._settingsTypeLoaded.periodOverPeriod=!0)):n.includes("datetime")&&!this._settingsTypeLoaded.datetime?(await Promise.resolve().then(()=>require("./display-settings-datetime/index.cjs")),this._settingsTypeLoaded.datetime=!0):n.includes("binning")&&!this._settingsTypeLoaded.binning?(await Promise.resolve().then(()=>require("./display-settings-binning/index.cjs")),this._settingsTypeLoaded.binning=!0):n.includes("grandTotals")&&!this._settingsTypeLoaded.grandTotals&&(await Promise.resolve().then(()=>require("./display-settings-grand-totals/index.cjs")),this._settingsTypeLoaded.grandTotals=!0))},args:()=>[this.slotContent,this.slotType,this.hideDisplaySettings,this.periodOverPeriod]}),this.language="en",this.contentLanguage="en",this.slotType="numeric",this.slotContent={},this._showIds=!1,this.measureColumns=[],this._settingsTypeLoaded={binning:!1,datetime:!1,numeric:!1,grandTotals:!1,periodOverPeriod:!1,hierarchy:!0},this._currentSlotContent={}}static get styles(){return[c.r(De)]}willUpdate(){var s,o;const t=(s=this._store)==null?void 0:s.activeSlotContents.get();this.periodOverPeriod=(o=this._store)==null?void 0:o.periodOverPeriodEnabled.get(),t&&t!==this._currentSlotContent&&(this._currentSlotContent=structuredClone(t))}_onSlotContentChange(t){t.stopPropagation(),t.preventDefault(),this._currentSlotContent=structuredClone(t.detail.slotContent),this._sendEvent(),this.requestUpdate()}_onLabelChange(){this._currentSlotContent=structuredClone(this._currentSlotContent),this._currentSlotContent.label=this._multiLanguageFieldElement.value||{},this._sendEvent(),this.requestUpdate()}_sendEvent(){this.dispatchEvent(new CustomEvent("slot-content-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:{...this._currentSlotContent}}})),this._store&&this._store.updateContent({...this._currentSlotContent})}_removeEvent(){this.dispatchEvent(new CustomEvent("remove-slot-content",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContent:this._currentSlotContent}}))}_toggleIds(){this._showIds=!this._showIds}_renderDisplaySettings(){return c.x`<div class="settings-container">
|
90
|
-
<div class="settings-row">
|
91
|
-
<div class="setting">
|
92
|
-
<div class="label-container">
|
93
|
-
<luzmo-field-label side-aligned="start" .size=${this.size}
|
94
|
-
>Label:</luzmo-field-label
|
95
|
-
>
|
96
|
-
<luzmo-multi-language-field
|
97
|
-
.language=${this.language}
|
98
|
-
.value=${this._currentSlotContent.label}
|
99
|
-
.size=${this.size}
|
100
|
-
debounce="200"
|
101
|
-
@change=${this._onLabelChange}
|
102
|
-
></luzmo-multi-language-field>
|
103
|
-
</div>
|
104
|
-
<div class="label-action-container">
|
105
|
-
<button class="id-button" @click=${this._toggleIds}>
|
106
|
-
${T.y3(T.p1)}
|
107
|
-
<luzmo-tooltip self-managed placement="top" size=${this.size}>
|
108
|
-
Show dataset and column id's
|
109
|
-
</luzmo-tooltip>
|
110
|
-
</button>
|
111
|
-
${this.showRemoveButton?c.x`<button
|
112
|
-
class="remove-button"
|
113
|
-
@click=${this._removeEvent}
|
114
|
-
>
|
115
|
-
${T.y3(T.C1)}
|
116
|
-
<luzmo-tooltip
|
117
|
-
self-managed
|
118
|
-
placement="top"
|
119
|
-
size=${this.size}
|
120
|
-
>
|
121
|
-
Remove
|
122
|
-
</luzmo-tooltip>
|
123
|
-
</button>`:""}
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
</div>
|
127
|
-
${this.grandTotals?c.x`<luzmo-display-settings-grand-totals
|
128
|
-
.language=${this.language}
|
129
|
-
.slotContent=${this._currentSlotContent}
|
130
|
-
.size=${this.size}
|
131
|
-
@slot-content-changed=${this._onSlotContentChange}
|
132
|
-
></luzmo-display-settings-grand-totals>`:""}
|
133
|
-
${this.slotType==="numeric"||this.slotType==="mixed"&&this.slotContent.type==="numeric"?c.x`<luzmo-display-settings-numeric
|
134
|
-
.language=${this.language}
|
135
|
-
.slotContent=${this._currentSlotContent}
|
136
|
-
.size=${this.size}
|
137
|
-
.measureColumns=${this.measureColumns}
|
138
|
-
@slot-content-changed=${this._onSlotContentChange}
|
139
|
-
></luzmo-display-settings-numeric>`:""}
|
140
|
-
${this.slotType!=="numeric"&&this.slotContent.type==="datetime"?c.x`<luzmo-display-settings-datetime
|
141
|
-
.language=${this.language}
|
142
|
-
.contentLanguage=${this.contentLanguage}
|
143
|
-
.slotContent=${this._currentSlotContent}
|
144
|
-
.size=${this.size}
|
145
|
-
@slot-content-changed=${this._onSlotContentChange}
|
146
|
-
></luzmo-display-settings-datetime>`:""}
|
147
|
-
${!["numeric","mixed"].includes(this.slotType??"")&&this.slotContent.type==="numeric"&&!this.binningDisabled?c.x`<luzmo-display-settings-binning
|
148
|
-
.language=${this.language}
|
149
|
-
.slotContent=${this._currentSlotContent}
|
150
|
-
.size=${this.size}
|
151
|
-
@slot-content-changed=${this._onSlotContentChange}
|
152
|
-
></luzmo-display-settings-binning>`:""}
|
153
|
-
${this.periodOverPeriod?c.x`<luzmo-display-settings-period-over-period
|
154
|
-
.language=${this.language}
|
155
|
-
.slotContent=${this._currentSlotContent}
|
156
|
-
.size=${this.size}
|
157
|
-
@slot-content-changed=${this._onSlotContentChange}
|
158
|
-
></luzmo-display-settings-period-over-period>`:""}
|
159
|
-
</div>
|
160
|
-
${this._showIds?c.x` <luzmo-divider></luzmo-divider>
|
161
|
-
<div class="ids-container">
|
162
|
-
<div>
|
163
|
-
<span class="id-label">Column: </span>
|
164
|
-
${this._currentSlotContent.columnId??this._currentSlotContent.column}
|
165
|
-
</div>
|
166
|
-
<div>
|
167
|
-
<span class="id-label">Dataset: </span>
|
168
|
-
${this._currentSlotContent.datasetId??this._currentSlotContent.set}
|
169
|
-
</div>
|
170
|
-
<div></div>
|
171
|
-
</div>`:""}`}render(){return this._loadDisplaySettings.render({pending:()=>c.x`<luzmo-progress-circle
|
172
|
-
indeterminate
|
173
|
-
.size=${this.size}
|
174
|
-
></luzmo-progress-circle>`,complete:()=>this._renderDisplaySettings(),error:()=>this._renderDisplaySettings()})}disconnectedCallback(){var t,s,o;(t=super.disconnectedCallback)==null||t.call(this),(o=(s=this._loadDisplaySettings).abort)==null||o.call(s)}}f([c.n({type:String})],g.prototype,"language");f([c.n({type:String,attribute:"content-language"})],g.prototype,"contentLanguage");f([c.n({type:Boolean,attribute:"hide-display-settings"})],g.prototype,"hideDisplaySettings");f([c.n({type:Boolean,attribute:"binning-disabled"})],g.prototype,"binningDisabled");f([c.n({type:Boolean,attribute:"grand-totals"})],g.prototype,"grandTotals");f([c.n({type:Boolean})],g.prototype,"periodOverPeriod");f([c.n({type:Boolean,attribute:"show-remove-button"})],g.prototype,"showRemoveButton");f([c.n({type:String,attribute:"slot-type"})],g.prototype,"slotType");f([c.n()],g.prototype,"slotContent");f([ue.r()],g.prototype,"_showIds");f([c.n({type:Array,reflect:!1})],g.prototype,"measureColumns");f([ce.e("luzmo-multi-language-field")],g.prototype,"_multiLanguageFieldElement");f([Z({context:ee,subscribe:!0})],g.prototype,"_store");customElements.get("luzmo-display-settings")||customElements.define("luzmo-display-settings",g);exports.LuzmoDisplaySettings=g;exports.c=Z;exports.e=X;exports.i=We;exports.r=Le;exports.s=Y;exports.slotContext=ee;
|