@arcgis/common-components 4.29.0-beta.47 → 4.29.0-beta.49

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 (53) hide show
  1. package/dist/arcgis-common-components/arcgis-common-components.esm.js +1 -1
  2. package/dist/arcgis-common-components/p-6c7d2684.js +1 -0
  3. package/dist/arcgis-common-components/p-7318a1d1.entry.js +1 -0
  4. package/dist/arcgis-common-components/p-a91ab432.js +2 -0
  5. package/dist/arcgis-common-components/p-d3d1695f.entry.js +1 -0
  6. package/dist/cjs/arcgis-common-components.cjs.js +3 -3
  7. package/dist/cjs/arcgis-field-info.cjs.entry.js +903 -899
  8. package/dist/cjs/arcgis-field-pick-list.cjs.entry.js +216 -229
  9. package/dist/cjs/{index-2e4fbd31.js → index-5ec7f592.js} +5 -20
  10. package/dist/cjs/{index-ab5f2576.js → index-e0422bc8.js} +72 -77
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/components/arcgis-field-info.d.ts +2 -2
  13. package/dist/components/arcgis-field-pick-list.d.ts +2 -2
  14. package/dist/components/arcgis-field-pick-list.js +259 -272
  15. package/dist/components/field-info.js +961 -901
  16. package/dist/esm/arcgis-common-components.js +4 -4
  17. package/dist/esm/arcgis-field-info.entry.js +907 -903
  18. package/dist/esm/arcgis-field-pick-list.entry.js +216 -229
  19. package/dist/esm/{index-74897166.js → index-0c129ec4.js} +73 -78
  20. package/dist/esm/index-ba4fe890.js +59 -0
  21. package/dist/esm/loader.js +3 -3
  22. package/dist/types/components/field-info/field-info.d.ts +61 -61
  23. package/dist/types/components/field-info/t9n-types.d.ts +72 -72
  24. package/dist/types/components/field-info/utils/basic.d.ts +24 -24
  25. package/dist/types/components/field-info/utils/field.d.ts +1 -1
  26. package/dist/types/components/field-pick-list/field-pick-list.d.ts +115 -115
  27. package/dist/types/components/field-pick-list/t9n-types.d.ts +15 -15
  28. package/dist/types/components/field-pick-list/utils/types.d.ts +14 -14
  29. package/dist/types/components.d.ts +0 -86
  30. package/dist/types/stencil-public-runtime.d.ts +8 -0
  31. package/package.json +7 -7
  32. package/dist/arcgis-common-components/p-0be8fd4c.entry.js +0 -1
  33. package/dist/arcgis-common-components/p-164eb24e.entry.js +0 -1
  34. package/dist/arcgis-common-components/p-5ecf6396.js +0 -1
  35. package/dist/arcgis-common-components/p-97c7ac8d.entry.js +0 -1
  36. package/dist/arcgis-common-components/p-b23318c8.js +0 -1
  37. package/dist/arcgis-common-components/p-d66b011b.entry.js +0 -1
  38. package/dist/arcgis-common-components/p-f27af39c.js +0 -2
  39. package/dist/cjs/arcgis-api-key.cjs.entry.js +0 -51
  40. package/dist/cjs/arcgis-identity.cjs.entry.js +0 -139
  41. package/dist/cjs/index-f8bf4df6.js +0 -7
  42. package/dist/components/arcgis-api-key.d.ts +0 -11
  43. package/dist/components/arcgis-api-key.js +0 -69
  44. package/dist/components/arcgis-identity.d.ts +0 -11
  45. package/dist/components/arcgis-identity.js +0 -167
  46. package/dist/components/index2.js +0 -75
  47. package/dist/esm/arcgis-api-key.entry.js +0 -47
  48. package/dist/esm/arcgis-identity.entry.js +0 -135
  49. package/dist/esm/index-3d9bb67e.js +0 -75
  50. package/dist/esm/index-e7244815.js +0 -3
  51. package/dist/types/components/api-key/api-key.d.ts +0 -9
  52. package/dist/types/components/identity/identity.d.ts +0 -31
  53. package/dist/types/components/types.d.ts +0 -10
@@ -31,6 +31,13 @@ const uniqueTime = (key, measureText) => {
31
31
  }
32
32
  };
33
33
  const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
34
+ /**
35
+ * Constant for styles to be globally applied to `slot-fb` elements for pseudo-slot behavior.
36
+ *
37
+ * Two cascading rules must be used instead of a `:not()` selector due to Stencil browser
38
+ * support as of Stencil v4.
39
+ */
40
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
34
41
  /**
35
42
  * Default style mode id
36
43
  */
@@ -335,6 +342,10 @@ const addStyle = (styleContainerNode, cmpMeta, mode) => {
335
342
  }
336
343
  styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
337
344
  }
345
+ // Add styles for `slot-fb` elements if we're using slots outside the Shadow DOM
346
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
347
+ styleElm.innerHTML += SLOT_FB_CSS;
348
+ }
338
349
  if (appliedStyles) {
339
350
  appliedStyles.add(scopeId);
340
351
  }
@@ -499,7 +510,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
499
510
  elm[memberName] = newValue;
500
511
  }
501
512
  }
502
- catch (e) { }
513
+ catch (e) {
514
+ /**
515
+ * in case someone tries to set a read-only property, e.g. "namespaceURI", we just ignore it
516
+ */
517
+ }
503
518
  }
504
519
  if (newValue == null || newValue === false) {
505
520
  if (newValue !== false || elm.getAttribute(memberName) === '') {
@@ -518,6 +533,11 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
518
533
  }
519
534
  };
520
535
  const parseClassListRegex = /\s/;
536
+ /**
537
+ * Parsed a string of classnames into an array
538
+ * @param value className string, e.g. "foo bar baz"
539
+ * @returns list of classes, e.g. ["foo", "bar", "baz"]
540
+ */
521
541
  const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
522
542
  const CAPTURE_EVENT_SUFFIX = 'Capture';
523
543
  const CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + '$');
@@ -587,6 +607,9 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
587
607
  }
588
608
  }
589
609
  }
610
+ // This needs to always happen so we can hide nodes that are projected
611
+ // to another component but don't end up in a slot
612
+ elm['s-hn'] = hostTagName;
590
613
  return elm;
591
614
  };
592
615
  /**
@@ -1146,7 +1169,7 @@ const callRender = (hostRef, instance, elm, isInitialLoad) => {
1146
1169
  * minification optimization: `allRenderFn` is `true` if all components have a `render`
1147
1170
  * method, so we can call the method immediately. If not, check before calling it.
1148
1171
  */
1149
- instance = instance.render && instance.render();
1172
+ instance = instance.render() ;
1150
1173
  {
1151
1174
  hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
1152
1175
  }
@@ -1249,7 +1272,6 @@ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propNam
1249
1272
  const setValue = (ref, propName, newVal, cmpMeta) => {
1250
1273
  // check our new property value against our internal value
1251
1274
  const hostRef = getHostRef(ref);
1252
- const elm = hostRef.$hostElement$ ;
1253
1275
  const oldVal = hostRef.$instanceValues$.get(propName);
1254
1276
  const flags = hostRef.$flags$;
1255
1277
  const instance = hostRef.$lazyInstance$ ;
@@ -1262,22 +1284,6 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1262
1284
  // set our new value!
1263
1285
  hostRef.$instanceValues$.set(propName, newVal);
1264
1286
  if (instance) {
1265
- // get an array of method names of watch functions to call
1266
- if (cmpMeta.$watchers$ && flags & 128 /* HOST_FLAGS.isWatchReady */) {
1267
- const watchMethods = cmpMeta.$watchers$[propName];
1268
- if (watchMethods) {
1269
- // this instance is watching for when this property changed
1270
- watchMethods.map((watchMethodName) => {
1271
- try {
1272
- // fire off each of the watch methods that are watching this property
1273
- instance[watchMethodName](newVal, oldVal, propName);
1274
- }
1275
- catch (e) {
1276
- consoleError(e, elm);
1277
- }
1278
- });
1279
- }
1280
- }
1281
1287
  if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1282
1288
  // looks like this value actually changed, so we've got work to do!
1283
1289
  // but only if we've already rendered, otherwise just chill out
@@ -1300,13 +1306,10 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
1300
1306
  */
1301
1307
  const proxyComponent = (Cstr, cmpMeta, flags) => {
1302
1308
  var _a;
1309
+ const prototype = Cstr.prototype;
1303
1310
  if (cmpMeta.$members$) {
1304
- if (Cstr.watchers) {
1305
- cmpMeta.$watchers$ = Cstr.watchers;
1306
- }
1307
1311
  // It's better to have a const than two Object.entries()
1308
1312
  const members = Object.entries(cmpMeta.$members$);
1309
- const prototype = Cstr.prototype;
1310
1313
  members.map(([memberName, [memberFlags]]) => {
1311
1314
  if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1312
1315
  ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
@@ -1329,8 +1332,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1329
1332
  // proxyComponent - method
1330
1333
  Object.defineProperty(prototype, memberName, {
1331
1334
  value(...args) {
1335
+ var _a;
1332
1336
  const ref = getHostRef(this);
1333
- return ref.$onInstancePromise$.then(() => ref.$lazyInstance$[memberName](...args));
1337
+ return (_a = ref === null || ref === void 0 ? void 0 : ref.$onInstancePromise$) === null || _a === void 0 ? void 0 : _a.then(() => { var _a; return (_a = ref.$lazyInstance$) === null || _a === void 0 ? void 0 : _a[memberName](...args); });
1334
1338
  },
1335
1339
  });
1336
1340
  }
@@ -1339,6 +1343,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1339
1343
  const attrNameToPropName = new Map();
1340
1344
  prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
1341
1345
  plt.jmp(() => {
1346
+ var _a;
1342
1347
  const propName = attrNameToPropName.get(attrName);
1343
1348
  // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1344
1349
  // in the case where an attribute was set inline.
@@ -1394,11 +1399,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
1394
1399
  // 1. The instance is ready
1395
1400
  // 2. The watchers are ready
1396
1401
  // 3. The value has changed
1397
- if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1402
+ if (flags &&
1403
+ !(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
1398
1404
  flags & 128 /* HOST_FLAGS.isWatchReady */ &&
1399
1405
  newValue !== oldValue) {
1400
1406
  const instance = hostRef.$lazyInstance$ ;
1401
- const entry = cmpMeta.$watchers$[attrName];
1407
+ const entry = (_a = cmpMeta.$watchers$) === null || _a === void 0 ? void 0 : _a[attrName];
1402
1408
  entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
1403
1409
  if (instance[callbackName] != null) {
1404
1410
  instance[callbackName].call(instance, newValue, oldValue, attrName);
@@ -1457,12 +1463,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1457
1463
  endLoad();
1458
1464
  }
1459
1465
  if (!Cstr.isProxied) {
1460
- // we've never proxied this Constructor before
1461
- // let's add the getters/setters to its prototype before
1462
- // the first time we create an instance of the implementation
1463
- {
1464
- cmpMeta.$watchers$ = Cstr.watchers;
1465
- }
1466
1466
  proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1467
1467
  Cstr.isProxied = true;
1468
1468
  }
@@ -1486,11 +1486,7 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1486
1486
  {
1487
1487
  hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1488
1488
  }
1489
- {
1490
- hostRef.$flags$ |= 128 /* HOST_FLAGS.isWatchReady */;
1491
- }
1492
1489
  endNewInstance();
1493
- fireConnectedCallback(hostRef.$lazyInstance$);
1494
1490
  }
1495
1491
  if (Cstr.style) {
1496
1492
  // this component has styles but we haven't registered them yet
@@ -1520,9 +1516,6 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
1520
1516
  }
1521
1517
  };
1522
1518
  const fireConnectedCallback = (instance) => {
1523
- {
1524
- safeCall(instance, 'connectedCallback');
1525
- }
1526
1519
  };
1527
1520
  const connectedCallback = (elm) => {
1528
1521
  if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
@@ -1564,11 +1557,9 @@ const connectedCallback = (elm) => {
1564
1557
  }
1565
1558
  else {
1566
1559
  // fire off connectedCallback() on component instance
1567
- if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) {
1568
- fireConnectedCallback(hostRef.$lazyInstance$);
1569
- }
1560
+ if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
1570
1561
  else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
1571
- hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$));
1562
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
1572
1563
  }
1573
1564
  }
1574
1565
  endConnected();
@@ -1598,26 +1589,28 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1598
1589
  const customElements = win.customElements;
1599
1590
  const head = doc.head;
1600
1591
  const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1601
- const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1592
+ const dataStyles = /*@__PURE__*/ doc.createElement('style');
1602
1593
  const deferredConnectedCallbacks = [];
1603
1594
  let appLoadFallback;
1604
1595
  let isBootstrapping = true;
1605
1596
  Object.assign(plt, options);
1606
1597
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1598
+ let hasSlotRelocation = false;
1607
1599
  lazyBundles.map((lazyBundle) => {
1608
1600
  lazyBundle[1].map((compactMeta) => {
1609
- var _a;
1610
1601
  const cmpMeta = {
1611
1602
  $flags$: compactMeta[0],
1612
1603
  $tagName$: compactMeta[1],
1613
1604
  $members$: compactMeta[2],
1614
1605
  $listeners$: compactMeta[3],
1615
1606
  };
1616
- {
1617
- cmpMeta.$members$ = compactMeta[2];
1607
+ // Check if we are using slots outside the shadow DOM in this component.
1608
+ // We'll use this information later to add styles for `slot-fb` elements
1609
+ if (cmpMeta.$flags$ & 4 /* CMP_FLAGS.hasSlotRelocation */) {
1610
+ hasSlotRelocation = true;
1618
1611
  }
1619
1612
  {
1620
- cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
1613
+ cmpMeta.$members$ = compactMeta[2];
1621
1614
  }
1622
1615
  const tagName = cmpMeta.$tagName$;
1623
1616
  const HostElement = class extends HTMLElement {
@@ -1666,15 +1659,25 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
1666
1659
  }
1667
1660
  });
1668
1661
  });
1662
+ // Add styles for `slot-fb` elements if any of our components are using slots outside the Shadow DOM
1663
+ if (hasSlotRelocation) {
1664
+ dataStyles.innerHTML += SLOT_FB_CSS;
1665
+ }
1666
+ // Add hydration styles
1669
1667
  {
1670
- visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1671
- visibilityStyle.setAttribute('data-styles', '');
1668
+ dataStyles.innerHTML += cmpTags + HYDRATED_CSS;
1669
+ }
1670
+ // If we have styles, add them to the DOM
1671
+ if (dataStyles.innerHTML.length) {
1672
+ dataStyles.setAttribute('data-styles', '');
1672
1673
  // Apply CSP nonce to the style tag if it exists
1673
1674
  const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1674
1675
  if (nonce != null) {
1675
- visibilityStyle.setAttribute('nonce', nonce);
1676
+ dataStyles.setAttribute('nonce', nonce);
1676
1677
  }
1677
- head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1678
+ // Insert the styles into the document head
1679
+ // NOTE: this _needs_ to happen last so we can ensure the nonce (and other attributes) are applied
1680
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1678
1681
  }
1679
1682
  // Process deferred connectedCallbacks now all components have been registered
1680
1683
  isBootstrapping = false;
@@ -1756,31 +1759,23 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1756
1759
  return module[exportName];
1757
1760
  }
1758
1761
 
1759
- if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1760
- const processMod = importedModule => {
1761
- cmpModules.set(bundleId, importedModule);
1762
- return importedModule[exportName];
1763
- }
1764
- switch(bundleId) {
1765
-
1766
- case 'arcgis-api-key':
1767
- return import(
1768
- /* webpackMode: "lazy" */
1769
- './arcgis-api-key.entry.js').then(processMod, consoleError);
1770
- case 'arcgis-field-pick-list':
1771
- return import(
1772
- /* webpackMode: "lazy" */
1773
- './arcgis-field-pick-list.entry.js').then(processMod, consoleError);
1774
- case 'arcgis-identity':
1775
- return import(
1776
- /* webpackMode: "lazy" */
1777
- './arcgis-identity.entry.js').then(processMod, consoleError);
1778
- case 'arcgis-field-info':
1779
- return import(
1780
- /* webpackMode: "lazy" */
1781
- './arcgis-field-info.entry.js').then(processMod, consoleError);
1762
+ if (!hmrVersionId || !BUILD.hotModuleReplacement) {
1763
+ const processMod = importedModule => {
1764
+ cmpModules.set(bundleId, importedModule);
1765
+ return importedModule[exportName];
1766
+ }
1767
+ switch(bundleId) {
1768
+
1769
+ case 'arcgis-field-pick-list':
1770
+ return import(
1771
+ /* webpackMode: "lazy" */
1772
+ './arcgis-field-pick-list.entry.js').then(processMod, consoleError);
1773
+ case 'arcgis-field-info':
1774
+ return import(
1775
+ /* webpackMode: "lazy" */
1776
+ './arcgis-field-info.entry.js').then(processMod, consoleError);
1777
+ }
1782
1778
  }
1783
- }
1784
1779
  return import(
1785
1780
  /* @vite-ignore */
1786
1781
  /* webpackInclude: /\.entry\.js$/ */
@@ -1855,7 +1850,7 @@ const flush = () => {
1855
1850
  }
1856
1851
  }
1857
1852
  };
1858
- const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1853
+ const nextTick = (cb) => promiseResolve().then(cb);
1859
1854
  const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1860
1855
 
1861
- export { Fragment as F, Host as H, getAssetPath as a, bootstrapLazy as b, createEvent as c, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
1856
+ export { Fragment as F, Host as H, getElement as a, bootstrapLazy as b, createEvent as c, getAssetPath as g, h, promiseResolve as p, registerInstance as r, setNonce as s };
@@ -0,0 +1,59 @@
1
+ const amd = "define" in window && typeof window.define === "function" && "amd" in window.define;
2
+ function requireModule(modulePath) {
3
+ return new Promise((resolve) => window.require([modulePath], (moduleDefault) => {
4
+ resolve(moduleDefault);
5
+ }));
6
+ }
7
+ async function importRestSupportQuery() {
8
+ if (amd) {
9
+ return requireModule("esri/rest/support/Query");
10
+ }
11
+ const module = await import('@arcgis/core/rest/support/Query.js');
12
+ return module.default;
13
+ }
14
+ async function importConfig() {
15
+ if (amd) {
16
+ return requireModule("esri/config");
17
+ }
18
+ const module = await import('@arcgis/core/config.js');
19
+ return module.default;
20
+ }
21
+ async function importCoreLang() {
22
+ if (amd) {
23
+ return requireModule("esri/core/lang");
24
+ }
25
+ const module = await import('@arcgis/core/core/lang.js');
26
+ return module;
27
+ }
28
+ async function importCoreReactiveUtils() {
29
+ if (amd) {
30
+ return requireModule("esri/core/reactiveUtils");
31
+ }
32
+ const module = await import('@arcgis/core/core/reactiveUtils.js');
33
+ return module;
34
+ }
35
+ async function importIntl() {
36
+ if (amd) {
37
+ return requireModule("esri/intl");
38
+ }
39
+ const module = await import('@arcgis/core/intl.js');
40
+ return module;
41
+ }
42
+ async function importSmartMappingStatisticsSummaryStatistics() {
43
+ if (amd) {
44
+ return requireModule("esri/smartMapping/statistics/summaryStatistics");
45
+ }
46
+ const module = await import('@arcgis/core/smartMapping/statistics/summaryStatistics.js');
47
+ return module.default;
48
+ }
49
+ async function importSmartMappingStatisticsUniqueValues() {
50
+ if (amd) {
51
+ return requireModule("esri/smartMapping/statistics/uniqueValues");
52
+ }
53
+ const module = await import('@arcgis/core/smartMapping/statistics/uniqueValues.js');
54
+ return module.default;
55
+ }
56
+
57
+ function S(e,t){let n=e;for(;n;){if(n===t)return !0;if(!n.parentNode)return !1;n.parentNode instanceof ShadowRoot?n=n.parentNode.host:n=n.parentNode;}return !1}function T(e,t,n=()=>{}){if(!t||t.length<=0)return;let r=new MutationObserver(o=>{for(let i of o)S(e,i.target)&&n();});return r.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0}),r}function E(e,t){let n=e;for(;n;){let r=n.closest(t);if(r)return r;let o=n.getRootNode();if(o===document)return null;n=o.host;}return null}function C(e){return f(e,"dir","ltr")}function f(e,t,n){return E(e,`[${t}]`)?.getAttribute(t)??n}var x=new Set(["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"]),a=new Map;async function N(e,t,n=""){let r=`${t}/${n}${e}.json`;if(a.has(r))return a.get(r);try{let o=await fetch(r);if(o.ok){let s=await o.json();return a.set(r,s),s}if(e==="en"){a.set(r,void 0);return}let i=await N("en",t,n);return a.set(r,i),i}catch{a.set(r,void 0);return}}function R(e){let t=f(e,"lang",navigator?.language||"en");if(x.has(t))return {lang:t,t9nLocale:t};let n=t.slice(0,2);return {lang:t,t9nLocale:x.has(n)?n:"en"}}var m=new WeakMap,h=new WeakMap,_=new WeakMap;async function F(e,t,n){h.set(e,t),m.set(e,T(e._hostElement,["lang"],()=>{b(e,n);})),await b(e,n);}function U(e){m.get(e)?.disconnect(),m.delete(e),h.delete(e);}async function b(e,t){let{lang:n,t9nLocale:r}=R(e._hostElement);if(n===e._lang&&r===e._t9nLocale||(n!==e._lang&&(e._lang=n),r===e._t9nLocale))return;let o=_.get(e);if(!o){let i=h.get(e)??"",s=e._hostElement.tagName.toLowerCase().replace("arcgis-",""),u=`${i}/${s}/t9n`,l=`${s}.t9n.`;o=await N(r,u,l);}e._t9nLocale=r,e._t9nStrings=o,await t?.call(e);}
58
+
59
+ export { C, F, U, importCoreLang as a, importConfig as b, importRestSupportQuery as c, importSmartMappingStatisticsSummaryStatistics as d, importSmartMappingStatisticsUniqueValues as e, importCoreReactiveUtils as f, importIntl as i };
@@ -1,9 +1,9 @@
1
- import { b as bootstrapLazy } from './index-74897166.js';
2
- export { s as setNonce } from './index-74897166.js';
1
+ import { b as bootstrapLazy } from './index-0c129ec4.js';
2
+ export { s as setNonce } from './index-0c129ec4.js';
3
3
 
4
4
  const defineCustomElements = (win, options) => {
5
5
  if (typeof window === 'undefined') return undefined;
6
- return bootstrapLazy([["arcgis-field-pick-list",[[1,"arcgis-field-pick-list",{"selectedFields":[1040],"fields":[16],"popoverProps":[16],"layer":[16],"mapView":[16],"showFieldInfo":[4,"show-field-info"],"showFieldName":[4,"show-field-name"],"showDescription":[4,"show-description"],"showSelectionAll":[4,"show-selection-all"],"showCancel":[4,"show-cancel"],"showSort":[4,"show-sort"],"showFilterLength":[2,"show-filter-length"],"multiple":[4],"heading":[1],"okBtnText":[1,"ok-btn-text"],"filterPlaceholderText":[1,"filter-placeholder-text"],"sortBy":[1,"sort-by"],"lastSortyBy":[32],"filterFields":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"setFocus":[64],"reposition":[64]}]]],["arcgis-api-key",[[0,"arcgis-api-key",{"apiKey":[1,"api-key"]},null,{"apiKey":["apiKeyWatcher"]}]]],["arcgis-identity",[[0,"arcgis-identity",{"identity":[1040],"appId":[1,"app-id"],"credential":[1040],"expiration":[1026],"locale":[1],"usePopup":[4,"use-popup"],"popupCallbackUrl":[1,"popup-callback-url"],"portalUrl":[1,"portal-url"],"preserveUrlHash":[4,"preserve-url-hash"],"signIn":[64],"signOut":[64]},null,{"appId":["appIdWatcher"]}]]],["arcgis-field-info",[[1,"arcgis-field-info",{"view":[16],"layer":[16],"fieldName":[1,"field-name"],"hideStatistics":[4,"hide-statistics"],"oneFeatureResponse":[32],"oneFeatureResponseStatus":[32],"statistics":[32],"statisticsStatus":[32],"uniqueValues":[32],"uniqueValuesStatus":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}]]]], options);
6
+ return bootstrapLazy([["arcgis-field-info",[[1,"arcgis-field-info",{"view":[16],"layer":[16],"fieldName":[1,"field-name"],"hideStatistics":[4,"hide-statistics"],"oneFeatureResponse":[32],"oneFeatureResponseStatus":[32],"statistics":[32],"statisticsStatus":[32],"uniqueValues":[32],"uniqueValuesStatus":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32]}]]],["arcgis-field-pick-list",[[1,"arcgis-field-pick-list",{"selectedFields":[1040],"fields":[16],"popoverProps":[16],"layer":[16],"mapView":[16],"showFieldInfo":[4,"show-field-info"],"showFieldName":[4,"show-field-name"],"showDescription":[4,"show-description"],"showSelectionAll":[4,"show-selection-all"],"showCancel":[4,"show-cancel"],"showSort":[4,"show-sort"],"showFilterLength":[2,"show-filter-length"],"multiple":[4],"heading":[1],"okBtnText":[1,"ok-btn-text"],"filterPlaceholderText":[1,"filter-placeholder-text"],"sortBy":[1,"sort-by"],"lastSortyBy":[32],"filterFields":[32],"_lang":[32],"_t9nLocale":[32],"_t9nStrings":[32],"setFocus":[64],"reposition":[64]}]]]], options);
7
7
  };
8
8
 
9
9
  export { defineCustomElements };
@@ -3,66 +3,66 @@ import type { FieldInfoStrings } from "./t9n-types";
3
3
  import { FieldInfoLayer, ComponentProps, Status } from "./utils";
4
4
  type FeatureSet = __esri.FeatureSet;
5
5
  export declare class ArcgisFieldInfo implements ComponentInterface {
6
- _hostElement: HTMLArcgisFieldInfoElement;
7
- /**
8
- * view
9
- */
10
- view?: __esri.View;
11
- /**
12
- * layer
13
- */
14
- layer: FieldInfoLayer;
15
- /**
16
- * field name
17
- */
18
- fieldName: string;
19
- /**
20
- * Show or hide field statistics.
21
- * If true then no top 10 values for string and no stats for number and date fields.
22
- */
23
- hideStatistics: boolean;
24
- oneFeatureResponse?: FeatureSet;
25
- oneFeatureResponseStatus?: Status;
26
- statistics?: any;
27
- statisticsStatus?: Status;
28
- uniqueValues?: any;
29
- uniqueValuesStatus?: Status;
30
- _lang: string;
31
- _t9nLocale: string;
32
- _t9nStrings: FieldInfoStrings;
33
- props: ComponentProps;
34
- /**
35
- * once all information is displayed
36
- */
37
- arcgisFieldInfoComplete: EventEmitter<void>;
38
- componentWillLoad(): Promise<void>;
39
- componentDidLoad(): Promise<void>;
40
- disconnectedCallback(): void;
41
- render(): VNode;
42
- private renderFieldType;
43
- private renderFieldAlias;
44
- private renderFieldDescription;
45
- private renderFieldValueType;
46
- private renderFieldSampleValue;
47
- private renderFieldFormat;
48
- private renderFieldStatistics;
49
- private renderNoStatistics;
50
- private renderStatistics;
51
- private renderNumberStatistics;
52
- private renderStringStatistics;
53
- private renderDateStatistics;
54
- private renderTopValues;
55
- private renderNullValues;
56
- private _getFieldTypeLabel;
57
- private _getStatisticsType;
58
- private _getFieldValueTypeCamelCase;
59
- private _getDisplayString;
60
- private _getDateString;
61
- private _getTimestampOffsetString;
62
- private _getDateOnlyString;
63
- private _getTimeOnlyString;
64
- private _getGuidString;
65
- private _getNumberString;
66
- private _printNumValue;
6
+ _hostElement: HTMLArcgisFieldInfoElement;
7
+ /**
8
+ * view
9
+ */
10
+ view?: __esri.View;
11
+ /**
12
+ * layer
13
+ */
14
+ layer: FieldInfoLayer;
15
+ /**
16
+ * field name
17
+ */
18
+ fieldName: string;
19
+ /**
20
+ * Show or hide field statistics.
21
+ * If true then no top 10 values for string and no stats for number and date fields.
22
+ */
23
+ hideStatistics: boolean;
24
+ oneFeatureResponse?: FeatureSet;
25
+ oneFeatureResponseStatus?: Status;
26
+ statistics?: any;
27
+ statisticsStatus?: Status;
28
+ uniqueValues?: any;
29
+ uniqueValuesStatus?: Status;
30
+ _lang: string;
31
+ _t9nLocale: string;
32
+ _t9nStrings: FieldInfoStrings;
33
+ props: ComponentProps;
34
+ /**
35
+ * once all information is displayed
36
+ */
37
+ arcgisFieldInfoComplete: EventEmitter<void>;
38
+ componentWillLoad(): Promise<void>;
39
+ componentDidLoad(): Promise<void>;
40
+ disconnectedCallback(): void;
41
+ render(): VNode;
42
+ private renderFieldType;
43
+ private renderFieldAlias;
44
+ private renderFieldDescription;
45
+ private renderFieldValueType;
46
+ private renderFieldSampleValue;
47
+ private renderFieldFormat;
48
+ private renderFieldStatistics;
49
+ private renderNoStatistics;
50
+ private renderStatistics;
51
+ private renderNumberStatistics;
52
+ private renderStringStatistics;
53
+ private renderDateStatistics;
54
+ private renderTopValues;
55
+ private renderNullValues;
56
+ private _getFieldTypeLabel;
57
+ private _getStatisticsType;
58
+ private _getFieldValueTypeCamelCase;
59
+ private _getDisplayString;
60
+ private _getDateString;
61
+ private _getTimestampOffsetString;
62
+ private _getDateOnlyString;
63
+ private _getTimeOnlyString;
64
+ private _getGuidString;
65
+ private _getNumberString;
66
+ private _printNumValue;
67
67
  }
68
68
  export {};