@sisense/sdk-ui 2.1.0 → 2.2.0
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/dist/ai.cjs +9 -9
- package/dist/ai.js +525 -636
- package/dist/analytics-composer.cjs +1 -1
- package/dist/analytics-composer.js +70 -70
- package/dist/{derive-chart-family-DjbiaKLQ.cjs → derive-chart-family-BsbFdcgd.cjs} +129 -129
- package/dist/{derive-chart-family-BNMFblR9.js → derive-chart-family-C9IDI6UV.js} +11273 -11244
- package/dist/{dimensions-DeTiL-EZ.js → dimensions-HgrcPa-Q.js} +1 -1
- package/dist/{dimensions-DcsEnPSY.cjs → dimensions-mYUylB-h.cjs} +1 -1
- package/dist/index.cjs +25 -21
- package/dist/index.js +13422 -10141
- package/dist/packages/sdk-ui/src/api/rest-api.d.ts +1 -0
- package/dist/packages/sdk-ui/src/api/types/dashboard-dto.d.ts +7 -0
- package/dist/packages/sdk-ui/src/common/hooks/use-state-with-history.d.ts +64 -0
- package/dist/packages/sdk-ui/src/dashboard/components/content-panel.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/dashboard-header.d.ts +1 -1
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/cell-drop-overlay.d.ts +34 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-line.d.ts +24 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/draggable-widget-wrapper.d.ts +28 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/droppable-zone.d.ts +23 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-columns.d.ts +31 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/resizable-row.d.ts +39 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/components/row-drop-overlay.d.ts +30 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/const.d.ts +11 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/editable-layout.d.ts +28 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/helpers.d.ts +42 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/types.d.ts +78 -0
- package/dist/packages/sdk-ui/src/dashboard/components/editable-layout/utils.d.ts +5 -0
- package/dist/packages/sdk-ui/src/dashboard/constants.d.ts +0 -2
- package/dist/packages/sdk-ui/src/dashboard/dashboard.d.ts +7 -1
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-dashboard-header-toolbar.d.ts +17 -0
- package/dist/packages/sdk-ui/src/dashboard/hooks/use-edit-mode-toolbar.d.ts +52 -0
- package/dist/packages/sdk-ui/src/dashboard/types.d.ts +9 -1
- package/dist/packages/sdk-ui/src/dashboard/use-dashboard-theme.d.ts +4 -0
- package/dist/packages/sdk-ui/src/error-boundary/error-boundary.d.ts +6 -2
- package/dist/packages/sdk-ui/src/index.d.ts +1 -1
- package/dist/packages/sdk-ui/src/models/dashboard/dashboard-model.d.ts +7 -0
- package/dist/packages/sdk-ui/src/models/dashboard/translate-dashboard-dto-utils.d.ts +3 -1
- package/dist/packages/sdk-ui/src/models/dashboard/types.d.ts +30 -18
- package/dist/packages/sdk-ui/src/models/dashboard/use-dashboard-model/use-dashboard-model-reducer.d.ts +14 -5
- package/dist/packages/sdk-ui/src/props.d.ts +4 -1
- package/dist/packages/sdk-ui/src/theme-provider/default-theme-settings.d.ts +3 -0
- package/dist/packages/sdk-ui/src/translation/resources/en.d.ts +9 -0
- package/dist/packages/sdk-ui/src/translation/resources/index.d.ts +18 -0
- package/dist/packages/sdk-ui/src/types.d.ts +14 -0
- package/dist/{use-common-filters-DcFu4qRs.cjs → use-common-filters-BKYG6WGA.cjs} +47 -47
- package/dist/{use-common-filters-CJNwlbbh.js → use-common-filters-DkwU7HJ3.js} +3685 -3550
- package/dist/{widget-composer-BEVCXjFv.js → widget-composer-CACtfvw6.js} +98 -95
- package/dist/{widget-composer-fYnr8SDo.cjs → widget-composer-JVl8mNCt.cjs} +1 -1
- package/package.json +10 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var Fn=Object.defineProperty,Kn=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var Qe=Object.getOwnPropertySymbols;var as=Object.prototype.hasOwnProperty,ls=Object.prototype.propertyIsEnumerable;var kt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e);var os=(e,t,s)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))as.call(t,s)&&os(e,s,t[s]);if(Qe)for(var s of Qe(t))ls.call(t,s)&&os(e,s,t[s]);return e},J=(e,t)=>Kn(e,jn(t));var cs=(e,t)=>{var s={};for(var n in e)as.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&Qe)for(var n of Qe(e))t.indexOf(n)<0&&ls.call(e,n)&&(s[n]=e[n]);return s};var Et=(e,t,s)=>new Promise((n,i)=>{var r=l=>{try{a(s.next(l))}catch(c){i(c)}},o=l=>{try{a(s.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,o);a((s=s.apply(e,t)).next())}),qn=function(e,t){this[0]=e,this[1]=t};var d=e=>{var t=e[kt("asyncIterator")],s=!1,n,i={};return t==null?(t=e[kt("iterator")](),n=r=>i[r]=o=>t[r](o)):(t=t.call(e),n=r=>i[r]=o=>{if(s){if(s=!1,r==="throw")throw o;return o}return s=!0,{done:!1,value:new qn(new Promise(a=>{var l=t[r](o);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),i[kt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=r=>{throw r},"return"in t&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./widget-composer-
|
|
1
|
+
"use strict";var Fn=Object.defineProperty,Kn=Object.defineProperties;var jn=Object.getOwnPropertyDescriptors;var Qe=Object.getOwnPropertySymbols;var as=Object.prototype.hasOwnProperty,ls=Object.prototype.propertyIsEnumerable;var kt=(e,t)=>(t=Symbol[e])?t:Symbol.for("Symbol."+e);var os=(e,t,s)=>t in e?Fn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))as.call(t,s)&&os(e,s,t[s]);if(Qe)for(var s of Qe(t))ls.call(t,s)&&os(e,s,t[s]);return e},J=(e,t)=>Kn(e,jn(t));var cs=(e,t)=>{var s={};for(var n in e)as.call(e,n)&&t.indexOf(n)<0&&(s[n]=e[n]);if(e!=null&&Qe)for(var n of Qe(e))t.indexOf(n)<0&&ls.call(e,n)&&(s[n]=e[n]);return s};var Et=(e,t,s)=>new Promise((n,i)=>{var r=l=>{try{a(s.next(l))}catch(c){i(c)}},o=l=>{try{a(s.throw(l))}catch(c){i(c)}},a=l=>l.done?n(l.value):Promise.resolve(l.value).then(r,o);a((s=s.apply(e,t)).next())}),qn=function(e,t){this[0]=e,this[1]=t};var d=e=>{var t=e[kt("asyncIterator")],s=!1,n,i={};return t==null?(t=e[kt("iterator")](),n=r=>i[r]=o=>t[r](o)):(t=t.call(e),n=r=>i[r]=o=>{if(s){if(s=!1,r==="throw")throw o;return o}return s=!0,{done:!1,value:new qn(new Promise(a=>{var l=t[r](o);if(!(l instanceof Object))throw TypeError("Object expected");a(l)}),1)}}),i[kt("iterator")]=()=>i,n("next"),"throw"in t?n("throw"):i.throw=r=>{throw r},"return"in t&&n("return"),i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const k=require("./widget-composer-JVl8mNCt.cjs"),T=require("./derive-chart-family-BsbFdcgd.cjs"),rt=require("./dimensions-mYUylB-h.cjs"),zt=Symbol.for("yaml.alias"),Mt=Symbol.for("yaml.document"),ee=Symbol.for("yaml.map"),Is=Symbol.for("yaml.pair"),Z=Symbol.for("yaml.scalar"),Ne=Symbol.for("yaml.seq"),Y=Symbol.for("yaml.node.type"),fe=e=>!!e&&typeof e=="object"&&e[Y]===zt,Te=e=>!!e&&typeof e=="object"&&e[Y]===Mt,Ie=e=>!!e&&typeof e=="object"&&e[Y]===ee,_=e=>!!e&&typeof e=="object"&&e[Y]===Is,L=e=>!!e&&typeof e=="object"&&e[Y]===Z,Ce=e=>!!e&&typeof e=="object"&&e[Y]===Ne;function D(e){if(e&&typeof e=="object")switch(e[Y]){case ee:case Ne:return!0}return!1}function B(e){if(e&&typeof e=="object")switch(e[Y]){case zt:case ee:case Z:case Ne:return!0}return!1}const zn=e=>(L(e)||D(e))&&!!e.anchor,U=Symbol("break visit"),Cs=Symbol("skip children"),H=Symbol("remove node");function te(e,t){const s=Ls(t);Te(e)?me(null,e.contents,s,Object.freeze([e]))===H&&(e.contents=null):me(null,e,s,Object.freeze([]))}te.BREAK=U;te.SKIP=Cs;te.REMOVE=H;function me(e,t,s,n){const i=_s(e,t,s,n);if(B(i)||_(i))return Ms(e,n,i),me(e,i,s,n);if(typeof i!="symbol"){if(D(t)){n=Object.freeze(n.concat(t));for(let r=0;r<t.items.length;++r){const o=me(r,t.items[r],s,n);if(typeof o=="number")r=o-1;else{if(o===U)return U;o===H&&(t.items.splice(r,1),r-=1)}}}else if(_(t)){n=Object.freeze(n.concat(t));const r=me("key",t.key,s,n);if(r===U)return U;r===H&&(t.key=null);const o=me("value",t.value,s,n);if(o===U)return U;o===H&&(t.value=null)}}return i}function ot(e,t){return Et(this,null,function*(){const s=Ls(t);Te(e)?(yield ye(null,e.contents,s,Object.freeze([e])))===H&&(e.contents=null):yield ye(null,e,s,Object.freeze([]))})}ot.BREAK=U;ot.SKIP=Cs;ot.REMOVE=H;function ye(e,t,s,n){return Et(this,null,function*(){const i=yield _s(e,t,s,n);if(B(i)||_(i))return Ms(e,n,i),ye(e,i,s,n);if(typeof i!="symbol"){if(D(t)){n=Object.freeze(n.concat(t));for(let r=0;r<t.items.length;++r){const o=yield ye(r,t.items[r],s,n);if(typeof o=="number")r=o-1;else{if(o===U)return U;o===H&&(t.items.splice(r,1),r-=1)}}}else if(_(t)){n=Object.freeze(n.concat(t));const r=yield ye("key",t.key,s,n);if(r===U)return U;r===H&&(t.key=null);const o=yield ye("value",t.value,s,n);if(o===U)return U;o===H&&(t.value=null)}}return i})}function Ls(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function _s(e,t,s,n){var i,r,o,a,l;if(typeof s=="function")return s(e,t,n);if(Ie(t))return(i=s.Map)==null?void 0:i.call(s,e,t,n);if(Ce(t))return(r=s.Seq)==null?void 0:r.call(s,e,t,n);if(_(t))return(o=s.Pair)==null?void 0:o.call(s,e,t,n);if(L(t))return(a=s.Scalar)==null?void 0:a.call(s,e,t,n);if(fe(t))return(l=s.Alias)==null?void 0:l.call(s,e,t,n)}function Ms(e,t,s){const n=t[t.length-1];if(D(n))n.items[e]=s;else if(_(n))e==="key"?n.key=s:n.value=s;else if(Te(n))n.contents=s;else{const i=fe(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const Un={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},vn=e=>e.replace(/[!,[\]{}]/g,t=>Un[t]);class z{constructor(t,s){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},z.defaultYaml,t),this.tags=Object.assign({},z.defaultTags,s)}clone(){const t=new z(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new z(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:z.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},z.defaultTags);break}return t}add(t,s){this.atNextDocument&&(this.yaml={explicit:z.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},z.defaultTags),this.atNextDocument=!1);const n=t.trim().split(/[ \t]+/),i=n.shift();switch(i){case"%TAG":{if(n.length!==2&&(s(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[r,o]=n;return this.tags[r]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return s(0,"%YAML directive should contain exactly one part"),!1;const[r]=n;if(r==="1.1"||r==="1.2")return this.yaml.version=r,!0;{const o=/^\d+\.\d+$/.test(r);return s(6,`Unsupported YAML version ${r}`,o),!1}}default:return s(0,`Unknown directive ${i}`,!0),!1}}tagName(t,s){if(t==="!")return"!";if(t[0]!=="!")return s(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const o=t.slice(2,-1);return o==="!"||o==="!!"?(s(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&s("Verbatim tags must end with a >"),o)}const[,n,i]=t.match(new RegExp("^(.*!)([^!]*)$","s"));i||s(`The ${t} tag has no suffix`);const r=this.tags[n];if(r)try{return r+decodeURIComponent(i)}catch(o){return s(String(o)),null}return n==="!"?t:(s(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[s,n]of Object.entries(this.tags))if(t.startsWith(n))return s+vn(t.substring(n.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let i;if(t&&n.length>0&&B(t.contents)){const r={};te(t.contents,(o,a)=>{B(a)&&a.tag&&(r[a.tag]=!0)}),i=Object.keys(r)}else i=[];for(const[r,o]of n)r==="!!"&&o==="tag:yaml.org,2002:"||(!t||i.some(a=>a.startsWith(o)))&&s.push(`%TAG ${r} ${o}`);return s.join(`
|
|
2
2
|
`)}}z.defaultYaml={explicit:!1,version:"1.2"};z.defaultTags={"!!":"tag:yaml.org,2002:"};function Ds(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const s=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(s)}return!0}function $s(e){const t=new Set;return te(e,{Value(s,n){n.anchor&&t.add(n.anchor)}}),t}function Ps(e,t){for(let s=1;;++s){const n=`${e}${s}`;if(!t.has(n))return n}}function Vn(e,t){const s=[],n=new Map;let i=null;return{onAnchor:r=>{s.push(r),i||(i=$s(e));const o=Ps(t,i);return i.add(o),o},setAnchors:()=>{for(const r of s){const o=n.get(r);if(typeof o=="object"&&o.anchor&&(L(o.node)||D(o.node)))o.node.anchor=o.anchor;else{const a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=r,a}}},sourceObjects:n}}function ge(e,t,s,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let i=0,r=n.length;i<r;++i){const o=n[i],a=ge(e,n,String(i),o);a===void 0?delete n[i]:a!==o&&(n[i]=a)}else if(n instanceof Map)for(const i of Array.from(n.keys())){const r=n.get(i),o=ge(e,n,i,r);o===void 0?n.delete(i):o!==r&&n.set(i,o)}else if(n instanceof Set)for(const i of Array.from(n)){const r=ge(e,n,i,i);r===void 0?n.delete(i):r!==i&&(n.delete(i),n.add(r))}else for(const[i,r]of Object.entries(n)){const o=ge(e,n,i,r);o===void 0?delete n[i]:o!==r&&(n[i]=o)}return e.call(t,s,n)}function Q(e,t,s){if(Array.isArray(e))return e.map((n,i)=>Q(n,String(i),s));if(e&&typeof e.toJSON=="function"){if(!s||!zn(e))return e.toJSON(t,s);const n={aliasCount:0,count:1,res:void 0};s.anchors.set(e,n),s.onCreate=r=>{n.res=r,delete s.onCreate};const i=e.toJSON(t,s);return s.onCreate&&s.onCreate(i),i}return typeof e=="bigint"&&!(s!=null&&s.keep)?Number(e):e}class Ut{constructor(t){Object.defineProperty(this,Y,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:s,maxAliasCount:n,onAnchor:i,reviver:r}={}){if(!Te(t))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:t,keep:!0,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},a=Q(this,"",o);if(typeof i=="function")for(const{count:l,res:c}of o.anchors.values())i(c,l);return typeof r=="function"?ge(r,{"":a},"",a):a}}class at extends Ut{constructor(t){super(zt),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let s;return te(t,{Node:(n,i)=>{if(i===this)return te.BREAK;i.anchor===this.source&&(s=i)}}),s}toJSON(t,s){if(!s)return{source:this.source};const{anchors:n,doc:i,maxAliasCount:r}=s,o=this.resolve(i);if(!o){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=n.get(o);if(a||(Q(o,null,s),a=n.get(o)),!a||a.res===void 0){const l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(r>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=Ge(i,o,n)),a.count*a.aliasCount>r)){const l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(t,s,n){const i=`*${this.source}`;if(t){if(Ds(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const r=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(r)}if(t.implicitKey)return`${i} `}return i}}function Ge(e,t,s){if(fe(t)){const n=t.resolve(e),i=s&&n&&s.get(n);return i?i.count*i.aliasCount:0}else if(D(t)){let n=0;for(const i of t.items){const r=Ge(e,i,s);r>n&&(n=r)}return n}else if(_(t)){const n=Ge(e,t.key,s),i=Ge(e,t.value,s);return Math.max(n,i)}return 1}const Bs=e=>!e||typeof e!="function"&&typeof e!="object";class A extends Ut{constructor(t){super(Z),this.value=t}toJSON(t,s){return s!=null&&s.keep?this.value:Q(this.value,t,s)}toString(){return String(this.value)}}A.BLOCK_FOLDED="BLOCK_FOLDED";A.BLOCK_LITERAL="BLOCK_LITERAL";A.PLAIN="PLAIN";A.QUOTE_DOUBLE="QUOTE_DOUBLE";A.QUOTE_SINGLE="QUOTE_SINGLE";const Qn="tag:yaml.org,2002:";function Yn(e,t,s){var n;if(t){const i=s.filter(o=>o.tag===t),r=(n=i.find(o=>!o.format))!=null?n:i[0];if(!r)throw new Error(`Tag ${t} not found`);return r}return s.find(i=>{var r;return((r=i.identify)==null?void 0:r.call(i,e))&&!i.format})}function Re(e,t,s){var u,p,y;if(Te(e)&&(e=e.contents),B(e))return e;if(_(e)){const m=(p=(u=s.schema[ee]).createNode)==null?void 0:p.call(u,s.schema,null,s);return m.items.push(e),m}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt!="undefined"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:n,onAnchor:i,onTagObj:r,schema:o,sourceObjects:a}=s;let l;if(n&&e&&typeof e=="object"){if(l=a.get(e),l)return l.anchor||(l.anchor=i(e)),new at(l.anchor);l={anchor:null,node:null},a.set(e,l)}t!=null&&t.startsWith("!!")&&(t=Qn+t.slice(2));let c=Yn(e,t,o.tags);if(!c){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const m=new A(e);return l&&(l.node=m),m}c=e instanceof Map?o[ee]:Symbol.iterator in Object(e)?o[Ne]:o[ee]}r&&(r(c),delete s.onTagObj);const h=c!=null&&c.createNode?c.createNode(s.schema,e,s):typeof((y=c==null?void 0:c.nodeClass)==null?void 0:y.from)=="function"?c.nodeClass.from(s.schema,e,s):new A(e);return t?h.tag=t:c.default||(h.tag=c.tag),l&&(l.node=h),h}function tt(e,t,s){let n=s;for(let i=t.length-1;i>=0;--i){const r=t[i];if(typeof r=="number"&&Number.isInteger(r)&&r>=0){const o=[];o[r]=n,n=o}else n=new Map([[r,n]])}return Re(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const $e=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class Rs extends Ut{constructor(t,s){super(t),Object.defineProperty(this,"schema",{value:s,configurable:!0,enumerable:!1,writable:!0})}clone(t){const s=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(s.schema=t),s.items=s.items.map(n=>B(n)||_(n)?n.clone(t):n),this.range&&(s.range=this.range.slice()),s}addIn(t,s){if($e(t))this.add(s);else{const[n,...i]=t,r=this.get(n,!0);if(D(r))r.addIn(i,s);else if(r===void 0&&this.schema)this.set(n,tt(this.schema,i,s));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}deleteIn(t){const[s,...n]=t;if(n.length===0)return this.delete(s);const i=this.get(s,!0);if(D(i))return i.deleteIn(n);throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}getIn(t,s){const[n,...i]=t,r=this.get(n,!0);return i.length===0?!s&&L(r)?r.value:r:D(r)?r.getIn(i,s):void 0}hasAllNullValues(t){return this.items.every(s=>{if(!_(s))return!1;const n=s.value;return n==null||t&&L(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(t){const[s,...n]=t;if(n.length===0)return this.has(s);const i=this.get(s,!0);return D(i)?i.hasIn(n):!1}setIn(t,s){const[n,...i]=t;if(i.length===0)this.set(n,s);else{const r=this.get(n,!0);if(D(r))r.setIn(i,s);else if(r===void 0&&this.schema)this.set(n,tt(this.schema,i,s));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${i}`)}}}const Jn=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function X(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const oe=(e,t,s)=>e.endsWith(`
|
|
3
3
|
`)?X(s,t):s.includes(`
|
|
4
4
|
`)?`
|
|
@@ -59,10 +59,10 @@ var d = (e) => {
|
|
|
59
59
|
throw r;
|
|
60
60
|
}, "return" in t && n("return"), i;
|
|
61
61
|
};
|
|
62
|
-
import { s as hi, E as ms, c as di, p as pi, v as mi, g as yi, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as G, C as Je, i as gi, J as Bs } from "./widget-composer-
|
|
63
|
-
import { j as Ro, l as
|
|
64
|
-
import { bd as Jt, b4 as bi, c4 as ys,
|
|
65
|
-
import { D as Gs, b as Hs } from "./dimensions-
|
|
62
|
+
import { s as hi, E as ms, c as di, p as pi, v as mi, g as yi, a as rt, b as zt, d as Ut, e as Vt, f as vt, h as G, C as Je, i as gi, J as Bs } from "./widget-composer-CACtfvw6.js";
|
|
63
|
+
import { j as Ro, l as jo, m as Ko, k as qo, n as Fo, w as zo } from "./widget-composer-CACtfvw6.js";
|
|
64
|
+
import { bd as Jt, b4 as bi, c4 as ys, d5 as wi, e6 as Si, aY as ki, bj as Oi, e7 as Ps, aP as Rs, e8 as js, e9 as Ks, ea as qs, eb as Fs, az as zs, ec as Us, ed as Vs, ee as vs, ef as Js, eg as Qs, eh as Ys, ei as Ws, ej as xs, aL as Ai } from "./derive-chart-family-C9IDI6UV.js";
|
|
65
|
+
import { D as Gs, b as Hs } from "./dimensions-HgrcPa-Q.js";
|
|
66
66
|
const Qt = Symbol.for("yaml.alias"), $t = Symbol.for("yaml.document"), Z = Symbol.for("yaml.map"), Xs = Symbol.for("yaml.pair"), X = Symbol.for("yaml.scalar"), Ne = Symbol.for("yaml.seq"), v = Symbol.for("yaml.node.type"), ce = (e) => !!e && typeof e == "object" && e[v] === Qt, Ee = (e) => !!e && typeof e == "object" && e[v] === $t, Te = (e) => !!e && typeof e == "object" && e[v] === Z, C = (e) => !!e && typeof e == "object" && e[v] === Xs, I = (e) => !!e && typeof e == "object" && e[v] === X, Ie = (e) => !!e && typeof e == "object" && e[v] === Ne;
|
|
67
67
|
function _(e) {
|
|
68
68
|
if (e && typeof e == "object")
|
|
@@ -1165,7 +1165,7 @@ function hn(e, t, { key: s, value: n }) {
|
|
|
1165
1165
|
else if (t instanceof Set)
|
|
1166
1166
|
t.add(i);
|
|
1167
1167
|
else {
|
|
1168
|
-
const r =
|
|
1168
|
+
const r = ji(s, i, e), o = V(n, r, e);
|
|
1169
1169
|
r in t ? Object.defineProperty(t, r, {
|
|
1170
1170
|
value: o,
|
|
1171
1171
|
writable: !0,
|
|
@@ -1191,7 +1191,7 @@ function At(e, t, s) {
|
|
|
1191
1191
|
});
|
|
1192
1192
|
return t;
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function ji(e, t, s) {
|
|
1195
1195
|
if (t === null)
|
|
1196
1196
|
return "";
|
|
1197
1197
|
if (typeof t != "object")
|
|
@@ -1213,15 +1213,15 @@ function Ki(e, t, s) {
|
|
|
1213
1213
|
}
|
|
1214
1214
|
function Wt(e, t, s) {
|
|
1215
1215
|
const n = Pe(e, void 0, s), i = Pe(t, void 0, s);
|
|
1216
|
-
return new
|
|
1216
|
+
return new K(n, i);
|
|
1217
1217
|
}
|
|
1218
|
-
class
|
|
1218
|
+
class K {
|
|
1219
1219
|
constructor(t, s = null) {
|
|
1220
1220
|
Object.defineProperty(this, v, { value: Xs }), this.key = t, this.value = s;
|
|
1221
1221
|
}
|
|
1222
1222
|
clone(t) {
|
|
1223
1223
|
let { key: s, value: n } = this;
|
|
1224
|
-
return D(s) && (s = s.clone(t)), D(n) && (n = n.clone(t)), new
|
|
1224
|
+
return D(s) && (s = s.clone(t)), D(n) && (n = n.clone(t)), new K(s, n);
|
|
1225
1225
|
}
|
|
1226
1226
|
toJSON(t, s) {
|
|
1227
1227
|
const n = s != null && s.mapAsMap ? /* @__PURE__ */ new Map() : {};
|
|
@@ -1233,9 +1233,9 @@ class j {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
function dn(e, t, s) {
|
|
1235
1235
|
var r;
|
|
1236
|
-
return (((r = t.inFlow) != null ? r : e.flow) ? qi :
|
|
1236
|
+
return (((r = t.inFlow) != null ? r : e.flow) ? qi : Ki)(e, t, s);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Ki({ comment: e, items: t }, s, { blockItemPrefix: n, flowChars: i, itemIndent: r, onChompKeep: o, onComment: a }) {
|
|
1239
1239
|
const { indent: l, options: { commentString: c } } = s, h = Object.assign({}, s, { indent: r, type: null });
|
|
1240
1240
|
let u = !1;
|
|
1241
1241
|
const p = [];
|
|
@@ -1359,7 +1359,7 @@ class z extends ln {
|
|
|
1359
1359
|
add(t, s) {
|
|
1360
1360
|
var o;
|
|
1361
1361
|
let n;
|
|
1362
|
-
C(t) ? n = t : !t || typeof t != "object" || !("key" in t) ? n = new
|
|
1362
|
+
C(t) ? n = t : !t || typeof t != "object" || !("key" in t) ? n = new K(t, t == null ? void 0 : t.value) : n = new K(t.key, t.value);
|
|
1363
1363
|
const i = oe(this.items, n.key), r = (o = this.schema) == null ? void 0 : o.sortMapEntries;
|
|
1364
1364
|
if (i) {
|
|
1365
1365
|
if (!s)
|
|
@@ -1384,7 +1384,7 @@ class z extends ln {
|
|
|
1384
1384
|
return !!oe(this.items, t);
|
|
1385
1385
|
}
|
|
1386
1386
|
set(t, s) {
|
|
1387
|
-
this.add(new
|
|
1387
|
+
this.add(new K(t, s), !0);
|
|
1388
1388
|
}
|
|
1389
1389
|
/**
|
|
1390
1390
|
* @param ctx - Conversion context, originally set in Document#toJS()
|
|
@@ -1742,7 +1742,7 @@ function kn(e, t) {
|
|
|
1742
1742
|
if (!C(i)) {
|
|
1743
1743
|
if (Te(i)) {
|
|
1744
1744
|
i.items.length > 1 && t("Each pair must have its own sequence indicator");
|
|
1745
|
-
const r = i.items[0] || new
|
|
1745
|
+
const r = i.items[0] || new K(new A(null));
|
|
1746
1746
|
if (i.commentBefore && (r.key.commentBefore = r.key.commentBefore ? `${i.commentBefore}
|
|
1747
1747
|
${r.key.commentBefore}` : i.commentBefore), i.comment) {
|
|
1748
1748
|
const o = (s = r.value) != null ? s : r.key;
|
|
@@ -1751,7 +1751,7 @@ ${o.comment}` : i.comment;
|
|
|
1751
1751
|
}
|
|
1752
1752
|
i = r;
|
|
1753
1753
|
}
|
|
1754
|
-
e.items[n] = C(i) ? i : new
|
|
1754
|
+
e.items[n] = C(i) ? i : new K(i);
|
|
1755
1755
|
}
|
|
1756
1756
|
}
|
|
1757
1757
|
else
|
|
@@ -1947,7 +1947,7 @@ class Se extends z {
|
|
|
1947
1947
|
}
|
|
1948
1948
|
add(t) {
|
|
1949
1949
|
let s;
|
|
1950
|
-
C(t) ? s = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? s = new
|
|
1950
|
+
C(t) ? s = t : t && typeof t == "object" && "key" in t && "value" in t && t.value === null ? s = new K(t.key, null) : s = new K(t, null), oe(this.items, s.key) || this.items.push(s);
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
1953
1953
|
* If `keepPair` is `true`, returns the Pair matching `key`.
|
|
@@ -1961,7 +1961,7 @@ class Se extends z {
|
|
|
1961
1961
|
if (typeof s != "boolean")
|
|
1962
1962
|
throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof s}`);
|
|
1963
1963
|
const n = oe(this.items, t);
|
|
1964
|
-
n && !s ? this.items.splice(this.items.indexOf(n), 1) : !n && s && this.items.push(new
|
|
1964
|
+
n && !s ? this.items.splice(this.items.indexOf(n), 1) : !n && s && this.items.push(new K(t));
|
|
1965
1965
|
}
|
|
1966
1966
|
toJSON(t, s) {
|
|
1967
1967
|
return super.toJSON(t, s, Set);
|
|
@@ -2266,7 +2266,7 @@ class _e {
|
|
|
2266
2266
|
*/
|
|
2267
2267
|
createPair(t, s, n = {}) {
|
|
2268
2268
|
const i = this.createNode(t, null, n), r = this.createNode(s, null, n);
|
|
2269
|
-
return new
|
|
2269
|
+
return new K(i, r);
|
|
2270
2270
|
}
|
|
2271
2271
|
/**
|
|
2272
2272
|
* Removes a value from the document.
|
|
@@ -2574,12 +2574,12 @@ function er({ composeNode: e, composeEmptyNode: t }, s, n, i, r) {
|
|
|
2574
2574
|
w && ((g == null ? void 0 : g.type) === "block-map" && !N.hasNewline && i(l, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings"), s.options.strict && b.start < N.found.offset - 1024 && i(O.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));
|
|
2575
2575
|
const E = g ? e(s, g, N, i) : t(s, l, f, null, N, i);
|
|
2576
2576
|
s.schema.compat && Pt(n.indent, g, i), l = E.range[2];
|
|
2577
|
-
const $ = new
|
|
2577
|
+
const $ = new K(O, E);
|
|
2578
2578
|
s.options.keepSourceTokens && ($.srcToken = p), a.items.push($);
|
|
2579
2579
|
} else {
|
|
2580
2580
|
w && i(O.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values"), N.comment && (O.comment ? O.comment += `
|
|
2581
2581
|
` + N.comment : O.comment = N.comment);
|
|
2582
|
-
const E = new
|
|
2582
|
+
const E = new K(O);
|
|
2583
2583
|
s.options.keepSourceTokens && (E.srcToken = p), a.items.push(E);
|
|
2584
2584
|
}
|
|
2585
2585
|
}
|
|
@@ -2724,7 +2724,7 @@ function sr({ composeNode: e, composeEmptyNode: t }, s, n, i, r) {
|
|
|
2724
2724
|
const ne = $ ? e(s, $, P, i) : P.found ? t(s, P.end, E, null, P, i) : null;
|
|
2725
2725
|
ne ? Tt($) && i(ne.range, "BLOCK_IN_FLOW", Et) : P.comment && (M.comment ? M.comment += `
|
|
2726
2726
|
` + P.comment : M.comment = P.comment);
|
|
2727
|
-
const ue = new
|
|
2727
|
+
const ue = new K(M, ne);
|
|
2728
2728
|
if (s.options.keepSourceTokens && (ue.srcToken = T), o) {
|
|
2729
2729
|
const B = c;
|
|
2730
2730
|
_n(s, B.items, M) && i(L, "DUPLICATE_KEY", "Map keys must be unique"), B.items.push(ue);
|
|
@@ -3542,13 +3542,13 @@ function Ze({ start: e, key: t, sep: s, value: n }) {
|
|
|
3542
3542
|
i += r.source;
|
|
3543
3543
|
return n && (i += it(n)), i;
|
|
3544
3544
|
}
|
|
3545
|
-
const Rt = Symbol("break visit"), Ar = Symbol("skip children"),
|
|
3545
|
+
const Rt = Symbol("break visit"), Ar = Symbol("skip children"), jn = Symbol("remove item");
|
|
3546
3546
|
function le(e, t) {
|
|
3547
|
-
"type" in e && e.type === "document" && (e = { start: e.start, value: e.value }),
|
|
3547
|
+
"type" in e && e.type === "document" && (e = { start: e.start, value: e.value }), Kn(Object.freeze([]), e, t);
|
|
3548
3548
|
}
|
|
3549
3549
|
le.BREAK = Rt;
|
|
3550
3550
|
le.SKIP = Ar;
|
|
3551
|
-
le.REMOVE =
|
|
3551
|
+
le.REMOVE = jn;
|
|
3552
3552
|
le.itemAtPath = (e, t) => {
|
|
3553
3553
|
let s = e;
|
|
3554
3554
|
for (const [n, i] of t) {
|
|
@@ -3566,7 +3566,7 @@ le.parentCollection = (e, t) => {
|
|
|
3566
3566
|
return i;
|
|
3567
3567
|
throw new Error("Parent collection not found");
|
|
3568
3568
|
};
|
|
3569
|
-
function
|
|
3569
|
+
function Kn(e, t, s) {
|
|
3570
3570
|
let n = s(t, e);
|
|
3571
3571
|
if (typeof n == "symbol")
|
|
3572
3572
|
return n;
|
|
@@ -3574,13 +3574,13 @@ function jn(e, t, s) {
|
|
|
3574
3574
|
const r = t[i];
|
|
3575
3575
|
if (r && "items" in r) {
|
|
3576
3576
|
for (let o = 0; o < r.items.length; ++o) {
|
|
3577
|
-
const a =
|
|
3577
|
+
const a = Kn(Object.freeze(e.concat([[i, o]])), r.items[o], s);
|
|
3578
3578
|
if (typeof a == "number")
|
|
3579
3579
|
o = a - 1;
|
|
3580
3580
|
else {
|
|
3581
3581
|
if (a === Rt)
|
|
3582
3582
|
return Rt;
|
|
3583
|
-
a ===
|
|
3583
|
+
a === jn && (r.items.splice(o, 1), o -= 1);
|
|
3584
3584
|
}
|
|
3585
3585
|
}
|
|
3586
3586
|
typeof n == "function" && i === "key" && (n = n(t, e));
|
|
@@ -3588,7 +3588,7 @@ function jn(e, t, s) {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
return typeof n == "function" ? n(t, e) : n;
|
|
3590
3590
|
}
|
|
3591
|
-
const gt = "\uFEFF", bt = "", wt = "",
|
|
3591
|
+
const gt = "\uFEFF", bt = "", wt = "", je = "", Nr = (e) => !!e && "items" in e, Er = (e) => !!e && (e.type === "scalar" || e.type === "single-quoted-scalar" || e.type === "double-quoted-scalar" || e.type === "block-scalar");
|
|
3592
3592
|
function Tr(e) {
|
|
3593
3593
|
switch (e) {
|
|
3594
3594
|
case gt:
|
|
@@ -3597,7 +3597,7 @@ function Tr(e) {
|
|
|
3597
3597
|
return "<DOC>";
|
|
3598
3598
|
case wt:
|
|
3599
3599
|
return "<FLOW_END>";
|
|
3600
|
-
case
|
|
3600
|
+
case je:
|
|
3601
3601
|
return "<SCALAR>";
|
|
3602
3602
|
default:
|
|
3603
3603
|
return JSON.stringify(e);
|
|
@@ -3611,7 +3611,7 @@ function qn(e) {
|
|
|
3611
3611
|
return "doc-mode";
|
|
3612
3612
|
case wt:
|
|
3613
3613
|
return "flow-error-end";
|
|
3614
|
-
case
|
|
3614
|
+
case je:
|
|
3615
3615
|
return "scalar";
|
|
3616
3616
|
case "---":
|
|
3617
3617
|
return "doc-start";
|
|
@@ -3669,7 +3669,7 @@ const Ir = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3669
3669
|
BOM: gt,
|
|
3670
3670
|
DOCUMENT: bt,
|
|
3671
3671
|
FLOW_END: wt,
|
|
3672
|
-
SCALAR:
|
|
3672
|
+
SCALAR: je,
|
|
3673
3673
|
createScalarToken: wr,
|
|
3674
3674
|
isCollection: Nr,
|
|
3675
3675
|
isScalar: Er,
|
|
@@ -4014,7 +4014,7 @@ class Fn {
|
|
|
4014
4014
|
else
|
|
4015
4015
|
break;
|
|
4016
4016
|
} while (!0);
|
|
4017
|
-
return yield
|
|
4017
|
+
return yield je, yield* d(this.pushToIndex(t + 1, !0)), yield* d(this.parseLineStart());
|
|
4018
4018
|
}
|
|
4019
4019
|
*parsePlainScalar() {
|
|
4020
4020
|
const t = this.flowLevel > 0;
|
|
@@ -4043,7 +4043,7 @@ class Fn {
|
|
|
4043
4043
|
break;
|
|
4044
4044
|
s = n;
|
|
4045
4045
|
}
|
|
4046
|
-
return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield
|
|
4046
|
+
return !i && !this.atEnd ? this.setNext("plain-scalar") : (yield je, yield* d(this.pushToIndex(s + 1, !0)), t ? "flow" : "doc");
|
|
4047
4047
|
}
|
|
4048
4048
|
*pushCount(t) {
|
|
4049
4049
|
return t > 0 ? (yield this.buffer.substr(this.pos, t), this.pos += t, t) : 0;
|
|
@@ -4823,7 +4823,7 @@ const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4823
4823
|
Document: _e,
|
|
4824
4824
|
Lexer: Fn,
|
|
4825
4825
|
LineCounter: zn,
|
|
4826
|
-
Pair:
|
|
4826
|
+
Pair: K,
|
|
4827
4827
|
Parser: os,
|
|
4828
4828
|
Scalar: A,
|
|
4829
4829
|
Schema: yt,
|
|
@@ -5173,9 +5173,9 @@ const Br = (e, t) => {
|
|
|
5173
5173
|
};
|
|
5174
5174
|
return `[${e.map((n) => yi(n, t, s)).join(`,
|
|
5175
5175
|
`)}]`;
|
|
5176
|
-
}, Pr = "dashboardByIdTmpl", Rr = "dashboardTmpl",
|
|
5176
|
+
}, Pr = "dashboardByIdTmpl", Rr = "dashboardTmpl", jr = ({ dashboardOid: e, uiFramework: t = "react" }) => rt(Pr, {
|
|
5177
5177
|
dashboardOid: e
|
|
5178
|
-
}, t),
|
|
5178
|
+
}, t), Kr = ({ dashboardProps: e, uiFramework: t = "react" }) => {
|
|
5179
5179
|
const s = Rr, n = e.widgets.some((r) => (ki(r) || Oi(r)) && zt(r)), i = {
|
|
5180
5180
|
titleString: e.title,
|
|
5181
5181
|
defaultDataSourceString: Ut(e.defaultDataSource),
|
|
@@ -5189,7 +5189,7 @@ const Br = (e, t) => {
|
|
|
5189
5189
|
styleOptionsString: G(e.styleOptions || {}, Je)
|
|
5190
5190
|
};
|
|
5191
5191
|
return rt(s, i, t);
|
|
5192
|
-
}, qr = (e) => gi(e) ?
|
|
5192
|
+
}, qr = (e) => gi(e) ? jr(e) : Kr(e), $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5193
5193
|
__proto__: null,
|
|
5194
5194
|
toDashboardCode: qr
|
|
5195
5195
|
}, Symbol.toStringTag, { value: "Module" })), Fr = "executeQueryTmpl", zr = "executePivotQueryTmpl", Ur = (e, t, s) => {
|
|
@@ -5307,7 +5307,7 @@ class Xr {
|
|
|
5307
5307
|
return this.transfomers[t];
|
|
5308
5308
|
}
|
|
5309
5309
|
}
|
|
5310
|
-
const Zr = (e) => Object.prototype.toString.call(e).slice(8, -1), Qn = (e) => typeof e == "undefined", eo = (e) => e === null,
|
|
5310
|
+
const Zr = (e) => Object.prototype.toString.call(e).slice(8, -1), Qn = (e) => typeof e == "undefined", eo = (e) => e === null, Ke = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, jt = (e) => Ke(e) && Object.keys(e).length === 0, se = (e) => Array.isArray(e), to = (e) => typeof e == "string", so = (e) => typeof e == "number" && !isNaN(e), no = (e) => typeof e == "boolean", io = (e) => e instanceof RegExp, qe = (e) => e instanceof Map, Fe = (e) => e instanceof Set, Yn = (e) => Zr(e) === "Symbol", ro = (e) => e instanceof Date && !isNaN(e.valueOf()), oo = (e) => e instanceof Error, _s = (e) => typeof e == "number" && isNaN(e), ao = (e) => no(e) || eo(e) || Qn(e) || so(e) || to(e) || Yn(e), lo = (e) => typeof e == "bigint", co = (e) => e === 1 / 0 || e === -1 / 0, fo = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), uo = (e) => e instanceof URL, Wn = (e) => e.replace(/\./g, "\\."), _t = (e) => e.map(String).map(Wn).join("."), Be = (e) => {
|
|
5311
5311
|
const t = [];
|
|
5312
5312
|
let s = "";
|
|
5313
5313
|
for (let i = 0; i < e.length; i++) {
|
|
@@ -5492,7 +5492,7 @@ const yo = (e, t) => {
|
|
|
5492
5492
|
e = e[n];
|
|
5493
5493
|
}
|
|
5494
5494
|
return e;
|
|
5495
|
-
},
|
|
5495
|
+
}, Kt = (e, t, s) => {
|
|
5496
5496
|
if (si(t), t.length === 0)
|
|
5497
5497
|
return s(e);
|
|
5498
5498
|
let n = e;
|
|
@@ -5501,7 +5501,7 @@ const yo = (e, t) => {
|
|
|
5501
5501
|
if (se(n)) {
|
|
5502
5502
|
const a = +o;
|
|
5503
5503
|
n = n[a];
|
|
5504
|
-
} else if (
|
|
5504
|
+
} else if (Ke(n))
|
|
5505
5505
|
n = n[o];
|
|
5506
5506
|
else if (Fe(n)) {
|
|
5507
5507
|
const a = +o;
|
|
@@ -5521,7 +5521,7 @@ const yo = (e, t) => {
|
|
|
5521
5521
|
}
|
|
5522
5522
|
}
|
|
5523
5523
|
const i = t[t.length - 1];
|
|
5524
|
-
if (se(n) ? n[+i] = s(n[+i]) :
|
|
5524
|
+
if (se(n) ? n[+i] = s(n[+i]) : Ke(n) && (n[i] = s(n[i])), Fe(n)) {
|
|
5525
5525
|
const r = be(n, +i), o = s(r);
|
|
5526
5526
|
r !== o && (n.delete(r), n.add(o));
|
|
5527
5527
|
}
|
|
@@ -5555,26 +5555,26 @@ function qt(e, t, s = []) {
|
|
|
5555
5555
|
}
|
|
5556
5556
|
function go(e, t, s) {
|
|
5557
5557
|
return qt(t, (n, i) => {
|
|
5558
|
-
e =
|
|
5558
|
+
e = Kt(e, i, (r) => mo(r, n, s));
|
|
5559
5559
|
}), e;
|
|
5560
5560
|
}
|
|
5561
5561
|
function bo(e, t) {
|
|
5562
5562
|
function s(n, i) {
|
|
5563
5563
|
const r = yo(e, Be(i));
|
|
5564
5564
|
n.map(Be).forEach((o) => {
|
|
5565
|
-
e =
|
|
5565
|
+
e = Kt(e, o, () => r);
|
|
5566
5566
|
});
|
|
5567
5567
|
}
|
|
5568
5568
|
if (se(t)) {
|
|
5569
5569
|
const [n, i] = t;
|
|
5570
5570
|
n.forEach((r) => {
|
|
5571
|
-
e =
|
|
5571
|
+
e = Kt(e, Be(r), () => e);
|
|
5572
5572
|
}), i && Ae(i, s);
|
|
5573
5573
|
} else
|
|
5574
5574
|
Ae(t, s);
|
|
5575
5575
|
return e;
|
|
5576
5576
|
}
|
|
5577
|
-
const wo = (e, t) =>
|
|
5577
|
+
const wo = (e, t) => Ke(e) || se(e) || qe(e) || Fe(e) || Xn(e, t);
|
|
5578
5578
|
function So(e, t, s) {
|
|
5579
5579
|
const n = s.get(e);
|
|
5580
5580
|
n ? n.push(t) : s.set(e, [t]);
|
|
@@ -5588,7 +5588,7 @@ function ko(e, t) {
|
|
|
5588
5588
|
t || (i = i.map((a) => a.map(String)).sort((a, l) => a.length - l.length));
|
|
5589
5589
|
const [r, ...o] = i;
|
|
5590
5590
|
r.length === 0 ? n = o.map(_t) : s[_t(r)] = o.map(_t);
|
|
5591
|
-
}), n ?
|
|
5591
|
+
}), n ? jt(s) ? [n] : [n, s] : jt(s) ? void 0 : s;
|
|
5592
5592
|
}
|
|
5593
5593
|
const ni = (e, t, s, n, i = [], r = [], o = /* @__PURE__ */ new Map()) => {
|
|
5594
5594
|
var y;
|
|
@@ -5619,11 +5619,11 @@ const ni = (e, t, s, n, i = [], r = [], o = /* @__PURE__ */ new Map()) => {
|
|
|
5619
5619
|
if (f === "__proto__" || f === "constructor" || f === "prototype")
|
|
5620
5620
|
throw new Error(`Detected property ${f}. This is a prototype pollution risk, please remove it from your object.`);
|
|
5621
5621
|
const g = ni(m, t, s, n, [...i, f], [...r, e], o);
|
|
5622
|
-
h[f] = g.transformedValue, se(g.annotations) ? u[f] = g.annotations :
|
|
5622
|
+
h[f] = g.transformedValue, se(g.annotations) ? u[f] = g.annotations : Ke(g.annotations) && Ae(g.annotations, (b, w) => {
|
|
5623
5623
|
u[Wn(f) + "." + w] = b;
|
|
5624
5624
|
});
|
|
5625
5625
|
});
|
|
5626
|
-
const p =
|
|
5626
|
+
const p = jt(u) ? {
|
|
5627
5627
|
transformedValue: h,
|
|
5628
5628
|
annotations: l ? [l.type] : void 0
|
|
5629
5629
|
} : {
|
|
@@ -5776,8 +5776,8 @@ const fe = (e) => e === void 0 ? Ai.None : e, No = (e) => new Bs(e.metadataItem,
|
|
|
5776
5776
|
n
|
|
5777
5777
|
];
|
|
5778
5778
|
}));
|
|
5779
|
-
return new
|
|
5780
|
-
}, ai = (e) => new
|
|
5779
|
+
return new js(e.name, e.expression, t, e.format, e.description, fe(e.sort), e.dataSource, e.composeCode);
|
|
5780
|
+
}, ai = (e) => new Ks(e.name, U(e.attribute), e.format, e.description, fe(e.sort), e.dataSource, e.composeCode), Ds = (e) => {
|
|
5781
5781
|
switch (e.__serializable) {
|
|
5782
5782
|
case "DimensionalBaseMeasure":
|
|
5783
5783
|
return cs(e);
|
|
@@ -5788,18 +5788,18 @@ const fe = (e) => e === void 0 ? Ai.None : e, No = (e) => new Bs(e.metadataItem,
|
|
|
5788
5788
|
default:
|
|
5789
5789
|
return e;
|
|
5790
5790
|
}
|
|
5791
|
-
},
|
|
5791
|
+
}, j = (e) => {
|
|
5792
5792
|
switch (e.__serializable) {
|
|
5793
5793
|
case "MembersFilter":
|
|
5794
5794
|
return new qs(U(e.attribute), e.members, e.config.backgroundFilter ? J(R({}, e.config), {
|
|
5795
|
-
backgroundFilter:
|
|
5795
|
+
backgroundFilter: j(e.config.backgroundFilter)
|
|
5796
5796
|
}) : e.config, e.composeCode);
|
|
5797
5797
|
case "LogicalAttributeFilter":
|
|
5798
|
-
return new Fs(e.filters.map((s) =>
|
|
5798
|
+
return new Fs(e.filters.map((s) => j(s)), e.operator, e.config, e.composeCode);
|
|
5799
5799
|
case "CascadingFilter":
|
|
5800
|
-
return new zs(e._filters.map((s) =>
|
|
5800
|
+
return new zs(e._filters.map((s) => j(s)), e.config, e.composeCode);
|
|
5801
5801
|
case "ExcludeFilter":
|
|
5802
|
-
return new Us(
|
|
5802
|
+
return new Us(j(e.filter), e.input ? j(e.input) : void 0, e.config, e.composeCode);
|
|
5803
5803
|
case "MeasureFilter":
|
|
5804
5804
|
return new Vs(U(e.attribute), Ds(e.measure), e.operatorA, e.valueA, e.operatorB, e.valueB, e.config, e.composeCode);
|
|
5805
5805
|
case "RankingFilter":
|
|
@@ -5851,69 +5851,69 @@ k.registerCustom({
|
|
|
5851
5851
|
deserialize: (e) => cs(e)
|
|
5852
5852
|
}, "DimensionalBaseMeasure");
|
|
5853
5853
|
k.registerCustom({
|
|
5854
|
-
isApplicable: (e) => e instanceof
|
|
5854
|
+
isApplicable: (e) => e instanceof js,
|
|
5855
5855
|
serialize: (e) => e.serialize(),
|
|
5856
5856
|
deserialize: (e) => fs(e)
|
|
5857
5857
|
}, "DimensionalCalculatedMeasure");
|
|
5858
5858
|
k.registerCustom({
|
|
5859
|
-
isApplicable: (e) => e instanceof
|
|
5859
|
+
isApplicable: (e) => e instanceof Ks,
|
|
5860
5860
|
serialize: (e) => e.serialize(),
|
|
5861
5861
|
deserialize: (e) => ai(e)
|
|
5862
5862
|
}, "DimensionalMeasureTemplate");
|
|
5863
5863
|
k.registerCustom({
|
|
5864
5864
|
isApplicable: (e) => e instanceof qs,
|
|
5865
5865
|
serialize: (e) => e.serialize(),
|
|
5866
|
-
deserialize: (e) =>
|
|
5866
|
+
deserialize: (e) => j(e)
|
|
5867
5867
|
}, "MembersFilter");
|
|
5868
5868
|
k.registerCustom({
|
|
5869
5869
|
isApplicable: (e) => e instanceof Fs,
|
|
5870
5870
|
serialize: (e) => e.serialize(),
|
|
5871
|
-
deserialize: (e) =>
|
|
5871
|
+
deserialize: (e) => j(e)
|
|
5872
5872
|
}, "LogicalAttributeFilter");
|
|
5873
5873
|
k.registerCustom({
|
|
5874
5874
|
isApplicable: (e) => e instanceof zs,
|
|
5875
5875
|
serialize: (e) => e.serialize(),
|
|
5876
|
-
deserialize: (e) =>
|
|
5876
|
+
deserialize: (e) => j(e)
|
|
5877
5877
|
}, "CascadingFilter");
|
|
5878
5878
|
k.registerCustom({
|
|
5879
5879
|
isApplicable: (e) => e instanceof Us,
|
|
5880
5880
|
serialize: (e) => e.serialize(),
|
|
5881
|
-
deserialize: (e) =>
|
|
5881
|
+
deserialize: (e) => j(e)
|
|
5882
5882
|
}, "ExcludeFilter");
|
|
5883
5883
|
k.registerCustom({
|
|
5884
5884
|
isApplicable: (e) => e instanceof Vs,
|
|
5885
5885
|
serialize: (e) => e.serialize(),
|
|
5886
|
-
deserialize: (e) =>
|
|
5886
|
+
deserialize: (e) => j(e)
|
|
5887
5887
|
}, "MeasureFilter");
|
|
5888
5888
|
k.registerCustom({
|
|
5889
5889
|
isApplicable: (e) => e instanceof vs,
|
|
5890
5890
|
serialize: (e) => e.serialize(),
|
|
5891
|
-
deserialize: (e) =>
|
|
5891
|
+
deserialize: (e) => j(e)
|
|
5892
5892
|
}, "RankingFilter");
|
|
5893
5893
|
k.registerCustom({
|
|
5894
5894
|
isApplicable: (e) => e instanceof Js,
|
|
5895
5895
|
serialize: (e) => e.serialize(),
|
|
5896
|
-
deserialize: (e) =>
|
|
5896
|
+
deserialize: (e) => j(e)
|
|
5897
5897
|
}, "NumericFilter");
|
|
5898
5898
|
k.registerCustom({
|
|
5899
5899
|
isApplicable: (e) => e instanceof Qs,
|
|
5900
5900
|
serialize: (e) => e.serialize(),
|
|
5901
|
-
deserialize: (e) =>
|
|
5901
|
+
deserialize: (e) => j(e)
|
|
5902
5902
|
}, "TextFilter");
|
|
5903
5903
|
k.registerCustom({
|
|
5904
5904
|
isApplicable: (e) => e instanceof Ys,
|
|
5905
5905
|
serialize: (e) => e.serialize(),
|
|
5906
|
-
deserialize: (e) =>
|
|
5906
|
+
deserialize: (e) => j(e)
|
|
5907
5907
|
}, "DateRangeFilter");
|
|
5908
5908
|
k.registerCustom({
|
|
5909
5909
|
isApplicable: (e) => e instanceof Ws,
|
|
5910
5910
|
serialize: (e) => e.serialize(),
|
|
5911
|
-
deserialize: (e) =>
|
|
5911
|
+
deserialize: (e) => j(e)
|
|
5912
5912
|
}, "RelativeDateFilter");
|
|
5913
5913
|
k.registerCustom({
|
|
5914
5914
|
isApplicable: (e) => e instanceof xs,
|
|
5915
5915
|
serialize: (e) => e.serialize(),
|
|
5916
|
-
deserialize: (e) =>
|
|
5916
|
+
deserialize: (e) => j(e)
|
|
5917
5917
|
}, "CustomFilter");
|
|
5918
5918
|
const Do = k;
|
|
5919
5919
|
export {
|
|
@@ -5924,8 +5924,8 @@ export {
|
|
|
5924
5924
|
$o as dashboardComposer,
|
|
5925
5925
|
Mo as executeQueryComposer,
|
|
5926
5926
|
gi as isByIdDashboardCodeParams,
|
|
5927
|
-
|
|
5928
|
-
|
|
5927
|
+
jo as isByIdWidgetCodeParams,
|
|
5928
|
+
Ko as isClientSideDashboardCodeParams,
|
|
5929
5929
|
qo as isClientSideWidgetCodeParams,
|
|
5930
5930
|
Fo as simplifyMetadataItem,
|
|
5931
5931
|
zo as widgetComposer
|