@nebula.js/sn-org-chart 1.4.1 → 1.6.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/README.md +0 -3
- package/api-specifications/properties.json +2 -2
- package/core/esm/index.js +4 -4
- package/dist/sn-org-chart.js +4 -4
- package/dist/sn-org-chart.systemjs.js +4 -4
- package/package.json +36 -37
- package/sn-org-chart-ext/dist/sn-org-chart.js +4 -4
- package/sn-org-chart-ext/ext.js +4 -4
- package/sn-org-chart-ext/sn-org-chart.js +12 -1
- package/sn-org-chart-ext/sn-org-chart.qext +3 -3
package/sn-org-chart-ext/ext.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
define(
|
|
1
|
+
define(function(){"use strict";var e={FONT_COLOR_TYPE:"auto",FONT_COLOR_DARK:{index:-1,color:"#484848"},BACKGROUND_COLOR_TYPE:"colorPicker",BACKGROUND_COLOR:{index:-1,color:"#ffffff"},BORDER_COLOR_TYPE:"auto",BORDER_COLOR:{index:-1,color:"#737373"},BORDER_FULL:!0,BORDER_TOP:!0,FONT_COLOR_USE_EXPRESSION:!1,BACKGROUND_USE_EXPRESSION:!1,BORDER_USE_EXPRESSION:!1,IMAGE_LOCATION:"both",IMAGE_ALIGNMENT:"left",IMAGE_SHAPE:"rectangle",IMAGE_CLIP:!0};var t={getValue:function(e,t,r){const o=t.split(".");let n;if(void 0===e)return r;let a=e;for(n=0;n<o.length;++n){if(void 0===a[o[n]])return r;a=a[o[n]]}return a}};
|
|
2
2
|
/*
|
|
3
|
-
* qlik-chart-modules v0.
|
|
4
|
-
* Copyright (c)
|
|
3
|
+
* qlik-chart-modules v0.100.1
|
|
4
|
+
* Copyright (c) 2026 QlikTech International AB
|
|
5
5
|
* Released under the MIT license.
|
|
6
6
|
*/
|
|
7
|
-
function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],a=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var i=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function s(e){var t=e.theme,r=e.translator,s=e.defaultValue,l=e.flags,u=[],c=t.getStyle("","","fontFamilies");return Array.isArray(c)&&c.length?u.push.apply(u,n(new Set([s].concat(n(c.map((function(e){return e.split(",").map((function(e){return e.trim()})).map((function(e){return e.replace(/\s+/g," ").trim()})).filter(Boolean).join(", ")}))))))):u.push(s),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(n(u.map((function(e){return i(e)}))),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],n(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?a:o}(l).map((function(e){return i(e)}))))}function l(e){var t=e.theme,r=e.translator,n=e.id,o=e.path,a=e.flags,i=function(){return t.getStyle(n,o,"fontFamily")};return{getDefaultValue:function(){return i()},getOptions:function(){return s({theme:t,translator:r,defaultValue:i(),flags:a})}}}var u,c,p=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],d=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function f(e){var t=e.theme,r=e.translator,o=e.id,a=e.path,i=function(){return t.getStyle(o,a,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,o=[],a=e.theme.getStyle("","","fontSizes");return Array.isArray(a)&&a.length?o.push.apply(o,n(new Set([r].concat(n(a))))):o.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(n(o.map((function(e){return d(e)}))),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],n(p.map((function(e){return d(e)}))))}({theme:t,translator:r,defaultValue:i()})}}}function h(e){var t=e.theme,r=e.translator,n=e.id,o=e.path;return{fontFamily:l({theme:t,translator:r,id:n,path:o,flags:e.flags}),fontSize:f({theme:t,translator:r,id:n,path:o})}}var m,g=function(){if(c)return u;c=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var n,o=e.call(r,"constructor"),a=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!o&&!a)return!1;for(n in r);return void 0===n||e.call(r,n)},i=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(n)return n(t,r).value}return t[r]};return u=function e(){var t,r,n,l,u,c,p=arguments[0],d=1,f=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)n=s(p,r),p!==(l=s(t,r))&&(h&&l&&(a(l)||(u=o(l)))?(u?(u=!1,c=n&&o(n)?n:[]):c=n&&a(n)?n:{},i(p,{name:r,newValue:e(h,c,l)})):void 0!==l&&i(p,{name:r,newValue:l}));return p},u}();function b(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function y(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function v(){}(m=g)&&m.__esModule&&Object.prototype.hasOwnProperty.call(m,"default")&&m.default;var O=1/.7,x="\\s*([+-]?\\d+)\\s*",C="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",w="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",E=/^#([0-9a-f]{3,8})$/,k=new RegExp(`^rgb\\(${x},${x},${x}\\)$`),R=new RegExp(`^rgb\\(${w},${w},${w}\\)$`),_=new RegExp(`^rgba\\(${x},${x},${x},${C}\\)$`),N=new RegExp(`^rgba\\(${w},${w},${w},${C}\\)$`),S=new RegExp(`^hsl\\(${C},${w},${w}\\)$`),T=new RegExp(`^hsla\\(${C},${w},${w},${C}\\)$`),A={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function V(){return this.rgb().formatHex()}function M(){return this.rgb().formatRgb()}function I(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=E.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?L(t):3===r?new D(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?$(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?$(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=k.exec(e))?new D(t[1],t[2],t[3],1):(t=R.exec(e))?new D(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=_.exec(e))?$(t[1],t[2],t[3],t[4]):(t=N.exec(e))?$(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=S.exec(e))?U(t[1],t[2]/100,t[3]/100,1):(t=T.exec(e))?U(t[1],t[2]/100,t[3]/100,t[4]):A.hasOwnProperty(e)?L(A[e]):"transparent"===e?new D(NaN,NaN,NaN,0):null}function L(e){return new D(e>>16&255,e>>8&255,255&e,1)}function $(e,t,r,n){return n<=0&&(e=t=r=NaN),new D(e,t,r,n)}function B(e){return e instanceof v||(e=I(e)),e?new D((e=e.rgb()).r,e.g,e.b,e.opacity):new D}function j(e,t,r,n){return 1===arguments.length?B(e):new D(e,t,r,null==n?1:n)}function D(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function P(){return`#${q(this.r)}${q(this.g)}${q(this.b)}`}function G(){const e=H(this.opacity);return`${1===e?"rgb(":"rgba("}${F(this.r)}, ${F(this.g)}, ${F(this.b)}${1===e?")":`, ${e})`}`}function H(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function F(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function q(e){return((e=F(e))<16?"0":"")+e.toString(16)}function U(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new z(e,t,r,n)}function Y(e){if(e instanceof z)return new z(e.h,e.s,e.l,e.opacity);if(e instanceof v||(e=I(e)),!e)return new z;if(e instanceof z)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),a=Math.max(t,r,n),i=NaN,s=a-o,l=(a+o)/2;return s?(i=t===a?(r-n)/s+6*(r<n):r===a?(n-t)/s+2:(t-r)/s+4,s/=l<.5?a+o:2-a-o,i*=60):s=l>0&&l<1?0:i,new z(i,s,l,e.opacity)}function z(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function K(e){return(e=(e||0)%360)<0?e+360:e}function X(e){return Math.max(0,Math.min(1,e||0))}function W(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}b(v,I,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:V,formatHex:V,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Y(this).formatHsl()},formatRgb:M,toString:M}),b(D,j,y(v,{brighter(e){return e=null==e?O:Math.pow(O,e),new D(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new D(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new D(F(this.r),F(this.g),F(this.b),H(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatHex8:function(){return`#${q(this.r)}${q(this.g)}${q(this.b)}${q(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:G,toString:G})),b(z,(function(e,t,r,n){return 1===arguments.length?Y(e):new z(e,t,r,null==n?1:n)}),y(v,{brighter(e){return e=null==e?O:Math.pow(O,e),new z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new D(W(e>=240?e-240:e+120,o,n),W(e,o,n),W(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new z(K(this.h),X(this.s),X(this.l),H(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=H(this.opacity);return`${1===e?"hsl(":"hsla("}${K(this.h)}, ${100*X(this.s)}%, ${100*X(this.l)}%${1===e?")":`, ${e})`}`}}));const Z=Math.PI/180,Q=180/Math.PI,J=4/29,ee=6/29,te=3*ee*ee;function re(e){if(e instanceof ne)return new ne(e.l,e.a,e.b,e.opacity);if(e instanceof le)return ue(e);e instanceof D||(e=B(e));var t,r,n=se(e.r),o=se(e.g),a=se(e.b),i=oe((.2225045*n+.7168786*o+.0606169*a)/1);return n===o&&o===a?t=r=i:(t=oe((.4360747*n+.3850649*o+.1430804*a)/.96422),r=oe((.0139322*n+.0971045*o+.7141733*a)/.82521)),new ne(116*i-16,500*(t-i),200*(i-r),e.opacity)}function ne(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function oe(e){return e>.008856451679035631?Math.pow(e,1/3):e/te+J}function ae(e){return e>ee?e*e*e:te*(e-J)}function ie(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function se(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function le(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function ue(e){if(isNaN(e.h))return new ne(e.l,0,0,e.opacity);var t=e.h*Z;return new ne(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}b(ne,(function(e,t,r,n){return 1===arguments.length?re(e):new ne(e,t,r,null==n?1:n)}),y(v,{brighter(e){return new ne(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new ne(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new D(ie(3.1338561*(t=.96422*ae(t))-1.6168667*(e=1*ae(e))-.4906146*(r=.82521*ae(r))),ie(-.9787684*t+1.9161415*e+.033454*r),ie(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),b(le,(function(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof le)return new le(e.h,e.c,e.l,e.opacity);if(e instanceof ne||(e=re(e)),0===e.a&&0===e.b)return new le(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Q;return new le(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new le(e,t,r,null==n?1:n)}),y(v,{brighter(e){return new le(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new le(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ue(this).rgb()}}));var ce=e=>()=>e;function pe(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):ce(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1==(e=+e)?pe:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):ce(isNaN(t)?r:t)}}(t);function n(e,t){var n=r((e=j(e)).r,(t=j(t)).r),o=r(e.g,t.g),a=r(e.b,t.b),i=pe(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=a(t),e.opacity=i(t),e+""}}return n.gamma=e,n}(1);var de,fe="center",he="bottom";function me(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;--n>=0;)t+=r[n].value;else t=1;e.value=t}function ge(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=ye)):void 0===t&&(t=be);for(var r,n,o,a,i,s=new xe(e),l=[s];r=l.pop();)if((o=t(r.data))&&(i=(o=Array.from(o)).length))for(r.children=o,a=i-1;a>=0;--a)l.push(n=o[a]=new xe(o[a])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(Oe)}function be(e){return e.children}function ye(e){return Array.isArray(e)?e[1]:null}function ve(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Oe(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function xe(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:fe,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:fe,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return"NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:fe,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:fe},{key:"DataRangeIncludingZero",alignment:he},{key:"LimitedData",alignment:he},{key:"NegativeOrZeroValues",alignment:he}].reduce((function(e,t){return e[t.key]=t,e}),{}),xe.prototype=ge.prototype={constructor:xe,count:function(){return this.eachAfter(me)},each:function(e,t){let r=-1;for(const n of this)e.call(t,n,++r,this);return this},eachAfter:function(e,t){for(var r,n,o,a=this,i=[a],s=[],l=-1;a=i.pop();)if(s.push(a),r=a.children)for(n=0,o=r.length;n<o;++n)i.push(r[n]);for(;a=s.pop();)e.call(t,a,++l,this);return this},eachBefore:function(e,t){for(var r,n,o=this,a=[o],i=-1;o=a.pop();)if(e.call(t,o,++i,this),r=o.children)for(n=r.length-1;n>=0;--n)a.push(r[n]);return this},find:function(e,t){let r=-1;for(const n of this)if(e.call(t,n,++r,this))return n},sum:function(e){return this.eachAfter((function(t){for(var r=+e(t.data)||0,n=t.children,o=n&&n.length;--o>=0;)r+=n[o].value;t.value=r}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e)}))},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),o=null;for(e=r.pop(),t=n.pop();e===t;)o=e,e=r.pop(),t=n.pop();return o}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var o=n.length;e!==r;)n.splice(o,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t)})),e},links:function(){var e=this,t=[];return e.each((function(r){r!==e&&t.push({source:r.parent,target:r})})),t},copy:function(){return ge(this).eachBefore(ve)},[Symbol.iterator]:function*(){var e,t,r,n,o=this,a=[o];do{for(e=a.reverse(),a=[];o=e.pop();)if(yield o,t=o.children)for(r=0,n=t.length;r<n;++r)a.push(t[r])}while(a.length)}},de=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,n,o,a,i,s,l,u,c,p,d=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),O=g>0?e.substring(v,d):"";if(r=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,o=(n=e.match(/[^\d\-\+#]/g))&&n[n.length-1]||".",a=n&&n[1]&&n[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",s=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=s)&&(t=(+t).toFixed(s+1)),c=e[0].split(a),e[0]=c.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-i;)u[0]="0"+u[0];else 0==+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],l=c[1]&&c[c.length-1].length){for(m="",b=(p=t[0]).length%l,d=p.length,v=0;v<d;v++)m+=p.charAt(v),!((v-b+1)%l)&&v<d-l&&(m+=a);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(n=t.join(""))&&""!==n||(r=!1),h+(r?"-":"")+n+O}},de({exports:{}});const Ce=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],we=e=>{var t;return null===(t=e.contrastTextColor)||void 0===t||t};function Ee(t,r,n){const o=`${t}.${r}`,a=`${o}.fontFamily`,i=`${o}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:a,options:()=>n.getOptions(`card.${a}`),defaultValue:()=>n.getDefaultValue(`card.${a}`)},fontSizeItem:{component:"dropdown",ref:i,options:()=>n.getOptions(`card.${i}`),defaultValue:()=>n.getDefaultValue(`card.${i}`)},fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:`${o}.useColorExpression`,width:!0,component:"dropdown",defaultValue:e.FONT_COLOR_USE_EXPRESSION,options:Ce,show:e=>!we(e)},colorPicker:{component:"color-picker",ref:`${o}.color`,width:!1,dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>{var n;return!(we(e)||null!==(n=e[t])&&void 0!==n&&null!==(n=n[r])&&void 0!==n&&n.useColorExpression)}}}},colorExpression:{component:"input-field-expression",type:"string",ref:`${o}.colorExpression`,width:!0,expression:"optional",defaultValue:"",show:e=>{var n;return!we(e)&&(null===(n=e[t])||void 0===n||null===(n=n[r])||void 0===n?void 0:n.useColorExpression)}}}}const ke=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],Re=[{value:"card",translation:"Card only"},{value:"tooltip",translation:"Tooltip only"},{value:"both",translation:"Card and tooltip"}],_e=[{value:"left",translation:"Left"},{value:"right",translation:"Right"},{value:"top",translation:"Top"},{value:"bottom",translation:"Bottom"}],Ne=[{value:"rectangle",translation:"Rectangle"},{value:"round",translation:"Round"}];function Se(t,r,n){const o=function(e){var t=e.theme,r=e.translator,n=e.config,o=void 0===n?{}:n,a=e.flags,i=function(e){var t=e.config,r=void 0===t?{}:t,n=r.id,o=r.paths;return{id:void 0===n?"object":"".concat("object",".").concat(n),paths:Array.isArray(o)?o:[]}}({config:o}),s=i.id,l=i.paths,u={};l.forEach((function(e){for(var n=e.split("."),o=u,i=0;i<n.length;i++){var l=n[i];i===n.length-1?o[l]=h({theme:t,translator:r,id:s,path:e,flags:a}):void 0===o[l]&&(o[l]={}),o=o[l]}}));var c=function(e){for(var t=e.split("."),r=u,n=0;n<t.length;n++){var o=t[n];if(void 0===r[o])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[o]}return r};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:t,translator:n,flags:r,config:{id:"orgChart",paths:["card.title.main","card.title.subTitle","card.label.description","card.label.measureLabel","card.label.measureValue"]}}),a=t=>{var r,n,o,a;return(null!==(r=null===(n=t.border)||void 0===n?void 0:n.topBar)&&void 0!==r?r:e.BORDER_TOP)||(null!==(o=null===(a=t.border)||void 0===a?void 0:a.fullBorder)&&void 0!==o?o:e.BORDER_FULL)},i=e=>{var t,r;return null===(t=null===(r=e.border)||void 0===r?void 0:r.contrastColor)||void 0===t||t};return{component:"styling-panel",show:!0,chartType:"orgchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.OrgChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{contrastTextColorSection:{translation:"Object.OrgChart.Card.TextColor",component:"panel-section",items:{contrastTextColorItems:{component:"items",ref:"components",key:"card",items:{useContrast:{component:"checkbox",type:"boolean",ref:"contrastTextColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0}}}}},titleSection:{translation:"Object.OrgChart.Card.Title",component:"panel-section",items:{titleItems:{component:"items",ref:"components",key:"card",items:Ee("title","main",o)}}},subtitleSection:{translation:"Object.OrgChart.Card.Subtitle",component:"panel-section",items:{subtitleItems:{component:"items",ref:"components",key:"card",items:Ee("title","subTitle",o)}}},descriptionSection:{translation:"Object.OrgChart.Card.Description",component:"panel-section",items:{descriptionItems:{component:"items",ref:"components",key:"card",items:Ee("label","description",o)}}},measureLabelSection:{translation:"Object.OrgChart.Card.MeasureLabel",component:"panel-section",items:{measureLabelItems:{component:"items",ref:"components",key:"card",items:Ee("label","measureLabel",o)}}},measureValueSection:{translation:"Object.OrgChart.Card.MeasureValue",component:"panel-section",items:{measureValueItems:{component:"items",ref:"components",key:"card",items:Ee("label","measureValue",o)}}},backgroundColorSection:{component:"panel-section",translation:"Object.OrgChart.ColorLabelExpression",items:{backgroundColorItems:{component:"items",ref:"components",key:"card",items:{fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:"background.useColorExpression",width:9,component:"dropdown",defaultValue:e.BACKGROUND_USE_EXPRESSION,options:ke},colorPicker:{component:"color-picker",type:"object",ref:"background.color",width:3,dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,showAlpha:null==r?void 0:r.isEnabled("IM_3964_BG_OPACITY"),show:e=>{var t;return!(null!==(t=e.background)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"background.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return null===(t=e.background)||void 0===t?void 0:t.useColorExpression}}}}}}}},cardBorderSection:{component:"panel-section",translation:"Object.OrgChart.CardAppearance",items:{cardBorderItems:{component:"items",ref:"components",key:"card",items:{topBar:{component:"checkbox",ref:"border.topBar",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{component:"checkbox",ref:"border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},contrastBorderColorSection:{component:"checkbox",type:"boolean",key:"card",ref:"border.contrastColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0,show:e=>a(e)},borderColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{component:"dropdown",ref:"border.useColorExpression",width:9,translation:"properties.border.color",defaultValue:e.BORDER_USE_EXPRESSION,options:ke,show:e=>a(e)&&!i(e)},colorPicker:{component:"color-picker",ref:"border.color",width:3,dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>{var t;return a(e)&&!i(e)&&!(null!==(t=e.border)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"border.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return a(e)&&!i(e)&&(null===(t=e.border)||void 0===t?void 0:t.useColorExpression)}}}}}}}},...(null==r?void 0:r.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE"))&&{imageSection:{component:"panel-section",translation:"Object.OrgChart.ImageOptions",items:{imageItems:{component:"items",ref:"components",key:"card",items:{location:{component:"dropdown",ref:"image.location",translation:"Object.OrgChart.ImageLocation",options:Re,defaultValue:e.IMAGE_LOCATION},alignment:{component:"dropdown",ref:"image.alignment",translation:"Object.OrgChart.ImageAlignment",options:_e,defaultValue:e.IMAGE_ALIGNMENT},shape:{component:"dropdown",ref:"image.shape",translation:"Object.OrgChart.ImageShape",options:Ne,defaultValue:e.IMAGE_SHAPE},clip:{component:"checkbox",ref:"image.clip",translation:"Object.OrgChart.ImageFit",defaultValue:e.IMAGE_CLIP,show:t=>{var r,n;return"rectangle"===(null!==(r=null===(n=t.image)||void 0===n?void 0:n.shape)&&void 0!==r?r:e.IMAGE_SHAPE)}}}}}}}}}}const Te=[{value:"auto",translation:"Common.Auto"},{value:"colorPicker",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],Ae=[{value:"free",translation:"Object.OrgChart.FreeMode"},{value:"expandAll",translation:"Object.OrgChart.ExpandAll"}],Ve=e=>t.getValue(e,"style.border.top")||t.getValue(e,"style.border.fullBorder"),Me=e=>({uses:"data",items:{measures:{disabledRef:""},dimensions:{disabledRef:"",items:{dimensionLimits:{show:!1},attributes:{component:"attribute-expression-reference",defaultValue:[],show:(e,t)=>t.getDimensions()[0]===e,ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.LabelExpression",defaultValue:"",id:"labelExpression",tid:"labelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.SubLabelExpression",defaultValue:"",id:"subLabelExpression",tid:"subLabelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ExtraLabelExpression",defaultValue:"",id:"extraLabelExpression",tid:"extraLabelExpression"},...null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING")&&null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")?[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ImageUrl",defaultValue:"",id:"imageExpression",tid:"imageExpression"}]:[],{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ColorLabelExpression",defaultValue:"",id:"colorByExpression",tid:"nodeColorByExpression"}]},desc:{show:(e,t)=>t.getDimensions()[0]===e,component:"text",translation:"Object.OrgChart.ExtraLabelDesc",style:"hint"}}}}}),Ie={uses:"sorting"},Le={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"},rowLimit:{type:"integer",translation:"$RowLimit",ref:"rowLimit",defaultValue:3e4,min:5e3,max:1e5,show:!1}}}}},$e=(r,n,o)=>{var a;const i=null==o||null===(a=o.sense)||void 0===a?void 0:a.theme,s={uses:"settings",items:{styling:{grouped:!0,translation:"properties.presentation",type:"items",items:{...(null==n?void 0:n.isEnabled("IM_5036_ORGCHART_STYLING"))&&{orgChartStyling:Se(i,n,r)},navigation:{type:"items",items:{navigationMode:{ref:"navigationMode",type:"string",translation:"Object.OrgChart.NavigationMode",component:"dropdown",defaultValue:"free",options:Ae},resizeOnExpand:{ref:"resizeOnExpand",type:"boolean",defaultValue:!1,translation:"Object.OrgChart.resizeOnExpand",show:e=>"expandAll"!==t.getValue(e,"navigationMode")}}},backgroundColor:{},fontColor:{},border:{}}}}};return null!=n&&n.isEnabled("IM_5036_ORGCHART_STYLING")||(s.items.styling.items.backgroundColor={type:"items",items:{useColorExpression:{ref:"style.backgroundColor.colorType",type:"string",translation:"Object.OrgChart.BackgroundColor",component:"dropdown",defaultValue:e.BACKGROUND_COLOR_TYPE,options:Te},colorPicker:{component:"color-picker",type:"object",ref:"style.backgroundColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,show:e=>"colorPicker"===t.getValue(e,"style.backgroundColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.backgroundColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.backgroundColor.colorType")}}},s.items.styling.items.fontColor={type:"items",items:{useColorExpression:{ref:"style.fontColor.colorType",type:"string",translation:"Object.OrgChart.FontColor",component:"dropdown",defaultValue:e.FONT_COLOR_TYPE,options:Te},colorPicker:{component:"color-picker",type:"object",ref:"style.fontColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>"colorPicker"===t.getValue(e,"style.fontColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.fontColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.fontColor.colorType")}}},s.items.styling.items.border={type:"items",items:{appearanceHeader:{component:"text",translation:"Object.OrgChart.CardAppearance",style:"pp-nm-hcd__list-header"},topBar:{type:"boolean",ref:"style.border.top",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{type:"boolean",ref:"style.border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},colorType:{component:"dropdown",type:"string",ref:"style.border.colorType",translation:"properties.border.color",defaultValue:e.BORDER_COLOR_TYPE,options:Te,show:e=>Ve(e)},colorPicker:{component:"color-picker",type:"object",ref:"style.border.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>Ve(e)&&"colorPicker"===t.getValue(e,"style.border.colorType")},colorExpression:{component:"string",type:"string",ref:"style.border.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>Ve(e)&&"byExpression"===t.getValue(e,"style.border.colorType")}}}),s};return function({translator:e,flags:t,anything:r}){return{definition:{type:"items",component:"accordion",items:{data:Me(t),sorting:Ie,addOns:Le,settings:$e(e,t,r)}},support:{export:!0,exportData:!0,snapshot:!0,viewData:!0},migrate:{properties:e=>null!=t&&t.isEnabled("IM_5036_ORGCHART_STYLING")?function(e){var t,r,n,o,a,i,s,l,u,c,p,d;if((null===(t=e.components)||void 0===t?void 0:t.length)>0)return e;function f(e){return{useColorExpression:"byExpression"===e.colorType,color:e.color,colorExpression:e.colorExpression,colorType:e.colorType}}function h(e){return"auto"===e.colorType}const m={key:"card",title:{main:{...f(null===(r=e.style)||void 0===r?void 0:r.fontColor)},subTitle:{...f(null===(n=e.style)||void 0===n?void 0:n.fontColor)}},label:{description:{...f(null===(o=e.style)||void 0===o?void 0:o.fontColor)},measureLabel:{...f(null===(a=e.style)||void 0===a?void 0:a.fontColor)},measureValue:{...f(null===(i=e.style)||void 0===i?void 0:i.fontColor)}},contrastTextColor:h(null===(s=e.style)||void 0===s?void 0:s.fontColor),background:{...f(null===(l=e.style)||void 0===l?void 0:l.backgroundColor)},border:{...f(null===(u=e.style)||void 0===u?void 0:u.border),fullBorder:null===(c=e.style)||void 0===c||null===(c=c.border)||void 0===c?void 0:c.fullBorder,topBar:null===(p=e.style)||void 0===p||null===(p=p.border)||void 0===p?void 0:p.top,contrastColor:h(null===(d=e.style)||void 0===d?void 0:d.border)}};return e.components=[m],e}(e):e}}}}));
|
|
7
|
+
function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=Array(t);r<t;r++)o[r]=e[r];return o}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return r(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?r(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var a,i="top",l="top-right",s="right",u="bottom-right",c="bottom",p="bottom-left",d="left",f="top-left";o(o(o(o(o(o(o(o(o(o(a={},"equal-equal",[i,c]),"equal-higher",[c,u]),"equal-lower",[i,l]),"equal-void",[i,c]),"higher-equal",[d,p,i,l]),"higher-higher-acute",[c,p,d,l]),"higher-higher-obtuse",[c,i]),"higher-lower-negative",[i,l,s]),"higher-lower-positive",[c,p,d]),"higher-void",[i]),o(o(o(o(o(o(o(o(o(o(a,"lower-equal",[i]),"lower-higher-negative",[i,f]),"lower-higher-positive",[u]),"lower-lower-acute",[i,f,d,l,s]),"lower-lower-obtuse",[i,c]),"lower-void",[i]),"void-equal",[i]),"void-higher",[i,c]),"void-lower",[i,c,d]),"void-void",[i]),o(a,"unclassified",[i,c,s,d,l,u,p,f]);var h="object",m=["American Typewriter, serif","Andalé Mono, monospace","Arial Black, sans-serif","Arial, sans-serif","Bradley Hand, cursive","Brush Script MT, cursive","Comic Sans MS, cursive","Courier, monospace","Didot, serif","Georgia, serif","Impact, sans-serif","Lucida Console, monospace","Luminari, fantasy","Monaco, monospace","QlikView Sans, sans-serif","Source Sans Pro, sans-serif","Tahoma, sans-serif","Times New Roman, serif","Trebuchet MS, sans-serif","Verdana, sans-serif"],g=["Abril Fatface, serif","Bangers, fantasy","Bebas Neue, sans serif","EB Garamond, serif","Fredoka One, fantasy","Graduate, fantasy","Gravitas One, serif","Indie Flower, fantasy","Inter, sans-serif","Lobster, fantasy","Montserrat, sans-serif","Nixie One, sans-serif","Noto Sans, sans-serif","Open Sans, sans-serif","PT Serif, serif","Pacifico, cursive","Permanent Marker, fantasy","QlikView Sans, sans-serif","Raleway, sans-serif","Rammetto One, fantasy","Roboto, sans-serif","Source Sans Pro, sans-serif","Titan One, fantasy","Yanone Kaffeesatz, sans-serif"];var b=function(e){return{value:e,label:e.charAt(0).toUpperCase()+e.slice(1),groupHeader:!1,disabled:!1,styles:{fontFamily:e}}};function y(e){var t=e.theme,r=e.translator,o=e.defaultValue,a=e.flags,i=[],l=t.getStyle("","","fontFamilies");return Array.isArray(l)&&l.length?i.push.apply(i,n(new Set([o].concat(n(l.map(function(e){return e.split(",").map(function(e){return e.trim()}).map(function(e){return e.replace(/\s+/g," ").trim()}).filter(Boolean).join(", ")})))))):i.push(o),[{value:"ThemeHeader",label:r.get("properties.themeFonts"),metaText:r.get("properties.theme"),groupHeader:!0}].concat(n(i.map(function(e){return b(e)})),[{value:"DefaultHeader",label:r.get("properties.allFonts"),metaText:r.get("properties.default"),groupHeader:!0}],n(function(e){return null!=e&&e.isEnabled("PS_20852_WYSIWYG_FONT_SUPPORT")?g:m}(a).map(function(e){return b(e)})))}function v(e){var t=e.theme,r=e.translator,o=e.id,n=e.path,a=e.flags,i=function(){return t.getStyle(o,n,"fontFamily")};return{getDefaultValue:function(){return i()},getOptions:function(){return y({theme:t,translator:r,defaultValue:i(),flags:a})}}}var O=["10px","11px","12px","13px","14px","15px","16px","17px","18px","19px","20px","21px","22px","23px","24px"],w=function(e){return{value:e,label:e,groupHeader:!1,disabled:!1}};function x(e){var t=e.theme,r=e.translator,o=e.id,a=e.path,i=function(){return t.getStyle(o,a,"fontSize")};return{getDefaultValue:function(){return i()},getOptions:function(){return function(e){var t=e.translator,r=e.defaultValue,o=[],a=e.theme.getStyle("","","fontSizes");return Array.isArray(a)&&a.length?o.push.apply(o,n(new Set([r].concat(n(a))))):o.push(r),[{value:"ThemeHeader",label:t.get("properties.themeFontSizes"),metaText:t.get("properties.theme"),groupHeader:!0}].concat(n(o.map(function(e){return w(e)})),[{value:"DefaultHeader",label:t.get("properties.allFontSizes"),metaText:t.get("properties.default"),groupHeader:!0}],n(O.map(function(e){return w(e)})))}({theme:t,translator:r,defaultValue:i()})}}}function C(e){var t=e.theme,r=e.translator,o=e.id,n=e.path;return{fontFamily:v({theme:t,translator:r,id:o,path:n,flags:e.flags}),fontSize:x({theme:t,translator:r,id:o,path:n})}}var E,k,_=["__proto__","constructor"],R=function(e){if(_.some(function(t){return e.includes(t)}))throw new Error("font-resolver: Forbidden property.")};var N,S=function(){if(k)return E;k=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,n=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},a=function(r){if(!r||"[object Object]"!==t.call(r))return!1;var o,n=e.call(r,"constructor"),a=r.constructor&&r.constructor.prototype&&e.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!a)return!1;for(o in r);return void 0===o||e.call(r,o)},i=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,r){if("__proto__"===r){if(!e.call(t,r))return;if(o)return o(t,r).value}return t[r]};return E=function e(){var t,r,o,s,u,c,p=arguments[0],d=1,f=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},d=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});d<f;++d)if(null!=(t=arguments[d]))for(r in t)o=l(p,r),p!==(s=l(t,r))&&(h&&s&&(a(s)||(u=n(s)))?(u?(u=!1,c=o&&n(o)?o:[]):c=o&&a(o)?o:{},i(p,{name:r,newValue:e(h,c,s)})):void 0!==s&&i(p,{name:r,newValue:s}));return p},E}();function T(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function A(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function V(){}(N=S)&&N.__esModule&&Object.prototype.hasOwnProperty.call(N,"default")&&N.default;var M=.7,I=1/M,L="\\s*([+-]?\\d+)\\s*",$="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",j=/^#([0-9a-f]{3,8})$/,P=new RegExp(`^rgb\\(${L},${L},${L}\\)$`),D=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),G=new RegExp(`^rgba\\(${L},${L},${L},${$}\\)$`),H=new RegExp(`^rgba\\(${B},${B},${B},${$}\\)$`),q=new RegExp(`^hsl\\(${$},${B},${B}\\)$`),F=new RegExp(`^hsla\\(${$},${B},${B},${$}\\)$`),U={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Y(){return this.rgb().formatHex()}function z(){return this.rgb().formatRgb()}function K(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=j.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?X(t):3===r?new J(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?W(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?W(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=P.exec(e))?new J(t[1],t[2],t[3],1):(t=D.exec(e))?new J(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=G.exec(e))?W(t[1],t[2],t[3],t[4]):(t=H.exec(e))?W(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=q.exec(e))?ae(t[1],t[2]/100,t[3]/100,1):(t=F.exec(e))?ae(t[1],t[2]/100,t[3]/100,t[4]):U.hasOwnProperty(e)?X(U[e]):"transparent"===e?new J(NaN,NaN,NaN,0):null}function X(e){return new J(e>>16&255,e>>8&255,255&e,1)}function W(e,t,r,o){return o<=0&&(e=t=r=NaN),new J(e,t,r,o)}function Z(e){return e instanceof V||(e=K(e)),e?new J((e=e.rgb()).r,e.g,e.b,e.opacity):new J}function Q(e,t,r,o){return 1===arguments.length?Z(e):new J(e,t,r,null==o?1:o)}function J(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}function ee(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}`}function te(){const e=re(this.opacity);return`${1===e?"rgb(":"rgba("}${oe(this.r)}, ${oe(this.g)}, ${oe(this.b)}${1===e?")":`, ${e})`}`}function re(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function oe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ne(e){return((e=oe(e))<16?"0":"")+e.toString(16)}function ae(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new le(e,t,r,o)}function ie(e){if(e instanceof le)return new le(e.h,e.s,e.l,e.opacity);if(e instanceof V||(e=K(e)),!e)return new le;if(e instanceof le)return e;var t=(e=e.rgb()).r/255,r=e.g/255,o=e.b/255,n=Math.min(t,r,o),a=Math.max(t,r,o),i=NaN,l=a-n,s=(a+n)/2;return l?(i=t===a?(r-o)/l+6*(r<o):r===a?(o-t)/l+2:(t-r)/l+4,l/=s<.5?a+n:2-a-n,i*=60):l=s>0&&s<1?0:i,new le(i,l,s,e.opacity)}function le(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}function se(e){return(e=(e||0)%360)<0?e+360:e}function ue(e){return Math.max(0,Math.min(1,e||0))}function ce(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}T(V,K,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y,formatHex:Y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ie(this).formatHsl()},formatRgb:z,toString:z}),T(J,Q,A(V,{brighter(e){return e=null==e?I:Math.pow(I,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?M:Math.pow(M,e),new J(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new J(oe(this.r),oe(this.g),oe(this.b),re(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ee,formatHex:ee,formatHex8:function(){return`#${ne(this.r)}${ne(this.g)}${ne(this.b)}${ne(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:te,toString:te})),T(le,function(e,t,r,o){return 1===arguments.length?ie(e):new le(e,t,r,null==o?1:o)},A(V,{brighter(e){return e=null==e?I:Math.pow(I,e),new le(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?M:Math.pow(M,e),new le(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,n=2*r-o;return new J(ce(e>=240?e-240:e+120,n,o),ce(e,n,o),ce(e<120?e+240:e-120,n,o),this.opacity)},clamp(){return new le(se(this.h),ue(this.s),ue(this.l),re(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=re(this.opacity);return`${1===e?"hsl(":"hsla("}${se(this.h)}, ${100*ue(this.s)}%, ${100*ue(this.l)}%${1===e?")":`, ${e})`}`}}));const pe=Math.PI/180,de=180/Math.PI,fe=.96422,he=.82521,me=4/29,ge=6/29,be=3*ge*ge,ye=ge*ge*ge;function ve(e){if(e instanceof Oe)return new Oe(e.l,e.a,e.b,e.opacity);if(e instanceof ke)return _e(e);e instanceof J||(e=Z(e));var t,r,o=Ee(e.r),n=Ee(e.g),a=Ee(e.b),i=we((.2225045*o+.7168786*n+.0606169*a)/1);return o===n&&n===a?t=r=i:(t=we((.4360747*o+.3850649*n+.1430804*a)/fe),r=we((.0139322*o+.0971045*n+.7141733*a)/he)),new Oe(116*i-16,500*(t-i),200*(i-r),e.opacity)}function Oe(e,t,r,o){this.l=+e,this.a=+t,this.b=+r,this.opacity=+o}function we(e){return e>ye?Math.pow(e,1/3):e/be+me}function xe(e){return e>ge?e*e*e:be*(e-me)}function Ce(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ee(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ke(e,t,r,o){this.h=+e,this.c=+t,this.l=+r,this.opacity=+o}function _e(e){if(isNaN(e.h))return new Oe(e.l,0,0,e.opacity);var t=e.h*pe;return new Oe(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}T(Oe,function(e,t,r,o){return 1===arguments.length?ve(e):new Oe(e,t,r,null==o?1:o)},A(V,{brighter(e){return new Oe(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Oe(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new J(Ce(3.1338561*(t=fe*xe(t))-1.6168667*(e=1*xe(e))-.4906146*(r=he*xe(r))),Ce(-.9787684*t+1.9161415*e+.033454*r),Ce(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),T(ke,function(e,t,r,o){return 1===arguments.length?function(e){if(e instanceof ke)return new ke(e.h,e.c,e.l,e.opacity);if(e instanceof Oe||(e=ve(e)),0===e.a&&0===e.b)return new ke(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*de;return new ke(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new ke(e,t,r,null==o?1:o)},A(V,{brighter(e){return new ke(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ke(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return _e(this).rgb()}}));var Re=e=>()=>e;function Ne(e,t){var r=t-e;return r?function(e,t){return function(r){return e+r*t}}(e,r):Re(isNaN(e)?t:e)}!function e(t){var r=function(e){return 1===(e=+e)?Ne:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}(t,r,e):Re(isNaN(t)?r:t)}}(t);function o(e,t){var o=r((e=Q(e)).r,(t=Q(t)).r),n=r(e.g,t.g),a=r(e.b,t.b),i=Ne(e.opacity,t.opacity);return function(t){return e.r=o(t),e.g=n(t),e.b=a(t),e.opacity=i(t),e+""}}return o.gamma=e,o}(1);var Se,Te="center",Ae="bottom";function Ve(e){var t=0,r=e.children,o=r&&r.length;if(o)for(;--o>=0;)t+=r[o].value;else t=1;e.value=t}function Me(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Le)):void 0===t&&(t=Ie);for(var r,o,n,a,i,l=new je(e),s=[l];r=s.pop();)if((n=t(r.data))&&(i=(n=Array.from(n)).length))for(r.children=n,a=i-1;a>=0;--a)s.push(o=n[a]=new je(n[a])),o.parent=r,o.depth=r.depth+1;return l.eachBefore(Be)}function Ie(e){return e.children}function Le(e){return Array.isArray(e)?e[1]:null}function $e(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Be(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function je(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:Te,condition:function(e){var t=e.layoutService;if(!t)return!1;var r=t.meta.size;return r.x*r.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Te,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Te,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var r=t.getHyperCubeValue("qDimensionInfo.0");return r&&(r.qMax<r.qMin||"NaN"===r.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Te},{key:"DataRangeIncludingZero",alignment:Ae},{key:"LimitedData",alignment:Ae},{key:"NegativeOrZeroValues",alignment:Ae}].reduce(function(e,t){return e[t.key]=t,e},{}),je.prototype=Me.prototype={constructor:je,count:function(){return this.eachAfter(Ve)},each:function(e,t){let r=-1;for(const o of this)e.call(t,o,++r,this);return this},eachAfter:function(e,t){for(var r,o,n,a=this,i=[a],l=[],s=-1;a=i.pop();)if(l.push(a),r=a.children)for(o=0,n=r.length;o<n;++o)i.push(r[o]);for(;a=l.pop();)e.call(t,a,++s,this);return this},eachBefore:function(e,t){for(var r,o,n=this,a=[n],i=-1;n=a.pop();)if(e.call(t,n,++i,this),r=n.children)for(o=r.length-1;o>=0;--o)a.push(r[o]);return this},find:function(e,t){let r=-1;for(const o of this)if(e.call(t,o,++r,this))return o},sum:function(e){return this.eachAfter(function(t){for(var r=+e(t.data)||0,o=t.children,n=o&&o.length;--n>=0;)r+=o[n].value;t.value=r})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),o=t.ancestors(),n=null;for(e=r.pop(),t=o.pop();e===t;)n=e,e=r.pop(),t=o.pop();return n}(t,e),o=[t];t!==r;)t=t.parent,o.push(t);for(var n=o.length;e!==r;)o.splice(n,0,e),e=e.parent;return o},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(r){r!==e&&t.push({source:r.parent,target:r})}),t},copy:function(){return Me(this).eachBefore($e)},[Symbol.iterator]:function*(){var e,t,r,o,n=this,a=[n];do{for(e=a.reverse(),a=[];n=e.pop();)if(yield n,t=n.children)for(r=0,o=t.length;r<o;++r)a.push(t[r])}while(a.length)}},Se=function(e){e.exports=function(e,t){if(!e||isNaN(+t))return t;var r,o,n,a,i,l,s,u,c,p,d=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=d-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),O=g>0?e.substring(v,d):"";if(r=(t="-"===(e=e.substring(f,v)).charAt(0)?-t:+t)<0?t=-t:0,n=(o=e.match(/[^\d\-\+#]/g))&&o[o.length-1]||".",a=o&&o[1]&&o[0]||",",e=e.split(n),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(a),e[0]=c.join(""),(i=e[0]&&e[0].indexOf("0"))>-1)for(;u[0].length<e[0].length-i;)u[0]="0"+u[0];else 0===+u[0]&&(u[0]="");if((t=t.split("."))[0]=u[0],s=c[1]&&c[c.length-1].length){for(m="",b=(p=t[0]).length%s,d=p.length,v=0;v<d;v++)m+=p.charAt(v),!((v-b+1)%s)&&v<d-s&&(m+=a);t[0]=m}return t[1]=e[1]&&t[1]?n+t[1]:"","0"!==(o=t.join(""))&&""!==o||(r=!1),h+(r?"-":"")+o+O}},Se({exports:{}});const Pe=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],De=e=>{var t;return null===(t=e.contrastTextColor)||void 0===t||t};function Ge(t,r,o){const n=`${t}.${r}`,a=`${n}.fontFamily`,i=`${n}.fontSize`;return{fontFamilyItem:{component:"dropdown",ref:a,options:()=>o.getOptions(`card.${a}`),defaultValue:()=>o.getDefaultValue(`card.${a}`)},fontSizeItem:{component:"dropdown",ref:i,options:()=>o.getOptions(`card.${i}`),defaultValue:()=>o.getDefaultValue(`card.${i}`)},fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:`${n}.useColorExpression`,width:!0,component:"dropdown",defaultValue:e.FONT_COLOR_USE_EXPRESSION,options:Pe,show:e=>!De(e)},colorPicker:{component:"color-picker",ref:`${n}.color`,width:!1,dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>{var o;return!(De(e)||null!==(o=e[t])&&void 0!==o&&null!==(o=o[r])&&void 0!==o&&o.useColorExpression)}}}},colorExpression:{component:"input-field-expression",type:"string",ref:`${n}.colorExpression`,width:!0,expression:"optional",defaultValue:"",show:e=>{var o;return!De(e)&&(null===(o=e[t])||void 0===o||null===(o=o[r])||void 0===o?void 0:o.useColorExpression)}}}}const He=[{value:!1,translation:"properties.colorMode.primary"},{value:!0,translation:"properties.colorMode.byExpression"}],qe=[{value:"card",translation:"Card only"},{value:"tooltip",translation:"Tooltip only"},{value:"both",translation:"Card and tooltip"}],Fe=[{value:"left",translation:"Left"},{value:"right",translation:"Right"},{value:"top",translation:"Top"},{value:"bottom",translation:"Bottom"}],Ue=[{value:"rectangle",translation:"Rectangle"},{value:"round",translation:"Round"}];function Ye(t,r,o){const n=function(e){var t=e.theme,r=e.translator,o=e.config,n=void 0===o?{}:o,a=e.flags,i=function(e){var t=e.config,r=void 0===t?{}:t,o=r.id,n=r.paths;return{id:void 0===o?h:"".concat(h,".").concat(o),paths:Array.isArray(n)?n:[]}}({config:n}),l=i.id,s=i.paths,u={};s.forEach(function(e){var o=e.split(".");R(o);for(var n=u,i=0;i<o.length;i++){var s=o[i];i===o.length-1?n[s]=C({theme:t,translator:r,id:l,path:e,flags:a}):void 0===n[s]&&(n[s]={}),n=n[s]}});var c=function(e){var t=e.split(".");R(t);for(var r=u,o=0;o<t.length;o++){var n=t[o];if(void 0===r[n])throw new Error("font-resolver: Path '".concat(e,"' could not be resolved."));r=r[n]}return r};return u.getDefaultValue=function(e){return c(e).getDefaultValue()},u.getOptions=function(e){return c(e).getOptions()},u}({theme:t,translator:o,flags:r,config:{id:"orgChart",paths:["card.title.main","card.title.subTitle","card.label.description","card.label.measureLabel","card.label.measureValue"]}}),a=t=>{var r,o,n,a;return(null!==(r=null===(o=t.border)||void 0===o?void 0:o.topBar)&&void 0!==r?r:e.BORDER_TOP)||(null!==(n=null===(a=t.border)||void 0===a?void 0:a.fullBorder)&&void 0!==n?n:e.BORDER_FULL)},i=e=>{var t,r;return null===(t=null===(r=e.border)||void 0===r?void 0:r.contrastColor)||void 0===t||t};return{component:"styling-panel",show:!0,chartType:"orgchart",translation:"LayerStyleEditor.component.styling",chartTitle:"Object.OrgChart",subtitle:"LayerStyleEditor.component.styling",useGeneral:!0,useBackground:!0,items:{contrastTextColorSection:{translation:"Object.OrgChart.Card.TextColor",component:"panel-section",items:{contrastTextColorItems:{component:"items",ref:"components",key:"card",items:{useContrast:{component:"checkbox",type:"boolean",ref:"contrastTextColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0}}}}},titleSection:{translation:"Object.OrgChart.Card.Title",component:"panel-section",items:{titleItems:{component:"items",ref:"components",key:"card",items:Ge("title","main",n)}}},subtitleSection:{translation:"Object.OrgChart.Card.Subtitle",component:"panel-section",items:{subtitleItems:{component:"items",ref:"components",key:"card",items:Ge("title","subTitle",n)}}},descriptionSection:{translation:"Object.OrgChart.Card.Description",component:"panel-section",items:{descriptionItems:{component:"items",ref:"components",key:"card",items:Ge("label","description",n)}}},measureLabelSection:{translation:"Object.OrgChart.Card.MeasureLabel",component:"panel-section",items:{measureLabelItems:{component:"items",ref:"components",key:"card",items:Ge("label","measureLabel",n)}}},measureValueSection:{translation:"Object.OrgChart.Card.MeasureValue",component:"panel-section",items:{measureValueItems:{component:"items",ref:"components",key:"card",items:Ge("label","measureValue",n)}}},backgroundColorSection:{component:"panel-section",translation:"Object.OrgChart.ColorLabelExpression",items:{backgroundColorItems:{component:"items",ref:"components",key:"card",items:{fontColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{ref:"background.useColorExpression",width:9,component:"dropdown",defaultValue:e.BACKGROUND_USE_EXPRESSION,options:He},colorPicker:{component:"color-picker",type:"object",ref:"background.color",width:3,dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,showAlpha:null==r?void 0:r.isEnabled("IM_3964_BG_OPACITY"),show:e=>{var t;return!(null!==(t=e.background)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"background.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return null===(t=e.background)||void 0===t?void 0:t.useColorExpression}}}}}}}},cardBorderSection:{component:"panel-section",translation:"Object.OrgChart.CardAppearance",items:{cardBorderItems:{component:"items",ref:"components",key:"card",items:{topBar:{component:"checkbox",ref:"border.topBar",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{component:"checkbox",ref:"border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},contrastBorderColorSection:{component:"checkbox",type:"boolean",key:"card",ref:"border.contrastColor",translation:"Object.OrgChart.Card.Contrast",defaultValue:!0,show:e=>a(e)},borderColorWrapperItem:{component:"inline-wrapper",items:{useColorExpression:{component:"dropdown",ref:"border.useColorExpression",width:9,translation:"properties.border.color",defaultValue:e.BORDER_USE_EXPRESSION,options:He,show:e=>a(e)&&!i(e)},colorPicker:{component:"color-picker",ref:"border.color",width:3,dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>{var t;return a(e)&&!i(e)&&!(null!==(t=e.border)&&void 0!==t&&t.useColorExpression)}},colorExpression:{component:"input-field-expression",type:"string",ref:"border.colorExpression",expression:"optional",defaultValue:"",show:e=>{var t;return a(e)&&!i(e)&&(null===(t=e.border)||void 0===t?void 0:t.useColorExpression)}}}}}}}},...(null==r?void 0:r.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE"))&&{imageSection:{component:"panel-section",translation:"Object.OrgChart.ImageOptions",items:{imageItems:{component:"items",ref:"components",key:"card",items:{location:{component:"dropdown",ref:"image.location",translation:"Object.OrgChart.ImageLocation",options:qe,defaultValue:e.IMAGE_LOCATION},alignment:{component:"dropdown",ref:"image.alignment",translation:"Object.OrgChart.ImageAlignment",options:Fe,defaultValue:e.IMAGE_ALIGNMENT},shape:{component:"dropdown",ref:"image.shape",translation:"Object.OrgChart.ImageShape",options:Ue,defaultValue:e.IMAGE_SHAPE},clip:{component:"checkbox",ref:"image.clip",translation:"Object.OrgChart.ImageFit",defaultValue:e.IMAGE_CLIP,show:t=>{var r,o;return"rectangle"===(null!==(r=null===(o=t.image)||void 0===o?void 0:o.shape)&&void 0!==r?r:e.IMAGE_SHAPE)}}}}}}}}}}const ze=[{value:"auto",translation:"Common.Auto"},{value:"colorPicker",translation:"properties.colorMode.primary"},{value:"byExpression",translation:"properties.colorMode.byExpression"}],Ke=[{value:"free",translation:"Object.OrgChart.FreeMode"},{value:"expandAll",translation:"Object.OrgChart.ExpandAll"}],Xe=e=>t.getValue(e,"style.border.top")||t.getValue(e,"style.border.fullBorder"),We=e=>({uses:"data",items:{measures:{disabledRef:""},dimensions:{disabledRef:"",items:{dimensionLimits:{show:!1},attributes:{component:"attribute-expression-reference",defaultValue:[],show:(e,t)=>t.getDimensions()[0]===e,ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.LabelExpression",defaultValue:"",id:"labelExpression",tid:"labelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.SubLabelExpression",defaultValue:"",id:"subLabelExpression",tid:"subLabelExpression"},{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ExtraLabelExpression",defaultValue:"",id:"extraLabelExpression",tid:"extraLabelExpression"},...null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING")&&null!=e&&e.isEnabled("IM_5036_ORGCHART_STYLING_IMAGE")?[{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ImageUrl",defaultValue:"",id:"imageExpression",tid:"imageExpression"}]:[],{component:"expression",ref:"qExpression",translation:"Object.OrgChart.ColorLabelExpression",defaultValue:"",id:"colorByExpression",tid:"nodeColorByExpression"}]},desc:{show:(e,t)=>t.getDimensions()[0]===e,component:"text",translation:"Object.OrgChart.ExtraLabelDesc",style:"hint"}}}}}),Ze={uses:"sorting"},Qe={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"},rowLimit:{type:"integer",translation:"$RowLimit",ref:"rowLimit",defaultValue:3e4,min:5e3,max:1e5,show:!1}}}}},Je=(r,o,n)=>{var a;const i=null==n||null===(a=n.sense)||void 0===a?void 0:a.theme,l={uses:"settings",items:{styling:{grouped:!0,translation:"properties.presentation",type:"items",items:{...(null==o?void 0:o.isEnabled("IM_5036_ORGCHART_STYLING"))&&{orgChartStyling:Ye(i,o,r)},navigation:{type:"items",items:{navigationMode:{ref:"navigationMode",type:"string",translation:"Object.OrgChart.NavigationMode",component:"dropdown",defaultValue:"free",options:Ke},resizeOnExpand:{ref:"resizeOnExpand",type:"boolean",defaultValue:!1,translation:"Object.OrgChart.resizeOnExpand",show:e=>"expandAll"!==t.getValue(e,"navigationMode")}}},backgroundColor:{},fontColor:{},border:{}}}}};return null!=o&&o.isEnabled("IM_5036_ORGCHART_STYLING")||(l.items.styling.items.backgroundColor={type:"items",items:{useColorExpression:{ref:"style.backgroundColor.colorType",type:"string",translation:"Object.OrgChart.BackgroundColor",component:"dropdown",defaultValue:e.BACKGROUND_COLOR_TYPE,options:ze},colorPicker:{component:"color-picker",type:"object",ref:"style.backgroundColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BACKGROUND_COLOR,show:e=>"colorPicker"===t.getValue(e,"style.backgroundColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.backgroundColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.backgroundColor.colorType")}}},l.items.styling.items.fontColor={type:"items",items:{useColorExpression:{ref:"style.fontColor.colorType",type:"string",translation:"Object.OrgChart.FontColor",component:"dropdown",defaultValue:e.FONT_COLOR_TYPE,options:ze},colorPicker:{component:"color-picker",type:"object",ref:"style.fontColor.color",translation:"properties.color",dualOutput:!0,defaultValue:e.FONT_COLOR_DARK,show:e=>"colorPicker"===t.getValue(e,"style.fontColor.colorType")},colorExpression:{component:"string",type:"string",ref:"style.fontColor.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>"byExpression"===t.getValue(e,"style.fontColor.colorType")}}},l.items.styling.items.border={type:"items",items:{appearanceHeader:{component:"text",translation:"Object.OrgChart.CardAppearance",style:"pp-nm-hcd__list-header"},topBar:{type:"boolean",ref:"style.border.top",translation:"Object.OrgChart.TopBar",defaultValue:e.BORDER_TOP},fullBorder:{type:"boolean",ref:"style.border.fullBorder",translation:"properties.border",defaultValue:e.BORDER_FULL},colorType:{component:"dropdown",type:"string",ref:"style.border.colorType",translation:"properties.border.color",defaultValue:e.BORDER_COLOR_TYPE,options:ze,show:e=>Xe(e)},colorPicker:{component:"color-picker",type:"object",ref:"style.border.color",translation:"properties.color",dualOutput:!0,defaultValue:e.BORDER_COLOR,show:e=>Xe(e)&&"colorPicker"===t.getValue(e,"style.border.colorType")},colorExpression:{component:"string",type:"string",ref:"style.border.colorExpression",translation:"Common.Expression",expression:"optional",defaultValue:"",show:e=>Xe(e)&&"byExpression"===t.getValue(e,"style.border.colorType")}}}),l};return function({translator:e,flags:t,anything:r}){return{definition:{type:"items",component:"accordion",items:{data:We(t),sorting:Ze,addOns:Qe,settings:Je(e,t,r)}},support:{export:!0,exportData:!0,snapshot:!0,viewData:!0},migrate:{properties:e=>null!=t&&t.isEnabled("IM_5036_ORGCHART_STYLING")?function(e){var t,r,o,n,a,i,l,s,u,c,p,d;if((null===(t=e.components)||void 0===t?void 0:t.length)>0)return e;function f(e){return{useColorExpression:"byExpression"===e.colorType,color:e.color,colorExpression:e.colorExpression,colorType:e.colorType}}function h(e){return"auto"===e.colorType}const m={key:"card",title:{main:{...f(null===(r=e.style)||void 0===r?void 0:r.fontColor)},subTitle:{...f(null===(o=e.style)||void 0===o?void 0:o.fontColor)}},label:{description:{...f(null===(n=e.style)||void 0===n?void 0:n.fontColor)},measureLabel:{...f(null===(a=e.style)||void 0===a?void 0:a.fontColor)},measureValue:{...f(null===(i=e.style)||void 0===i?void 0:i.fontColor)}},contrastTextColor:h(null===(l=e.style)||void 0===l?void 0:l.fontColor),background:{...f(null===(s=e.style)||void 0===s?void 0:s.backgroundColor)},border:{...f(null===(u=e.style)||void 0===u?void 0:u.border),fullBorder:null===(c=e.style)||void 0===c||null===(c=c.border)||void 0===c?void 0:c.fullBorder,topBar:null===(p=e.style)||void 0===p||null===(p=p.border)||void 0===p?void 0:p.top,contrastColor:h(null===(d=e.style)||void 0===d?void 0:d.border)}};return e.components=[m],e}(e):e}}}});
|
|
@@ -1 +1,12 @@
|
|
|
1
|
-
define(['./dist/sn-org-chart'], (supernova) =>
|
|
1
|
+
define(['./dist/sn-org-chart', './ext'], (supernova, ext) =>
|
|
2
|
+
function supernovaExtension(env) {
|
|
3
|
+
var v = supernova(env);
|
|
4
|
+
var extDef = ext;
|
|
5
|
+
/* eslint no-underscore-dangle:0 */
|
|
6
|
+
if (ext.__esmodule === true) {
|
|
7
|
+
// Handles es modules with multiple exports
|
|
8
|
+
extDef = ext.default;
|
|
9
|
+
}
|
|
10
|
+
v.ext = typeof extDef === 'function' ? extDef(env) : extDef;
|
|
11
|
+
return v;
|
|
12
|
+
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Org chart",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Org chart supernova",
|
|
5
5
|
"author": "QlikTech International AB",
|
|
6
|
-
"icon": "
|
|
7
|
-
"preview": "
|
|
6
|
+
"icon": "network",
|
|
7
|
+
"preview": "preview.png",
|
|
8
8
|
"type": "visualization",
|
|
9
9
|
"supernova": true
|
|
10
10
|
}
|