@arcgis/map-components 6.0.0-next.22 → 6.0.0-next.24

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 (154) hide show
  1. package/dist/cdn/{WUWF6ZDM.js → 2Z36ICJZ.js} +1 -1
  2. package/dist/cdn/{GQQTIX2X.js → 3HI5IZSQ.js} +1 -1
  3. package/dist/cdn/3KAC2MKA.js +2 -0
  4. package/dist/cdn/{2NM6UWC4.js → 47CFYOUT.js} +1 -1
  5. package/dist/cdn/4N4XDCDQ.js +2 -0
  6. package/dist/cdn/{7ZWBGSCM.js → 4NG7CALI.js} +1 -1
  7. package/dist/cdn/{NTHSQXKG.js → 5DEJDR4W.js} +1 -1
  8. package/dist/cdn/{LUW2PXWZ.js → 5PPYHS6V.js} +1 -1
  9. package/dist/cdn/{M5OK7RKI.js → 66GRDX36.js} +1 -1
  10. package/dist/cdn/{SAQ5BNZJ.js → 6CKQPMJB.js} +1 -1
  11. package/dist/cdn/6GE2WBKV.js +2 -0
  12. package/dist/cdn/6GGKA7MT.js +2 -0
  13. package/dist/cdn/{XPBFBRSY.js → 6K4IASNK.js} +1 -1
  14. package/dist/cdn/{7LO6ACC7.js → 6VV5SX76.js} +1 -1
  15. package/dist/cdn/{Y3E2FJPQ.js → 74WM2EIB.js} +1 -1
  16. package/dist/cdn/{4I6F64B2.js → 7U2V3LDM.js} +1 -1
  17. package/dist/cdn/{3GN3DAON.js → A7YFCO3R.js} +1 -1
  18. package/dist/cdn/{3SXQLU4S.js → APFZ2FVO.js} +1 -1
  19. package/dist/cdn/{VLHURRRU.js → BM3FQ4OG.js} +1 -1
  20. package/dist/cdn/{LWVYNWD5.js → CGE6E3O3.js} +1 -1
  21. package/dist/cdn/CVLOQWUD.js +2 -0
  22. package/dist/cdn/{NORQIOSX.js → DGXTCH6B.js} +1 -1
  23. package/dist/cdn/{JUYPQUPQ.js → E5CGORXN.js} +1 -1
  24. package/dist/cdn/E5X5BYWA.js +2 -0
  25. package/dist/cdn/ECF4B24M.js +2 -0
  26. package/dist/cdn/EJVFK7JX.js +2 -0
  27. package/dist/cdn/{BUH3AQ7E.js → FTLNYN3G.js} +1 -1
  28. package/dist/cdn/{BJ35LPCU.js → G7BWEBJH.js} +1 -1
  29. package/dist/cdn/GIQT67VT.js +2 -0
  30. package/dist/cdn/{V7DMA5ZO.js → GZ6UBR6R.js} +1 -1
  31. package/dist/cdn/{AOGDXJ2J.js → H66E4VOY.js} +1 -1
  32. package/dist/cdn/HADZXZIE.js +2 -0
  33. package/dist/cdn/{BDZHLGVT.js → HL6WL2YA.js} +1 -1
  34. package/dist/cdn/HTCPPGCR.js +2 -0
  35. package/dist/cdn/HTONXZBP.js +2 -0
  36. package/dist/cdn/{F2DTKJTK.js → HUWIY53T.js} +1 -1
  37. package/dist/cdn/{UE6EBLH3.js → IKVGZFZ6.js} +1 -1
  38. package/dist/cdn/{NKFAPBY3.js → JRO4IBJP.js} +1 -1
  39. package/dist/cdn/KXDLX4RE.js +2 -0
  40. package/dist/cdn/LHYI2QBZ.js +2 -0
  41. package/dist/cdn/{LXJURAXP.js → NLG5U5ZN.js} +1 -1
  42. package/dist/cdn/{BLYXYNGB.js → PPGKQRNY.js} +1 -1
  43. package/dist/cdn/{DS6EUOYE.js → PW3QCZXY.js} +1 -1
  44. package/dist/cdn/{7EIN5VCY.js → Q2GYNZYQ.js} +1 -1
  45. package/dist/cdn/{SJGQALDG.js → Q2ZQOGM2.js} +1 -1
  46. package/dist/cdn/{UFK7DHVC.js → QBRGIFBY.js} +1 -1
  47. package/dist/cdn/{ZC5YVHZ3.js → QQLN6RWA.js} +1 -1
  48. package/dist/cdn/QXEOEFF3.js +2 -0
  49. package/dist/cdn/{BJJZGYBG.js → R6ARQKAY.js} +1 -1
  50. package/dist/cdn/RFO3M46K.js +2 -0
  51. package/dist/cdn/{YBXCTOS7.js → RQPOCDJS.js} +1 -1
  52. package/dist/cdn/{CNJSDHZI.js → RT53VCER.js} +1 -1
  53. package/dist/cdn/{AIF4MCBB.js → RXKIZFNQ.js} +1 -1
  54. package/dist/cdn/{SKAZPI3A.js → TTERKXN5.js} +1 -1
  55. package/dist/cdn/{LKGURYDH.js → TTWQ7RNF.js} +1 -1
  56. package/dist/cdn/{VHZM25YV.js → UB6BQW3G.js} +1 -1
  57. package/dist/cdn/{DGSTI5DI.js → UJURQACP.js} +1 -1
  58. package/dist/cdn/{UHDJ2SI5.js → VW35MSDL.js} +1 -1
  59. package/dist/cdn/{IQGL3AGV.js → WU4NDBMC.js} +1 -1
  60. package/dist/cdn/{FRX4ZT35.js → XKGD4N75.js} +1 -1
  61. package/dist/cdn/{3B4VHD67.js → XN3MG6YU.js} +1 -1
  62. package/dist/cdn/{PFMWLSWQ.js → XWBR6FXI.js} +1 -1
  63. package/dist/cdn/{B2TICPHR.js → Y5ZZCA3R.js} +1 -1
  64. package/dist/cdn/YITBBUPR.js +2 -0
  65. package/dist/cdn/{4IG6WUCI.js → YTZZRJ7Z.js} +1 -1
  66. package/dist/cdn/{OQ6SYZBT.js → YXIJXXTK.js} +1 -1
  67. package/dist/cdn/{L6FLCEH6.js → Z3674FMT.js} +1 -1
  68. package/dist/cdn/assets/video-player/t9n/messages.en.json +1 -1
  69. package/dist/cdn/index.js +1 -1
  70. package/dist/cdn/main.css +1 -1
  71. package/dist/chunks/useArcgisViewReadyError.js +155 -151
  72. package/dist/chunks/useViewModel.js +7 -7
  73. package/dist/chunks/utils.js +17 -17
  74. package/dist/chunks/utils5.js +2 -2
  75. package/dist/components/arcgis-basemap-gallery/customElement.js +17 -17
  76. package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
  77. package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +5 -0
  78. package/dist/components/arcgis-coordinate-conversion-next/customElement.d.ts +6 -5
  79. package/dist/components/arcgis-feature-attachments/customElement.js +18 -18
  80. package/dist/components/arcgis-feature-next/customElement.d.ts +1 -1
  81. package/dist/components/arcgis-features-next/customElement.js +14 -15
  82. package/dist/components/arcgis-scale-bar/customElement.js +11 -11
  83. package/dist/components/arcgis-search/customElement.d.ts +12 -0
  84. package/dist/components/arcgis-search/customElement.js +3 -0
  85. package/dist/components/arcgis-sketch/customElement.js +1 -1
  86. package/dist/components/arcgis-swipe/customElement.d.ts +0 -22
  87. package/dist/components/arcgis-swipe/customElement.js +47 -65
  88. package/dist/components/arcgis-time-bar/customElement.d.ts +486 -409
  89. package/dist/components/arcgis-time-bar/types.d.ts +36 -15
  90. package/dist/components/arcgis-time-bar-slider/customElement.d.ts +179 -162
  91. package/dist/components/arcgis-time-slider/customElement.d.ts +1 -0
  92. package/dist/components/arcgis-time-slider/customElement.js +8 -7
  93. package/dist/components/arcgis-track/customElement.d.ts +12 -3
  94. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +7 -0
  95. package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +8 -5
  96. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +45 -2
  97. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +23 -20
  98. package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.d.ts +125 -12
  99. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +9 -2
  100. package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +60 -57
  101. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +7 -0
  102. package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +12 -9
  103. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +217 -14
  104. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +119 -108
  105. package/dist/components/arcgis-utility-network-trace-locations/customElement.d.ts +155 -8
  106. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +9 -73
  107. package/dist/components/arcgis-utility-network-trace-results/customElement.js +132 -125
  108. package/dist/components/arcgis-utility-network-trace-results-pane/customElement.d.ts +161 -2
  109. package/dist/components/arcgis-video-player/customElement.d.ts +18 -0
  110. package/dist/components/arcgis-video-player/customElement.js +72 -72
  111. package/dist/components/arcgis-video-player/index.js +4 -4
  112. package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
  113. package/dist/components/arcgis-video-player-previews/customElement.js +159 -0
  114. package/dist/components/arcgis-video-player-settings/customElement.js +17 -16
  115. package/dist/components/arcgis-video-player-slider/customElement.js +23 -12
  116. package/dist/components/arcgis-video-player-slider/index.js +1 -0
  117. package/dist/docs/api.json +1 -1
  118. package/dist/docs/docs.json +1 -1
  119. package/dist/docs/vscode.html-custom-data.json +1 -1
  120. package/dist/docs/web-types.json +1 -1
  121. package/dist/index.d.ts +0 -20
  122. package/dist/loader.js +6 -7
  123. package/dist/types/lumina.d.ts +2 -23
  124. package/dist/types/preact.d.ts +2 -25
  125. package/dist/types/react.d.ts +2 -27
  126. package/dist/types/stencil.d.ts +2 -23
  127. package/package.json +6 -6
  128. package/dist/cdn/2WJ53TNR.js +0 -2
  129. package/dist/cdn/5A7LDBDR.js +0 -2
  130. package/dist/cdn/COSETVX4.js +0 -2
  131. package/dist/cdn/F74YQZ2X.js +0 -2
  132. package/dist/cdn/H4BTVLCG.js +0 -2
  133. package/dist/cdn/KXD4VEKE.js +0 -2
  134. package/dist/cdn/MNL7ONFB.js +0 -2
  135. package/dist/cdn/NHMHVWNB.js +0 -2
  136. package/dist/cdn/NQ3COROI.js +0 -2
  137. package/dist/cdn/OJJSIN3V.js +0 -2
  138. package/dist/cdn/P3565WG3.js +0 -2
  139. package/dist/cdn/QAOT2TJ6.js +0 -2
  140. package/dist/cdn/QVJ2FUNW.js +0 -2
  141. package/dist/cdn/SIT5NBLS.js +0 -2
  142. package/dist/cdn/SU2SAOBL.js +0 -2
  143. package/dist/cdn/UI4IEVSV.js +0 -2
  144. package/dist/cdn/VEV3AAVP.js +0 -2
  145. package/dist/cdn/YYCTSS52.js +0 -2
  146. package/dist/components/arcgis-scale-range-slider/customElement.d.ts +0 -158
  147. package/dist/components/arcgis-scale-range-slider/customElement.js +0 -26
  148. package/dist/components/arcgis-scale-range-slider/index.d.ts +0 -1
  149. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +0 -73
  150. package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +0 -642
  151. package/dist/components/arcgis-value-picker-legacy/customElement.js +0 -39
  152. package/dist/components/arcgis-value-picker-legacy/index.d.ts +0 -1
  153. package/dist/components/arcgis-value-picker-legacy/index.js +0 -1
  154. /package/dist/components/{arcgis-scale-range-slider → arcgis-video-player-previews}/index.js +0 -0
@@ -4,12 +4,171 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
4
4
  import type { FlowItem } from "@esri/calcite-components/components/calcite-flow-item";
5
5
 
6
6
  /**
7
- * Component used for displaying instances of [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/).
7
+ * A container for one or more [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/) components and custom content.
8
+ * Use this component for custom trace workflows that need functionality beyond
9
+ * [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/), such as displaying the results of multiple
10
+ * traces at once.
8
11
  *
9
- * @slot - Default slot for trace result pane content.
12
+ * ## Use in a custom app outside the trace analysis component
13
+ *
14
+ * To use [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/) outside of the trace analysis component,
15
+ * slot it into this pane's [default slot](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/#slot-).
16
+ * This is useful in custom trace workflow applications that display multiple trace results at once or
17
+ * configure each results component independently. Add one trace results component for each trace result
18
+ * and set its properties directly. The pane provides the results container; it does not run traces or
19
+ * set the results components' properties. Your application supplies each component's
20
+ * [arcgis-utility-network-trace-results.traceResult](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceResult),
21
+ * [arcgis-utility-network-trace-results.traceError](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#traceError),
22
+ * [arcgis-utility-network-trace-results.utilityNetwork](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#utilityNetwork), and
23
+ * [arcgis-utility-network-trace-results.view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#view), and
24
+ * manages setting properties on any trace result items.
25
+ *
26
+ * The [arcgis-utility-network-trace-results.view](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#view) property is required for elements and aggregated
27
+ * geometry results. The [arcgis-utility-network-trace-results.utilityNetwork](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#utilityNetwork) property is required
28
+ * to query features for elements results.
29
+ *
30
+ * Each trace results component instance renders in its own
31
+ * [Calcite Block](https://developers.arcgis.com/calcite-design-system/components/block/).
32
+ * Set [arcgis-utility-network-trace-results.expandable](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#expandable) and
33
+ * [arcgis-utility-network-trace-results.expanded](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/#expanded) on each results component instance
34
+ * to control whether its content is expandable and initially expanded.
35
+ * Both properties default to `false` (collapsed and non-expandable), matching the Calcite Block defaults.
36
+ *
37
+ * See the [multiple trace results example](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/#multiple-trace-results-example).
38
+ *
39
+ * ### Adding custom flow items
40
+ *
41
+ * The pane renders its content inside a
42
+ * [Calcite Flow](https://developers.arcgis.com/calcite-design-system/components/flow/).
43
+ * The default slot is rendered in the root flow item. To control the custom content displayed in
44
+ * the pane, add [Calcite Flow Item](https://developers.arcgis.com/calcite-design-system/components/flow-item/)
45
+ * elements to its [flowItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/#flowItems) collection.
46
+ *
47
+ * The trace analysis component's results tab works the same way: add flow items to its
48
+ * [arcgis-utility-network-trace-analysis.flowItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#flowItems) collection
49
+ * to display custom content in that tab.
50
+ *
51
+ * @slot - Default slot for one or more [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/) components.
10
52
  * @since 5.2
53
+ * @example
54
+ * <span id="multiple-trace-results-example"></span>
55
+ *
56
+ * Display two trace results in the default slot of a results pane, without a trace analysis component.
57
+ * Each results component has its own heading and display settings. Neither component uses `slot="results"`
58
+ * because both are assigned to the pane's default slot.
59
+ * The upstream component uses the default result items. The downstream component uses slotted
60
+ * elements and functions result items, so aggregated geometry results are not displayed.
61
+ * Set display properties directly on the slotted result items.
62
+ * ```html
63
+ * <arcgis-utility-network-trace-results-pane id="trace-results-pane">
64
+ * <arcgis-utility-network-trace-results
65
+ * id="upstream-results"
66
+ * heading="Upstream trace"
67
+ * expandable
68
+ * expanded
69
+ * hide-action-bar
70
+ * ></arcgis-utility-network-trace-results>
71
+ * <arcgis-utility-network-trace-results
72
+ * id="downstream-results"
73
+ * heading="Downstream trace"
74
+ * expandable
75
+ * expanded
76
+ * >
77
+ * <arcgis-utility-network-trace-elements-result-item
78
+ * disable-highlight
79
+ * ></arcgis-utility-network-trace-elements-result-item>
80
+ * <arcgis-utility-network-trace-functions-result-item></arcgis-utility-network-trace-functions-result-item>
81
+ * </arcgis-utility-network-trace-results>
82
+ * </arcgis-utility-network-trace-results-pane>
83
+ * <calcite-button id="clear-trace-results">Clear results</calcite-button>
84
+ * ```
85
+ *
86
+ * In the following JavaScript, `view` is the application's MapView, `utilityNetwork` is its loaded utility
87
+ * network, and `upstreamTraceResult` and `downstreamTraceResult` are `TraceResult` objects returned by the application's
88
+ * trace workflow. Set the view and utility network before assigning each trace result.
89
+ * ```js
90
+ * const pane = document.getElementById("trace-results-pane");
91
+ * const upstreamResults = document.getElementById("upstream-results");
92
+ * const downstreamResults = document.getElementById("downstream-results");
93
+ * const resultsComponents = [upstreamResults, downstreamResults];
94
+ *
95
+ * await Promise.all([pane.componentOnReady(), ...resultsComponents.map((results) => results.componentOnReady())]);
96
+ *
97
+ * for (const results of resultsComponents) {
98
+ * results.view = view;
99
+ * results.utilityNetwork = utilityNetwork;
100
+ * }
101
+ *
102
+ * upstreamResults.traceResult = upstreamTraceResult;
103
+ * downstreamResults.traceResult = downstreamTraceResult;
104
+ *
105
+ * document.getElementById("clear-trace-results").addEventListener("click", () => {
106
+ * for (const results of resultsComponents) {
107
+ * results.clearResults();
108
+ * results.traceResult = undefined;
109
+ * results.traceError = undefined;
110
+ * }
111
+ * });
112
+ * ```
113
+ * @example
114
+ * <span id="custom-flow-item-example"></span>
115
+ *
116
+ * Using the results pane from the previous example, add a button to display custom content in a flow item.
117
+ * The flow item replaces the visible results until the user navigates back, which removes it from the
118
+ * `flowItems` collection and shows the results again.
119
+ * ```html
120
+ * <calcite-button id="show-trace-comparison">Compare traces</calcite-button>
121
+ * ```
122
+ *
123
+ * ```js
124
+ * const pane = document.getElementById("trace-results-pane");
125
+ * await pane.componentOnReady();
126
+ *
127
+ * const flowItem = document.createElement("calcite-flow-item");
128
+ * flowItem.heading = "Trace comparison";
129
+ *
130
+ * const content = document.createElement("p");
131
+ * content.textContent = "Compare the results of your upstream and downstream traces here.";
132
+ * flowItem.append(content);
133
+ *
134
+ * document.getElementById("show-trace-comparison").addEventListener("click", () => {
135
+ * pane.flowItems.add(flowItem);
136
+ * });
137
+ *
138
+ * flowItem.addEventListener("calciteFlowItemBack", () => {
139
+ * pane.flowItems.remove(flowItem);
140
+ * });
141
+ * ```
142
+ * @see [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/)
143
+ * @see [arcgis-utility-network-trace-results](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results/)
144
+ * @see [arcgis-utility-network-trace-aggregated-geometry-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-aggregated-geometry-result-item/)
145
+ * @see [arcgis-utility-network-trace-elements-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-elements-result-item/)
146
+ * @see [arcgis-utility-network-trace-functions-result-item](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-functions-result-item/)
147
+ * @see [Calcite Flow](https://developers.arcgis.com/calcite-design-system/components/flow/)
148
+ * @see [Calcite Block](https://developers.arcgis.com/calcite-design-system/components/block/)
11
149
  */
12
150
  export abstract class ArcgisUtilityNetworkTraceResultsPane extends LitElement {
151
+ /**
152
+ * Additional [Calcite Flow Item](https://developers.arcgis.com/calcite-design-system/components/flow-item/)
153
+ * elements displayed after the root flow item for drilldown navigation.
154
+ * The root flow item contains the pane's default slot and is not included in this collection.
155
+ *
156
+ * This property is read-only, but the returned
157
+ * [Collection](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/) is mutable.
158
+ * Add or remove `calcite-flow-item` elements through the collection rather than replacing it.
159
+ * Adding items deselects the root flow item if it is selected. Call
160
+ * [removeAll()](https://developers.arcgis.com/javascript/latest/references/core/core/Collection/#removeAll) on
161
+ * [flowItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/#flowItems) to remove all custom flow items
162
+ * without removing the slotted results components.
163
+ *
164
+ * This collection is for custom flow items in an independently used results pane.
165
+ * To add flow items to the results tab of [arcgis-utility-network-trace-analysis](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/),
166
+ * use that component's [arcgis-utility-network-trace-analysis.flowItems](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-analysis/#flowItems) property instead.
167
+ *
168
+ * See the [custom flow item example](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-utility-network-trace-results-pane/#custom-flow-item-example).
169
+ *
170
+ * @since 5.2
171
+ */
13
172
  get flowItems(): Collection<FlowItem>;
14
173
  /**
15
174
  * Whether to log console errors about unexpected child elements.
@@ -125,6 +125,7 @@ export abstract class ArcgisVideoPlayer extends LitElement {
125
125
  */
126
126
  accessor messageOverrides: {
127
127
  beginning?: string | undefined;
128
+ buffering?: string | undefined;
128
129
  color?: string | undefined;
129
130
  end?: string | undefined;
130
131
  errorLoadingLayer?: string | undefined;
@@ -136,12 +137,17 @@ export abstract class ArcgisVideoPlayer extends LitElement {
136
137
  frameOutline?: string | undefined;
137
138
  graphics?: string | undefined;
138
139
  layers?: string | undefined;
140
+ live?: string | undefined;
139
141
  loop?: string | undefined;
142
+ loopDisabled?: string | undefined;
143
+ loopEnabled?: string | undefined;
140
144
  loopPlayback?: string | undefined;
141
145
  mapOverlay?: string | undefined;
146
+ maximize?: string | undefined;
142
147
  metadata?: string | undefined;
143
148
  metadataDescription?: string | undefined;
144
149
  metadataNotLoaded?: string | undefined;
150
+ minimize?: string | undefined;
145
151
  missionInfo?: string | undefined;
146
152
  none?: string | undefined;
147
153
  operationalData?: string | undefined;
@@ -164,6 +170,7 @@ export abstract class ArcgisVideoPlayer extends LitElement {
164
170
  /** @internal */
165
171
  protected messages: {
166
172
  beginning: string;
173
+ buffering: string;
167
174
  color: string;
168
175
  end: string;
169
176
  errorLoadingLayer: string;
@@ -175,12 +182,17 @@ export abstract class ArcgisVideoPlayer extends LitElement {
175
182
  frameOutline: string;
176
183
  graphics: string;
177
184
  layers: string;
185
+ live: string;
178
186
  loop: string;
187
+ loopDisabled: string;
188
+ loopEnabled: string;
179
189
  loopPlayback: string;
180
190
  mapOverlay: string;
191
+ maximize: string;
181
192
  metadata: string;
182
193
  metadataDescription: string;
183
194
  metadataNotLoaded: string;
195
+ minimize: string;
184
196
  missionInfo: string;
185
197
  none: string;
186
198
  operationalData: string;
@@ -201,6 +213,7 @@ export abstract class ArcgisVideoPlayer extends LitElement {
201
213
  videoPlayer: string;
202
214
  } & T9nMeta<{
203
215
  beginning: string;
216
+ buffering: string;
204
217
  color: string;
205
218
  end: string;
206
219
  errorLoadingLayer: string;
@@ -212,12 +225,17 @@ export abstract class ArcgisVideoPlayer extends LitElement {
212
225
  frameOutline: string;
213
226
  graphics: string;
214
227
  layers: string;
228
+ live: string;
215
229
  loop: string;
230
+ loopDisabled: string;
231
+ loopEnabled: string;
216
232
  loopPlayback: string;
217
233
  mapOverlay: string;
234
+ maximize: string;
218
235
  metadata: string;
219
236
  metadataDescription: string;
220
237
  metadataNotLoaded: string;
238
+ minimize: string;
221
239
  missionInfo: string;
222
240
  none: string;
223
241
  operationalData: string;
@@ -1,21 +1,21 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import { c as g } from "../../chunks/runtime.js";
3
- import { css as v, html as s } from "lit";
2
+ import { c as p } from "../../chunks/runtime.js";
3
+ import { css as v, html as a } from "lit";
4
4
  import { watch as d } from "@arcgis/core/core/reactiveUtils.js";
5
5
  import { LitElement as w, createEvent as u, safeClassMap as _ } from "@arcgis/lumina";
6
6
  import { usePropertyChange as T } from "@arcgis/lumina/controllers";
7
- import { classes as M } from "@arcgis/toolkit/dom";
8
- import { createRef as b, ref as D } from "lit/directives/ref.js";
7
+ import { classes as b } from "@arcgis/toolkit/dom";
8
+ import { createRef as M, ref as D } from "lit/directives/ref.js";
9
9
  import { u as V } from "../../chunks/useT9n.js";
10
10
  import { m as $ } from "../../chunks/useViewModel.js";
11
11
  import { g as P } from "../../chunks/globalCss.js";
12
12
  import { n as f } from "../../chunks/video-utils.js";
13
13
  import C from "@arcgis/core/core/Accessor.js";
14
14
  import { property as l, subclass as S } from "@arcgis/core/core/accessorSupport/decorators.js";
15
- var L = Object.defineProperty, k = Object.getOwnPropertyDescriptor, a = (e, i, n, h) => {
16
- for (var r = h > 1 ? void 0 : h ? k(i, n) : i, y = e.length - 1, c; y >= 0; y--)
17
- (c = e[y]) && (r = (h ? c(i, n, r) : c(r)) || r);
18
- return h && r && L(i, n, r), r;
15
+ var L = Object.defineProperty, k = Object.getOwnPropertyDescriptor, s = (e, t, n, h) => {
16
+ for (var r = h > 1 ? void 0 : h ? k(t, n) : t, y = e.length - 1, c; y >= 0; y--)
17
+ (c = e[y]) && (r = (h ? c(t, n, r) : c(r)) || r);
18
+ return h && r && L(t, n, r), r;
19
19
  };
20
20
  const o = {
21
21
  FrameCenterElevation: 10025,
@@ -29,15 +29,15 @@ const o = {
29
29
  PlatformTrueAirspeed: 10008,
30
30
  PrecisionTimeStamp: 10002
31
31
  };
32
- function m(e, i) {
32
+ function m(e, t) {
33
33
  const n = {};
34
- for (const h of i) {
34
+ for (const h of t) {
35
35
  const r = e.get(h);
36
36
  r && (n[r.name] = String(r.value));
37
37
  }
38
38
  return n;
39
39
  }
40
- let t = class extends C {
40
+ let i = class extends C {
41
41
  //#region Lifecycle
42
42
  constructor(e) {
43
43
  super(e), this.followingMode = "follow-both", this.seekLength = 10;
@@ -46,8 +46,8 @@ let t = class extends C {
46
46
  this.addHandles([
47
47
  d(
48
48
  () => this.layer,
49
- (e, i) => {
50
- i && i.pause(), e && e.load().then(() => this._followTelemetry()).catch(() => {
49
+ (e, t) => {
50
+ t && t.pause(), e && e.load().then(() => this._followTelemetry()).catch(() => {
51
51
  });
52
52
  },
53
53
  { initial: !0 }
@@ -164,8 +164,8 @@ let t = class extends C {
164
164
  d(
165
165
  () => this.layer?.telemetry,
166
166
  () => {
167
- const e = [], i = this.followingMode === "follow-frame" || this.followingMode === "follow-both";
168
- if ((this.followingMode === "follow-sensor" || this.followingMode === "follow-both") && this.layer?.telemetry.sensorLocation && e.push(this.layer.telemetry.sensorLocation), i && this.layer?.telemetry.frameCenter && e.push(this.layer.telemetry.frameCenter), !e.length) {
167
+ const e = [], t = this.followingMode === "follow-frame" || this.followingMode === "follow-both";
168
+ if ((this.followingMode === "follow-sensor" || this.followingMode === "follow-both") && this.layer?.telemetry.sensorLocation && e.push(this.layer.telemetry.sensorLocation), t && this.layer?.telemetry.frameCenter && e.push(this.layer.telemetry.frameCenter), !e.length) {
169
169
  this.layer?.initialExtent && this.followingMode !== "none" && this.view?.goTo(this.layer.initialExtent).catch(() => {
170
170
  });
171
171
  return;
@@ -180,108 +180,108 @@ let t = class extends C {
180
180
  }
181
181
  //#endregion
182
182
  };
183
- a([
183
+ s([
184
184
  l({ readOnly: !0 })
185
- ], t.prototype, "buffered", 1);
186
- a([
185
+ ], i.prototype, "buffered", 1);
186
+ s([
187
187
  l({ readOnly: !0 })
188
- ], t.prototype, "currentTime", 1);
189
- a([
188
+ ], i.prototype, "currentTime", 1);
189
+ s([
190
190
  l({ readOnly: !0 })
191
- ], t.prototype, "duration", 1);
192
- a([
191
+ ], i.prototype, "duration", 1);
192
+ s([
193
193
  l({ readOnly: !0 })
194
- ], t.prototype, "ended", 1);
195
- a([
194
+ ], i.prototype, "ended", 1);
195
+ s([
196
196
  l()
197
- ], t.prototype, "followingMode", 2);
198
- a([
197
+ ], i.prototype, "followingMode", 2);
198
+ s([
199
199
  l()
200
- ], t.prototype, "layer", 2);
201
- a([
200
+ ], i.prototype, "layer", 2);
201
+ s([
202
202
  l({ readOnly: !0 })
203
- ], t.prototype, "metadata", 1);
204
- a([
203
+ ], i.prototype, "metadata", 1);
204
+ s([
205
205
  l({ readOnly: !0 })
206
- ], t.prototype, "playing", 1);
207
- a([
206
+ ], i.prototype, "playing", 1);
207
+ s([
208
208
  l({ readOnly: !0 })
209
- ], t.prototype, "previewsInfo", 1);
210
- a([
209
+ ], i.prototype, "previewsInfo", 1);
210
+ s([
211
211
  l()
212
- ], t.prototype, "seekLength", 2);
213
- a([
212
+ ], i.prototype, "seekLength", 2);
213
+ s([
214
214
  l({ readOnly: !0 })
215
- ], t.prototype, "state", 1);
216
- a([
215
+ ], i.prototype, "state", 1);
216
+ s([
217
217
  l()
218
- ], t.prototype, "view", 2);
219
- t = a([
218
+ ], i.prototype, "view", 2);
219
+ i = s([
220
220
  S("map-components.video-player.VideoPlayerViewModel")
221
- ], t);
222
- const x = t, O = v`: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}`, F = $(x);
221
+ ], i);
222
+ const x = i, O = v`: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}`, F = $(x);
223
223
  class R extends w {
224
224
  constructor() {
225
- super(...arguments), this.messages = V({ blocking: !0 }), this.viewModel = F(this), this._videoViewRef = b(), 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 = T()("state", "layer"), this.arcgisReady = u(), this.arcgisVideoReady = u();
225
+ super(...arguments), this.messages = V({ blocking: !0 }), this._viewModel = F(this), this._videoViewRef = M(), this._bufferedValue = 0, this._currentTime = 0, this._currentValue = 0, this._duration = 0, this._isBuffering = !1, this._loopPlayback = !1, this._metadataVisible = !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.operationalDataVisible = !1, this.hideHeader = !1, this.view = this._viewModel.view, this.arcgisPropertyChange = T()("state", "layer"), this.arcgisReady = u(), this.arcgisVideoReady = u();
226
226
  }
227
227
  static {
228
- 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 };
228
+ this.properties = { _bufferedValue: 16, _currentTime: 16, _currentValue: 16, _duration: 16, _isBuffering: 16, _isLive: 16, _layerTitle: 16, _loopPlayback: 16, _metadataVisible: 16, _videoViewReady: 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 };
229
229
  }
230
230
  static {
231
231
  this.styles = O;
232
232
  }
233
233
  get followingMode() {
234
- return this.viewModel.followingMode;
234
+ return this._viewModel.followingMode;
235
235
  }
236
- set followingMode(i) {
237
- this.viewModel.followingMode = i;
236
+ set followingMode(t) {
237
+ this._viewModel.followingMode = t;
238
238
  }
239
239
  async destroy() {
240
240
  await this.manager.destroy();
241
241
  }
242
242
  loaded() {
243
243
  this.manager.onLifecycle(() => [
244
- d(() => [this.viewModel.currentTime, this.viewModel.duration, this.viewModel.buffered, this.viewModel.ended], () => {
245
- const { buffered: i, currentTime: n, duration: h, ended: r } = this.viewModel, y = f(h), c = f(n), p = f(i);
246
- this._duration = y, this._currentTime = c, this._bufferedValue = p / (y || 1), this._currentValue = c / (y || 1), this._isBuffering = !r && this._bufferedValue < this._currentValue;
244
+ d(() => [this._viewModel.currentTime, this._viewModel.duration, this._viewModel.buffered, this._viewModel.ended], () => {
245
+ const { buffered: t, currentTime: n, duration: h, ended: r } = this._viewModel, y = f(h), c = f(n), g = f(t);
246
+ this._duration = y, this._currentTime = c, this._bufferedValue = g / (y || 1), this._currentValue = c / (y || 1), this._isBuffering = !r && this._bufferedValue < this._currentValue;
247
247
  }),
248
- d(() => this.layer?.title, (i) => {
249
- this._layerTitle = i ?? void 0;
248
+ d(() => this.layer?.title, (t) => {
249
+ this._layerTitle = t ?? void 0;
250
250
  }, { initial: !0 }),
251
- d(() => this.layer?.isLive, (i) => {
252
- this._isLive = i ?? void 0;
251
+ d(() => this.layer?.isLive, (t) => {
252
+ this._isLive = t ?? void 0;
253
253
  }, { initial: !0 }),
254
- d(() => this.layer?.playbackRate, (i) => {
255
- typeof i == "number" && this.viewModel.changePlaybackSpeed(i);
254
+ d(() => this.layer?.playbackRate, (t) => {
255
+ typeof t == "number" && this._viewModel.changePlaybackSpeed(t);
256
256
  }, { initial: !0 }),
257
- d(() => this.viewModel.view?.map, () => this.requestUpdate())
257
+ d(() => this._viewModel.view?.map, () => this.requestUpdate())
258
258
  ]);
259
259
  }
260
260
  render() {
261
- return s`<div class=${_(M(this.inline ? "inline" : "root", P.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : s`<calcite-action slot=header-actions-end icon=full-screen-exit text=minimize @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? s`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? s`<calcite-action icon=full-screen text=maximize @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : s`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : s`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
261
+ return a`<div class=${_(b(this.inline ? "inline" : "root", P.widget))}><calcite-panel .heading=${this.hideHeader || this.inline ? void 0 : this._layerTitle ?? this.messages.videoPlayer}>${this.inline || this.hideHeader || !this.showFullscreenToggle ? null : a`<calcite-action slot=header-actions-end icon=full-screen-exit .text=${this.messages.minimize} @click=${() => this.inline = !this.inline}></calcite-action>`}${this.inline ? a`<div class="inline">${this._renderActionBar()}${this._renderSlider()}${this.showFullscreenToggle ? a`<calcite-action icon=full-screen .text=${this.messages.maximize} @click=${() => this.inline = !this.inline}></calcite-action>` : null}</div>` : a`<div class="content">${this._renderLoadingScrim()}${this._renderBuffering()}${this._renderVideoSection()}</div>`}${this.inline ? null : a`<div slot=footer class="footer">${this._renderSlider()}${this._renderActionBar()}${this._renderMetadataSection()}</div>`}</calcite-panel></div>`;
262
262
  }
263
- _renderLoadingScrim() {
264
- return this._videoViewReady ? null : s`<calcite-scrim .loading=${this.state !== "error"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>`;
263
+ _renderActionBar() {
264
+ return a`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${() => this._metadataVisible = !this._metadataVisible} .viewModel=${this._viewModel} .inline=${this.inline}></arcgis-video-player-action-bar>`;
265
265
  }
266
266
  _renderBuffering() {
267
- return this._isBuffering ? s`<calcite-progress type=indeterminate></calcite-progress>` : null;
267
+ return this._isBuffering ? a`<calcite-progress .label=${this.messages.buffering} type=indeterminate></calcite-progress>` : null;
268
268
  }
269
- _renderVideoSection() {
270
- return s`<arcgis-video .layer=${this.layer} .map=${this.viewModel.view?.map} .operationalDataVisible=${this.operationalDataVisible} @arcgisViewReadyChange=${() => {
271
- this._videoViewReady = !0, this.arcgisVideoReady.emit();
272
- }} ${D(this._videoViewRef)}></arcgis-video>`;
269
+ _renderLoadingScrim() {
270
+ return !this._videoViewReady && (this.state === "not-ready" || this.state === "error") ? a`<calcite-scrim .loading=${this.state === "not-ready"}>${this.state === "error" ? this.messages.errorLoadingLayer : null}</calcite-scrim>` : null;
273
271
  }
274
- _renderSlider() {
275
- return this._isLive ? null : s`<arcgis-video-player-slider .buffered=${this._bufferedValue} .messages=${this.messages} .value=${this._currentValue * 100} .viewModel=${this.viewModel}></arcgis-video-player-slider>`;
272
+ _renderMetadataSection() {
273
+ return this._metadataVisible ? a`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this._viewModel}></arcgis-video-player-metadata>` : null;
276
274
  }
277
- _renderActionBar() {
278
- return s`<arcgis-video-player-action-bar .currentTime=${this._currentTime} .duration=${this._duration} .messages=${this.messages} .toggleMetadata=${() => this._metadataVisible = !this._metadataVisible} .viewModel=${this.viewModel} .inline=${this.inline}></arcgis-video-player-action-bar>`;
275
+ _renderSlider() {
276
+ return this._isLive ? null : a`<arcgis-video-player-slider .buffered=${this._bufferedValue} .messages=${this.messages} .value=${this._currentValue * 100} .viewModel=${this._viewModel}></arcgis-video-player-slider>`;
279
277
  }
280
- _renderMetadataSection() {
281
- return this._metadataVisible ? s`<arcgis-video-player-metadata .messages=${this.messages} .viewModel=${this.viewModel}></arcgis-video-player-metadata>` : null;
278
+ _renderVideoSection() {
279
+ return a`<arcgis-video .layer=${this.layer} .map=${this._viewModel.view?.map} .operationalDataVisible=${this.operationalDataVisible} @arcgisViewReadyChange=${() => {
280
+ this._videoViewReady = !0, this.arcgisVideoReady.emit();
281
+ }} ${D(this._videoViewRef)}></arcgis-video>`;
282
282
  }
283
283
  }
284
- g("arcgis-video-player", R);
284
+ p("arcgis-video-player", R);
285
285
  export {
286
286
  R as ArcgisVideoPlayer
287
287
  };
@@ -1,9 +1,9 @@
1
1
  import "@esri/calcite-components/components/calcite-panel";
2
2
  import "@esri/calcite-components/components/calcite-action";
3
- import "@esri/calcite-components/components/calcite-scrim";
4
- import "@esri/calcite-components/components/calcite-progress";
5
- import "../arcgis-video/index.js";
6
- import "../arcgis-video-player-slider/index.js";
7
3
  import "../arcgis-video-player-action-bar/index.js";
4
+ import "@esri/calcite-components/components/calcite-progress";
5
+ import "@esri/calcite-components/components/calcite-scrim";
8
6
  import "../arcgis-video-player-metadata/index.js";
7
+ import "../arcgis-video-player-slider/index.js";
8
+ import "../arcgis-video/index.js";
9
9
  export * from "./customElement.js";
@@ -24,7 +24,7 @@ class v extends r {
24
24
  const { messages: i } = this;
25
25
  this._isLive === void 0 && (this._isLive = this.viewModel.layer?.isLive);
26
26
  const s = this._isLive ? t(this.currentTime) : `${t(this.currentTime)} / ${t(this.duration)}`;
27
- return e`<div class=${c(n("toolbar"))}><div class="controls-container"><arcgis-video-player-actions-group .inline=${this.inline} .messages=${i} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive ? e`<calcite-icon class="live-icon" icon=beacon></calcite-icon>` : null}${!this.inline || this._isLive ? e`<div class="timecode">${s}</div>` : null}</div>${this.inline ? null : e`<arcgis-video-player-controls-group class="controls-group" .messages=${i} .toggleMetadata=${() => this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group>`}</div>`;
27
+ return e`<div class=${c(n("toolbar"))}><div class="controls-container"><arcgis-video-player-actions-group .inline=${this.inline} .messages=${i} .viewModel=${this.viewModel}></arcgis-video-player-actions-group>${this._isLive ? e`<calcite-icon class="live-icon" icon=beacon .textLabel=${i.live}></calcite-icon>` : null}${!this.inline || this._isLive ? e`<div class="timecode">${s}</div>` : null}</div>${this.inline ? null : e`<arcgis-video-player-controls-group class="controls-group" .messages=${i} .toggleMetadata=${() => this.toggleMetadata()} .viewModel=${this.viewModel}></arcgis-video-player-controls-group>`}</div>`;
28
28
  }
29
29
  }
30
30
  o("arcgis-video-player-action-bar", v);