@vertigis/arcgis-extensions 40.5.0 → 40.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AppConfig.schema.json +3 -3
- package/data/TaskSettings.d.ts +18 -17
- package/data/TaskSettings.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/data_TaskSettings.TaskSettings.html +12 -11
- package/docs/html/interfaces/data_TaskSettings.TaskSettingsProperties.html +6 -6
- package/docs/html/variables/version.version.html +1 -1
- package/package.json +1 -1
- package/utilities/number.d.ts +3 -3
- package/utilities/number.js +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -46,7 +46,7 @@ that are performed on a map.</p>
|
|
|
46
46
|
<a href="data_TaskSettings.TaskSettings.html#enableSearch" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>enable<wbr/>Search</span></a>
|
|
47
47
|
<a href="data_TaskSettings.TaskSettings.html#enableUpdate" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>enable<wbr/>Update</span></a>
|
|
48
48
|
<a href="data_TaskSettings.TaskSettings.html#parent" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>parent</span></a>
|
|
49
|
-
<a href="data_TaskSettings.TaskSettings.html#
|
|
49
|
+
<a href="data_TaskSettings.TaskSettings.html#studioSearchSubindexId" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>studio<wbr/>Search<wbr/>Subindex<wbr/>Id</span></a>
|
|
50
50
|
</div></section>
|
|
51
51
|
<section class="tsd-index-section">
|
|
52
52
|
<h3 class="tsd-index-heading">Methods</h3>
|
|
@@ -243,30 +243,31 @@ default.</p>
|
|
|
243
243
|
<h5><span class="tsd-kind-parameter">value</span>: <a href="support_Settings.Settings.html" class="tsd-signature-type tsd-kind-class">Settings</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type tsd-kind-type-parameter">TProperties</span><span class="tsd-signature-symbol">></span></h5></li></ul></div>
|
|
244
244
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
245
245
|
<p>Inherited from Settings.parent</p></aside></li></ul></section>
|
|
246
|
-
<section class="tsd-panel tsd-member"><a id="
|
|
247
|
-
<h3 class="tsd-anchor-link"><span>
|
|
246
|
+
<section class="tsd-panel tsd-member"><a id="studioSearchSubindexId" class="tsd-anchor"></a>
|
|
247
|
+
<h3 class="tsd-anchor-link"><span>studio<wbr/>Search<wbr/>Subindex<wbr/>Id</span><a href="#studioSearchSubindexId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
248
248
|
<ul class="tsd-signatures">
|
|
249
|
-
<li class="tsd-signature" id="
|
|
249
|
+
<li class="tsd-signature" id="studioSearchSubindexId.studioSearchSubindexId-1"><span class="tsd-signature-symbol">get</span> studioSearchSubindexId<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
250
250
|
<li class="tsd-description">
|
|
251
|
-
<div class="tsd-comment tsd-typography"><p>
|
|
252
|
-
|
|
251
|
+
<div class="tsd-comment tsd-typography"><p>Saves the value of the subindex ID that is received back from Studio
|
|
252
|
+
Search backend when the new layer/subindex is added to the Studio Search
|
|
253
|
+
App Configuration. Things to note:</p>
|
|
253
254
|
<ul>
|
|
254
255
|
<li>This setting requires enableSearch to be set to true in order to have any
|
|
255
256
|
effect.</li>
|
|
256
257
|
<li>By enabling this setting a new search index will be created in VertiGIS
|
|
257
258
|
Studio Search Designer.</li>
|
|
258
259
|
<li>Note that not all sources support VertiGIS Studio Search.</li>
|
|
259
|
-
<li>
|
|
260
|
+
<li>Empty by default.</li>
|
|
260
261
|
</ul>
|
|
261
262
|
</div>
|
|
262
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">
|
|
263
|
-
<li class="tsd-signature" id="
|
|
263
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li>
|
|
264
|
+
<li class="tsd-signature" id="studioSearchSubindexId.studioSearchSubindexId-2"><span class="tsd-signature-symbol">set</span> studioSearchSubindexId<span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">value</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
264
265
|
<li class="tsd-description">
|
|
265
266
|
<div class="tsd-parameters">
|
|
266
267
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
267
268
|
<ul class="tsd-parameter-list">
|
|
268
269
|
<li>
|
|
269
|
-
<h5><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">
|
|
270
|
+
<h5><span class="tsd-kind-parameter">value</span>: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
270
271
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4></li></ul></section></section>
|
|
271
272
|
<section class="tsd-panel-group tsd-member-group">
|
|
272
273
|
<h2>Methods</h2>
|
|
@@ -744,7 +745,7 @@ value, if any.</p>
|
|
|
744
745
|
<li><a href="#enableSearch" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>enable<wbr/>Search</span></a></li>
|
|
745
746
|
<li><a href="#enableUpdate" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>enable<wbr/>Update</span></a></li>
|
|
746
747
|
<li><a href="#parent" class="tsd-is-inherited"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>parent</span></a></li>
|
|
747
|
-
<li><a href="#
|
|
748
|
+
<li><a href="#studioSearchSubindexId" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-262144-path"></use><use href="#icon-262144-text"></use></svg><span>studio<wbr/>Search<wbr/>Subindex<wbr/>Id</span></a></li>
|
|
748
749
|
<li><a href="#_getCollectionSetting" class="tsd-is-protected tsd-is-inherited"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>_get<wbr/>Collection<wbr/>Setting</span></a></li>
|
|
749
750
|
<li><a href="#_getNestedSettings" class="tsd-is-protected tsd-is-inherited"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>_get<wbr/>Nested<wbr/>Settings</span></a></li>
|
|
750
751
|
<li><a href="#_getSerializableProperties" class="tsd-is-protected"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>_get<wbr/>Serializable<wbr/>Properties</span></a></li>
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<a href="data_TaskSettings.TaskSettingsProperties.html#enableQuery" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>enable<wbr/>Query?</span></a>
|
|
40
40
|
<a href="data_TaskSettings.TaskSettingsProperties.html#enableSearch" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>enable<wbr/>Search?</span></a>
|
|
41
41
|
<a href="data_TaskSettings.TaskSettingsProperties.html#enableUpdate" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>enable<wbr/>Update?</span></a>
|
|
42
|
-
<a href="data_TaskSettings.TaskSettingsProperties.html#
|
|
42
|
+
<a href="data_TaskSettings.TaskSettingsProperties.html#studioSearchSubindexId" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>studio<wbr/>Search<wbr/>Subindex<wbr/>Id?</span></a>
|
|
43
43
|
</div></section></div></details></section></section>
|
|
44
44
|
<section class="tsd-panel-group tsd-member-group">
|
|
45
45
|
<h2>Properties</h2>
|
|
@@ -83,10 +83,10 @@
|
|
|
83
83
|
<div class="tsd-signature"><span class="tsd-kind-property">enable<wbr/>Update</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">boolean</span></div>
|
|
84
84
|
<div class="tsd-comment tsd-typography"><p>See <a href="../classes/data_TaskSettings.TaskSettings.html#enableUpdate" class="tsd-kind-accessor">enableUpdate</a>.</p>
|
|
85
85
|
</div></section>
|
|
86
|
-
<section class="tsd-panel tsd-member"><a id="
|
|
87
|
-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>
|
|
88
|
-
<div class="tsd-signature"><span class="tsd-kind-property">
|
|
89
|
-
<div class="tsd-comment tsd-typography"><p>See <a href="../classes/data_TaskSettings.TaskSettings.html#
|
|
86
|
+
<section class="tsd-panel tsd-member"><a id="studioSearchSubindexId" class="tsd-anchor"></a>
|
|
87
|
+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>studio<wbr/>Search<wbr/>Subindex<wbr/>Id</span><a href="#studioSearchSubindexId" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
88
|
+
<div class="tsd-signature"><span class="tsd-kind-property">studio<wbr/>Search<wbr/>Subindex<wbr/>Id</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span></div>
|
|
89
|
+
<div class="tsd-comment tsd-typography"><p>See <a href="../classes/data_TaskSettings.TaskSettings.html#studioSearchSubindexId" class="tsd-kind-accessor">studioSearchSubindexId</a>.</p>
|
|
90
90
|
</div></section></section></div>
|
|
91
91
|
<div class="col-sidebar">
|
|
92
92
|
<div class="page-menu">
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
<li><a href="#enableQuery" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>enable<wbr/>Query</span></a></li>
|
|
114
114
|
<li><a href="#enableSearch" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>enable<wbr/>Search</span></a></li>
|
|
115
115
|
<li><a href="#enableUpdate" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>enable<wbr/>Update</span></a></li>
|
|
116
|
-
<li><a href="#
|
|
116
|
+
<li><a href="#studioSearchSubindexId" class=""><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>studio<wbr/>Search<wbr/>Subindex<wbr/>Id</span></a></li></ul></div></details></div>
|
|
117
117
|
<div class="site-menu">
|
|
118
118
|
<nav class="tsd-navigation"><a href="../index.html"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4-path"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)" id="icon-4-text"></path></svg><span>@vertigis/arcgis-<wbr/>extensions</span></a>
|
|
119
119
|
<ul class="tsd-small-nested-navigation">
|
|
@@ -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">"40.
|
|
19
|
+
<div class="tsd-signature"><span class="tsd-kind-variable">version</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"40.6.1"</span><span class="tsd-signature-symbol"> = "40.6.1"</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
package/utilities/number.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
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
|
}
|
package/utilities/number.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as t}from"tslib";import{getMatchingLocales as r,get as e}from"../locale.js";import{serializable as
|
|
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|le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":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
package/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version="40.
|
|
1
|
+
export const version="40.6.1";
|