@perses-dev/heatmap-chart-plugin 0.5.0 → 0.6.0-beta.2
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/__mf/js/{HeatMapChart.6c4e6e06.js → HeatMapChart.6613b45e.js} +7 -7
- package/__mf/js/async/121.e63b0807.js +2 -0
- package/__mf/js/async/362.8b36602d.js +1 -0
- package/__mf/js/async/392.f80b3f92.js +2 -0
- package/__mf/js/async/470.6b4b5f7b.js +2 -0
- package/__mf/js/async/569.8e18ce20.js +71 -0
- package/__mf/js/async/888.52ddc939.js +1 -0
- package/__mf/js/async/941.ea6b3111.js +2 -0
- package/__mf/js/async/963.9dc879ab.js +1 -0
- package/__mf/js/async/{980.03e0a41f.js → 980.f28cf53e.js} +2 -2
- package/__mf/js/async/{__federation_expose_HeatMapChart.b3d43042.js → __federation_expose_HeatMapChart.a270bda0.js} +2 -2
- package/__mf/js/{main.bec55b3a.js → main.4b170e45.js} +3 -3
- package/lib/HeatMapChart.d.ts +3 -3
- package/lib/HeatMapChart.d.ts.map +1 -1
- package/lib/HeatMapChart.js +2 -2
- package/lib/HeatMapChart.js.map +1 -1
- package/lib/bootstrap.js +2 -2
- package/lib/components/HeatMapChart.d.ts +4 -4
- package/lib/components/HeatMapChart.d.ts.map +1 -1
- package/lib/components/HeatMapChart.js +8 -8
- package/lib/components/HeatMapChart.js.map +1 -1
- package/lib/components/HeatMapChartOptionsEditorSettings.d.ts +2 -2
- package/lib/components/HeatMapChartOptionsEditorSettings.d.ts.map +1 -1
- package/lib/components/HeatMapChartOptionsEditorSettings.js +6 -6
- package/lib/components/HeatMapChartOptionsEditorSettings.js.map +1 -1
- package/lib/components/HeatMapChartPanel.d.ts +4 -4
- package/lib/components/HeatMapChartPanel.d.ts.map +1 -1
- package/lib/components/HeatMapChartPanel.js +6 -6
- package/lib/components/HeatMapChartPanel.js.map +1 -1
- package/lib/components/HeatMapTooltip.d.ts +3 -3
- package/lib/components/HeatMapTooltip.d.ts.map +1 -1
- package/lib/components/HeatMapTooltip.js +2 -2
- package/lib/components/HeatMapTooltip.js.map +1 -1
- package/lib/components/index.js +3 -3
- package/lib/components/index.js.map +1 -1
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/heat-map-chart-model.d.ts +3 -3
- package/lib/heat-map-chart-model.d.ts.map +1 -1
- package/lib/heat-map-chart-model.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/lib/utils/data-transform.d.ts +2 -2
- package/lib/utils/data-transform.d.ts.map +1 -1
- package/lib/utils/data-transform.js +1 -1
- package/lib/utils/data-transform.js.map +1 -1
- package/lib/utils/get-formatted-axis-label.js +1 -1
- package/lib/utils/index.js +3 -3
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/thresholds.d.ts +1 -1
- package/lib/utils/thresholds.d.ts.map +1 -1
- package/lib/utils/thresholds.js.map +1 -1
- package/mf-manifest.json +18 -18
- package/mf-stats.json +18 -18
- package/package.json +10 -10
- package/__mf/js/async/121.c8aa4904.js +0 -2
- package/__mf/js/async/392.97acdaa7.js +0 -2
- package/__mf/js/async/470.c23991fd.js +0 -2
- package/__mf/js/async/535.e475e67c.js +0 -1
- package/__mf/js/async/695.a3b5a24f.js +0 -71
- package/__mf/js/async/888.6a71bc7f.js +0 -1
- package/__mf/js/async/941.86aff2f9.js +0 -2
- package/__mf/js/async/963.ddc66183.js +0 -1
- package/lib/cjs/HeatMapChart.js +0 -40
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/components/HeatMapChart.js +0 -227
- package/lib/cjs/components/HeatMapChartOptionsEditorSettings.js +0 -140
- package/lib/cjs/components/HeatMapChartPanel.js +0 -227
- package/lib/cjs/components/HeatMapTooltip.js +0 -57
- package/lib/cjs/components/index.js +0 -32
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/heat-map-chart-model.js +0 -80
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -47
- package/lib/cjs/setup-tests.js +0 -19
- package/lib/cjs/utils/data-transform.js +0 -46
- package/lib/cjs/utils/get-formatted-axis-label.js +0 -48
- package/lib/cjs/utils/index.js +0 -32
- package/lib/cjs/utils/thresholds.js +0 -34
- /package/__mf/css/async/{695.85c2cbf6.css → 569.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{121.c8aa4904.js.LICENSE.txt → 121.e63b0807.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.97acdaa7.js.LICENSE.txt → 392.f80b3f92.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{470.c23991fd.js.LICENSE.txt → 470.6b4b5f7b.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{695.a3b5a24f.js.LICENSE.txt → 569.8e18ce20.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.86aff2f9.js.LICENSE.txt → 941.ea6b3111.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{980.03e0a41f.js.LICENSE.txt → 980.f28cf53e.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_HeatMapChart=self.chunk_HeatMapChart||[]).push([["888"],{65130(t,e,n){n.d(e,{f:()=>u});var a=n(12015),r=n(4721);function u(t,e,n){let u=(0,r.a)(t,n?.in);return isNaN(e)?(0,a.w)(n?.in||t,NaN):(e&&u.setDate(u.getDate()+e),u)}},38086(t,e,n){n.d(e,{P:()=>u});var a=n(12015),r=n(4721);function u(t,e,n){let u=(0,r.a)(t,n?.in);if(isNaN(e))return(0,a.w)(n?.in||t,NaN);if(!e)return u;let i=u.getDate(),o=(0,a.w)(n?.in||t,u.getTime());return(o.setMonth(u.getMonth()+e+1,0),i>=o.getDate())?o:(u.setFullYear(o.getFullYear(),o.getMonth(),i),u)}},30439(t,e,n){n.d(e,{_P:()=>i,my:()=>a,s0:()=>u,w4:()=>r});let a=6048e5,r=864e5,u=36e5,i=Symbol.for("constructDateFrom")},12015(t,e,n){n.d(e,{w:()=>r});var a=n(30439);function r(t,e){return"function"==typeof t?t(e):t&&"object"==typeof t&&a._P in t?t[a._P](e):t instanceof Date?new t.constructor(e):new Date(e)}},4721(t,e,n){n.d(e,{a:()=>r});var a=n(12015);function r(t,e){return(0,a.w)(e||t,t)}}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 941.86aff2f9.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.chunk_HeatMapChart=self.chunk_HeatMapChart||[]).push([["941"],{7470(e,r,t){var o=t(20231);r.createRoot=o.createRoot,r.hydrateRoot=o.hydrateRoot},2192(e,r,t){var o=t(70451),a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),_=Object.prototype.hasOwnProperty,f=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var o,n={},c=null,l=null;for(o in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(l=r.ref),r)_.call(r,o)&&!s.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:a,type:e,key:c,ref:l,props:n,_owner:f.current}}r.Fragment=n,r.jsx=c,r.jsxs=c},62540(e,r,t){e.exports=t(2192)},86604(e,r,t){t.r(r);var o=t(62540),a=t(70451),n=t.n(a);t(7470).createRoot(document.getElementById("root")).render((0,o.jsx)(n().StrictMode,{}))}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.chunk_HeatMapChart=self.chunk_HeatMapChart||[]).push([["963"],{38662(e,t,r){r.r(t),r.d(t,{Immer:()=>X,applyPatches:()=>et,castDraft:()=>ea,castImmutable:()=>ei,createDraft:()=>er,current:()=>q,enableMapSet:()=>G,enablePatches:()=>B,finishDraft:()=>en,freeze:()=>z,immerable:()=>i,isDraft:()=>u,isDraftable:()=>l,nothing:()=>a,original:()=>h,produce:()=>T,produceWithPatches:()=>V,setAutoFreeze:()=>Y,setUseStrictIteration:()=>ee,setUseStrictShallowCopy:()=>Z});var n,a=Symbol.for("immer-nothing"),i=Symbol.for("immer-draftable"),s=Symbol.for("immer-state");function o(e){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c=Object.getPrototypeOf;function u(e){return!!e&&!!e[s]}function l(e){return!!e&&(_(e)||Array.isArray(e)||!!e[i]||!!e.constructor?.[i]||m(e)||S(e))}var f=Object.prototype.constructor.toString(),p=new WeakMap;function _(e){if(!e||"object"!=typeof e)return!1;let t=Object.getPrototypeOf(e);if(null===t||t===Object.prototype)return!0;let r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(r===Object)return!0;if("function"!=typeof r)return!1;let n=p.get(r);return void 0===n&&(n=Function.toString.call(r),p.set(r,n)),n===f}function h(e){return u(e)||o(15,e),e[s].base_}function d(e,t,r=!0){0===y(e)?(r?Reflect.ownKeys(e):Object.keys(e)).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function y(e){let t=e[s];return t?t.type_:Array.isArray(e)?1:m(e)?2:3*!!S(e)}function b(e,t){return 2===y(e)?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function v(e,t){return 2===y(e)?e.get(t):e[t]}function g(e,t,r){let n=y(e);2===n?e.set(t,r):3===n?e.add(r):e[t]=r}function m(e){return e instanceof Map}function S(e){return e instanceof Set}function w(e){return e.copy_||e.base_}function P(e,t){if(m(e))return new Map(e);if(S(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);let r=_(e);if(!0!==t&&("class_only"!==t||r)){let t=c(e);return null!==t&&r?{...e}:Object.assign(Object.create(t),e)}{let t=Object.getOwnPropertyDescriptors(e);delete t[s];let r=Reflect.ownKeys(t);for(let n=0;n<r.length;n++){let a=r[n],i=t[a];!1===i.writable&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[a]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[a]})}return Object.create(c(e),t)}}function z(e,t=!1){return j(e)||u(e)||!l(e)||(y(e)>1&&Object.defineProperties(e,{set:O,add:O,clear:O,delete:O}),Object.freeze(e),t&&Object.values(e).forEach(e=>z(e,!0))),e}var O={value:function(){o(2)}};function j(e){return null===e||"object"!=typeof e||Object.isFrozen(e)}var M={};function A(e){let t=M[e];return t||o(0,e),t}function k(e,t){t&&(A("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function D(e){F(e),e.drafts_.forEach(E),e.drafts_=null}function F(e){e===n&&(n=e.parent_)}function I(e){return n={drafts_:[],parent_:n,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function E(e){let t=e[s];0===t.type_||1===t.type_?t.revoke_():t.revoked_=!0}function x(e,t){t.unfinalizedDrafts_=t.drafts_.length;let r=t.drafts_[0];return void 0!==e&&e!==r?(r[s].modified_&&(D(t),o(4)),l(e)&&(e=C(t,e),t.parent_||N(t,e)),t.patches_&&A("Patches").generateReplacementPatches_(r[s].base_,e,t.patches_,t.inversePatches_)):e=C(t,r,[]),D(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==a?e:void 0}function C(e,t,r){if(j(t))return t;let n=e.immer_.shouldUseStrictIteration(),a=t[s];if(!a)return d(t,(n,i)=>U(e,a,t,n,i,r),n),t;if(a.scope_!==e)return t;if(!a.modified_)return N(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;let t=a.copy_,i=t,s=!1;3===a.type_&&(i=new Set(t),t.clear(),s=!0),d(i,(n,i)=>U(e,a,t,n,i,r,s),n),N(e,t,!1),r&&e.patches_&&A("Patches").generatePatches_(a,r,e.patches_,e.inversePatches_)}return a.copy_}function U(e,t,r,n,a,i,s){if(null==a||"object"!=typeof a&&!s)return;let o=j(a);if(!o||s){if(u(a)){let s=C(e,a,i&&t&&3!==t.type_&&!b(t.assigned_,n)?i.concat(n):void 0);if(g(r,n,s),!u(s))return;e.canAutoFreeze_=!1}else s&&r.add(a);if(l(a)&&!o){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[n]===a&&o)return;C(e,a),(!t||!t.scope_.parent_)&&"symbol"!=typeof n&&(m(r)?r.has(n):Object.prototype.propertyIsEnumerable.call(r,n))&&N(e,a)}}}function N(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&z(t,r)}var R={get(e,t){if(t===s)return e;let r=w(e);if(!b(r,t)){var n;let a;return n=e,(a=H(r,t))?"value"in a?a.value:a.get?.call(n.draft_):void 0}let a=r[t];return e.finalized_||!l(a)?a:a===K(e.base_,t)?(J(e),e.copy_[t]=$(a,e)):a},has:(e,t)=>t in w(e),ownKeys:e=>Reflect.ownKeys(w(e)),set(e,t,r){let n=H(w(e),t);if(n?.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){let n=K(w(e),t),a=n?.[s];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if((r===n?0!==r||1/r==1/n:r!=r&&n!=n)&&(void 0!==r||b(e.base_,t)))return!0;J(e),L(e)}return!!(e.copy_[t]===r&&(void 0!==r||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t]))||(e.copy_[t]=r,e.assigned_[t]=!0,!0)},deleteProperty:(e,t)=>(void 0!==K(e.base_,t)||t in e.base_?(e.assigned_[t]=!1,J(e),L(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0),getOwnPropertyDescriptor(e,t){let r=w(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n?{writable:!0,configurable:1!==e.type_||"length"!==t,enumerable:n.enumerable,value:r[t]}:n},defineProperty(){o(11)},getPrototypeOf:e=>c(e.base_),setPrototypeOf(){o(12)}},W={};function K(e,t){let r=e[s];return(r?w(r):e)[t]}function H(e,t){if(!(t in e))return;let r=c(e);for(;r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=c(r)}}function L(e){!e.modified_&&(e.modified_=!0,e.parent_&&L(e.parent_))}function J(e){e.copy_||(e.copy_=P(e.base_,e.scope_.immer_.useStrictShallowCopy_))}d(R,(e,t)=>{W[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),W.deleteProperty=function(e,t){return W.set.call(this,e,t,void 0)},W.set=function(e,t,r){return R.set.call(this,e[0],t,r,e[0])};var X=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(e,t,r)=>{let n;if("function"==typeof e&&"function"!=typeof t){let r=t;t=e;let n=this;return function(e=r,...a){return n.produce(e,e=>t.call(this,e,...a))}}if("function"!=typeof t&&o(6),void 0!==r&&"function"!=typeof r&&o(7),l(e)){let a=I(this),i=$(e,void 0),s=!0;try{n=t(i),s=!1}finally{s?D(a):F(a)}return k(a,r),x(n,a)}if(e&&"object"==typeof e)o(1,e);else{if(void 0===(n=t(e))&&(n=e),n===a&&(n=void 0),this.autoFreeze_&&z(n,!0),r){let t=[],a=[];A("Patches").generateReplacementPatches_(e,n,t,a),r(t,a)}return n}},this.produceWithPatches=(e,t)=>{let r,n;return"function"==typeof e?(t,...r)=>this.produceWithPatches(t,t=>e(t,...r)):[this.produce(e,t,(e,t)=>{r=e,n=t}),r,n]},"boolean"==typeof e?.autoFreeze&&this.setAutoFreeze(e.autoFreeze),"boolean"==typeof e?.useStrictShallowCopy&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),"boolean"==typeof e?.useStrictIteration&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){l(e)||o(8),u(e)&&(e=q(e));let t=I(this),r=$(e,void 0);return r[s].isManual_=!0,F(t),r}finishDraft(e,t){let r=e&&e[s];r&&r.isManual_||o(9);let{scope_:n}=r;return k(n,t),x(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){let n=t[r];if(0===n.path.length&&"replace"===n.op){e=n.value;break}}r>-1&&(t=t.slice(r+1));let n=A("Patches").applyPatches_;return u(e)?n(e,t):this.produce(e,e=>n(e,t))}};function $(e,t){let r=m(e)?A("MapSet").proxyMap_(e,t):S(e)?A("MapSet").proxySet_(e,t):function(e,t){let r=Array.isArray(e),a={type_:+!!r,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1},i=a,s=R;r&&(i=[a],s=W);let{revoke:o,proxy:c}=Proxy.revocable(i,s);return a.draft_=c,a.revoke_=o,c}(e,t);return(t?t.scope_:n).drafts_.push(r),r}function q(e){return u(e)||o(10,e),function e(t){let r;if(!l(t)||j(t))return t;let n=t[s],a=!0;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,r=P(t,n.scope_.immer_.useStrictShallowCopy_),a=n.scope_.immer_.shouldUseStrictIteration()}else r=P(t,!0);return d(r,(t,n)=>{g(r,t,e(n))},a),n&&(n.finalized_=!1),r}(e)}function B(){let e="replace",t="remove";function r(e){if(!l(e))return e;if(Array.isArray(e))return e.map(r);if(m(e))return new Map(Array.from(e.entries()).map(([e,t])=>[e,r(t)]));if(S(e))return new Set(Array.from(e).map(r));let t=Object.create(c(e));for(let n in e)t[n]=r(e[n]);return b(e,i)&&(t[i]=e[i]),t}function n(e){return u(e)?r(e):e}M.Patches||(M.Patches={applyPatches_:function(n,a){return a.forEach(a=>{let{path:i,op:s}=a,c=n;for(let e=0;e<i.length-1;e++){let t=y(c),r=i[e];"string"!=typeof r&&"number"!=typeof r&&(r=""+r),(0===t||1===t)&&("__proto__"===r||"constructor"===r)&&o(19),"function"==typeof c&&"prototype"===r&&o(19),"object"!=typeof(c=v(c,r))&&o(18,i.join("/"))}let u=y(c),l=r(a.value),f=i[i.length-1];switch(s){case e:switch(u){case 2:return c.set(f,l);case 3:o(16);default:return c[f]=l}case"add":switch(u){case 1:return"-"===f?c.push(l):c.splice(f,0,l);case 2:return c.set(f,l);case 3:return c.add(l);default:return c[f]=l}case t:switch(u){case 1:return c.splice(f,1);case 2:return c.delete(f);case 3:return c.delete(a.value);default:return delete c[f]}default:o(17,s)}}),n},generatePatches_:function(r,a,i,s){switch(r.type_){case 0:case 2:return function(r,a,i,s){let{base_:o,copy_:c}=r;d(r.assigned_,(r,u)=>{let l=v(o,r),f=v(c,r),p=u?b(o,r)?e:"add":t;if(l===f&&p===e)return;let _=a.concat(r);i.push(p===t?{op:p,path:_}:{op:p,path:_,value:f}),s.push("add"===p?{op:t,path:_}:p===t?{op:"add",path:_,value:n(l)}:{op:e,path:_,value:n(l)})})}(r,a,i,s);case 1:return function(r,a,i,s){let{base_:o,assigned_:c}=r,u=r.copy_;u.length<o.length&&([o,u]=[u,o],[i,s]=[s,i]);for(let t=0;t<o.length;t++)if(c[t]&&u[t]!==o[t]){let r=a.concat([t]);i.push({op:e,path:r,value:n(u[t])}),s.push({op:e,path:r,value:n(o[t])})}for(let e=o.length;e<u.length;e++){let t=a.concat([e]);i.push({op:"add",path:t,value:n(u[e])})}for(let e=u.length-1;o.length<=e;--e){let r=a.concat([e]);s.push({op:t,path:r})}}(r,a,i,s);case 3:return function(e,r,n,a){let{base_:i,copy_:s}=e,o=0;i.forEach(e=>{if(!s.has(e)){let i=r.concat([o]);n.push({op:t,path:i,value:e}),a.unshift({op:"add",path:i,value:e})}o++}),o=0,s.forEach(e=>{if(!i.has(e)){let i=r.concat([o]);n.push({op:"add",path:i,value:e}),a.unshift({op:t,path:i,value:e})}o++})}(r,a,i,s)}},generateReplacementPatches_:function(t,r,n,i){n.push({op:e,path:[],value:r===a?void 0:r}),i.push({op:e,path:[],value:t})}})}function G(){class e extends Map{constructor(e,t){super(),this[s]={type_:2,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,assigned_:void 0,base_:e,draft_:this,isManual_:!1,revoked_:!1}}get size(){return w(this[s]).size}has(e){return w(this[s]).has(e)}set(e,r){let n=this[s];return i(n),w(n).has(e)&&w(n).get(e)===r||(t(n),L(n),n.assigned_.set(e,!0),n.copy_.set(e,r),n.assigned_.set(e,!0)),this}delete(e){if(!this.has(e))return!1;let r=this[s];return i(r),t(r),L(r),r.base_.has(e)?r.assigned_.set(e,!1):r.assigned_.delete(e),r.copy_.delete(e),!0}clear(){let e=this[s];i(e),w(e).size&&(t(e),L(e),e.assigned_=new Map,d(e.base_,t=>{e.assigned_.set(t,!1)}),e.copy_.clear())}forEach(e,t){w(this[s]).forEach((r,n,a)=>{e.call(t,this.get(n),n,this)})}get(e){let r=this[s];i(r);let n=w(r).get(e);if(r.finalized_||!l(n)||n!==r.base_.get(e))return n;let a=$(n,r);return t(r),r.copy_.set(e,a),a}keys(){return w(this[s]).keys()}values(){let e=this.keys();return{[Symbol.iterator]:()=>this.values(),next:()=>{let t=e.next();return t.done?t:{done:!1,value:this.get(t.value)}}}}entries(){let e=this.keys();return{[Symbol.iterator]:()=>this.entries(),next:()=>{let t=e.next();if(t.done)return t;let r=this.get(t.value);return{done:!1,value:[t.value,r]}}}}[Symbol.iterator](){return this.entries()}}function t(e){e.copy_||(e.assigned_=new Map,e.copy_=new Map(e.base_))}class r extends Set{constructor(e,t){super(),this[s]={type_:3,parent_:t,scope_:t?t.scope_:n,modified_:!1,finalized_:!1,copy_:void 0,base_:e,draft_:this,drafts_:new Map,revoked_:!1,isManual_:!1}}get size(){return w(this[s]).size}has(e){let t=this[s];return(i(t),t.copy_)?!!(t.copy_.has(e)||t.drafts_.has(e)&&t.copy_.has(t.drafts_.get(e))):t.base_.has(e)}add(e){let t=this[s];return i(t),this.has(e)||(a(t),L(t),t.copy_.add(e)),this}delete(e){if(!this.has(e))return!1;let t=this[s];return i(t),a(t),L(t),t.copy_.delete(e)||!!t.drafts_.has(e)&&t.copy_.delete(t.drafts_.get(e))}clear(){let e=this[s];i(e),w(e).size&&(a(e),L(e),e.copy_.clear())}values(){let e=this[s];return i(e),a(e),e.copy_.values()}entries(){let e=this[s];return i(e),a(e),e.copy_.entries()}keys(){return this.values()}[Symbol.iterator](){return this.values()}forEach(e,t){let r=this.values(),n=r.next();for(;!n.done;)e.call(t,n.value,n.value,this),n=r.next()}}function a(e){e.copy_||(e.copy_=new Set,e.base_.forEach(t=>{if(l(t)){let r=$(t,e);e.drafts_.set(t,r),e.copy_.add(r)}else e.copy_.add(t)}))}function i(e){e.revoked_&&o(3,JSON.stringify(w(e)))}M.MapSet||(M.MapSet={proxyMap_:function(t,r){return new e(t,r)},proxySet_:function(e,t){return new r(e,t)}})}var Q=new X,T=Q.produce,V=Q.produceWithPatches.bind(Q),Y=Q.setAutoFreeze.bind(Q),Z=Q.setUseStrictShallowCopy.bind(Q),ee=Q.setUseStrictIteration.bind(Q),et=Q.applyPatches.bind(Q),er=Q.createDraft.bind(Q),en=Q.finishDraft.bind(Q);function ea(e){return e}function ei(e){return e}}}]);
|
package/lib/cjs/HeatMapChart.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "HeatMapChart", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return HeatMapChart;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _components = require("./components");
|
|
24
|
-
const _heatmapchartmodel = require("./heat-map-chart-model");
|
|
25
|
-
const HeatMapChart = {
|
|
26
|
-
PanelComponent: _components.HeatMapChartPanel,
|
|
27
|
-
supportedQueryTypes: [
|
|
28
|
-
'TimeSeriesQuery'
|
|
29
|
-
],
|
|
30
|
-
queryOptions: {
|
|
31
|
-
mode: 'range'
|
|
32
|
-
},
|
|
33
|
-
panelOptionsEditorComponents: [
|
|
34
|
-
{
|
|
35
|
-
label: 'Settings',
|
|
36
|
-
content: _components.HeatMapChartOptionsEditorSettings
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
createInitialOptions: _heatmapchartmodel.createInitialHeatMapChartOptions
|
|
40
|
-
};
|
package/lib/cjs/bootstrap.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
18
|
-
const _react = /*#__PURE__*/ _interop_require_default(require("react"));
|
|
19
|
-
const _client = /*#__PURE__*/ _interop_require_default(require("react-dom/client"));
|
|
20
|
-
function _interop_require_default(obj) {
|
|
21
|
-
return obj && obj.__esModule ? obj : {
|
|
22
|
-
default: obj
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
const root = _client.default.createRoot(document.getElementById('root'));
|
|
26
|
-
root.render(/*#__PURE__*/ (0, _jsxruntime.jsx)(_react.default.StrictMode, {}));
|
|
@@ -1,227 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "HeatMapChart", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return HeatMapChart;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = require("react");
|
|
25
|
-
const _components = require("@perses-dev/components");
|
|
26
|
-
const _core = require("echarts/core");
|
|
27
|
-
const _charts = require("echarts/charts");
|
|
28
|
-
const _material = require("@mui/material");
|
|
29
|
-
const _utils = require("../utils");
|
|
30
|
-
const _HeatMapTooltip = require("./HeatMapTooltip");
|
|
31
|
-
(0, _core.use)([
|
|
32
|
-
_charts.CustomChart
|
|
33
|
-
]);
|
|
34
|
-
// The default coloring is a blue->yellow->red gradient
|
|
35
|
-
const DEFAULT_VISUAL_MAP_COLORS = [
|
|
36
|
-
'#313695',
|
|
37
|
-
'#4575b4',
|
|
38
|
-
'#74add1',
|
|
39
|
-
'#abd9e9',
|
|
40
|
-
'#e0f3f8',
|
|
41
|
-
'#ffffbf',
|
|
42
|
-
'#fee090',
|
|
43
|
-
'#fdae61',
|
|
44
|
-
'#f46d43',
|
|
45
|
-
'#d73027',
|
|
46
|
-
'#a50026'
|
|
47
|
-
];
|
|
48
|
-
function HeatMapChart({ width, height, data, xAxisCategories, yAxisFormat, countFormat, countMin, countMax, timeScale, showVisualMap, min, max, logBase }) {
|
|
49
|
-
const chartsTheme = (0, _components.useChartsTheme)();
|
|
50
|
-
const theme = (0, _material.useTheme)();
|
|
51
|
-
const { timeZone } = (0, _components.useTimeZone)();
|
|
52
|
-
const option = (0, _react.useMemo)(()=>{
|
|
53
|
-
return {
|
|
54
|
-
tooltip: {
|
|
55
|
-
appendToBody: true,
|
|
56
|
-
formatter: (params)=>{
|
|
57
|
-
return (0, _HeatMapTooltip.generateTooltipHTML)({
|
|
58
|
-
data: params.data.value,
|
|
59
|
-
label: params.data.label,
|
|
60
|
-
marker: params.marker,
|
|
61
|
-
xAxisCategories,
|
|
62
|
-
theme,
|
|
63
|
-
yAxisFormat: yAxisFormat,
|
|
64
|
-
countFormat: countFormat
|
|
65
|
-
});
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
xAxis: {
|
|
69
|
-
type: 'category',
|
|
70
|
-
data: xAxisCategories,
|
|
71
|
-
axisLabel: {
|
|
72
|
-
hideOverlap: true,
|
|
73
|
-
formatter: (0, _utils.getFormattedHeatmapAxisLabel)(timeScale?.rangeMs ?? 0, timeZone)
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
yAxis: {
|
|
77
|
-
type: logBase !== undefined ? 'log' : 'value',
|
|
78
|
-
logBase: logBase,
|
|
79
|
-
boundaryGap: [
|
|
80
|
-
0,
|
|
81
|
-
'10%'
|
|
82
|
-
],
|
|
83
|
-
min: min,
|
|
84
|
-
max: max,
|
|
85
|
-
axisLabel: {
|
|
86
|
-
hideOverlap: true,
|
|
87
|
-
formatter: (value)=>{
|
|
88
|
-
// On log scales, ECharts may generate a tick at 0 which is mathematically
|
|
89
|
-
// invalid (log(0) is undefined). Return empty string to hide such labels.
|
|
90
|
-
if (logBase !== undefined && value === 0) {
|
|
91
|
-
return '';
|
|
92
|
-
}
|
|
93
|
-
return (0, _components.formatValue)(value, yAxisFormat);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
visualMap: {
|
|
98
|
-
show: showVisualMap ?? false,
|
|
99
|
-
type: 'continuous',
|
|
100
|
-
min: countMin,
|
|
101
|
-
max: countMax,
|
|
102
|
-
realtime: false,
|
|
103
|
-
itemHeight: height - 30,
|
|
104
|
-
itemWidth: 10,
|
|
105
|
-
orient: 'vertical',
|
|
106
|
-
left: 'right',
|
|
107
|
-
top: 'center',
|
|
108
|
-
inRange: {
|
|
109
|
-
color: DEFAULT_VISUAL_MAP_COLORS
|
|
110
|
-
},
|
|
111
|
-
textStyle: {
|
|
112
|
-
color: theme.palette.text.primary,
|
|
113
|
-
textBorderColor: theme.palette.background.default,
|
|
114
|
-
textBorderWidth: 5
|
|
115
|
-
},
|
|
116
|
-
// Color by the count dimension (index 3)
|
|
117
|
-
dimension: 3
|
|
118
|
-
},
|
|
119
|
-
series: [
|
|
120
|
-
{
|
|
121
|
-
name: 'HeatMap',
|
|
122
|
-
type: 'custom',
|
|
123
|
-
renderItem: function(params, api) {
|
|
124
|
-
const xIndex = api.value(0);
|
|
125
|
-
const yLower = api.value(1);
|
|
126
|
-
const yUpper = api.value(2);
|
|
127
|
-
// Pixel coordinates
|
|
128
|
-
const upperStart = api.coord([
|
|
129
|
-
xIndex,
|
|
130
|
-
yUpper
|
|
131
|
-
]);
|
|
132
|
-
const lowerStart = api.coord([
|
|
133
|
-
xIndex,
|
|
134
|
-
yLower
|
|
135
|
-
]);
|
|
136
|
-
const upperNext = api.coord([
|
|
137
|
-
xIndex + 1,
|
|
138
|
-
yUpper
|
|
139
|
-
]);
|
|
140
|
-
const startX = upperStart?.[0];
|
|
141
|
-
const upperY = upperStart?.[1];
|
|
142
|
-
const lowerY = lowerStart?.[1];
|
|
143
|
-
const nextX = upperNext?.[0];
|
|
144
|
-
if (startX === undefined || upperY === undefined || lowerY === undefined || nextX === undefined) {
|
|
145
|
-
return null;
|
|
146
|
-
}
|
|
147
|
-
const topY = Math.min(upperY, lowerY);
|
|
148
|
-
const bottomY = Math.max(upperY, lowerY);
|
|
149
|
-
const width = nextX - startX;
|
|
150
|
-
const height = bottomY - topY;
|
|
151
|
-
return {
|
|
152
|
-
type: 'rect',
|
|
153
|
-
shape: {
|
|
154
|
-
x: startX,
|
|
155
|
-
y: topY,
|
|
156
|
-
width,
|
|
157
|
-
height
|
|
158
|
-
},
|
|
159
|
-
style: {
|
|
160
|
-
fill: api.visual('color')
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
},
|
|
164
|
-
label: {
|
|
165
|
-
show: false
|
|
166
|
-
},
|
|
167
|
-
dimensions: [
|
|
168
|
-
'xIndex',
|
|
169
|
-
'yLower',
|
|
170
|
-
'yUpper',
|
|
171
|
-
'count'
|
|
172
|
-
],
|
|
173
|
-
encode: {
|
|
174
|
-
x: 0,
|
|
175
|
-
y: [
|
|
176
|
-
1,
|
|
177
|
-
2
|
|
178
|
-
],
|
|
179
|
-
tooltip: [
|
|
180
|
-
1,
|
|
181
|
-
2,
|
|
182
|
-
3
|
|
183
|
-
]
|
|
184
|
-
},
|
|
185
|
-
data: data,
|
|
186
|
-
progressive: 1000,
|
|
187
|
-
animation: false
|
|
188
|
-
}
|
|
189
|
-
]
|
|
190
|
-
};
|
|
191
|
-
}, [
|
|
192
|
-
xAxisCategories,
|
|
193
|
-
timeScale?.rangeMs,
|
|
194
|
-
timeZone,
|
|
195
|
-
yAxisFormat,
|
|
196
|
-
showVisualMap,
|
|
197
|
-
countMin,
|
|
198
|
-
countMax,
|
|
199
|
-
height,
|
|
200
|
-
theme,
|
|
201
|
-
data,
|
|
202
|
-
countFormat,
|
|
203
|
-
min,
|
|
204
|
-
max,
|
|
205
|
-
logBase
|
|
206
|
-
]);
|
|
207
|
-
const chart = (0, _react.useMemo)(()=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.EChart, {
|
|
208
|
-
style: {
|
|
209
|
-
width: width,
|
|
210
|
-
height: height
|
|
211
|
-
},
|
|
212
|
-
sx: {
|
|
213
|
-
padding: `${chartsTheme.container.padding.default}px`
|
|
214
|
-
},
|
|
215
|
-
option: option,
|
|
216
|
-
theme: chartsTheme.echartsTheme
|
|
217
|
-
}), [
|
|
218
|
-
chartsTheme.container.padding.default,
|
|
219
|
-
chartsTheme.echartsTheme,
|
|
220
|
-
height,
|
|
221
|
-
option,
|
|
222
|
-
width
|
|
223
|
-
]);
|
|
224
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
225
|
-
children: chart
|
|
226
|
-
});
|
|
227
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "HeatMapChartOptionsEditorSettings", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return HeatMapChartOptionsEditorSettings;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _material = require("@mui/material");
|
|
25
|
-
const _components = require("@perses-dev/components");
|
|
26
|
-
const _immer = require("immer");
|
|
27
|
-
const _merge = /*#__PURE__*/ _interop_require_default(require("lodash/merge"));
|
|
28
|
-
const _heatmapchartmodel = require("../heat-map-chart-model");
|
|
29
|
-
function _interop_require_default(obj) {
|
|
30
|
-
return obj && obj.__esModule ? obj : {
|
|
31
|
-
default: obj
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function HeatMapChartOptionsEditorSettings(props) {
|
|
35
|
-
const { onChange, value } = props;
|
|
36
|
-
const handleYAxisFormatChange = (newFormat)=>{
|
|
37
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
38
|
-
draft.yAxisFormat = newFormat;
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
41
|
-
const handleCountFormatChange = (newFormat)=>{
|
|
42
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
43
|
-
draft.countFormat = newFormat;
|
|
44
|
-
}));
|
|
45
|
-
};
|
|
46
|
-
const handleShowVisualMapChange = (_, checked)=>{
|
|
47
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
48
|
-
draft.showVisualMap = checked;
|
|
49
|
-
}));
|
|
50
|
-
};
|
|
51
|
-
// ensures decimalPlaces defaults to correct value
|
|
52
|
-
const yAxisFormat = (0, _merge.default)({}, _heatmapchartmodel.DEFAULT_FORMAT, value.yAxisFormat);
|
|
53
|
-
const countFormat = (0, _merge.default)({}, _heatmapchartmodel.DEFAULT_FORMAT, value.countFormat);
|
|
54
|
-
// Get the current log base configuration, defaulting to 'none' if not set
|
|
55
|
-
const logBaseKey = value.logBase ? String(value.logBase) : 'none';
|
|
56
|
-
const logBase = _heatmapchartmodel.LOG_BASE_CONFIG[logBaseKey] ?? _heatmapchartmodel.LOG_BASE_CONFIG['none'];
|
|
57
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.OptionsEditorGrid, {
|
|
58
|
-
children: [
|
|
59
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorColumn, {
|
|
60
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.OptionsEditorGroup, {
|
|
61
|
-
title: "Bucket Count",
|
|
62
|
-
children: [
|
|
63
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.FormatControls, {
|
|
64
|
-
value: countFormat,
|
|
65
|
-
onChange: handleCountFormatChange
|
|
66
|
-
}),
|
|
67
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorControl, {
|
|
68
|
-
label: "Show Visual Map",
|
|
69
|
-
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.Switch, {
|
|
70
|
-
checked: !!value.showVisualMap,
|
|
71
|
-
onChange: handleShowVisualMapChange
|
|
72
|
-
})
|
|
73
|
-
})
|
|
74
|
-
]
|
|
75
|
-
})
|
|
76
|
-
}),
|
|
77
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorColumn, {
|
|
78
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_components.OptionsEditorGroup, {
|
|
79
|
-
title: "Y Axis",
|
|
80
|
-
children: [
|
|
81
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.FormatControls, {
|
|
82
|
-
value: yAxisFormat,
|
|
83
|
-
onChange: handleYAxisFormatChange
|
|
84
|
-
}),
|
|
85
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorControl, {
|
|
86
|
-
label: "Min",
|
|
87
|
-
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
88
|
-
type: "number",
|
|
89
|
-
value: value.min ?? '',
|
|
90
|
-
onChange: (e)=>{
|
|
91
|
-
const newValue = e.target.value ? Number(e.target.value) : undefined;
|
|
92
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
93
|
-
draft.min = newValue;
|
|
94
|
-
}));
|
|
95
|
-
},
|
|
96
|
-
placeholder: "Auto",
|
|
97
|
-
sx: {
|
|
98
|
-
width: '100%'
|
|
99
|
-
}
|
|
100
|
-
})
|
|
101
|
-
}),
|
|
102
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorControl, {
|
|
103
|
-
label: "Max",
|
|
104
|
-
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_material.TextField, {
|
|
105
|
-
type: "number",
|
|
106
|
-
value: value.max ?? '',
|
|
107
|
-
onChange: (e)=>{
|
|
108
|
-
const newValue = e.target.value ? Number(e.target.value) : undefined;
|
|
109
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
110
|
-
draft.max = newValue;
|
|
111
|
-
}));
|
|
112
|
-
},
|
|
113
|
-
placeholder: "Auto",
|
|
114
|
-
sx: {
|
|
115
|
-
width: '100%'
|
|
116
|
-
}
|
|
117
|
-
})
|
|
118
|
-
}),
|
|
119
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_components.OptionsEditorControl, {
|
|
120
|
-
label: "Log Base",
|
|
121
|
-
control: /*#__PURE__*/ (0, _jsxruntime.jsx)(_components.SettingsAutocomplete, {
|
|
122
|
-
value: {
|
|
123
|
-
...logBase,
|
|
124
|
-
id: logBase?.label ?? 'None'
|
|
125
|
-
},
|
|
126
|
-
options: _heatmapchartmodel.LOG_BASE_OPTIONS,
|
|
127
|
-
onChange: (__, newValue)=>{
|
|
128
|
-
onChange((0, _immer.produce)(value, (draft)=>{
|
|
129
|
-
draft.logBase = newValue.log;
|
|
130
|
-
}));
|
|
131
|
-
},
|
|
132
|
-
disableClearable: true
|
|
133
|
-
})
|
|
134
|
-
})
|
|
135
|
-
]
|
|
136
|
-
})
|
|
137
|
-
})
|
|
138
|
-
]
|
|
139
|
-
});
|
|
140
|
-
}
|