@luzmo/analytics-components-kit 1.0.1-alpha.41 → 1.0.1-alpha.42

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.
Files changed (42) hide show
  1. package/components/{calculate-data-item-icon-B9B0iLjm.js → calculate-data-item-icon-BFpVWXnR.js} +61 -43
  2. package/components/{calculate-data-item-icon-CjHO4KtA.cjs → calculate-data-item-icon-C_3QUGmB.cjs} +1 -1
  3. package/components/display-settings/index.cjs +3 -3
  4. package/components/display-settings/index.js +2 -2
  5. package/components/display-settings-binning/index.cjs +1 -1
  6. package/components/display-settings-binning/index.js +1 -1
  7. package/components/display-settings-datetime/index.cjs +1 -1
  8. package/components/display-settings-datetime/index.js +1 -1
  9. package/components/display-settings-grand-totals/index.cjs +1 -1
  10. package/components/display-settings-grand-totals/index.js +1 -1
  11. package/components/display-settings-numeric/index.cjs +2 -2
  12. package/components/display-settings-numeric/index.js +1 -1
  13. package/components/display-settings-period-over-period/index.cjs +8 -8
  14. package/components/display-settings-period-over-period/index.js +82 -71
  15. package/components/draggable-data-item/draggable-data-item.d.ts +2 -0
  16. package/components/draggable-data-item/index.cjs +6 -5
  17. package/components/draggable-data-item/index.js +20 -16
  18. package/components/draggable-data-item-level/draggable-data-item-level.d.ts +3 -0
  19. package/components/draggable-data-item-level/index.cjs +12 -7
  20. package/components/draggable-data-item-level/index.js +78 -59
  21. package/components/droppable-slot/index.cjs +5 -5
  22. package/components/droppable-slot/index.js +3 -3
  23. package/components/edit-option-action-button-group/index.cjs +1 -1
  24. package/components/edit-option-action-button-group/index.js +1 -1
  25. package/components/edit-option-positions-number-field/index.cjs +2 -2
  26. package/components/edit-option-positions-number-field/index.js +1 -1
  27. package/components/filter-data-item-picker/index.cjs +1 -1
  28. package/components/filter-data-item-picker/index.js +1 -1
  29. package/components/grid/index.cjs +1 -1
  30. package/components/grid/index.js +1 -1
  31. package/components/{luzmo-icons-v9hKZ3HV.js → luzmo-icons-B2K7AcCF.js} +175 -141
  32. package/components/luzmo-icons-CP__dRRM.cjs +31 -0
  33. package/components/slot-contents-picker/index.cjs +8 -8
  34. package/components/slot-contents-picker/index.js +2 -2
  35. package/components/slot-menu/index.cjs +5 -4
  36. package/components/slot-menu/index.js +6 -5
  37. package/components/slot-menu-list/index.cjs +2 -2
  38. package/components/slot-menu-list/index.js +1 -1
  39. package/custom-elements.json +51 -1
  40. package/package.json +1 -1
  41. package/utils/data-item-types/calculate-data-item-icon.d.ts +1 -0
  42. package/components/luzmo-icons-B_3XTuMC.cjs +0 -31
@@ -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 y=require("../get-css-variable-DLiZYZEi.cjs"),C=require("../localized-decorator-SOrjcPab.cjs"),n=require("../set-locale-Cam8nRIW.cjs"),S=require("../task-qPJdeXO1.cjs"),h=require("../luzmo-icons-B_3XTuMC.cjs");require("../index-CYeQkVeJ.cjs");const q=require("../localize-r7ALOUy_.cjs"),r=require("../property-BCb4Kybn.cjs"),P=require("../query-D5qWDopr.cjs"),L=require("../focusable-BTJYY_Mf.cjs"),D=require("../sized-mixin-BNtmplgF.cjs");require("../slot-menu/index.cjs");const x=":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family))}.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))}: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))}: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))}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 )}: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}",z={Category:()=>n.msg("Category",{desc:"Category label"}),Measure:()=>n.msg("Measure",{desc:"Measure label"}),Legend:()=>n.msg("Legend",{desc:"Legend label"}),"Y-Axis":()=>n.msg("Y-Axis",{desc:"Y-Axis label"}),"X-Axis":()=>n.msg("X-Axis",{desc:"X-Axis label"}),"Group by":()=>n.msg("Group by",{desc:"Group by label"})};var k=Object.defineProperty,w=Object.getOwnPropertyDescriptor,a=(f,t,o,e)=>{for(var l=e>1?void 0:e?w(t,o):t,s=f.length-1,i;s>=0;s--)(i=f[s])&&(l=(e?i(t,o,l):i(l))||l);return e&&l&&k(t,o,l),l};exports.LuzmoDroppableSlot=class extends D.SizedMixin(L.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this._loadSlotsConfig=new S.h(this,{task:async([t])=>{if(t&&t!==this._itemTypeLoaded){const o=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"))});if(o[`../../item-definitions/${t}/${t}-slots.config.ts`]){const e=await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();this._slotsConfig=(e==null?void 0:e.default)??{}}return this._slotsConfig}},args:()=>[this.itemType,this.language]}),this.slotConfiguration={},this.slotContents=[],this.language="en",this.menu="default",this.placement="bottom-end",this.changedSlotContents=t=>{this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:t}}))},this._currentSlotContents=[]}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDroppable()}emptySlotContents(t){t.preventDefault(),t.stopPropagation(),this.slotContents=[],this.changedSlotContents([])}willUpdate(t){t.has("slotContents")&&(this._currentSlotContents=structuredClone(this.slotContents)),t.has("language")&&this.language!==n.getLocale()&&([...n.targetLocales].includes(this.language??"en")||this.language==="en")&&n.setLocale(this.language)}firstUpdated(t){this._cleanupDroppable||(this._cleanupDroppable=y.dropTargetForElements({element:this,onDrop:o=>{var i,p,d,c;const e={...(i=o.source)==null?void 0:i.data},l={...(e==null?void 0:e.label)??{en:"Untitled"}},s=e==null?void 0:e.type;if(s==="datetime"&&!e.level&&(e.level=e.lowestLevel??(e.subtype==="date"?5:9)),s==="datetime"&&((d=(p=o==null?void 0:o.source)==null?void 0:p.element)!=null&&d.hasAttribute("sublevel"))){const u=["(Yr)","(Qtr)","(Mth)","(Wk)","(Date)","(Hr)","(Min)","(Sec)","(Msec)"],m=(e==null?void 0:e.level)??1,b=Object.keys(l);for(const g of b)l[g]=`${l[g]} ${u[m-1]}`;e.label=l}this.slotContents=(c=this.slotConfiguration)!=null&&c.canAcceptMultipleDataItems?[...this.slotContents??[],e]:[e],this.removeAttribute("accept-drag"),this.changedSlotContents(this.slotContents)},canDrop:({source:o})=>{var l,s,i,p,d,c,u,m,b,g,v;if(!["LUZMO-DRAGGABLE-DATA-ITEM-LEVEL","LUZMO-DRAGGABLE-DATA-ITEM"].includes((l=o.element)==null?void 0:l.tagName)||!((s=this.slotConfiguration)!=null&&s.canAcceptFormula)&&((i=o==null?void 0:o.data)!=null&&i.formulaId))return!1;const e=((d=(p=this.slotConfiguration)==null?void 0:p.acceptableDataItemTypes)==null?void 0:d.length)>0?this.slotConfiguration.acceptableDataItemTypes:["datetime","hierarchy","numeric","array[datetime]","array[numeric]","array[hierarchy]"];return(c=o==null?void 0:o.data)!=null&&c.type&&!e.includes((u=o==null?void 0:o.data)==null?void 0:u.type)?!1:!((m=o==null?void 0:o.data)!=null&&m.subtype&&((g=(b=this.slotConfiguration)==null?void 0:b.acceptableColumnSubtypes)==null?void 0:g.length)>0&&!this.slotConfiguration.acceptableColumnSubtypes.includes((v=o==null?void 0:o.data)==null?void 0:v.subtype))},getDropEffect:()=>"move",onDragEnter:()=>{this.setAttribute("accept-drag","")},onDragLeave:()=>{this.removeAttribute("accept-drag")}}))}updated(){this.createFullLabel()}_onSlotMenuChanges(t){var o;t.preventDefault(),t.stopPropagation(),this.slotContents.length===((o=t.detail.slotContents)==null?void 0:o.length)?(this._currentSlotContents=t.detail.slotContents,this.createFullLabel(),this.changedSlotContents(this._currentSlotContents)):(this.slotContents=t.detail.slotContents,this.changedSlotContents(this.slotContents))}createFullLabel(){var l,s,i,p,d,c,u,m,b;let t="";const o=z[(l=this.slotConfiguration)==null?void 0:l.label]?z[(s=this.slotConfiguration)==null?void 0:s.label]():(i=this.slotConfiguration)==null?void 0:i.label;((p=this._currentSlotContents)==null?void 0:p.length)===1?t=q.localize((c=(d=this._currentSlotContents)==null?void 0:d[0])==null?void 0:c.label,this.language)??"Untitled":((u=this._currentSlotContents)==null?void 0:u.length)>1&&(t=`${this._currentSlotContents.length} items`);let e="";this.label?e=this.label:o&&(e=o),e=e||"Untitled",((m=this._currentSlotContents)==null?void 0:m.length)>0&&(e+=((b=this._currentSlotContents)==null?void 0:b.length)>1?`: ${this._currentSlotContents.length} items`:`: ${t}`),this._droppableSlotLabelElement&&(this._droppableSlotLabelElement.textContent=e)}droppableSlotMarkup(){var t,o,e,l;return r.x`
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../get-css-variable-DLiZYZEi.cjs"),C=require("../localized-decorator-SOrjcPab.cjs"),n=require("../set-locale-Cam8nRIW.cjs"),S=require("../task-qPJdeXO1.cjs"),h=require("../luzmo-icons-CP__dRRM.cjs");require("../index-CYeQkVeJ.cjs");const q=require("../localize-r7ALOUy_.cjs"),r=require("../property-BCb4Kybn.cjs"),P=require("../query-D5qWDopr.cjs"),L=require("../focusable-BTJYY_Mf.cjs"),D=require("../sized-mixin-BNtmplgF.cjs");require("../slot-menu/index.cjs");const x=":host{font-family:var(--luzmo-droppable-slot-font-family, var(--luzmo-font-family))}.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))}: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))}: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))}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 )}: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}",z={Category:()=>n.msg("Category",{desc:"Category label"}),Measure:()=>n.msg("Measure",{desc:"Measure label"}),Legend:()=>n.msg("Legend",{desc:"Legend label"}),"Y-Axis":()=>n.msg("Y-Axis",{desc:"Y-Axis label"}),"X-Axis":()=>n.msg("X-Axis",{desc:"X-Axis label"}),"Group by":()=>n.msg("Group by",{desc:"Group by label"})};var k=Object.defineProperty,w=Object.getOwnPropertyDescriptor,a=(f,t,o,e)=>{for(var l=e>1?void 0:e?w(t,o):t,s=f.length-1,i;s>=0;s--)(i=f[s])&&(l=(e?i(t,o,l):i(l))||l);return e&&l&&k(t,o,l),l};exports.LuzmoDroppableSlot=class extends D.SizedMixin(L.LuzmoElement,{validSizes:["s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this._loadSlotsConfig=new S.h(this,{task:async([t])=>{if(t&&t!==this._itemTypeLoaded){const o=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"))});if(o[`../../item-definitions/${t}/${t}-slots.config.ts`]){const e=await o[`../../item-definitions/${t}/${t}-slots.config.ts`]();this._slotsConfig=(e==null?void 0:e.default)??{}}return this._slotsConfig}},args:()=>[this.itemType,this.language]}),this.slotConfiguration={},this.slotContents=[],this.language="en",this.menu="default",this.placement="bottom-end",this.changedSlotContents=t=>{this.dispatchEvent(new CustomEvent("slot-contents-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{slotContents:t}}))},this._currentSlotContents=[]}disconnectedCallback(){super.disconnectedCallback(),this._cleanupDroppable()}emptySlotContents(t){t.preventDefault(),t.stopPropagation(),this.slotContents=[],this.changedSlotContents([])}willUpdate(t){t.has("slotContents")&&(this._currentSlotContents=structuredClone(this.slotContents)),t.has("language")&&this.language!==n.getLocale()&&([...n.targetLocales].includes(this.language??"en")||this.language==="en")&&n.setLocale(this.language)}firstUpdated(t){this._cleanupDroppable||(this._cleanupDroppable=y.dropTargetForElements({element:this,onDrop:o=>{var i,p,d,c;const e={...(i=o.source)==null?void 0:i.data},l={...(e==null?void 0:e.label)??{en:"Untitled"}},s=e==null?void 0:e.type;if(s==="datetime"&&!e.level&&(e.level=e.lowestLevel??(e.subtype==="date"?5:9)),s==="datetime"&&((d=(p=o==null?void 0:o.source)==null?void 0:p.element)!=null&&d.hasAttribute("sublevel"))){const u=["(Yr)","(Qtr)","(Mth)","(Wk)","(Date)","(Hr)","(Min)","(Sec)","(Msec)"],m=(e==null?void 0:e.level)??1,b=Object.keys(l);for(const g of b)l[g]=`${l[g]} ${u[m-1]}`;e.label=l}this.slotContents=(c=this.slotConfiguration)!=null&&c.canAcceptMultipleDataItems?[...this.slotContents??[],e]:[e],this.removeAttribute("accept-drag"),this.changedSlotContents(this.slotContents)},canDrop:({source:o})=>{var l,s,i,p,d,c,u,m,b,g,v;if(!["LUZMO-DRAGGABLE-DATA-ITEM-LEVEL","LUZMO-DRAGGABLE-DATA-ITEM"].includes((l=o.element)==null?void 0:l.tagName)||!((s=this.slotConfiguration)!=null&&s.canAcceptFormula)&&((i=o==null?void 0:o.data)!=null&&i.formulaId))return!1;const e=((d=(p=this.slotConfiguration)==null?void 0:p.acceptableDataItemTypes)==null?void 0:d.length)>0?this.slotConfiguration.acceptableDataItemTypes:["datetime","hierarchy","numeric","array[datetime]","array[numeric]","array[hierarchy]"];return(c=o==null?void 0:o.data)!=null&&c.type&&!e.includes((u=o==null?void 0:o.data)==null?void 0:u.type)?!1:!((m=o==null?void 0:o.data)!=null&&m.subtype&&((g=(b=this.slotConfiguration)==null?void 0:b.acceptableColumnSubtypes)==null?void 0:g.length)>0&&!this.slotConfiguration.acceptableColumnSubtypes.includes((v=o==null?void 0:o.data)==null?void 0:v.subtype))},getDropEffect:()=>"move",onDragEnter:()=>{this.setAttribute("accept-drag","")},onDragLeave:()=>{this.removeAttribute("accept-drag")}}))}updated(){this.createFullLabel()}_onSlotMenuChanges(t){var o;t.preventDefault(),t.stopPropagation(),this.slotContents.length===((o=t.detail.slotContents)==null?void 0:o.length)?(this._currentSlotContents=t.detail.slotContents,this.createFullLabel(),this.changedSlotContents(this._currentSlotContents)):(this.slotContents=t.detail.slotContents,this.changedSlotContents(this.slotContents))}createFullLabel(){var l,s,i,p,d,c,u,m,b;let t="";const o=z[(l=this.slotConfiguration)==null?void 0:l.label]?z[(s=this.slotConfiguration)==null?void 0:s.label]():(i=this.slotConfiguration)==null?void 0:i.label;((p=this._currentSlotContents)==null?void 0:p.length)===1?t=q.localize((c=(d=this._currentSlotContents)==null?void 0:d[0])==null?void 0:c.label,this.language)??"Untitled":((u=this._currentSlotContents)==null?void 0:u.length)>1&&(t=`${this._currentSlotContents.length} items`);let e="";this.label?e=this.label:o&&(e=o),e=e||"Untitled",((m=this._currentSlotContents)==null?void 0:m.length)>0&&(e+=((b=this._currentSlotContents)==null?void 0:b.length)>1?`: ${this._currentSlotContents.length} items`:`: ${t}`),this._droppableSlotLabelElement&&(this._droppableSlotLabelElement.textContent=e)}droppableSlotMarkup(){var t,o,e,l;return r.x`
21
21
  <div
22
22
  class="droppable-slot"
23
23
  ?filled=${((t=this.slotContents)==null?void 0:t.length)>0}
@@ -26,7 +26,7 @@
26
26
  <div class="droppable-slot-label"></div>
27
27
  ${((o=this.slotContents)==null?void 0:o.length)>0&&!(this.hideConfiguration&&this.hideDelete)?r.x`<div class="controls">
28
28
  ${this.hideConfiguration?"":r.x`<div>
29
- ${h.p3(h.M1)}
29
+ ${h.y3(h.M1)}
30
30
  <luzmo-tooltip
31
31
  self-managed
32
32
  placement="top"
@@ -36,7 +36,7 @@
36
36
  </luzmo-tooltip>
37
37
  </div> `}
38
38
  ${this.hideDelete?"":r.x`<div @click=${this.emptySlotContents}>
39
- ${h.p3(h.C1)}
39
+ ${h.y3(h.C1)}
40
40
  <luzmo-tooltip
41
41
  self-managed
42
42
  placement="top"
@@ -55,13 +55,13 @@
55
55
  content-language=${this.language}
56
56
  slot-type=${(l=this.slotConfiguration)==null?void 0:l.type}
57
57
  .slotContents=${this._currentSlotContents}
58
- variant="popup"
58
+ variant=${this.menu==="draggable"?"draggable":"popup"}
59
59
  .size=${this.size}
60
60
  @slot-contents-changed=${this._onSlotMenuChanges}
61
61
  ></luzmo-slot-menu>
62
62
  </luzmo-overlay>`:""}
63
63
  </div>
64
- `}render(){return this._loadSlotsConfig.render({pending:()=>r.x`<p>Loading...</p>`,complete:t=>{if(this.slotName&&this.itemType&&t){const o=t.find(e=>e.name===this.slotName);o&&(this.slotConfiguration=o)}return this.droppableSlotMarkup()},error:t=>r.x`
64
+ `}render(){return this._loadSlotsConfig.render({pending:()=>r.x`<p>Loading...</p>`,complete:t=>{if(this.slotName&&this.itemType&&t){const o=t.find(e=>e.name===this.slotName);o&&!this.slotConfiguration&&(this.slotConfiguration=o)}return this.droppableSlotMarkup()},error:t=>r.x`
65
65
  <div>
66
66
  Could not load droppable slot: '${this.slotName}' of chart
67
67
  '${this.itemType}': ${t}.
@@ -21,7 +21,7 @@ import { a as C } from "../get-css-variable-YlLiVgo8.js";
21
21
  import { l as S } from "../localized-decorator-DNr1P1m0.js";
22
22
  import { m as f, g as k, t as w, s as L } from "../set-locale-DbEAMqUs.js";
23
23
  import { h as _ } from "../task-PQaVY8Iw.js";
24
- import { a3 as v, a8 as $, a6 as D } from "../luzmo-icons-v9hKZ3HV.js";
24
+ import { a7 as v, ac as $, aa as D } from "../luzmo-icons-B2K7AcCF.js";
25
25
  import "../index-BmshD32H.js";
26
26
  import { l as A } from "../localize-BX7q0S0M.js";
27
27
  import { x as g, r as E, n as p } from "../property-Dn4zSyxu.js";
@@ -244,7 +244,7 @@ let a = class extends T(O, {
244
244
  content-language=${this.language}
245
245
  slot-type=${(e = this.slotConfiguration) == null ? void 0 : e.type}
246
246
  .slotContents=${this._currentSlotContents}
247
- variant="popup"
247
+ variant=${this.menu === "draggable" ? "draggable" : "popup"}
248
248
  .size=${this.size}
249
249
  @slot-contents-changed=${this._onSlotMenuChanges}
250
250
  ></luzmo-slot-menu>
@@ -260,7 +260,7 @@ let a = class extends T(O, {
260
260
  const o = t.find(
261
261
  (l) => l.name === this.slotName
262
262
  );
263
- o && (this.slotConfiguration = o);
263
+ o && !this.slotConfiguration && (this.slotConfiguration = o);
264
264
  }
265
265
  return this.droppableSlotMarkup();
266
266
  },
@@ -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";var m=Object.getPrototypeOf;var b=Reflect.get;var d=(c,t,e)=>b(m(c),e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../luzmo-icons-B_3XTuMC.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-DSQyBS9Z.cjs");const n=require("../property-BCb4Kybn.cjs"),z=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-ByphLI4J.cjs"),v="luzmo-action-group{--luzmo-edit-option-action-button-group-button-background-hover: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-background-down: rgba( var(--luzmo-primary-rgb), .2 );--luzmo-edit-option-action-button-group-button-background-focus: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-content-color-default: var( --luzmo-font-color-disabled );--luzmo-edit-option-action-button-group-button-content-color-hover: var( --luzmo-font-color-hover );--luzmo-edit-option-action-button-group-button-content-color-down: var( --luzmo-font-color-down );--luzmo-edit-option-action-button-group-button-content-color-focus: var( --luzmo-font-color-focus )}luzmo-action-group[compact][quiet][emphasized]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-hover );--luzmo-action-button-background-color-down: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-focus: var( --luzmo-edit-option-action-button-group-button-background-focus );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-default );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-hover );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-focus: var( --luzmo-edit-option-action-button-group-button-content-color-focus )}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-default: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down )}";var h=Object.defineProperty,i=(c,t,e,l)=>{for(var r=void 0,s=c.length-1,p;s>=0;s--)(p=c[s])&&(r=p(t,e,r)||r);return r&&h(t,e,r),r};const f={alignBottom:o.U,alignMiddle:o.E,alignTop:o.P,alignLeft:o.G,alignCenter:o.N,alignRight:o.q,ban:o.a1,borderSolid:o.b2,borderDashed:o.S2,borderDotted:o.k2,compress:o.Y,expand:o._,arrowsExpand:o.c1,arrowsHorizontal:o.J,arrowsVertical:o.j,italic:o.w1,bold:o.f1,underline:o.x1,rows:o.P1,columns:o.E1,table:o.V1},a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}_handleEvent(){var e,l,r;const t=this.selects==="multiple"?(e=this.actionGroup)==null?void 0:e.selected:(r=(l=this.actionGroup)==null?void 0:l.selected)==null?void 0:r[0];this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:t}}))}_generateButtonContents(t){return typeof t=="string"?n.x`${t}`:t.iconName||t.icon?n.x`
20
+ "use strict";var m=Object.getPrototypeOf;var b=Reflect.get;var d=(c,t,e)=>b(m(c),e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../luzmo-icons-CP__dRRM.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-DSQyBS9Z.cjs");const n=require("../property-BCb4Kybn.cjs"),z=require("../query-D5qWDopr.cjs"),g=require("../edit-option-base-ByphLI4J.cjs"),v="luzmo-action-group{--luzmo-edit-option-action-button-group-button-background-hover: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-background-down: rgba( var(--luzmo-primary-rgb), .2 );--luzmo-edit-option-action-button-group-button-background-focus: rgba( var(--luzmo-primary-rgb), .1 );--luzmo-edit-option-action-button-group-button-content-color-default: var( --luzmo-font-color-disabled );--luzmo-edit-option-action-button-group-button-content-color-hover: var( --luzmo-font-color-hover );--luzmo-edit-option-action-button-group-button-content-color-down: var( --luzmo-font-color-down );--luzmo-edit-option-action-button-group-button-content-color-focus: var( --luzmo-font-color-focus )}luzmo-action-group[compact][quiet][emphasized]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=s]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-1)}luzmo-action-group[compact][quiet][emphasized][size=l]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-2)}luzmo-action-group[compact][quiet][emphasized][size=xl]{--luzmo-action-group-gap-size-compact: var(--luzmo-spacing-3)}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-hover );--luzmo-action-button-background-color-down: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-focus: var( --luzmo-edit-option-action-button-group-button-background-focus );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-default );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-hover );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-focus: var( --luzmo-edit-option-action-button-group-button-content-color-focus )}luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]:hover,luzmo-action-group[compact][quiet][emphasized] luzmo-action-button[selected]{--luzmo-action-button-background-color-hover: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-background-color-default: var( --luzmo-edit-option-action-button-group-button-background-down );--luzmo-action-button-content-color-default: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-hover: var( --luzmo-edit-option-action-button-group-button-content-color-down );--luzmo-action-button-content-color-down: var( --luzmo-edit-option-action-button-group-button-content-color-down )}";var h=Object.defineProperty,i=(c,t,e,l)=>{for(var r=void 0,s=c.length-1,p;s>=0;s--)(p=c[s])&&(r=p(t,e,r)||r);return r&&h(t,e,r),r};const f={alignBottom:o.U,alignMiddle:o.E,alignTop:o.P,alignLeft:o.G,alignCenter:o.N,alignRight:o.q,ban:o.a1,borderSolid:o.b2,borderDashed:o.S2,borderDotted:o.k2,compress:o.Y,expand:o._,arrowsExpand:o.c1,arrowsHorizontal:o.J,arrowsVertical:o.j,italic:o.w1,bold:o.f1,underline:o.x1,rows:o.P1,columns:o.E1,table:o.V1},a=class a extends g.LuzmoEditOptionBase{constructor(){super(...arguments),this.values={},this.disabled=!1}_handleEvent(){var e,l,r;const t=this.selects==="multiple"?(e=this.actionGroup)==null?void 0:e.selected:(r=(l=this.actionGroup)==null?void 0:l.selected)==null?void 0:r[0];this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:t}}))}_generateButtonContents(t){return typeof t=="string"?n.x`${t}`:t.iconName||t.icon?n.x`
21
21
  <luzmo-icon
22
22
  slot="icon"
23
23
  .size=${this.size}
@@ -20,7 +20,7 @@
20
20
  var d = Object.getPrototypeOf;
21
21
  var p = Reflect.get;
22
22
  var z = (r, o, t) => p(d(r), t, o);
23
- import { c as g, d as f, e as h, g as v, i as x, j as y, o as w, J as k, r as $, y as C, C as q, G as S, I as E, K as _, N as B, R as N, T as j, $ as P, a0 as T, a1 as A, a2 as H } from "../luzmo-icons-v9hKZ3HV.js";
23
+ import { i as g, j as f, o as h, r as v, y as x, C as y, G as w, J as k, I as $, K as C, N as q, R as S, T as E, $ as _, a0 as B, a1 as N, a2 as j, a3 as P, a4 as T, a5 as A, a6 as H } from "../luzmo-icons-B2K7AcCF.js";
24
24
  import "../index-rQxtPaJl.js";
25
25
  import "../index-BHJH1eGn.js";
26
26
  import "../index-BC1LV3vH.js";
@@ -17,12 +17,12 @@
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 g=require("../luzmo-icons-B_3XTuMC.cjs");require("../index-CBOAQ3-E.cjs");const s=require("../property-BCb4Kybn.cjs"),$=require("../state-BxZEcclm.cjs"),x=require("../edit-option-base-ByphLI4J.cjs"),S=":host{--edit-option-positions-number-field-container-row-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-container-column-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height) * 1.5 )}:host([size=s]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-s) * 1.5 )}:host([size=l]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-l) * 1.5 )}:host([size=xl]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-xl) * 1.5 )}:host{--var: test}.positions-container{max-width:var(--luzmo-edit-option-positions-number-field-container-max-width, var(--edit-option-positions-number-field-container-max-width));display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);row-gap:var(--luzmo-edit-option-positions-number-field-container-row-gap, var(--edit-option-positions-number-field-container-row-gap));column-gap:var(--luzmo-edit-option-positions-number-field-container-column-gap, var(--edit-option-positions-number-field-container-column-gap))}.position,.sync-button{display:flex;align-items:center;justify-content:center}.sync-button{cursor:pointer}.sync-button[position=center].sync{border:var(--luzmo-edit-option-positions-number-field-sync-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-sync-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-positions-number-field-sync-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height))}.no-sync-center{border:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-no-sync-center-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height));background-color:var(--luzmo-edit-option-positions-number-field-no-sync-center-background-color, var(--luzmo-background-color-highlight))}";var V=Object.defineProperty,a=(f,t,i,n)=>{for(var e=void 0,o=f.length-1,r;o>=0;o--)(r=f[o])&&(e=r(t,i,e)||e);return e&&V(t,i,e),e};class u extends x.LuzmoEditOptionBase{constructor(){super(...arguments),this.canSync=!0,this.invalid=!1,this.readonly=!1,this.debounce=200,this._positions=[["top-left","top","top-right"],["left","center","right"],["bottom-left","bottom","bottom-right"]]}static get styles(){return[s.r(S)]}_calculateSyncedValue(){var n;let t;const i={};return(n=this.positions)==null||n.forEach(e=>{var o,r,l;i[e]=((o=this.values)==null?void 0:o[e])??((l=(r=this.positionConfiguration)==null?void 0:r[e])==null?void 0:l.default)??0,t=typeof t=="number"&&i[e]?Math.min(t,i[e]):i[e]}),t}toggleSync(){if(this.sync=!this.sync,this.sync&&(this.syncedValue=this._calculateSyncedValue(),typeof this.syncedValue=="number")){this.values={...this.values};for(const t of this.positions??[])this.values[t]=this.syncedValue}}_handleEvent(t){const i=t.target.getAttribute("position"),n=t.target.value;let e={};if(!(!i||typeof n!="number")){if(this.canSync&&this.sync&&i==="center"){this.syncedValue=n;for(const o of this.positions??[])e[o]=n}else e={...this.values,[i]:n};this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var c;const o=Object.keys(this.values??{}),r=Object.keys(e);let l=!0;o.length!==r.length&&(l=!1);for(const d of o)((c=this.values)==null?void 0:c[d])!==e[d]&&(l=!1);l||(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{values:{...e}}})),this.values=e)},this.debounce??200)}}_renderNumberField(t){var i,n,e,o,r,l,c,d,p,h,m;return(i=this.positions)!=null&&i.includes(t)||t==="center"?this.canSync&&(this.sync&&t!=="center"||!this.sync&&t==="center")?s.x`<div
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../luzmo-icons-CP__dRRM.cjs");require("../index-CBOAQ3-E.cjs");const s=require("../property-BCb4Kybn.cjs"),$=require("../state-BxZEcclm.cjs"),x=require("../edit-option-base-ByphLI4J.cjs"),S=":host{--edit-option-positions-number-field-container-row-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-container-column-gap: var( --luzmo-spacing-2 );--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height) * 1.5 )}:host([size=s]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-s) * 1.5 )}:host([size=l]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-l) * 1.5 )}:host([size=xl]){--edit-option-positions-number-field-sync-height: calc( var(--luzmo-component-height-xl) * 1.5 )}:host{--var: test}.positions-container{max-width:var(--luzmo-edit-option-positions-number-field-container-max-width, var(--edit-option-positions-number-field-container-max-width));display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);row-gap:var(--luzmo-edit-option-positions-number-field-container-row-gap, var(--edit-option-positions-number-field-container-row-gap));column-gap:var(--luzmo-edit-option-positions-number-field-container-column-gap, var(--edit-option-positions-number-field-container-column-gap))}.position,.sync-button{display:flex;align-items:center;justify-content:center}.sync-button{cursor:pointer}.sync-button[position=center].sync{border:var(--luzmo-edit-option-positions-number-field-sync-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-sync-border-color, var(--luzmo-primary));border-radius:var(--luzmo-edit-option-positions-number-field-sync-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height))}.no-sync-center{border:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-width, var(--luzmo-border-width)) solid var(--luzmo-edit-option-positions-number-field-no-sync-center-border-color, var(--luzmo-border-color));border-radius:var(--luzmo-edit-option-positions-number-field-no-sync-center-border-radius, var(--luzmo-border-radius));height:var(--luzmo-edit-option-positions-number-field-sync-height, var(--edit-option-positions-number-field-sync-height));background-color:var(--luzmo-edit-option-positions-number-field-no-sync-center-background-color, var(--luzmo-background-color-highlight))}";var V=Object.defineProperty,a=(f,t,i,n)=>{for(var e=void 0,o=f.length-1,r;o>=0;o--)(r=f[o])&&(e=r(t,i,e)||e);return e&&V(t,i,e),e};class u extends x.LuzmoEditOptionBase{constructor(){super(...arguments),this.canSync=!0,this.invalid=!1,this.readonly=!1,this.debounce=200,this._positions=[["top-left","top","top-right"],["left","center","right"],["bottom-left","bottom","bottom-right"]]}static get styles(){return[s.r(S)]}_calculateSyncedValue(){var n;let t;const i={};return(n=this.positions)==null||n.forEach(e=>{var o,r,l;i[e]=((o=this.values)==null?void 0:o[e])??((l=(r=this.positionConfiguration)==null?void 0:r[e])==null?void 0:l.default)??0,t=typeof t=="number"&&i[e]?Math.min(t,i[e]):i[e]}),t}toggleSync(){if(this.sync=!this.sync,this.sync&&(this.syncedValue=this._calculateSyncedValue(),typeof this.syncedValue=="number")){this.values={...this.values};for(const t of this.positions??[])this.values[t]=this.syncedValue}}_handleEvent(t){const i=t.target.getAttribute("position"),n=t.target.value;let e={};if(!(!i||typeof n!="number")){if(this.canSync&&this.sync&&i==="center"){this.syncedValue=n;for(const o of this.positions??[])e[o]=n}else e={...this.values,[i]:n};this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{var c;const o=Object.keys(this.values??{}),r=Object.keys(e);let l=!0;o.length!==r.length&&(l=!1);for(const d of o)((c=this.values)==null?void 0:c[d])!==e[d]&&(l=!1);l||(this.dispatchEvent(new CustomEvent("option-changed",{bubbles:!0,composed:!0,cancelable:!0,detail:{values:{...e}}})),this.values=e)},this.debounce??200)}}_renderNumberField(t){var i,n,e,o,r,l,c,d,p,h,m;return(i=this.positions)!=null&&i.includes(t)||t==="center"?this.canSync&&(this.sync&&t!=="center"||!this.sync&&t==="center")?s.x`<div
21
21
  class="sync-button ${this.sync?"":"sync"}"
22
22
  position=${t}
23
23
  @click=${this.toggleSync}
24
24
  >
25
- ${g.p3(g.R1)}
25
+ ${g.y3(g.R1)}
26
26
  </div>`:!this.canSync&&!((n=this.positions)!=null&&n.includes("center"))&&t==="center"?s.x`<div class="no-sync-center"></div>`:s.x`<div class="position">
27
27
  <luzmo-number-field
28
28
  position=${t}
@@ -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 { a3 as k, a4 as S } from "../luzmo-icons-v9hKZ3HV.js";
20
+ import { a7 as k, a8 as S } from "../luzmo-icons-B2K7AcCF.js";
21
21
  import "../index-Desl7GJ0.js";
22
22
  import { r as C, x as p, n as m } from "../property-Dn4zSyxu.js";
23
23
  import { r as $ } from "../state-vVJlsarL.js";
@@ -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"});require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CHFwXYcm.cjs");require("../index-EXO-Hsj2.cjs");const e=require("../property-BCb4Kybn.cjs"),d=require("../set-locale-Cam8nRIW.cjs"),p=require("../localized-decorator-SOrjcPab.cjs"),I=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const g=require("../calculate-data-item-icon-CjHO4KtA.cjs"),y=require("../localize-r7ALOUy_.cjs"),D=":host{--var: blue}:host{font-family:var(--luzmo-font-family)}";var z=Object.defineProperty,b=Object.getOwnPropertyDescriptor,c=(h,a,i,l)=>{for(var t=l>1?void 0:l?b(a,i):a,o=h.length-1,s;o>=0;o--)(s=h[o])&&(t=(l?s(a,i,t):s(t))||t);return l&&t&&z(a,i,t),t};exports.LuzmoFilterDataItemPicker=class extends I.m(I.It,{validSizes:Object.values(I.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.hasLabel=!1,this.icons="only-menu",this.allowEmpty=!1,this.placeholder="",this.dataItemId="",this.loading=!1,this.invalid=!1,this.datasetsDataItems=[]}static get styles(){return[e.r(D)]}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("data-item-selected",{bubbles:!0,composed:!0,cancelable:!0,detail:{dataItem:this._dataItemSelected}}))}setDataItem(a){const i=a==null?void 0:a.detail;for(const l of this.datasetsDataItems){const t=l.columns,o=l.formulas,s=t.find(u=>u.id===i),n=u=>{this._dataItemSelected=u,this.dataItemId=i,this._sendChangeEvent()};if(s){n(s);break}const r=o.find(u=>u.id===i);if(r){n(r);break}}}_findDataItemInDatasetsDataItems(a){for(const i of this.datasetsDataItems){const l=i.columns,t=i.formulas,o=l==null?void 0:l.find(n=>n.id===a);if(o){this._dataItemSelected=o,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(o.type??"")&&(this._dataItemSelected.lowestLevel=o.lowestLevel);break}const s=t==null?void 0:t.find(n=>n.id===a);if(s){this._dataItemSelected=s,this._dataItemSelected.isFormula=!0,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(s.type??"")&&(this._dataItemSelected.lowestLevel=s.lowestLevel);break}}}willUpdate(a){var o,s,n;const i=a.has("language"),l=a.has("dataItemId"),t=a.has("datasetsDataItems");if(i&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language),(l||t)&&(this._findDataItemInDatasetsDataItems(this.dataItemId),!this._dataItemSelected&&!this.allowEmpty&&!this.loading)){for(const r of this.datasetsDataItems)if(((o=r==null?void 0:r.columns)==null?void 0:o.length)>0){this._dataItemSelected=r.columns[0];break}else if(((s=r==null?void 0:r.formulas)==null?void 0:s.length)>0){this._dataItemSelected=r.formulas[0];break}this.dataItemId=(n=this._dataItemSelected)==null?void 0:n.id,this._sendChangeEvent()}}render(){let a=e.x``;for(const t of this.datasetsDataItems??[]){const o=(t==null?void 0:t.columns)??[],s=(t==null?void 0:t.formulas)??[],n=m=>{const f=e.x`
20
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../index-j8UKjHqY.cjs");require("../index-DSQyBS9Z.cjs");require("../index-CHFwXYcm.cjs");require("../index-EXO-Hsj2.cjs");const e=require("../property-BCb4Kybn.cjs"),d=require("../set-locale-Cam8nRIW.cjs"),p=require("../localized-decorator-SOrjcPab.cjs"),I=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const g=require("../calculate-data-item-icon-C_3QUGmB.cjs"),y=require("../localize-r7ALOUy_.cjs"),D=":host{--var: blue}:host{font-family:var(--luzmo-font-family)}";var z=Object.defineProperty,b=Object.getOwnPropertyDescriptor,c=(h,a,i,l)=>{for(var t=l>1?void 0:l?b(a,i):a,o=h.length-1,s;o>=0;o--)(s=h[o])&&(t=(l?s(a,i,t):s(t))||t);return l&&t&&z(a,i,t),t};exports.LuzmoFilterDataItemPicker=class extends I.m(I.It,{validSizes:Object.values(I.d$1)}){constructor(){super(...arguments),this.language="en",this.contentLanguage="en",this.hasLabel=!1,this.icons="only-menu",this.allowEmpty=!1,this.placeholder="",this.dataItemId="",this.loading=!1,this.invalid=!1,this.datasetsDataItems=[]}static get styles(){return[e.r(D)]}_sendChangeEvent(){this.dispatchEvent(new CustomEvent("data-item-selected",{bubbles:!0,composed:!0,cancelable:!0,detail:{dataItem:this._dataItemSelected}}))}setDataItem(a){const i=a==null?void 0:a.detail;for(const l of this.datasetsDataItems){const t=l.columns,o=l.formulas,s=t.find(u=>u.id===i),n=u=>{this._dataItemSelected=u,this.dataItemId=i,this._sendChangeEvent()};if(s){n(s);break}const r=o.find(u=>u.id===i);if(r){n(r);break}}}_findDataItemInDatasetsDataItems(a){for(const i of this.datasetsDataItems){const l=i.columns,t=i.formulas,o=l==null?void 0:l.find(n=>n.id===a);if(o){this._dataItemSelected=o,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(o.type??"")&&(this._dataItemSelected.lowestLevel=o.lowestLevel);break}const s=t==null?void 0:t.find(n=>n.id===a);if(s){this._dataItemSelected=s,this._dataItemSelected.isFormula=!0,this._dataItemSelected.datasetId=i.id,["hierarchy","datetime"].includes(s.type??"")&&(this._dataItemSelected.lowestLevel=s.lowestLevel);break}}}willUpdate(a){var o,s,n;const i=a.has("language"),l=a.has("dataItemId"),t=a.has("datasetsDataItems");if(i&&this.language!==d.getLocale()&&([...d.targetLocales].includes(this.language??"en")||this.language==="en")&&d.setLocale(this.language),(l||t)&&(this._findDataItemInDatasetsDataItems(this.dataItemId),!this._dataItemSelected&&!this.allowEmpty&&!this.loading)){for(const r of this.datasetsDataItems)if(((o=r==null?void 0:r.columns)==null?void 0:o.length)>0){this._dataItemSelected=r.columns[0];break}else if(((s=r==null?void 0:r.formulas)==null?void 0:s.length)>0){this._dataItemSelected=r.formulas[0];break}this.dataItemId=(n=this._dataItemSelected)==null?void 0:n.id,this._sendChangeEvent()}}render(){let a=e.x``;for(const t of this.datasetsDataItems??[]){const o=(t==null?void 0:t.columns)??[],s=(t==null?void 0:t.formulas)??[],n=m=>{const f=e.x`
21
21
  <luzmo-icon
22
22
  slot="icon"
23
23
  .size=${this.size}
@@ -26,7 +26,7 @@ import { g as b, t as y, s as I, m as z } from "../set-locale-DbEAMqUs.js";
26
26
  import { l as v } from "../localized-decorator-DNr1P1m0.js";
27
27
  import { m as x, b as S, I as w } from "../base-D76d76ww-BGkuhs54.js";
28
28
  import "../focusable-BxtpnzWp-DJQkL8Zv.js";
29
- import { c as _ } from "../calculate-data-item-icon-B9B0iLjm.js";
29
+ import { c as _ } from "../calculate-data-item-icon-BFpVWXnR.js";
30
30
  import { l as D } from "../localize-BX7q0S0M.js";
31
31
  const p = () => {
32
32
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
@@ -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";var In=Object.defineProperty;var Tn=(s,e,t)=>e in s?In(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var ii=(s,e,t)=>Tn(s,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../property-BCb4Kybn.cjs"),st=require("../state-BxZEcclm.cjs"),qt=require("../query-D5qWDopr.cjs"),Me=require("../luzmo-icons-B_3XTuMC.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-DSQyBS9Z.cjs");const kr=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const Nn=require("../query-all-CR2wWKRD.cjs"),Hn=require("../item-list.cjs"),si=require("../index-Vdyb9z2D.cjs"),ge=require("../set-locale-Cam8nRIW.cjs"),On=require("../localized-decorator-SOrjcPab.cjs");require("../index-CYeQkVeJ.cjs");const vi=Math.min,je=Math.max,It=Math.round,xt=Math.floor,ye=s=>({x:s,y:s}),Pn={left:"right",right:"left",bottom:"top",top:"bottom"},$n={start:"end",end:"start"};function Ti(s,e){return typeof s=="function"?s(e):s}function Je(s){return s.split("-")[0]}function jt(s){return s.split("-")[1]}function Bn(s){return s==="x"?"y":"x"}function Rr(s){return s==="y"?"height":"width"}function Oe(s){return["top","bottom"].includes(Je(s))?"y":"x"}function Sr(s){return Bn(Oe(s))}function Wn(s,e,t){t===void 0&&(t=!1);const i=jt(s),r=Sr(s),n=Rr(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Tt(o)),[o,Tt(o)]}function Gn(s){const e=Tt(s);return[wi(s),e,wi(e)]}function wi(s){return s.replace(/start|end/g,e=>$n[e])}function Fn(s,e,t){const i=["left","right"],r=["right","left"],n=["top","bottom"],o=["bottom","top"];switch(s){case"top":case"bottom":return t?e?r:i:e?i:r;case"left":case"right":return e?n:o;default:return[]}}function Un(s,e,t,i){const r=jt(s);let n=Fn(Je(s),t==="start",i);return r&&(n=n.map(o=>o+"-"+r),e&&(n=n.concat(n.map(wi)))),n}function Tt(s){return s.replace(/left|right|bottom|top/g,e=>Pn[e])}function qn(s){return{top:0,right:0,bottom:0,left:0,...s}}function jn(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Nt(s){const{x:e,y:t,width:i,height:r}=s;return{width:i,height:r,top:t,left:e,right:e+i,bottom:t+r,x:e,y:t}}function Ji(s,e,t){let{reference:i,floating:r}=s;const n=Oe(e),o=Sr(e),a=Rr(o),l=Je(e),d=n==="y",c=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let g;switch(l){case"top":g={x:c,y:i.y-r.height};break;case"bottom":g={x:c,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-r.width,y:h};break;default:g={x:i.x,y:i.y}}switch(jt(e)){case"start":g[o]-=u*(t&&d?-1:1);break;case"end":g[o]+=u*(t&&d?-1:1);break}return g}const Vn=async(s,e,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:o}=t,a=n.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:s,floating:e,strategy:r}),{x:c,y:h}=Ji(d,i,l),u=i,g={},m=0;for(let b=0;b<a.length;b++){const{name:y,fn:w}=a[b],{x:_,y:x,data:R,reset:A}=await w({x:c,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:g,rects:d,platform:o,elements:{reference:s,floating:e}});c=_??c,h=x??h,g={...g,[y]:{...g[y],...R}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(u=A.placement),A.rects&&(d=A.rects===!0?await o.getElementRects({reference:s,floating:e,strategy:r}):A.rects),{x:c,y:h}=Ji(d,u,l)),b=-1)}return{x:c,y:h,placement:u,strategy:r,middlewareData:g}};async function Yn(s,e){var t;e===void 0&&(e={});const{x:i,y:r,platform:n,rects:o,elements:a,strategy:l}=s,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:g=0}=Ti(e,s),m=jn(g),y=a[u?h==="floating"?"reference":"floating":h],w=Nt(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement(y)))==null||t?y:y.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),_=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),R=await(n.isElement==null?void 0:n.isElement(x))?await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1}:{x:1,y:1},A=Nt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:x,strategy:l}):_);return{top:(w.top-A.top+m.top)/R.y,bottom:(A.bottom-w.bottom+m.bottom)/R.y,left:(w.left-A.left+m.left)/R.x,right:(A.right-w.right+m.right)/R.x}}const Xn=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(e){var t,i;const{placement:r,middlewareData:n,rects:o,initialPlacement:a,platform:l,elements:d}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...y}=Ti(s,e);if((t=n.arrow)!=null&&t.alignmentOffset)return{};const w=Je(r),_=Oe(a),x=Je(a)===a,R=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!b?[Tt(a)]:Gn(a)),j=m!=="none";!u&&j&&A.push(...Un(a,b,m,R));const W=[a,...A],H=await Yn(e,y),G=[];let O=((i=n.flip)==null?void 0:i.overflows)||[];if(c&&G.push(H[w]),h){const I=Wn(r,o,R);G.push(H[I[0]],H[I[1]])}if(O=[...O,{placement:r,overflows:G}],!G.every(I=>I<=0)){var ue,$;const I=(((ue=n.flip)==null?void 0:ue.index)||0)+1,me=W[I];if(me&&(!(h==="alignment"?_!==Oe(me):!1)||O.every(Z=>Z.overflows[0]>0&&Oe(Z.placement)===_)))return{data:{index:I,overflows:O},reset:{placement:me}};let V=($=O.filter(fe=>fe.overflows[0]<=0).sort((fe,Z)=>fe.overflows[1]-Z.overflows[1])[0])==null?void 0:$.placement;if(!V)switch(g){case"bestFit":{var oe;const fe=(oe=O.filter(Z=>{if(j){const ae=Oe(Z.placement);return ae===_||ae==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(ae=>ae>0).reduce((ae,Ie)=>ae+Ie,0)]).sort((Z,ae)=>Z[1]-ae[1])[0])==null?void 0:oe[0];fe&&(V=fe);break}case"initialPlacement":V=a;break}if(r!==V)return{reset:{placement:V}}}return{}}}};async function Kn(s,e){const{placement:t,platform:i,elements:r}=s,n=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Je(t),a=jt(t),l=Oe(t)==="y",d=["left","top"].includes(o)?-1:1,c=n&&l?-1:1,h=Ti(e,s);let{mainAxis:u,crossAxis:g,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*c,y:u*d}:{x:u*d,y:g*c}}const Jn=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(e){var t,i;const{x:r,y:n,placement:o,middlewareData:a}=e,l=await Kn(e,s);return o===((t=a.offset)==null?void 0:t.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:o}}}}};function Vt(){return typeof window<"u"}function rt(s){return Ar(s)?(s.nodeName||"").toLowerCase():"#document"}function ie(s){var e;return(s==null||(e=s.ownerDocument)==null?void 0:e.defaultView)||window}function we(s){var e;return(e=(Ar(s)?s.ownerDocument:s.document)||window.document)==null?void 0:e.documentElement}function Ar(s){return Vt()?s instanceof Node||s instanceof ie(s).Node:!1}function de(s){return Vt()?s instanceof Element||s instanceof ie(s).Element:!1}function ve(s){return Vt()?s instanceof HTMLElement||s instanceof ie(s).HTMLElement:!1}function Zi(s){return!Vt()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof ie(s).ShadowRoot}function bt(s){const{overflow:e,overflowX:t,overflowY:i,display:r}=ce(s);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function Zn(s){return["table","td","th"].includes(rt(s))}function Yt(s){return[":popover-open",":modal"].some(e=>{try{return s.matches(e)}catch{return!1}})}function Ni(s){const e=Hi(),t=de(s)?ce(s):s;return["transform","translate","scale","rotate","perspective"].some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function Qn(s){let e=Re(s);for(;ve(e)&&!Ze(e);){if(Ni(e))return e;if(Yt(e))return null;e=Re(e)}return null}function Hi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(s){return["html","body","#document"].includes(rt(s))}function ce(s){return ie(s).getComputedStyle(s)}function Xt(s){return de(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Re(s){if(rt(s)==="html")return s;const e=s.assignedSlot||s.parentNode||Zi(s)&&s.host||we(s);return Zi(e)?e.host:e}function Cr(s){const e=Re(s);return Ze(e)?s.ownerDocument?s.ownerDocument.body:s.body:ve(e)&&bt(e)?e:Cr(e)}function ht(s,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Cr(s),n=r===((i=s.ownerDocument)==null?void 0:i.body),o=ie(r);if(n){const a=_i(o);return e.concat(o,o.visualViewport||[],bt(r)?r:[],a&&t?ht(a):[])}return e.concat(r,ht(r,[],t))}function _i(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Dr(s){const e=ce(s);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=ve(s),n=r?s.offsetWidth:t,o=r?s.offsetHeight:i,a=It(t)!==n||It(i)!==o;return a&&(t=n,i=o),{width:t,height:i,$:a}}function Oi(s){return de(s)?s:s.contextElement}function Ve(s){const e=Oi(s);if(!ve(e))return ye(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:n}=Dr(e);let o=(n?It(t.width):t.width)/i,a=(n?It(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eo=ye(0);function Lr(s){const e=ie(s);return!Hi()||!e.visualViewport?eo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function to(s,e,t){return e===void 0&&(e=!1),!t||e&&t!==ie(s)?!1:e}function $e(s,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=s.getBoundingClientRect(),n=Oi(s);let o=ye(1);e&&(i?de(i)&&(o=Ve(i)):o=Ve(s));const a=to(n,t,i)?Lr(n):ye(0);let l=(r.left+a.x)/o.x,d=(r.top+a.y)/o.y,c=r.width/o.x,h=r.height/o.y;if(n){const u=ie(n),g=i&&de(i)?ie(i):i;let m=u,b=_i(m);for(;b&&i&&g!==m;){const y=Ve(b),w=b.getBoundingClientRect(),_=ce(b),x=w.left+(b.clientLeft+parseFloat(_.paddingLeft))*y.x,R=w.top+(b.clientTop+parseFloat(_.paddingTop))*y.y;l*=y.x,d*=y.y,c*=y.x,h*=y.y,l+=x,d+=R,m=ie(b),b=_i(m)}}return Nt({width:c,height:h,x:l,y:d})}function Pi(s,e){const t=Xt(s).scrollLeft;return e?e.left+t:$e(we(s)).left+t}function Ir(s,e,t){t===void 0&&(t=!1);const i=s.getBoundingClientRect(),r=i.left+e.scrollLeft-(t?0:Pi(s,i)),n=i.top+e.scrollTop;return{x:r,y:n}}function io(s){let{elements:e,rect:t,offsetParent:i,strategy:r}=s;const n=r==="fixed",o=we(i),a=e?Yt(e.floating):!1;if(i===o||a&&n)return t;let l={scrollLeft:0,scrollTop:0},d=ye(1);const c=ye(0),h=ve(i);if((h||!h&&!n)&&((rt(i)!=="body"||bt(o))&&(l=Xt(i)),ve(i))){const g=$e(i);d=Ve(i),c.x=g.x+i.clientLeft,c.y=g.y+i.clientTop}const u=o&&!h&&!n?Ir(o,l,!0):ye(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:t.y*d.y-l.scrollTop*d.y+c.y+u.y}}function so(s){return Array.from(s.getClientRects())}function ro(s){const e=we(s),t=Xt(s),i=s.ownerDocument.body,r=je(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=je(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-t.scrollLeft+Pi(s);const a=-t.scrollTop;return ce(i).direction==="rtl"&&(o+=je(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:a}}function no(s,e){const t=ie(s),i=we(s),r=t.visualViewport;let n=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){n=r.width,o=r.height;const d=Hi();(!d||d&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:o,x:a,y:l}}function oo(s,e){const t=$e(s,!0,e==="fixed"),i=t.top+s.clientTop,r=t.left+s.clientLeft,n=ve(s)?Ve(s):ye(1),o=s.clientWidth*n.x,a=s.clientHeight*n.y,l=r*n.x,d=i*n.y;return{width:o,height:a,x:l,y:d}}function Qi(s,e,t){let i;if(e==="viewport")i=no(s,t);else if(e==="document")i=ro(we(s));else if(de(e))i=oo(e,t);else{const r=Lr(s);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Nt(i)}function Tr(s,e){const t=Re(s);return t===e||!de(t)||Ze(t)?!1:ce(t).position==="fixed"||Tr(t,e)}function ao(s,e){const t=e.get(s);if(t)return t;let i=ht(s,[],!1).filter(a=>de(a)&&rt(a)!=="body"),r=null;const n=ce(s).position==="fixed";let o=n?Re(s):s;for(;de(o)&&!Ze(o);){const a=ce(o),l=Ni(o);!l&&a.position==="fixed"&&(r=null),(n?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||bt(o)&&!l&&Tr(s,o))?i=i.filter(c=>c!==o):r=a,o=Re(o)}return e.set(s,i),i}function lo(s){let{element:e,boundary:t,rootBoundary:i,strategy:r}=s;const o=[...t==="clippingAncestors"?Yt(e)?[]:ao(e,this._c):[].concat(t),i],a=o[0],l=o.reduce((d,c)=>{const h=Qi(e,c,r);return d.top=je(h.top,d.top),d.right=vi(h.right,d.right),d.bottom=vi(h.bottom,d.bottom),d.left=je(h.left,d.left),d},Qi(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function co(s){const{width:e,height:t}=Dr(s);return{width:e,height:t}}function ho(s,e,t){const i=ve(e),r=we(e),n=t==="fixed",o=$e(s,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=ye(0);function d(){l.x=Pi(r)}if(i||!i&&!n)if((rt(e)!=="body"||bt(r))&&(a=Xt(e)),i){const g=$e(e,!0,n,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&d();n&&!i&&r&&d();const c=r&&!i&&!n?Ir(r,a):ye(0),h=o.left+a.scrollLeft-l.x-c.x,u=o.top+a.scrollTop-l.y-c.y;return{x:h,y:u,width:o.width,height:o.height}}function ri(s){return ce(s).position==="static"}function es(s,e){if(!ve(s)||ce(s).position==="fixed")return null;if(e)return e(s);let t=s.offsetParent;return we(s)===t&&(t=t.ownerDocument.body),t}function Nr(s,e){const t=ie(s);if(Yt(s))return t;if(!ve(s)){let r=Re(s);for(;r&&!Ze(r);){if(de(r)&&!ri(r))return r;r=Re(r)}return t}let i=es(s,e);for(;i&&Zn(i)&&ri(i);)i=es(i,e);return i&&Ze(i)&&ri(i)&&!Ni(i)?t:i||Qn(s)||t}const uo=async function(s){const e=this.getOffsetParent||Nr,t=this.getDimensions,i=await t(s.floating);return{reference:ho(s.reference,await e(s.floating),s.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mo(s){return ce(s).direction==="rtl"}const fo={convertOffsetParentRelativeRectToViewportRelativeRect:io,getDocumentElement:we,getClippingRect:lo,getOffsetParent:Nr,getElementRects:uo,getClientRects:so,getDimensions:co,getScale:Ve,isElement:de,isRTL:mo};function Hr(s,e){return s.x===e.x&&s.y===e.y&&s.width===e.width&&s.height===e.height}function go(s,e){let t=null,i;const r=we(s);function n(){var a;clearTimeout(i),(a=t)==null||a.disconnect(),t=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();const d=s.getBoundingClientRect(),{left:c,top:h,width:u,height:g}=d;if(a||e(),!u||!g)return;const m=xt(h),b=xt(r.clientWidth-(c+u)),y=xt(r.clientHeight-(h+g)),w=xt(c),x={rootMargin:-m+"px "+-b+"px "+-y+"px "+-w+"px",threshold:je(0,vi(1,l))||1};let R=!0;function A(j){const W=j[0].intersectionRatio;if(W!==l){if(!R)return o();W?o(!1,W):i=setTimeout(()=>{o(!1,1e-7)},1e3)}W===1&&!Hr(d,s.getBoundingClientRect())&&o(),R=!1}try{t=new IntersectionObserver(A,{...x,root:r.ownerDocument})}catch{t=new IntersectionObserver(A,x)}t.observe(s)}return o(!0),n}function ts(s,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=Oi(s),c=r||n?[...d?ht(d):[],...ht(e)]:[];c.forEach(w=>{r&&w.addEventListener("scroll",t,{passive:!0}),n&&w.addEventListener("resize",t)});const h=d&&a?go(d,t):null;let u=-1,g=null;o&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===d&&g&&(g.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),t()}),d&&!l&&g.observe(d),g.observe(e));let m,b=l?$e(s):null;l&&y();function y(){const w=$e(s);b&&!Hr(b,w)&&t(),b=w,m=requestAnimationFrame(y)}return t(),()=>{var w;c.forEach(_=>{r&&_.removeEventListener("scroll",t),n&&_.removeEventListener("resize",t)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const is=Jn,ss=Xn,rs=(s,e,t)=>{const i=new Map,r={platform:fo,...t},n={...r.platform,_c:i};return Vn(s,e,{...r,platform:n})},$i=(s,e)=>{let t="The dashboard component encountered an error";typeof(e==null?void 0:e.dashboardId)=="string"&&(t+=` for dashboard with id ${e.dashboardId}`),typeof(e==null?void 0:e.dashboardSlug)=="string"&&(t+=` for dashboard with slug ${e.dashboardSlug}`),typeof(e==null?void 0:e.container)=="string"&&(t+=` in container ${e.container}`),s&&(t+=`:
20
+ "use strict";var In=Object.defineProperty;var Tn=(s,e,t)=>e in s?In(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var ii=(s,e,t)=>Tn(s,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../property-BCb4Kybn.cjs"),st=require("../state-BxZEcclm.cjs"),qt=require("../query-D5qWDopr.cjs"),Me=require("../luzmo-icons-CP__dRRM.cjs");require("../index-C2PPSv8E.cjs");require("../index-CnpJUw_z.cjs");require("../index-DSQyBS9Z.cjs");const kr=require("../base-D76d76ww-tT6yr8eb.cjs");require("../focusable-BxtpnzWp-CkK9AeMt.cjs");const Nn=require("../query-all-CR2wWKRD.cjs"),Hn=require("../item-list.cjs"),si=require("../index-Vdyb9z2D.cjs"),ge=require("../set-locale-Cam8nRIW.cjs"),On=require("../localized-decorator-SOrjcPab.cjs");require("../index-CYeQkVeJ.cjs");const vi=Math.min,je=Math.max,It=Math.round,xt=Math.floor,ye=s=>({x:s,y:s}),Pn={left:"right",right:"left",bottom:"top",top:"bottom"},$n={start:"end",end:"start"};function Ti(s,e){return typeof s=="function"?s(e):s}function Je(s){return s.split("-")[0]}function jt(s){return s.split("-")[1]}function Bn(s){return s==="x"?"y":"x"}function Rr(s){return s==="y"?"height":"width"}function Oe(s){return["top","bottom"].includes(Je(s))?"y":"x"}function Sr(s){return Bn(Oe(s))}function Wn(s,e,t){t===void 0&&(t=!1);const i=jt(s),r=Sr(s),n=Rr(r);let o=r==="x"?i===(t?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Tt(o)),[o,Tt(o)]}function Gn(s){const e=Tt(s);return[wi(s),e,wi(e)]}function wi(s){return s.replace(/start|end/g,e=>$n[e])}function Fn(s,e,t){const i=["left","right"],r=["right","left"],n=["top","bottom"],o=["bottom","top"];switch(s){case"top":case"bottom":return t?e?r:i:e?i:r;case"left":case"right":return e?n:o;default:return[]}}function Un(s,e,t,i){const r=jt(s);let n=Fn(Je(s),t==="start",i);return r&&(n=n.map(o=>o+"-"+r),e&&(n=n.concat(n.map(wi)))),n}function Tt(s){return s.replace(/left|right|bottom|top/g,e=>Pn[e])}function qn(s){return{top:0,right:0,bottom:0,left:0,...s}}function jn(s){return typeof s!="number"?qn(s):{top:s,right:s,bottom:s,left:s}}function Nt(s){const{x:e,y:t,width:i,height:r}=s;return{width:i,height:r,top:t,left:e,right:e+i,bottom:t+r,x:e,y:t}}function Ji(s,e,t){let{reference:i,floating:r}=s;const n=Oe(e),o=Sr(e),a=Rr(o),l=Je(e),d=n==="y",c=i.x+i.width/2-r.width/2,h=i.y+i.height/2-r.height/2,u=i[a]/2-r[a]/2;let g;switch(l){case"top":g={x:c,y:i.y-r.height};break;case"bottom":g={x:c,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:h};break;case"left":g={x:i.x-r.width,y:h};break;default:g={x:i.x,y:i.y}}switch(jt(e)){case"start":g[o]-=u*(t&&d?-1:1);break;case"end":g[o]+=u*(t&&d?-1:1);break}return g}const Vn=async(s,e,t)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:o}=t,a=n.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e));let d=await o.getElementRects({reference:s,floating:e,strategy:r}),{x:c,y:h}=Ji(d,i,l),u=i,g={},m=0;for(let b=0;b<a.length;b++){const{name:y,fn:w}=a[b],{x:_,y:x,data:R,reset:A}=await w({x:c,y:h,initialPlacement:i,placement:u,strategy:r,middlewareData:g,rects:d,platform:o,elements:{reference:s,floating:e}});c=_??c,h=x??h,g={...g,[y]:{...g[y],...R}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(u=A.placement),A.rects&&(d=A.rects===!0?await o.getElementRects({reference:s,floating:e,strategy:r}):A.rects),{x:c,y:h}=Ji(d,u,l)),b=-1)}return{x:c,y:h,placement:u,strategy:r,middlewareData:g}};async function Yn(s,e){var t;e===void 0&&(e={});const{x:i,y:r,platform:n,rects:o,elements:a,strategy:l}=s,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:u=!1,padding:g=0}=Ti(e,s),m=jn(g),y=a[u?h==="floating"?"reference":"floating":h],w=Nt(await n.getClippingRect({element:(t=await(n.isElement==null?void 0:n.isElement(y)))==null||t?y:y.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:d,rootBoundary:c,strategy:l})),_=h==="floating"?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,x=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),R=await(n.isElement==null?void 0:n.isElement(x))?await(n.getScale==null?void 0:n.getScale(x))||{x:1,y:1}:{x:1,y:1},A=Nt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:x,strategy:l}):_);return{top:(w.top-A.top+m.top)/R.y,bottom:(A.bottom-w.bottom+m.bottom)/R.y,left:(w.left-A.left+m.left)/R.x,right:(A.right-w.right+m.right)/R.x}}const Xn=function(s){return s===void 0&&(s={}),{name:"flip",options:s,async fn(e){var t,i;const{placement:r,middlewareData:n,rects:o,initialPlacement:a,platform:l,elements:d}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:u,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:b=!0,...y}=Ti(s,e);if((t=n.arrow)!=null&&t.alignmentOffset)return{};const w=Je(r),_=Oe(a),x=Je(a)===a,R=await(l.isRTL==null?void 0:l.isRTL(d.floating)),A=u||(x||!b?[Tt(a)]:Gn(a)),j=m!=="none";!u&&j&&A.push(...Un(a,b,m,R));const W=[a,...A],H=await Yn(e,y),G=[];let O=((i=n.flip)==null?void 0:i.overflows)||[];if(c&&G.push(H[w]),h){const I=Wn(r,o,R);G.push(H[I[0]],H[I[1]])}if(O=[...O,{placement:r,overflows:G}],!G.every(I=>I<=0)){var ue,$;const I=(((ue=n.flip)==null?void 0:ue.index)||0)+1,me=W[I];if(me&&(!(h==="alignment"?_!==Oe(me):!1)||O.every(Z=>Z.overflows[0]>0&&Oe(Z.placement)===_)))return{data:{index:I,overflows:O},reset:{placement:me}};let V=($=O.filter(fe=>fe.overflows[0]<=0).sort((fe,Z)=>fe.overflows[1]-Z.overflows[1])[0])==null?void 0:$.placement;if(!V)switch(g){case"bestFit":{var oe;const fe=(oe=O.filter(Z=>{if(j){const ae=Oe(Z.placement);return ae===_||ae==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(ae=>ae>0).reduce((ae,Ie)=>ae+Ie,0)]).sort((Z,ae)=>Z[1]-ae[1])[0])==null?void 0:oe[0];fe&&(V=fe);break}case"initialPlacement":V=a;break}if(r!==V)return{reset:{placement:V}}}return{}}}};async function Kn(s,e){const{placement:t,platform:i,elements:r}=s,n=await(i.isRTL==null?void 0:i.isRTL(r.floating)),o=Je(t),a=jt(t),l=Oe(t)==="y",d=["left","top"].includes(o)?-1:1,c=n&&l?-1:1,h=Ti(e,s);let{mainAxis:u,crossAxis:g,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof m=="number"&&(g=a==="end"?m*-1:m),l?{x:g*c,y:u*d}:{x:u*d,y:g*c}}const Jn=function(s){return s===void 0&&(s=0),{name:"offset",options:s,async fn(e){var t,i;const{x:r,y:n,placement:o,middlewareData:a}=e,l=await Kn(e,s);return o===((t=a.offset)==null?void 0:t.placement)&&(i=a.arrow)!=null&&i.alignmentOffset?{}:{x:r+l.x,y:n+l.y,data:{...l,placement:o}}}}};function Vt(){return typeof window<"u"}function rt(s){return Ar(s)?(s.nodeName||"").toLowerCase():"#document"}function ie(s){var e;return(s==null||(e=s.ownerDocument)==null?void 0:e.defaultView)||window}function we(s){var e;return(e=(Ar(s)?s.ownerDocument:s.document)||window.document)==null?void 0:e.documentElement}function Ar(s){return Vt()?s instanceof Node||s instanceof ie(s).Node:!1}function de(s){return Vt()?s instanceof Element||s instanceof ie(s).Element:!1}function ve(s){return Vt()?s instanceof HTMLElement||s instanceof ie(s).HTMLElement:!1}function Zi(s){return!Vt()||typeof ShadowRoot>"u"?!1:s instanceof ShadowRoot||s instanceof ie(s).ShadowRoot}function bt(s){const{overflow:e,overflowX:t,overflowY:i,display:r}=ce(s);return/auto|scroll|overlay|hidden|clip/.test(e+i+t)&&!["inline","contents"].includes(r)}function Zn(s){return["table","td","th"].includes(rt(s))}function Yt(s){return[":popover-open",":modal"].some(e=>{try{return s.matches(e)}catch{return!1}})}function Ni(s){const e=Hi(),t=de(s)?ce(s):s;return["transform","translate","scale","rotate","perspective"].some(i=>t[i]?t[i]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(i=>(t.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(t.contain||"").includes(i))}function Qn(s){let e=Re(s);for(;ve(e)&&!Ze(e);){if(Ni(e))return e;if(Yt(e))return null;e=Re(e)}return null}function Hi(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Ze(s){return["html","body","#document"].includes(rt(s))}function ce(s){return ie(s).getComputedStyle(s)}function Xt(s){return de(s)?{scrollLeft:s.scrollLeft,scrollTop:s.scrollTop}:{scrollLeft:s.scrollX,scrollTop:s.scrollY}}function Re(s){if(rt(s)==="html")return s;const e=s.assignedSlot||s.parentNode||Zi(s)&&s.host||we(s);return Zi(e)?e.host:e}function Cr(s){const e=Re(s);return Ze(e)?s.ownerDocument?s.ownerDocument.body:s.body:ve(e)&&bt(e)?e:Cr(e)}function ht(s,e,t){var i;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Cr(s),n=r===((i=s.ownerDocument)==null?void 0:i.body),o=ie(r);if(n){const a=_i(o);return e.concat(o,o.visualViewport||[],bt(r)?r:[],a&&t?ht(a):[])}return e.concat(r,ht(r,[],t))}function _i(s){return s.parent&&Object.getPrototypeOf(s.parent)?s.frameElement:null}function Dr(s){const e=ce(s);let t=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=ve(s),n=r?s.offsetWidth:t,o=r?s.offsetHeight:i,a=It(t)!==n||It(i)!==o;return a&&(t=n,i=o),{width:t,height:i,$:a}}function Oi(s){return de(s)?s:s.contextElement}function Ve(s){const e=Oi(s);if(!ve(e))return ye(1);const t=e.getBoundingClientRect(),{width:i,height:r,$:n}=Dr(e);let o=(n?It(t.width):t.width)/i,a=(n?It(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const eo=ye(0);function Lr(s){const e=ie(s);return!Hi()||!e.visualViewport?eo:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function to(s,e,t){return e===void 0&&(e=!1),!t||e&&t!==ie(s)?!1:e}function $e(s,e,t,i){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=s.getBoundingClientRect(),n=Oi(s);let o=ye(1);e&&(i?de(i)&&(o=Ve(i)):o=Ve(s));const a=to(n,t,i)?Lr(n):ye(0);let l=(r.left+a.x)/o.x,d=(r.top+a.y)/o.y,c=r.width/o.x,h=r.height/o.y;if(n){const u=ie(n),g=i&&de(i)?ie(i):i;let m=u,b=_i(m);for(;b&&i&&g!==m;){const y=Ve(b),w=b.getBoundingClientRect(),_=ce(b),x=w.left+(b.clientLeft+parseFloat(_.paddingLeft))*y.x,R=w.top+(b.clientTop+parseFloat(_.paddingTop))*y.y;l*=y.x,d*=y.y,c*=y.x,h*=y.y,l+=x,d+=R,m=ie(b),b=_i(m)}}return Nt({width:c,height:h,x:l,y:d})}function Pi(s,e){const t=Xt(s).scrollLeft;return e?e.left+t:$e(we(s)).left+t}function Ir(s,e,t){t===void 0&&(t=!1);const i=s.getBoundingClientRect(),r=i.left+e.scrollLeft-(t?0:Pi(s,i)),n=i.top+e.scrollTop;return{x:r,y:n}}function io(s){let{elements:e,rect:t,offsetParent:i,strategy:r}=s;const n=r==="fixed",o=we(i),a=e?Yt(e.floating):!1;if(i===o||a&&n)return t;let l={scrollLeft:0,scrollTop:0},d=ye(1);const c=ye(0),h=ve(i);if((h||!h&&!n)&&((rt(i)!=="body"||bt(o))&&(l=Xt(i)),ve(i))){const g=$e(i);d=Ve(i),c.x=g.x+i.clientLeft,c.y=g.y+i.clientTop}const u=o&&!h&&!n?Ir(o,l,!0):ye(0);return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-l.scrollLeft*d.x+c.x+u.x,y:t.y*d.y-l.scrollTop*d.y+c.y+u.y}}function so(s){return Array.from(s.getClientRects())}function ro(s){const e=we(s),t=Xt(s),i=s.ownerDocument.body,r=je(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=je(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let o=-t.scrollLeft+Pi(s);const a=-t.scrollTop;return ce(i).direction==="rtl"&&(o+=je(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:a}}function no(s,e){const t=ie(s),i=we(s),r=t.visualViewport;let n=i.clientWidth,o=i.clientHeight,a=0,l=0;if(r){n=r.width,o=r.height;const d=Hi();(!d||d&&e==="fixed")&&(a=r.offsetLeft,l=r.offsetTop)}return{width:n,height:o,x:a,y:l}}function oo(s,e){const t=$e(s,!0,e==="fixed"),i=t.top+s.clientTop,r=t.left+s.clientLeft,n=ve(s)?Ve(s):ye(1),o=s.clientWidth*n.x,a=s.clientHeight*n.y,l=r*n.x,d=i*n.y;return{width:o,height:a,x:l,y:d}}function Qi(s,e,t){let i;if(e==="viewport")i=no(s,t);else if(e==="document")i=ro(we(s));else if(de(e))i=oo(e,t);else{const r=Lr(s);i={x:e.x-r.x,y:e.y-r.y,width:e.width,height:e.height}}return Nt(i)}function Tr(s,e){const t=Re(s);return t===e||!de(t)||Ze(t)?!1:ce(t).position==="fixed"||Tr(t,e)}function ao(s,e){const t=e.get(s);if(t)return t;let i=ht(s,[],!1).filter(a=>de(a)&&rt(a)!=="body"),r=null;const n=ce(s).position==="fixed";let o=n?Re(s):s;for(;de(o)&&!Ze(o);){const a=ce(o),l=Ni(o);!l&&a.position==="fixed"&&(r=null),(n?!l&&!r:!l&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||bt(o)&&!l&&Tr(s,o))?i=i.filter(c=>c!==o):r=a,o=Re(o)}return e.set(s,i),i}function lo(s){let{element:e,boundary:t,rootBoundary:i,strategy:r}=s;const o=[...t==="clippingAncestors"?Yt(e)?[]:ao(e,this._c):[].concat(t),i],a=o[0],l=o.reduce((d,c)=>{const h=Qi(e,c,r);return d.top=je(h.top,d.top),d.right=vi(h.right,d.right),d.bottom=vi(h.bottom,d.bottom),d.left=je(h.left,d.left),d},Qi(e,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function co(s){const{width:e,height:t}=Dr(s);return{width:e,height:t}}function ho(s,e,t){const i=ve(e),r=we(e),n=t==="fixed",o=$e(s,!0,n,e);let a={scrollLeft:0,scrollTop:0};const l=ye(0);function d(){l.x=Pi(r)}if(i||!i&&!n)if((rt(e)!=="body"||bt(r))&&(a=Xt(e)),i){const g=$e(e,!0,n,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else r&&d();n&&!i&&r&&d();const c=r&&!i&&!n?Ir(r,a):ye(0),h=o.left+a.scrollLeft-l.x-c.x,u=o.top+a.scrollTop-l.y-c.y;return{x:h,y:u,width:o.width,height:o.height}}function ri(s){return ce(s).position==="static"}function es(s,e){if(!ve(s)||ce(s).position==="fixed")return null;if(e)return e(s);let t=s.offsetParent;return we(s)===t&&(t=t.ownerDocument.body),t}function Nr(s,e){const t=ie(s);if(Yt(s))return t;if(!ve(s)){let r=Re(s);for(;r&&!Ze(r);){if(de(r)&&!ri(r))return r;r=Re(r)}return t}let i=es(s,e);for(;i&&Zn(i)&&ri(i);)i=es(i,e);return i&&Ze(i)&&ri(i)&&!Ni(i)?t:i||Qn(s)||t}const uo=async function(s){const e=this.getOffsetParent||Nr,t=this.getDimensions,i=await t(s.floating);return{reference:ho(s.reference,await e(s.floating),s.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mo(s){return ce(s).direction==="rtl"}const fo={convertOffsetParentRelativeRectToViewportRelativeRect:io,getDocumentElement:we,getClippingRect:lo,getOffsetParent:Nr,getElementRects:uo,getClientRects:so,getDimensions:co,getScale:Ve,isElement:de,isRTL:mo};function Hr(s,e){return s.x===e.x&&s.y===e.y&&s.width===e.width&&s.height===e.height}function go(s,e){let t=null,i;const r=we(s);function n(){var a;clearTimeout(i),(a=t)==null||a.disconnect(),t=null}function o(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),n();const d=s.getBoundingClientRect(),{left:c,top:h,width:u,height:g}=d;if(a||e(),!u||!g)return;const m=xt(h),b=xt(r.clientWidth-(c+u)),y=xt(r.clientHeight-(h+g)),w=xt(c),x={rootMargin:-m+"px "+-b+"px "+-y+"px "+-w+"px",threshold:je(0,vi(1,l))||1};let R=!0;function A(j){const W=j[0].intersectionRatio;if(W!==l){if(!R)return o();W?o(!1,W):i=setTimeout(()=>{o(!1,1e-7)},1e3)}W===1&&!Hr(d,s.getBoundingClientRect())&&o(),R=!1}try{t=new IntersectionObserver(A,{...x,root:r.ownerDocument})}catch{t=new IntersectionObserver(A,x)}t.observe(s)}return o(!0),n}function ts(s,e,t,i){i===void 0&&(i={});const{ancestorScroll:r=!0,ancestorResize:n=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=Oi(s),c=r||n?[...d?ht(d):[],...ht(e)]:[];c.forEach(w=>{r&&w.addEventListener("scroll",t,{passive:!0}),n&&w.addEventListener("resize",t)});const h=d&&a?go(d,t):null;let u=-1,g=null;o&&(g=new ResizeObserver(w=>{let[_]=w;_&&_.target===d&&g&&(g.unobserve(e),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var x;(x=g)==null||x.observe(e)})),t()}),d&&!l&&g.observe(d),g.observe(e));let m,b=l?$e(s):null;l&&y();function y(){const w=$e(s);b&&!Hr(b,w)&&t(),b=w,m=requestAnimationFrame(y)}return t(),()=>{var w;c.forEach(_=>{r&&_.removeEventListener("scroll",t),n&&_.removeEventListener("resize",t)}),h==null||h(),(w=g)==null||w.disconnect(),g=null,l&&cancelAnimationFrame(m)}}const is=Jn,ss=Xn,rs=(s,e,t)=>{const i=new Map,r={platform:fo,...t},n={...r.platform,_c:i};return Vn(s,e,{...r,platform:n})},$i=(s,e)=>{let t="The dashboard component encountered an error";typeof(e==null?void 0:e.dashboardId)=="string"&&(t+=` for dashboard with id ${e.dashboardId}`),typeof(e==null?void 0:e.dashboardSlug)=="string"&&(t+=` for dashboard with slug ${e.dashboardSlug}`),typeof(e==null?void 0:e.container)=="string"&&(t+=` in container ${e.container}`),s&&(t+=`:
21
21
  ${s}`,console.warn(t))},po=s=>{let e=!1,t="";const r=(document.body||document.documentElement).style,n={svg:!!("createElementNS"in document&&document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect),flexbox:r.webkitFlexWrap===""||r.flexWrap==="",postMessage:!!window.postMessage},o=["svg","flexbox","postMessage"];for(const c of o)n[c]||(e=!0,s.browserNotSupported=s.browserNotSupported||[],s.browserNotSupported.push(c),t+=`Your browser does not support: ${c}
22
22
  `);const a=window.navigator.userAgent,l=a.includes("MSIE"),d=a.includes("Trident/");(l||d)&&(e=!0,t="IE is not supported."),e&&$i(t)},ne={appServer:"https://app.luzmo.com/",apiHost:"https://api.luzmo.com/",dashboardId:null,dashboardSlug:null,container:null,key:null,token:null,language:"auto",editorLanguage:"auto",qeVersion:null,editMode:null,screenMode:null,switchScreenModeOnResize:!0,itemId:null,theme:"",mainColor:"",accentColor:"",itemDimensions:{width:"auto",height:"auto"},loaderBackground:"#f9f9f9",loaderFontColor:"#5a5a5a",loaderSpinnerColor:"rgba(255, 165, 0, 0.7)",loaderSpinnerBackground:"rgba(169, 169, 169, 0.14)",timezoneId:null,contextId:null},Or=[{mode:"mobile",width:[150,767]},{mode:"tablet",width:[768,1199]},{mode:"desktop",width:[1200,1599]},{mode:"largeScreen",width:[1600,9999]},{mode:"fixed",width:[]}],ns={initializing:{en:"Initializing...",nl:"Laden...",fr:"Chargement...",de:"Initialisiere...",es:"Inicializando..."}},lt=s=>s?s.endsWith("/")?s:`${s}/`:"",Ee=s=>s?s.endsWith("/")?s.slice(0,-1):s:"",bo=(s,e,t,i)=>{var a;const r=(l,d)=>{var b;const c=l.users.find(y=>y.id===d.id),h=c&&c.userAccessRight?{flagRead:c.userAccessRight.flagRead,flagUse:c.userAccessRight.flagUse,flagModify:c.userAccessRight.flagModify,flagOwn:c.userAccessRight.flagOwn}:{flagRead:!1,flagUse:!1,flagModify:!1,flagOwn:!1},g=l.groups.filter(y=>d.userGroups.includes(y.id)||y.public===!0).map(y=>{if(y.groupAccessRight)return y.groupAccessRight});for(const y of g)!h.flagRead&&y.flagRead&&(h.flagRead=y.flagRead),!h.flagUse&&y.flagUse&&(h.flagUse=y.flagUse),!h.flagModify&&y.flagModify&&(h.flagModify=y.flagModify),!h.flagOwn&&y.flagOwn&&(h.flagOwn=y.flagOwn);const m=((b=l.integrations)==null?void 0:b.length)>0?l.integrations.map(y=>{if(y.integrationAccessRight)return y.integrationAccessRight}):[];for(const y of m)!h.flagRead&&y.flagRead&&(h.flagRead=y.flagRead),!h.flagUse&&y.flagUse&&(h.flagUse=y.flagUse),!h.flagModify&&y.flagModify&&(h.flagModify=y.flagModify);return h},n=(l,d)=>{if(l==null)return"";if(typeof l!="object"||Object.keys(l).length===0)return typeof l=="object"&&Object.keys(l).length===0?"":l;let c;return c=d&&l[d]?l[d]:l[Object.keys(l)[0]],c==null&&(c=""),c},o=[];for(const l of s){const d={accessibleBy:[],accessRights:r(l,t),id:l.id,modifiedAt:l.modified_at,name:n(l.name,i.language),slug:null,tags:l.tags.map(m=>m.tag).sort((m,b)=>m.localeCompare(b))},c=l.integrations.find(m=>m.id===e);(a=c==null?void 0:c.integrationAccessRight)!=null&&a.slug&&(d.slug=c.integrationAccessRight.slug);const h=l.users.map(m=>({model:"User",id:m.id,name:n(m.name,t.locale_id)})),u=l.groups.map(m=>({model:"Group",id:m.id,name:n(m.name,t.locale_id)||{}})),g=l.integrations.map(m=>({model:"Integration",id:m.id,name:n(m.name,t.locale_id)||{}}));d.accessibleBy=[...h,...u,...g],o.push(d)}return o},yo="0.0.0-unknown-luzmo",vo=s=>{const e=/^(%20|\s)*(javascript|data)/im,t=/[^\u0020-\u007E]/gim,i=/^([^:]+):/gm,r=new Set([".","/"]),n=d=>r.has(d[0]);if(!s)return"about:blank";const o=s.replaceAll(t,"").trim();if(n(o))return o;const a=o.match(i);if(!a)return o;const l=a[0];return e.test(l)?"about:blank":o},os=s=>JSON.parse(JSON.stringify(s)),wo=s=>s&&typeof s=="object",xi=(s,e)=>(Object.entries(e).forEach(([t,i])=>{t in s?s[t]===void 0?s[t]=i:s[t]=wo(i)?xi(s[t],i):s[t]:s[t]=i}),s),We=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replaceAll(/[xy]/g,function(s){const e=Math.random()*16|0;return(s=="x"?e:e&3|8).toString(16)}),as=s=>{const e=[],{appServer:t,language:i,editorLanguage:r,qeVersion:n,loaderBackground:o,loaderSpinnerColor:a,loaderSpinnerBackground:l,loaderFontColor:d,screenMode:c,key:h,token:u,timezoneId:g,itemEmbedding:m,itemDimensions:b,dashboardId:y,dashboardSlug:w,itemId:_,theme:x,mainColor:R,accentColor:A,editMode:j}=s.params;i&&i!=="auto"&&e.push(`language=${i}`),r&&r!=="auto"&&e.push(`editorLanguage=${r}`),n&&e.push(`qe_version=${n}`),o&&e.push(`ldrbg=${o}`),d&&e.push(`ldrftclr=${d}`),a&&e.push(`ldrspclr=${a}`),l&&e.push(`ldrspbg=${l}`),x&&e.push(`theme=${x}`),R&&e.push(`mainColor=${R}`),A&&e.push(`accentColor=${A}`),c&&c!=="auto"&&e.push("screenMode=&{screenMode}"),g&&e.push("timezoneId="+g),m&&b&&b.width&&e.push("width="+b.width),m&&b&&b.height&&e.push("height="+b.height),j&&e.push("editMode="+j);const W=h&&u?"#"+h+":"+u:"";e.push("version="+(s.libVersion||yo));const H=m?`${t}i/${y||w}/${_}?${encodeURIComponent(e.join("&"))}${W}`:`${t}i/${y||w}?${encodeURIComponent(e.join("&"))}${W}`;return vo(H)},ls=s=>{let e;(s.params.error||s.browserNotSupported.length>0)&&(s.params.error=!0,s.browserNotSupported&&(e="Browser is not supported."));const t=ns.initializing[s.params.language]||ns.initializing.en;return s.browserNotSupported||s.params.error?{loadingMsg:t,errorMsg:e}:{loadingMsg:t,errorMsg:""}};function Te(s,e,t){s.promises[e]&&(s.promises[e].resolve(t),delete s.promises[e])}function Et(s,e,t){s.promises[e]&&(s.promises[e].reject(t),delete s.promises[e])}function Pr(s){const e={};return s.params.loaderBackground&&!s.iframeLoaded&&(e.background=s.params.loaderBackground),e}function _o(s){var r;const e=((r=s.params.itemDimensions)==null?void 0:r.height)||ne.itemDimensions.height,t=s.params.itemEmbedding&&e!=="auto";return{display:s.iframeLoaded?"none":"",height:`${t?e:s.minHeight}px`}}function xo(s){var t,i;const e=s.params.loaderBackground||ne.loaderBackground;if(s.params.itemEmbedding){s.loaderSize=24,s.borderWidth=4,s.minHeight=200;const r=((t=s.params.itemDimensions)==null?void 0:t.width)||ne.itemDimensions.width,n=((i=s.params.itemDimensions)==null?void 0:i.height)||ne.itemDimensions.height,o=r!=="auto",a=n!=="auto";return{background:e,width:o?`${r}px`:"100%",height:`${a?n:"200"}px`,"min-height":a?"":"200px"}}return{background:e}}function Eo(s){const{loaderSpinnerColor:e,loaderSpinnerBackground:t}=ne,i=cs(s.borderWidth,s.params.loaderSpinnerColor||e),r=cs(s.borderWidth,s.params.loaderSpinnerBackground||t),n=`${s.loaderSize}px`;return{"border-top":i,"border-right":i,"border-bottom":r,"border-left":r,width:n,height:n}}function zo(s){var n;const e=((n=s.params.itemDimensions)==null?void 0:n.height)||ne.itemDimensions.height,t=s.params.itemEmbedding&&e!=="auto",i=o=>`${(o-s.loaderSize-32)/2}px`;return{padding:`${s.params.itemId?i(t?Number.parseInt(`${e}`,10):s.minHeight):"128px"} 16px`}}function ds(s){var r,n;const e=((r=s.params.itemDimensions)==null?void 0:r.height)||ne.itemDimensions.height,t=((n=s.params.itemDimensions)==null?void 0:n.width)||ne.itemDimensions.width;s.params.itemEmbedding&&e!=="auto"?s.iframeHeight=`${e}px`:s.params.itemEmbedding?s.iframeHeight="200px":["editFull","editLimited"].includes(s.params.editMode)?s.iframeHeight="100%":s.iframeHeight="400px",s.iframeWidth=s.params.itemEmbedding&&t!=="auto"?`${t}px`:"100%";const i={height:s.iframeHeight,width:s.iframeWidth};return s.iframeLoaded?i.opacity=1:s.error?(i.opacity=1,i.width="100%",i.height="400px"):i.opacity=0,i}function cs(s,e){return`${s}px solid ${e}`}const Mo=(s,e)=>{s!=null&&s.contentWindow&&s.contentWindow.location.replace(e)},hs=(s,e,t)=>{const i=We();return e!=null&&e.contentWindow?(e.contentWindow.postMessage({action:"exportDashboard",format:t||"png",_version:s.libVersion,requestId:i},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n},setTimeout(()=>{if(s.promises[i]){const o="exportDashboard request timed out.";s.promises[i].reject(new Error(o)),delete s.promises[i]}},12e5)})):Promise.reject(new Error("Cannot retrieve contentWindow."))},ko=async s=>{if(await s.updateComplete,(s.currentAuthKey??s.authKey)&&(s.currentAuthToken??s.authToken)){const e=new Promise((t,i)=>{(()=>{try{window.fetch(`${lt(s.params.apiHost)}0.1.0/authorization`,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({action:"get",version:"0.1.0",key:s.currentAuthKey??s.authKey,token:s.currentAuthToken??s.authToken,find:{where:{id:s.authKey},attributes:["id","integration_id"],include:[{model:"User",attributes:["id","name","locale_id"],include:[{model:"Group"}]}]}})}).then(n=>n.json()).then(n=>{!n||!n.rows||n.rows.length===0||!n.rows[0].user?i("Authorization failed, please check authKey and authToken. If the problem persists, please contact support@luzmo.com."):(n.rows[0].user.userGroups=n.rows[0].user.groups.map(o=>o.id),delete n.rows[0].user.groups,t({integrationId:n.rows[0].integration_id,user:n.rows[0].user}))})}catch(r){i(r)}})()});return new Promise((t,i)=>void(()=>{try{e.then(r=>{window.fetch(`${lt(s.params.apiHost)}0.1.0/securable`,{method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},redirect:"follow",body:JSON.stringify({action:"get",version:"0.1.0",key:s.currentAuthKey??s.authKey,token:s.currentAuthToken??s.authToken,find:{where:{type:"dashboard",is_variant:!1},attributes:["id","name","modified_at"],order:[["modified_at","desc"]],include:[{model:"Tag",attributes:["tag"]},{model:"User",attributes:["id","name"]},{model:"Group",attributes:["id","name","public"]},{model:"Integration",attributes:["id","name"]}]}})}).then(o=>o.json()).then(o=>{const a=o.rows.length>0?bo(o.rows,r.integrationId,r.user,s):[];t(a)})}).catch(r=>{i(r)})}catch(r){i(r)}})())}throw new Error("No authKey or authToken found in the luzmo-dashboard component.")},Ro=(s,e,t)=>{if(e!=null&&e.contentWindow){const i=We();return e.contentWindow.postMessage({action:"getData",id:t,_version:s.libVersion,requestId:i},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n},setTimeout(()=>{if(s.promises[i]){const o="getData request timed out.";s.promises[i].reject(new Error(o)),delete s.promises[i]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))},So=(s,e)=>{if(e!=null&&e.contentWindow){const t=We();return e.contentWindow.postMessage({action:"getFilters",_version:s.libVersion,requestId:t},"*"),new Promise((i,r)=>{s.promises[t]={resolve:i,reject:r},setTimeout(()=>{if(s.promises[t]){const n="getFilters request timed out.";s.promises[t].reject(new Error(n)),delete s.promises[t]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))},us=(s,e,t)=>e?(e.contentWindow.postMessage({action:"refreshData",id:t??null,_version:s.libVersion},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow.")),Ao=(s,e)=>e?(e.contentWindow.postMessage({action:"reloadDashboard",_version:s.libVersion},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow.")),Co=(s,e,t,i)=>e?(e.contentWindow.postMessage({action:"setAuthorization",key:t,token:i,_version:s.libVersion},"*"),Promise.resolve()):Promise.reject(new Error("Cannot retrieve contentWindow.")),Do=(s,e,t)=>{if(e&&e.contentWindow){const i=We();return s.params.editMode===t?Promise.reject(new Error("editMode parameter is currently already set to "+t)):t!=="editFull"&&t!=="editLimited"&&t!=="view"?Promise.reject(new Error("The editMode parameter must be one of the following values: 'editFull', 'editLimited' or 'view'.")):(e.contentWindow.postMessage({action:"setEditMode",editMode:t,_version:s.libVersion,requestId:i},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n}}))}return Promise.reject(new Error("Cannot retrieve contentWindow."))},Lo=(s,e,t,i)=>{if(e){const r=We();return e.contentWindow.postMessage({action:"setSelectedData",itemId:t,filters:i,_version:s.libVersion,requestId:r},"*"),new Promise((n,o)=>{s.promises[r]={resolve:n,reject:o},setTimeout(()=>{if(s.promises[r]){const a="setSelectedData request timed out.";s.promises[r].reject(new Error(a)),delete s.promises[r]}},2e3)})}return Promise.reject()},Io=(s,e,t)=>{if(e){const i=We();return e.contentWindow.postMessage({action:"setPreview",preview:t,requestId:i,_version:s.libVersion},"*"),new Promise((r,n)=>{s.promises[i]={resolve:r,reject:n},setTimeout(()=>{if(s.promises[i]){const o="setPreview request timed out.";s.promises[i].reject(new Error(o)),delete s.promises[i]}},2e3)})}return Promise.reject(new Error("Cannot retrieve contentWindow."))},dt=s=>{var l,d,c,h,u,g,m,b;if(!s.dimensions){s.params.error=!0,$i("Got no valid dimensions.",s.params);return}const e=Object.keys(s.dimensions),t=[];let i,r=0,n=0;if(!s.params.switchScreenModeOnResize&&s.currentScreenMode&&(s.params.screenMode=s.currentScreenMode),s.dimensions&&(e==null?void 0:e[0])==="fixed")i="fixed",r=s.dimensions.fixed[0],n=s.dimensions.fixed[1];else{const y=["mobile","tablet","desktop","largeScreen"];if(s.params.itemEmbedding){const[w]=e;let _=os(w);for(const x of y){const R=e.find(A=>A===x);R?_=os(R):s.dimensions[x]=s.dimensions[_]}}for(const w of e)if(y.includes(w)){const _=Or.find(x=>x.mode===w);t.push({..._,height:s.dimensions[w][1]||50})}if(t.map(w=>w.mode).includes(s.params.screenMode)||(s.params.screenMode="auto"),s.params.screenMode==="auto"){t.sort((w,_)=>y.indexOf(w.mode)-y.indexOf(_.mode));for(const w of t){const[_,x]=w.width;s.params.itemEmbedding&&s.params.itemDimensions&&s.params.itemDimensions.width!=="auto"&&s.params.itemDimensions.height==="auto"?_<s.params.itemDimensions.width&&(i=w.mode,r=Number.parseInt(s.params.itemDimensions.width,10),n=s.dimensions[i][1]):_<s.containerWidth&&(i=w.mode,s.params.itemEmbedding?(r=(l=s.params.itemDimensions)!=null&&l.width&&((d=s.params.itemDimensions)==null?void 0:d.width)!=="auto"?Number.parseInt(s.params.itemDimensions.width,10):Math.min(s.containerWidth,x),n=(c=s.params.itemDimensions)!=null&&c.height&&((h=s.params.itemDimensions)==null?void 0:h.height)!=="auto"?Number.parseInt(s.params.itemDimensions.height,10):s.dimensions[i][1],s.params.itemDimensions&&s.params.itemDimensions.width!=="auto"&&s.params.itemDimensions.height==="auto"&&(r=Number.parseInt(s.params.itemDimensions.width,10),n=s.dimensions[i][1])):(r=Math.max(Math.min(x,s.containerWidth),_),n=w.height))}}else{const{height:w,width:[_,x]}=t.find(R=>R.mode===s.params.screenMode);i=s.params.screenMode,r=Math.max(Math.min(x,s.containerWidth),_),n=w,s.params.itemEmbedding&&((u=s.params.itemDimensions)!=null&&u.width&&((g=s.params.itemDimensions)==null?void 0:g.width)!=="auto"&&(r=Number.parseInt(s.params.itemDimensions.width,10)),(m=s.params.itemDimensions)!=null&&m.height&&((b=s.params.itemDimensions)==null?void 0:b.height)!=="auto"&&(n=Number.parseInt(s.params.itemDimensions.height,10)))}if(!i&&t.length>0){const[w]=t;i=w.mode,r=w.width[0],n=w.height}}s.currentScreenMode=i;const o={height:n===0?"100%":`${String(n)}px`,width:r===0?"100%":`${String(r)}px`,opacity:1};["editFull","editLimited"].includes(s.params.editMode)?(o.height="100%",o.width="100%"):s.params.itemEmbedding&&s.params.itemDimensions?(o.height=s.params.itemDimensions.height==="auto"?o.height:`${String(s.params.itemDimensions.height).replace("px","")}px`,o.width=s.params.itemDimensions.width==="auto"?o.width:`${String(s.params.itemDimensions.width).replace("px","")}px`):(o.height=n===0?"100%":`${String(n)}px`,o.width=r===0?"100%":`${String(r)}px`),s.currentScreenMode=i,s.iframeStyle=o},ms=s=>{const e=Object.keys(ne),t=[],i=["appServer","language","apiHost"],r=["key","token","screenMode","timezoneId","itemId","container","loaderBackground","loaderFontColor","loaderSpinnerColor","loaderSpinnerBackground"],n=["itemDimensions"],o=["mobile","tablet","desktop","largeScreen","fixed","auto"];for(const a of e)s.params[a]===null&&delete s.params[a];s.params=xi(s.params,ne),(!s.params.dashboardId||typeof s.params.dashboardId!="string")&&(!s.params.dashboardSlug||typeof s.params.dashboardSlug!="string")&&(delete s.params.dashboardId,delete s.params.dashboardSlug);for(const a of i)typeof s.params[a]!="string"&&(delete s.params[a],t.push(`${a} needs to be of type string.`));for(const a of r)typeof s.params[a]!="string"&&s.params[a]!==null&&s.params[a]!==void 0&&(delete s.params[a],t.push(`${a} needs to be of type string or empty.`));if(s.params.screenMode&&!o.includes(s.params.screenMode)){const a=o.map(l=>`"${l}"`).join(", ");t.push(`"screenMode" needs should be one of these types: ${a}`),s.params.screenMode="auto"}s.params.itemId&&(s.params.itemEmbedding=!0);for(const a of n)typeof s.params[a]!="object"&&s.params[a]!==null&&(delete s.params[a],t.push(`${a} needs to be of type object or empty.`));if(typeof s.params.switchScreenModeOnResize!="boolean"&&(t.push("switchScreenModeOnResize needs to be of type boolean."),s.params.switchScreenModeOnResize=!0),s.params.itemDimensions){const a=["width","height"];for(const l of a)!["string","number"].includes(typeof s.params.itemDimensions[l])&&s.params.itemDimensions[l]!==null&&t.push(`itemDimensions ${l} needs to be of type string, number or empty.`)}s.params=xi(s.params,ne),s.params.screenMode&&s.params.screenMode!=="auto"&&(s.params.switchScreenModeOnResize=!1),s.params.itemDimensions.width!=="auto"&&(s.params.itemDimensions.width=Number.parseInt(`${s.params.itemDimensions.width}`.replace("px",""),10)||"auto"),s.params.itemDimensions.height!=="auto"&&(s.params.itemDimensions.height=Number.parseInt(`${s.params.itemDimensions.height}`.replace("px",""),10)||"auto"),s.params.itemEmbedding=!!s.params.itemId,(s.params.error||t.length>0)&&$i(t.join(`
23
23
  `),s.params)},ni={type:"type",slots:"slots",options:"options",appServer:"app-server",apiHost:"api-host",authKey:"auth-key",authToken:"auth-token",contextId:"context-id",canFilter:"can-filter",filters:"filters",dashboardId:"dashboard-id",itemId:"item-id",dashboardContentsVersion:"dashboard-contents-version",libVersion:"lib-version"},Ei="luzmo-embed-container",ot={},To=async(s,e)=>{const t=typeof s=="function"?await s():s,i=document.createElement("script");i.type="text/javascript",i.addEventListener("load",e),i.src=t,document.querySelectorAll("head")[0].append(i)},fs=s=>({});async function No(s){const e=ot[s];if(e.inited)return e.lib;if(e.format==="var")return new Promise(t=>{const i=()=>{e.inited||(e.lib=window[s],e.lib.init(fs(e.from)),e.inited=!0),t(e.lib)};return To(e.url,i)});if(["esm","systemjs"].includes(e.format))return new Promise((t,i)=>{(typeof e.url=="function"?e.url:()=>Promise.resolve(e.url))().then(n=>{import(n).then(o=>{if(!e.inited){const a=fs(e.from);o.init(a),e.lib=o,e.lib.init(a),e.inited=!0}t(e.lib)}).catch(i)})})}function Ho(s,e){if(!(s!=null&&s.default)&&e){const t=Object.create(null);return t.default=s,t.__esModule=!0,t}return s}async function Oo(s,e){return No(s).then(t=>t.get(e).then(i=>i()))}async function Se(s,e="DashboardApp"){const t=s+e;if(ot[t])return ot[t].module;let i=`${Ee(s)}/remoteEntry.mjs`;if(!s.startsWith("http://localhost"))switch(e){case"DashboardApp":case"VizItemApp":{i=`${Ee(s)}/dashboard-app/remoteEntry.mjs`;break}case"IQApp":{i=`${Ee(s)}/iq-components/remoteEntry.mjs`;break}}ot[t]={url:i,format:"esm",from:"vite",module:void 0};const r=await Oo(t,`./${e}`),n=Ho(r,!0);return ot[t].module=n,n}/**
@@ -23,7 +23,7 @@ var oi = (i, e, t) => $o(i, typeof e != "symbol" ? e + "" : e, t);
23
23
  import { T as Wo, i as Vt, a as yt, x as D, n as y, r as _i, B as es } from "../property-Dn4zSyxu.js";
24
24
  import { r as rt } from "../state-vVJlsarL.js";
25
25
  import { e as Yt } from "../query-Ddbd72Um.js";
26
- import { c as Fo, a8 as Uo, ad as Go, a6 as jo, a4 as qo, ae as Vo, af as Yo, ag as Xo, a9 as Ko } from "../luzmo-icons-v9hKZ3HV.js";
26
+ import { i as Fo, ac as Uo, ah as Go, aa as jo, a8 as qo, ai as Vo, aj as Yo, ak as Xo, ad as Ko } from "../luzmo-icons-B2K7AcCF.js";
27
27
  import "../index-rQxtPaJl.js";
28
28
  import "../index-BHJH1eGn.js";
29
29
  import "../index-BC1LV3vH.js";