@vertigis/arcgis-extensions 51.13.2 → 51.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/data/FeatureSettings.d.ts +1 -0
  2. package/data/FeatureSettings.js +1 -1
  3. package/data/_TableExtension.d.ts +1 -0
  4. package/data/_TableExtension.js +1 -1
  5. package/docs/html/assets/search.js +1 -1
  6. package/docs/html/classes/data_FeatureSettings.FeatureSettings.html +10 -6
  7. package/docs/html/classes/data_Schema.Schema.html +10 -6
  8. package/docs/html/classes/data_TaskSettings.TaskSettings.html +10 -6
  9. package/docs/html/classes/data__TableExtension.TableFeatureSettings.html +10 -6
  10. package/docs/html/classes/data__TableExtension.TableSchema.html +10 -6
  11. package/docs/html/classes/mapping_BuildingComponentSublayerExtension.BuildingComponentSublayerSchema.html +10 -6
  12. package/docs/html/classes/mapping_BuildingGroupSublayerExtension.BuildingGroupSublayerSchema.html +10 -6
  13. package/docs/html/classes/mapping_BuildingSceneLayerExtension.BuildingSceneLayerReadOnlySchema.html +10 -6
  14. package/docs/html/classes/mapping_BuildingSublayerExtension.BuildingSublayerFeatureSettings.html +7 -6
  15. package/docs/html/classes/mapping_BuildingSublayerExtension.BuildingSublayerSchema.html +10 -6
  16. package/docs/html/classes/mapping_FeatureLayerExtensionBase.FeatureLayerReadOnlySchema.html +10 -6
  17. package/docs/html/classes/mapping_FeatureLayerExtensionBase.FeatureLayerSchema.html +10 -6
  18. package/docs/html/classes/mapping_MapConstraints.MapConstraints.html +10 -6
  19. package/docs/html/classes/mapping_MapNotesSublayerExtension.MapNotesSublayerExtensionSchema.html +10 -6
  20. package/docs/html/classes/mapping_RouteLayerExtension.RouteLayerExtensionSchema.html +10 -6
  21. package/docs/html/classes/mapping_StreamLayerExtension.StreamLayerSchema.html +10 -6
  22. package/docs/html/classes/mapping_SubtypeGroupLayerExtension.SubtypeGroupLayerSchema.html +10 -6
  23. package/docs/html/classes/mapping_SubtypeSublayerExtension.SubtypeSublayerSchema.html +10 -6
  24. package/docs/html/classes/mapping__LayerExtension.LayerExtensionReadOnlySchema.html +10 -6
  25. package/docs/html/classes/mapping__LayerExtension.LayerExtensionSchema.html +10 -6
  26. package/docs/html/classes/mapping__SublayerExtension.SublayerSchema.html +10 -6
  27. package/docs/html/classes/support_FormatSettings.FormatSettings.html +10 -6
  28. package/docs/html/classes/support_Settings.Settings.html +10 -6
  29. package/docs/html/variables/version.version.html +1 -1
  30. package/mapping/_LayerExtension.d.ts +1 -0
  31. package/mapping/_LayerExtension.js +1 -1
  32. package/mapping/support/PopupTemplateFeatureSettings.js +1 -1
  33. package/package.json +1 -1
  34. package/support/FormatSettings.d.ts +1 -0
  35. package/support/FormatSettings.js +1 -1
  36. package/support/Settings.d.ts +7 -0
  37. package/support/Settings.js +1 -1
  38. package/version.d.ts +1 -1
  39. package/version.js +1 -1
@@ -1 +1 @@
1
- import{__decorate as t}from"tslib";import{checkArg as e}from"../utilities/checkArg.js";import{settings as i}from"../utilities/format/FormatSettings.js";import{isValidTimeZone as r,ERR_TIME_ZONE_INVALID as a}from"../utilities/format/date.js";import{DateFormat as s,NumberFormat as o,TimeFormat as n}from"../utilities/format/formats.js";import{serializable as m}from"./Serializable.js";import{Settings as l}from"./Settings.js";let g=class extends l{get dateFormat(){return this._getSetting("dateFormat",i.dateFormat||s.DEFAULT)}set dateFormat(t){this._setSetting("dateFormat",t)}get timeFormat(){return this._getSetting("timeFormat",i.timeFormat||n.DEFAULT)}set timeFormat(t){this._setSetting("timeFormat",t)}get numberFormat(){return this._getSetting("numberFormat",i.numberFormat||o.DEFAULT)}set numberFormat(t){this._setSetting("numberFormat",t)}get locale(){return this._getSetting("locale")}set locale(t){this._setSetting("locale",t)}get currency(){return this._getSetting("currency",i.currency)}set currency(t){this._setSetting("currency",t)}get fractionalDigits(){return this._getSetting("fractionalDigits",i.fractionalDigits)}set fractionalDigits(t){this._setSetting("fractionalDigits",t)}get timeZone(){return this._getSetting("timeZone")}set timeZone(t){e("timeZone",t).satisfies(r,a(t)),this._setSetting("timeZone",t)}get useFieldInfo(){return this._getSetting("useFieldInfo",!0)}set useFieldInfo(t){this._setSetting("useFieldInfo",t)}_getSerializableProperties(){return{dateFormat:{serializeModes:["initial"],default:i.dateFormat||s.DEFAULT},timeFormat:{serializeModes:["initial"],default:i.timeFormat||n.DEFAULT},numberFormat:{serializeModes:["initial"],default:i.numberFormat||o.DEFAULT},locale:"initial",currency:{serializeModes:["initial"],default:i.currency},fractionalDigits:{serializeModes:["initial"],default:i.fractionalDigits},timeZone:{serializeModes:["initial"],deserialize:t=>{t&&(this.timeZone=t)}},useFieldInfo:{serializeModes:["initial"],default:!0}}}};g=t([m],g);export{g as FormatSettings};
1
+ import{__decorate as t}from"tslib";import{checkArg as e}from"../utilities/checkArg.js";import{settings as i}from"../utilities/format/FormatSettings.js";import{isValidTimeZone as r,ERR_TIME_ZONE_INVALID as s}from"../utilities/format/date.js";import{DateFormat as a,NumberFormat as n,TimeFormat as o}from"../utilities/format/formats.js";import{serializable as m}from"./Serializable.js";import{Settings as l}from"./Settings.js";let g=class extends l{get dateFormat(){return this._getSetting("dateFormat",i.dateFormat||a.DEFAULT)}set dateFormat(t){this._setSetting("dateFormat",t)}get timeFormat(){return this._getSetting("timeFormat",i.timeFormat||o.DEFAULT)}set timeFormat(t){this._setSetting("timeFormat",t)}get numberFormat(){return this._getSetting("numberFormat",i.numberFormat||n.DEFAULT)}set numberFormat(t){this._setSetting("numberFormat",t)}get locale(){return this._getSetting("locale")}set locale(t){this._setSetting("locale",t)}get currency(){return this._getSetting("currency",i.currency)}set currency(t){this._setSetting("currency",t)}get fractionalDigits(){return this._getSetting("fractionalDigits",i.fractionalDigits)}set fractionalDigits(t){this._setSetting("fractionalDigits",t)}get timeZone(){return this._getSetting("timeZone")}set timeZone(t){e("timeZone",t).satisfies(r,s(t)),this._setSetting("timeZone",t)}get useFieldInfo(){return this._getSetting("useFieldInfo",!0)}set useFieldInfo(t){this._setSetting("useFieldInfo",t)}_hasSettingIncludingAncestor(t){return!!["useFieldInfo","dateFormat","timeFormat","numberFormat"].some((e=>e===t))||super._hasSettingIncludingAncestor(t)}_getSerializableProperties(){return{dateFormat:{serializeModes:["initial"],default:i.dateFormat||a.DEFAULT},timeFormat:{serializeModes:["initial"],default:i.timeFormat||o.DEFAULT},numberFormat:{serializeModes:["initial"],default:i.numberFormat||n.DEFAULT},locale:"initial",currency:{serializeModes:["initial"],default:i.currency},fractionalDigits:{serializeModes:["initial"],default:i.fractionalDigits},timeZone:{serializeModes:["initial"],deserialize:t=>{t&&(this.timeZone=t)}},useFieldInfo:{serializeModes:["initial"],default:!0}}}};g=t([m],g);export{g as FormatSettings};
@@ -44,6 +44,13 @@ export declare abstract class Settings<TProperties> extends Settings_base {
44
44
  isModified(setting: keyof this): boolean;
45
45
  toJSON(serializeMode?: SerializeMode): TProperties;
46
46
  getDefaults(): TProperties;
47
+ /**
48
+ * Determines whether the specified setting has been modified locally or by
49
+ * any parent of the current settings instance.
50
+ *
51
+ * @param setting The setting to check.
52
+ */
53
+ protected _hasSettingIncludingAncestor<K extends keyof this>(setting: K): boolean;
47
54
  /**
48
55
  * Gets the value for a setting.
49
56
  *
@@ -1 +1 @@
1
- import e from"@arcgis/core/core/Collection";import{CopyOnWriteCollection as t}from"../utilities/CopyOnWriteCollection.js";import{every as i}from"../utilities/iterable.js";import{objectKeys as s}from"../utilities/object.js";import{isDefault as r,SerializableBase as n,shouldExcludeDefaults as o}from"./Serializable.js";import{notifyChange as a,observable as h}from"./observableUtils.js";export class Settings extends(h(n)){_parent;_parentHandle;_overrides;get parent(){return this._parent}set parent(e){this._setParent(e)}reset(e){if(this._overrides)if(e)this._overrides.delete(e),this._notifySettingChange(e);else{const e=[...this._overrides.keys()];this._overrides.clear();for(const t of e)this._notifySettingChange(t)}}isModified(e){if(!this._overrides)return!1;if(e){if(!this._overrides.has(e))return!1;const i=this._overrides.get(e);return i instanceof t?i.isModified:!(i instanceof Settings)||i.isModified()}return!i(this._overrides.values(),(e=>e instanceof t&&!e.isModified||e instanceof Settings&&!e.isModified()))}toJSON(e="all"){if(!this._overrides?.size&&"initial-with-defaults"!==e)return o(e)?void 0:{};const t=super.toJSON(e);if(t&&"initial-with-defaults"!==e)for(const e of s(t))this.isModified(e)||delete t[e];return o(e)&&r(t)?void 0:t}getDefaults(){return{}}_getSetting(e,t){return this._overrides?.has(e)?this._overrides.get(e):this.parent?this.parent[e]:t}_getCollectionSetting(i){if(!this._overrides?.has(i)){const s=this.parent?this.parent[i]:new e;null==this._overrides&&(this._overrides=new Map),this._overrides.set(i,new t(s))}return this._overrides.get(i)}_getNestedSettings(e,t){if(!this._overrides?.has(e)){const i=t();this.parent&&(i.parent=this.parent[e]),null==this._overrides&&(this._overrides=new Map),this._overrides.set(e,i)}return this._overrides.get(e)}_setSetting(e,t){null==this._overrides&&(this._overrides=new Map),this._overrides.set(e,t),this._notifySettingChange(e)}_setParent(i){if(this._parent!==i&&(null!=this._parent||null!=i)){if(null!=this._parentHandle&&(this._parentHandle.remove(),this._parentHandle=void 0),this._parent=i,null!=this._parent){const e=new WeakRef(this),t=this._parent.on("property-change",(i=>{const s=e.deref();null!=s?s._notifySettingChange(i.property):t.remove()}));this._parentHandle=t}if(this._overrides)for(const[s,r]of this._overrides)r instanceof t?r.originalCollection=i?i[s]:new e:r instanceof Settings&&(r.parent=i?i[s]:void 0);a(this)}}_notifySettingChange(e){this.emit("property-change",{property:e}),a(this,e)}}
1
+ import e from"@arcgis/core/core/Collection";import{CopyOnWriteCollection as t}from"../utilities/CopyOnWriteCollection.js";import{every as i}from"../utilities/iterable.js";import{objectKeys as s}from"../utilities/object.js";import{isDefault as r,SerializableBase as n,shouldExcludeDefaults as o}from"./Serializable.js";import{notifyChange as h,observable as a}from"./observableUtils.js";export class Settings extends(a(n)){_parent;_parentHandle;_overrides;get parent(){return this._parent}set parent(e){this._setParent(e)}reset(e){if(this._overrides)if(e)this._overrides.delete(e),this._notifySettingChange(e);else{const e=[...this._overrides.keys()];this._overrides.clear();for(const t of e)this._notifySettingChange(t)}}isModified(e){if(!this._overrides)return!1;if(e){if(!this._overrides.has(e))return!1;const i=this._overrides.get(e);return i instanceof t?i.isModified:!(i instanceof Settings)||i.isModified()}return!i(this._overrides.values(),(e=>e instanceof t&&!e.isModified||e instanceof Settings&&!e.isModified()))}toJSON(e="all"){if(!this._overrides?.size&&"initial-with-defaults"!==e)return o(e)?void 0:{};const t=super.toJSON(e);if(t&&"initial-with-defaults"!==e)for(const e of s(t))this.isModified(e)||delete t[e];return o(e)&&r(t)?void 0:t}getDefaults(){return{}}_hasSettingIncludingAncestor(e){return!!this._overrides?.has(e)||!!this.parent&&this.parent._hasSettingIncludingAncestor(e)}_getSetting(e,t){return this._overrides?.has(e)?this._overrides.get(e):this.parent&&this._hasSettingIncludingAncestor(e)?this.parent[e]:t}_getCollectionSetting(i){if(!this._overrides?.has(i)){const s=this.parent?this.parent[i]:new e;null==this._overrides&&(this._overrides=new Map),this._overrides.set(i,new t(s))}return this._overrides.get(i)}_getNestedSettings(e,t){if(!this._overrides?.has(e)){const i=t();this.parent&&(i.parent=this.parent[e]),null==this._overrides&&(this._overrides=new Map),this._overrides.set(e,i)}return this._overrides.get(e)}_setSetting(e,t){null==this._overrides&&(this._overrides=new Map),this._overrides.set(e,t),this._notifySettingChange(e)}_setParent(i){if(this._parent!==i&&(null!=this._parent||null!=i)){if(null!=this._parentHandle&&(this._parentHandle.remove(),this._parentHandle=void 0),this._parent=i,null!=this._parent){const e=new WeakRef(this),t=this._parent.on("property-change",(i=>{const s=e.deref();null!=s?s._notifySettingChange(i.property):t.remove()}));this._parentHandle=t}if(this._overrides)for(const[s,r]of this._overrides)r instanceof t?r.originalCollection=i?i[s]:new e:r instanceof Settings&&(r.parent=i?i[s]:void 0);h(this)}}_notifySettingChange(e){this.emit("property-change",{property:e}),h(this,e)}}
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 = "51.13.2";
4
+ export declare const version = "51.14.0";
package/version.js CHANGED
@@ -1 +1 @@
1
- export const version="51.13.2";
1
+ export const version="51.14.0";