@arcgis/common-components 5.2.0-next.140 → 5.2.0-next.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{YEFEVEP6.js → 2E2QBY2J.js} +2 -2
- package/dist/cdn/{BZFAYVKR.js → 2IDDI3CL.js} +2 -2
- package/dist/cdn/{UIBTY5FF.js → 4LQHU5XS.js} +2 -2
- package/dist/cdn/{SANPZYEG.js → 4TZVXSQZ.js} +2 -2
- package/dist/cdn/{CKGWDI7B.js → 5DN7BGGJ.js} +2 -2
- package/dist/cdn/{LLATF73T.js → 5ESJPPJ3.js} +2 -2
- package/dist/cdn/{3TY4GT5J.js → 5IM4X2GT.js} +1 -1
- package/dist/cdn/{DR2THZQU.js → 6HVKL3BT.js} +2 -2
- package/dist/cdn/{QCUF7B3I.js → 6KPYL34Q.js} +2 -2
- package/dist/cdn/{KDCSDIUQ.js → 7YKS2UHU.js} +2 -2
- package/dist/cdn/{3AFEXHZ5.js → A72IJUIB.js} +2 -2
- package/dist/cdn/{ZCVP2N2O.js → DBBRUMRI.js} +2 -2
- package/dist/cdn/{OIGA7XBZ.js → DE72K2VB.js} +2 -2
- package/dist/cdn/{HYFFUYAU.js → EPTIOSEA.js} +2 -2
- package/dist/cdn/{OMROUY3L.js → FVQ64IB5.js} +2 -2
- package/dist/cdn/{XX2ZCFWI.js → H4Q2JVNO.js} +1 -1
- package/dist/cdn/{ATLXGXTH.js → HCF255AI.js} +2 -2
- package/dist/cdn/{BCN6LPOG.js → HS7W72ER.js} +2 -2
- package/dist/cdn/HX33VLI3.js +2 -0
- package/dist/cdn/{5EA7SGHX.js → IFXBIZ77.js} +2 -2
- package/dist/cdn/{M3SFEFPX.js → J352X4QU.js} +2 -2
- package/dist/cdn/{JTQN5KMG.js → JWK6KCSN.js} +2 -2
- package/dist/cdn/{735FTIBP.js → KQS6BKLU.js} +2 -2
- package/dist/cdn/{S4XOD4YS.js → KWLXXTWN.js} +2 -2
- package/dist/cdn/{OTWADB4M.js → KWZ7LGK2.js} +2 -2
- package/dist/cdn/{DPJGC3YQ.js → L7XGWJZF.js} +2 -2
- package/dist/cdn/{M2J3GPM4.js → LON5GSEV.js} +2 -2
- package/dist/cdn/{IECXEZNI.js → LZ4RIDXD.js} +2 -2
- package/dist/cdn/{LNXO5YIS.js → M3SD6ANM.js} +2 -2
- package/dist/cdn/{XUPA27AW.js → MXGA3EHW.js} +2 -2
- package/dist/cdn/{34AP2EEB.js → N25TUHM4.js} +2 -2
- package/dist/cdn/{HJ3EJZFF.js → NCKLLNHD.js} +2 -2
- package/dist/cdn/{TXQKK4DJ.js → NPVQBA5D.js} +2 -2
- package/dist/cdn/{X6DNIKWY.js → NZEZVGEW.js} +2 -2
- package/dist/cdn/{32MHBJSZ.js → O4H2JR53.js} +1 -1
- package/dist/cdn/{5KBPWYPL.js → PMV2N3L3.js} +1 -1
- package/dist/cdn/{EM4OQXFS.js → RMIP56UK.js} +2 -2
- package/dist/cdn/{EB5MDEWF.js → SQZNAETL.js} +2 -2
- package/dist/cdn/{I7YBGXB2.js → UGWLCTVM.js} +1 -1
- package/dist/cdn/{GDRW3MIZ.js → WJQZVHBV.js} +2 -2
- package/dist/cdn/{GUL7EIJ4.js → XEK22IDA.js} +1 -1
- package/dist/cdn/{ZGYD3GAS.js → XMT7CNQG.js} +2 -2
- package/dist/cdn/{D4UHHQ35.js → XVHY4R5V.js} +2 -2
- package/dist/cdn/Y2G4R4SG.js +2 -0
- package/dist/cdn/{CFEMTMZX.js → Y5Y7IXOV.js} +1 -1
- package/dist/cdn/{MFGUTQRR.js → YNJHUBFL.js} +2 -2
- package/dist/cdn/{TTFTN2LD.js → Z5QBBHLD.js} +1 -1
- package/dist/cdn/{5XRYXPOX.js → ZYTTDRIG.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/element-reference-controller.js +1 -1
- package/dist/chunks/general.js +1 -1
- package/dist/chunks/internal-types.js +1 -1
- package/dist/chunks/layer-utils.js +1 -1
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/strategies.js +1 -1
- package/dist/chunks/toolbar.js +1 -1
- package/dist/chunks/types.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +1 -1
- package/dist/components/arcgis-field-info/customElement.js +1 -1
- package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
- package/dist/components/arcgis-histogram/customElement.d.ts +8 -0
- package/dist/components/arcgis-histogram/customElement.js +104 -99
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-picker-input/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
- package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +1 -1
- package/dist/components/arcgis-slider-field/customElement.js +1 -1
- package/dist/components/arcgis-slider-histogram-range/customElement.js +1 -1
- package/dist/components/arcgis-slider-input/customElement.js +1 -1
- package/dist/components/arcgis-ticks/customElement.js +1 -1
- package/dist/components/arcgis-toolbar/customElement.js +1 -1
- package/dist/components/arcgis-toolbar-action/customElement.js +1 -1
- package/dist/components/arcgis-toolbar-group/customElement.js +1 -1
- package/dist/components/arcgis-toolbar-item/customElement.js +1 -1
- package/dist/components/arcgis-toolbar-more-button/customElement.js +1 -1
- package/dist/components/arcgis-toolbar-split-button/customElement.js +1 -1
- package/dist/components/arcgis-toolbar-stack/customElement.js +1 -1
- package/dist/components/arcgis-unique-values-list/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-collection/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-combobox/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-label/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-slider/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +2 -2
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/package.json +5 -5
- package/dist/cdn/7TCQ52FG.js +0 -2
- package/dist/cdn/TO3YFXVJ.js +0 -2
package/dist/index.js
CHANGED
package/dist/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { r as e } from "./chunks/runtime.js";
|
|
3
3
|
import { makeDefineCustomElements as a } from "@arcgis/lumina";
|
|
4
4
|
const s = a(e, {
|
|
@@ -9,7 +9,7 @@ const s = a(e, {
|
|
|
9
9
|
"arcgis-coordinate-system-picker-tree": [() => import("./components/arcgis-coordinate-system-picker-tree/customElement.js"), "data:,value"],
|
|
10
10
|
"arcgis-field-info": [() => import("./components/arcgis-field-info/customElement.js"), "_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],
|
|
11
11
|
"arcgis-field-pick-list": [() => import("./components/arcgis-field-pick-list/customElement.js"), "_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],
|
|
12
|
-
"arcgis-histogram": [() => import("./components/arcgis-histogram/customElement.js"), "_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,labelFormatter:,layout,max,messageOverrides:,min,standardDeviation,standardDeviationCount"],
|
|
12
|
+
"arcgis-histogram": [() => import("./components/arcgis-histogram/customElement.js"), "_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,labelFormatter:,layout,max,messageOverrides:,min,mirrored,standardDeviation,standardDeviationCount"],
|
|
13
13
|
"arcgis-label-input": [() => import("./components/arcgis-label-input/customElement.js"), "alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],
|
|
14
14
|
"arcgis-picker-input": [() => import("./components/arcgis-picker-input/customElement.js"), "disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],
|
|
15
15
|
"arcgis-ramp-color": [() => import("./components/arcgis-ramp-color/customElement.js"), "layout,max,min,stops:"],
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ interface LuminaArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "c
|
|
|
81
81
|
onarcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
interface LuminaArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, h.JSX.HTMLAttributes<ArcgisHistogram> {
|
|
84
|
+
interface LuminaArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, h.JSX.HTMLAttributes<ArcgisHistogram> {
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
interface LuminaArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, h.JSX.HTMLAttributes<ArcgisLabelInput> {
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ interface PreactArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "c
|
|
|
82
82
|
onarcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
interface PreactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, HTMLAttributes<ArcgisHistogram> {
|
|
85
|
+
interface PreactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, HTMLAttributes<ArcgisHistogram> {
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
interface PreactArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, HTMLAttributes<ArcgisLabelInput> {
|
package/dist/types/react.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ interface ReactArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "cu
|
|
|
82
82
|
onarcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
interface ReactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, HTMLProps<ArcgisHistogram> {
|
|
85
|
+
interface ReactArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, HTMLProps<ArcgisHistogram> {
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
interface ReactArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, HTMLProps<ArcgisLabelInput> {
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -82,7 +82,7 @@ interface StencilArcgisFieldPickList extends Partial<Pick<ArcgisFieldPickList, "
|
|
|
82
82
|
onArcgisSortByChange?: EventHandler<ArcgisFieldPickList["arcgisSortByChange"]>;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "standardDeviation" | "standardDeviationCount">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
|
|
85
|
+
interface StencilArcgisHistogram extends Partial<Pick<ArcgisHistogram, "average" | "bins" | "colorBlendingEnabled" | "colorStops" | "dataLines" | "icon" | "label" | "labelFormatter" | "layout" | "max" | "messageOverrides" | "min" | "mirrored" | "standardDeviation" | "standardDeviationCount">>, StencilJsx.HTMLAttributes<ArcgisHistogram> {
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
interface StencilArcgisLabelInput extends Partial<Pick<ArcgisLabelInput, "alignment" | "labelFormatter" | "readOnly" | "value">>, StencilJsx.HTMLAttributes<ArcgisLabelInput> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/common-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.142",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript common components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
49
|
-
"@arcgis/lumina-toolkit": "5.2.0-next.
|
|
50
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
48
|
+
"@arcgis/lumina": "5.2.0-next.142",
|
|
49
|
+
"@arcgis/lumina-toolkit": "5.2.0-next.142",
|
|
50
|
+
"@arcgis/toolkit": "5.2.0-next.142",
|
|
51
51
|
"@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
|
|
52
52
|
"@lit/task": "^1.0.3",
|
|
53
53
|
"lit": "^3.3.0",
|
|
54
54
|
"tslib": "^2.8.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@arcgis/core": "5.2.0-next.
|
|
57
|
+
"@arcgis/core": "5.2.0-next.142",
|
|
58
58
|
"@esri/calcite-components": "^5.2.0-next.89"
|
|
59
59
|
},
|
|
60
60
|
"css.customData": [
|
package/dist/cdn/7TCQ52FG.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as k}from"./5KBPWYPL.js";import{a as C}from"./TO3YFXVJ.js";import"./LLATF73T.js";import"./XX2ZCFWI.js";import{L as V,M as _,N as $,O as u,R as D,h as w,j as v,k as g}from"./BCN6LPOG.js";export default $arcgis.t(([{substitute:z}])=>{var N=w`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr;width:100%;height:100%}.svg{display:block;width:100%;height:100%;overflow:visible}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;function B(t,r,i,e,n){let[a,s]=n;if(!t||s===0||a===0||i==null||r==null)return null;let o=i-r,c=(t.length>1?t[t.length-1].maxValue-t[0].minValue:0)/o,[l,h]=e==="vertical"?[s*c,a]:[s,a*c],m=t?t.map(d=>d.count):[],p=Math.max(...m);return t.map(d=>{let[f,b]=e==="vertical"?[l/t.length,p!==0?d.count/p*h:0]:[p!==0?d.count/p*l:0,h/t.length],{maxValue:F}=d,y=i-F,[I,S]=e==="vertical"?[0,y*(s/o)]:[a-b-y*(a/o),s-f];return[I,S,b,f]})}function O(t,r,i,e,n,a){if(e===void 0||n===void 0)return[];let s=[];return t!=null&&s.push({value:t,symbol:"x\u0304",lineClass:"average-data-line"}),r!=null&&e!=null&&n!=null&&s.push(...H(e,n,r,i,t)),a&&s.push(...a),s.filter(({value:o})=>o>=e&&o<=n)}function A(t,r,i,e,n){if(i==null)return[0,0,0,0];let a=Math.round((n-i)/e*100)/100,[s,o]=t;if(r==="vertical"){let l=o-a*o||1;return l=Math.round(l)+.5,[0,"100%",l,l]}let c=a*s||1;return c=Math.round(c)+.5,[c,c,"100%",0]}function P(t,r,i,e,n){if(i==null)return[0,0];let a=Math.round((n-i)/e*100)/100,[s,o]=t;return r==="vertical"?[s,o-a*o]:[0,a*s]}function T(t,r,i){if(!t||t.length===0)return null;if(M(t)){let e=t.map(n=>({...n,color:E(n.color??i)}));return e.unshift({color:r,minValue:Number.NEGATIVE_INFINITY,maxValue:e[0].minValue}),e.push({color:r,minValue:e[e.length-1].maxValue,maxValue:Number.POSITIVE_INFINITY}),e}else return t.map(e=>({...e,color:E(e.color??i)}))}function R(t,r,i,e){if(!t||t.length===0)return i;if(M(t)){let n=G(t,r);if(n.length===0)return i;if(e){let{color:a=i,weight:s}=n[0],{color:o=i,weight:c}=n[1]??n[0],l=s+c;return`color-mix(in srgb, ${a} ${s/l*100}%, ${o} ${c/l*100}%)`}return n[0].color??i}return Y(t,r)}function G(t,r){let i=[];for(let e of t){let n=Math.max(0,Math.min(r.maxValue,e.maxValue)-Math.max(r.minValue,e.minValue));n>0&&i.push({color:e.color,weight:n})}return i.sort((e,n)=>n.weight-e.weight)}function Y(t,r){let i=(r.maxValue-r.minValue)/2+r.minValue;if(i>t[t.length-1].value)return t[t.length-1].color;for(let e=0;e<t.length-1;e++){let n=t[e],a=t[e+1];if(i<=n.value)return n.color;if(i<a.value){let s=(i-n.value)/(a.value-n.value)*100;return`color-mix(in srgb, ${n.color}, ${a.color} ${s}%)`}}return t[t.length-1].color}function M(t){return t[0]!=null&&"minValue"in t[0]}function E(t){if(typeof t=="string")return t;if(Array.isArray(t))return`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]??1})`;let{r,g:i,b:e,a:n=1}=t;return`rgba(${r}, ${i}, ${e}, ${n})`}function H(t,r,i,e,n){let a=.06*(r-t);return U(i,e,n).map((s,o,c)=>{let l=c.length/2,h=s>n?"+":"-",m=o>=l?o-l+1:l-o;return{symbol:`${h}${m===1?"":m}\u03C3`,value:s}}).filter(({value:s})=>Math.abs(n-s)>a)}function U(t,r,i){if(i==null||t==null)return[];let e=r,n=[];for(let a=e*-1;a<=e;a++)a!==0&&n.push(i+a*t);return n}var L="var(--arcgis-histogram-bar-color)",q="var(--arcgis-histogram-stop-color)",x=class extends V{constructor(){super(...arguments),this._messages=C(),this._normalizedStops=null,this.#t=(r,i)=>{let e=n=>k(this._messages._lang,this._numberFormatterOptions).format(n);return this.labelFormatter?.(r,i,e)??e(r)},this._numberFormatterOptions={maximumFractionDigits:2},this.containerDimensions=[0,0],this.icon="graph-histogram",this.layout="horizontal",this.colorBlendingEnabled=!1,this.standardDeviationCount=1}static{this.properties={containerDimensions:16,colorStops:0,icon:3,labelFormatter:0,average:11,messageOverrides:0,standardDeviation:11,bins:0,dataLines:0,label:1,layout:3,max:11,min:11,colorBlendingEnabled:5,standardDeviationCount:9}}static{this.styles=N}#t;loaded(){let r=new ResizeObserver(n=>{for(let a of n){let{width:s,height:o}=a.contentRect;this.containerDimensions=[s,o]}}),{width:i,height:e}=this.el.getBoundingClientRect();this.containerDimensions=[i,e],r.observe(this.el)}willUpdate(r){r.has("colorStops")&&(this._normalizedStops=T(this.colorStops,L,q))}render(){let{label:r}=this;return v`<div role=img .ariaLabel=${r??void 0} class="content">${this._renderContent()}</div>`}_renderContent(){let{containerDimensions:[r,i]}=this,e="bg-fill",n=r?[g`<defs><clipPath id=${e}><rect height=${i??u} width=${r??u} x=0 y=0 /></clipPath></defs>`,g`<g style=${$({clipPath:`url(#${e})`})}><g>${this._renderBars()}</g></g>`,g`<g>${this._renderLines()}</g>`]:[];return v`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${n}</svg>`}_renderBars(){let{bins:r,_messages:i}=this,e=B(this.bins,this.min,this.max,this.layout,this.containerDimensions);return!e||!r?null:e.map((n,a)=>{let[s,o,c,l]=n,h=r[a],m=i?.barLabel?z(i.barLabel,h):"";return g`<rect style=${$({fill:R(this._normalizedStops,h,L,this.colorBlendingEnabled)})} .ariaLabel=${m} data-index=${a??u} height=${l??u} role=img shape-rendering=crispEdges stroke-width=0 width=${c??u} x=${s??u} y=${o??u} />`})}_renderLines(){return O(this.average,this.standardDeviation,this.standardDeviationCount,this.min,this.max,this.dataLines)?.map(r=>W({dataLine:r,containerDimensions:this.containerDimensions,layout:this.layout,min:this.min,max:this.max,labelFormatter:this.#t}))}},W=t=>{let{containerDimensions:r,layout:i,min:e,max:n,dataLine:a,labelFormatter:s}=t,o=n!=null&&e!=null?n-e:0,[c,l,h,m]=A(r,i,e,o,a.value),[p,d]=P(r,i,e,o,a.value),f="symbol"in a?[g`<tspan class="data-line-symbol">${a.symbol}</tspan>`,g`<tspan>${s(a.value,a.lineClass==="average-data-line"?"average":"standard-deviation")}</tspan>`]:a.label,b="lineClass"in a&&a.lineClass?a.lineClass:"data-line";return g`<g><title>${a.value}</title><line class=${_(b)} shape-rendering=crispEdges x1=${c??u} x2=${l??u} y1=${h??u} y2=${m??u} /><text class="label" text-anchor=end transform=${(i==="horizontal"?"rotate(270)":void 0)??u} x=${p??u} y=${d-2}>${f}</text></g>`};D("arcgis-histogram",x);return x},"intl")
|
package/dist/cdn/TO3YFXVJ.js
DELETED