@arcgis/map-components 5.1.0-next.120 → 5.1.0-next.122

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 (183) hide show
  1. package/dist/cdn/{ZZORY2UI.js → 2GDVOK6V.js} +1 -1
  2. package/dist/cdn/3M2OCTTN.js +2 -0
  3. package/dist/cdn/43B43AY2.js +2 -0
  4. package/dist/cdn/{A6P7RDWG.js → 4AQ43ENS.js} +1 -1
  5. package/dist/cdn/{BQDL5AKD.js → 6RUN7OSM.js} +1 -1
  6. package/dist/cdn/{6OHXFH4A.js → 6SY6H3FZ.js} +1 -1
  7. package/dist/cdn/{JA7RPLTP.js → 6WV5RHUP.js} +2 -2
  8. package/dist/cdn/{QZMJWS2B.js → ADWNNODV.js} +1 -1
  9. package/dist/cdn/CH6EZH77.js +2 -0
  10. package/dist/cdn/CNNVHQTZ.js +4 -0
  11. package/dist/cdn/CPQRCYUD.js +2 -0
  12. package/dist/cdn/CRJEQWDO.js +2 -0
  13. package/dist/cdn/DCNSXS23.js +2 -0
  14. package/dist/cdn/DZMN2UH5.js +2 -0
  15. package/dist/cdn/EJAWFQRM.js +2 -0
  16. package/dist/cdn/FKJU4SJG.js +2 -0
  17. package/dist/cdn/FWSLFWOH.js +2 -0
  18. package/dist/cdn/{Q4753YCY.js → GD7MA2TO.js} +1 -1
  19. package/dist/cdn/HBE3W2BQ.js +2 -0
  20. package/dist/cdn/IJYN5YEP.js +2 -0
  21. package/dist/cdn/JOOGE4FT.js +2 -0
  22. package/dist/cdn/{VRLY2I2M.js → MASUN7EL.js} +1 -1
  23. package/dist/cdn/{X5TD4KCW.js → MZBCMFYH.js} +1 -1
  24. package/dist/cdn/{FMTWGY6C.js → NJHOCKLL.js} +1 -1
  25. package/dist/cdn/OZJJULKI.js +2 -0
  26. package/dist/cdn/{J4TYGEI3.js → RIRETHHL.js} +1 -1
  27. package/dist/cdn/{PO3NMPKS.js → SXWQBHG3.js} +1 -1
  28. package/dist/cdn/TCUFYIIZ.js +2 -0
  29. package/dist/cdn/VHJSRDE4.js +2 -0
  30. package/dist/cdn/{7I7G7KRT.js → W4SQ3QCZ.js} +1 -1
  31. package/dist/cdn/WFL2WTJK.js +2 -0
  32. package/dist/cdn/X5UAYUNL.js +2 -0
  33. package/dist/cdn/{L77C4X4F.js → XYUG5M3W.js} +1 -1
  34. package/dist/cdn/assets/feature-templates/t9n/messages.ar.json +1 -0
  35. package/dist/cdn/assets/feature-templates/t9n/messages.bg.json +1 -0
  36. package/dist/cdn/assets/feature-templates/t9n/messages.bs.json +1 -0
  37. package/dist/cdn/assets/feature-templates/t9n/messages.ca.json +1 -0
  38. package/dist/cdn/assets/feature-templates/t9n/messages.cs.json +1 -0
  39. package/dist/cdn/assets/feature-templates/t9n/messages.da.json +1 -0
  40. package/dist/cdn/assets/feature-templates/t9n/messages.de.json +1 -0
  41. package/dist/cdn/assets/feature-templates/t9n/messages.el.json +1 -0
  42. package/dist/cdn/assets/feature-templates/t9n/messages.en.json +1 -0
  43. package/dist/cdn/assets/feature-templates/t9n/messages.es.json +1 -0
  44. package/dist/cdn/assets/feature-templates/t9n/messages.et.json +1 -0
  45. package/dist/cdn/assets/feature-templates/t9n/messages.fi.json +1 -0
  46. package/dist/cdn/assets/feature-templates/t9n/messages.fr.json +1 -0
  47. package/dist/cdn/assets/feature-templates/t9n/messages.he.json +1 -0
  48. package/dist/cdn/assets/feature-templates/t9n/messages.hr.json +1 -0
  49. package/dist/cdn/assets/feature-templates/t9n/messages.hu.json +1 -0
  50. package/dist/cdn/assets/feature-templates/t9n/messages.id.json +1 -0
  51. package/dist/cdn/assets/feature-templates/t9n/messages.it.json +1 -0
  52. package/dist/cdn/assets/feature-templates/t9n/messages.ja.json +1 -0
  53. package/dist/cdn/assets/feature-templates/t9n/messages.ko.json +1 -0
  54. package/dist/cdn/assets/feature-templates/t9n/messages.lt.json +1 -0
  55. package/dist/cdn/assets/feature-templates/t9n/messages.lv.json +1 -0
  56. package/dist/cdn/assets/feature-templates/t9n/messages.nl.json +1 -0
  57. package/dist/cdn/assets/feature-templates/t9n/messages.no.json +1 -0
  58. package/dist/cdn/assets/feature-templates/t9n/messages.pl.json +1 -0
  59. package/dist/cdn/assets/feature-templates/t9n/messages.pt-BR.json +1 -0
  60. package/dist/cdn/assets/feature-templates/t9n/messages.pt-PT.json +1 -0
  61. package/dist/cdn/assets/feature-templates/t9n/messages.ro.json +1 -0
  62. package/dist/cdn/assets/feature-templates/t9n/messages.ru.json +1 -0
  63. package/dist/cdn/assets/feature-templates/t9n/messages.sk.json +1 -0
  64. package/dist/cdn/assets/feature-templates/t9n/messages.sl.json +1 -0
  65. package/dist/cdn/assets/feature-templates/t9n/messages.sr.json +1 -0
  66. package/dist/cdn/assets/feature-templates/t9n/messages.sv.json +1 -0
  67. package/dist/cdn/assets/feature-templates/t9n/messages.th.json +1 -0
  68. package/dist/cdn/assets/feature-templates/t9n/messages.tr.json +1 -0
  69. package/dist/cdn/assets/feature-templates/t9n/messages.uk.json +1 -0
  70. package/dist/cdn/assets/feature-templates/t9n/messages.vi.json +1 -0
  71. package/dist/cdn/assets/feature-templates/t9n/messages.zh-CN.json +1 -0
  72. package/dist/cdn/assets/feature-templates/t9n/messages.zh-HK.json +1 -0
  73. package/dist/cdn/assets/feature-templates/t9n/messages.zh-TW.json +1 -0
  74. package/dist/cdn/index.js +1 -1
  75. package/dist/cdn/main.css +1 -1
  76. package/dist/chunks/useArcgisViewReadyError.js +60 -111
  77. package/dist/components/arcgis-daylight/customElement.d.ts +1 -0
  78. package/dist/components/arcgis-daylight/customElement.js +98 -112
  79. package/dist/components/arcgis-feature-table/customElement.d.ts +8 -0
  80. package/dist/components/arcgis-feature-table/customElement.js +28 -28
  81. package/dist/components/arcgis-feature-templates/TemplateItem.d.ts +33 -0
  82. package/dist/components/arcgis-feature-templates/customElement.d.ts +275 -0
  83. package/dist/components/arcgis-feature-templates/customElement.js +560 -0
  84. package/dist/components/arcgis-feature-templates/index.d.ts +1 -0
  85. package/dist/components/arcgis-feature-templates/index.js +13 -0
  86. package/dist/components/arcgis-features-next/customElement.d.ts +2 -0
  87. package/dist/components/arcgis-features-next/customElement.js +69 -63
  88. package/dist/components/arcgis-features-next/index.js +1 -0
  89. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +23 -23
  90. package/dist/components/arcgis-link-chart/customElement.d.ts +11 -4
  91. package/dist/components/arcgis-link-chart/customElement.js +11 -11
  92. package/dist/components/arcgis-map/customElement.d.ts +10 -3
  93. package/dist/components/arcgis-map/customElement.js +9 -9
  94. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +3 -3
  95. package/dist/components/arcgis-paste/PasteViewModel.d.ts +1 -1
  96. package/dist/components/arcgis-paste/customElement.js +27 -38
  97. package/dist/components/arcgis-paste/index.js +1 -1
  98. package/dist/components/arcgis-popup/customElement.d.ts +2 -0
  99. package/dist/components/arcgis-popup/customElement.js +9 -9
  100. package/dist/components/arcgis-scene/customElement.d.ts +10 -3
  101. package/dist/components/arcgis-scene/customElement.js +24 -24
  102. package/dist/components/arcgis-search/customElement.js +6 -6
  103. package/dist/components/arcgis-template-image/customElement.d.ts +14 -0
  104. package/dist/components/arcgis-template-image/customElement.js +119 -0
  105. package/dist/components/arcgis-template-image/index.d.ts +1 -0
  106. package/dist/components/arcgis-template-image/index.js +1 -0
  107. package/dist/components/arcgis-video/customElement.d.ts +15 -2
  108. package/dist/components/arcgis-video/customElement.js +5 -5
  109. package/dist/components/arcgis-video-player/customElement.d.ts +7 -0
  110. package/dist/components/arcgis-video-player/customElement.js +14 -11
  111. package/dist/components/arcgis-video-player-controls-group/customElement.js +19 -17
  112. package/dist/components/arcgis-video-player-settings/customElement.js +20 -18
  113. package/dist/components/arcgis-video-player-settings/index.js +1 -0
  114. package/dist/docs/api.json +1 -1
  115. package/dist/docs/docs.json +1 -1
  116. package/dist/docs/vscode.html-custom-data.json +1 -1
  117. package/dist/docs/web-types.json +1 -1
  118. package/dist/index.d.ts +14 -0
  119. package/dist/loader.js +10 -8
  120. package/dist/types/lumina.d.ts +18 -4
  121. package/dist/types/preact.d.ts +20 -4
  122. package/dist/types/react.d.ts +22 -4
  123. package/dist/types/stencil.d.ts +18 -4
  124. package/package.json +4 -4
  125. package/dist/cdn/3X33RWNO.js +0 -2
  126. package/dist/cdn/5QATVROE.js +0 -2
  127. package/dist/cdn/CLFGHCMB.js +0 -2
  128. package/dist/cdn/COKJF3EH.js +0 -2
  129. package/dist/cdn/E33LBHQA.js +0 -4
  130. package/dist/cdn/E6IL4F2M.js +0 -2
  131. package/dist/cdn/G56TPBPA.js +0 -2
  132. package/dist/cdn/GCFIJLPC.js +0 -2
  133. package/dist/cdn/JUIA2RF6.js +0 -2
  134. package/dist/cdn/L4RTHLN4.js +0 -2
  135. package/dist/cdn/OYP56BNC.js +0 -2
  136. package/dist/cdn/QKPKTEN4.js +0 -2
  137. package/dist/cdn/R45DWBFZ.js +0 -2
  138. package/dist/cdn/RPMEM4UV.js +0 -2
  139. package/dist/cdn/RZHHKFQG.js +0 -2
  140. package/dist/cdn/SM4Y3DFU.js +0 -2
  141. package/dist/cdn/ZVTOXQKI.js +0 -2
  142. /package/dist/cdn/{GJ5TOPT3.js → 2CZRXPMB.js} +0 -0
  143. /package/dist/cdn/{DPU3VHST.js → 2RIDZVJS.js} +0 -0
  144. /package/dist/cdn/{SUNN2JJ2.js → 3DVOY4BQ.js} +0 -0
  145. /package/dist/cdn/{NDMFLRTB.js → 3NSVHKCX.js} +0 -0
  146. /package/dist/cdn/{O6LYJEON.js → 3WCEFKJX.js} +0 -0
  147. /package/dist/cdn/{MC2YUGXZ.js → 3X2K6TOS.js} +0 -0
  148. /package/dist/cdn/{KCP3JSEI.js → 5U45EC5U.js} +0 -0
  149. /package/dist/cdn/{OKNXBCUX.js → 6TIWCGNI.js} +0 -0
  150. /package/dist/cdn/{U3TSRIEI.js → ACZBI3TS.js} +0 -0
  151. /package/dist/cdn/{L54L4XXE.js → BALE27RC.js} +0 -0
  152. /package/dist/cdn/{W52ULASU.js → CSLP3Y5Q.js} +0 -0
  153. /package/dist/cdn/{URTOVAT4.js → FVOWGP5P.js} +0 -0
  154. /package/dist/cdn/{772IZDK4.js → HHVQ6PZP.js} +0 -0
  155. /package/dist/cdn/{7LWMV5A2.js → IIQPDHOL.js} +0 -0
  156. /package/dist/cdn/{KDLK5QD5.js → KODINAEM.js} +0 -0
  157. /package/dist/cdn/{KRMRVJFP.js → KOSOMJZF.js} +0 -0
  158. /package/dist/cdn/{7IB6AI2V.js → LCL6A5WY.js} +0 -0
  159. /package/dist/cdn/{VUQCK6IF.js → M3RQA7LC.js} +0 -0
  160. /package/dist/cdn/{GNOAUTDK.js → NFC5RKO7.js} +0 -0
  161. /package/dist/cdn/{NRMPFAXY.js → NY56F774.js} +0 -0
  162. /package/dist/cdn/{IL63OQEZ.js → OKZBZTFG.js} +0 -0
  163. /package/dist/cdn/{XUZ43MBE.js → PFWDUC5T.js} +0 -0
  164. /package/dist/cdn/{KOZ67YXN.js → PS4ID2TE.js} +0 -0
  165. /package/dist/cdn/{AVFPVB7U.js → QBLPJW3F.js} +0 -0
  166. /package/dist/cdn/{UHA7OYN5.js → R6G7YQAK.js} +0 -0
  167. /package/dist/cdn/{TKKD4742.js → RT5PKDE3.js} +0 -0
  168. /package/dist/cdn/{H76ZEZDT.js → S372YWXF.js} +0 -0
  169. /package/dist/cdn/{3MSBRZSL.js → S6ARJLXF.js} +0 -0
  170. /package/dist/cdn/{GMSP2RYI.js → ST4PUEOI.js} +0 -0
  171. /package/dist/cdn/{ZRRRSIMH.js → SYVTOG2B.js} +0 -0
  172. /package/dist/cdn/{FV53P5VQ.js → U5WUAQYQ.js} +0 -0
  173. /package/dist/cdn/{F6ZBUVU3.js → UGILYDTR.js} +0 -0
  174. /package/dist/cdn/{NI4PVDRC.js → VOI7MTIP.js} +0 -0
  175. /package/dist/cdn/{QGYTLHWY.js → VZLSY2HC.js} +0 -0
  176. /package/dist/cdn/{KAJYVAAI.js → WDDHDMHF.js} +0 -0
  177. /package/dist/cdn/{HEP3BHHQ.js → XPGK3YXK.js} +0 -0
  178. /package/dist/cdn/{2KBFRAA3.js → XQ5DUVE2.js} +0 -0
  179. /package/dist/cdn/{LSPV526S.js → XVEQWFE4.js} +0 -0
  180. /package/dist/cdn/{CK5XEDZS.js → YDOV4SQ2.js} +0 -0
  181. /package/dist/cdn/{PZSA4K32.js → YGVTAUE6.js} +0 -0
  182. /package/dist/cdn/{7D5T777O.js → YSJ2NU2N.js} +0 -0
  183. /package/dist/cdn/{OWF5OCZY.js → ZHJBZYZ4.js} +0 -0
@@ -10,10 +10,10 @@ import { classes as y } from "@arcgis/toolkit/dom";
10
10
  import { g as C } from "../../chunks/globalCss.js";
11
11
  import { isAbortError as $ } from "@arcgis/core/core/promiseUtils.js";
12
12
  import { m as R } from "../../chunks/useViewModel.js";
13
- import { s as E } from "../../chunks/sr.js";
13
+ import { s as k } from "../../chunks/sr.js";
14
14
  import { substitute as h } from "@arcgis/core/intl.js";
15
- import { usePropertyChange as k } from "@arcgis/lumina/controllers";
16
- import { u as D } from "../../chunks/useT9n.js";
15
+ import { usePropertyChange as D } from "@arcgis/lumina/controllers";
16
+ import { u as E } from "../../chunks/useT9n.js";
17
17
  import { watch as d, on as T } from "@arcgis/core/core/reactiveUtils.js";
18
18
  const A = _`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-hidden{display:none!important}:host{width:240px}.root{--arcgis-internal-search-width: 240px;display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;width:100%}.dropdown{--calcite-color-border-1: var(--calcite-color-border-input);--calcite-dropdown-width: var(--arcgis-internal-search-width);width:31px}.dropdown calcite-button{--calcite-offset-invert-focus: 1}.autocomplete{flex:1}.container{display:flex;position:relative;flex:1 0 100%;flex-flow:row nowrap;align-items:stretch}.form{display:flex;flex:1 0;flex-flow:row nowrap;align-items:stretch;margin:0;padding:0}.submit-button{position:absolute;margin:-1px;border-width:0;padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;clip:rect(0,0,0,0)}`, L = R(w);
19
19
  function g(a) {
@@ -24,13 +24,13 @@ class z extends f {
24
24
  super(...arguments), this.viewModel = L(this), this._currentLocationValue = "search-use-current-location", this._autocompleteEl = void 0, this._searchResultRendererEl = void 0, this._searchResultRendererContentEl = void 0, this._suggestController = void 0, this._searchController = void 0, this._lastSearchTerm = "", this._handleSelectResult = (e) => {
25
25
  const { name: t } = e.detail.result;
26
26
  this._selectedMessage = h(this.messages.resultSelected, { resultName: t });
27
- }, this.messages = D({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = k()("state"), this.arcgisReady = b(), this.arcgisSearchClear = l(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = l(() => this.viewModel, "search-complete"), this.arcgisSearchStart = l(() => this.viewModel, "search-start"), this.arcgisSelectResult = l(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = l(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = l(() => this.viewModel, "suggest-start");
27
+ }, this.messages = E({ blocking: !0 }), this._locateFailed = !1, this._showNoResults = !1, this.view = this.viewModel.view, this.goToOverride = this.viewModel.goToOverride, this.icon = "search", this.activeMenu = "none", this.activeSourceIndex = this.viewModel.activeSourceIndex, this.allPlaceholder = this.viewModel.allPlaceholder, this.allSources = this.viewModel.allSources, this.autoNavigateDisabled = this.viewModel.autoNavigate, this.autoSelectDisabled = this.viewModel.autoSelect, this.defaultSources = this.viewModel.defaultSources, this.disabled = !1, this.includeDefaultSourcesDisabled = this.viewModel.includeDefaultSources, this.locationDisabled = this.viewModel.locationEnabled, this.maxResults = this.viewModel.maxResults, this.maxSuggestions = this.viewModel.maxSuggestions, this.minSuggestCharacters = this.viewModel.minSuggestCharacters, this.popupDisabled = this.viewModel.popupEnabled, this.popupTemplate = this.viewModel.popupTemplate, this.portal = this.viewModel.portal, this.resultGraphic = this.viewModel.resultGraphic, this.resultGraphicDisabled = this.viewModel.resultGraphicEnabled, this.results = this.viewModel.results, this.searchAllDisabled = this.viewModel.searchAllEnabled, this.searchTerm = this.viewModel.searchTerm, this.selectedResult = this.viewModel.selectedResult, this.sources = this.viewModel.sources, this.suggestions = this.viewModel.suggestions, this.suggestionsDisabled = this.viewModel.suggestionsEnabled, this.topLayerDisabled = !1, this.autoDestroyDisabled = !1, this.state = this.viewModel.state, this.arcgisPropertyChange = D()("state"), this.arcgisReady = b(), this.arcgisSearchClear = l(() => this.viewModel, "search-clear"), this.arcgisSearchComplete = l(() => this.viewModel, "search-complete"), this.arcgisSearchStart = l(() => this.viewModel, "search-start"), this.arcgisSelectResult = l(() => this.viewModel, "select-result"), this.arcgisSuggestComplete = l(() => this.viewModel, "suggest-complete"), this.arcgisSuggestStart = l(() => this.viewModel, "suggest-start");
28
28
  }
29
29
  static {
30
30
  this.properties = { _selectedMessage: 16, messages: 16, _locateFailed: 16, _showNoResults: 16, _isDisabled: 16, _showCurrentLocation: 16, _effectiveActiveMenu: 16, view: 0, referenceElement: 1, goToOverride: 0, icon: 1, activeMenu: 1, activeSource: 32, activeSourceIndex: 9, allPlaceholder: 1, allSources: 0, autoNavigateDisabled: 5, autoSelectDisabled: 5, defaultSources: 0, disabled: 5, includeDefaultSourcesDisabled: 5, locationDisabled: 5, maxResults: 9, maxSuggestions: 9, minSuggestCharacters: 9, popupDisabled: 5, popupTemplate: 0, portal: 0, resultGraphic: 0, resultGraphicDisabled: 5, results: 0, searchAllDisabled: 5, searchTerm: 1, selectedResult: 0, sources: 0, suggestions: 32, suggestionsDisabled: 5, topLayerDisabled: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, state: 32 };
31
31
  }
32
32
  static {
33
- this.styles = [A, E];
33
+ this.styles = [A, k];
34
34
  }
35
35
  get _isDisabled() {
36
36
  const { state: e } = this.viewModel;
@@ -106,7 +106,7 @@ class z extends f {
106
106
  _openPopup() {
107
107
  if (g(this.referenceElement)) {
108
108
  const { resultGraphic: e, resultLocation: t } = this.viewModel, i = { features: e ? [e] : [], location: t };
109
- this.referenceElement?.openPopup(i), this.referenceElement?.focusPopup();
109
+ this.referenceElement?.openPopup(i);
110
110
  } else if (this.view) {
111
111
  const { resultGraphic: e, resultLocation: t } = this.viewModel;
112
112
  this.view.openPopup({
@@ -0,0 +1,14 @@
1
+ /// <reference path="../../index.d.ts" />
2
+ import type TemplateItem from "../arcgis-feature-templates/TemplateItem.js";
3
+ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
+
5
+ /**
6
+ * The Template Image component generates a feature swatch representing a
7
+ * Feature Template.
8
+ *
9
+ * @since 5.1
10
+ * @internal
11
+ */
12
+ export abstract class ArcgisTemplateImage extends LitElement {
13
+ accessor template: TemplateItem | undefined;
14
+ }
@@ -0,0 +1,119 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
+ import { c as h } from "../../chunks/runtime.js";
3
+ import g from "@arcgis/core/Graphic.js";
4
+ import { css as p, html as s } from "lit";
5
+ import { createRef as d, ref as f } from "lit/directives/ref.js";
6
+ import { unsafeHTML as _ } from "lit/directives/unsafe-html.js";
7
+ import { LitElement as b, safeStyleMap as y } from "@arcgis/lumina";
8
+ import * as l from "@arcgis/toolkit/log";
9
+ import { isSharedTemplateMetadata as u, isStandardFeatureTemplate as v } from "@arcgis/core/applications/Components/templateUtils.js";
10
+ import "@arcgis/core/editing/sharedTemplates/SharedTemplateMetadata.js";
11
+ import { renderPreviewHTML as w } from "@arcgis/core/symbols/support/symbolUtils.js";
12
+ const I = p`.esri-thumbnail-preview{width:3%;height:32px;background-size:contain;background-position:center}.template-image-container{width:32px;height:32px;display:flex;align-items:center;justify-content:center}`;
13
+ async function D(e, t, i) {
14
+ if (u(e) && e.thumbnail) {
15
+ const c = `data:image/png;base64,${e.thumbnail.imageData}`;
16
+ return s`<div class="esri-thumbnail-preview" style=${y({ backgroundImage: `url(${c})` })}></div>`;
17
+ }
18
+ const r = await x(t, e);
19
+ if (r == null)
20
+ return null;
21
+ const n = { maxSize: 24, ariaLabel: i?.ariaLabel };
22
+ v(e) && "renderer" in t && t.renderer?.type === "dictionary" && (n.fieldMap = t.renderer.fieldMap ?? void 0, n.feature = {
23
+ attributes: e.prototype.attributes ?? {}
24
+ });
25
+ const o = await w(r, n);
26
+ return o ? s`${_(o.outerHTML)}` : null;
27
+ }
28
+ async function x(e, t) {
29
+ if (u(t))
30
+ return await m(e);
31
+ if ("renderer" in e && e.renderer) {
32
+ const { renderer: i } = e, r = new g({ attributes: t.prototype.attributes });
33
+ if ("getSymbolAsync" in i) {
34
+ const a = await i.getSymbolAsync(r);
35
+ if (a)
36
+ return a;
37
+ }
38
+ }
39
+ return await m(e);
40
+ }
41
+ async function T(e) {
42
+ const t = e === "point" || e === "multipoint" ? await import("@arcgis/core/symbols/SimpleMarkerSymbol.js") : e === "polyline" ? await import("@arcgis/core/symbols/SimpleLineSymbol.js") : e === "polygon" || e === "mesh" || e === "multipatch" ? await import("@arcgis/core/symbols/SimpleFillSymbol.js") : null;
43
+ return t ? new t.default() : null;
44
+ }
45
+ async function m(e) {
46
+ return "geometryType" in e && e.geometryType ? await T(e.geometryType) : null;
47
+ }
48
+ class C extends b {
49
+ constructor() {
50
+ super(...arguments), this._lastRun = 0, this._attempted = !1, this._isCurrentlyInView = !1, this._intersectionObserver = null, this._imageContainerDiv = d(), this._generatedImageData = null;
51
+ }
52
+ static {
53
+ this.properties = { _generatedImageData: 16, template: 0 };
54
+ }
55
+ static {
56
+ this.styles = I;
57
+ }
58
+ get rootLayer() {
59
+ return this.template?.layer?.type === "subtype-sublayer" ? this.template.layer.parent : this.template?.layer;
60
+ }
61
+ willUpdate(t) {
62
+ t.has("template") && (this.hasUpdated || this.template !== null) && this._resetData();
63
+ }
64
+ updated() {
65
+ !this._attempted && this._isCurrentlyInView && (this._attempted = !0, this._handleImage().catch((t) => {
66
+ l.log("warn", this, "Failed processing image");
67
+ }));
68
+ }
69
+ loaded() {
70
+ this.manager.onLifecycle(() => (this._addIntersectionObserver(), () => {
71
+ this._removeIntersectionObserver();
72
+ }));
73
+ }
74
+ _resetData() {
75
+ this._generatedImageData = null, this._attempted = !1;
76
+ }
77
+ async _generateImage() {
78
+ return this.template ? await D(this.template.template, this.template.layer) : "";
79
+ }
80
+ async _handleImage() {
81
+ const t = ++this._lastRun;
82
+ if (!this._generatedImageData || this._generatedImageData === "")
83
+ try {
84
+ const i = await this._generateImage();
85
+ if (this._lastRun !== t || this._generatedImageData === i)
86
+ return;
87
+ this._generatedImageData = i;
88
+ } finally {
89
+ this._attempted = !0;
90
+ }
91
+ }
92
+ _addIntersectionObserver() {
93
+ const t = {
94
+ // If the image gets within 50px in the Y axis, start the download.
95
+ rootMargin: "50px 0px",
96
+ threshold: 0.01
97
+ };
98
+ this._imageContainerDiv.value && requestAnimationFrame(() => {
99
+ this.isConnected && (this._intersectionObserver = new IntersectionObserver((i) => {
100
+ let r = !1;
101
+ i.forEach((a) => {
102
+ a.intersectionRatio > 0 && !r ? (r = !0, this._isCurrentlyInView = !0, this._handleImage().catch((n) => {
103
+ l.log("warn", this, "Failed processing image");
104
+ })) : this._isCurrentlyInView = !1;
105
+ });
106
+ }, t), this._intersectionObserver?.observe(this._imageContainerDiv.value));
107
+ });
108
+ }
109
+ _removeIntersectionObserver() {
110
+ this._intersectionObserver?.disconnect(), this._intersectionObserver = null;
111
+ }
112
+ render() {
113
+ return s`<div class="template-image-container" ${f(this._imageContainerDiv)}>${this._generatedImageData ?? ""}</div>`;
114
+ }
115
+ }
116
+ h("arcgis-template-image", C);
117
+ export {
118
+ C as ArcgisTemplateImage
119
+ };
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -0,0 +1 @@
1
+ export * from "./customElement.js";
@@ -64,13 +64,26 @@ export abstract class ArcgisVideo extends LitElement {
64
64
  * @since 5.0
65
65
  */
66
66
  accessor attributionMode: "dark" | "light" | null | undefined;
67
- /** @default false */
67
+ /**
68
+ * If true, the component will not be destroyed automatically when it is
69
+ * disconnected from the document. This is useful when you want to move the
70
+ * component to a different place on the page, or temporarily hide it. If this
71
+ * is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-video/#destroy) method when you are done to
72
+ * prevent memory leaks.
73
+ *
74
+ * @default false
75
+ */
68
76
  accessor autoDestroyDisabled: boolean;
69
77
  /** The [VideoLayer](https://developers.arcgis.com/javascript/latest/references/core/layers/VideoLayer/) to display in the view. */
70
78
  accessor layer: VideoLayer | null | undefined;
71
79
  /** A reference to the associated [Map](https://developers.arcgis.com/javascript/latest/references/core/Map/) or [WebMap](https://developers.arcgis.com/javascript/latest/references/core/WebMap/). */
72
80
  accessor map: Map | WebMap | null | undefined;
73
- /** @default false */
81
+ /**
82
+ * Indicates whether map graphics from the reference map element are overlaid on the video player's content.
83
+ *
84
+ * @default false
85
+ * @since 5.1
86
+ */
74
87
  accessor operationalDataVisible: boolean;
75
88
  /**
76
89
  * When `true`, this property indicates whether the view successfully satisfied all dependencies,
@@ -5,20 +5,20 @@ import { useDirection as n } from "@arcgis/lumina/controllers";
5
5
  import { watch as e } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import l from "@arcgis/core/views/VideoView.js";
7
7
  import { LitElement as c, createEvent as m, safeClassMap as d } from "@arcgis/lumina";
8
- import { makeAccessorController as f } from "@arcgis/lumina/controllers/accessor";
8
+ import { makeAccessorController as p } from "@arcgis/lumina/controllers/accessor";
9
9
  import { createRef as s, ref as a } from "lit/directives/ref.js";
10
10
  import { C as r } from "../../chunks/resources.js";
11
- import { c as p, s as y, S as w } from "../../chunks/slots.js";
11
+ import { c as f, s as y, S as w } from "../../chunks/slots.js";
12
12
  import { s as v } from "../../chunks/esri-main.js";
13
- const u = h`:host{width:100%;height:100%}`, R = f(l, {
13
+ const u = h`:host{width:100%;height:100%}`, R = p(l, {
14
14
  omitProps: ["container", "navigation", "scale", "ui"]
15
15
  });
16
16
  class g extends c {
17
17
  constructor() {
18
- super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = p(), this.autoDestroyDisabled = !1, this.operationalDataVisible = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.arcgisViewReadyChange = m();
18
+ super(), this._containerRef = s(), this._direction = n(), this._mapRef = s(), this._slotGroupRefs = f(), this.autoDestroyDisabled = !1, this.view = R(this), this.attributionMode = this.view.attributionMode, this.ready = this.view.ready, this.layer = this.view.layer, this.map = this.view.map, this.operationalDataVisible = this.view.operationalDataVisible, this.arcgisViewReadyChange = m();
19
19
  }
20
20
  static {
21
- this.properties = { autoDestroyDisabled: 5, operationalDataVisible: 5, view: 32, aria: 0, attributionMode: 1, ready: 36, layer: 0, map: 0 };
21
+ this.properties = { autoDestroyDisabled: 5, view: 32, aria: 0, attributionMode: 1, ready: 36, layer: 0, map: 0, operationalDataVisible: 5 };
22
22
  }
23
23
  static {
24
24
  this.styles = [v, y, u];
@@ -227,6 +227,13 @@ export abstract class ArcgisVideoPlayer extends LitElement {
227
227
  video: string;
228
228
  videoPlayer: string;
229
229
  }>;
230
+ /**
231
+ * Indicates whether map graphics from the reference map element are overlaid on the video player's content.
232
+ *
233
+ * @default false
234
+ * @since 5.1
235
+ */
236
+ accessor operationalDataVisible: boolean;
230
237
  /**
231
238
  * By assigning the `id` attribute of the Map or Scene component to this property, you can position a child component anywhere in the DOM while still maintaining a connection to the Map or Scene.
232
239
  *
@@ -5,19 +5,19 @@ import { watch as t } from "@arcgis/core/core/reactiveUtils.js";
5
5
  import f from "@arcgis/core/widgets/VideoPlayer/VideoPlayerViewModel.js";
6
6
  import { LitElement as g, createEvent as l, safeClassMap as m } from "@arcgis/lumina";
7
7
  import { usePropertyChange as v } from "@arcgis/lumina/controllers";
8
- import { classes as _ } from "@arcgis/toolkit/dom";
9
- import { createRef as w, ref as p } from "lit/directives/ref.js";
10
- import { u as y } from "../../chunks/useT9n.js";
11
- import { m as $ } from "../../chunks/useViewModel.js";
12
- import { g as V } from "../../chunks/globalCss.js";
8
+ import { classes as p } from "@arcgis/toolkit/dom";
9
+ import { createRef as _, ref as y } from "lit/directives/ref.js";
10
+ import { u as w } from "../../chunks/useT9n.js";
11
+ import { m as V } from "../../chunks/useViewModel.js";
12
+ import { g as $ } from "../../chunks/globalCss.js";
13
13
  import { n as r } from "../../chunks/video-utils.js";
14
- const M = u`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`, b = $(f);
14
+ const M = u`:host{--arcgis-internal-video-player-controls-spacing: 16px;width:531px;height:100%}:host([inline]){width:auto;height:auto}.root,.content{height:100%}.inline{display:flex;gap:var(--calcite-spacing-xs);background-color:var(--calcite-color-foreground-1);padding:var(--calcite-spacing-xxs)}.footer{flex:1}arcgis-video{display:flex;flex:1 1 auto;aspect-ratio:16 / 9;min-height:0}`, b = V(f);
15
15
  class T extends g {
16
16
  constructor() {
17
- super(...arguments), this.messages = y({ blocking: !0 }), this.viewModel = b(this), this._videoViewRef = w(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this.icon = "video-web", this.state = this.viewModel.state, this.layer = this.viewModel.layer, this.autoDestroyDisabled = !1, this.inline = !1, this.showFullscreenToggle = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = v()("state", "layer"), this.arcgisReady = l(), this.arcgisVideoReady = l();
17
+ super(...arguments), this.messages = w({ blocking: !0 }), this.viewModel = b(this), this._videoViewRef = _(), this._metadataVisible = !1, this._duration = 0, this._currentTime = 0, this._bufferedValue = 0, this._currentValue = 0, this._isBuffering = !1, this._videoViewReady = !1, this._loopPlayback = !1, this.icon = "video-web", this.state = this.viewModel.state, this.layer = this.viewModel.layer, this.autoDestroyDisabled = !1, this.inline = !1, this.showFullscreenToggle = !1, this.operationalDataVisible = !1, this.hideHeader = !1, this.view = this.viewModel.view, this.arcgisPropertyChange = v()("state", "layer"), this.arcgisReady = l(), this.arcgisVideoReady = l();
18
18
  }
19
19
  static {
20
- this.properties = { _metadataVisible: 16, _duration: 16, _currentTime: 16, _bufferedValue: 16, _currentValue: 16, _isBuffering: 16, _videoViewReady: 16, _layerTitle: 16, _isLive: 16, referenceElement: 1, icon: 1, state: 32, followingMode: 1, layer: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 3, inline: 7, showFullscreenToggle: 5, hideHeader: 5, view: 0 };
20
+ this.properties = { _metadataVisible: 16, _duration: 16, _currentTime: 16, _bufferedValue: 16, _currentValue: 16, _isBuffering: 16, _videoViewReady: 16, _layerTitle: 16, _isLive: 16, _loopPlayback: 16, referenceElement: 1, icon: 1, state: 32, followingMode: 1, layer: 0, autoDestroyDisabled: 5, messageOverrides: 0, label: 3, inline: 7, showFullscreenToggle: 5, operationalDataVisible: 5, hideHeader: 5, view: 0 };
21
21
  }
22
22
  static {
23
23
  this.styles = M;
@@ -43,11 +43,14 @@ class T extends g {
43
43
  t(() => this.layer?.isLive, (i) => {
44
44
  this._isLive = i ?? void 0;
45
45
  }, { initial: !0 }),
46
+ t(() => this.layer?.playbackRate, (i) => {
47
+ typeof i == "number" && this.viewModel.changePlaybackSpeed(i);
48
+ }, { initial: !0 }),
46
49
  t(() => this.viewModel.view?.map, () => this.requestUpdate())
47
50
  ]);
48
51
  }
49
52
  render() {
50
- return e`<div class=${m(_(this.inline ? "inline" : "root", V.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : e`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? e`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? e`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : e`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : e`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
53
+ return e`<div class=${m(p(this.inline ? "inline" : "root", $.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : e`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? e`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? e`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : e`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : e`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
51
54
  }
52
55
  _renderLoadingScrim() {
53
56
  return this._videoViewReady ? null : e`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
@@ -56,9 +59,9 @@ class T extends g {
56
59
  return this._isBuffering ? e`<calcite-progress type=indeterminate></calcite-progress>` : null;
57
60
  }
58
61
  _renderVideoSection() {
59
- return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} @arcgisViewReadyChange=${() => {
62
+ return e`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} .operationalDataVisible=${this.operationalDataVisible} @arcgisViewReadyChange=${() => {
60
63
  this._videoViewReady = !0, this.arcgisVideoReady.emit();
61
- }} ${p(this._videoViewRef)}></arcgis-video>`;
64
+ }} ${y(this._videoViewRef)}></arcgis-video>`;
62
65
  }
63
66
  _renderSlider() {
64
67
  return this._isLive ? null : e`<arcgis-video-player-slider .buffered=${this._bufferedValue} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
@@ -1,12 +1,12 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as p } from "../../chunks/runtime.js";
2
+ import { c as b } from "../../chunks/runtime.js";
3
3
  import { html as i } from "lit";
4
- import { watch as b } from "@arcgis/core/core/reactiveUtils.js";
5
- import { LitElement as w } from "@arcgis/lumina";
6
- function u(o) {
7
- return o.followingMode === "none" ? "circle-disallowed" : o.followingMode === "follow-sensor" ? "zoom-to-object" : o.followingMode === "follow-frame" ? "follow" : "video";
4
+ import { watch as w } from "@arcgis/core/core/reactiveUtils.js";
5
+ import { LitElement as h } from "@arcgis/lumina";
6
+ function u(a) {
7
+ return a.followingMode === "none" ? "circle-disallowed" : a.followingMode === "follow-sensor" ? "zoom-to-object" : a.followingMode === "follow-frame" ? "follow" : "video";
8
8
  }
9
- class h extends w {
9
+ class v extends h {
10
10
  constructor() {
11
11
  super(...arguments), this._disabled = !1;
12
12
  }
@@ -15,25 +15,27 @@ class h extends w {
15
15
  }
16
16
  loaded() {
17
17
  this.manager.onLifecycle(() => [
18
- b(() => this.viewModel.state, (e) => {
18
+ w(() => this.viewModel.state, (e) => {
19
19
  this._disabled = e === "not-ready" || e === "waiting";
20
20
  }, { initial: !0 })
21
21
  ]);
22
22
  }
23
23
  render() {
24
- const { viewModel: e, messages: l, _disabled: a } = this, t = e.currentTime > 0, c = !!e.layer?.telemetry?.sensorLocation, n = !!e.layer?.telemetry?.sensorTrail, r = !!e.layer?.telemetry?.lineOfSight, d = !!e.layer?.telemetry?.frameCenter, s = !!e.layer?.telemetry?.frameOutline, m = !!e.layer?.groundControlPoints, g = i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t && !c} .label=${l.sensor} @click=${() => {
24
+ const { viewModel: e, messages: l, _disabled: o } = this, t = e.currentTime > 0, c = !!e.layer?.telemetry?.sensorLocation, n = !!e.layer?.telemetry?.sensorPath, r = !!e.layer?.telemetry?.sensorTrail, d = !!e.layer?.telemetry?.lineOfSight, m = !!e.layer?.telemetry?.frameCenter, s = !!e.layer?.telemetry?.frameOutline, g = !!e.layer?.groundControlPoints, $ = i`<div><calcite-popover auto-close .label=${l.layers} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=layers-action scale=s><calcite-panel .heading=${l.layers}><calcite-list .label=${l.layers} selection-mode=multiple><calcite-list-item .disabled=${t && !c} .label=${l.sensor} @click=${() => {
25
25
  e.toggleSensorDisplay();
26
- }} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t && !r} .label=${l.sightLine} @click=${() => {
26
+ }} .selected=${!!e.layer?.telemetryDisplay?.sensorLocation}></calcite-list-item><calcite-list-item .disabled=${t && !d} .label=${l.sightLine} @click=${() => {
27
27
  e.toggleSensorSightLineDisplay();
28
- }} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t && !n} .label=${l.sensorTrail} @click=${() => {
28
+ }} .selected=${!!e.layer?.telemetryDisplay?.lineOfSight}></calcite-list-item><calcite-list-item .disabled=${t && !n} .label=${l.sensorPath} @click=${() => {
29
+ e.toggleSensorPathDisplay();
30
+ }} .selected=${!!e.layer?.telemetryDisplay?.sensorPath}></calcite-list-item><calcite-list-item .disabled=${t && !r} .label=${l.sensorTrail} @click=${() => {
29
31
  e.toggleSensorTrailDisplay();
30
- }} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t && !d} .label=${l.frameCenter} @click=${() => {
32
+ }} .selected=${!!e.layer?.telemetryDisplay?.sensorTrail}></calcite-list-item><calcite-list-item .disabled=${t && !m} .label=${l.frameCenter} @click=${() => {
31
33
  e.toggleFrameCenterDisplay();
32
34
  }} .selected=${!!e.layer?.telemetryDisplay?.frameCenter}></calcite-list-item><calcite-list-item .disabled=${t && !s} .label=${l.frameOutline} @click=${() => {
33
35
  e.toggleFrameOutlineDisplay();
34
- }} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t && !m} .label=${l.frame} @click=${() => {
36
+ }} .selected=${!!e.layer?.telemetryDisplay?.frameOutline}></calcite-list-item><calcite-list-item .disabled=${t && !g} .label=${l.frame} @click=${() => {
35
37
  e.toggleFrameDisplay();
36
- }} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${a} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`, f = i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${() => {
38
+ }} .selected=${!!e.layer?.telemetryDisplay?.frame}></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} icon=layers id=layers-action scale=s slot=trigger .text=${l.layers}></calcite-action></div>`, y = i`<div><calcite-popover auto-close .label=${l.follow} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=follow-action scale=s><calcite-panel .heading=${l.follow}><calcite-list .label=${l.follow} selection-mode=single><calcite-list-item .label=${l.none} @click=${() => {
37
39
  e.followingMode = "none";
38
40
  }} .selected=${e.followingMode === "none"}><calcite-icon icon=circle-disallowed scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t && !c} .label=${l.sensor} @click=${() => {
39
41
  e.followingMode = "follow-sensor";
@@ -41,11 +43,11 @@ class h extends w {
41
43
  e.followingMode = "follow-frame";
42
44
  }} .selected=${e.followingMode === "follow-frame"}><calcite-icon icon=follow scale=s slot=content-start></calcite-icon></calcite-list-item><calcite-list-item .disabled=${t && !s && !c} .label=${l.video} @click=${() => {
43
45
  e.followingMode = "follow-both";
44
- }} .selected=${e.followingMode === "follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${a} .icon=${u(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`, $ = i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`, y = i`<calcite-action alignment=center .disabled=${a} icon=feature-details @click=${() => this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;
45
- return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[g, f, $, y]}</calcite-action-bar>`;
46
+ }} .selected=${e.followingMode === "follow-both"}><calcite-icon icon=video scale=s slot=content-start></calcite-icon></calcite-list-item></calcite-list></calcite-panel></calcite-popover><calcite-action alignment=center .disabled=${o} .icon=${u(e)} id=follow-action scale=s slot=trigger .text=${l.follow}></calcite-action></div>`, f = i`<arcgis-video-player-settings .messages=${l} .viewModel=${e}></arcgis-video-player-settings>`, p = i`<calcite-action alignment=center .disabled=${o} icon=feature-details @click=${() => this.toggleMetadata()} scale=s .text=${l.metadata}></calcite-action>`;
47
+ return i`<calcite-action-bar expand-disabled layout=horizontal scale=s>${[$, y, f, p]}</calcite-action-bar>`;
46
48
  }
47
49
  }
48
- p("arcgis-video-player-controls-group", h);
50
+ b("arcgis-video-player-controls-group", v);
49
51
  export {
50
- h as VideoPlayerControlsGroup
52
+ v as VideoPlayerControlsGroup
51
53
  };
@@ -1,42 +1,44 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import { c as $ } from "../../chunks/runtime.js";
2
+ import { c as v } from "../../chunks/runtime.js";
3
3
  import { html as c } from "lit";
4
4
  import d from "@arcgis/core/Color.js";
5
5
  import { watch as g } from "@arcgis/core/core/reactiveUtils.js";
6
6
  import { LitElement as _ } from "@arcgis/lumina";
7
- import { useDirection as v } from "@arcgis/lumina/controllers";
8
- const u = ["Auto"], f = [0.25, 0.5, 1, 1.5, 2], r = new d([255, 127, 0]);
9
- function a(o, i) {
10
- return `${i.format(o)}x`;
7
+ import { useDirection as b } from "@arcgis/lumina/controllers";
8
+ const u = ["Auto"], w = [0.25, 0.5, 1, 1.5, 2], r = new d([255, 127, 0]);
9
+ function o(s, t) {
10
+ return `${t.format(s)}x`;
11
11
  }
12
- class b extends _ {
12
+ class k extends _ {
13
13
  constructor() {
14
- super(...arguments), this._color = null, this._speed = 1, this._quality = "Auto", this._direction = v(), this._disabled = !1;
14
+ super(...arguments), this._color = null, this._speed = 1, this._quality = "Auto", this._direction = b(), this._disabled = !1;
15
15
  }
16
16
  static {
17
17
  this.properties = { _disabled: 16, _active: 16, viewModel: 0, messages: 0 };
18
18
  }
19
19
  loaded() {
20
20
  this.manager.onLifecycle(() => [
21
- g(() => this.viewModel.state, (i) => {
22
- this._disabled = i === "not-ready" || i === "waiting";
21
+ g(() => this.viewModel.state, (t) => {
22
+ this._disabled = t === "not-ready" || t === "waiting";
23
23
  }, { initial: !0 })
24
24
  ]);
25
25
  }
26
26
  render() {
27
- const { viewModel: i, messages: e } = this, l = this._direction === "rtl" ? "chevron-left" : "chevron-right", s = new Intl.NumberFormat(this.messages._lang, {
27
+ const { viewModel: t, messages: e } = this, l = this._direction === "rtl" ? "chevron-left" : "chevron-right", a = new Intl.NumberFormat(this.messages._lang, {
28
28
  minimumFractionDigits: 0,
29
29
  maximumFractionDigits: 2
30
- }), h = c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active === "speed"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${f.map((t) => c`<calcite-list-item .disabled=${i?.layer?.isLive && t !== 1} .label=${a(t, s)} @click=${() => {
31
- this._speed = t, i.changePlaybackSpeed(t);
32
- }} .selected=${t === this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, m = c`<calcite-flow-item .heading=${e.quality} .selected=${this._active === "quality"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${u.map((t) => c`<calcite-list-item .label=${t} @click=${() => this._quality = t} .selected=${t === this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, p = c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active === "color"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex() ?? r.toHex()} @calciteColorPickerChange=${({ currentTarget: t }) => {
33
- const n = t.value?.toString() ?? null;
34
- this._color = n ? new d(n) : null, this._color && i.changeGraphicsColor(this._color);
30
+ }), h = c`<calcite-flow-item .heading=${e.playbackSpeed} .selected=${this._active === "speed"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.playbackSpeed} selection-mode=single-persist>${w.map((i) => c`<calcite-list-item .disabled=${t?.layer?.isLive && i !== 1} .label=${o(i, a)} @click=${() => {
31
+ this._speed = i, t.changePlaybackSpeed(i);
32
+ }} .selected=${i === this._speed}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, m = c`<calcite-flow-item .heading=${e.quality} .selected=${this._active === "quality"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-list .label=${e.quality} selection-mode=single-persist>${u.map((i) => c`<calcite-list-item .label=${i} @click=${() => this._quality = i} .selected=${i === this._quality}></calcite-list-item>`)}</calcite-list></calcite-flow-item>`, p = c`<calcite-flow-item .heading=${e.loopPlayback} .selected=${this._active === "loop"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-block .label=${e.loop} expanded><calcite-switch .disabled=${t?.layer?.isLive} .label=${e.loopPlayback} .checked=${t?.layer?.loop} .labelTextStart=${e.loop} @calciteSwitchChange=${() => {
33
+ t.toggleLoopPlayback();
34
+ }}></calcite-switch></calcite-block></calcite-flow-item>`, $ = c`<calcite-flow-item .heading=${e.graphics} .selected=${this._active === "color"} @calciteFlowItemBack=${() => this._active = void 0}><calcite-block .heading=${e.color} expanded><calcite-color-picker channels-disabled format=hex saved-disabled scale=s .value=${this._color?.toHex() ?? r.toHex()} @calciteColorPickerChange=${({ currentTarget: i }) => {
35
+ const n = i.value?.toString() ?? null;
36
+ this._color = n ? new d(n) : null, this._color && t.changeGraphicsColor(this._color);
35
37
  }}></calcite-color-picker></calcite-block></calcite-flow-item>`;
36
- return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${() => this._active = void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.speed} @click=${() => this._active = "speed"}><div slot=content-end><calcite-chip .label=${a(this._speed, s)} scale=s>${a(this._speed, s)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${() => this._active = "quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${() => this._active = "color"}><calcite-color-picker-swatch .color=${this._color?.toString() ?? r.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active === "speed" ? h : null}${this._active === "quality" ? m : null}${this._active === "color" ? p : null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`;
38
+ return c`<div><calcite-popover auto-close .label=${e.settings} overlay-positioning=fixed placement=top-end pointer-disabled reference-element=settings-action scale=s @calcitePopoverClose=${() => this._active = void 0}><calcite-flow><calcite-flow-item .heading=${e.settings} .selected=${!this._active}><calcite-list .label=${e.settings}><calcite-list-item .label=${e.loop} @click=${() => this._active = "loop"}><div slot=content-end><calcite-chip .label=${e.loopPlayback} .icon=${this.viewModel.layer?.loop ? "recurrence" : "break-recurrence"}></calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.speed} @click=${() => this._active = "speed"}><div slot=content-end><calcite-chip .label=${o(this._speed, a)} scale=s>${o(this._speed, a)}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.quality} @click=${() => this._active = "quality"}><div slot=content-end><calcite-chip .label=${this._quality} scale=s>${this._quality}</calcite-chip></div><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item><calcite-list-item .label=${e.graphics} @click=${() => this._active = "color"}><calcite-color-picker-swatch .color=${this._color?.toString() ?? r.toString()} scale=s slot=content-end></calcite-color-picker-swatch><calcite-icon .icon=${l} scale=s slot=content-end></calcite-icon></calcite-list-item></calcite-list></calcite-flow-item>${this._active === "speed" ? h : null}${this._active === "quality" ? m : null}${this._active === "color" ? $ : null}${this._active === "loop" ? p : null}</calcite-flow></calcite-popover><calcite-action alignment=center .disabled=${this._disabled} icon=sliders id=settings-action scale=s slot=trigger .text=${e.settings}></calcite-action></div>`;
37
39
  }
38
40
  }
39
- $("arcgis-video-player-settings", b);
41
+ v("arcgis-video-player-settings", k);
40
42
  export {
41
- b as VideoPlayerSettings
43
+ k as VideoPlayerSettings
42
44
  };
@@ -2,6 +2,7 @@ import "@esri/calcite-components/components/calcite-flow-item";
2
2
  import "@esri/calcite-components/components/calcite-list";
3
3
  import "@esri/calcite-components/components/calcite-list-item";
4
4
  import "@esri/calcite-components/components/calcite-block";
5
+ import "@esri/calcite-components/components/calcite-switch";
5
6
  import "@esri/calcite-components/components/calcite-color-picker";
6
7
  import "@esri/calcite-components/components/calcite-popover";
7
8
  import "@esri/calcite-components/components/calcite-flow";