@vertigis/arcgis-extensions 42.0.0 → 42.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,6 @@ import type { Cardinality, Relationship, RelationshipProperties, RelationshipTyp
9
9
  * A base class for implementations of {@link data/_Relationship!Relationship}.
10
10
  */
11
11
  export declare abstract class RelationshipBase<TProperties extends RelationshipProperties = RelationshipProperties> extends EntityBase<TProperties> implements Relationship {
12
- #private;
13
12
  /**
14
13
  * @inheritDoc
15
14
  */
@@ -38,6 +37,7 @@ export declare abstract class RelationshipBase<TProperties extends RelationshipP
38
37
  * @inheritDoc
39
38
  */
40
39
  protected _source: FeatureSource;
40
+ private readonly _getRelatedFeaturesPromises;
41
41
  /**
42
42
  * @inheritDoc
43
43
  */
@@ -1 +1 @@
1
- var e;import{__classPrivateFieldGet as t}from"tslib";import{EntityBase as r}from"../Entity.js";import{InvalidOperationError as s}from"../InvalidOperationError.js";import{isFeatureSet as i,ItemType as a}from"../ItemType.js";import{cancelify as o}from"../support/Cancellable.js";import{checkArg as n}from"../utilities/checkArg.js";const l="Cannot get related features without feature source.";export class RelationshipBase extends r{constructor(){super(...arguments),e.set(this,new WeakMap),this._itemType=a.RELATIONSHIP}get source(){return this._source}async getRelatedFeatures(r,i){if(n("feature",r).isNotMissing(),!this.source)throw new s(l);t(this,e,"f").has(r)||t(this,e,"f").set(r,(async()=>{try{return await this._getRelatedFeatures(r,i)}finally{t(this,e,"f").delete(r)}})());const a=t(this,e,"f").get(r);return o(a,i?.cancelToken)}async getAllRelatedFeatures(r,a){if(n("feature",r).isNotMissing(),!this.source)throw new s(l);let u;u=Array.isArray(r)?r:i(r)?[...r]:await r.toArray();const c=o(this._getAllRelatedFeatures(u,a),a?.cancelToken);for(const r of u)t(this,e,"f").has(r)||t(this,e,"f").set(r,(async()=>{try{return(await c).get(r)}finally{t(this,e,"f").delete(r)}})());return c}_setSource(e){this._source=e}_getSerializableProperties(){return{...super._getSerializableProperties(),title:"initial"}}}e=new WeakMap;
1
+ import{EntityBase as e}from"../Entity.js";import{InvalidOperationError as t}from"../InvalidOperationError.js";import{isFeatureSet as s,ItemType as r}from"../ItemType.js";import{cancelify as a}from"../support/Cancellable.js";import{checkArg as i}from"../utilities/checkArg.js";const o="Cannot get related features without feature source.";export class RelationshipBase extends e{constructor(){super(...arguments),this._itemType=r.RELATIONSHIP,this._getRelatedFeaturesPromises=new WeakMap}get source(){return this._source}async getRelatedFeatures(e,s){if(i("feature",e).isNotMissing(),!this.source)throw new t(o);this._getRelatedFeaturesPromises.has(e)||this._getRelatedFeaturesPromises.set(e,(async()=>{try{return await this._getRelatedFeatures(e,s)}finally{this._getRelatedFeaturesPromises.delete(e)}})());const r=this._getRelatedFeaturesPromises.get(e);return a(r,s?.cancelToken)}async getAllRelatedFeatures(e,r){if(i("feature",e).isNotMissing(),!this.source)throw new t(o);let l;l=Array.isArray(e)?e:s(e)?[...e]:await e.toArray();const n=a(this._getAllRelatedFeatures(l,r),r?.cancelToken);for(const e of l)this._getRelatedFeaturesPromises.has(e)||this._getRelatedFeaturesPromises.set(e,(async()=>{try{return(await n).get(e)}finally{this._getRelatedFeaturesPromises.delete(e)}})());return n}_setSource(e){this._source=e}_getSerializableProperties(){return{...super._getSerializableProperties(),title:"initial"}}}
@@ -16,7 +16,7 @@
16
16
  <li><a href="../modules/version.html">version</a></li>
17
17
  <li><a href="version.version.html">version</a></li></ul>
18
18
  <h1>Variable version<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
19
- <div class="tsd-signature"><span class="tsd-kind-variable">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;42.0.0&quot;</span><span class="tsd-signature-symbol"> = &quot;42.0.0&quot;</span></div>
19
+ <div class="tsd-signature"><span class="tsd-kind-variable">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;42.0.2&quot;</span><span class="tsd-signature-symbol"> = &quot;42.0.2&quot;</span></div>
20
20
  <div class="tsd-comment tsd-typography"><p>The current version of the Geocortex ArcGIS Extensions API.</p>
21
21
  </div></div>
22
22
  <div class="col-sidebar">
@@ -1 +1 @@
1
- import{ArgumentError as e}from"../../ArgumentError.js";import{isBuildingComponentSublayer as r,isBuildingGroupSublayer as n,isKMLSublayer as t,isMapImageSublayer as i,isMapNotesSublayer as o,isSubtypeSublayer as s,isTileLayer as u,isWMSSublayer as a}from"../../utilities/_layers.js";import{checkArg as l}from"../../utilities/checkArg.js";import{BuildingComponentSublayerExtension as y}from"../BuildingComponentSublayerExtension.js";import{BuildingGroupSublayerExtension as b}from"../BuildingGroupSublayerExtension.js";import{KMLSublayerExtension as p}from"../KMLSublayerExtension.js";import{MapImageSublayerExtension as m}from"../MapImageSublayerExtension.js";import{MapNotesSublayerExtension as c}from"../MapNotesSublayerExtension.js";import{SubtypeSublayerExtension as S}from"../SubtypeSublayerExtension.js";import{TileSublayerExtension as f}from"../TileSublayerExtension.js";import{WMSSublayerExtension as w}from"../WMSSublayerExtension.js";export class DefaultSublayerExtensionFactory{constructor(){}create(x){l("properties",x).isNotMissing(),l("properties.sublayer",x.sublayer).isNotMissing();const E=x.sublayer;if(i(E))return u(E.layer)?new f(x):new m(x);if(o(E))return new c(x);if(t(E))return new p(x);if(a(E))return new w(x);if(r(E))return new y(x);if(n(E))return new b(x);if(s(E))return new S(x);if(x.sublayer.$sublayerType)switch(x.sublayer.$sublayerType){case"ArcGISMapServiceSublayer":return new m(x);case"ArcGISTiledSublayer":return new f(x);case"WMSSublayer":return new w(x);case"KMLSublayer":return new p(x);case"BuildingComponentSublayer":return new y(x);case"BuildingGroupSublayer":return new b(x);case"SubtypeSublayer":return new S(x);case"MapNotesSublayer":return new c(x)}throw new e("properties.sublayer","Unable to determine correct type of sublayer extension to create.")}}DefaultSublayerExtensionFactory.instance=new DefaultSublayerExtensionFactory;
1
+ import{ArgumentError as e}from"../../ArgumentError.js";import{isBuildingComponentSublayer as r,isBuildingGroupSublayer as n,isKMLSublayer as t,isMapImageSublayer as s,isMapNotesSublayer as i,isSubtypeSublayer as o,isTileLayer as u,isWMSSublayer as a}from"../../utilities/_layers.js";import{checkArg as l}from"../../utilities/checkArg.js";import{BuildingComponentSublayerExtension as y}from"../BuildingComponentSublayerExtension.js";import{BuildingGroupSublayerExtension as b}from"../BuildingGroupSublayerExtension.js";import{KMLSublayerExtension as p}from"../KMLSublayerExtension.js";import{MapImageSublayerExtension as S}from"../MapImageSublayerExtension.js";import{MapNotesSublayerExtension as c}from"../MapNotesSublayerExtension.js";import{SubtypeSublayerExtension as m}from"../SubtypeSublayerExtension.js";import{TileSublayerExtension as f}from"../TileSublayerExtension.js";import{WMSSublayerExtension as w}from"../WMSSublayerExtension.js";export class DefaultSublayerExtensionFactory{constructor(){}create(x){l("properties",x).isNotMissing(),l("properties.sublayer",x.sublayer).isNotMissing();const E=x.sublayer;if(s(E))return u(E.layer)?new f(x):new S(x);if(i(E))return new c(x);if(t(E))return new p(x);if(a(E))return new w(x);if(r(E))return new y(x);if(n(E))return new b(x);if(o(E))return new m(x);if(x.sublayer.$sublayerType)switch(x.sublayer.$sublayerType){case"ArcGISMapServiceSublayer":return new S(x);case"ArcGISTiledSublayer":return new f(x);case"WMSSublayer":return new w(x);case"KMLSublayer":return new p(x);case"BuildingComponentSublayer":return new y(x);case"BuildingGroupSublayer":return new b(x);case"SubtypeSublayer":return new m(x);case"MapNotesSublayer":return new c(x);case"WMTSSublayer":return{}}throw new e("properties.sublayer","Unable to determine correct type of sublayer extension to create.")}}DefaultSublayerExtensionFactory.instance=new DefaultSublayerExtensionFactory;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vertigis/arcgis-extensions",
3
3
  "license": "SEE LICENSE IN LICENSE",
4
- "version": "42.0.0",
4
+ "version": "42.0.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://dev.azure.com/vertigis/Studio/_git/arcgis-extensions-ts"
package/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * The current version of the Geocortex ArcGIS Extensions API.
3
3
  */
4
- export declare const version = "42.0.0";
4
+ export declare const version = "42.0.2";
package/version.js CHANGED
@@ -1 +1 @@
1
- export const version="42.0.0";
1
+ export const version="42.0.2";