@luzmo/analytics-components-kit 1.0.1-alpha.145 → 1.0.1-alpha.146
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ai-chat/ai-chat.d.ts +6 -0
- package/components/ai-chat/index.cjs +1 -1
- package/components/ai-chat/index.js +1 -1
- package/components/ai-chat/request-contract.d.ts +1 -0
- package/components/{ai-chat-DreqkkBA.js → ai-chat-BEjlRutF.js} +6 -5
- package/components/{ai-chat-BGgOjOjv.cjs → ai-chat-BH0PuNwY.cjs} +2 -2
- package/components/index.cjs +1 -1
- package/components/index.js +2 -2
- package/components/item-data-picker-panel/index.cjs +1 -1
- package/components/item-data-picker-panel/index.js +1 -1
- package/components/slot-contents-picker/index.cjs +1 -1
- package/components/slot-contents-picker/index.js +1 -1
- package/components/{slot-contents-picker-vO7GDwhF.cjs → slot-contents-picker-CBxXz7nw.cjs} +10 -0
- package/components/{slot-contents-picker-G3JVFgG1.js → slot-contents-picker-DrDo62G7.js} +10 -0
- package/custom-elements.json +19 -0
- package/package.json +1 -1
|
@@ -92,6 +92,12 @@ export declare class LuzmoAiChat extends LuzmoElement {
|
|
|
92
92
|
* @default '0.1.0'
|
|
93
93
|
*/
|
|
94
94
|
apiVersion: string;
|
|
95
|
+
/**
|
|
96
|
+
* When true, uses NDJSON streaming for AI responses.
|
|
97
|
+
* When false, uses a single JSON response.
|
|
98
|
+
* @default true
|
|
99
|
+
*/
|
|
100
|
+
stream: boolean;
|
|
95
101
|
/**
|
|
96
102
|
* Loading message shown while generating and before progress steps are available.
|
|
97
103
|
* Only effective in external request mode; in internal mode, progress steps
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CdlBx8s9.cjs`),require(`../localized-mixin-BhUvOsd7.cjs`);const e=require(`../ai-chat-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CdlBx8s9.cjs`),require(`../localized-mixin-BhUvOsd7.cjs`);const e=require(`../ai-chat-BH0PuNwY.cjs`);require(`../dataset-icon-C0cID-ra.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../dataset-selector-list-DYsi3LBF.cjs`),require(`../dataset-selector-row-Qwz9WmR4.cjs`),require(`../ai-interaction-textarea-CcgFeoIg.cjs`),exports.LuzmoAiChat=e.t,exports.buildAiMessageRequest=e.n,exports.createInitialProgress=e.r,exports.fetchStreamingResponse=e.i,exports.hasProgressChunk=e.a,exports.readNdjsonStream=e.o;
|
|
@@ -27,7 +27,7 @@ import "../base-rg2x95aL.js";
|
|
|
27
27
|
import "../focus-visible-D1pJhWEh.js";
|
|
28
28
|
import "../set-locale-C3o6ooUV.js";
|
|
29
29
|
import "../localized-mixin-HngLqDZn.js";
|
|
30
|
-
import { a as hasProgressChunk, i as fetchStreamingResponse, n as buildAiMessageRequest, o as readNdjsonStream, r as createInitialProgress, t as LuzmoAiChat } from "../ai-chat-
|
|
30
|
+
import { a as hasProgressChunk, i as fetchStreamingResponse, n as buildAiMessageRequest, o as readNdjsonStream, r as createInitialProgress, t as LuzmoAiChat } from "../ai-chat-BEjlRutF.js";
|
|
31
31
|
import "../dataset-icon-DhF21dXC.js";
|
|
32
32
|
import "../data-broker-cLR-t5LM.js";
|
|
33
33
|
import "../dataset-selector-list-C5FvwP-r.js";
|
|
@@ -633,7 +633,7 @@ async function readNdjsonStream(e, t) {
|
|
|
633
633
|
}
|
|
634
634
|
var ai_chat_module_default = ":host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb),.08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-max-height:none;--ai-chat-messages-flex:1;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-error-message-color:var(--luzmo-danger,#dc3545)}";
|
|
635
635
|
function buildAiMessageRequest(e) {
|
|
636
|
-
let { prompt: t, datasetIds: n, authKey: r, authToken: i, conversationId: a, chart: o, modelPreference: s, apiVersion: c = "0.1.0" } = e;
|
|
636
|
+
let { prompt: t, datasetIds: n, authKey: r, authToken: i, conversationId: a, chart: o, modelPreference: s, apiVersion: c = "0.1.0", stream: l = !0 } = e;
|
|
637
637
|
return {
|
|
638
638
|
key: r,
|
|
639
639
|
token: i,
|
|
@@ -648,7 +648,7 @@ function buildAiMessageRequest(e) {
|
|
|
648
648
|
},
|
|
649
649
|
options: {
|
|
650
650
|
available_datasets: n,
|
|
651
|
-
stream:
|
|
651
|
+
stream: l,
|
|
652
652
|
...n.length > 0 ? { dataset_id: n[0] } : {},
|
|
653
653
|
...o && o.type !== "placeholder" ? { chart: {
|
|
654
654
|
...o,
|
|
@@ -663,7 +663,7 @@ function buildAiMessageRequest(e) {
|
|
|
663
663
|
}
|
|
664
664
|
var LuzmoAiChat = class extends LuzmoElement {
|
|
665
665
|
constructor(...e) {
|
|
666
|
-
super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.showAssistantContextMenu = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.flagOpendata = !1, this.hideDatasetButton = !1, this.modelPreference = "performance", this.requestMode = "internal", this.isGenerating = !1, this.conversationId = null, this.chart = null, this.apiVersion = "0.1.0", this.loadingMessage = null, this.initialPrompt = null, this.progress = null, this.progressCollapsed = !1, this._progress = null, this._progressCollapsed = !1, this._isGeneratingInternal = !1, this._textareaValue = "", this._abortController = null, this._inflightAiMessage = null, this._lastProcessedInitialPrompt = null, this._receivedProgress = !1;
|
|
666
|
+
super(...e), this.messages = [], this.selectedDatasets = [], this.placeholder = "Describe your change", this.disabled = !1, this.showAssistantContextMenu = !1, this.authKey = "", this.authToken = "", this.apiUrl = "https://api.luzmo.com", this.appServer = "https://app.luzmo.com", this.flagOpendata = !1, this.hideDatasetButton = !1, this.modelPreference = "performance", this.requestMode = "internal", this.isGenerating = !1, this.conversationId = null, this.chart = null, this.apiVersion = "0.1.0", this.stream = !0, this.loadingMessage = null, this.initialPrompt = null, this.progress = null, this.progressCollapsed = !1, this._progress = null, this._progressCollapsed = !1, this._isGeneratingInternal = !1, this._textareaValue = "", this._abortController = null, this._inflightAiMessage = null, this._lastProcessedInitialPrompt = null, this._receivedProgress = !1;
|
|
667
667
|
}
|
|
668
668
|
static {
|
|
669
669
|
this.styles = unsafeCSS(ai_chat_module_default);
|
|
@@ -683,7 +683,8 @@ var LuzmoAiChat = class extends LuzmoElement {
|
|
|
683
683
|
conversationId: this.conversationId,
|
|
684
684
|
chart: this.chart,
|
|
685
685
|
modelPreference: this.modelPreference,
|
|
686
|
-
apiVersion: this.apiVersion
|
|
686
|
+
apiVersion: this.apiVersion,
|
|
687
|
+
stream: this.stream
|
|
687
688
|
});
|
|
688
689
|
}
|
|
689
690
|
_finalizeInflightMessage() {
|
|
@@ -1086,7 +1087,7 @@ __decorate([property({ type: Array })], LuzmoAiChat.prototype, "messages", void
|
|
|
1086
1087
|
})], LuzmoAiChat.prototype, "chart", void 0), __decorate([property({
|
|
1087
1088
|
type: String,
|
|
1088
1089
|
attribute: "api-version"
|
|
1089
|
-
})], LuzmoAiChat.prototype, "apiVersion", void 0), __decorate([property({
|
|
1090
|
+
})], LuzmoAiChat.prototype, "apiVersion", void 0), __decorate([property({ converter: { fromAttribute: (e) => e !== "false" && e !== null } })], LuzmoAiChat.prototype, "stream", void 0), __decorate([property({
|
|
1090
1091
|
type: String,
|
|
1091
1092
|
attribute: "loading-message"
|
|
1092
1093
|
})], LuzmoAiChat.prototype, "loadingMessage", void 0), __decorate([property({
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* */
|
|
20
20
|
const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=require(`./decorate-Dq4-zbi1.cjs`);let r=require(`@lit/localize/lit-localize`),i=require(`@luzmo/icons`);require(`@luzmo/lucero/chat-message`),require(`@luzmo/lucero/progress-steps`);let a=require(`lit`),o=require(`lit/decorators.js`),s=require(`lit/directives/unsafe-html.js`);var{entries:c,setPrototypeOf:l,isFrozen:u,getPrototypeOf:d,getOwnPropertyDescriptor:ee}=Object,{freeze:f,seal:p,create:te}=Object,{apply:m,construct:h}=typeof Reflect<`u`&&Reflect;f||=function(e){return e},p||=function(e){return e},m||=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)},h||=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)};var ne=x(Array.prototype.forEach),re=x(Array.prototype.lastIndexOf),ie=x(Array.prototype.pop),g=x(Array.prototype.push),ae=x(Array.prototype.splice),oe=x(String.prototype.toLowerCase),se=x(String.prototype.toString),ce=x(String.prototype.match),_=x(String.prototype.replace),le=x(String.prototype.indexOf),ue=x(String.prototype.trim),v=x(Object.prototype.hasOwnProperty),y=x(RegExp.prototype.test),b=de(TypeError);function x(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return m(e,t,r)}}function de(e){return function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return h(e,n)}}function S(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:oe;l&&l(e,null);let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(u(t)||(t[r]=e),i=e)}e[i]=!0}return e}function fe(e){for(let t=0;t<e.length;t++)v(e,t)||(e[t]=null);return e}function C(e){let t=te(null);for(let[n,r]of c(e))v(e,n)&&(Array.isArray(r)?t[n]=fe(r):r&&typeof r==`object`&&r.constructor===Object?t[n]=C(r):t[n]=r);return t}function w(e,t){for(;e!==null;){let n=ee(e,t);if(n){if(n.get)return x(n.get);if(typeof n.value==`function`)return x(n.value)}e=d(e)}function n(){return null}return n}var pe=f(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),me=f(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),he=f([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),ge=f([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),_e=f(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ve=f([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),ye=f([`#text`]),be=f(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns.slot`.split(`.`)),xe=f(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),Se=f(`accent.accentunder.align.bevelled.close.columnsalign.columnlines.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lspace.lquote.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),T=f([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),Ce=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),E=p(/<%[\w\W]*|[\w\W]*%>/gm),D=p(/\$\{[\w\W]*/gm),O=p(/^data-[\-\w.\u00B7-\uFFFF]+$/),we=p(/^aria-[\-\w]+$/),Te=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ee=p(/^(?:\w+script|data):/i),De=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Oe=p(/^html$/i),ke=p(/^[a-z][.\w]*(-[.\w]+)+$/i),Ae=Object.freeze({__proto__:null,ARIA_ATTR:we,ATTR_WHITESPACE:De,CUSTOM_ELEMENT:ke,DATA_ATTR:O,DOCTYPE_NAME:Oe,ERB_EXPR:E,IS_ALLOWED_URI:Te,IS_SCRIPT_OR_DATA:Ee,MUSTACHE_EXPR:Ce,TMPLIT_EXPR:D}),k={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},je=function(){return typeof window>`u`?null:window},Me=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Ne=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Pe(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:je(),t=e=>Pe(e);if(t.version=`3.3.1`,t.removed=[],!e||!e.document||e.document.nodeType!==k.document||!e.Element)return t.isSupported=!1,t;let{document:n}=e,r=n,i=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:s,Element:l,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:ee,DOMParser:p,trustedTypes:m}=e,h=l.prototype,x=w(h,`cloneNode`),de=w(h,`remove`),fe=w(h,`nextSibling`),Ce=w(h,`childNodes`),E=w(h,`parentNode`);if(typeof o==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let D,O=``,{implementation:we,createNodeIterator:Ee,createDocumentFragment:De,getElementsByTagName:ke}=n,{importNode:Fe}=r,A=Ne();t.isSupported=typeof c==`function`&&typeof E==`function`&&we&&we.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:j,ERB_EXPR:M,TMPLIT_EXPR:N,DATA_ATTR:Ie,ARIA_ATTR:Le,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:Re,CUSTOM_ELEMENT:ze}=Ae,{IS_ALLOWED_URI:Be}=Ae,F=null,Ve=S({},[...pe,...me,...he,..._e,...ye]),I=null,He=S({},[...be,...xe,...Se,...T]),L=Object.seal(te(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),R=null,Ue=null,z=Object.seal(te(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),We=!0,Ge=!0,Ke=!1,qe=!0,B=!1,Je=!0,V=!1,Ye=!1,Xe=!1,H=!1,Ze=!1,Qe=!1,$e=!0,et=!1,tt=!0,U=!1,W={},G=null,nt=S({},[`annotation-xml`,`audio`,`colgroup`,`desc`,`foreignobject`,`head`,`iframe`,`math`,`mi`,`mn`,`mo`,`ms`,`mtext`,`noembed`,`noframes`,`noscript`,`plaintext`,`script`,`style`,`svg`,`template`,`thead`,`title`,`video`,`xmp`]),rt=null,it=S({},[`audio`,`video`,`img`,`source`,`image`,`track`]),at=null,ot=S({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),st=`http://www.w3.org/1998/Math/MathML`,ct=`http://www.w3.org/2000/svg`,K=`http://www.w3.org/1999/xhtml`,q=K,lt=!1,ut=null,dt=S({},[st,ct,K],se),ft=S({},[`mi`,`mo`,`mn`,`ms`,`mtext`]),pt=S({},[`annotation-xml`]),mt=S({},[`title`,`style`,`font`,`a`,`script`]),J=null,ht=[`application/xhtml+xml`,`text/html`],Y=null,X=null,gt=n.createElement(`form`),_t=function(e){return e instanceof RegExp||e instanceof Function},vt=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(X&&X===e)){if((!e||typeof e!=`object`)&&(e={}),e=C(e),J=ht.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,Y=J===`application/xhtml+xml`?se:oe,F=v(e,`ALLOWED_TAGS`)?S({},e.ALLOWED_TAGS,Y):Ve,I=v(e,`ALLOWED_ATTR`)?S({},e.ALLOWED_ATTR,Y):He,ut=v(e,`ALLOWED_NAMESPACES`)?S({},e.ALLOWED_NAMESPACES,se):dt,at=v(e,`ADD_URI_SAFE_ATTR`)?S(C(ot),e.ADD_URI_SAFE_ATTR,Y):ot,rt=v(e,`ADD_DATA_URI_TAGS`)?S(C(it),e.ADD_DATA_URI_TAGS,Y):it,G=v(e,`FORBID_CONTENTS`)?S({},e.FORBID_CONTENTS,Y):nt,R=v(e,`FORBID_TAGS`)?S({},e.FORBID_TAGS,Y):C({}),Ue=v(e,`FORBID_ATTR`)?S({},e.FORBID_ATTR,Y):C({}),W=v(e,`USE_PROFILES`)?e.USE_PROFILES:!1,We=e.ALLOW_ARIA_ATTR!==!1,Ge=e.ALLOW_DATA_ATTR!==!1,Ke=e.ALLOW_UNKNOWN_PROTOCOLS||!1,qe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,B=e.SAFE_FOR_TEMPLATES||!1,Je=e.SAFE_FOR_XML!==!1,V=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,Ze=e.RETURN_DOM_FRAGMENT||!1,Qe=e.RETURN_TRUSTED_TYPE||!1,Xe=e.FORCE_BODY||!1,$e=e.SANITIZE_DOM!==!1,et=e.SANITIZE_NAMED_PROPS||!1,tt=e.KEEP_CONTENT!==!1,U=e.IN_PLACE||!1,Be=e.ALLOWED_URI_REGEXP||Te,q=e.NAMESPACE||K,ft=e.MATHML_TEXT_INTEGRATION_POINTS||ft,pt=e.HTML_INTEGRATION_POINTS||pt,L=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&_t(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(L.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&_t(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(L.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements==`boolean`&&(L.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),B&&(Ge=!1),Ze&&(H=!0),W&&(F=S({},ye),I=[],W.html===!0&&(S(F,pe),S(I,be)),W.svg===!0&&(S(F,me),S(I,xe),S(I,T)),W.svgFilters===!0&&(S(F,he),S(I,xe),S(I,T)),W.mathMl===!0&&(S(F,_e),S(I,Se),S(I,T))),e.ADD_TAGS&&(typeof e.ADD_TAGS==`function`?z.tagCheck=e.ADD_TAGS:(F===Ve&&(F=C(F)),S(F,e.ADD_TAGS,Y))),e.ADD_ATTR&&(typeof e.ADD_ATTR==`function`?z.attributeCheck=e.ADD_ATTR:(I===He&&(I=C(I)),S(I,e.ADD_ATTR,Y))),e.ADD_URI_SAFE_ATTR&&S(at,e.ADD_URI_SAFE_ATTR,Y),e.FORBID_CONTENTS&&(G===nt&&(G=C(G)),S(G,e.FORBID_CONTENTS,Y)),e.ADD_FORBID_CONTENTS&&(G===nt&&(G=C(G)),S(G,e.ADD_FORBID_CONTENTS,Y)),tt&&(F[`#text`]=!0),V&&S(F,[`html`,`head`,`body`]),F.table&&(S(F,[`tbody`]),delete R.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw b(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw b(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);D=e.TRUSTED_TYPES_POLICY,O=D.createHTML(``)}else D===void 0&&(D=Me(m,i)),D!==null&&typeof O==`string`&&(O=D.createHTML(``));f&&f(e),X=e}},yt=S({},[...me,...he,...ge]),bt=S({},[..._e,...ve]),xt=function(e){let t=E(e);(!t||!t.tagName)&&(t={namespaceURI:q,tagName:`template`});let n=oe(e.tagName),r=oe(t.tagName);return ut[e.namespaceURI]?e.namespaceURI===ct?t.namespaceURI===K?n===`svg`:t.namespaceURI===st?n===`svg`&&(r===`annotation-xml`||ft[r]):!!yt[n]:e.namespaceURI===st?t.namespaceURI===K?n===`math`:t.namespaceURI===ct?n===`math`&&pt[r]:!!bt[n]:e.namespaceURI===K?t.namespaceURI===ct&&!pt[r]||t.namespaceURI===st&&!ft[r]?!1:!bt[n]&&(mt[n]||!yt[n]):!!(J===`application/xhtml+xml`&&ut[e.namespaceURI]):!1},Z=function(e){g(t.removed,{element:e});try{E(e).removeChild(e)}catch{de(e)}},Q=function(e,n){try{g(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{g(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(H||Ze)try{Z(n)}catch{}else try{n.setAttribute(e,``)}catch{}},St=function(e){let t=null,r=null;if(Xe)e=`<remove></remove>`+e;else{let t=ce(e,/^[\r\n\t ]+/);r=t&&t[0]}J===`application/xhtml+xml`&&q===K&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=D?D.createHTML(e):e;if(q===K)try{t=new p().parseFromString(i,J)}catch{}if(!t||!t.documentElement){t=we.createDocument(q,`template`,null);try{t.documentElement.innerHTML=lt?O:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),q===K?ke.call(t,V?`html`:`body`)[0]:V?t.documentElement:a},Ct=function(e){return Ee.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},wt=function(e){return e instanceof ee&&(typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||!(e.attributes instanceof d)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`)},Tt=function(e){return typeof s==`function`&&e instanceof s};function $(e,n,r){ne(e,e=>{e.call(t,n,r,X)})}let Et=function(e){let n=null;if($(A.beforeSanitizeElements,e,null),wt(e))return Z(e),!0;let r=Y(e.nodeName);if($(A.uponSanitizeElement,e,{tagName:r,allowedTags:F}),Je&&e.hasChildNodes()&&!Tt(e.firstElementChild)&&y(/<[/\w!]/g,e.innerHTML)&&y(/<[/\w!]/g,e.textContent)||e.nodeType===k.progressingInstruction||Je&&e.nodeType===k.comment&&y(/<[/\w]/g,e.data))return Z(e),!0;if(!(z.tagCheck instanceof Function&&z.tagCheck(r))&&(!F[r]||R[r])){if(!R[r]&&Ot(r)&&(L.tagNameCheck instanceof RegExp&&y(L.tagNameCheck,r)||L.tagNameCheck instanceof Function&&L.tagNameCheck(r)))return!1;if(tt&&!G[r]){let t=E(e)||e.parentNode,n=Ce(e)||e.childNodes;if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=x(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,fe(e))}}}return Z(e),!0}return e instanceof l&&!xt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&y(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z(e),!0):(B&&e.nodeType===k.text&&(n=e.textContent,ne([j,M,N],e=>{n=_(n,e,` `)}),e.textContent!==n&&(g(t.removed,{element:e.cloneNode()}),e.textContent=n)),$(A.afterSanitizeElements,e,null),!1)},Dt=function(e,t,r){if($e&&(t===`id`||t===`name`)&&(r in n||r in gt))return!1;if(!(Ge&&!Ue[t]&&y(Ie,t))&&!(We&&y(Le,t))&&!(z.attributeCheck instanceof Function&&z.attributeCheck(t,e))){if(!I[t]||Ue[t]){if(!(Ot(e)&&(L.tagNameCheck instanceof RegExp&&y(L.tagNameCheck,e)||L.tagNameCheck instanceof Function&&L.tagNameCheck(e))&&(L.attributeNameCheck instanceof RegExp&&y(L.attributeNameCheck,t)||L.attributeNameCheck instanceof Function&&L.attributeNameCheck(t,e))||t===`is`&&L.allowCustomizedBuiltInElements&&(L.tagNameCheck instanceof RegExp&&y(L.tagNameCheck,r)||L.tagNameCheck instanceof Function&&L.tagNameCheck(r))))return!1}else if(!at[t]&&!y(Be,_(r,Re,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&le(r,`data:`)===0&&rt[e])&&!(Ke&&!y(P,_(r,Re,``)))&&r)return!1}return!0},Ot=function(e){return e!==`annotation-xml`&&ce(e,ze)},kt=function(e){$(A.beforeSanitizeAttributes,e,null);let{attributes:n}=e;if(!n||wt(e))return;let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:I,forceKeepAttr:void 0},i=n.length;for(;i--;){let{name:a,namespaceURI:o,value:s}=n[i],c=Y(a),l=s,u=a===`value`?l:ue(l);if(r.attrName=c,r.attrValue=u,r.keepAttr=!0,r.forceKeepAttr=void 0,$(A.uponSanitizeAttribute,e,r),u=r.attrValue,et&&(c===`id`||c===`name`)&&(Q(a,e),u=`user-content-`+u),Je&&y(/((--!?|])>)|<\/(style|title|textarea)/i,u)){Q(a,e);continue}if(c===`attributename`&&ce(u,`href`)){Q(a,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Q(a,e);continue}if(!qe&&y(/\/>/i,u)){Q(a,e);continue}B&&ne([j,M,N],e=>{u=_(u,e,` `)});let d=Y(e.nodeName);if(!Dt(d,c,u)){Q(a,e);continue}if(D&&typeof m==`object`&&typeof m.getAttributeType==`function`&&!o)switch(m.getAttributeType(d,c)){case`TrustedHTML`:u=D.createHTML(u);break;case`TrustedScriptURL`:u=D.createScriptURL(u);break}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),wt(e)?Z(e):ie(t.removed)}catch{Q(a,e)}}$(A.afterSanitizeAttributes,e,null)},At=function e(t){let n=null,r=Ct(t);for($(A.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)$(A.uponSanitizeShadowNode,n,null),Et(n),kt(n),n.content instanceof a&&e(n.content);$(A.afterSanitizeShadowDOM,t,null)};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,o=null,c=null,l=null;if(lt=!e,lt&&(e=`<!-->`),typeof e!=`string`&&!Tt(e))if(typeof e.toString==`function`){if(e=e.toString(),typeof e!=`string`)throw b(`dirty is not a string, aborting`)}else throw b(`toString is not a function`);if(!t.isSupported)return e;if(Ye||vt(n),t.removed=[],typeof e==`string`&&(U=!1),U){if(e.nodeName){let t=Y(e.nodeName);if(!F[t]||R[t])throw b(`root node is forbidden and cannot be sanitized in-place`)}}else if(e instanceof s)i=St(`<!---->`),o=i.ownerDocument.importNode(e,!0),o.nodeType===k.element&&o.nodeName===`BODY`||o.nodeName===`HTML`?i=o:i.appendChild(o);else{if(!H&&!B&&!V&&e.indexOf(`<`)===-1)return D&&Qe?D.createHTML(e):e;if(i=St(e),!i)return H?null:Qe?O:``}i&&Xe&&Z(i.firstChild);let u=Ct(U?e:i);for(;c=u.nextNode();)Et(c),kt(c),c.content instanceof a&&At(c.content);if(U)return e;if(H){if(Ze)for(l=De.call(i.ownerDocument);i.firstChild;)l.appendChild(i.firstChild);else l=i;return(I.shadowroot||I.shadowrootmode)&&(l=Fe.call(r,l,!0)),l}let d=V?i.outerHTML:i.innerHTML;return V&&F[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&y(Oe,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
21
21
|
`+d),B&&ne([j,M,N],e=>{d=_(d,e,` `)}),D&&Qe?D.createHTML(d):d},t.setConfig=function(){vt(arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}),Ye=!0},t.clearConfig=function(){X=null,Ye=!1},t.isValidAttribute=function(e,t,n){return X||vt({}),Dt(Y(e),Y(t),n)},t.addHook=function(e,t){typeof t==`function`&&g(A[e],t)},t.removeHook=function(e,t){if(t!==void 0){let n=re(A[e],t);return n===-1?void 0:ae(A[e],n,1)[0]}return ie(A[e])},t.removeHooks=function(e){A[e]=[]},t.removeAllHooks=function(){A=Ne()},t}var Fe=Pe();function A(){return{id:`root`,step:`root`,status:`pending`,children:[{id:`client-init`,step:`iqInit`,status:`inProgress`,description:`Thinking`}]}}function j(e){let t=e.progress;return typeof t!=`object`||!t?!1:`id`in t&&`step`in t&&`status`in t}async function M(e){let t=await fetch(e.url,{method:`POST`,headers:{"Content-Type":`application/json`},mode:`cors`,body:JSON.stringify(e.body),signal:e.signal});if(!t.ok){let e=await t.json().catch(()=>null);throw Error(e?.message||`API request failed with status ${t.status}`)}if(!t.body)throw Error(`Response body is not readable`);return{body:t.body,conversationId:t.headers.get(`x-conversation-id`)}}async function N(e,t){let n=e.getReader(),r=new TextDecoder,i=``;try{for(;;){let{done:e,value:a}=await n.read();if(e)break;i+=r.decode(a,{stream:!0});let o=i.split(`
|
|
22
|
-
`);i=o.pop()??``;for(let e of o)if(e.trim())try{t(JSON.parse(e))}catch{console.error(`Failed to parse NDJSON line:`,e)}}if(i+=r.decode(),i.trim())try{t(JSON.parse(i))}catch{console.error(`Failed to parse final NDJSON buffer:`,i)}}finally{n.releaseLock()}}var Ie=`:host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb),.08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-max-height:none;--ai-chat-messages-flex:1;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-error-message-color:var(--luzmo-danger,#dc3545)}`;function Le(e){let{prompt:t,datasetIds:n,authKey:r,authToken:i,conversationId:a,chart:o,modelPreference:s,apiVersion:c=`0.1.0`}=e;return{key:r,token:i,action:`create`,version:c,properties:{content:{role:`user`,content:t},...a?{conversation_id:a}:{}},options:{available_datasets:n,stream:!0,...n.length>0?{dataset_id:n[0]}:{},...o&&o.type!==`placeholder`?{chart:{...o,version:o.version||``,title:o.title||o.options.title,filters:o.filterGroups||[],aichartId:o.aichartId||``}}:{},model_preference:s}}}var P=class extends t.i{constructor(...e){super(...e),this.messages=[],this.selectedDatasets=[],this.placeholder=`Describe your change`,this.disabled=!1,this.showAssistantContextMenu=!1,this.authKey=``,this.authToken=``,this.apiUrl=`https://api.luzmo.com`,this.appServer=`https://app.luzmo.com`,this.flagOpendata=!1,this.hideDatasetButton=!1,this.modelPreference=`performance`,this.requestMode=`internal`,this.isGenerating=!1,this.conversationId=null,this.chart=null,this.apiVersion=`0.1.0`,this.loadingMessage=null,this.initialPrompt=null,this.progress=null,this.progressCollapsed=!1,this._progress=null,this._progressCollapsed=!1,this._isGeneratingInternal=!1,this._textareaValue=``,this._abortController=null,this._inflightAiMessage=null,this._lastProcessedInitialPrompt=null,this._receivedProgress=!1}static{this.styles=(0,a.unsafeCSS)(Ie)}static{this.tagName=`luzmo-ai-chat`}_generateMessageId(){return`msg-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}_buildRequestBody(e,t){return Le({prompt:e,datasetIds:t,authKey:this.authKey,authToken:this.authToken,conversationId:this.conversationId,chart:this.chart,modelPreference:this.modelPreference,apiVersion:this.apiVersion})}_finalizeInflightMessage(){this._inflightAiMessage&&=(this._progress&&this._receivedProgress&&(this._inflightAiMessage.progress=structuredClone(this._progress),this._updateMessage(this._inflightAiMessage)),this._progress=null,this._progressCollapsed=!1,this._receivedProgress=!1,null)}async _sendStreamingMessage(e,t){this._abortController&&(this._abortController.abort(),this._inflightAiMessage&&!this._inflightAiMessage.message&&(this.messages=this.messages.filter(e=>e.id!==this._inflightAiMessage.id))),this._finalizeInflightMessage(),this._inflightAiMessage=t;let n=new AbortController;this._abortController=n,this._progress=A(),this._progressCollapsed=!1,this._receivedProgress=!1;let r=!1;try{let{body:i,conversationId:a}=await M({url:`${this.apiUrl}/${this.apiVersion}/aimessage`,body:e,signal:n.signal});a&&(this.conversationId=a),await N(i,e=>this._processStreamChunk(e,t)),r=!0}finally{this._abortController===n&&(r?this._finalizeInflightMessage():this._inflightAiMessage=null,this._isGeneratingInternal=!1,this._abortController=null)}}_processStreamChunk(e,t){if(j(e)&&(this._receivedProgress=!0,this._progress=e.progress),e.error){t.message=e.error,t.isError=!0,this._updateMessage(t),this._progress=null,this._progressCollapsed=!1,this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,done:!0},bubbles:!0,composed:!0}));return}let n=e.chart??e.generatedChart;if(n){let r={...e,generatedChart:n,conversationId:this.conversationId};this.dispatchEvent(new CustomEvent(`luzmo-chart-generated`,{detail:{aiSampleChart:r},bubbles:!0,composed:!0}));let i=typeof e.chunk==`string`&&e.chunk||typeof e.message==`string`&&e.message;i&&(t.message=(t.message||``)+i),this._updateMessage(t),(e.done||`question`in e)&&(this._progressCollapsed=!0,t.message&&this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,done:!0},bubbles:!0,composed:!0})));return}let r=typeof e.chunk==`string`&&e.chunk||typeof e.message==`string`&&e.message||``;r&&(this._progressCollapsed||=!0,t.message=(t.message||``)+r,this._updateMessage(t));let i=e.done||`question`in e;i&&(this._progressCollapsed=!0),(r||i&&t.message)&&this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,done:!!i},bubbles:!0,composed:!0}))}_addUserMessage(e,t){let n={id:this._generateMessageId(),type:`user`,message:e};this.messages=[...this.messages,n],this._textareaValue=``,this.dispatchEvent(new CustomEvent(`luzmo-message-sent`,{detail:{message:n,selectedDatasets:t},bubbles:!0,composed:!0}))}_updateMessage(e){this.messages=this.messages.map(t=>t.id===e.id?{...e}:t)}_prepareForAIResponse(){this._isGeneratingInternal=!0;let e={id:this._generateMessageId(),type:`ai`,message:``};return this.messages=[...this.messages,e],e}_handleAPIError(e,t){console.error(`AI Chart Generation Error:`,e),this._progress=null,this._progressCollapsed=!1;let n=(0,r.msg)(`Something went wrong. Please try again.`,{desc:`Generic error message shown in ai chat when the API request fails`});if(t)t.message=n,t.isError=!0,delete t.progress,this._updateMessage(t);else{let e={id:this._generateMessageId(),type:`ai`,message:n,isError:!0};this.messages=[...this.messages,e],t=e}this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,error:e},bubbles:!0,composed:!0}))}_handleDatasetSelected(e){let t=e.detail;this.selectedDatasets.some(e=>e.id===t.id)||(this.selectedDatasets=[...this.selectedDatasets,t],this._emitDatasetsChanged())}_handleDatasetRemoved(e){let t=e.detail;this.selectedDatasets=this.selectedDatasets.filter(e=>e.id!==t.id),this._emitDatasetsChanged()}_emitDatasetsChanged(){this.dispatchEvent(new CustomEvent(`luzmo-datasets-changed`,{detail:{selectedDatasets:this.selectedDatasets},bubbles:!0,composed:!0}))}async _handlePromptSubmitted(e){let{prompt:t,selectedDatasets:n}=e.detail,r=n.map(e=>e.id),i=this._buildRequestBody(t,r);if(this._addUserMessage(t,n),this.requestMode===`external`){let e={prompt:t,selectedDatasets:n,datasetIds:r,request:i,url:`${this.apiUrl}/${this.apiVersion}/aimessage`};this.dispatchEvent(new CustomEvent(`luzmo-prompt-submitted`,{detail:e,bubbles:!0,composed:!0}));return}let a=this._prepareForAIResponse();try{await this._sendStreamingMessage(i,a)}catch(e){e.name!==`AbortError`&&this._handleAPIError(e,a)}}async _processInitialPrompt(){if(!this.initialPrompt||this.initialPrompt===this._lastProcessedInitialPrompt)return;this._lastProcessedInitialPrompt=this.initialPrompt;let e=this.selectedDatasets.map(e=>e.id),t=this._buildRequestBody(this.initialPrompt,e),n=`${this.apiUrl}/${this.apiVersion}/aimessage`;if(this.requestMode===`external`){let r={prompt:this.initialPrompt,selectedDatasets:this.selectedDatasets,datasetIds:e,request:t,url:n};this.dispatchEvent(new CustomEvent(`luzmo-prompt-submitted`,{detail:r,bubbles:!0,composed:!0}));return}let r=this._prepareForAIResponse();try{await this._sendStreamingMessage(t,r)}catch(e){e.name!==`AbortError`&&this._handleAPIError(e,r)}}disconnectedCallback(){super.disconnectedCallback(),this._abortController?.abort(),this._abortController=null,this._finalizeInflightMessage(),this._isGeneratingInternal=!1}_scrollToBottom(){let e=this.shadowRoot?.querySelector(`.chat-messages-container`);e&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight})})}updated(e){super.updated?.(e),(e.has(`messages`)||e.has(`_progress`)||e.has(`progress`))&&this.updateComplete.then(()=>this._scrollToBottom()),this.initialPrompt&&this.initialPrompt!==this._lastProcessedInitialPrompt?this._processInitialPrompt():this.initialPrompt||(this._lastProcessedInitialPrompt=null)}_sanitizeMessage(e){return Fe.sanitize(e,{ALLOWED_TAGS:[`p`,`br`,`strong`,`em`,`b`,`i`,`u`,`s`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`a`],ALLOWED_ATTR:[`href`,`title`,`target`,`rel`],ALLOW_DATA_ATTR:!1,FORBID_TAGS:[`script`,`iframe`,`object`,`embed`,`form`,`input`,`button`],FORBID_ATTR:[`onerror`,`onload`,`onclick`,`onmouseover`,`onfocus`,`onblur`]})}_renderProgress(){let e=this.requestMode===`external`?this.progress:this._progress,t=this.requestMode===`external`?this.progressCollapsed:this._progressCollapsed;return e?.children?.length?a.html`
|
|
22
|
+
`);i=o.pop()??``;for(let e of o)if(e.trim())try{t(JSON.parse(e))}catch{console.error(`Failed to parse NDJSON line:`,e)}}if(i+=r.decode(),i.trim())try{t(JSON.parse(i))}catch{console.error(`Failed to parse final NDJSON buffer:`,i)}}finally{n.releaseLock()}}var Ie=`:host{box-sizing:border-box;flex-direction:column;width:100%;height:100%;display:flex}:host .chat-container{background:var(--luzmo-ai-chat-background,var(--ai-chat-background));border-radius:var(--luzmo-ai-chat-border-radius,var(--ai-chat-border-radius));width:100%;height:100%;min-height:0;padding:var(--luzmo-ai-chat-padding,var(--ai-chat-padding));gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));border:var(--luzmo-ai-chat-border,var(--ai-chat-border));box-shadow:var(--luzmo-ai-chat-box-shadow,var(--ai-chat-box-shadow));box-sizing:border-box;flex-direction:column;flex:1;display:flex;overflow:hidden}:host .chat-messages-container{gap:var(--luzmo-ai-chat-gap,var(--ai-chat-gap));flex-direction:column;flex:1;min-height:0;display:flex;overflow:auto}:host luzmo-chat-message{--luzmo-primary:rgba(var(--luzmo-primary-rgb),.08);--chat-message-primary-text-color:var(--luzmo-font-color);--chat-message-primary-border-color:transparent}:host luzmo-chat-message.error{color:var(--luzmo-ai-chat-error-message-color,var(--ai-chat-error-message-color))}:host luzmo-ai-interaction-textarea{flex-grow:0;flex-shrink:0}:host luzmo-progress-steps{padding:0 .25rem}:host .loading-message{color:var(--luzmo-font-color);align-items:center;gap:.5rem;display:flex}:host .loading-message svg{color:var(--luzmo-ai-chat-loading-message-color,var(--ai-chat-loading-message-color));font-size:var(--luzmo-ai-chat-loading-message-icon-font-size,var(--ai-chat-loading-message-icon-font-size,1rem));justify-content:center;align-items:center;display:flex}:host .loading-message svg.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}:host{--ai-chat-background:var(--luzmo-background-color);--ai-chat-border-radius:0;--ai-chat-padding:0;--ai-chat-gap:1rem;--ai-chat-max-height:none;--ai-chat-messages-flex:1;--ai-chat-border:none;--ai-chat-box-shadow:none;--ai-chat-loading-message-color:var(--luzmo-primary);--ai-chat-error-message-color:var(--luzmo-danger,#dc3545)}`;function Le(e){let{prompt:t,datasetIds:n,authKey:r,authToken:i,conversationId:a,chart:o,modelPreference:s,apiVersion:c=`0.1.0`,stream:l=!0}=e;return{key:r,token:i,action:`create`,version:c,properties:{content:{role:`user`,content:t},...a?{conversation_id:a}:{}},options:{available_datasets:n,stream:l,...n.length>0?{dataset_id:n[0]}:{},...o&&o.type!==`placeholder`?{chart:{...o,version:o.version||``,title:o.title||o.options.title,filters:o.filterGroups||[],aichartId:o.aichartId||``}}:{},model_preference:s}}}var P=class extends t.i{constructor(...e){super(...e),this.messages=[],this.selectedDatasets=[],this.placeholder=`Describe your change`,this.disabled=!1,this.showAssistantContextMenu=!1,this.authKey=``,this.authToken=``,this.apiUrl=`https://api.luzmo.com`,this.appServer=`https://app.luzmo.com`,this.flagOpendata=!1,this.hideDatasetButton=!1,this.modelPreference=`performance`,this.requestMode=`internal`,this.isGenerating=!1,this.conversationId=null,this.chart=null,this.apiVersion=`0.1.0`,this.stream=!0,this.loadingMessage=null,this.initialPrompt=null,this.progress=null,this.progressCollapsed=!1,this._progress=null,this._progressCollapsed=!1,this._isGeneratingInternal=!1,this._textareaValue=``,this._abortController=null,this._inflightAiMessage=null,this._lastProcessedInitialPrompt=null,this._receivedProgress=!1}static{this.styles=(0,a.unsafeCSS)(Ie)}static{this.tagName=`luzmo-ai-chat`}_generateMessageId(){return`msg-${Date.now()}-${Math.random().toString(36).slice(2,9)}`}_buildRequestBody(e,t){return Le({prompt:e,datasetIds:t,authKey:this.authKey,authToken:this.authToken,conversationId:this.conversationId,chart:this.chart,modelPreference:this.modelPreference,apiVersion:this.apiVersion,stream:this.stream})}_finalizeInflightMessage(){this._inflightAiMessage&&=(this._progress&&this._receivedProgress&&(this._inflightAiMessage.progress=structuredClone(this._progress),this._updateMessage(this._inflightAiMessage)),this._progress=null,this._progressCollapsed=!1,this._receivedProgress=!1,null)}async _sendStreamingMessage(e,t){this._abortController&&(this._abortController.abort(),this._inflightAiMessage&&!this._inflightAiMessage.message&&(this.messages=this.messages.filter(e=>e.id!==this._inflightAiMessage.id))),this._finalizeInflightMessage(),this._inflightAiMessage=t;let n=new AbortController;this._abortController=n,this._progress=A(),this._progressCollapsed=!1,this._receivedProgress=!1;let r=!1;try{let{body:i,conversationId:a}=await M({url:`${this.apiUrl}/${this.apiVersion}/aimessage`,body:e,signal:n.signal});a&&(this.conversationId=a),await N(i,e=>this._processStreamChunk(e,t)),r=!0}finally{this._abortController===n&&(r?this._finalizeInflightMessage():this._inflightAiMessage=null,this._isGeneratingInternal=!1,this._abortController=null)}}_processStreamChunk(e,t){if(j(e)&&(this._receivedProgress=!0,this._progress=e.progress),e.error){t.message=e.error,t.isError=!0,this._updateMessage(t),this._progress=null,this._progressCollapsed=!1,this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,done:!0},bubbles:!0,composed:!0}));return}let n=e.chart??e.generatedChart;if(n){let r={...e,generatedChart:n,conversationId:this.conversationId};this.dispatchEvent(new CustomEvent(`luzmo-chart-generated`,{detail:{aiSampleChart:r},bubbles:!0,composed:!0}));let i=typeof e.chunk==`string`&&e.chunk||typeof e.message==`string`&&e.message;i&&(t.message=(t.message||``)+i),this._updateMessage(t),(e.done||`question`in e)&&(this._progressCollapsed=!0,t.message&&this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,done:!0},bubbles:!0,composed:!0})));return}let r=typeof e.chunk==`string`&&e.chunk||typeof e.message==`string`&&e.message||``;r&&(this._progressCollapsed||=!0,t.message=(t.message||``)+r,this._updateMessage(t));let i=e.done||`question`in e;i&&(this._progressCollapsed=!0),(r||i&&t.message)&&this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,done:!!i},bubbles:!0,composed:!0}))}_addUserMessage(e,t){let n={id:this._generateMessageId(),type:`user`,message:e};this.messages=[...this.messages,n],this._textareaValue=``,this.dispatchEvent(new CustomEvent(`luzmo-message-sent`,{detail:{message:n,selectedDatasets:t},bubbles:!0,composed:!0}))}_updateMessage(e){this.messages=this.messages.map(t=>t.id===e.id?{...e}:t)}_prepareForAIResponse(){this._isGeneratingInternal=!0;let e={id:this._generateMessageId(),type:`ai`,message:``};return this.messages=[...this.messages,e],e}_handleAPIError(e,t){console.error(`AI Chart Generation Error:`,e),this._progress=null,this._progressCollapsed=!1;let n=(0,r.msg)(`Something went wrong. Please try again.`,{desc:`Generic error message shown in ai chat when the API request fails`});if(t)t.message=n,t.isError=!0,delete t.progress,this._updateMessage(t);else{let e={id:this._generateMessageId(),type:`ai`,message:n,isError:!0};this.messages=[...this.messages,e],t=e}this.dispatchEvent(new CustomEvent(`luzmo-response-received`,{detail:{message:t,error:e},bubbles:!0,composed:!0}))}_handleDatasetSelected(e){let t=e.detail;this.selectedDatasets.some(e=>e.id===t.id)||(this.selectedDatasets=[...this.selectedDatasets,t],this._emitDatasetsChanged())}_handleDatasetRemoved(e){let t=e.detail;this.selectedDatasets=this.selectedDatasets.filter(e=>e.id!==t.id),this._emitDatasetsChanged()}_emitDatasetsChanged(){this.dispatchEvent(new CustomEvent(`luzmo-datasets-changed`,{detail:{selectedDatasets:this.selectedDatasets},bubbles:!0,composed:!0}))}async _handlePromptSubmitted(e){let{prompt:t,selectedDatasets:n}=e.detail,r=n.map(e=>e.id),i=this._buildRequestBody(t,r);if(this._addUserMessage(t,n),this.requestMode===`external`){let e={prompt:t,selectedDatasets:n,datasetIds:r,request:i,url:`${this.apiUrl}/${this.apiVersion}/aimessage`};this.dispatchEvent(new CustomEvent(`luzmo-prompt-submitted`,{detail:e,bubbles:!0,composed:!0}));return}let a=this._prepareForAIResponse();try{await this._sendStreamingMessage(i,a)}catch(e){e.name!==`AbortError`&&this._handleAPIError(e,a)}}async _processInitialPrompt(){if(!this.initialPrompt||this.initialPrompt===this._lastProcessedInitialPrompt)return;this._lastProcessedInitialPrompt=this.initialPrompt;let e=this.selectedDatasets.map(e=>e.id),t=this._buildRequestBody(this.initialPrompt,e),n=`${this.apiUrl}/${this.apiVersion}/aimessage`;if(this.requestMode===`external`){let r={prompt:this.initialPrompt,selectedDatasets:this.selectedDatasets,datasetIds:e,request:t,url:n};this.dispatchEvent(new CustomEvent(`luzmo-prompt-submitted`,{detail:r,bubbles:!0,composed:!0}));return}let r=this._prepareForAIResponse();try{await this._sendStreamingMessage(t,r)}catch(e){e.name!==`AbortError`&&this._handleAPIError(e,r)}}disconnectedCallback(){super.disconnectedCallback(),this._abortController?.abort(),this._abortController=null,this._finalizeInflightMessage(),this._isGeneratingInternal=!1}_scrollToBottom(){let e=this.shadowRoot?.querySelector(`.chat-messages-container`);e&&requestAnimationFrame(()=>{requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight})})}updated(e){super.updated?.(e),(e.has(`messages`)||e.has(`_progress`)||e.has(`progress`))&&this.updateComplete.then(()=>this._scrollToBottom()),this.initialPrompt&&this.initialPrompt!==this._lastProcessedInitialPrompt?this._processInitialPrompt():this.initialPrompt||(this._lastProcessedInitialPrompt=null)}_sanitizeMessage(e){return Fe.sanitize(e,{ALLOWED_TAGS:[`p`,`br`,`strong`,`em`,`b`,`i`,`u`,`s`,`code`,`pre`,`blockquote`,`ul`,`ol`,`li`,`a`],ALLOWED_ATTR:[`href`,`title`,`target`,`rel`],ALLOW_DATA_ATTR:!1,FORBID_TAGS:[`script`,`iframe`,`object`,`embed`,`form`,`input`,`button`],FORBID_ATTR:[`onerror`,`onload`,`onclick`,`onmouseover`,`onfocus`,`onblur`]})}_renderProgress(){let e=this.requestMode===`external`?this.progress:this._progress,t=this.requestMode===`external`?this.progressCollapsed:this._progressCollapsed;return e?.children?.length?a.html`
|
|
23
23
|
<luzmo-progress-steps
|
|
24
24
|
.progress=${e}
|
|
25
25
|
?collapsed=${t}
|
|
@@ -110,4 +110,4 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
110
110
|
@dataset-removed=${this._handleDatasetRemoved}
|
|
111
111
|
></luzmo-ai-interaction-textarea>
|
|
112
112
|
</div>
|
|
113
|
-
`}};n.t([(0,o.property)({type:Array})],P.prototype,`messages`,void 0),n.t([(0,o.property)({type:Array,attribute:`selected-datasets`})],P.prototype,`selectedDatasets`,void 0),n.t([(0,o.property)({type:String})],P.prototype,`placeholder`,void 0),n.t([(0,o.property)({type:Boolean,reflect:!0})],P.prototype,`disabled`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`show-assistant-context-menu`})],P.prototype,`showAssistantContextMenu`,void 0),n.t([(0,o.property)({type:String,attribute:`auth-key`})],P.prototype,`authKey`,void 0),n.t([(0,o.property)({type:String,attribute:`auth-token`})],P.prototype,`authToken`,void 0),n.t([(0,o.property)({type:String,attribute:`api-url`})],P.prototype,`apiUrl`,void 0),n.t([(0,o.property)({type:String,attribute:`app-server`})],P.prototype,`appServer`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`flag-opendata`})],P.prototype,`flagOpendata`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`hide-dataset-button`})],P.prototype,`hideDatasetButton`,void 0),n.t([(0,o.property)({type:String,attribute:`model-preference`})],P.prototype,`modelPreference`,void 0),n.t([(0,o.property)({type:String,attribute:`request-mode`})],P.prototype,`requestMode`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`is-generating`})],P.prototype,`isGenerating`,void 0),n.t([(0,o.property)({type:String,attribute:`conversation-id`})],P.prototype,`conversationId`,void 0),n.t([(0,o.property)({type:Object,attribute:`chart`})],P.prototype,`chart`,void 0),n.t([(0,o.property)({type:String,attribute:`api-version`})],P.prototype,`apiVersion`,void 0),n.t([(0,o.property)({type:String,attribute:`loading-message`})],P.prototype,`loadingMessage`,void 0),n.t([(0,o.property)({type:String,attribute:`initial-prompt`})],P.prototype,`initialPrompt`,void 0),n.t([(0,o.property)({type:Object})],P.prototype,`progress`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`progress-collapsed`})],P.prototype,`progressCollapsed`,void 0),n.t([(0,o.state)()],P.prototype,`_progress`,void 0),n.t([(0,o.state)()],P.prototype,`_progressCollapsed`,void 0),n.t([(0,o.state)()],P.prototype,`_isGeneratingInternal`,void 0),n.t([(0,o.state)()],P.prototype,`_textareaValue`,void 0),customElements.get(`luzmo-ai-chat`)||customElements.define(`luzmo-ai-chat`,P),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return P}});
|
|
113
|
+
`}};n.t([(0,o.property)({type:Array})],P.prototype,`messages`,void 0),n.t([(0,o.property)({type:Array,attribute:`selected-datasets`})],P.prototype,`selectedDatasets`,void 0),n.t([(0,o.property)({type:String})],P.prototype,`placeholder`,void 0),n.t([(0,o.property)({type:Boolean,reflect:!0})],P.prototype,`disabled`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`show-assistant-context-menu`})],P.prototype,`showAssistantContextMenu`,void 0),n.t([(0,o.property)({type:String,attribute:`auth-key`})],P.prototype,`authKey`,void 0),n.t([(0,o.property)({type:String,attribute:`auth-token`})],P.prototype,`authToken`,void 0),n.t([(0,o.property)({type:String,attribute:`api-url`})],P.prototype,`apiUrl`,void 0),n.t([(0,o.property)({type:String,attribute:`app-server`})],P.prototype,`appServer`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`flag-opendata`})],P.prototype,`flagOpendata`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`hide-dataset-button`})],P.prototype,`hideDatasetButton`,void 0),n.t([(0,o.property)({type:String,attribute:`model-preference`})],P.prototype,`modelPreference`,void 0),n.t([(0,o.property)({type:String,attribute:`request-mode`})],P.prototype,`requestMode`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`is-generating`})],P.prototype,`isGenerating`,void 0),n.t([(0,o.property)({type:String,attribute:`conversation-id`})],P.prototype,`conversationId`,void 0),n.t([(0,o.property)({type:Object,attribute:`chart`})],P.prototype,`chart`,void 0),n.t([(0,o.property)({type:String,attribute:`api-version`})],P.prototype,`apiVersion`,void 0),n.t([(0,o.property)({converter:{fromAttribute:e=>e!==`false`&&e!==null}})],P.prototype,`stream`,void 0),n.t([(0,o.property)({type:String,attribute:`loading-message`})],P.prototype,`loadingMessage`,void 0),n.t([(0,o.property)({type:String,attribute:`initial-prompt`})],P.prototype,`initialPrompt`,void 0),n.t([(0,o.property)({type:Object})],P.prototype,`progress`,void 0),n.t([(0,o.property)({type:Boolean,attribute:`progress-collapsed`})],P.prototype,`progressCollapsed`,void 0),n.t([(0,o.state)()],P.prototype,`_progress`,void 0),n.t([(0,o.state)()],P.prototype,`_progressCollapsed`,void 0),n.t([(0,o.state)()],P.prototype,`_isGeneratingInternal`,void 0),n.t([(0,o.state)()],P.prototype,`_textareaValue`,void 0),customElements.get(`luzmo-ai-chat`)||customElements.define(`luzmo-ai-chat`,P),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return j}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return M}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return N}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return A}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return P}});
|
package/components/index.cjs
CHANGED
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./base-C_azywlB.cjs`),require(`./focus-visible-3ACCHno4.cjs`);const e=require(`./set-locale-CdlBx8s9.cjs`);require(`./localized-mixin-BhUvOsd7.cjs`);const t=require(`./ai-chat-BGgOjOjv.cjs`),n=require(`./localize-BBuZJf_h.cjs`),r=require(`./dataset-icon-C0cID-ra.cjs`);require(`./data-broker-BUIUM5hr.cjs`);const i=require(`./dataset-selector-list-DYsi3LBF.cjs`),a=require(`./dataset-selector-row-Qwz9WmR4.cjs`),o=require(`./ai-interaction-textarea-CcgFeoIg.cjs`),s=require(`./formatter-CWhf4xbq.cjs`),c=require(`./decompose-numeric-format-Bp_e62qP.cjs`),l=require(`./display-settings-Sh4LWJgN.cjs`),u=require(`./display-settings-binning-Bte25mmH.cjs`),d=require(`./display-settings-datetime-DAL8zjtk.cjs`);require(`./periods.const-CX2ZWWrf.cjs`);const f=require(`./display-settings-grand-totals-NWow1vhX.cjs`);require(`./calculate-data-field-icon-BhiGlh0u.cjs`);const p=require(`./display-settings-numeric-eG0gr9Jn.cjs`),m=require(`./period-over-period-condition.const-wVwKUthh.cjs`),h=require(`./display-settings-period-over-period-DjB0K-Zj.cjs`);require(`./get-css-variable-D9AU2CIU.cjs`);const g=require(`./draggable-data-field-level-CI1No5x8.cjs`),_=require(`./draggable-data-field-Cez4-c6O.cjs`),v=require(`./convert-datasets-to-data-fields-BV57XueO.cjs`),y=require(`./load-data-fields-for-datasets-B6cGgPld.cjs`),b=require(`./draggable-data-fields-panel-B0DzaGsv.cjs`),x=require(`./edit-option-CAqIUpWx.cjs`),S=require(`./item-data-drop-panel-jxlsaggu.cjs`),C=require(`./slot-menu-DIQ6h6Dz.cjs`),w=require(`./grid-By5MAIqI.cjs`),T=require(`./slot-menu-list-CFCvrPVt.cjs`),E=require(`./droppable-slot-CHtF9RZo.cjs`);require(`./slot-labels.config-BdrqhsYJ.cjs`);const D=require(`./themes-BZL9NfRc.cjs`),O=require(`./edit-item-C89gy9JF.cjs`),ee=require(`./edit-filters-CoVNGAfA.cjs`),k=require(`./filter-expression-picker-Dc3K44W0.cjs`),A=require(`./data-fields-select-_WjjNpcl.cjs`),j=require(`./filter-value-picker-CwQLOgTl.cjs`),M=require(`./filter-value-picker-datetime-By3czRqA.cjs`),N=require(`./utils-Dzbml7oI.cjs`),P=require(`./filter-value-picker-hierarchy-CpvItjbb.cjs`),F=require(`./filter-value-picker-numeric-Dq143AGo.cjs`),I=require(`./filter-item-C7i8LLr-.cjs`);require(`./edit-option-base-DBfRz1gO.cjs`);const L=require(`./edit-option-action-button-group-W34osCsN.cjs`),R=require(`./edit-option-color-palette-picker-CGj9Vnfe.cjs`),z=require(`./edit-option-color-picker-CCnSHbzk.cjs`),B=require(`./edit-option-color-range-DVYMhG2R.cjs`),V=require(`./edit-option-multi-language-field-47AjaXIw.cjs`),H=require(`./edit-option-number-field-BMXponHb.cjs`),U=require(`./edit-option-picker-CpCILJtP.cjs`),W=require(`./edit-option-position-picker-utD_OSQy.cjs`),G=require(`./edit-option-positions-number-field-CmK8_2ZQ.cjs`),K=require(`./edit-option-radio-button-group-BCVOZOhT.cjs`),q=require(`./edit-option-slider-B7ArGXrY.cjs`),J=require(`./edit-option-switch-ByyZ8LFD.cjs`),Y=require(`./edit-option-text-field-LTOr4mYL.cjs`),X=require(`./slot-contents-picker-vO7GDwhF.cjs`),Z=require(`./item-data-picker-panel-sWJGFZ7e.cjs`),Q=require(`./viz-item-menu-CGhptlJg.cjs`);require(`./types.cjs`);const $=[{key:`general`,label:`General`},{key:`filters`,label:`Filters`},{key:`bar-column`,label:`Bar & Column Charts`},{key:`line`,label:`Line Charts`},{key:`scatter-bubble`,label:`Scatter & Bubble Plots`},{key:`area`,label:`Area Charts`},{key:`pie-donut`,label:`Pie & Donut`},{key:`gauges`,label:`Gauges`},{key:`map`,label:`Map Charts`},{key:`hierarchical`,label:`Hierarchical Charts`},{key:`special`,label:`Special Charts`},{key:`financial`,label:`Financial Charts`}],te=[{type:`area-chart`,label:`Area Chart`},{type:`bar-chart`,label:`Bar Chart`},{type:`box-plot`,label:`Box Plot`},{type:`bubble-chart`,label:`Bubble Chart`},{type:`bullet-chart`,label:`Bullet Chart`},{type:`choropleth-map`,label:`Choropleth Map`},{type:`circle-pack-chart`,label:`Circle Pack Chart`},{type:`circular-gauge`,label:`Circular Gauge`},{type:`column-chart`,label:`Column Chart`},{type:`combination-chart`,label:`Combination Chart`},{type:`conditional-number`,label:`Conditional Number`},{type:`date-comparison-filter`,label:`Date Comparison Filter`},{type:`date-filter`,label:`Date Filter`},{type:`donut-chart`,label:`Donut Chart`},{type:`dropdown-filter`,label:`Dropdown Filter`},{type:`evolution-number`,label:`Evolution Number`},{type:`funnel-chart`,label:`Funnel Chart`},{type:`heat-map`,label:`Heat Map`},{type:`heat-table`,label:`Heat Table`},{type:`hexbin-map`,label:`Hexbin Map`},{type:`image`,label:`Image`},{type:`line-chart`,label:`Line Chart`},{type:`marker-map`,label:`Marker Map`},{type:`ohlc-chart`,label:`OHLC Chart`},{type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`},{type:`pivot-table`,label:`Pivot Table`},{type:`pyramid-chart`,label:`Pyramid Chart`},{type:`radar-chart`,label:`Radar Chart`},{type:`regular-table`,label:`Regular Table`},{type:`route-map`,label:`Route Map`},{type:`sankey-diagram`,label:`Sankey Diagram`},{type:`scatter-plot`,label:`Scatter Plot`},{type:`search-filter`,label:`Search Filter`},{type:`slicer-filter`,label:`Slicer Filter`},{type:`slider-filter`,label:`Slider Filter`},{type:`speedometer-chart`,label:`Speedometer Chart`},{type:`spike-map`,label:`Spike Map`},{type:`strip-plot`,label:`Strip Plot`},{type:`sunburst-chart`,label:`Sunburst Chart`},{type:`symbol-map`,label:`Symbol Map`},{type:`text`,label:`Text`},{type:`treemap-chart`,label:`Treemap Chart`},{type:`video`,label:`Video`},{type:`wordcloud-chart`,label:`Wordcloud Chart`}],ne=[{item:`text`,type:`text`,label:`Text`,group:`general`},{item:`image`,type:`image`,label:`Image`,group:`general`},{item:`evolution-number`,type:`evolution-number`,label:`Number with evolution`,group:`general`},{item:`video`,type:`video`,label:`Video`,group:`general`},{item:`regular-table`,type:`regular-table`,label:`Regular Table`,group:`general`},{item:`pivot-table`,type:`pivot-table`,label:`Pivot Table`,group:`general`},{item:`spacer`,type:`spacer`,label:`Spacer`,group:`general`},{item:`date-comparison-filter`,type:`date-comparison-filter`,label:`Date Comparison Filter`,group:`filters`},{item:`date-filter`,type:`date-filter`,label:`Date Filter`,group:`filters`},{item:`slider-filter`,type:`slider-filter`,label:`Slider Filter`,group:`filters`},{item:`search-filter`,type:`search-filter`,label:`Search Filter`,group:`filters`},{item:`dropdown-filter`,type:`dropdown-filter`,label:`Dropdown Filter`,group:`filters`},{item:`slicer-filter-vertical`,type:`slicer`,label:`Slicer Filter`,group:`filters`,options:{layout:{alignment:`vertical`}}},{item:`slicer-filter-horizontal`,type:`slicer`,label:`Slicer Filter Horizontal`,group:`filters`,options:{layout:{alignment:`horizontal`}}},{item:`slicer-filter-table`,type:`slicer`,label:`Slicer Filter Table`,group:`filters`,options:{layout:{alignment:`table`}}},{item:`rank-slicer-filter`,type:`slicer`,label:`Rank Slicer Filter`,group:`filters`,options:{layout:{alignment:`rank-vertical`}}},{item:`bar-chart`,type:`bar-chart`,label:`Bar Chart`,group:`bar-column`},{item:`grouped-bar-chart`,type:`bar-chart`,label:`Grouped Bar Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-bar-chart`,type:`bar-chart`,label:`Stacked Bar Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`column-chart`,type:`column-chart`,label:`Column Chart`,group:`bar-column`},{item:`grouped-column-chart`,type:`column-chart`,label:`Grouped Column Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-column-chart`,type:`column-chart`,label:`Stacked Column Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`line-chart`,type:`line-chart`,label:`Line Chart`,group:`line`},{item:`grouped-line-chart`,type:`line-chart`,label:`Grouped Line Chart`,group:`line`,options:{mode:`grouped`}},{item:`scatter-plot`,type:`scatter-plot`,label:`Scatter Plot`,group:`scatter-bubble`},{item:`scatter-group`,type:`scatter-plot`,label:`Scatter Group`,group:`scatter-bubble`},{item:`bubble-plot`,type:`scatter-plot`,label:`Bubble Plot`,group:`scatter-bubble`},{item:`colored-bubble-plot`,type:`scatter-plot`,label:`Colored Bubble Plot`,group:`scatter-bubble`},{item:`area-chart`,type:`area-chart`,label:`Area Chart`,group:`area`},{item:`stacked-area-chart`,type:`area-chart`,label:`Stacked Area Chart`,group:`area`,options:{mode:`stacked`}},{item:`100-area-chart`,type:`area-chart`,label:`100% Stacked Area Chart`,group:`area`,options:{mode:`100%`}},{item:`streamgraph`,type:`area-chart`,label:`Streamgraph`,group:`area`},{item:`pie-chart`,type:`donut-chart`,label:`Pie Chart`,group:`pie-donut`},{item:`donut-chart`,type:`donut-chart`,label:`Donut Chart`,group:`pie-donut`},{item:`semi-pie-chart`,type:`donut-chart`,label:`Semi Pie Chart`,group:`pie-donut`},{item:`semi-donut-chart`,type:`donut-chart`,label:`Semi Donut Chart`,group:`pie-donut`},{item:`bullet-chart`,type:`bullet-chart`,label:`Bullet Chart`,group:`gauges`},{item:`circular-gauge`,type:`circular-gauge`,label:`Circular Gauge`,group:`gauges`},{item:`conditional-number`,type:`conditional-number`,label:`Conditional Number`,group:`gauges`},{item:`speedometer-chart`,type:`speedometer-chart`,label:`Speedometer`,group:`gauges`},{item:`choropleth-map`,type:`choropleth-map`,label:`Choropleth Map`,group:`map`},{item:`symbol-map`,type:`symbol-map`,label:`Symbol Map`,group:`map`},{item:`marker-map`,type:`marker-map`,label:`Marker Map`,group:`map`},{item:`hexbin-map`,type:`hexbin-map`,label:`Hexbin Map`,group:`map`},{item:`heat-map`,type:`heat-map`,label:`Heat Map`,group:`map`},{item:`route-map`,type:`route-map`,label:`Route Map`,group:`map`},{item:`spike-map`,type:`spike-map`,label:`Spike Map`,group:`map`},{item:`treemap-chart`,type:`treemap-chart`,label:`Treemap Chart`,group:`hierarchical`},{item:`sunburst-chart`,type:`sunburst-chart`,label:`Sunburst Chart`,group:`hierarchical`},{item:`circle-pack-chart`,type:`circle-pack-chart`,label:`Circle Pack Chart`,group:`hierarchical`},{item:`combination-chart`,type:`combination-chart`,label:`Combination Chart`,group:`special`},{item:`parallel-coordinates-plot`,type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`,group:`special`},{item:`bubble-chart`,type:`bubble-chart`,label:`Bubble Chart`,group:`special`},{item:`strip-plot`,type:`strip-plot`,label:`Strip Plot`,group:`special`},{item:`radar-chart`,type:`radar-chart`,label:`Radar Chart`,group:`special`},{item:`pyramid-chart`,type:`pyramid-chart`,label:`Pyramid Chart`,group:`special`},{item:`funnel-chart`,type:`funnel-chart`,label:`Funnel Chart`,group:`special`},{item:`alluvial-diagram`,type:`alluvial-diagram`,label:`Alluvial Diagram`,group:`special`},{item:`sankey-diagram`,type:`sankey-diagram`,label:`Sankey Diagram`,group:`special`},{item:`venn-diagram`,type:`venn-diagram`,label:`Venn Diagram`,group:`special`},{item:`box-plot`,type:`box-plot`,label:`Box Plot`,group:`special`},{item:`heat-table`,type:`heat-table`,label:`Heat Table`,group:`special`},{item:`wordcloud-chart`,type:`wordcloud-chart`,label:`Wordcloud Chart`,group:`special`},{item:`ohlc-chart`,type:`ohlc-chart`,label:`OHLC Chart`,group:`financial`},{item:`candlestick-chart`,type:`ohlc-chart`,label:`Candlestick Chart`,group:`financial`}];exports.LuzmoAiChat=t.t,Object.defineProperty(exports,`LuzmoAiInteractionTextarea`,{enumerable:!0,get:function(){return o.t}}),Object.defineProperty(exports,`LuzmoDataFieldsSelect`,{enumerable:!0,get:function(){return A.t}}),exports.LuzmoDatasetIcon=r.t,exports.LuzmoDatasetSelectorList=i.t,exports.LuzmoDatasetSelectorRow=a.t,exports.LuzmoDisplaySettings=l.t,Object.defineProperty(exports,`LuzmoDisplaySettingsBinning`,{enumerable:!0,get:function(){return u.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsDatetime`,{enumerable:!0,get:function(){return d.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsGrandTotals`,{enumerable:!0,get:function(){return f.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsNumeric`,{enumerable:!0,get:function(){return p.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsPeriodOverPeriod`,{enumerable:!0,get:function(){return h.t}}),Object.defineProperty(exports,`LuzmoDraggableDataField`,{enumerable:!0,get:function(){return _.t}}),exports.LuzmoDraggableDataFieldLevel=g.t,Object.defineProperty(exports,`LuzmoDraggableDataFieldsPanel`,{enumerable:!0,get:function(){return b.t}}),Object.defineProperty(exports,`LuzmoDroppableSlot`,{enumerable:!0,get:function(){return E.t}}),Object.defineProperty(exports,`LuzmoEditFilters`,{enumerable:!0,get:function(){return ee.t}}),exports.LuzmoEditItem=O.t,exports.LuzmoEditOption=x.t,exports.LuzmoEditOptionActionButtonGroup=L.t,exports.LuzmoEditOptionColorPalettePicker=R.t,exports.LuzmoEditOptionColorPicker=z.t,exports.LuzmoEditOptionColorRange=B.t,exports.LuzmoEditOptionMultiLangField=V.t,exports.LuzmoEditOptionNumberField=H.t,exports.LuzmoEditOptionPicker=U.t,exports.LuzmoEditOptionPositionPicker=W.t,exports.LuzmoEditOptionPositionsNumberField=G.t,exports.LuzmoEditOptionRadioButtonGroup=K.t,exports.LuzmoEditOptionSlider=q.t,exports.LuzmoEditOptionSwitch=J.t,exports.LuzmoEditOptionTextField=Y.t,Object.defineProperty(exports,`LuzmoFilterExpressionPicker`,{enumerable:!0,get:function(){return k.t}}),Object.defineProperty(exports,`LuzmoFilterItem`,{enumerable:!0,get:function(){return I.t}}),exports.LuzmoFilterValuePicker=j.t,Object.defineProperty(exports,`LuzmoFilterValuePickerDatetime`,{enumerable:!0,get:function(){return M.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerHierarchy`,{enumerable:!0,get:function(){return P.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerNumeric`,{enumerable:!0,get:function(){return F.t}}),exports.LuzmoGrid=w.t,Object.defineProperty(exports,`LuzmoGridItemActionsMenu`,{enumerable:!0,get:function(){return w.n}}),Object.defineProperty(exports,`LuzmoItemDataDropPanel`,{enumerable:!0,get:function(){return S.t}}),Object.defineProperty(exports,`LuzmoItemDataPickerPanel`,{enumerable:!0,get:function(){return Z.t}}),Object.defineProperty(exports,`LuzmoSlotContentsPicker`,{enumerable:!0,get:function(){return X.t}}),exports.LuzmoSlotMenu=C.t,exports.LuzmoSlotMenuList=T.t,Object.defineProperty(exports,`LuzmoVizItemMenu`,{enumerable:!0,get:function(){return Q.t}}),exports.PeriodOverPeriodCondition=m.t,exports.buildAiMessageRequest=t.n,exports.convertDatasetsToDataFields=v.t,exports.createInitialProgress=t.r,exports.decomposeNumericFormat=c.t,exports.fetchStreamingResponse=t.i,exports.formatter=s.t,exports.getLocale=e.t,exports.getTheme=D.t,exports.hasProgressChunk=t.a,exports.itemGroups=$,exports.itemList=ne,exports.itemTypes=te,exports.loadDataFieldsForDatasets=y.t,exports.localize=n.t,exports.readNdjsonStream=t.o,exports.setLocale=e.n,exports.switchItem=N.t,exports.systemThemeIds=D.n,exports.targetLocales=e.r;
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./base-C_azywlB.cjs`),require(`./focus-visible-3ACCHno4.cjs`);const e=require(`./set-locale-CdlBx8s9.cjs`);require(`./localized-mixin-BhUvOsd7.cjs`);const t=require(`./ai-chat-BH0PuNwY.cjs`),n=require(`./localize-BBuZJf_h.cjs`),r=require(`./dataset-icon-C0cID-ra.cjs`);require(`./data-broker-BUIUM5hr.cjs`);const i=require(`./dataset-selector-list-DYsi3LBF.cjs`),a=require(`./dataset-selector-row-Qwz9WmR4.cjs`),o=require(`./ai-interaction-textarea-CcgFeoIg.cjs`),s=require(`./formatter-CWhf4xbq.cjs`),c=require(`./decompose-numeric-format-Bp_e62qP.cjs`),l=require(`./display-settings-Sh4LWJgN.cjs`),u=require(`./display-settings-binning-Bte25mmH.cjs`),d=require(`./display-settings-datetime-DAL8zjtk.cjs`);require(`./periods.const-CX2ZWWrf.cjs`);const f=require(`./display-settings-grand-totals-NWow1vhX.cjs`);require(`./calculate-data-field-icon-BhiGlh0u.cjs`);const p=require(`./display-settings-numeric-eG0gr9Jn.cjs`),m=require(`./period-over-period-condition.const-wVwKUthh.cjs`),h=require(`./display-settings-period-over-period-DjB0K-Zj.cjs`);require(`./get-css-variable-D9AU2CIU.cjs`);const g=require(`./draggable-data-field-level-CI1No5x8.cjs`),_=require(`./draggable-data-field-Cez4-c6O.cjs`),v=require(`./convert-datasets-to-data-fields-BV57XueO.cjs`),y=require(`./load-data-fields-for-datasets-B6cGgPld.cjs`),b=require(`./draggable-data-fields-panel-B0DzaGsv.cjs`),x=require(`./edit-option-CAqIUpWx.cjs`),S=require(`./item-data-drop-panel-jxlsaggu.cjs`),C=require(`./slot-menu-DIQ6h6Dz.cjs`),w=require(`./grid-By5MAIqI.cjs`),T=require(`./slot-menu-list-CFCvrPVt.cjs`),E=require(`./droppable-slot-CHtF9RZo.cjs`);require(`./slot-labels.config-BdrqhsYJ.cjs`);const D=require(`./themes-BZL9NfRc.cjs`),O=require(`./edit-item-C89gy9JF.cjs`),ee=require(`./edit-filters-CoVNGAfA.cjs`),k=require(`./filter-expression-picker-Dc3K44W0.cjs`),A=require(`./data-fields-select-_WjjNpcl.cjs`),j=require(`./filter-value-picker-CwQLOgTl.cjs`),M=require(`./filter-value-picker-datetime-By3czRqA.cjs`),N=require(`./utils-Dzbml7oI.cjs`),P=require(`./filter-value-picker-hierarchy-CpvItjbb.cjs`),F=require(`./filter-value-picker-numeric-Dq143AGo.cjs`),I=require(`./filter-item-C7i8LLr-.cjs`);require(`./edit-option-base-DBfRz1gO.cjs`);const L=require(`./edit-option-action-button-group-W34osCsN.cjs`),R=require(`./edit-option-color-palette-picker-CGj9Vnfe.cjs`),z=require(`./edit-option-color-picker-CCnSHbzk.cjs`),B=require(`./edit-option-color-range-DVYMhG2R.cjs`),V=require(`./edit-option-multi-language-field-47AjaXIw.cjs`),H=require(`./edit-option-number-field-BMXponHb.cjs`),U=require(`./edit-option-picker-CpCILJtP.cjs`),W=require(`./edit-option-position-picker-utD_OSQy.cjs`),G=require(`./edit-option-positions-number-field-CmK8_2ZQ.cjs`),K=require(`./edit-option-radio-button-group-BCVOZOhT.cjs`),q=require(`./edit-option-slider-B7ArGXrY.cjs`),J=require(`./edit-option-switch-ByyZ8LFD.cjs`),Y=require(`./edit-option-text-field-LTOr4mYL.cjs`),X=require(`./slot-contents-picker-CBxXz7nw.cjs`),Z=require(`./item-data-picker-panel-sWJGFZ7e.cjs`),Q=require(`./viz-item-menu-CGhptlJg.cjs`);require(`./types.cjs`);const $=[{key:`general`,label:`General`},{key:`filters`,label:`Filters`},{key:`bar-column`,label:`Bar & Column Charts`},{key:`line`,label:`Line Charts`},{key:`scatter-bubble`,label:`Scatter & Bubble Plots`},{key:`area`,label:`Area Charts`},{key:`pie-donut`,label:`Pie & Donut`},{key:`gauges`,label:`Gauges`},{key:`map`,label:`Map Charts`},{key:`hierarchical`,label:`Hierarchical Charts`},{key:`special`,label:`Special Charts`},{key:`financial`,label:`Financial Charts`}],te=[{type:`area-chart`,label:`Area Chart`},{type:`bar-chart`,label:`Bar Chart`},{type:`box-plot`,label:`Box Plot`},{type:`bubble-chart`,label:`Bubble Chart`},{type:`bullet-chart`,label:`Bullet Chart`},{type:`choropleth-map`,label:`Choropleth Map`},{type:`circle-pack-chart`,label:`Circle Pack Chart`},{type:`circular-gauge`,label:`Circular Gauge`},{type:`column-chart`,label:`Column Chart`},{type:`combination-chart`,label:`Combination Chart`},{type:`conditional-number`,label:`Conditional Number`},{type:`date-comparison-filter`,label:`Date Comparison Filter`},{type:`date-filter`,label:`Date Filter`},{type:`donut-chart`,label:`Donut Chart`},{type:`dropdown-filter`,label:`Dropdown Filter`},{type:`evolution-number`,label:`Evolution Number`},{type:`funnel-chart`,label:`Funnel Chart`},{type:`heat-map`,label:`Heat Map`},{type:`heat-table`,label:`Heat Table`},{type:`hexbin-map`,label:`Hexbin Map`},{type:`image`,label:`Image`},{type:`line-chart`,label:`Line Chart`},{type:`marker-map`,label:`Marker Map`},{type:`ohlc-chart`,label:`OHLC Chart`},{type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`},{type:`pivot-table`,label:`Pivot Table`},{type:`pyramid-chart`,label:`Pyramid Chart`},{type:`radar-chart`,label:`Radar Chart`},{type:`regular-table`,label:`Regular Table`},{type:`route-map`,label:`Route Map`},{type:`sankey-diagram`,label:`Sankey Diagram`},{type:`scatter-plot`,label:`Scatter Plot`},{type:`search-filter`,label:`Search Filter`},{type:`slicer-filter`,label:`Slicer Filter`},{type:`slider-filter`,label:`Slider Filter`},{type:`speedometer-chart`,label:`Speedometer Chart`},{type:`spike-map`,label:`Spike Map`},{type:`strip-plot`,label:`Strip Plot`},{type:`sunburst-chart`,label:`Sunburst Chart`},{type:`symbol-map`,label:`Symbol Map`},{type:`text`,label:`Text`},{type:`treemap-chart`,label:`Treemap Chart`},{type:`video`,label:`Video`},{type:`wordcloud-chart`,label:`Wordcloud Chart`}],ne=[{item:`text`,type:`text`,label:`Text`,group:`general`},{item:`image`,type:`image`,label:`Image`,group:`general`},{item:`evolution-number`,type:`evolution-number`,label:`Number with evolution`,group:`general`},{item:`video`,type:`video`,label:`Video`,group:`general`},{item:`regular-table`,type:`regular-table`,label:`Regular Table`,group:`general`},{item:`pivot-table`,type:`pivot-table`,label:`Pivot Table`,group:`general`},{item:`spacer`,type:`spacer`,label:`Spacer`,group:`general`},{item:`date-comparison-filter`,type:`date-comparison-filter`,label:`Date Comparison Filter`,group:`filters`},{item:`date-filter`,type:`date-filter`,label:`Date Filter`,group:`filters`},{item:`slider-filter`,type:`slider-filter`,label:`Slider Filter`,group:`filters`},{item:`search-filter`,type:`search-filter`,label:`Search Filter`,group:`filters`},{item:`dropdown-filter`,type:`dropdown-filter`,label:`Dropdown Filter`,group:`filters`},{item:`slicer-filter-vertical`,type:`slicer`,label:`Slicer Filter`,group:`filters`,options:{layout:{alignment:`vertical`}}},{item:`slicer-filter-horizontal`,type:`slicer`,label:`Slicer Filter Horizontal`,group:`filters`,options:{layout:{alignment:`horizontal`}}},{item:`slicer-filter-table`,type:`slicer`,label:`Slicer Filter Table`,group:`filters`,options:{layout:{alignment:`table`}}},{item:`rank-slicer-filter`,type:`slicer`,label:`Rank Slicer Filter`,group:`filters`,options:{layout:{alignment:`rank-vertical`}}},{item:`bar-chart`,type:`bar-chart`,label:`Bar Chart`,group:`bar-column`},{item:`grouped-bar-chart`,type:`bar-chart`,label:`Grouped Bar Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-bar-chart`,type:`bar-chart`,label:`Stacked Bar Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`column-chart`,type:`column-chart`,label:`Column Chart`,group:`bar-column`},{item:`grouped-column-chart`,type:`column-chart`,label:`Grouped Column Chart`,group:`bar-column`,options:{mode:`grouped`}},{item:`stacked-column-chart`,type:`column-chart`,label:`Stacked Column Chart`,group:`bar-column`,options:{mode:`stacked`}},{item:`line-chart`,type:`line-chart`,label:`Line Chart`,group:`line`},{item:`grouped-line-chart`,type:`line-chart`,label:`Grouped Line Chart`,group:`line`,options:{mode:`grouped`}},{item:`scatter-plot`,type:`scatter-plot`,label:`Scatter Plot`,group:`scatter-bubble`},{item:`scatter-group`,type:`scatter-plot`,label:`Scatter Group`,group:`scatter-bubble`},{item:`bubble-plot`,type:`scatter-plot`,label:`Bubble Plot`,group:`scatter-bubble`},{item:`colored-bubble-plot`,type:`scatter-plot`,label:`Colored Bubble Plot`,group:`scatter-bubble`},{item:`area-chart`,type:`area-chart`,label:`Area Chart`,group:`area`},{item:`stacked-area-chart`,type:`area-chart`,label:`Stacked Area Chart`,group:`area`,options:{mode:`stacked`}},{item:`100-area-chart`,type:`area-chart`,label:`100% Stacked Area Chart`,group:`area`,options:{mode:`100%`}},{item:`streamgraph`,type:`area-chart`,label:`Streamgraph`,group:`area`},{item:`pie-chart`,type:`donut-chart`,label:`Pie Chart`,group:`pie-donut`},{item:`donut-chart`,type:`donut-chart`,label:`Donut Chart`,group:`pie-donut`},{item:`semi-pie-chart`,type:`donut-chart`,label:`Semi Pie Chart`,group:`pie-donut`},{item:`semi-donut-chart`,type:`donut-chart`,label:`Semi Donut Chart`,group:`pie-donut`},{item:`bullet-chart`,type:`bullet-chart`,label:`Bullet Chart`,group:`gauges`},{item:`circular-gauge`,type:`circular-gauge`,label:`Circular Gauge`,group:`gauges`},{item:`conditional-number`,type:`conditional-number`,label:`Conditional Number`,group:`gauges`},{item:`speedometer-chart`,type:`speedometer-chart`,label:`Speedometer`,group:`gauges`},{item:`choropleth-map`,type:`choropleth-map`,label:`Choropleth Map`,group:`map`},{item:`symbol-map`,type:`symbol-map`,label:`Symbol Map`,group:`map`},{item:`marker-map`,type:`marker-map`,label:`Marker Map`,group:`map`},{item:`hexbin-map`,type:`hexbin-map`,label:`Hexbin Map`,group:`map`},{item:`heat-map`,type:`heat-map`,label:`Heat Map`,group:`map`},{item:`route-map`,type:`route-map`,label:`Route Map`,group:`map`},{item:`spike-map`,type:`spike-map`,label:`Spike Map`,group:`map`},{item:`treemap-chart`,type:`treemap-chart`,label:`Treemap Chart`,group:`hierarchical`},{item:`sunburst-chart`,type:`sunburst-chart`,label:`Sunburst Chart`,group:`hierarchical`},{item:`circle-pack-chart`,type:`circle-pack-chart`,label:`Circle Pack Chart`,group:`hierarchical`},{item:`combination-chart`,type:`combination-chart`,label:`Combination Chart`,group:`special`},{item:`parallel-coordinates-plot`,type:`parallel-coordinates-plot`,label:`Parallel Coordinates Plot`,group:`special`},{item:`bubble-chart`,type:`bubble-chart`,label:`Bubble Chart`,group:`special`},{item:`strip-plot`,type:`strip-plot`,label:`Strip Plot`,group:`special`},{item:`radar-chart`,type:`radar-chart`,label:`Radar Chart`,group:`special`},{item:`pyramid-chart`,type:`pyramid-chart`,label:`Pyramid Chart`,group:`special`},{item:`funnel-chart`,type:`funnel-chart`,label:`Funnel Chart`,group:`special`},{item:`alluvial-diagram`,type:`alluvial-diagram`,label:`Alluvial Diagram`,group:`special`},{item:`sankey-diagram`,type:`sankey-diagram`,label:`Sankey Diagram`,group:`special`},{item:`venn-diagram`,type:`venn-diagram`,label:`Venn Diagram`,group:`special`},{item:`box-plot`,type:`box-plot`,label:`Box Plot`,group:`special`},{item:`heat-table`,type:`heat-table`,label:`Heat Table`,group:`special`},{item:`wordcloud-chart`,type:`wordcloud-chart`,label:`Wordcloud Chart`,group:`special`},{item:`ohlc-chart`,type:`ohlc-chart`,label:`OHLC Chart`,group:`financial`},{item:`candlestick-chart`,type:`ohlc-chart`,label:`Candlestick Chart`,group:`financial`}];exports.LuzmoAiChat=t.t,Object.defineProperty(exports,`LuzmoAiInteractionTextarea`,{enumerable:!0,get:function(){return o.t}}),Object.defineProperty(exports,`LuzmoDataFieldsSelect`,{enumerable:!0,get:function(){return A.t}}),exports.LuzmoDatasetIcon=r.t,exports.LuzmoDatasetSelectorList=i.t,exports.LuzmoDatasetSelectorRow=a.t,exports.LuzmoDisplaySettings=l.t,Object.defineProperty(exports,`LuzmoDisplaySettingsBinning`,{enumerable:!0,get:function(){return u.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsDatetime`,{enumerable:!0,get:function(){return d.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsGrandTotals`,{enumerable:!0,get:function(){return f.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsNumeric`,{enumerable:!0,get:function(){return p.t}}),Object.defineProperty(exports,`LuzmoDisplaySettingsPeriodOverPeriod`,{enumerable:!0,get:function(){return h.t}}),Object.defineProperty(exports,`LuzmoDraggableDataField`,{enumerable:!0,get:function(){return _.t}}),exports.LuzmoDraggableDataFieldLevel=g.t,Object.defineProperty(exports,`LuzmoDraggableDataFieldsPanel`,{enumerable:!0,get:function(){return b.t}}),Object.defineProperty(exports,`LuzmoDroppableSlot`,{enumerable:!0,get:function(){return E.t}}),Object.defineProperty(exports,`LuzmoEditFilters`,{enumerable:!0,get:function(){return ee.t}}),exports.LuzmoEditItem=O.t,exports.LuzmoEditOption=x.t,exports.LuzmoEditOptionActionButtonGroup=L.t,exports.LuzmoEditOptionColorPalettePicker=R.t,exports.LuzmoEditOptionColorPicker=z.t,exports.LuzmoEditOptionColorRange=B.t,exports.LuzmoEditOptionMultiLangField=V.t,exports.LuzmoEditOptionNumberField=H.t,exports.LuzmoEditOptionPicker=U.t,exports.LuzmoEditOptionPositionPicker=W.t,exports.LuzmoEditOptionPositionsNumberField=G.t,exports.LuzmoEditOptionRadioButtonGroup=K.t,exports.LuzmoEditOptionSlider=q.t,exports.LuzmoEditOptionSwitch=J.t,exports.LuzmoEditOptionTextField=Y.t,Object.defineProperty(exports,`LuzmoFilterExpressionPicker`,{enumerable:!0,get:function(){return k.t}}),Object.defineProperty(exports,`LuzmoFilterItem`,{enumerable:!0,get:function(){return I.t}}),exports.LuzmoFilterValuePicker=j.t,Object.defineProperty(exports,`LuzmoFilterValuePickerDatetime`,{enumerable:!0,get:function(){return M.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerHierarchy`,{enumerable:!0,get:function(){return P.t}}),Object.defineProperty(exports,`LuzmoFilterValuePickerNumeric`,{enumerable:!0,get:function(){return F.t}}),exports.LuzmoGrid=w.t,Object.defineProperty(exports,`LuzmoGridItemActionsMenu`,{enumerable:!0,get:function(){return w.n}}),Object.defineProperty(exports,`LuzmoItemDataDropPanel`,{enumerable:!0,get:function(){return S.t}}),Object.defineProperty(exports,`LuzmoItemDataPickerPanel`,{enumerable:!0,get:function(){return Z.t}}),Object.defineProperty(exports,`LuzmoSlotContentsPicker`,{enumerable:!0,get:function(){return X.t}}),exports.LuzmoSlotMenu=C.t,exports.LuzmoSlotMenuList=T.t,Object.defineProperty(exports,`LuzmoVizItemMenu`,{enumerable:!0,get:function(){return Q.t}}),exports.PeriodOverPeriodCondition=m.t,exports.buildAiMessageRequest=t.n,exports.convertDatasetsToDataFields=v.t,exports.createInitialProgress=t.r,exports.decomposeNumericFormat=c.t,exports.fetchStreamingResponse=t.i,exports.formatter=s.t,exports.getLocale=e.t,exports.getTheme=D.t,exports.hasProgressChunk=t.a,exports.itemGroups=$,exports.itemList=ne,exports.itemTypes=te,exports.loadDataFieldsForDatasets=y.t,exports.localize=n.t,exports.readNdjsonStream=t.o,exports.setLocale=e.n,exports.switchItem=N.t,exports.systemThemeIds=D.n,exports.targetLocales=e.r;
|
package/components/index.js
CHANGED
|
@@ -28,7 +28,7 @@ import "./base-rg2x95aL.js";
|
|
|
28
28
|
import "./focus-visible-D1pJhWEh.js";
|
|
29
29
|
import { n as setLocale, r as targetLocales, t as getLocale } from "./set-locale-C3o6ooUV.js";
|
|
30
30
|
import "./localized-mixin-HngLqDZn.js";
|
|
31
|
-
import { a as hasProgressChunk, i as fetchStreamingResponse, n as buildAiMessageRequest, o as readNdjsonStream, r as createInitialProgress, t as LuzmoAiChat } from "./ai-chat-
|
|
31
|
+
import { a as hasProgressChunk, i as fetchStreamingResponse, n as buildAiMessageRequest, o as readNdjsonStream, r as createInitialProgress, t as LuzmoAiChat } from "./ai-chat-BEjlRutF.js";
|
|
32
32
|
import { t as localize } from "./localize-Dlt3EN5i.js";
|
|
33
33
|
import { t as LuzmoDatasetIcon } from "./dataset-icon-DhF21dXC.js";
|
|
34
34
|
import "./data-broker-cLR-t5LM.js";
|
|
@@ -83,7 +83,7 @@ import { t as LuzmoEditOptionRadioButtonGroup } from "./edit-option-radio-button
|
|
|
83
83
|
import { t as LuzmoEditOptionSlider } from "./edit-option-slider-Ozb3RBHW.js";
|
|
84
84
|
import { t as LuzmoEditOptionSwitch } from "./edit-option-switch-BUjPU49i.js";
|
|
85
85
|
import { t as LuzmoEditOptionTextField } from "./edit-option-text-field-CjdGtevT.js";
|
|
86
|
-
import { t as LuzmoSlotContentsPicker } from "./slot-contents-picker-
|
|
86
|
+
import { t as LuzmoSlotContentsPicker } from "./slot-contents-picker-DrDo62G7.js";
|
|
87
87
|
import { t as LuzmoItemDataPickerPanel } from "./item-data-picker-panel-C7wyaWko.js";
|
|
88
88
|
import { t as LuzmoVizItemMenu } from "./viz-item-menu-BX_S-XUm.js";
|
|
89
89
|
import "./types.js";
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CdlBx8s9.cjs`),require(`../localized-mixin-BhUvOsd7.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-Sh4LWJgN.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DIQ6h6Dz.cjs`),require(`../slot-menu-list-CFCvrPVt.cjs`),require(`../slot-labels.config-BdrqhsYJ.cjs`),require(`../data-fields-select-_WjjNpcl.cjs`),require(`../slot-contents-picker-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CdlBx8s9.cjs`),require(`../localized-mixin-BhUvOsd7.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-Sh4LWJgN.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DIQ6h6Dz.cjs`),require(`../slot-menu-list-CFCvrPVt.cjs`),require(`../slot-labels.config-BdrqhsYJ.cjs`),require(`../data-fields-select-_WjjNpcl.cjs`),require(`../slot-contents-picker-CBxXz7nw.cjs`);const e=require(`../item-data-picker-panel-sWJGFZ7e.cjs`);Object.defineProperty(exports,`LuzmoItemDataPickerPanel`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -37,6 +37,6 @@ import "../slot-menu-B3L8YEnv.js";
|
|
|
37
37
|
import "../slot-menu-list-BLJxoLeI.js";
|
|
38
38
|
import "../slot-labels.config-BNi-I1ba.js";
|
|
39
39
|
import "../data-fields-select-CHOKEMb2.js";
|
|
40
|
-
import "../slot-contents-picker-
|
|
40
|
+
import "../slot-contents-picker-DrDo62G7.js";
|
|
41
41
|
import { t as LuzmoItemDataPickerPanel } from "../item-data-picker-panel-C7wyaWko.js";
|
|
42
42
|
export { LuzmoItemDataPickerPanel };
|
|
@@ -17,4 +17,4 @@
|
|
|
17
17
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
18
18
|
* SOFTWARE.
|
|
19
19
|
* */
|
|
20
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CdlBx8s9.cjs`),require(`../localized-mixin-BhUvOsd7.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-Sh4LWJgN.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DIQ6h6Dz.cjs`),require(`../slot-menu-list-CFCvrPVt.cjs`),require(`../data-fields-select-_WjjNpcl.cjs`);const e=require(`../slot-contents-picker-
|
|
20
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../base-C_azywlB.cjs`),require(`../focus-visible-3ACCHno4.cjs`),require(`../set-locale-CdlBx8s9.cjs`),require(`../localized-mixin-BhUvOsd7.cjs`),require(`../data-broker-BUIUM5hr.cjs`),require(`../formatter-CWhf4xbq.cjs`),require(`../display-settings-Sh4LWJgN.cjs`),require(`../periods.const-CX2ZWWrf.cjs`),require(`../calculate-data-field-icon-BhiGlh0u.cjs`),require(`../get-css-variable-D9AU2CIU.cjs`),require(`../slot-menu-DIQ6h6Dz.cjs`),require(`../slot-menu-list-CFCvrPVt.cjs`),require(`../data-fields-select-_WjjNpcl.cjs`);const e=require(`../slot-contents-picker-CBxXz7nw.cjs`);Object.defineProperty(exports,`LuzmoSlotContentsPicker`,{enumerable:!0,get:function(){return e.t}});
|
|
@@ -36,5 +36,5 @@ import "../calculate-data-field-icon-CY7Y6fn1.js";
|
|
|
36
36
|
import "../slot-menu-B3L8YEnv.js";
|
|
37
37
|
import "../slot-menu-list-BLJxoLeI.js";
|
|
38
38
|
import "../data-fields-select-CHOKEMb2.js";
|
|
39
|
-
import { t as LuzmoSlotContentsPicker } from "../slot-contents-picker-
|
|
39
|
+
import { t as LuzmoSlotContentsPicker } from "../slot-contents-picker-DrDo62G7.js";
|
|
40
40
|
export { LuzmoSlotContentsPicker };
|
|
@@ -65,6 +65,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
65
65
|
slot-type=${this.slotConfiguration?.type}
|
|
66
66
|
slot-name=${(0,h.ifDefined)(this.slotName)}
|
|
67
67
|
item-type=${(0,h.ifDefined)(this.itemType)}
|
|
68
|
+
.areGrandTotalsEnabled=${this.slotConfiguration?.options?.areGrandTotalsEnabled}
|
|
69
|
+
.areDatetimeOptionsEnabled=${this.slotConfiguration?.options?.areDatetimeOptionsEnabled}
|
|
70
|
+
.isBinningDisabled=${this.slotConfiguration?.options?.isBinningDisabled}
|
|
71
|
+
.isAggregationDisabled=${this.slotConfiguration?.options?.isAggregationDisabled}
|
|
72
|
+
.isCumulativeSumEnabled=${this.slotConfiguration?.options?.isCumulativeSumEnabled}
|
|
68
73
|
.slotIndex=${n}
|
|
69
74
|
variant="popup"
|
|
70
75
|
.size=${this.size}
|
|
@@ -93,6 +98,11 @@ const e=require(`./chunk-350yNsax.cjs`),t=require(`./base-C_azywlB.cjs`),n=requi
|
|
|
93
98
|
slot-type=${this.slotConfiguration?.type}
|
|
94
99
|
slot-name=${(0,h.ifDefined)(this.slotName)}
|
|
95
100
|
item-type=${(0,h.ifDefined)(this.itemType)}
|
|
101
|
+
.areGrandTotalsEnabled=${this.slotConfiguration?.options?.areGrandTotalsEnabled}
|
|
102
|
+
.areDatetimeOptionsEnabled=${this.slotConfiguration?.options?.areDatetimeOptionsEnabled}
|
|
103
|
+
.isBinningDisabled=${this.slotConfiguration?.options?.isBinningDisabled}
|
|
104
|
+
.isAggregationDisabled=${this.slotConfiguration?.options?.isAggregationDisabled}
|
|
105
|
+
.isCumulativeSumEnabled=${this.slotConfiguration?.options?.isCumulativeSumEnabled}
|
|
96
106
|
variant="popup"
|
|
97
107
|
.size=${this.size}
|
|
98
108
|
@luzmo-slot-contents-changed=${this._onSlotMenuChanges}
|
|
@@ -238,6 +238,11 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
238
238
|
slot-type=${this.slotConfiguration?.type}
|
|
239
239
|
slot-name=${ifDefined(this.slotName)}
|
|
240
240
|
item-type=${ifDefined(this.itemType)}
|
|
241
|
+
.areGrandTotalsEnabled=${this.slotConfiguration?.options?.areGrandTotalsEnabled}
|
|
242
|
+
.areDatetimeOptionsEnabled=${this.slotConfiguration?.options?.areDatetimeOptionsEnabled}
|
|
243
|
+
.isBinningDisabled=${this.slotConfiguration?.options?.isBinningDisabled}
|
|
244
|
+
.isAggregationDisabled=${this.slotConfiguration?.options?.isAggregationDisabled}
|
|
245
|
+
.isCumulativeSumEnabled=${this.slotConfiguration?.options?.isCumulativeSumEnabled}
|
|
241
246
|
.slotIndex=${S}
|
|
242
247
|
variant="popup"
|
|
243
248
|
.size=${this.size}
|
|
@@ -271,6 +276,11 @@ var slot_contents_picker_module_default = ":host{--luzmo-select-inline-size:100%
|
|
|
271
276
|
slot-type=${this.slotConfiguration?.type}
|
|
272
277
|
slot-name=${ifDefined(this.slotName)}
|
|
273
278
|
item-type=${ifDefined(this.itemType)}
|
|
279
|
+
.areGrandTotalsEnabled=${this.slotConfiguration?.options?.areGrandTotalsEnabled}
|
|
280
|
+
.areDatetimeOptionsEnabled=${this.slotConfiguration?.options?.areDatetimeOptionsEnabled}
|
|
281
|
+
.isBinningDisabled=${this.slotConfiguration?.options?.isBinningDisabled}
|
|
282
|
+
.isAggregationDisabled=${this.slotConfiguration?.options?.isAggregationDisabled}
|
|
283
|
+
.isCumulativeSumEnabled=${this.slotConfiguration?.options?.isCumulativeSumEnabled}
|
|
274
284
|
variant="popup"
|
|
275
285
|
.size=${this.size}
|
|
276
286
|
@luzmo-slot-contents-changed=${this._onSlotMenuChanges}
|
package/custom-elements.json
CHANGED
|
@@ -297,6 +297,16 @@
|
|
|
297
297
|
"description": "API version",
|
|
298
298
|
"attribute": "api-version"
|
|
299
299
|
},
|
|
300
|
+
{
|
|
301
|
+
"kind": "field",
|
|
302
|
+
"name": "stream",
|
|
303
|
+
"type": {
|
|
304
|
+
"text": "boolean"
|
|
305
|
+
},
|
|
306
|
+
"default": "true",
|
|
307
|
+
"description": "When true, uses NDJSON streaming for AI responses.\nWhen false, uses a single JSON response.",
|
|
308
|
+
"attribute": "stream"
|
|
309
|
+
},
|
|
300
310
|
{
|
|
301
311
|
"kind": "field",
|
|
302
312
|
"name": "loadingMessage",
|
|
@@ -528,6 +538,15 @@
|
|
|
528
538
|
"description": "API version",
|
|
529
539
|
"fieldName": "apiVersion"
|
|
530
540
|
},
|
|
541
|
+
{
|
|
542
|
+
"name": "stream",
|
|
543
|
+
"type": {
|
|
544
|
+
"text": "boolean"
|
|
545
|
+
},
|
|
546
|
+
"default": "true",
|
|
547
|
+
"description": "When true, uses NDJSON streaming for AI responses.\nWhen false, uses a single JSON response.",
|
|
548
|
+
"fieldName": "stream"
|
|
549
|
+
},
|
|
531
550
|
{
|
|
532
551
|
"name": "loading-message",
|
|
533
552
|
"type": {
|