@luzmo/analytics-components-kit 1.0.1-alpha.49 → 1.0.1-alpha.50
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-HmuEMllK.cjs → area-chart-options.config-C7sMAHco.cjs} +1 -1
- package/components/{area-chart-options.config-7NUkgEdr.js → area-chart-options.config-_J0sG4NF.js} +1 -1
- package/components/display-settings/index.cjs +1 -1
- package/components/display-settings/index.js +1 -1
- package/components/droppable-slot/index.cjs +2 -2
- package/components/droppable-slot/index.js +38 -38
- package/components/edit-item/index.cjs +2 -2
- package/components/edit-item/index.js +3 -3
- package/components/edit-option/index.cjs +1 -1
- package/components/edit-option/index.js +1 -1
- package/components/{funnel-chart-options.config-CIOrejfS.js → funnel-chart-options.config-C_VjTOvD.js} +1 -1
- package/components/{funnel-chart-options.config-L_gqlFs2.cjs → funnel-chart-options.config-D7H7gFcx.cjs} +1 -1
- package/components/{index-N845QLku.js → index-BPVXrhaX.js} +2 -2
- package/components/{index-BfzppmHn.cjs → index-CSfR7FMV.cjs} +1 -1
- package/components/{index-Bt3JTHTC.js → index-Ct7UvUif.js} +64 -64
- package/components/{index-CY_cyFdI.cjs → index-DAoFunRy.cjs} +12 -12
- package/components/index.cjs +1 -1
- package/components/index.js +2 -2
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +1 -1
- package/components/slot-menu/index.cjs +3 -4
- package/components/slot-menu/index.js +7 -8
- package/custom-elements.json +1 -10
- package/package.json +1 -1
package/components/{area-chart-options.config-HmuEMllK.cjs → area-chart-options.config-C7sMAHco.cjs}
RENAMED
@@ -17,4 +17,4 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./helpers-DXQwEH1P.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:"
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./helpers-DXQwEH1P.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:"stacked",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;
|
@@ -17,4 +17,4 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DAoFunRy.cjs");exports.LuzmoDisplaySettings=e.LuzmoDisplaySettings;
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
import { L as u } from "../index-
|
20
|
+
import { L as u } from "../index-Ct7UvUif.js";
|
21
21
|
const l = () => {
|
22
22
|
if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
|
23
23
|
const o = document.createElement("style");
|
@@ -17,7 +17,7 @@
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../get-css-variable-DLiZYZEi.cjs"),g=require("../index-
|
20
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../get-css-variable-DLiZYZEi.cjs"),g=require("../index-DAoFunRy.cjs"),S=require("../localized-decorator-DIXYZ3RL.cjs"),c=require("../set-locale-DCPlazsZ.cjs"),_=require("../task-CwmAXlv0.cjs"),v=require("../luzmo-icons-DonyjSXg.cjs");require("../index-CYeQkVeJ.cjs");const q=require("../localize-r7ALOUy_.cjs"),n=require("../property-Cu4Q1hS4.cjs"),P=require("../state-fyl3IYMu.cjs"),L=require("../query-D5qWDopr.cjs"),k=require("../focusable-DAGGGYyz.cjs"),D=require("../sized-mixin-j_7aJM4b.cjs");require("../slot-menu/index.cjs");/**
|
21
21
|
* @license
|
22
22
|
* Copyright 2021 Google LLC
|
23
23
|
* SPDX-License-Identifier: BSD-3-Clause
|
@@ -25,7 +25,7 @@
|
|
25
25
|
* @license
|
26
26
|
* Copyright 2021 Google LLC
|
27
27
|
* SPDX-License-Identifier: BSD-3-Clause
|
28
|
-
*/class $ extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}}class E extends w{constructor(t,e,o){var l,i;super(e.context!==void 0?e.initialValue:o),this.onContextRequest=r=>{if(r.context!==this.context)return;const s=r.contextTarget??r.composedPath()[0];s!==this.host&&(r.stopPropagation(),this.addCallback(r.callback,s,r.subscribe))},this.onProviderRequest=r=>{if(r.context!==this.context||(r.contextTarget??r.composedPath()[0])===this.host)return;const s=new Set;for(const[a,{consumerHost:p}]of this.subscriptions)s.has(a)||(s.add(a),p.dispatchEvent(new g.s(this.context,p,a,!0)));r.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(i=(l=this.host).addController)==null||i.call(l,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new $(this.context,this.host))}}class T{constructor(){this.slotContents=g.r([]),this.slotsContents=g.r([]),this.periodOverPeriodEnabled=g.r(!1),this._popEnabledChartTypes=["area-chart","bar-chart","combination-chart","column-chart","line-chart"],this.activeSlotContents=g.i(()=>this.slotContents.get()[this.activeIndex.get()]),this.activeIndex=g.r(0)}isArrayColumnType(t){return new Set(["array[numeric]","array[spatial]","array[datetime]","array[hierarchy]"]).has(t)}setPeriodOverPeriodEnabled(t){var s,a;const e=this.slotsContents.get()??[],o=((s=e.find(p=>["y-axis","x-axis"].includes(p.name)))==null?void 0:s.content)??[],l=(o==null?void 0:o[0])??null,i=((a=e.find(p=>p.name==="measure"))==null?void 0:a.content)??[],r=this._popEnabledChartTypes.includes(t)&&l.type==="datetime"&&!this.isArrayColumnType(l.type)&&!l.datetimeDisplayMode&&l.level!==4&&i.length>0;return this.periodOverPeriodEnabled.set(r),r}setContents(t,e){if(this.slotContents.set(t),this.activeIndex.get()>=t.length&&this.activeIndex.set(t.length>0?t.length-1:0),e){const o=structuredClone(this.slotsContents.get())??[],l=o.find(i=>i.name===e);l&&(l.content=t),this.setFullContents(o)}}setFullContents(t){this.slotsContents.set(t)}updateActive(t){t>=0&&t<this.slotContents.get().length&&this.activeIndex.set(t)}updateContent(t,e=this.activeIndex.get()){if(e<0||e>=this.slotContents.get().length)return;const o=[...this.slotContents.get()];o[e]=structuredClone(t),this.slotContents.set(o)}removeContent(t){if(t<0||t>=this.slotContents.get().length)return;const e=this.slotContents.get().filter((o,l)=>l!==t);this.slotContents.set(e),this.activeIndex.get()>=e.length&&this.activeIndex.set(e.length>0?e.length-1:0)}}const O=":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family));--slot-height: var( --luzmo-droppable-slot-height, var(--droppable-slot-height) )}.droppable-slot-wrapper{position:relative;width:var(--slot-height);min-width:var(--slot-height);height:auto;overflow:visible}.droppable-slot[filled]{cursor:pointer;border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color))}.droppable-slot{background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));gap:var(--luzmo-spacing-5);border-radius:var(--luzmo-border-radius);height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height));cursor:move}:host([accept-drag]) .droppable-slot{background-color:var(--luzmo-droppable-slot-accept-drag-background-color, var(--droppable-slot-accept-drag-background-color));color:var(--luzmo-droppable-slot-accept-drag-font-color, var(--droppable-slot-accept-drag-font-color));border-color:var(--luzmo-droppable-slot-accept-drag-border-color, var(--droppable-slot-accept-drag-border-color));animation:dropelementpulse 1s infinite ease-in-out}:host([accept-drag]) .controls{background-color:var(--luzmo-droppable-slot-accept-drag-controls-background-color, var(--droppable-slot-accept-drag-controls-background-color));color:var(--luzmo-droppable-slot-accept-drag-controls-color, var(--droppable-slot-accept-drag-controls-color))}@keyframes dropelementpulse{0%{box-shadow:0 0 0 0 var(--luzmo-droppable-slot-pulse-color, var(--droppable-slot-pulse-color)),0 0 0 0 var(--luzmo-droppable-slot-pulse-color, var(--droppable-slot-pulse-color))}to{box-shadow:0 0 0 1rem transparent,0 0 0 1rem transparent}}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));flex-grow:1;margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}.droppable-slot.rotate{position:absolute;top:0;left:50%;transform-origin:center;max-width:15rem;transform:translate(-50%) rotate(-90deg)}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-droppable-slot-overlay-vertical-gap, var(--droppable-slot-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-accept-drag-background-color: var(--luzmo-positive-color);--droppable-slot-accept-drag-color: white;--droppable-slot-accept-drag-border-color: var(--luzmo-positive-color-down);--droppable-slot-accept-drag-font-color: white;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-accept-drag-controls-background-color: var( --luzmo-positive-color-down );--droppable-slot-accept-drag-controls-color: white;--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled );--droppable-slot-pulse-color: var(--luzmo-secondary-outline)}:host{--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var(--luzmo-component-height-s);--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var(--luzmo-component-height-l);--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var(--luzmo-component-height-xl);--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}",y={Category:()=>c.msg("Category",{desc:"Category label"}),Measure:()=>c.msg("Measure",{desc:"Measure label"}),Legend:()=>c.msg("Legend",{desc:"Legend label"}),"Y-Axis":()=>c.msg("Y-Axis",{desc:"Y-Axis label"}),"X-Axis":()=>c.msg("X-Axis",{desc:"X-Axis label"}),"Group by":()=>c.msg("Group by",{desc:"Group by label"})};var A=Object.defineProperty,M=Object.getOwnPropertyDescriptor,d=(m,t,e,o)=>{for(var l=o>1?void 0:o?M(t,e):t,i=m.length-1,r;i>=0;i--)(r=m[i])&&(l=(o?r(t,e,l):r(l))||l);return o&&l&&A(t,e,l),l};exports.LuzmoDroppableSlot=class extends D.SizedMixin(k.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(),this._loadSlotsConfig=new _.h(this,{task:async([t])=>{if(t&&t!==this._itemTypeLoaded){const e=Object.assign({"../../item-definitions/area-chart/area-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../area-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/bar-chart/bar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bar-chart-slots.config-c_9ABPOI.cjs")),"../../item-definitions/box-plot/box-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../box-plot-slots.config-K-1CiWO-.cjs")),"../../item-definitions/bubble-chart/bubble-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bubble-chart-slots.config-BwSwgleO.cjs")),"../../item-definitions/bullet-chart/bullet-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bullet-chart-slots.config-DQarxMR7.cjs")),"../../item-definitions/choropleth-map/choropleth-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../choropleth-map-slots.config-CFERs0ca.cjs")),"../../item-definitions/circle-pack-chart/circle-pack-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../circle-pack-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/circular-gauge/circular-gauge-slots.config.ts":()=>Promise.resolve().then(()=>require("../circular-gauge-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/column-chart/column-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../column-chart-slots.config-C0nGjkmv.cjs")),"../../item-definitions/combination-chart/combination-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../combination-chart-slots.config-CY07Q5Hw.cjs")),"../../item-definitions/conditional-number/conditional-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../conditional-number-slots.config-CD5ZwXuY.cjs")),"../../item-definitions/date-filter/date-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../date-filter-slots.config-CrA5ijD3.cjs")),"../../item-definitions/donut-chart/donut-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../donut-chart-slots.config-DBowIZNO.cjs")),"../../item-definitions/dropdown-filter/dropdown-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../dropdown-filter-slots.config-0wn6pMvi.cjs")),"../../item-definitions/evolution-number/evolution-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../evolution-number-slots.config-CNNVp6vR.cjs")),"../../item-definitions/funnel-chart/funnel-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../funnel-chart-slots.config-GKBCY9xN.cjs")),"../../item-definitions/heat-map/heat-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/heat-table/heat-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-table-slots.config-GGX3BCh1.cjs")),"../../item-definitions/hexbin-map/hexbin-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../hexbin-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/image/image-slots.config.ts":()=>Promise.resolve().then(()=>require("../image-slots.config-mPXMR1CE.cjs")),"../../item-definitions/line-chart/line-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../line-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/marker-map/marker-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../marker-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/ohlc-chart/ohlc-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../ohlc-chart-slots.config-DMomcHMV.cjs")),"../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../parallel-coordinates-plot-slots.config--fk40ZDu.cjs")),"../../item-definitions/pivot-table/pivot-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../pivot-table-slots.config-45V_Gdm7.cjs")),"../../item-definitions/pyramid-chart/pyramid-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../pyramid-chart-slots.config-D5F0WX2d.cjs")),"../../item-definitions/radar-chart/radar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../radar-chart-slots.config-BEigR_Ml.cjs")),"../../item-definitions/regular-table/regular-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../regular-table-slots.config-RLnMgOXn.cjs")),"../../item-definitions/route-map/route-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../route-map-slots.config-DsVJBR3D.cjs")),"../../item-definitions/sankey-diagram/sankey-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../sankey-diagram-slots.config-CiyYElLX.cjs")),"../../item-definitions/scatter-plot/scatter-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../scatter-plot-slots.config-47cB5_RC.cjs")),"../../item-definitions/search-filter/search-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../search-filter-slots.config-DeHkvc2Q.cjs")),"../../item-definitions/slicer-filter/slicer-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slicer-filter-slots.config-V7hURjKI.cjs")),"../../item-definitions/slider-filter/slider-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slider-filter-slots.config-B--K9cpP.cjs")),"../../item-definitions/speedometer-chart/speedometer-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../speedometer-chart-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/spike-map/spike-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../spike-map-slots.config-BM5-Dlub.cjs")),"../../item-definitions/strip-plot/strip-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../strip-plot-slots.config-DDUlLO8K.cjs")),"../../item-definitions/sunburst-chart/sunburst-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../sunburst-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/symbol-map/symbol-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../symbol-map-slots.config-Dm_FRGHA.cjs")),"../../item-definitions/text/text-slots.config.ts":()=>Promise.resolve().then(()=>require("../text-slots.config-BMBEkf0O.cjs")),"../../item-definitions/treemap-chart/treemap-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../treemap-chart-slots.config-C3bnHCyy.cjs")),"../../item-definitions/venn-diagram/venn-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../venn-diagram-slots.config-GytlZGbF.cjs")),"../../item-definitions/video/video-slots.config.ts":()=>Promise.resolve().then(()=>require("../video-slots.config-mPXMR1CE.cjs")),"../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../wordcloud-chart-slots.config-D7CiYopX.cjs"))}),o=`../../item-definitions/${t}/${t}-slots.config.ts`;if(e[o]){const l=await e[o]();this._itemTypeLoaded=t,this._slotsConfig=(l==null?void 0:l.default)??{}}return this._slotsConfig}},args:()=>[this.itemType,this.language]}),this.slotConfiguration={},this.slotsContents=[],this.language="en",this.apiUrl="https://api.luzmo.com",this.authKey="",this.authToken="",this.menu="default",this.placement="bottom-end",this._slotContents=[],this._store=new T,this._currentSlotContents=[],this.changedSlotContents=(t,e=[])=>{this._store.setContents(t,this.slotName),this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:t,linkedDatasetsIds:e}}))},new E(this,{context:g.slotContext,initialValue:this._store})}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDroppable()}emptySlotContents(t){t.preventDefault(),t.stopPropagation(),this._slotContents=[],this.changedSlotContents([],[])}willUpdate(t){t.has("slotsContents")&&this._processSlotsContents(),t.has("language")&&this.language!==c.getLocale()&&([...c.targetLocales].includes(this.language??"en")||this.language==="en")&&c.setLocale(this.language)}_processSlotsContents(){var t,e;this._store.setFullContents(this.slotsContents),this._slotContents=((e=(t=this.slotsContents)==null?void 0:t.find(o=>o.name===this.slotName))==null?void 0:e.content)??[],this._currentSlotContents=[...this._slotContents],this.slotName==="measure"&&this._store.setPeriodOverPeriodEnabled(this.itemType),this._store.setContents(this._slotContents)}firstUpdated(){this._cleanupDroppable||(this._cleanupDroppable=x.dropTargetForElements({element:this,onDrop:t=>{var r,s,a,p,u,h;const e={...(r=t.source)==null?void 0:r.data},o=(a=(s=t.source)==null?void 0:s.data)==null?void 0:a.linkedDatasetsIds;o&&delete e.linkedDatasetsIds;const l={...(e==null?void 0:e.label)??{en:"Untitled"}},i=e==null?void 0:e.type;if(i==="datetime"&&!e.level&&(e.level=e.lowestLevel??(e.subtype==="date"?5:9)),i==="datetime"&&((u=(p=t==null?void 0:t.source)==null?void 0:p.element)!=null&&u.hasAttribute("sublevel"))){const b=["(Yr)","(Qtr)","(Mth)","(Wk)","(Date)","(Hr)","(Min)","(Sec)","(Msec)"],f=(e==null?void 0:e.level)??1,C=Object.keys(l);for(const z of C)l[z]=`${l[z]} ${b[f-1]}`;e.label=l}this._slotContents=(h=this.slotConfiguration)!=null&&h.canAcceptMultipleDataItems?[...this._slotContents??[],e]:[e],this.removeAttribute("accept-drag"),this.changedSlotContents(this._slotContents,o)},canDrop:({source:t})=>{var o,l,i,r,s,a,p,u,h,b,f;if(!["LUZMO-DRAGGABLE-DATA-ITEM-LEVEL","LUZMO-DRAGGABLE-DATA-ITEM"].includes((o=t.element)==null?void 0:o.tagName)||!((l=this.slotConfiguration)!=null&&l.canAcceptFormula)&&((i=t==null?void 0:t.data)!=null&&i.formulaId))return!1;const e=((s=(r=this.slotConfiguration)==null?void 0:r.acceptableDataItemTypes)==null?void 0:s.length)>0?this.slotConfiguration.acceptableDataItemTypes:["datetime","hierarchy","numeric","array[datetime]","array[numeric]","array[hierarchy]"];return(a=t==null?void 0:t.data)!=null&&a.type&&!e.includes((p=t==null?void 0:t.data)==null?void 0:p.type)?!1:!((u=t==null?void 0:t.data)!=null&&u.subtype&&((b=(h=this.slotConfiguration)==null?void 0:h.acceptableColumnSubtypes)==null?void 0:b.length)>0&&!this.slotConfiguration.acceptableColumnSubtypes.includes((f=t==null?void 0:t.data)==null?void 0:f.subtype))},getDropEffect:()=>"move",onDragEnter:()=>{this.setAttribute("accept-drag",""),this.classList.add("pulse")},onDragLeave:()=>{this.removeAttribute("accept-drag"),this.classList.remove("pulse")}}))}_onOverlayClosed(t){this._slotMenuElement&&t.detail.interaction!=="hint"&&(setTimeout(()=>{this._slotMenuElement.resetPosition()},500),this.dispatchEvent(new CustomEvent("slot-menu-highlight-clear",{bubbles:!0,composed:!0})))}_onOverlayOpened(t){var e,o,l,i;if(t.detail.interaction!=="hint"){const r=((o=(e=this._store.activeIndex).get)==null?void 0:o.call(e))??0,s=((l=this._slotContents)==null?void 0:l[r])??((i=this._slotContents)==null?void 0:i[0]);if(!s)return;const a=s.columnId??s.column??s.formulaId??s.formula??s.id;if(!a)return;this.dispatchEvent(new CustomEvent("slot-menu-highlight",{bubbles:!0,composed:!0,detail:{id:a,level:s.level}}))}}_onSlotMenuChanges(t){var e;t.preventDefault(),t.stopPropagation(),this._slotContents.length===((e=t.detail.slotContents)==null?void 0:e.length)?(this._currentSlotContents=t.detail.slotContents,this.changedSlotContents(this._currentSlotContents)):(this._slotContents=t.detail.slotContents,this.changedSlotContents(this._slotContents))}get _fullLabel(){var l,i,r,s,a,p,u,h,b;let t="";const e=y[(l=this.slotConfiguration)==null?void 0:l.label]?y[(i=this.slotConfiguration)==null?void 0:i.label]():(r=this.slotConfiguration)==null?void 0:r.label;((s=this._currentSlotContents)==null?void 0:s.length)===1?t=q.localize((p=(a=this._currentSlotContents)==null?void 0:a[0])==null?void 0:p.label,this.language)??"Untitled":((u=this._currentSlotContents)==null?void 0:u.length)>1&&(t=`${this._currentSlotContents.length} items`);let o=this.label||e||"Untitled";return((h=this._currentSlotContents)==null?void 0:h.length)>0&&(o+=((b=this._currentSlotContents)==null?void 0:b.length)>1?`: ${this._currentSlotContents.length} items`:`: ${t}`),o}droppableSlotMarkup(){var e,o,l,i,r,s,a,p;const t=n.x`
|
28
|
+
*/class $ extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}}class E extends w{constructor(t,e,o){var l,i;super(e.context!==void 0?e.initialValue:o),this.onContextRequest=r=>{if(r.context!==this.context)return;const s=r.contextTarget??r.composedPath()[0];s!==this.host&&(r.stopPropagation(),this.addCallback(r.callback,s,r.subscribe))},this.onProviderRequest=r=>{if(r.context!==this.context||(r.contextTarget??r.composedPath()[0])===this.host)return;const s=new Set;for(const[a,{consumerHost:p}]of this.subscriptions)s.has(a)||(s.add(a),p.dispatchEvent(new g.s(this.context,p,a,!0)));r.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(i=(l=this.host).addController)==null||i.call(l,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new $(this.context,this.host))}}class T{constructor(){this.slotContents=g.r([]),this.slotsContents=g.r([]),this.periodOverPeriodEnabled=g.r(!1),this._popEnabledChartTypes=["area-chart","bar-chart","combination-chart","column-chart","line-chart"],this.activeSlotContents=g.i(()=>this.slotContents.get()[this.activeIndex.get()]),this.activeIndex=g.r(0)}isArrayColumnType(t){return new Set(["array[numeric]","array[spatial]","array[datetime]","array[hierarchy]"]).has(t)}setPeriodOverPeriodEnabled(t){var s,a;const e=this.slotsContents.get()??[],o=((s=e.find(p=>["y-axis","x-axis"].includes(p.name)))==null?void 0:s.content)??[],l=(o==null?void 0:o[0])??null,i=((a=e.find(p=>p.name==="measure"))==null?void 0:a.content)??[],r=l&&this._popEnabledChartTypes.includes(t)&&l.type==="datetime"&&!this.isArrayColumnType(l.type)&&!l.datetimeDisplayMode&&l.level!==4&&i.length>0;return this.periodOverPeriodEnabled.set(r),r}setContents(t,e){if(this.slotContents.set(t),this.activeIndex.get()>=t.length&&this.activeIndex.set(t.length>0?t.length-1:0),e){const o=structuredClone(this.slotsContents.get())??[],l=o.find(i=>i.name===e);l&&(l.content=t),this.setFullContents(o)}}setFullContents(t){this.slotsContents.set(t)}updateActive(t){t>=0&&t<this.slotContents.get().length&&this.activeIndex.set(t)}updateContent(t,e=this.activeIndex.get()){if(e<0||e>=this.slotContents.get().length)return;const o=[...this.slotContents.get()];o[e]=structuredClone(t),this.slotContents.set(o)}removeContent(t){if(t<0||t>=this.slotContents.get().length)return;const e=this.slotContents.get().filter((o,l)=>l!==t);this.slotContents.set(e),this.activeIndex.get()>=e.length&&this.activeIndex.set(e.length>0?e.length-1:0)}}const O=":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family));--slot-height: var( --luzmo-droppable-slot-height, var(--droppable-slot-height) )}.droppable-slot-wrapper{position:relative;width:var(--slot-height);min-width:var(--slot-height);height:auto;overflow:visible}.droppable-slot[filled]{cursor:pointer;border:var(--luzmo-droppable-slot-filled-border-width, var(--droppable-slot-filled-border-width)) var(--luzmo-droppable-slot-filled-border-style, var(--droppable-slot-filled-border-style)) var(--luzmo-droppable-slot-filled-border-color, var(--droppable-slot-filled-border-color));background-color:var(--luzmo-droppable-slot-filled-background-color, var(--droppable-slot-filled-background-color));color:var(--luzmo-droppable-slot-filled-color, var(--droppable-slot-filled-color))}.droppable-slot{background-color:var(--luzmo-droppable-slot-background-color, var(--droppable-slot-background-color));color:var(--luzmo-droppable-slot-font-color, var(--droppable-slot-font-color));border:var(--luzmo-droppable-slot-border-width, var(--droppable-slot-border-width)) var(--luzmo-droppable-slot-border-style, var(--droppable-slot-border-style)) var(--luzmo-droppable-slot-border-color, var(--droppable-slot-border-color));display:flex;justify-content:space-between;align-items:center;padding-left:var(--luzmo-droppable-slot-edge-to-label, var(--droppable-slot-edge-to-label));gap:var(--luzmo-spacing-5);border-radius:var(--luzmo-border-radius);height:var(--luzmo-droppable-slot-height, var(--droppable-slot-height));cursor:move}:host([accept-drag]) .droppable-slot{background-color:var(--luzmo-droppable-slot-accept-drag-background-color, var(--droppable-slot-accept-drag-background-color));color:var(--luzmo-droppable-slot-accept-drag-font-color, var(--droppable-slot-accept-drag-font-color));border-color:var(--luzmo-droppable-slot-accept-drag-border-color, var(--droppable-slot-accept-drag-border-color));animation:dropelementpulse 1s infinite ease-in-out}:host([accept-drag]) .controls{background-color:var(--luzmo-droppable-slot-accept-drag-controls-background-color, var(--droppable-slot-accept-drag-controls-background-color));color:var(--luzmo-droppable-slot-accept-drag-controls-color, var(--droppable-slot-accept-drag-controls-color))}@keyframes dropelementpulse{0%{box-shadow:0 0 0 0 var(--luzmo-droppable-slot-pulse-color, var(--droppable-slot-pulse-color)),0 0 0 0 var(--luzmo-droppable-slot-pulse-color, var(--droppable-slot-pulse-color))}to{box-shadow:0 0 0 1rem transparent,0 0 0 1rem transparent}}:host([disabled]) .droppable-slot{background-color:var(--luzmo-droppable-slot-background-color-disabled, var(--droppable-slot-background-color-disabled));color:var(--luzmo-droppable-slot-color-disabled, var(--droppable-slot-color-disabled));cursor:not-allowed}:host([disabled]) .drag-handle-icon{opacity:.25;font-size:12px}.drag-handle-icon{opacity:.5;font-size:12px}.droppable-slot-label{font-size:var(--luzmo-droppable-slot-label-font-size, var(--droppable-slot-label-font-size));flex-grow:1;margin-right:var(--luzmo-droppable-slot-text-to-controls, var(--droppable-slot-text-to-controls));overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.controls{height:100%;display:flex;align-items:center;gap:var(--luzmo-droppable-slot-controls-gap, var(--droppable-slot-controls-gap));background-color:var(--luzmo-droppable-slot-controls-background-color, var(--droppable-slot-controls-background-color));color:var(--luzmo-droppable-slot-controls-color, var(--droppable-slot-controls-color));margin-right:var(--luzmo-droppable-slot-controls-to-edge, var(--droppable-slot-controls-to-edge));padding:0 var(--luzmo-droppable-slot-controls-horizontal-padding, var(--droppable-slot-controls-horizontal-padding))}.controls div{cursor:pointer;height:100%;display:flex;align-items:center;padding:0 var(--luzmo-droppable-slot-controls-control-horizontal-padding, var(--droppable-slot-controls-control-horizontal-padding))}.droppable-slot.rotate{position:absolute;top:0;left:50%;transform-origin:center;max-width:15rem;transform:translate(-50%) rotate(-90deg)}luzmo-slot-menu[placement=bottom],luzmo-slot-menu[placement=top],luzmo-slot-menu[placement=bottom-start],luzmo-slot-menu[placement=top-start],luzmo-slot-menu[placement=bottom-end],luzmo-slot-menu[placement=top-end]{margin:var(--luzmo-droppable-slot-overlay-vertical-gap, var(--droppable-slot-overlay-vertical-gap)) 0}luzmo-slot-menu[placement=left],luzmo-slot-menu[placement=right],luzmo-slot-menu[placement=left-start],luzmo-slot-menu[placement=right-start],luzmo-slot-menu[placement=left-end],luzmo-slot-menu[placement=right-end]{margin:0 var(--luzmo-droppable-slot-overlay-horizontal-gap, var(--droppable-slot-overlay-horizontal-gap))}:host{--droppable-slot-border-width: var(--luzmo-border-width);--droppable-slot-border-style: dashed;--droppable-slot-border-color: var(--luzmo-border-color);--droppable-slot-background-color: transparent;--droppable-slot-accept-drag-background-color: var(--luzmo-positive-color);--droppable-slot-accept-drag-color: white;--droppable-slot-accept-drag-border-color: var(--luzmo-positive-color-down);--droppable-slot-accept-drag-font-color: white;--droppable-slot-font-color: var(--luzmo-font-color);--droppable-slot-controls-background-color: var(--luzmo-primary-down);--droppable-slot-controls-color: var(--luzmo-primary-inverse-color);--droppable-slot-accept-drag-controls-background-color: var( --luzmo-positive-color-down );--droppable-slot-accept-drag-controls-color: white;--droppable-slot-text-to-controls: var(--luzmo-spacing-3);--droppable-slot-controls-to-edge: 0;--droppable-slot-controls-gap: var(--luzmo-spacing-2);--droppable-slot-controls-horizontal-padding: var(--luzmo-spacing-2);--droppable-slot-controls-control-horizontal-padding: var(--luzmo-spacing-3);--droppable-slot-filled-background-color: var(--luzmo-primary);--droppable-slot-filled-color: var(--luzmo-primary-inverse-color);--droppable-slot-filled-border-width: var(--luzmo-border-width);--droppable-slot-filled-border-style: solid;--droppable-slot-filled-border-color: var(--luzmo-primary-down);--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-edge-to-label: var(--luzmo-spacing-5);--droppable-slot-color-disabled: var(--luzmo-color-disabled);--droppable-slot-background-color-disabled: var( --luzmo-background-color-disabled );--droppable-slot-pulse-color: var(--luzmo-secondary-outline)}:host{--droppable-slot-height: var(--luzmo-component-height);--droppable-slot-label-font-size: var(--luzmo-font-size);--droppable-slot-icon-type-font-size: var(--luzmo-font-size);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=s]){--droppable-slot-height: var(--luzmo-component-height-s);--droppable-slot-label-font-size: var(--luzmo-font-size-s);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-s);--droppable-slot-horizontal-padding: var(--luzmo-spacing-4);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-4);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-4)}:host([size=l]){--droppable-slot-height: var(--luzmo-component-height-l);--droppable-slot-label-font-size: var(--luzmo-font-size-l);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-l);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host([size=xl]){--droppable-slot-height: var(--luzmo-component-height-xl);--droppable-slot-label-font-size: var(--luzmo-font-size-xl);--droppable-slot-icon-type-font-size: var(--luzmo-font-size-xl);--droppable-slot-horizontal-padding: var(--luzmo-spacing-5);--droppable-slot-overlay-horizontal-gap: var(--luzmo-spacing-5);--droppable-slot-overlay-vertical-gap: var(--luzmo-spacing-5)}:host{box-sizing:border-box}",y={Category:()=>c.msg("Category",{desc:"Category label"}),Measure:()=>c.msg("Measure",{desc:"Measure label"}),Legend:()=>c.msg("Legend",{desc:"Legend label"}),"Y-Axis":()=>c.msg("Y-Axis",{desc:"Y-Axis label"}),"X-Axis":()=>c.msg("X-Axis",{desc:"X-Axis label"}),"Group by":()=>c.msg("Group by",{desc:"Group by label"})};var A=Object.defineProperty,M=Object.getOwnPropertyDescriptor,d=(m,t,e,o)=>{for(var l=o>1?void 0:o?M(t,e):t,i=m.length-1,r;i>=0;i--)(r=m[i])&&(l=(o?r(t,e,l):r(l))||l);return o&&l&&A(t,e,l),l};exports.LuzmoDroppableSlot=class extends D.SizedMixin(k.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(),this._loadSlotsConfig=new _.h(this,{task:async([t])=>{if(t&&t!==this._itemTypeLoaded){const e=Object.assign({"../../item-definitions/area-chart/area-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../area-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/bar-chart/bar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bar-chart-slots.config-c_9ABPOI.cjs")),"../../item-definitions/box-plot/box-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../box-plot-slots.config-K-1CiWO-.cjs")),"../../item-definitions/bubble-chart/bubble-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bubble-chart-slots.config-BwSwgleO.cjs")),"../../item-definitions/bullet-chart/bullet-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../bullet-chart-slots.config-DQarxMR7.cjs")),"../../item-definitions/choropleth-map/choropleth-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../choropleth-map-slots.config-CFERs0ca.cjs")),"../../item-definitions/circle-pack-chart/circle-pack-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../circle-pack-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/circular-gauge/circular-gauge-slots.config.ts":()=>Promise.resolve().then(()=>require("../circular-gauge-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/column-chart/column-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../column-chart-slots.config-C0nGjkmv.cjs")),"../../item-definitions/combination-chart/combination-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../combination-chart-slots.config-CY07Q5Hw.cjs")),"../../item-definitions/conditional-number/conditional-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../conditional-number-slots.config-CD5ZwXuY.cjs")),"../../item-definitions/date-filter/date-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../date-filter-slots.config-CrA5ijD3.cjs")),"../../item-definitions/donut-chart/donut-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../donut-chart-slots.config-DBowIZNO.cjs")),"../../item-definitions/dropdown-filter/dropdown-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../dropdown-filter-slots.config-0wn6pMvi.cjs")),"../../item-definitions/evolution-number/evolution-number-slots.config.ts":()=>Promise.resolve().then(()=>require("../evolution-number-slots.config-CNNVp6vR.cjs")),"../../item-definitions/funnel-chart/funnel-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../funnel-chart-slots.config-GKBCY9xN.cjs")),"../../item-definitions/heat-map/heat-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/heat-table/heat-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../heat-table-slots.config-GGX3BCh1.cjs")),"../../item-definitions/hexbin-map/hexbin-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../hexbin-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/image/image-slots.config.ts":()=>Promise.resolve().then(()=>require("../image-slots.config-mPXMR1CE.cjs")),"../../item-definitions/line-chart/line-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../line-chart-slots.config-Dx_ysVZK.cjs")),"../../item-definitions/marker-map/marker-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../marker-map-slots.config-D7cSAVdX.cjs")),"../../item-definitions/ohlc-chart/ohlc-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../ohlc-chart-slots.config-DMomcHMV.cjs")),"../../item-definitions/parallel-coordinates-plot/parallel-coordinates-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../parallel-coordinates-plot-slots.config--fk40ZDu.cjs")),"../../item-definitions/pivot-table/pivot-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../pivot-table-slots.config-45V_Gdm7.cjs")),"../../item-definitions/pyramid-chart/pyramid-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../pyramid-chart-slots.config-D5F0WX2d.cjs")),"../../item-definitions/radar-chart/radar-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../radar-chart-slots.config-BEigR_Ml.cjs")),"../../item-definitions/regular-table/regular-table-slots.config.ts":()=>Promise.resolve().then(()=>require("../regular-table-slots.config-RLnMgOXn.cjs")),"../../item-definitions/route-map/route-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../route-map-slots.config-DsVJBR3D.cjs")),"../../item-definitions/sankey-diagram/sankey-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../sankey-diagram-slots.config-CiyYElLX.cjs")),"../../item-definitions/scatter-plot/scatter-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../scatter-plot-slots.config-47cB5_RC.cjs")),"../../item-definitions/search-filter/search-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../search-filter-slots.config-DeHkvc2Q.cjs")),"../../item-definitions/slicer-filter/slicer-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slicer-filter-slots.config-V7hURjKI.cjs")),"../../item-definitions/slider-filter/slider-filter-slots.config.ts":()=>Promise.resolve().then(()=>require("../slider-filter-slots.config-B--K9cpP.cjs")),"../../item-definitions/speedometer-chart/speedometer-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../speedometer-chart-slots.config-Cd-nkNPm.cjs")),"../../item-definitions/spike-map/spike-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../spike-map-slots.config-BM5-Dlub.cjs")),"../../item-definitions/strip-plot/strip-plot-slots.config.ts":()=>Promise.resolve().then(()=>require("../strip-plot-slots.config-DDUlLO8K.cjs")),"../../item-definitions/sunburst-chart/sunburst-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../sunburst-chart-slots.config-B18aqdH1.cjs")),"../../item-definitions/symbol-map/symbol-map-slots.config.ts":()=>Promise.resolve().then(()=>require("../symbol-map-slots.config-Dm_FRGHA.cjs")),"../../item-definitions/text/text-slots.config.ts":()=>Promise.resolve().then(()=>require("../text-slots.config-BMBEkf0O.cjs")),"../../item-definitions/treemap-chart/treemap-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../treemap-chart-slots.config-C3bnHCyy.cjs")),"../../item-definitions/venn-diagram/venn-diagram-slots.config.ts":()=>Promise.resolve().then(()=>require("../venn-diagram-slots.config-GytlZGbF.cjs")),"../../item-definitions/video/video-slots.config.ts":()=>Promise.resolve().then(()=>require("../video-slots.config-mPXMR1CE.cjs")),"../../item-definitions/wordcloud-chart/wordcloud-chart-slots.config.ts":()=>Promise.resolve().then(()=>require("../wordcloud-chart-slots.config-D7CiYopX.cjs"))}),o=`../../item-definitions/${t}/${t}-slots.config.ts`;if(e[o]){const l=await e[o]();this._itemTypeLoaded=t,this._slotsConfig=(l==null?void 0:l.default)??{}}return this._slotsConfig}},args:()=>[this.itemType,this.language]}),this.slotConfiguration={},this.slotsContents=[],this.language="en",this.apiUrl="https://api.luzmo.com",this.authKey="",this.authToken="",this.menu="default",this.placement="bottom-end",this._slotContents=[],this._store=new T,this._currentSlotContents=[],this.changedSlotContents=(t,e=[])=>{this._store.setContents(t,this.slotName),this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:t,linkedDatasetsIds:e}}))},new E(this,{context:g.slotContext,initialValue:this._store})}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDroppable()}emptySlotContents(t){t.preventDefault(),t.stopPropagation(),this._slotContents=[],this.changedSlotContents([],[])}willUpdate(t){t.has("slotsContents")&&this._processSlotsContents(),t.has("language")&&this.language!==c.getLocale()&&([...c.targetLocales].includes(this.language??"en")||this.language==="en")&&c.setLocale(this.language)}_processSlotsContents(){var t,e;this._store.setFullContents(this.slotsContents),this._slotContents=((e=(t=this.slotsContents)==null?void 0:t.find(o=>o.name===this.slotName))==null?void 0:e.content)??[],this._currentSlotContents=[...this._slotContents],this.slotName==="measure"&&this._store.setPeriodOverPeriodEnabled(this.itemType),this._store.setContents(this._slotContents)}firstUpdated(){this._cleanupDroppable||(this._cleanupDroppable=x.dropTargetForElements({element:this,onDrop:t=>{var r,s,a,p,u,h;const e={...(r=t.source)==null?void 0:r.data},o=(a=(s=t.source)==null?void 0:s.data)==null?void 0:a.linkedDatasetsIds;o&&delete e.linkedDatasetsIds;const l={...(e==null?void 0:e.label)??{en:"Untitled"}},i=e==null?void 0:e.type;if(i==="datetime"&&!e.level&&(e.level=e.lowestLevel??(e.subtype==="date"?5:9)),i==="datetime"&&((u=(p=t==null?void 0:t.source)==null?void 0:p.element)!=null&&u.hasAttribute("sublevel"))){const b=["(Yr)","(Qtr)","(Mth)","(Wk)","(Date)","(Hr)","(Min)","(Sec)","(Msec)"],f=(e==null?void 0:e.level)??1,C=Object.keys(l);for(const z of C)l[z]=`${l[z]} ${b[f-1]}`;e.label=l}this._slotContents=(h=this.slotConfiguration)!=null&&h.canAcceptMultipleDataItems?[...this._slotContents??[],e]:[e],this.removeAttribute("accept-drag"),this.changedSlotContents(this._slotContents,o)},canDrop:({source:t})=>{var o,l,i,r,s,a,p,u,h,b,f;if(!["LUZMO-DRAGGABLE-DATA-ITEM-LEVEL","LUZMO-DRAGGABLE-DATA-ITEM"].includes((o=t.element)==null?void 0:o.tagName)||!((l=this.slotConfiguration)!=null&&l.canAcceptFormula)&&((i=t==null?void 0:t.data)!=null&&i.formulaId))return!1;const e=((s=(r=this.slotConfiguration)==null?void 0:r.acceptableDataItemTypes)==null?void 0:s.length)>0?this.slotConfiguration.acceptableDataItemTypes:["datetime","hierarchy","numeric","array[datetime]","array[numeric]","array[hierarchy]"];return(a=t==null?void 0:t.data)!=null&&a.type&&!e.includes((p=t==null?void 0:t.data)==null?void 0:p.type)?!1:!((u=t==null?void 0:t.data)!=null&&u.subtype&&((b=(h=this.slotConfiguration)==null?void 0:h.acceptableColumnSubtypes)==null?void 0:b.length)>0&&!this.slotConfiguration.acceptableColumnSubtypes.includes((f=t==null?void 0:t.data)==null?void 0:f.subtype))},getDropEffect:()=>"move",onDragEnter:()=>{this.setAttribute("accept-drag",""),this.classList.add("pulse")},onDragLeave:()=>{this.removeAttribute("accept-drag"),this.classList.remove("pulse")}}))}_onOverlayClosed(t){this._slotMenuElement&&t.detail.interaction!=="hint"&&(setTimeout(()=>{this._slotMenuElement.resetPosition()},500),this.dispatchEvent(new CustomEvent("slot-menu-highlight-clear",{bubbles:!0,composed:!0})))}_onOverlayOpened(t){var e,o,l,i;if(t.detail.interaction!=="hint"){const r=((o=(e=this._store.activeIndex).get)==null?void 0:o.call(e))??0,s=((l=this._slotContents)==null?void 0:l[r])??((i=this._slotContents)==null?void 0:i[0]);if(!s)return;const a=s.columnId??s.column??s.formulaId??s.formula??s.id;if(!a)return;this.dispatchEvent(new CustomEvent("slot-menu-highlight",{bubbles:!0,composed:!0,detail:{id:a,level:s.level}}))}}_onSlotMenuChanges(t){var e;t.preventDefault(),t.stopPropagation(),this._slotContents.length===((e=t.detail.slotContents)==null?void 0:e.length)?(this._currentSlotContents=t.detail.slotContents,this.changedSlotContents(this._currentSlotContents)):(this._slotContents=t.detail.slotContents,this.changedSlotContents(this._slotContents))}get _fullLabel(){var l,i,r,s,a,p,u,h,b;let t="";const e=y[(l=this.slotConfiguration)==null?void 0:l.label]?y[(i=this.slotConfiguration)==null?void 0:i.label]():(r=this.slotConfiguration)==null?void 0:r.label;((s=this._currentSlotContents)==null?void 0:s.length)===1?t=q.localize((p=(a=this._currentSlotContents)==null?void 0:a[0])==null?void 0:p.label,this.language)??"Untitled":((u=this._currentSlotContents)==null?void 0:u.length)>1&&(t=`${this._currentSlotContents.length} items`);let o=this.label||e||"Untitled";return((h=this._currentSlotContents)==null?void 0:h.length)>0&&(o+=((b=this._currentSlotContents)==null?void 0:b.length)>1?`: ${this._currentSlotContents.length} items`:`: ${t}`),o}droppableSlotMarkup(){var e,o,l,i,r,s,a,p;const t=n.x`
|
29
29
|
<div
|
30
30
|
class="droppable-slot ${(e=this.slotConfiguration)!=null&&e.rotate?"rotate":""}"
|
31
31
|
?filled=${((o=this._slotContents)==null?void 0:o.length)>0}
|
@@ -18,7 +18,7 @@
|
|
18
18
|
* SOFTWARE.
|
19
19
|
* */
|
20
20
|
import { a as w } from "../get-css-variable-YlLiVgo8.js";
|
21
|
-
import { a as k, r as z, i as S, s as $ } from "../index-
|
21
|
+
import { a as k, r as z, i as S, s as $ } from "../index-Ct7UvUif.js";
|
22
22
|
import { l as E } from "../localized-decorator-Bl5gcI6n.js";
|
23
23
|
import { m as b, g as L, t as D, s as A } from "../set-locale-GI34z_M7.js";
|
24
24
|
import { h as T } from "../task-Bh_X-xIU.js";
|
@@ -64,8 +64,8 @@ class G {
|
|
64
64
|
this.subscriptions.has(o) || this.subscriptions.set(o, { disposer: () => {
|
65
65
|
this.subscriptions.delete(o);
|
66
66
|
}, consumerHost: e });
|
67
|
-
const { disposer:
|
68
|
-
o(this.value,
|
67
|
+
const { disposer: r } = this.subscriptions.get(o);
|
68
|
+
o(this.value, r);
|
69
69
|
}
|
70
70
|
clearCallbacks() {
|
71
71
|
this.subscriptions.clear();
|
@@ -83,17 +83,17 @@ class R extends Event {
|
|
83
83
|
}
|
84
84
|
class q extends G {
|
85
85
|
constructor(o, e, l) {
|
86
|
-
var
|
87
|
-
super(e.context !== void 0 ? e.initialValue : l), this.onContextRequest = (
|
88
|
-
if (
|
89
|
-
const a =
|
90
|
-
a !== this.host && (
|
91
|
-
}, this.onProviderRequest = (
|
92
|
-
if (
|
86
|
+
var r, i;
|
87
|
+
super(e.context !== void 0 ? e.initialValue : l), this.onContextRequest = (s) => {
|
88
|
+
if (s.context !== this.context) return;
|
89
|
+
const a = s.contextTarget ?? s.composedPath()[0];
|
90
|
+
a !== this.host && (s.stopPropagation(), this.addCallback(s.callback, a, s.subscribe));
|
91
|
+
}, this.onProviderRequest = (s) => {
|
92
|
+
if (s.context !== this.context || (s.contextTarget ?? s.composedPath()[0]) === this.host) return;
|
93
93
|
const a = /* @__PURE__ */ new Set();
|
94
94
|
for (const [p, { consumerHost: d }] of this.subscriptions) a.has(p) || (a.add(p), d.dispatchEvent(new k(this.context, d, p, !0)));
|
95
|
-
|
96
|
-
}, this.host = o, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (i = (
|
95
|
+
s.stopPropagation();
|
96
|
+
}, this.host = o, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (i = (r = this.host).addController) == null || i.call(r, this);
|
97
97
|
}
|
98
98
|
attachListeners() {
|
99
99
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
@@ -124,14 +124,14 @@ class F {
|
|
124
124
|
var a, p;
|
125
125
|
const e = this.slotsContents.get() ?? [], l = ((a = e.find(
|
126
126
|
(d) => ["y-axis", "x-axis"].includes(d.name)
|
127
|
-
)) == null ? void 0 : a.content) ?? [],
|
128
|
-
return this.periodOverPeriodEnabled.set(
|
127
|
+
)) == null ? void 0 : a.content) ?? [], r = (l == null ? void 0 : l[0]) ?? null, i = ((p = e.find((d) => d.name === "measure")) == null ? void 0 : p.content) ?? [], s = r && this._popEnabledChartTypes.includes(o) && r.type === "datetime" && !this.isArrayColumnType(r.type) && !r.datetimeDisplayMode && r.level !== 4 && i.length > 0;
|
128
|
+
return this.periodOverPeriodEnabled.set(s), s;
|
129
129
|
}
|
130
130
|
/** Replace the full list (e.g. after dropping or re-ordering). */
|
131
131
|
setContents(o, e) {
|
132
132
|
if (this.slotContents.set(o), this.activeIndex.get() >= o.length && this.activeIndex.set(o.length > 0 ? o.length - 1 : 0), e) {
|
133
|
-
const l = structuredClone(this.slotsContents.get()) ?? [],
|
134
|
-
|
133
|
+
const l = structuredClone(this.slotsContents.get()) ?? [], r = l.find((i) => i.name === e);
|
134
|
+
r && (r.content = o), this.setFullContents(l);
|
135
135
|
}
|
136
136
|
}
|
137
137
|
setFullContents(o) {
|
@@ -150,7 +150,7 @@ class F {
|
|
150
150
|
/** Remove one content entry by index. */
|
151
151
|
removeContent(o) {
|
152
152
|
if (o < 0 || o >= this.slotContents.get().length) return;
|
153
|
-
const e = this.slotContents.get().filter((l,
|
153
|
+
const e = this.slotContents.get().filter((l, r) => r !== o);
|
154
154
|
this.slotContents.set(e), this.activeIndex.get() >= e.length && this.activeIndex.set(e.length > 0 ? e.length - 1 : 0);
|
155
155
|
}
|
156
156
|
}
|
@@ -163,9 +163,9 @@ const V = ":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo
|
|
163
163
|
"Group by": () => b("Group by", { desc: "Group by label" })
|
164
164
|
};
|
165
165
|
var H = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, c = (t, o, e, l) => {
|
166
|
-
for (var
|
167
|
-
(
|
168
|
-
return l &&
|
166
|
+
for (var r = l > 1 ? void 0 : l ? Y(o, e) : o, i = t.length - 1, s; i >= 0; i--)
|
167
|
+
(s = t[i]) && (r = (l ? s(o, e, r) : s(r)) || r);
|
168
|
+
return l && r && H(o, e, r), r;
|
169
169
|
};
|
170
170
|
let n = class extends B(j, {
|
171
171
|
validSizes: ["s", "m", "l", "xl"],
|
@@ -265,13 +265,13 @@ let n = class extends B(j, {
|
|
265
265
|
this._cleanupDroppable || (this._cleanupDroppable = w({
|
266
266
|
element: this,
|
267
267
|
onDrop: (t) => {
|
268
|
-
var i,
|
269
|
-
const o = { ...(i = t.source) == null ? void 0 : i.data }, e = (a = (
|
268
|
+
var i, s, a, p, d, m;
|
269
|
+
const o = { ...(i = t.source) == null ? void 0 : i.data }, e = (a = (s = t.source) == null ? void 0 : s.data) == null ? void 0 : a.linkedDatasetsIds;
|
270
270
|
e && delete o.linkedDatasetsIds;
|
271
271
|
const l = {
|
272
272
|
...(o == null ? void 0 : o.label) ?? { en: "Untitled" }
|
273
|
-
},
|
274
|
-
if (
|
273
|
+
}, r = o == null ? void 0 : o.type;
|
274
|
+
if (r === "datetime" && !o.level && (o.level = o.lowestLevel ?? (o.subtype === "date" ? 5 : 9)), r === "datetime" && ((d = (p = t == null ? void 0 : t.source) == null ? void 0 : p.element) != null && d.hasAttribute("sublevel"))) {
|
275
275
|
const g = [
|
276
276
|
"(Yr)",
|
277
277
|
"(Qtr)",
|
@@ -290,13 +290,13 @@ let n = class extends B(j, {
|
|
290
290
|
this._slotContents = (m = this.slotConfiguration) != null && m.canAcceptMultipleDataItems ? [...this._slotContents ?? [], o] : [o], this.removeAttribute("accept-drag"), this.changedSlotContents(this._slotContents, e);
|
291
291
|
},
|
292
292
|
canDrop: ({ source: t }) => {
|
293
|
-
var e, l,
|
293
|
+
var e, l, r, i, s, a, p, d, m, g, f;
|
294
294
|
if (![
|
295
295
|
"LUZMO-DRAGGABLE-DATA-ITEM-LEVEL",
|
296
296
|
"LUZMO-DRAGGABLE-DATA-ITEM"
|
297
|
-
].includes((e = t.element) == null ? void 0 : e.tagName) || !((l = this.slotConfiguration) != null && l.canAcceptFormula) && ((
|
297
|
+
].includes((e = t.element) == null ? void 0 : e.tagName) || !((l = this.slotConfiguration) != null && l.canAcceptFormula) && ((r = t == null ? void 0 : t.data) != null && r.formulaId))
|
298
298
|
return !1;
|
299
|
-
const o = ((
|
299
|
+
const o = ((s = (i = this.slotConfiguration) == null ? void 0 : i.acceptableDataItemTypes) == null ? void 0 : s.length) > 0 ? this.slotConfiguration.acceptableDataItemTypes : [
|
300
300
|
"datetime",
|
301
301
|
"hierarchy",
|
302
302
|
"numeric",
|
@@ -331,11 +331,11 @@ let n = class extends B(j, {
|
|
331
331
|
));
|
332
332
|
}
|
333
333
|
_onOverlayOpened(t) {
|
334
|
-
var o, e, l,
|
334
|
+
var o, e, l, r;
|
335
335
|
if (t.detail.interaction !== "hint") {
|
336
|
-
const i = ((e = (o = this._store.activeIndex).get) == null ? void 0 : e.call(o)) ?? 0,
|
337
|
-
if (!
|
338
|
-
const a =
|
336
|
+
const i = ((e = (o = this._store.activeIndex).get) == null ? void 0 : e.call(o)) ?? 0, s = ((l = this._slotContents) == null ? void 0 : l[i]) ?? ((r = this._slotContents) == null ? void 0 : r[0]);
|
337
|
+
if (!s) return;
|
338
|
+
const a = s.columnId ?? s.column ?? s.formulaId ?? s.formula ?? s.id;
|
339
339
|
if (!a) return;
|
340
340
|
this.dispatchEvent(
|
341
341
|
new CustomEvent("slot-menu-highlight", {
|
@@ -343,7 +343,7 @@ let n = class extends B(j, {
|
|
343
343
|
composed: !0,
|
344
344
|
detail: {
|
345
345
|
id: a,
|
346
|
-
level:
|
346
|
+
level: s.level
|
347
347
|
}
|
348
348
|
})
|
349
349
|
);
|
@@ -354,10 +354,10 @@ let n = class extends B(j, {
|
|
354
354
|
t.preventDefault(), t.stopPropagation(), this._slotContents.length === ((o = t.detail.slotContents) == null ? void 0 : o.length) ? (this._currentSlotContents = t.detail.slotContents, this.changedSlotContents(this._currentSlotContents)) : (this._slotContents = t.detail.slotContents, this.changedSlotContents(this._slotContents));
|
355
355
|
}
|
356
356
|
get _fullLabel() {
|
357
|
-
var l,
|
357
|
+
var l, r, i, s, a, p, d, m, g;
|
358
358
|
let t = "";
|
359
|
-
const o = C[(l = this.slotConfiguration) == null ? void 0 : l.label] ? C[(
|
360
|
-
((
|
359
|
+
const o = C[(l = this.slotConfiguration) == null ? void 0 : l.label] ? C[(r = this.slotConfiguration) == null ? void 0 : r.label]() : (i = this.slotConfiguration) == null ? void 0 : i.label;
|
360
|
+
((s = this._currentSlotContents) == null ? void 0 : s.length) === 1 ? t = P(
|
361
361
|
(p = (a = this._currentSlotContents) == null ? void 0 : a[0]) == null ? void 0 : p.label,
|
362
362
|
this.language
|
363
363
|
) ?? "Untitled" : ((d = this._currentSlotContents) == null ? void 0 : d.length) > 1 && (t = `${this._currentSlotContents.length} items`);
|
@@ -365,7 +365,7 @@ let n = class extends B(j, {
|
|
365
365
|
return ((m = this._currentSlotContents) == null ? void 0 : m.length) > 0 && (e += ((g = this._currentSlotContents) == null ? void 0 : g.length) > 1 ? `: ${this._currentSlotContents.length} items` : `: ${t}`), e;
|
366
366
|
}
|
367
367
|
droppableSlotMarkup() {
|
368
|
-
var o, e, l,
|
368
|
+
var o, e, l, r, i, s, a, p;
|
369
369
|
const t = h`
|
370
370
|
<div
|
371
371
|
class="droppable-slot ${(o = this.slotConfiguration) != null && o.rotate ? "rotate" : ""}"
|
@@ -377,7 +377,7 @@ let n = class extends B(j, {
|
|
377
377
|
${y(O)}
|
378
378
|
<luzmo-tooltip
|
379
379
|
self-managed
|
380
|
-
placement=${(
|
380
|
+
placement=${(r = this.slotConfiguration) != null && r.rotate ? "right" : "top"}
|
381
381
|
size=${this.size}
|
382
382
|
>
|
383
383
|
edit
|
@@ -394,7 +394,7 @@ let n = class extends B(j, {
|
|
394
394
|
</luzmo-tooltip>
|
395
395
|
</div>`}
|
396
396
|
</div>` : ""}
|
397
|
-
${((
|
397
|
+
${((s = this._slotContents) == null ? void 0 : s.length) > 0 ? h`<luzmo-overlay
|
398
398
|
trigger="trigger@click"
|
399
399
|
.placement=${this.placement}
|
400
400
|
@luzmo-closed=${this._onOverlayClosed}
|