@splunk/dynamic-editors 0.38.4 → 0.39.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/CHANGELOG.md +11 -0
- package/DynamicEditor.js +1 -1
- package/DynamicEditor.js.map +1 -1
- package/containers/EditorItem.js +100 -100
- package/containers/EditorItem.js.map +1 -1
- package/containers/EditorLayout.js +1 -1
- package/containers/EditorLayout.js.map +1 -1
- package/containers/EditorLayoutItem.js +1 -1
- package/containers/EditorLayoutItem.js.map +1 -1
- package/editors/NumberEditor.js +3 -3
- package/editors/NumberEditor.js.map +1 -1
- package/editors/PercentEditor.js +2 -2
- package/editors/PercentEditor.js.map +1 -1
- package/editors/TableColumnFormatterEditor.js +1 -1
- package/editors/TableColumnFormatterEditor.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.39.0](https://cd.splunkdev.com/devplat/splunk-dynamic-editors/compare/v0.38.4...v0.39.0) (2025-10-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add help tooltip to number editor ([18182e5](https://cd.splunkdev.com/devplat/splunk-dynamic-editors/commits/18182e5034b3ab245b52e32d5f70c0cbf21f26d9))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [0.38.4](https://cd.splunkdev.com/devplat/splunk-dynamic-editors/compare/v0.38.3...v0.38.4) (2025-10-31)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @splunk/dynamic-editors
|
package/DynamicEditor.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright © 2018 Splunk Inc.
|
|
3
3
|
* SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
|
|
4
4
|
* in part without a valid written license from Splunk Inc. is PROHIBITED.
|
|
5
|
-
*/(()=>{"use strict";var e={1353:(e,t,o)=>{o.r(t),o.d(t,{default:()=>Zt,editorTypeToComponentMap:()=>Ht});var a=o(2649),n=o.n(a),r=o(9497),l=o.n(r),i=o(23),s=o.n(i),u=o(2749),c=o.n(u),d=o(2373),f=o.n(d),p=o(2166),m=o(1027),g=o(5862),b=o(4008),h=o.n(b);const v=({onChange:e,name:t,itemSchema:o,values:a,value:n,labelPosition:i="top",labelWidth:s,label:u,tooltip:c,isDisabled:d=!1,isAdvanced:b,hideLabel:v})=>{const y=(0,m.getOptions)(o,a),C=(0,p.hasTokens)(n)||d,_=(0,r.useCallback)(((o,{value:a})=>e(o,t,a)),[e,t]);return l().createElement(h(),{label:u,labelPosition:i,labelWidth:s,tooltip:c,isAdvanced:b,hideLabel:v},l().createElement(f(),{"data-test":t,onChange:_,value:n,disabled:C,style:g.editorStyle},y.map((e=>l().createElement(f().Option,{key:e.value,value:e.value,label:e.label||e.value,icon:e.icon?l().createElement(e.icon,null):null})))))};v.propTypes={onChange:s().func.isRequired,name:s().string.isRequired,itemSchema:s().object,values:s().arrayOf(s().shape({label:s().string,value:s().oneOfType([s().string,s().number]).isRequired})),value:s().oneOfType([s().string,s().number]),label:s().string.isRequired,labelPosition:s().oneOf(["left","top"]),labelWidth:s().number,tooltip:s().string,isDisabled:s().bool,isAdvanced:s().bool,hideLabel:s().bool};const y=v;var C=o(3263),_=o(9967),O=o(2065),E=o(2782),x=o.n(E),j=o(5592);const P=({onChange:e,name:t,value:o=null,labelPosition:a="top",labelWidth:n,label:i,min:s,max:u,step:c,isDisabled:d,help:f,defaultValue:
|
|
5
|
+
*/(()=>{"use strict";var e={1353:(e,t,o)=>{o.r(t),o.d(t,{default:()=>Zt,editorTypeToComponentMap:()=>Ht});var a=o(2649),n=o.n(a),r=o(9497),l=o.n(r),i=o(23),s=o.n(i),u=o(2749),c=o.n(u),d=o(2373),f=o.n(d),p=o(2166),m=o(1027),g=o(5862),b=o(4008),h=o.n(b);const v=({onChange:e,name:t,itemSchema:o,values:a,value:n,labelPosition:i="top",labelWidth:s,label:u,tooltip:c,isDisabled:d=!1,isAdvanced:b,hideLabel:v})=>{const y=(0,m.getOptions)(o,a),C=(0,p.hasTokens)(n)||d,_=(0,r.useCallback)(((o,{value:a})=>e(o,t,a)),[e,t]);return l().createElement(h(),{label:u,labelPosition:i,labelWidth:s,tooltip:c,isAdvanced:b,hideLabel:v},l().createElement(f(),{"data-test":t,onChange:_,value:n,disabled:C,style:g.editorStyle},y.map((e=>l().createElement(f().Option,{key:e.value,value:e.value,label:e.label||e.value,icon:e.icon?l().createElement(e.icon,null):null})))))};v.propTypes={onChange:s().func.isRequired,name:s().string.isRequired,itemSchema:s().object,values:s().arrayOf(s().shape({label:s().string,value:s().oneOfType([s().string,s().number]).isRequired})),value:s().oneOfType([s().string,s().number]),label:s().string.isRequired,labelPosition:s().oneOf(["left","top"]),labelWidth:s().number,tooltip:s().string,isDisabled:s().bool,isAdvanced:s().bool,hideLabel:s().bool};const y=v;var C=o(3263),_=o(9967),O=o(2065),E=o(2782),x=o.n(E),j=o(5592);const P=({onChange:e,name:t,value:o=null,labelPosition:a="top",labelWidth:n,label:i,min:s,max:u,step:c,isDisabled:d,help:f,helpFormat:p="under",defaultValue:m})=>{const g=(0,r.useCallback)(((o,a)=>{if(void 0===m&&null==a)return void e(o,t,a);const n=parseFloat(null!=a?a:m);Number.isFinite(n)&&e(o,t,n)}),[m,e,t]),{currentValue:b,handleChange:v,handleBlur:y,handleFocus:C,handleKeyPress:_}=(0,j.useNumberInput)({value:o,min:s,max:u,defaultValue:m,onValueChange:g});return l().createElement(h(),{label:i,labelPosition:a,labelWidth:n,help:"under"===p?f:void 0,tooltip:"tooltip"===p?f:void 0,tooltipDefaultPlacement:"top"},l().createElement(x(),{"data-test":t,min:s,max:u,step:c,onChange:v,onBlur:y,onFocus:C,onKeyDown:_,value:b,disabled:d}))};P.propTypes={onChange:s().func.isRequired,name:s().string.isRequired,label:s().string.isRequired,value:s().number,defaultValue:s().number,labelPosition:s().oneOf(["top","left"]),labelWidth:s().number,min:s().number,max:s().number,step:s().number,isDisabled:s().bool,help:s().string,helpFormat:s().oneOf(["text","under"])};const w=P;var T=o(437);const S=({name:e,value:t=0,labelPosition:o="top",labelWidth:a,label:n,onChange:i,isDisabled:s=!1,help:u})=>{const c=(0,r.useCallback)(((e,t,o)=>{i(e,t,null==o?o:o/100)}),[i]);return l().createElement(w,{name:e,value:Math.round(100*t),label:n,labelPosition:o,labelWidth:a,onChange:c,min:0,max:100,step:1,disabled:s,help:u})};S.propTypes={onChange:s().func.isRequired,name:s().string.isRequired,label:s().string.isRequired,labelWidth:s().number,value:s().number,labelPosition:s().oneOf(["top","left"]),isDisabled:s().bool,help:s().string};const D=S;var M=o(148),k=o.n(M),F=o(4215),R=o.n(F);const B=require("@splunk/visualization-context/ImageContext");var A=o.n(B),I=o(6195),L=o.n(I),$=o(232),V=o.n($),N=o(6649),q=o(2138),W=o.n(q),z=o(4082),U=o.n(z);const K=require("@splunk/react-ui/Image");var G=o.n(K),H=o(7464),Y=o.n(H),Z=o(4793),X=o(962);const J=V().div`
|
|
6
6
|
padding-bottom: 5px;
|
|
7
7
|
width: 100%;
|
|
8
8
|
text-align: center;
|