@arcgis/core 4.33.0-next.20250220 → 4.33.0-next.20250221

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.
Files changed (82) hide show
  1. package/arcade/featureSetUtils.js +1 -1
  2. package/arcade/functions/featuresetbase.js +1 -1
  3. package/assets/esri/core/workers/RemoteClient.js +1 -1
  4. package/assets/esri/core/workers/chunks/4f764b952c6463fc7c88.js +1 -0
  5. package/assets/esri/core/workers/chunks/63d8d507f073a8ed42d2.js +1 -0
  6. package/assets/esri/core/workers/chunks/70574e0e3de729187d98.js +1 -0
  7. package/assets/esri/core/workers/chunks/78c066e8fe167d4ab817.js +1 -0
  8. package/assets/esri/core/workers/chunks/875a200f215e472d147e.js +1 -0
  9. package/assets/esri/core/workers/chunks/{f976233ad5e5b718ba83.js → 8d1f49927738ad3601d2.js} +1 -1
  10. package/assets/esri/core/workers/chunks/9050dad7e4f093568026.js +1 -0
  11. package/assets/esri/core/workers/chunks/930544d3b2c1d9c035c7.js +1 -0
  12. package/assets/esri/core/workers/chunks/{962cad03be1b7aa52ebe.js → 95835a62712fe4f24205.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{030384851fa745908a6e.js → 9dbdb88cdac993104740.js} +2 -2
  14. package/assets/esri/core/workers/chunks/{ac11b2168feee63d2f09.js → b7c6d0ff4c085c8d0596.js} +1 -1
  15. package/assets/esri/core/workers/chunks/e0cd4815149d1ff4d31e.js +1 -0
  16. package/assets/esri/core/workers/chunks/{0a82c13828ffd4780419.js → f51fc2370fb486233499.js} +1 -1
  17. package/assets/esri/core/workers/chunks/fcbe65256a71b34ac9cf.js +1 -0
  18. package/assets/esri/themes/base/widgets/_Editor.scss +4 -0
  19. package/assets/esri/themes/dark/main.css +1 -1
  20. package/assets/esri/themes/light/main.css +1 -1
  21. package/assets/esri/themes/light/view.css +1 -1
  22. package/chunks/ColorMaterial.glsl.js +1 -1
  23. package/chunks/DefaultMaterial.glsl.js +1 -1
  24. package/chunks/ImageMaterial.glsl.js +3 -3
  25. package/chunks/LineMarker.glsl.js +11 -11
  26. package/chunks/NativeLine.glsl.js +1 -1
  27. package/chunks/Path.glsl.js +11 -11
  28. package/chunks/Pattern.glsl.js +2 -2
  29. package/chunks/RealisticTree.glsl.js +1 -1
  30. package/chunks/RibbonLine.glsl.js +1 -1
  31. package/chunks/Terrain.glsl.js +1 -1
  32. package/chunks/WaterSurface.glsl.js +9 -9
  33. package/editing/sharedTemplates/SharedTemplate.js +1 -1
  34. package/editing/sharedTemplates/SharedTemplateMetadata.js +1 -1
  35. package/editing/sharedTemplates/SharedTemplateProvider.js +1 -1
  36. package/editing/sharedTemplates/executor/support/createServiceEdit.js +1 -1
  37. package/editing/sharedTemplates/support/sharedTemplateErrors.js +1 -1
  38. package/editing/sharedTemplates/templateDefinitions/FeatureTemplateDefinition.js +1 -1
  39. package/editing/sharedTemplates/templateDefinitions/GroupTemplateDefinition.js +1 -1
  40. package/editing/sharedTemplates/templateDefinitions/PresetTemplateDefinition.js +1 -1
  41. package/editing/sharedTemplates/templateDefinitions/TemplateDefinitionBase.js +1 -1
  42. package/editing/sharedTemplates/templateDefinitions/parts/FeatureTemplateRelationshipPart.js +1 -1
  43. package/editing/sharedTemplates/templateDefinitions/parts/GroupTemplatePart.js +1 -1
  44. package/editing/sharedTemplates/templateDefinitions/parts/TemplatePartBase.js +1 -1
  45. package/interfaces.d.ts +112 -22
  46. package/layers/ImageryLayer.js +1 -1
  47. package/layers/ImageryTileLayer.js +1 -1
  48. package/layers/WCSLayer.js +1 -1
  49. package/layers/mixins/ArcGISImageService.js +1 -1
  50. package/layers/mixins/ImageryTileMixin.js +1 -1
  51. package/layers/mixins/RasterJobHandlerMixin.js +5 -0
  52. package/layers/orientedImagery/transformations/utils.js +1 -1
  53. package/layers/orientedImagery/transformations/worldToImage.js +1 -1
  54. package/layers/support/Relationship.js +1 -1
  55. package/package.json +1 -1
  56. package/support/revision.js +1 -1
  57. package/undoredo/support/Services.js +1 -1
  58. package/views/2d/AnimationManager.js +1 -1
  59. package/views/2d/layers/imagery/VectorFieldTileView2D.js +1 -1
  60. package/views/2d/layers/imagery/VectorFieldView2D.js +1 -1
  61. package/views/View.js +1 -1
  62. package/views/animation/easing.js +1 -1
  63. package/views/webgl/ShaderBuilder.js +1 -1
  64. package/widgets/Editor/CreateFeaturesWorkflow.js +1 -1
  65. package/widgets/Editor/components/Prompt.js +1 -1
  66. package/widgets/Editor/workflowUtils.js +1 -1
  67. package/widgets/Editor.js +1 -1
  68. package/widgets/OrientedImageryViewer/OrientedImageryViewerViewModel.js +1 -1
  69. package/widgets/OrientedImageryViewer/symbols.js +1 -1
  70. package/widgets/OrientedImageryViewer.js +1 -1
  71. package/widgets/support/FilterCondition.js +1 -1
  72. package/widgets/support/GoTo.js +1 -1
  73. package/widgets/support/goToUtils.js +1 -1
  74. package/assets/esri/core/workers/chunks/0c85731e9bf3eaeb96a2.js +0 -1
  75. package/assets/esri/core/workers/chunks/1b36d4400ab841c978c8.js +0 -1
  76. package/assets/esri/core/workers/chunks/3c44b4bf7fe407ec1d70.js +0 -1
  77. package/assets/esri/core/workers/chunks/4e3e141b3fd8bb652798.js +0 -1
  78. package/assets/esri/core/workers/chunks/717d7e9912d948e44d8d.js +0 -1
  79. package/assets/esri/core/workers/chunks/7bf9ebff90bb02bec8e7.js +0 -1
  80. package/assets/esri/core/workers/chunks/905cf2bb280479cd4f80.js +0 -1
  81. package/assets/esri/core/workers/chunks/b8fae500c69ca2cff62a.js +0 -1
  82. package/assets/esri/core/workers/chunks/b90b7ffc1e9363ed18e0.js +0 -1
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{FeatureTemplateRelationshipPart as s}from"./parts/FeatureTemplateRelationshipPart.js";let p=class extends o{constructor(e){super(e),this.type="feature",this.defaultValues=null,this.relationships=[]}get allParts(){return this.relationships}};e([t({readOnly:!0})],p.prototype,"type",void 0),e([t()],p.prototype,"allParts",null),e([t()],p.prototype,"defaultValues",void 0),e([t({readOnly:!0,type:[s]})],p.prototype,"relationships",void 0),p=e([r("esri.editing.sharedTemplates.templateDefinitions.FeatureTemplateDefinition")],p);export{p as FeatureTemplateDefinition};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{SharedTemplateRelationshipNotFound as o}from"../support/sharedTemplateErrors.js";import{TemplateDefinitionBase as s}from"./TemplateDefinitionBase.js";import{FeatureTemplateRelationshipPart as i}from"./parts/FeatureTemplateRelationshipPart.js";let a=class extends s{constructor(e){super(e),this.type="feature",this.defaultValues=null,this.relationships=[]}get allParts(){return this.relationships}initializeRelationshipMetadata(e){for(const t of this.relationships){const{relationshipCatalogId:r}=t,s=t.template?.layer,i=e.relationships?.find((e=>e.catalogId===r)),a=s?.relationships?.find((e=>e.catalogId===r));if(!i||!s||!a)throw new o(r);t.relationshipMetadata={destinationField:a.keyField,destinationLayerId:s.layerId,sourceField:i.keyField,sourceLayerId:e.layerId}}}};e([t({readOnly:!0})],a.prototype,"type",void 0),e([t()],a.prototype,"allParts",null),e([t()],a.prototype,"defaultValues",void 0),e([t({constructOnly:!0,type:[i]})],a.prototype,"relationships",void 0),a=e([r("esri.editing.sharedTemplates.templateDefinitions.FeatureTemplateDefinition")],a);export{a as FeatureTemplateDefinition};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../chunks/tslib.es6.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as e}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{GroupTemplatePart as s}from"./parts/GroupTemplatePart.js";import{builderInputGeometryTypes as p}from"./parts/builders/builderUtils.js";let i=class extends o{constructor(t){super(t),this.type="group",this.createUtilityNetworkAssociations=!1,this.parts=[]}get allParts(){return[this.basePart,...this.parts]}get inputGeometryType(){return p[this.basePart.builderType]}};t([r({readOnly:!0})],i.prototype,"type",void 0),t([r()],i.prototype,"allParts",null),t([r({readOnly:!0,type:s})],i.prototype,"basePart",void 0),t([r({readOnly:!0})],i.prototype,"createUtilityNetworkAssociations",void 0),t([r()],i.prototype,"inputGeometryType",null),t([r({readOnly:!0,type:[s]})],i.prototype,"parts",void 0),i=t([e("esri.editing.sharedTemplates.templateDefinitions.GroupTemplateDefinition")],i);export{i as GroupTemplateDefinition};
5
+ import{_ as t}from"../../../chunks/tslib.es6.js";import{property as r}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as e}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{GroupTemplatePart as s}from"./parts/GroupTemplatePart.js";import{builderInputGeometryTypes as p}from"./parts/builders/builderUtils.js";let i=class extends o{constructor(t){super(t),this.type="group",this.createUtilityNetworkAssociations=!1,this.parts=[]}get allParts(){return[this.basePart,...this.parts]}get inputGeometryType(){return p[this.basePart.builderType]}};t([r({readOnly:!0})],i.prototype,"type",void 0),t([r()],i.prototype,"allParts",null),t([r({constructOnly:!0,type:s})],i.prototype,"basePart",void 0),t([r({constructOnly:!0})],i.prototype,"createUtilityNetworkAssociations",void 0),t([r()],i.prototype,"inputGeometryType",null),t([r({constructOnly:!0,type:[s]})],i.prototype,"parts",void 0),i=t([e("esri.editing.sharedTemplates.templateDefinitions.GroupTemplateDefinition")],i);export{i as GroupTemplateDefinition};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import{property as t}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{PresetTemplatePart as s}from"./parts/PresetTemplatePart.js";import p from"../../../geometry/Point.js";import i from"../../../geometry/SpatialReference.js";let a=class extends o{constructor(e){super(e),this.type="preset",this.parts=[]}get allParts(){return this.parts}};e([t({readOnly:!0})],a.prototype,"type",void 0),e([t()],a.prototype,"allParts",null),e([t({readOnly:!0,type:p})],a.prototype,"origin",void 0),e([t({readOnly:!0,type:[s],json:{name:"features"}})],a.prototype,"parts",void 0),e([t({type:i})],a.prototype,"spatialReference",void 0),a=e([r("esri.editing.sharedTemplates.templateDefinitions.PresetTemplateDefinition")],a);export{a as PresetTemplateDefinition};
5
+ import{_ as t}from"../../../chunks/tslib.es6.js";import{property as e}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{subclass as r}from"../../../core/accessorSupport/decorators/subclass.js";import{TemplateDefinitionBase as o}from"./TemplateDefinitionBase.js";import{PresetTemplatePart as s}from"./parts/PresetTemplatePart.js";import p from"../../../geometry/Point.js";import i from"../../../geometry/SpatialReference.js";let a=class extends o{constructor(t){super(t),this.type="preset",this.parts=[]}get allParts(){return this.parts}};t([e({readOnly:!0})],a.prototype,"type",void 0),t([e()],a.prototype,"allParts",null),t([e({constructOnly:!0,type:p})],a.prototype,"origin",void 0),t([e({constructOnly:!0,type:[s],json:{name:"features"}})],a.prototype,"parts",void 0),t([e({type:i})],a.prototype,"spatialReference",void 0),a=t([r("esri.editing.sharedTemplates.templateDefinitions.PresetTemplateDefinition")],a);export{a as PresetTemplateDefinition};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../../../chunks/tslib.es6.js";import o from"../../../core/Error.js";import r from"../../../core/JSONSupport.js";import t from"../../../core/Loadable.js";import s from"../../../core/Promise.js";import{property as a}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{reader as p}from"../../../core/accessorSupport/decorators/reader.js";import{subclass as l}from"../../../core/accessorSupport/decorators/subclass.js";import{getSharedTemplateProvider as i}from"../SharedTemplateProvider.js";import{SharedTemplateDefinitionRequiredPropsNotSetError as m}from"../support/sharedTemplateErrors.js";import{namedEditingToolGUIDDict as d}from"../support/toolNames.js";let c=class extends(t.LoadableMixin(s.EsriPromiseMixin(r))){constructor(){super(...arguments),this.excludedTools=[],this.featureService=null,this.makeSharedTemplateFromJSON=null,this.view=null}readExcludedTools(e){return e.map((e=>d.fromJSON(e)))}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const r=this.allParts,{featureService:t,makeSharedTemplateFromJSON:s,view:a}=this;if(null==t||null==s||null==a)throw new m;for(const o of r)o.assertIsSupportedPart();const p=i(a,{makeSharedTemplateFromJSON:s}),l=await p.getTemplates({templateIds:r.map((e=>e.templateId)),featureService:t,signal:e?.signal}),d=new Map(l.map((e=>[e.templateId,e])));for(const i of r){const e=d.get(i.templateId);if(null==e)throw new o(`Failed to retrieve template for template ID ${i.templateId}`);i.template=e}await Promise.all(l.map((o=>o.load(e))))}};e([a({readOnly:!0})],c.prototype,"type",void 0),e([a({constructOnly:!0})],c.prototype,"excludedTools",void 0),e([p("excludedTools")],c.prototype,"readExcludedTools",null),e([a()],c.prototype,"featureService",void 0),e([a()],c.prototype,"makeSharedTemplateFromJSON",void 0),e([a()],c.prototype,"view",void 0),c=e([l("esri.editing.sharedTemplates.templateDefinitions.TemplateDefinitionBase")],c);export{c as TemplateDefinitionBase};
5
+ import{_ as e}from"../../../chunks/tslib.es6.js";import o from"../../../core/Error.js";import r from"../../../core/JSONSupport.js";import t from"../../../core/Loadable.js";import s from"../../../core/Promise.js";import{property as a}from"../../../core/accessorSupport/decorators/property.js";import"../../../core/has.js";import"../../../core/Logger.js";import"../../../core/RandomLCG.js";import{reader as l}from"../../../core/accessorSupport/decorators/reader.js";import{subclass as p}from"../../../core/accessorSupport/decorators/subclass.js";import{getSharedTemplateProvider as i}from"../SharedTemplateProvider.js";import{SharedTemplateDefinitionRequiredPropsNotSetError as m}from"../support/sharedTemplateErrors.js";import{namedEditingToolGUIDDict as d}from"../support/toolNames.js";let c=class extends(t.LoadableMixin(s.EsriPromiseMixin(r))){constructor(){super(...arguments),this.excludedTools=[],this.featureService=null,this.makeSharedTemplateFromJSON=null,this.view=null}readExcludedTools(e){return e.map((e=>d.fromJSON(e)))}load(e){return this.addResolvingPromise(this._load(e)),Promise.resolve(this)}async _load(e){const r=this.allParts,{featureService:t,makeSharedTemplateFromJSON:s,view:a}=this;if(null==t||null==s||null==a)throw new m;for(const o of r)o.assertIsSupportedPart();const l=i(a,{makeSharedTemplateFromJSON:s}),p=r.filter((e=>null==e.template)),d=await l.getTemplates({templateIds:p.map((e=>e.templateId)),featureService:t,signal:e?.signal}),c=new Map(d.map((e=>[e.templateId,e])));for(const i of p){const e=c.get(i.templateId);if(null==e)throw new o(`Failed to retrieve template for template ID ${i.templateId}`);i.template=e}await Promise.all(r.map((o=>o.template?.load(e))))}};e([a({readOnly:!0})],c.prototype,"type",void 0),e([a({constructOnly:!0})],c.prototype,"excludedTools",void 0),e([l("excludedTools")],c.prototype,"readExcludedTools",null),e([a()],c.prototype,"featureService",void 0),e([a()],c.prototype,"makeSharedTemplateFromJSON",void 0),e([a()],c.prototype,"view",void 0),c=e([p("esri.editing.sharedTemplates.templateDefinitions.TemplateDefinitionBase")],c);export{c as TemplateDefinitionBase};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as t}from"../../../../chunks/tslib.es6.js";import{property as e}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as o}from"../../../../core/accessorSupport/decorators/subclass.js";import{TemplatePartBase as r}from"./TemplatePartBase.js";let s=class extends r{constructor(t){super(t),this.relationshipClassId="",this.relationshipMetadata=null,this.template=null,this.type="relationship"}assertIsSupportedPart(){}};t([e()],s.prototype,"relationshipClassId",void 0),t([e()],s.prototype,"relationshipMetadata",void 0),t([e()],s.prototype,"template",void 0),t([e()],s.prototype,"type",void 0),s=t([o("esri.editing.sharedTemplates.templateDefinitions.parts.FeatureTemplateRelationshipPart")],s);export{s as FeatureTemplateRelationshipPart};
5
+ import{_ as t}from"../../../../chunks/tslib.es6.js";import{property as e}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as o}from"../../../../core/accessorSupport/decorators/subclass.js";import{TemplatePartBase as r}from"./TemplatePartBase.js";let s=class extends r{constructor(t){super(t),this.relationshipCatalogId="",this.relationshipMetadata=null,this.template=null,this.type="relationship"}assertIsSupportedPart(){}};t([e({json:{name:"relationshipClassID"}})],s.prototype,"relationshipCatalogId",void 0),t([e()],s.prototype,"relationshipMetadata",void 0),t([e()],s.prototype,"template",void 0),t([e()],s.prototype,"type",void 0),s=t([o("esri.editing.sharedTemplates.templateDefinitions.parts.FeatureTemplateRelationshipPart")],s);export{s as FeatureTemplateRelationshipPart};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as r}from"../../../../chunks/tslib.es6.js";import{property as o}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{enumeration as e}from"../../../../core/accessorSupport/decorators/enumeration.js";import{subclass as t}from"../../../../core/accessorSupport/decorators/subclass.js";import{SharedTemplateUnsupportedBuilderError as s}from"../../support/sharedTemplateErrors.js";import{TemplatePartBase as p}from"./TemplatePartBase.js";import{builderTypesKebabDict as i}from"./builders/builderUtils.js";let a=class extends p{constructor(){super(...arguments),this.builderConfig={},this.type="group"}assertIsSupportedPart(){const{builderType:r}=this;if(!i.apiValues.includes(r))throw new s(r)}};r([e(i,{ignoreUnknown:!1,name:"type"})],a.prototype,"builderType",void 0),r([o({json:{name:"options"}})],a.prototype,"builderConfig",void 0),r([o()],a.prototype,"type",void 0),a=r([t("esri.editing.sharedTemplates.templateDefinitions.parts.GroupTemplatePart")],a);export{a as GroupTemplatePart};
5
+ import{_ as r}from"../../../../chunks/tslib.es6.js";import{property as o}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{enumeration as e}from"../../../../core/accessorSupport/decorators/enumeration.js";import{subclass as t}from"../../../../core/accessorSupport/decorators/subclass.js";import{SharedTemplateUnsupportedBuilderError as s}from"../../support/sharedTemplateErrors.js";import{TemplatePartBase as p}from"./TemplatePartBase.js";import{builderTypesKebabDict as i}from"./builders/builderUtils.js";let a=class extends p{constructor(r){super(r),this.builderConfig={},this.type="group"}assertIsSupportedPart(){const{builderType:r}=this;if(!i.apiValues.includes(r))throw new s(r)}};r([e(i,{ignoreUnknown:!1,name:"type"})],a.prototype,"builderType",void 0),r([o({json:{name:"options"}})],a.prototype,"builderConfig",void 0),r([o()],a.prototype,"type",void 0),a=r([t("esri.editing.sharedTemplates.templateDefinitions.parts.GroupTemplatePart")],a);export{a as GroupTemplatePart};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as o}from"../../../../chunks/tslib.es6.js";import t from"../../../../core/JSONSupport.js";import{property as e}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as r}from"../../../../core/accessorSupport/decorators/subclass.js";let p=class extends t{constructor(){super(...arguments),this.template=null}};o([e()],p.prototype,"template",void 0),o([e()],p.prototype,"templateGlobalId",void 0),o([e()],p.prototype,"templateId",void 0),o([e({readOnly:!0,json:{read:!1,write:!1}})],p.prototype,"type",void 0),p=o([r("esri.editing.sharedTemplates.templateDefinitions.parts.TemplatePartBase")],p);export{p as TemplatePartBase};
5
+ import{_ as o}from"../../../../chunks/tslib.es6.js";import t from"../../../../core/JSONSupport.js";import{property as e}from"../../../../core/accessorSupport/decorators/property.js";import"../../../../core/has.js";import"../../../../core/Logger.js";import"../../../../core/RandomLCG.js";import{subclass as r}from"../../../../core/accessorSupport/decorators/subclass.js";let p=class extends t{constructor(o){super(o),this.template=null}};o([e()],p.prototype,"template",void 0),o([e()],p.prototype,"templateGlobalId",void 0),o([e()],p.prototype,"templateId",void 0),o([e({readOnly:!0,json:{read:!1,write:!1}})],p.prototype,"type",void 0),p=o([r("esri.editing.sharedTemplates.templateDefinitions.parts.TemplatePartBase")],p);export{p as TemplatePartBase};
package/interfaces.d.ts CHANGED
@@ -38791,6 +38791,12 @@ declare namespace __esri {
38791
38791
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#cardinality Read more...}
38792
38792
  */
38793
38793
  cardinality: "one-to-one" | "one-to-many" | "many-to-many";
38794
+ /**
38795
+ * The globally unique identifier for the relationship.
38796
+ *
38797
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#catalogId Read more...}
38798
+ */
38799
+ catalogId: string | nullish;
38794
38800
  /**
38795
38801
  * Indicates whether the relationship is composite.
38796
38802
  *
@@ -38878,6 +38884,12 @@ declare namespace __esri {
38878
38884
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#cardinality Read more...}
38879
38885
  */
38880
38886
  cardinality?: "one-to-one" | "one-to-many" | "many-to-many";
38887
+ /**
38888
+ * The globally unique identifier for the relationship.
38889
+ *
38890
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Relationship.html#catalogId Read more...}
38891
+ */
38892
+ catalogId?: string | nullish;
38881
38893
  /**
38882
38894
  * Indicates whether the relationship is composite.
38883
38895
  *
@@ -62959,7 +62971,10 @@ declare namespace __esri {
62959
62971
  interface SourceTypeValueBehaviorProperties {
62960
62972
  }
62961
62973
 
62962
- export class CIMFilteredFindPathsConfiguration extends JSONSupport {
62974
+ export interface CIMFilteredFindPathsConfiguration extends Accessor, JSONSupport {
62975
+ }
62976
+
62977
+ export class CIMFilteredFindPathsConfiguration {
62963
62978
  defaultTraversalDirectionType: "Any" | "Forward" | "Backward";
62964
62979
  destinationEntities: CIMFilteredFindPathsEntity[];
62965
62980
  entityUsage: | "AnyOriginAnyDestination"
@@ -62977,6 +62992,21 @@ declare namespace __esri {
62977
62992
  traversalDirections: CIMKGTraversalDirection[];
62978
62993
  readonly type: "CIMFilteredFindPathsConfiguration";
62979
62994
  constructor(properties?: CIMFilteredFindPathsConfigurationProperties);
62995
+ /**
62996
+ * Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
62997
+ *
62998
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMFilteredFindPathsConfiguration.html#toJSON Read more...}
62999
+ */
63000
+ toJSON(): any;
63001
+ /**
63002
+ * Creates a new instance of this class and initializes it with values from a JSON object
63003
+ * generated from an ArcGIS product.
63004
+ *
63005
+ * @param json A JSON representation of the instance in the ArcGIS format. See the [ArcGIS REST API documentation](https://developers.arcgis.com/documentation/common-data-types/overview-of-common-data-types.htm) for examples of the structure of various input JSON objects.
63006
+ *
63007
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMFilteredFindPathsConfiguration.html#fromJSON Read more...}
63008
+ */
63009
+ static fromJSON(json: any): any | nullish;
62980
63010
  static fromJSON(json: any): CIMFilteredFindPathsConfiguration;
62981
63011
  }
62982
63012
 
@@ -62998,12 +63028,30 @@ declare namespace __esri {
62998
63028
  traversalDirections?: CIMKGTraversalDirection[];
62999
63029
  }
63000
63030
 
63001
- export class CIMFilteredFindPathsEntity extends JSONSupport {
63031
+ export interface CIMFilteredFindPathsEntity extends Accessor, JSONSupport {
63032
+ }
63033
+
63034
+ export class CIMFilteredFindPathsEntity {
63002
63035
  entityTypeName: string | nullish;
63003
63036
  iD: string | nullish;
63004
63037
  propertyFilterPredicate: string | nullish;
63005
63038
  readonly type: string;
63006
63039
  constructor(properties?: CIMFilteredFindPathsEntityProperties);
63040
+ /**
63041
+ * Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
63042
+ *
63043
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMFilteredFindPathsEntity.html#toJSON Read more...}
63044
+ */
63045
+ toJSON(): any;
63046
+ /**
63047
+ * Creates a new instance of this class and initializes it with values from a JSON object
63048
+ * generated from an ArcGIS product.
63049
+ *
63050
+ * @param json A JSON representation of the instance in the ArcGIS format. See the [ArcGIS REST API documentation](https://developers.arcgis.com/documentation/common-data-types/overview-of-common-data-types.htm) for examples of the structure of various input JSON objects.
63051
+ *
63052
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMFilteredFindPathsEntity.html#fromJSON Read more...}
63053
+ */
63054
+ static fromJSON(json: any): any | nullish;
63007
63055
  static fromJSON(json: any): CIMFilteredFindPathsEntity;
63008
63056
  }
63009
63057
 
@@ -63013,7 +63061,10 @@ declare namespace __esri {
63013
63061
  propertyFilterPredicate?: string | nullish;
63014
63062
  }
63015
63063
 
63016
- export class CIMFilteredFindPathsPathFilter extends JSONSupport {
63064
+ export interface CIMFilteredFindPathsPathFilter extends Accessor, JSONSupport {
63065
+ }
63066
+
63067
+ export class CIMFilteredFindPathsPathFilter {
63017
63068
  filterType: "IncludeOnly" | "Exclude" | "MandatoryWaypoint" | "OptionalWaypoint";
63018
63069
  /**
63019
63070
  * ID to use as a filter.
@@ -63026,6 +63077,21 @@ declare namespace __esri {
63026
63077
  propertyFilterPredicate: string | nullish;
63027
63078
  type: string;
63028
63079
  constructor(properties?: CIMFilteredFindPathsPathFilterProperties);
63080
+ /**
63081
+ * Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
63082
+ *
63083
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMFilteredFindPathsPathFilter.html#toJSON Read more...}
63084
+ */
63085
+ toJSON(): any;
63086
+ /**
63087
+ * Creates a new instance of this class and initializes it with values from a JSON object
63088
+ * generated from an ArcGIS product.
63089
+ *
63090
+ * @param json A JSON representation of the instance in the ArcGIS format. See the [ArcGIS REST API documentation](https://developers.arcgis.com/documentation/common-data-types/overview-of-common-data-types.htm) for examples of the structure of various input JSON objects.
63091
+ *
63092
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMFilteredFindPathsPathFilter.html#fromJSON Read more...}
63093
+ */
63094
+ static fromJSON(json: any): any | nullish;
63029
63095
  static fromJSON(json: any): CIMFilteredFindPathsPathFilter;
63030
63096
  }
63031
63097
 
@@ -63043,10 +63109,28 @@ declare namespace __esri {
63043
63109
  type?: string;
63044
63110
  }
63045
63111
 
63046
- export class CIMKGTraversalDirection extends JSONSupport {
63112
+ export interface CIMKGTraversalDirection extends Accessor, JSONSupport {
63113
+ }
63114
+
63115
+ export class CIMKGTraversalDirection {
63047
63116
  traversalDirectionType: "Any" | "Forward" | "Backward";
63048
63117
  readonly type: string;
63049
63118
  constructor(properties?: CIMKGTraversalDirectionProperties);
63119
+ /**
63120
+ * Converts an instance of this class to its [ArcGIS portal JSON](https://developers.arcgis.com/documentation/common-data-types/geometry-objects.htm) representation.
63121
+ *
63122
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMKGTraversalDirection.html#toJSON Read more...}
63123
+ */
63124
+ toJSON(): any;
63125
+ /**
63126
+ * Creates a new instance of this class and initializes it with values from a JSON object
63127
+ * generated from an ArcGIS product.
63128
+ *
63129
+ * @param json A JSON representation of the instance in the ArcGIS format. See the [ArcGIS REST API documentation](https://developers.arcgis.com/documentation/common-data-types/overview-of-common-data-types.htm) for examples of the structure of various input JSON objects.
63130
+ *
63131
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-knowledgeGraph-toolService-findPaths-CIMKGTraversalDirection.html#fromJSON Read more...}
63132
+ */
63133
+ static fromJSON(json: any): any | nullish;
63050
63134
  static fromJSON(json: any): CIMKGTraversalDirection;
63051
63135
  }
63052
63136
 
@@ -97692,7 +97776,19 @@ declare namespace __esri {
97692
97776
  speedFactor?: number;
97693
97777
  duration?: number;
97694
97778
  maxDuration?: number;
97695
- easing?: "linear" | "ease" | "ease-in" | "ease-out" | "ease-in-out" | MapViewEasingFunction;
97779
+ easing?: | "linear"
97780
+ | "in-cubic"
97781
+ | "out-cubic"
97782
+ | "in-out-cubic"
97783
+ | "in-expo"
97784
+ | "out-expo"
97785
+ | "in-out-expo"
97786
+ | "in-out-coast-quad"
97787
+ | "ease"
97788
+ | "ease-in"
97789
+ | "ease-out"
97790
+ | "ease-in-out"
97791
+ | MapViewEasingFunction;
97696
97792
  pickClosestTarget?: boolean;
97697
97793
  signal?: AbortSignal | nullish;
97698
97794
  }
@@ -98707,6 +98803,10 @@ declare namespace __esri {
98707
98803
  | "out-expo"
98708
98804
  | "in-out-expo"
98709
98805
  | "in-out-coast-quad"
98806
+ | "ease"
98807
+ | "ease-in"
98808
+ | "ease-out"
98809
+ | "ease-in-out"
98710
98810
  | EasingFunction;
98711
98811
  signal?: AbortSignal | nullish;
98712
98812
  }
@@ -113787,7 +113887,7 @@ declare namespace __esri {
113787
113887
  *
113788
113888
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Features-FeaturesViewModel.html#zoomTo Read more...}
113789
113889
  */
113790
- zoomTo(params: GoToParameters2D | GoToParameters3D): Promise<any>;
113890
+ zoomTo(params: GoToParameters): Promise<any>;
113791
113891
  on(name: "trigger-action", eventHandler: FeaturesViewModelTriggerActionEventHandler): IHandle;
113792
113892
  }
113793
113893
 
@@ -130994,26 +131094,16 @@ declare namespace __esri {
130994
131094
  }
130995
131095
  }
130996
131096
 
130997
- export type GoToOverride = (view: MapView | SceneView, goToParameters: GoToParameters2D | GoToParameters3D) => void;
130998
-
130999
- /**
131000
- * The parameters for the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo MapView's goTo()} method.
131001
- *
131002
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#GoToParameters2D Read more...}
131003
- */
131004
- export interface GoToParameters2D {
131005
- target: GoToTarget2D;
131006
- options?: GoToOptions2D;
131007
- }
131097
+ export type GoToOverride = (view: MapView | SceneView, goToParameters: GoToParameters) => void;
131008
131098
 
131009
131099
  /**
131010
- * The parameters for the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo SceneView's goTo()} method.
131100
+ * The parameters for the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#goTo MapView's goTo()} method and the {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-views-SceneView.html#goTo SceneView's goTo()} method.
131011
131101
  *
131012
- * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#GoToParameters3D Read more...}
131102
+ * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-support-widget.html#GoToParameters Read more...}
131013
131103
  */
131014
- export interface GoToParameters3D {
131015
- target: GoToTarget3D;
131016
- options?: GoToOptions3D;
131104
+ export interface GoToParameters {
131105
+ target: GoToTarget2D & GoToTarget3D;
131106
+ options?: GoToOptions2D & GoToOptions3D;
131017
131107
  }
131018
131108
 
131019
131109
  export class Swipe extends Widget {
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import r from"../PopupTemplate.js";import t from"../core/Clonable.js";import o from"../core/Error.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{debounce as i,throwIfAbortError as a}from"../core/promiseUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import{writer as l}from"../core/accessorSupport/decorators/writer.js";import m from"./Layer.js";import{ArcGISImageService as c}from"./mixins/ArcGISImageService.js";import{ArcGISService as u}from"./mixins/ArcGISService.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as d}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as h}from"./mixins/PortalLayer.js";import{RasterPresetRendererMixin as g}from"./mixins/RasterPresetRendererMixin.js";import{RefreshableLayer as v}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as S}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as j}from"./mixins/TemporalLayer.js";import{legendEnabled as L,popupEnabled as w}from"./support/commonProperties.js";import{setDefaultRasterFieldFormats as I,commonRasterFieldNames as b,rasterDimensionFieldPrefix as P}from"./support/rasterFieldUtils.js";import{serviceSupportsSpatialReference as x}from"./support/versionUtils.js";import{createPopupTemplate as A}from"../support/popupUtils.js";import{SaveOperationType as T}from"../webdoc/interfaces.js";let _=class extends(y(j(S(f(h(g(c(v(d(u(s(t.ClonableMixin(m))))))))))))){constructor(...e){super(...e),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery",this._debouncedSaveOperations=i((async(e,r,t)=>{const{save:o,saveAs:s}=await import("./save/imageryUtils.js");switch(e){case T.SAVE:return o(this,r);case T.SAVE_AS:return s(this,t,r)}}))}normalizeCtorArgs(e,r){return"string"==typeof e?{url:e,...r}:e}load(e){const r=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(a).then((()=>this._fetchService(r)))),Promise.resolve(this)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,r,t){const o="vector-field"===this.renderer?.type;r[t]=o?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:r}=this,t=new Set,o=b.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,i=P.toLowerCase(),a=`${b.servicePixelValue.toLowerCase()}.`;for(const l of r){const e=l.name.toLowerCase();e===o||e.startsWith(a)||s&&e.startsWith(i)||t.add(l.name)}const p=A({fields:r,title:this.title},{...e,visibleFieldNames:t}),{rasterInfo:n}=this;return p?.fieldInfos&&n&&I(p.fieldInfos,n),p}queryFeatures(e,r){return this.queryRasters(e,r).then((e=>{if(e?.features)for(const r of e.features)r.layer=r.sourceLayer=this;return e}))}queryFeatureCount(e,r){return this.queryRasterCount(e,r)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(T.SAVE,e)}async saveAs(e,r){return this._debouncedSaveOperations(T.SAVE_AS,r,e)}serviceSupportsSpatialReference(e){return x(this,e)}write(e,r){if(!this._isPreviewLayer)return super.write(e,r);if(r?.messages){const e=`${r.origin}/${r.layerContainerType||"operational-layers"}`;r.messages.push(new o("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}};e([p(L)],_.prototype,"legendEnabled",null),e([p({type:["show","hide"]})],_.prototype,"listMode",null),e([p({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],_.prototype,"isReference",void 0),e([p({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],_.prototype,"operationalLayerType",void 0),e([l("web-map","operationalLayerType")],_.prototype,"writeOperationalLayerType",null),e([p(w)],_.prototype,"popupEnabled",void 0),e([p({type:r,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],_.prototype,"popupTemplate",void 0),e([p({readOnly:!0})],_.prototype,"defaultPopupTemplate",null),e([p({readOnly:!0,json:{read:!1}})],_.prototype,"type",void 0),e([p({readOnly:!0})],_.prototype,"_isPreviewLayer",null),_=e([n("esri.layers.ImageryLayer")],_);const C=_;export{C as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import r from"../PopupTemplate.js";import t from"../core/Clonable.js";import o from"../core/Error.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{debounce as i,throwIfAbortError as a}from"../core/promiseUtils.js";import{property as p}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as n}from"../core/accessorSupport/decorators/subclass.js";import{writer as l}from"../core/accessorSupport/decorators/writer.js";import m from"./Layer.js";import{ArcGISImageService as c}from"./mixins/ArcGISImageService.js";import{ArcGISService as u}from"./mixins/ArcGISService.js";import{BlendLayer as y}from"./mixins/BlendLayer.js";import{CustomParametersMixin as d}from"./mixins/CustomParametersMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as h}from"./mixins/PortalLayer.js";import{RasterJobHandlerMixin as g}from"./mixins/RasterJobHandlerMixin.js";import{RasterPresetRendererMixin as v}from"./mixins/RasterPresetRendererMixin.js";import{RefreshableLayer as S}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as j}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as L}from"./mixins/TemporalLayer.js";import{legendEnabled as w,popupEnabled as I}from"./support/commonProperties.js";import{setDefaultRasterFieldFormats as b,commonRasterFieldNames as x,rasterDimensionFieldPrefix as P}from"./support/rasterFieldUtils.js";import{serviceSupportsSpatialReference as A}from"./support/versionUtils.js";import{createPopupTemplate as T}from"../support/popupUtils.js";import{SaveOperationType as _}from"../webdoc/interfaces.js";let C=class extends(y(L(j(f(h(v(c(g(S(d(u(s(t.ClonableMixin(m)))))))))))))){constructor(...e){super(...e),this.isReference=null,this.operationalLayerType="ArcGISImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.type="imagery",this._debouncedSaveOperations=i((async(e,r,t)=>{const{save:o,saveAs:s}=await import("./save/imageryUtils.js");switch(e){case _.SAVE:return o(this,r);case _.SAVE_AS:return s(this,t,r)}}))}normalizeCtorArgs(e,r){return"string"==typeof e?{url:e,...r}:e}load(e){const r=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(a).then((()=>this._fetchService(r)))),Promise.resolve(this)}get legendEnabled(){return!this._isPreviewLayer&&(this._get("legendEnabled")??!0)}set legendEnabled(e){this._set("legendEnabled",e)}get listMode(){return this._isPreviewLayer?"hide":this._get("listMode")}set listMode(e){this._set("listMode",e)}writeOperationalLayerType(e,r,t){const o="vector-field"===this.renderer?.type;r[t]=o?"ArcGISImageServiceVectorLayer":"ArcGISImageServiceLayer"}get defaultPopupTemplate(){return this.createPopupTemplate()}get _isPreviewLayer(){return!(!this.raster||!this.url?.toLowerCase().includes("/rasterrendering/imageserver"))}createPopupTemplate(e){const{rasterFields:r}=this,t=new Set,o=x.itemPixelValue.toLowerCase(),s="raster-dataset"===this.sourceType,i=P.toLowerCase(),a=`${x.servicePixelValue.toLowerCase()}.`;for(const l of r){const e=l.name.toLowerCase();e===o||e.startsWith(a)||s&&e.startsWith(i)||t.add(l.name)}const p=T({fields:r,title:this.title},{...e,visibleFieldNames:t}),{rasterInfo:n}=this;return p?.fieldInfos&&n&&b(p.fieldInfos,n),p}queryFeatures(e,r){return this.queryRasters(e,r).then((e=>{if(e?.features)for(const r of e.features)r.layer=r.sourceLayer=this;return e}))}queryFeatureCount(e,r){return this.queryRasterCount(e,r)}redraw(){this.emit("redraw")}async save(e){return this._debouncedSaveOperations(_.SAVE,e)}async saveAs(e,r){return this._debouncedSaveOperations(_.SAVE_AS,r,e)}serviceSupportsSpatialReference(e){return A(this,e)}write(e,r){if(!this._isPreviewLayer)return super.write(e,r);if(r?.messages){const e=`${r.origin}/${r.layerContainerType||"operational-layers"}`;r.messages.push(new o("layer:unsupported",`Imagery preview layer (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}};e([p(w)],C.prototype,"legendEnabled",null),e([p({type:["show","hide"]})],C.prototype,"listMode",null),e([p({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],C.prototype,"isReference",void 0),e([p({type:["ArcGISImageServiceLayer"],json:{origins:{"web-map":{type:["ArcGISImageServiceLayer","ArcGISImageServiceVectorLayer"],read:!1,write:{target:"layerType",ignoreOrigin:!0}}}}})],C.prototype,"operationalLayerType",void 0),e([l("web-map","operationalLayerType")],C.prototype,"writeOperationalLayerType",null),e([p(I)],C.prototype,"popupEnabled",void 0),e([p({type:r,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],C.prototype,"popupTemplate",void 0),e([p({readOnly:!0})],C.prototype,"defaultPopupTemplate",null),e([p({readOnly:!0,json:{read:!1}})],C.prototype,"type",void 0),e([p({readOnly:!0})],C.prototype,"_isPreviewLayer",null),C=e([n("esri.layers.ImageryLayer")],C);const E=C;export{E as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import t from"../PopupTemplate.js";import r from"../core/Clonable.js";import s from"../core/Error.js";import i from"../core/Logger.js";import{MultiOriginJSONMixin as o}from"../core/MultiOriginJSONSupport.js";import{debounce as a,throwIfAbortError as n}from"../core/promiseUtils.js";import{watch as p}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import{ensureClass as c}from"../core/accessorSupport/ensureType.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import u from"./Layer.js";import{ArcGISService as h}from"./mixins/ArcGISService.js";import{BlendLayer as d}from"./mixins/BlendLayer.js";import{CustomParametersMixin as y}from"./mixins/CustomParametersMixin.js";import{ImageryTileMixin as f}from"./mixins/ImageryTileMixin.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as v}from"./mixins/PortalLayer.js";import{RasterPresetRendererMixin as R}from"./mixins/RasterPresetRendererMixin.js";import{RefreshableLayer as w}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as S}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as F}from"./mixins/TemporalLayer.js";import{legendEnabled as j}from"./support/commonProperties.js";import _ from"./support/Field.js";import{getServicePixelValueField as O,getRawServicePixelValueField as P,getRasterAttributeTableFields as b,getMagnitudeField as I,getDirectionField as x,getMultidimensionalFields as T,commonRasterFieldNames as N,setDefaultRasterFieldFormats as L}from"./support/rasterFieldUtils.js";import J from"./support/RasterFunction.js";import{isFunctionRaster as C,getPrimaryRasters as M}from"./support/rasterDatasets/datasetUtils.js";import E from"./support/rasterDatasets/FunctionRaster.js";import A from"./support/rasterDatasets/RasterFactory.js";import{getPrimaryRasterUrls as U,create as $}from"./support/rasterFunctions/rasterFunctionHelper.js";import{createPopupTemplate as V}from"../support/popupUtils.js";import{SaveOperationType as B}from"../webdoc/interfaces.js";let D=class extends(d(S(g(v(R(y(f(F(h(w(o(r.ClonableMixin(u))))))))))))){constructor(...e){super(...e),this._primaryRasters=[],this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this.source=void 0,this._debouncedSaveOperations=a((async(e,t,r)=>{const{save:s,saveAs:i}=await import("./save/imageryUtils.js");switch(e){case B.SAVE:return s(this,t);case B.SAVE_AS:return i(this,r,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(n).then((()=>this._openRaster(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[O("Pixel Value"),P("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,r=t?.attributeTable;if(r){const t=b(r);e.push(...t)}const s=t?.dataType,i=t?.multidimensionalInfo;if(("vector-magdir"===s||"vector-uv"===s)&&null!=i){const t=i.variables[0].unit?.trim(),r=I(t),s=x();e.push(r,s)}if(i){const t=T(i);e.push(...t)}return e}createPopupTemplate(e){const{rasterFields:t}=this,r=e?.visibleFieldNames??new Set(t.map((({name:e})=>e)).filter((e=>e!==N.rawServicePixelValue))),s=V({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:i}=this.raster;return s?.fieldInfos&&i&&L(s.fieldInfos,i),s}async generateRasterInfo(e,t){if(e=c(J,e),await this.load(),!e||"none"===e.functionName?.toLowerCase())return this.serviceRasterInfo;try{const{rasterInfo:r}=await this._openFunctionRaster(e,t);return r}catch(r){if(r instanceof s)throw r;throw new s("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(B.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(B.SAVE_AS,t,e)}write(e,t){const r=this._primaryRasters[0]??this.raster;if(this.loaded?"RasterTileServer"===r.datasetFormat&&("Raster"===r.tileType||"Map"===r.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new s("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=C(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{const{url:t,rasterFunction:r,source:i}=this;if(!t&&!i)throw new s("imagery-tile-layer:open","missing url or source parameter");i?await this._openFromSource(i,e):r?await this._openFromUrlWithRasterFunction(t,r,e):await this._openFromUrl(t,e)}const r=this.raster.rasterInfo;if(!r)throw new s("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?r:this._primaryRasters[0].rasterInfo),this._set("spatialReference",r.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){const e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles(p((()=>this.customParameters),(e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)})))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=M(e),this.url||(this.url=this._primaryRasters[0].url)}async _openFromUrlWithRasterFunction(e,t,r){const i=[e];t&&U(t.toJSON(),i);const o=await Promise.all(i.map((e=>A.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:r})))),a=o.findIndex((e=>null==e));if(a>-1)throw new s("imagery-tile-layer:open",`cannot open raster: ${i[a]}`);return this._primaryRasters=o,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){const r=await A.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==r)throw new s("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[r],this.raster=r}async _openFromSource(e,t){const r="the tiled imagery data source is not supported",i="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!i)throw new s("imagery-tile-layer:open",r);"MEMORY"===i&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});const o=await A.open({url:"",source:e,datasetFormat:i,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==o)throw new s("imagery-tile-layer:open",r);this._primaryRasters=[o],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=o}async _openFunctionRaster(e,t){const r={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach((e=>r[e.url]=e));const s=$(e.functionDefinition?.toJSON()??e.toJSON(),r),i=new E({rasterFunction:s});return await i.open(t),i}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(r){r instanceof s&&i.getLogger(this).error("imagery-tile-layer:open",r.message),i.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}};e([l({clonable:!1})],D.prototype,"_primaryRasters",void 0),e([l(j)],D.prototype,"legendEnabled",void 0),e([l({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],D.prototype,"isReference",void 0),e([l({type:["show","hide"]})],D.prototype,"listMode",void 0),e([l({json:{read:!0,write:!0}})],D.prototype,"blendMode",void 0),e([l({type:J,json:{name:"renderingRule",write:!0}})],D.prototype,"rasterFunction",void 0),e([l()],D.prototype,"sourceJSON",void 0),e([l({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],D.prototype,"version",void 0),e([l({readOnly:!0,json:{read:!1}})],D.prototype,"type",void 0),e([l({type:["ArcGISTiledImageServiceLayer"]})],D.prototype,"operationalLayerType",void 0),e([l({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,r){t[r]=!e}}}})],D.prototype,"popupEnabled",void 0),e([l({type:t,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],D.prototype,"popupTemplate",void 0),e([l({readOnly:!0})],D.prototype,"defaultPopupTemplate",null),e([l({readOnly:!0,type:[_]})],D.prototype,"fields",void 0),e([l({readOnly:!0,type:[_]})],D.prototype,"rasterFields",null),e([l({constructOnly:!0})],D.prototype,"source",void 0),D=e([m("esri.layers.ImageryTileLayer")],D);const W=D;export{W as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"../PopupTemplate.js";import r from"../core/Clonable.js";import s from"../core/Error.js";import i from"../core/Logger.js";import{MultiOriginJSONMixin as o}from"../core/MultiOriginJSONSupport.js";import{debounce as a,throwIfAbortError as n}from"../core/promiseUtils.js";import{watch as p}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import{ensureClass as c}from"../core/accessorSupport/ensureType.js";import"../core/has.js";import"../core/RandomLCG.js";import{subclass as m}from"../core/accessorSupport/decorators/subclass.js";import u from"./Layer.js";import{ArcGISService as h}from"./mixins/ArcGISService.js";import{BlendLayer as d}from"./mixins/BlendLayer.js";import{CustomParametersMixin as y}from"./mixins/CustomParametersMixin.js";import{ImageryTileMixin as f}from"./mixins/ImageryTileMixin.js";import{OperationalLayer as g}from"./mixins/OperationalLayer.js";import{PortalLayer as v}from"./mixins/PortalLayer.js";import{RasterJobHandlerMixin as R}from"./mixins/RasterJobHandlerMixin.js";import{RasterPresetRendererMixin as w}from"./mixins/RasterPresetRendererMixin.js";import{RefreshableLayer as S}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as F}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as j}from"./mixins/TemporalLayer.js";import{legendEnabled as _}from"./support/commonProperties.js";import O from"./support/Field.js";import{getServicePixelValueField as b,getRawServicePixelValueField as x,getRasterAttributeTableFields as P,getMagnitudeField as I,getDirectionField as T,getMultidimensionalFields as N,commonRasterFieldNames as J,setDefaultRasterFieldFormats as L}from"./support/rasterFieldUtils.js";import C from"./support/RasterFunction.js";import{isFunctionRaster as M,getPrimaryRasters as E}from"./support/rasterDatasets/datasetUtils.js";import A from"./support/rasterDatasets/FunctionRaster.js";import U from"./support/rasterDatasets/RasterFactory.js";import{getPrimaryRasterUrls as $,create as V}from"./support/rasterFunctions/rasterFunctionHelper.js";import{createPopupTemplate as B}from"../support/popupUtils.js";import{SaveOperationType as D}from"../webdoc/interfaces.js";let W=class extends(d(F(g(v(w(y(f(R(j(h(S(o(r.ClonableMixin(u)))))))))))))){constructor(...e){super(...e),this._primaryRasters=[],this.legendEnabled=!0,this.isReference=null,this.listMode="show",this.sourceJSON=null,this.version=null,this.type="imagery-tile",this.operationalLayerType="ArcGISTiledImageServiceLayer",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this.source=void 0,this._debouncedSaveOperations=a((async(e,t,r)=>{const{save:s,saveAs:i}=await import("./save/imageryUtils.js");switch(e){case D.SAVE:return s(this,t);case D.SAVE_AS:return i(this,r,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Image Service"]},e).catch(n).then((()=>this._openRaster(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){const e=[b("Pixel Value"),x("Raw Pixel Value")],t=this.raster?.rasterInfo??this.serviceRasterInfo,r=t?.attributeTable;if(r){const t=P(r);e.push(...t)}const s=t?.dataType,i=t?.multidimensionalInfo;if(("vector-magdir"===s||"vector-uv"===s)&&null!=i){const t=i.variables[0].unit?.trim(),r=I(t),s=T();e.push(r,s)}if(i){const t=N(i);e.push(...t)}return e}createPopupTemplate(e){const{rasterFields:t}=this,r=e?.visibleFieldNames??new Set(t.map((({name:e})=>e)).filter((e=>e!==J.rawServicePixelValue))),s=B({fields:t,title:this.title},{...e,visibleFieldNames:r}),{rasterInfo:i}=this.raster;return s?.fieldInfos&&i&&L(s.fieldInfos,i),s}async generateRasterInfo(e,t){if(e=c(C,e),await this.load(),!e||"none"===e.functionName?.toLowerCase())return this.serviceRasterInfo;try{const{rasterInfo:r}=await this._openFunctionRaster(e,t);return r}catch(r){if(r instanceof s)throw r;throw new s("imagery-tile-layer","the given raster function is not supported")}}async save(e){return this._debouncedSaveOperations(D.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(D.SAVE_AS,t,e)}write(e,t){const r=this._primaryRasters[0]??this.raster;if(this.loaded?"RasterTileServer"===r.datasetFormat&&("Raster"===r.tileType||"Map"===r.tileType):this.url&&/\/ImageServer(\/|\/?$)/i.test(this.url))return super.write(e,t);if(t?.messages){const e=`${t.origin}/${t.layerContainerType||"operational-layers"}`;t.messages.push(new s("layer:unsupported",`Layers (${this.title}, ${this.id}) of type '${this.declaredClass}' are not supported in the context of '${e}'`,{layer:this}))}return null}async _openRaster(e){let t=!1;if(this.raster)await this._openFromRaster(this.raster,e),t=M(this.raster),!t&&this.rasterFunction&&(this._primaryRasters=[this.raster],await this._initializeWithFunctionRaster(this.rasterFunction));else{const{url:t,rasterFunction:r,source:i}=this;if(!t&&!i)throw new s("imagery-tile-layer:open","missing url or source parameter");i?await this._openFromSource(i,e):r?await this._openFromUrlWithRasterFunction(t,r,e):await this._openFromUrl(t,e)}const r=this.raster.rasterInfo;if(!r)throw new s("imagery-tile-layer:load","cannot load resources on "+this.url);if(this._set("serviceRasterInfo",t?r:this._primaryRasters[0].rasterInfo),this._set("spatialReference",r.spatialReference),this.sourceJSON=this.sourceJSON||this.raster.sourceJSON,null!=this.sourceJSON){const e="Map"===this.raster.tileType&&null!=this.sourceJSON.minLOD&&null!=this.sourceJSON.maxLOD?this.sourceJSON:{...this.sourceJSON,minScale:0,maxScale:0};this.read(e,{origin:"service"})}else this.read({tileInfo:this.serviceRasterInfo?.storageInfo.tileInfo.toJSON()},{origin:"service"});this.title||(this.title=this.raster.datasetName),"Map"===this.raster.tileType&&(this.popupEnabled=!1),this._configDefaultSettings(),this.addHandles(p((()=>this.customParameters),(e=>{this.raster&&(this.raster.ioConfig.customFetchParameters=e)})))}async _openFromRaster(e,t){e.rasterInfo||await e.open({signal:t}),this._primaryRasters=E(e),this.url||(this.url=this._primaryRasters[0].url)}async _openFromUrlWithRasterFunction(e,t,r){const i=[e];t&&$(t.toJSON(),i);const o=await Promise.all(i.map((e=>U.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:r})))),a=o.findIndex((e=>null==e));if(a>-1)throw new s("imagery-tile-layer:open",`cannot open raster: ${i[a]}`);return this._primaryRasters=o,this._initializeWithFunctionRaster(t)}async _openFromUrl(e,t){const r=await U.open({url:e,sourceJSON:this.sourceJSON,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==r)throw new s("imagery-tile-layer:open",`cannot open raster: ${e}`);this._primaryRasters=[r],this.raster=r}async _openFromSource(e,t){const r="the tiled imagery data source is not supported",i="coverage"===e.type?.toLowerCase()?"CovJSON":e.extent&&e.pixelBlock?"MEMORY":null;if(!i)throw new s("imagery-tile-layer:open",r);"MEMORY"===i&&(e={...e,pixelBlock:void 0,pixelBlocks:[e.pixelBlock]});const o=await U.open({url:"",source:e,datasetFormat:i,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters},signal:t});if(null==o)throw new s("imagery-tile-layer:open",r);this._primaryRasters=[o],this.rasterFunction?await this._initializeWithFunctionRaster(this.rasterFunction):this.raster=o}async _openFunctionRaster(e,t){const r={raster:this._primaryRasters[0]};this._primaryRasters.length>1&&this._primaryRasters.forEach((e=>r[e.url]=e));const s=V(e.functionDefinition?.toJSON()??e.toJSON(),r),i=new A({rasterFunction:s});return await i.open(t),i}async _initializeWithFunctionRaster(e,t){try{this.raster=await this._openFunctionRaster(e,t)}catch(r){r instanceof s&&i.getLogger(this).error("imagery-tile-layer:open",r.message),i.getLogger(this).warn("imagery-tile-layer:open","the raster function cannot be applied and is removed"),this._set("rasterFunction",null),this.raster=this._primaryRasters[0]}}};e([l({clonable:!1})],W.prototype,"_primaryRasters",void 0),e([l(_)],W.prototype,"legendEnabled",void 0),e([l({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],W.prototype,"isReference",void 0),e([l({type:["show","hide"]})],W.prototype,"listMode",void 0),e([l({json:{read:!0,write:!0}})],W.prototype,"blendMode",void 0),e([l({type:C,json:{name:"renderingRule",write:!0}})],W.prototype,"rasterFunction",void 0),e([l()],W.prototype,"sourceJSON",void 0),e([l({readOnly:!0,json:{origins:{service:{read:{source:"currentVersion"}}}}})],W.prototype,"version",void 0),e([l({readOnly:!0,json:{read:!1}})],W.prototype,"type",void 0),e([l({type:["ArcGISTiledImageServiceLayer"]})],W.prototype,"operationalLayerType",void 0),e([l({type:Boolean,value:!0,json:{read:{source:"disablePopup",reader:(e,t)=>!t.disablePopup},write:{target:"disablePopup",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}},writer(e,t,r){t[r]=!e}}}})],W.prototype,"popupEnabled",void 0),e([l({type:t,json:{read:{source:"popupInfo"},write:{target:"popupInfo",overridePolicy(){return{enabled:!this.loaded||"Raster"===this.raster.tileType}}}}})],W.prototype,"popupTemplate",void 0),e([l({readOnly:!0})],W.prototype,"defaultPopupTemplate",null),e([l({readOnly:!0,type:[O]})],W.prototype,"fields",void 0),e([l({readOnly:!0,type:[O]})],W.prototype,"rasterFields",null),e([l({constructOnly:!0})],W.prototype,"source",void 0),W=e([m("esri.layers.ImageryTileLayer")],W);const k=W;export{k as default};
@@ -2,4 +2,4 @@
2
2
  All material copyright ESRI, All Rights Reserved, unless otherwise specified.
3
3
  See https://js.arcgis.com/4.33/esri/copyright.txt for details.
4
4
  */
5
- import{_ as e}from"../chunks/tslib.es6.js";import t from"../PopupTemplate.js";import r from"../core/Clonable.js";import o from"../core/Error.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{debounce as i,throwIfAbortError as a}from"../core/promiseUtils.js";import{watch as n}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";import m from"./Layer.js";import{BlendLayer as d}from"./mixins/BlendLayer.js";import{CustomParametersMixin as c}from"./mixins/CustomParametersMixin.js";import{ImageryTileMixin as u}from"./mixins/ImageryTileMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as y}from"./mixins/PortalLayer.js";import{RefreshableLayer as h}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as v}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as g}from"./mixins/TemporalLayer.js";import{legendEnabled as j,popupEnabled as I}from"./support/commonProperties.js";import S from"./support/Field.js";import{getServicePixelValueField as w}from"./support/rasterFieldUtils.js";import b from"./support/rasterDatasets/WCSRaster.js";import{createPopupTemplate as x}from"../support/popupUtils.js";import{SaveOperationType as A}from"../webdoc/interfaces.js";const P=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let O=class extends(d(v(f(y(c(u(g(h(s(r.ClonableMixin(m))))))))))){constructor(...e){super(...e),this.coverageId=null,this.version=null,this.isReference=null,this.legendEnabled=!0,this.noData=0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=i((async(e,t,r)=>{const{save:o,saveAs:s}=await import("./save/imageryUtils.js");switch(e){case A.SAVE:return o(this,t);case A.SAVE_AS:return s(this,r,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(a).then((()=>this._openRaster(t)))),Promise.resolve(this)}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){return[w("Pixel Value")]}createPopupTemplate(e){return x({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(A.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(A.SAVE_AS,t,e)}async _openRaster(e){const t=new b({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new o("wcs-layer:load","cannot load resources on "+this.url);const{rasterInfo:r}=t;null==r.noDataValue&&(r.noDataValue=this.noData),this._set("serviceRasterInfo",r),this._set("spatialReference",r.spatialReference),null==this.title&&this.setAtOrigin("title",t.datasetName,"service"),null==this.coverageId&&this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");const{multidimensionalInfo:s}=r;if(null!=s){const e=s.variables[0].dimensions.find((({name:e})=>"StdTime"===e));if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let r=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(r)&&(r=r[1]);const o=P.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:r},timeZone:null,interval:o?{value:e.interval,unit:o}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles(n((()=>this.customParameters),(e=>this.raster.ioConfig.customFetchParameters=e)))}};e([l({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:{isRequired:!0,ignoreOrigin:!0}}})],O.prototype,"coverageId",void 0),e([l()],O.prototype,"coverageInfo",null),e([l({type:["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"],nonNullable:!0,json:{name:"wcsInfo.version",write:{isRequired:!0,ignoreOrigin:!0}}})],O.prototype,"version",void 0),e([l({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],O.prototype,"isReference",void 0),e([l({json:{read:!0,write:!0}})],O.prototype,"blendMode",void 0),e([l(j)],O.prototype,"legendEnabled",void 0),e([l({type:["show","hide"]})],O.prototype,"listMode",void 0),e([l()],O.prototype,"noData",void 0),e([l({type:["WCS"]})],O.prototype,"operationalLayerType",void 0),e([l()],O.prototype,"raster",void 0),e([l({readOnly:!0})],O.prototype,"type",void 0),e([l(I)],O.prototype,"popupEnabled",void 0),e([l({type:t,json:{name:"popupInfo",write:!0}})],O.prototype,"popupTemplate",void 0),e([l({readOnly:!0})],O.prototype,"defaultPopupTemplate",null),e([l({readOnly:!0,type:[S]})],O.prototype,"fields",void 0),e([l({readOnly:!0,type:[S]})],O.prototype,"rasterFields",null),O=e([p("esri.layers.WCSLayer")],O);const C=O;export{C as default};
5
+ import{_ as e}from"../chunks/tslib.es6.js";import t from"../PopupTemplate.js";import r from"../core/Clonable.js";import o from"../core/Error.js";import{MultiOriginJSONMixin as s}from"../core/MultiOriginJSONSupport.js";import{debounce as i,throwIfAbortError as a}from"../core/promiseUtils.js";import{watch as n}from"../core/reactiveUtils.js";import{property as l}from"../core/accessorSupport/decorators/property.js";import"../core/has.js";import"../core/Logger.js";import"../core/RandomLCG.js";import{subclass as p}from"../core/accessorSupport/decorators/subclass.js";import m from"./Layer.js";import{BlendLayer as d}from"./mixins/BlendLayer.js";import{CustomParametersMixin as c}from"./mixins/CustomParametersMixin.js";import{ImageryTileMixin as u}from"./mixins/ImageryTileMixin.js";import{OperationalLayer as f}from"./mixins/OperationalLayer.js";import{PortalLayer as y}from"./mixins/PortalLayer.js";import{RasterJobHandlerMixin as h}from"./mixins/RasterJobHandlerMixin.js";import{RefreshableLayer as v}from"./mixins/RefreshableLayer.js";import{ScaleRangeLayer as g}from"./mixins/ScaleRangeLayer.js";import{TemporalLayer as j}from"./mixins/TemporalLayer.js";import{legendEnabled as I,popupEnabled as S}from"./support/commonProperties.js";import w from"./support/Field.js";import{getServicePixelValueField as b}from"./support/rasterFieldUtils.js";import x from"./support/rasterDatasets/WCSRaster.js";import{createPopupTemplate as A}from"../support/popupUtils.js";import{SaveOperationType as P}from"../webdoc/interfaces.js";const O=new Set(["milliseconds","seconds","minutes","hours","days","weeks","months","years","decades","centuries"]);let C=class extends(d(g(f(y(c(u(h(j(v(s(r.ClonableMixin(m)))))))))))){constructor(...e){super(...e),this.coverageId=null,this.version=null,this.isReference=null,this.legendEnabled=!0,this.noData=0,this.operationalLayerType="WCS",this.type="wcs",this.popupEnabled=!0,this.popupTemplate=null,this.fields=null,this._debouncedSaveOperations=i((async(e,t,r)=>{const{save:o,saveAs:s}=await import("./save/imageryUtils.js");switch(e){case P.SAVE:return o(this,t);case P.SAVE_AS:return s(this,r,t)}}))}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){const t=null!=e?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["WCS"]},e).catch(a).then((()=>this._openRaster(t)))),Promise.resolve(this)}get coverageInfo(){return this.raster.coverageInfo}get defaultPopupTemplate(){return this.createPopupTemplate()}get rasterFields(){return[b("Pixel Value")]}createPopupTemplate(e){return A({fields:this.rasterFields,title:this.title},e)}async save(e){return this._debouncedSaveOperations(P.SAVE,e)}async saveAs(e,t){return this._debouncedSaveOperations(P.SAVE_AS,t,e)}async _openRaster(e){const t=new x({url:this.url,version:this.version,coverageId:this.coverageId,ioConfig:{sampling:"closest",...this.ioConfig,customFetchParameters:this.customParameters}});if(await t.open({signal:e}),!t.rasterInfo)throw t.destroy(),new o("wcs-layer:load","cannot load resources on "+this.url);const{rasterInfo:r}=t;null==r.noDataValue&&(r.noDataValue=this.noData),this._set("serviceRasterInfo",r),this._set("spatialReference",r.spatialReference),null==this.title&&this.setAtOrigin("title",t.datasetName,"service"),null==this.coverageId&&this.setAtOrigin("coverageId",t.coverageInfo.id,"service"),null==this.version&&t.version&&this.setAtOrigin("version",t.version,"service"),this.setAtOrigin("tileInfo",t.rasterInfo.storageInfo.tileInfo,"service");const{multidimensionalInfo:s}=r;if(null!=s){const e=s.variables[0].dimensions.find((({name:e})=>"StdTime"===e));if(e){let t=e.extent?.[0]??e.values[0];Array.isArray(t)&&(t=t[0]);let r=e.extent?.[1]??e.values[e.values.length-1];Array.isArray(r)&&(r=r[1]);const o=O.has(e.intervalUnit?.toLowerCase())?e.intervalUnit?.toLowerCase():null;this.set("timeInfo",{startField:"StdTime",fullTimeExtent:{start:t,end:r},timeZone:null,interval:o?{value:e.interval,unit:o}:null})}}this.raster=t,this._configDefaultSettings(),this.addHandles(n((()=>this.customParameters),(e=>this.raster.ioConfig.customFetchParameters=e)))}};e([l({type:String,nonNullable:!0,json:{name:"wcsInfo.coverageId",write:{isRequired:!0,ignoreOrigin:!0}}})],C.prototype,"coverageId",void 0),e([l()],C.prototype,"coverageInfo",null),e([l({type:["1.0.0","1.1.0","1.1.1","1.1.2","2.0.1"],nonNullable:!0,json:{name:"wcsInfo.version",write:{isRequired:!0,ignoreOrigin:!0}}})],C.prototype,"version",void 0),e([l({type:Boolean,json:{read:!1,write:{enabled:!0,overridePolicy:()=>({enabled:!1})}}})],C.prototype,"isReference",void 0),e([l({json:{read:!0,write:!0}})],C.prototype,"blendMode",void 0),e([l(I)],C.prototype,"legendEnabled",void 0),e([l({type:["show","hide"]})],C.prototype,"listMode",void 0),e([l()],C.prototype,"noData",void 0),e([l({type:["WCS"]})],C.prototype,"operationalLayerType",void 0),e([l()],C.prototype,"raster",void 0),e([l({readOnly:!0})],C.prototype,"type",void 0),e([l(S)],C.prototype,"popupEnabled",void 0),e([l({type:t,json:{name:"popupInfo",write:!0}})],C.prototype,"popupTemplate",void 0),e([l({readOnly:!0})],C.prototype,"defaultPopupTemplate",null),e([l({readOnly:!0,type:[w]})],C.prototype,"fields",void 0),e([l({readOnly:!0,type:[w]})],C.prototype,"rasterFields",null),C=e([p("esri.layers.WCSLayer")],C);const R=C;export{R as default};