@vertigis/arcgis-extensions 40.6.0 → 40.6.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.
@@ -1 +1 @@
1
- import{__decorate as e}from"tslib";import{serializable as t}from"../support/Serializable.js";import{Settings as i}from"../support/Settings.js";let n=class extends i{get enableExport(){return this._getSetting("enableExport",!0)}set enableExport(e){this._setSetting("enableExport",e)}get enableIdentify(){return this._getSetting("enableIdentify",!0)}set enableIdentify(e){this._setSetting("enableIdentify",e)}get enableQuery(){return this._getSetting("enableQuery",!0)}set enableQuery(e){this._setSetting("enableQuery",e)}get enableSearch(){return this._getSetting("enableSearch",!0)}set enableSearch(e){this._setSetting("enableSearch",e)}get enableAdd(){return this._getSetting("enableAdd",!0)}set enableAdd(e){this._setSetting("enableAdd",e)}get enableUpdate(){return this._getSetting("enableUpdate",!0)}set enableUpdate(e){this._setSetting("enableUpdate",e)}get enableDelete(){return this._getSetting("enableDelete",!0)}set enableDelete(e){this._setSetting("enableDelete",e)}get enableEditing(){return this._getSetting("enableEditing",!0)}set enableEditing(e){this._setSetting("enableEditing",e)}get studioSearchSubindexId(){return this._getSetting("studioSearchSubindexId","")}set studioSearchSubindexId(e){this._getSetting("studioSearchSubindexId",e)}_getSerializableProperties(){return{enableAdd:"initial",enableDelete:"initial",enableEditing:"initial",enableExport:"initial",enableIdentify:"initial",enableQuery:"initial",enableSearch:"initial",enableUpdate:"initial",studioSearchSubindexId:"initial"}}};n=e([t],n);export{n as TaskSettings};
1
+ import{__decorate as e}from"tslib";import{serializable as t}from"../support/Serializable.js";import{Settings as i}from"../support/Settings.js";let n=class extends i{get enableExport(){return this._getSetting("enableExport",!0)}set enableExport(e){this._setSetting("enableExport",e)}get enableIdentify(){return this._getSetting("enableIdentify",!0)}set enableIdentify(e){this._setSetting("enableIdentify",e)}get enableQuery(){return this._getSetting("enableQuery",!0)}set enableQuery(e){this._setSetting("enableQuery",e)}get enableSearch(){return this._getSetting("enableSearch",!0)}set enableSearch(e){this._setSetting("enableSearch",e)}get enableAdd(){return this._getSetting("enableAdd",!0)}set enableAdd(e){this._setSetting("enableAdd",e)}get enableUpdate(){return this._getSetting("enableUpdate",!0)}set enableUpdate(e){this._setSetting("enableUpdate",e)}get enableDelete(){return this._getSetting("enableDelete",!0)}set enableDelete(e){this._setSetting("enableDelete",e)}get enableEditing(){return this._getSetting("enableEditing",!0)}set enableEditing(e){this._setSetting("enableEditing",e)}get studioSearchSubindexId(){return this._getSetting("studioSearchSubindexId","")}set studioSearchSubindexId(e){this._setSetting("studioSearchSubindexId",e)}_getSerializableProperties(){return{enableAdd:"initial",enableDelete:"initial",enableEditing:"initial",enableExport:"initial",enableIdentify:"initial",enableQuery:"initial",enableSearch:"initial",enableUpdate:"initial",studioSearchSubindexId:"initial"}}};n=e([t],n);export{n as TaskSettings};
@@ -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;40.6.0&quot;</span><span class="tsd-signature-symbol"> = &quot;40.6.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;40.6.2&quot;</span><span class="tsd-signature-symbol"> = &quot;40.6.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">
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": "40.6.0",
4
+ "version": "40.6.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://dev.azure.com/vertigis/Studio/_git/arcgis-extensions-ts"
@@ -223,7 +223,7 @@ export declare class NumberFormatter extends SerializableBase<NumberFormatterPro
223
223
  * Converts a format string accepted by formatNumber() to formatter
224
224
  * function.
225
225
  *
226
- * @param locale The locale.
226
+ * @param inputLocales The locale.
227
227
  * @param format The format to use.
228
228
  * @param defaultOptions Options that control how values are formatted.
229
229
  */
@@ -231,8 +231,8 @@ export declare class NumberFormatter extends SerializableBase<NumberFormatterPro
231
231
  /**
232
232
  * Create a numeric parser function for a set of locales.
233
233
  *
234
- * @param locale An ordered array of locales to be used for parsing sorted
235
- * in order of precedence.
234
+ * @param inputLocales An ordered array of locales to be used for parsing
235
+ * sorted in order of precedence.
236
236
  */
237
237
  private _createNumberParser;
238
238
  }
@@ -1 +1 @@
1
- import{__decorate as t}from"tslib";import{getMatchingLocales as r,get as e}from"../locale.js";import{serializable as i,SerializableBase as a}from"../support/Serializable.js";import{settings as n}from"./FormatSettings.js";import{isNumericInvariant as o}from"./_number.js";import{checkArg as s}from"./checkArg.js";const m=[" ",String.fromCharCode(160),String.fromCharCode(8239)],N=/[%٪%٪]/g,c=/₩|¥|元|レイ|₾|₽|₼|₺|₹|₸|₴|₲|₱|₮|₭|€|₫|₪|₩|₧|₦|₤IT|₡|‎CN¥‎|​PTE|​|៛|የቻይና ዩዋን|ብር|ლ|฿|සිෆ්එ|රු\.|ಲೀ|રૂ\.|৳|लेई|रू|नेरू|ل\.ل\.‏|ل\.س\.‏|ریال|ر\.ي\.‏|ر\.ق\.‏|ر\.ع\.‏|ر\.س\.‏|ر\.إ\.|د\.م\.‏|د\.ل\.‏|د\.ك\.‏|د\.ع\.‏|د\.س\.‏|د\.ج\.‏|د\.ت\.‏|د\.ب\.‏|د\.إ\.‏|د\.أ\.‏|ج\.م\.‏|ج\.س\.|أ\.م\.‏|؋|ל״י|֏|щ\.д\.|сом|руб\.|руб|р\.|лв\.|крб\.|кр|ден|ТМТ|КМ|Δρχ|öS|Íkr|¥CN|¥|£MT|£LB|£L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|\$BN|\$BM|\$AU|\$AR|\$/g;export var NumberFormat;!function(t){t.NUMBER="n",t.FIXED_POINT="f",t.CURRENCY="c",t.ACCOUNTING="a",t.PERCENT="p",t.ROUND_TRIP="r",t.DEFAULT="f"}(NumberFormat||(NumberFormat={}));export function isNumeric(t,r="inv"){return r&&"inv"!==r&&"string"==typeof t?!isNaN(parse({locale:r},t)):o(t)}export function format(...t){return f.format(...t)}export function parse(...t){return f.parse(...t)}let u=class extends a{get defaultFormat(){return this._defaultFormat}set defaultFormat(t){this._defaultFormat=t}get defaultParseFormat(){return this._defaultParseFormat}set defaultParseFormat(t){this._defaultParseFormat=t}get currency(){return this._currency}set currency(t){this._currency=t}get fractionalDigits(){return this._fractionalDigits}set fractionalDigits(t){this._fractionalDigits=t}format(...t){let i,a;if(1===t.length?(i=t[0],a={}):arguments.length>=2&&(i=t[1],a="string"==typeof t[0]?{format:t[0]}:t[0],s("options",a).isNotMissing()),null==i||isNaN(i))return"";let n=a.format||this.defaultFormat||NumberFormat.DEFAULT;if(n===NumberFormat.ROUND_TRIP)return i.toString();const o=n.toLowerCase();if(o===NumberFormat.CURRENCY||o===NumberFormat.ACCOUNTING){const t=a.currency||this.currency||"USD";n=o,n+=a.fractionalDigits??this.fractionalDigits??"",n+=t?`$${t}`:""}else o!==NumberFormat.NUMBER&&o!==NumberFormat.FIXED_POINT&&o!==NumberFormat.PERCENT||(n=o,n+=a.fractionalDigits??this.fractionalDigits??"");a.locale=a.locale||this.locale;const m=r(a.locale||e()),N=`${m.join(";")}|${n}`;let c=F.get(N);if(!c){c=[];const t=n.split(";",3);1===t.length?(c[0]=this._createNumberFormatter(m,t[0]),c[1]=c[0],c[2]=c[0]):2===t.length?(c[0]=this._createNumberFormatter(m,t[0]),c[1]=this._createNumberFormatter(m,t[1]),c[2]=c[0]):3===t.length&&(c[0]=this._createNumberFormatter(m,t[0]),c[1]=this._createNumberFormatter(m,t[1]),c[2]=this._createNumberFormatter(m,t[2])),F.set(N,c)}return i>0?c[0](i):i<0?c[1](i):c[2](i)}parse(...t){let i,a;if(1===t.length?(i=t[0],a={}):t.length>=2&&(i=t[1],a="string"==typeof t[0]||Array.isArray(t[0])?{format:t[0]}:t[0]),"number"==typeof i)return i;if("boolean"==typeof i)return i?1:0;if(null==i)return NaN;let n=i.toString().trim();a.locale=a.locale||this.locale;const o=r(a.locale||e()),s=o.join(";");let m=D.get(s);m||(m=this._createNumberParser(o),D.set(s,m));let u,l=1;n?.startsWith("(")&&n.endsWith(")")&&(l=-1,n=n.slice(1,-1));let F=!1;const f="string"==typeof n&&!!n.match(N);f?u=n.replace(N,"").trim():a.format?.includes(NumberFormat.CURRENCY)&&(u=n.replace(c,"").replace(/\s/g,""),F=u!==n);let $=m(u??n);if(isNaN($)&&($=parseFloat(u??n)),isNaN($))return $;if(f&&($/=100),$*=l,F)return $;const S=a.format||this.defaultParseFormat,C=[].concat(S||[]),B=!C.length||C.some((t=>{if(t===NumberFormat.ROUND_TRIP)return $===parseFloat($.toString());const r=this._createNumberFormatter(o,t,{minimumFractionDigits:0,maximumFractionDigits:20});if(n===r($))return!0;const e=t.match(R);if(e&&""===e[2])for(let r=0;r<=20;r++){const e=this._createNumberFormatter(o,t,{minimumFractionDigits:r,maximumFractionDigits:r});if(n===e($))return!0}return!1}));return B?$:NaN}_getSerializableProperties(){return{defaultFormat:"initial",defaultParseFormat:"initial",fractionalDigits:"initial",currency:"initial",locale:"initial"}}_createNumberFormatter(t,r,e){const i=e||{};let a=r.match(R);if(a){const r=a[1].toLowerCase(),e=Math.min(20,parseInt(a[2]));let n=a[3];r===NumberFormat.CURRENCY||r===NumberFormat.ACCOUNTING?n=(n||this.currency||"USD").toUpperCase():(n="",void 0===i.minimumFractionDigits&&(i.minimumFractionDigits=0),void 0===i.maximumFractionDigits&&(i.maximumFractionDigits=Math.max(4,i.minimumFractionDigits))),r===NumberFormat.PERCENT?i.style="percent":r===NumberFormat.ACCOUNTING?i.currencySign="accounting":r===NumberFormat.FIXED_POINT&&(i.useGrouping=!1),isNaN(e)||(i.minimumFractionDigits=e,i.maximumFractionDigits=e);const o=n?new Intl.NumberFormat(t,{style:"currency",currency:n,...i}):new Intl.NumberFormat(t,i);return t=>o.format(t)}a=r.match(/[0#]+|\.|,|%|\\.|(["'])[^\1]+\1|[^0#.,\\'"]+/g);let n=!1,o="",s="",m="",N="";i.minimumFractionDigits=0,i.maximumFractionDigits=0,i.useGrouping=!1;for(let t of a)switch(t[0]){case".":n=!0;break;case",":i.useGrouping=!0;break;case"%":i.style="percent";break;case"0":case"#":n?s+=t:o+=t;break;default:t.startsWith('"')||t.startsWith("'")?t=t.slice(1,-1):t.startsWith("\\")&&(t=t.slice(1)),o||s?N+=t:m+=t}if(o){const t=o.indexOf("0");t>=0&&(i.minimumIntegerDigits=o.length-t)}if(s){const t=s.lastIndexOf("0");i.minimumFractionDigits=t>=0?t+1:0,i.maximumFractionDigits=Math.min(20,s.length)}if(o||s){const r=new Intl.NumberFormat(t,i);return t=>`${m}${r.format(t)}${N}`}return()=>m+N}_createNumberParser(t){const r=new Intl.NumberFormat(t),e=r.formatToParts(12345.6),i=[...new Intl.NumberFormat(t,{useGrouping:!1}).format(9876543210)].reverse(),a=new Map(i.map(((t,r)=>[t,r]))),n=t=>a.get(t).toString();let o=e.find((t=>"group"===t.type)).value;m.some((t=>t===o))&&(o=`${m.join("|")}`);const s=new RegExp(`[${o}]`,"g"),N=new RegExp(`[${e.find((t=>"decimal"===t.type)).value}]`),c=new RegExp(`[${i.join("")}]`,"g"),u=r.format(-1/0),l=r.format(1/0);return t=>{if(t===l)return Number.POSITIVE_INFINITY;if(t===u)return Number.NEGATIVE_INFINITY;const r=t.trim().replace(s,"").replace(N,".").replace(c,n);return r?+r:NaN}}};u=t([i],u);export{u as NumberFormatter};let l=class extends u{get defaultFormat(){return n.numberFormat}set defaultFormat(t){n.numberFormat=t}get currency(){return n.currency}set currency(t){n.currency=t}get fractionalDigits(){return n.fractionalDigits}set fractionalDigits(t){n.fractionalDigits=t}};l=t([i],l);const F=new Map,D=new Map,R=/^([acfnp])(\d*)(?:\$([a-zA-Z]{3}))?$/i,f=new l;export const settings=f;
1
+ import{__decorate as t}from"tslib";import{getMatchingLocales as r,get as e,INVARIANT as i}from"../locale.js";import{serializable as a,SerializableBase as n}from"../support/Serializable.js";import{settings as o}from"./FormatSettings.js";import{isNumericInvariant as s}from"./_number.js";import{checkArg as m}from"./checkArg.js";const N=[" ",String.fromCharCode(160),String.fromCharCode(8239)],c=/[%٪%٪]/g,u=/₩|¥|元|レイ|₾|₽|₼|₺|₹|₸|₴|₲|₱|₮|₭|€|₫|₪|₩|₧|₦|₤IT|₡|‎CN¥‎|​PTE|​|៛|የቻይና ዩዋን|ብር|ლ|฿|සිෆ්එ|රු\.|ಲೀ|રૂ\.|৳|लेई|रू|नेरू|ل\.ل\.‏|ل\.س\.‏|ریال|ر\.ي\.‏|ر\.ق\.‏|ر\.ع\.‏|ر\.س\.‏|ر\.إ\.|د\.م\.‏|د\.ل\.‏|د\.ك\.‏|د\.ع\.‏|د\.س\.‏|د\.ج\.‏|د\.ت\.‏|د\.ب\.‏|د\.إ\.‏|د\.أ\.‏|ج\.م\.‏|ج\.س\.|أ\.م\.‏|؋|ל״י|֏|щ\.д\.|сом|руб\.|руб|р\.|лв\.|крб\.|кр|ден|ТМТ|КМ|Δρχ|öS|Íkr|¥CN|¥|£MT|£LB|£L|£IL|£IE|£GI|£GB|£FK|£E|£CY|£|zł|zl|soʻm|rb|r\.|p\.|mk|ley|leu|lej|lei|kr\.|kr|kn|din\.|den|Zł|ZWR|ZWL|ZWD|ZRZ|ZRN|ZMW|ZMK|ZK|ZAR|ZAL|YUR|YUN|YUM|YUD|YER|YDD|XXXX|XXX|XUA|XTS|XSU|XRE|XPT|XPF|XPD|XOF|XFU|XFO|XEU|XDR|XCD|XBD|XBC|XBB|XBA|XAU|XAG|XAF|WST|WS\$|VUV|VT|VNN|VND|VEF|VEB|UZS|UYU|UYP|UYI|UY\$|USh|USS|USN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|ESA|ERN|EG£|EGP|EEK|ECV|ECU|ECS|EC\$|E|Dkr|Db|DZD|DT|DOP|DO\$|DM|DKK|DJF|DEM|DDM|DA|D|Cub\$|CZK|CYP|CVE|CUP|CUC\$|CUC|CU\$|CSK|CSD|CRC|COU|COP|CO\$|CN¥|CNY|CNX|CNH|CLP|CLF|CLE|CL\$|CI\$|CHW|CHF|CHE|CFPF|CFP|CFA|CF|CDF|CAD|CA\$|C\$|BsF|Bs\.|Bs|Br|Bds\$|BZD|BZ\$|BYR|BYN|BYB|BWP|BUK|BTN|BSD|BS\$|BRZ|BRR|BRN|BRL|BRE|BRC|BRB|BR\$|BOV|BOP|BOL|BOB|BND|BN\$|BMD|BM\$|BIF|BHD|BGO|BGN|BGM|BGL|BGK|BGJ|BEL|BEF|BEC|BDT|BD\$|BBD|BB\$|BAN|BAM|BAD|B\/\.|B\$|Ar|Afl\.|Afl|AZN|AZM|AWG|AUD\$|AUD|AU\$|ATS|ARS|ARP|ARM|ARL|ARA|AR\$|AOR|AON|AOK|AOA|ANG|AMD|ALL|ALK|AFN|AFA|AED|ADP|A\$|\*\*\*|\$ US|\$ SG|\$ NZ|\$ HK|\$ AU|\$b|\$UY|\$US|\$U|\$TT|\$SR|\$SG|\$SB|\$RH|\$NZ|\$NA|\$MX|\$MN|\$HK|\$FJ|\$EC|\$CO|\$CL|\$CA|\$C|\$BZ|\$BS|\$BN|\$BM|\$AU|\$AR|\$/g,l=t=>(Array.isArray(t)?t:[t]).map((t=>t===i?"en":t));export var NumberFormat;!function(t){t.NUMBER="n",t.FIXED_POINT="f",t.CURRENCY="c",t.ACCOUNTING="a",t.PERCENT="p",t.ROUND_TRIP="r",t.DEFAULT="f"}(NumberFormat||(NumberFormat={}));export function isNumeric(t,r="inv"){return r&&"inv"!==r&&"string"==typeof t?!isNaN(parse({locale:r},t)):s(t)}export function format(...t){return S.format(...t)}export function parse(...t){return S.parse(...t)}let F=class extends n{get defaultFormat(){return this._defaultFormat}set defaultFormat(t){this._defaultFormat=t}get defaultParseFormat(){return this._defaultParseFormat}set defaultParseFormat(t){this._defaultParseFormat=t}get currency(){return this._currency}set currency(t){this._currency=t}get fractionalDigits(){return this._fractionalDigits}set fractionalDigits(t){this._fractionalDigits=t}format(...t){let i,a;if(1===t.length?(i=t[0],a={}):arguments.length>=2&&(i=t[1],a="string"==typeof t[0]?{format:t[0]}:t[0],m("options",a).isNotMissing()),null==i||isNaN(i))return"";let n=a.format||this.defaultFormat||NumberFormat.DEFAULT;if(n===NumberFormat.ROUND_TRIP)return i.toString();const o=n.toLowerCase();if(o===NumberFormat.CURRENCY||o===NumberFormat.ACCOUNTING){const t=a.currency||this.currency||"USD";n=o,n+=a.fractionalDigits??this.fractionalDigits??"",n+=t?`$${t}`:""}else o!==NumberFormat.NUMBER&&o!==NumberFormat.FIXED_POINT&&o!==NumberFormat.PERCENT||(n=o,n+=a.fractionalDigits??this.fractionalDigits??"");a.locale=a.locale||this.locale;const s=r(a.locale||e()),N=`${s.join(";")}|${n}`;let c=R.get(N);if(!c){c=[];const t=n.split(";",3);1===t.length?(c[0]=this._createNumberFormatter(s,t[0]),c[1]=c[0],c[2]=c[0]):2===t.length?(c[0]=this._createNumberFormatter(s,t[0]),c[1]=this._createNumberFormatter(s,t[1]),c[2]=c[0]):3===t.length&&(c[0]=this._createNumberFormatter(s,t[0]),c[1]=this._createNumberFormatter(s,t[1]),c[2]=this._createNumberFormatter(s,t[2])),R.set(N,c)}return i>0?c[0](i):i<0?c[1](i):c[2](i)}parse(...t){let i,a;if(1===t.length?(i=t[0],a={}):t.length>=2&&(i=t[1],a="string"==typeof t[0]||Array.isArray(t[0])?{format:t[0]}:t[0]),"number"==typeof i)return i;if("boolean"==typeof i)return i?1:0;if(null==i)return NaN;let n=i.toString().trim();a.locale=a.locale||this.locale;const o=r(a.locale||e()),s=o.join(";");let m=f.get(s);m||(m=this._createNumberParser(o),f.set(s,m));let N,l=1;n?.startsWith("(")&&n.endsWith(")")&&(l=-1,n=n.slice(1,-1));let F=!1;const D="string"==typeof n&&!!n.match(c);D?N=n.replace(c,"").trim():a.format?.includes(NumberFormat.CURRENCY)&&(N=n.replace(u,"").replace(/\s/g,""),F=N!==n);let R=m(N??n);if(isNaN(R)&&(R=parseFloat(N??n)),isNaN(R))return R;if(D&&(R/=100),R*=l,F)return R;const S=a.format||this.defaultParseFormat,C=[].concat(S||[]),B=!C.length||C.some((t=>{if(t===NumberFormat.ROUND_TRIP)return R===parseFloat(R.toString());const r=this._createNumberFormatter(o,t,{minimumFractionDigits:0,maximumFractionDigits:20});if(n===r(R))return!0;const e=t.match($);if(e&&""===e[2])for(let r=0;r<=20;r++){const e=this._createNumberFormatter(o,t,{minimumFractionDigits:r,maximumFractionDigits:r});if(n===e(R))return!0}return!1}));return B?R:NaN}_getSerializableProperties(){return{defaultFormat:"initial",defaultParseFormat:"initial",fractionalDigits:"initial",currency:"initial",locale:"initial"}}_createNumberFormatter(t,r,e){const i=e||{},a=l(t);let n=r.match($);if(n){const t=n[1].toLowerCase(),r=Math.min(20,parseInt(n[2]));let e=n[3];t===NumberFormat.CURRENCY||t===NumberFormat.ACCOUNTING?e=(e||this.currency||"USD").toUpperCase():(e="",void 0===i.minimumFractionDigits&&(i.minimumFractionDigits=0),void 0===i.maximumFractionDigits&&(i.maximumFractionDigits=Math.max(4,i.minimumFractionDigits))),t===NumberFormat.PERCENT?i.style="percent":t===NumberFormat.ACCOUNTING?i.currencySign="accounting":t===NumberFormat.FIXED_POINT&&(i.useGrouping=!1),isNaN(r)||(i.minimumFractionDigits=r,i.maximumFractionDigits=r);const o=e?new Intl.NumberFormat(a,{style:"currency",currency:e,...i}):new Intl.NumberFormat(a,i);return t=>o.format(t)}n=r.match(/[0#]+|\.|,|%|\\.|(["'])[^\1]+\1|[^0#.,\\'"]+/g);let o=!1,s="",m="",N="",c="";i.minimumFractionDigits=0,i.maximumFractionDigits=0,i.useGrouping=!1;for(let t of n)switch(t[0]){case".":o=!0;break;case",":i.useGrouping=!0;break;case"%":i.style="percent";break;case"0":case"#":o?m+=t:s+=t;break;default:t.startsWith('"')||t.startsWith("'")?t=t.slice(1,-1):t.startsWith("\\")&&(t=t.slice(1)),s||m?c+=t:N+=t}if(s){const t=s.indexOf("0");t>=0&&(i.minimumIntegerDigits=s.length-t)}if(m){const t=m.lastIndexOf("0");i.minimumFractionDigits=t>=0?t+1:0,i.maximumFractionDigits=Math.min(20,m.length)}if(s||m){const t=new Intl.NumberFormat(a,i);return r=>`${N}${t.format(r)}${c}`}return()=>N+c}_createNumberParser(t){const r=l(t),e=new Intl.NumberFormat(r),i=e.formatToParts(12345.6),a=[...new Intl.NumberFormat(r,{useGrouping:!1}).format(9876543210)].reverse(),n=new Map(a.map(((t,r)=>[t,r]))),o=t=>n.get(t).toString();let s=i.find((t=>"group"===t.type)).value;N.some((t=>t===s))&&(s=`${N.join("|")}`);const m=new RegExp(`[${s}]`,"g"),c=new RegExp(`[${i.find((t=>"decimal"===t.type)).value}]`),u=new RegExp(`[${a.join("")}]`,"g"),F=e.format(-1/0),D=e.format(1/0);return t=>{if(t===D)return Number.POSITIVE_INFINITY;if(t===F)return Number.NEGATIVE_INFINITY;const r=t.trim().replace(m,"").replace(c,".").replace(u,o);return r?+r:NaN}}};F=t([a],F);export{F as NumberFormatter};let D=class extends F{get defaultFormat(){return o.numberFormat}set defaultFormat(t){o.numberFormat=t}get currency(){return o.currency}set currency(t){o.currency=t}get fractionalDigits(){return o.fractionalDigits}set fractionalDigits(t){o.fractionalDigits=t}};D=t([a],D);const R=new Map,f=new Map,$=/^([acfnp])(\d*)(?:\$([a-zA-Z]{3}))?$/i,S=new D;export const settings=S;
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 = "40.6.0";
4
+ export declare const version = "40.6.2";
package/version.js CHANGED
@@ -1 +1 @@
1
- export const version="40.6.0";
1
+ export const version="40.6.2";