chrome-devtools-frontend 1.0.981537 → 1.0.995491

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 (503) hide show
  1. package/AUTHORS +2 -0
  2. package/config/gni/devtools_grd_files.gni +8 -7
  3. package/config/gni/devtools_image_files.gni +1 -0
  4. package/front_end/.eslintrc.js +10 -0
  5. package/front_end/Images/src/ic_rendering.svg +3 -0
  6. package/front_end/core/common/ParsedURL.ts +44 -28
  7. package/front_end/core/common/ResourceType.ts +1 -1
  8. package/front_end/core/common/SettingRegistration.ts +1 -0
  9. package/front_end/core/host/InspectorFrontendHost.ts +11 -10
  10. package/front_end/core/host/InspectorFrontendHostAPI.ts +15 -14
  11. package/front_end/core/host/Platform.ts +11 -2
  12. package/front_end/core/host/UserMetrics.ts +27 -2
  13. package/front_end/core/i18n/DevToolsLocale.ts +4 -0
  14. package/front_end/core/i18n/locales/af.json +76 -16
  15. package/front_end/core/i18n/locales/am.json +76 -16
  16. package/front_end/core/i18n/locales/ar.json +77 -17
  17. package/front_end/core/i18n/locales/as.json +76 -16
  18. package/front_end/core/i18n/locales/az.json +76 -16
  19. package/front_end/core/i18n/locales/be.json +75 -15
  20. package/front_end/core/i18n/locales/bg.json +76 -16
  21. package/front_end/core/i18n/locales/bn.json +76 -16
  22. package/front_end/core/i18n/locales/bs.json +88 -28
  23. package/front_end/core/i18n/locales/ca.json +76 -16
  24. package/front_end/core/i18n/locales/cs.json +76 -16
  25. package/front_end/core/i18n/locales/cy.json +76 -16
  26. package/front_end/core/i18n/locales/da.json +77 -17
  27. package/front_end/core/i18n/locales/de.json +178 -118
  28. package/front_end/core/i18n/locales/el.json +76 -16
  29. package/front_end/core/i18n/locales/en-GB.json +76 -16
  30. package/front_end/core/i18n/locales/en-US.json +205 -52
  31. package/front_end/core/i18n/locales/en-XL.json +205 -52
  32. package/front_end/core/i18n/locales/es-419.json +76 -16
  33. package/front_end/core/i18n/locales/es.json +76 -16
  34. package/front_end/core/i18n/locales/et.json +76 -16
  35. package/front_end/core/i18n/locales/eu.json +76 -16
  36. package/front_end/core/i18n/locales/fa.json +83 -23
  37. package/front_end/core/i18n/locales/fi.json +76 -16
  38. package/front_end/core/i18n/locales/fil.json +76 -16
  39. package/front_end/core/i18n/locales/fr-CA.json +76 -16
  40. package/front_end/core/i18n/locales/fr.json +76 -16
  41. package/front_end/core/i18n/locales/gl.json +76 -16
  42. package/front_end/core/i18n/locales/gu.json +76 -16
  43. package/front_end/core/i18n/locales/he.json +76 -16
  44. package/front_end/core/i18n/locales/hi.json +76 -16
  45. package/front_end/core/i18n/locales/hr.json +76 -16
  46. package/front_end/core/i18n/locales/hu.json +76 -16
  47. package/front_end/core/i18n/locales/hy.json +76 -16
  48. package/front_end/core/i18n/locales/id.json +79 -19
  49. package/front_end/core/i18n/locales/is.json +75 -15
  50. package/front_end/core/i18n/locales/it.json +124 -64
  51. package/front_end/core/i18n/locales/ja.json +76 -16
  52. package/front_end/core/i18n/locales/ka.json +76 -16
  53. package/front_end/core/i18n/locales/kk.json +76 -16
  54. package/front_end/core/i18n/locales/km.json +76 -16
  55. package/front_end/core/i18n/locales/kn.json +76 -16
  56. package/front_end/core/i18n/locales/ko.json +76 -16
  57. package/front_end/core/i18n/locales/ky.json +76 -16
  58. package/front_end/core/i18n/locales/lo.json +76 -16
  59. package/front_end/core/i18n/locales/lt.json +76 -16
  60. package/front_end/core/i18n/locales/lv.json +76 -16
  61. package/front_end/core/i18n/locales/mk.json +76 -16
  62. package/front_end/core/i18n/locales/ml.json +76 -16
  63. package/front_end/core/i18n/locales/mn.json +76 -16
  64. package/front_end/core/i18n/locales/mr.json +76 -16
  65. package/front_end/core/i18n/locales/ms.json +76 -16
  66. package/front_end/core/i18n/locales/my.json +78 -18
  67. package/front_end/core/i18n/locales/ne.json +76 -16
  68. package/front_end/core/i18n/locales/nl.json +77 -17
  69. package/front_end/core/i18n/locales/no.json +76 -16
  70. package/front_end/core/i18n/locales/or.json +76 -16
  71. package/front_end/core/i18n/locales/pa.json +76 -16
  72. package/front_end/core/i18n/locales/pl.json +78 -18
  73. package/front_end/core/i18n/locales/pt-PT.json +123 -63
  74. package/front_end/core/i18n/locales/pt.json +78 -18
  75. package/front_end/core/i18n/locales/ro.json +76 -16
  76. package/front_end/core/i18n/locales/ru.json +77 -17
  77. package/front_end/core/i18n/locales/si.json +76 -16
  78. package/front_end/core/i18n/locales/sk.json +76 -16
  79. package/front_end/core/i18n/locales/sl.json +76 -16
  80. package/front_end/core/i18n/locales/sq.json +76 -16
  81. package/front_end/core/i18n/locales/sr-Latn.json +76 -16
  82. package/front_end/core/i18n/locales/sr.json +76 -16
  83. package/front_end/core/i18n/locales/sv.json +76 -16
  84. package/front_end/core/i18n/locales/sw.json +76 -16
  85. package/front_end/core/i18n/locales/ta.json +77 -17
  86. package/front_end/core/i18n/locales/te.json +76 -16
  87. package/front_end/core/i18n/locales/th.json +76 -16
  88. package/front_end/core/i18n/locales/tr.json +76 -16
  89. package/front_end/core/i18n/locales/uk.json +76 -16
  90. package/front_end/core/i18n/locales/ur.json +76 -16
  91. package/front_end/core/i18n/locales/uz.json +77 -17
  92. package/front_end/core/i18n/locales/vi.json +76 -16
  93. package/front_end/core/i18n/locales/zh-HK.json +76 -16
  94. package/front_end/core/i18n/locales/zh-TW.json +76 -16
  95. package/front_end/core/i18n/locales/zh.json +76 -16
  96. package/front_end/core/i18n/locales/zu.json +76 -16
  97. package/front_end/core/platform/dom-utilities.ts +16 -0
  98. package/front_end/core/platform/platform.ts +2 -0
  99. package/front_end/core/protocol_client/InspectorBackend.ts +2 -1
  100. package/front_end/core/protocol_client/NodeURL.ts +1 -1
  101. package/front_end/core/root/Runtime.ts +6 -0
  102. package/front_end/core/sdk/AccessibilityModel.ts +7 -6
  103. package/front_end/core/sdk/CSSMatchedStyles.ts +71 -17
  104. package/front_end/core/sdk/CSSMetadata.ts +15 -0
  105. package/front_end/core/sdk/CSSModel.ts +9 -7
  106. package/front_end/core/sdk/CSSProperty.ts +97 -11
  107. package/front_end/core/sdk/CSSStyleSheetHeader.ts +9 -5
  108. package/front_end/core/sdk/CSSSupports.ts +4 -1
  109. package/front_end/core/sdk/ChildTargetManager.ts +3 -1
  110. package/front_end/core/sdk/Connections.ts +3 -2
  111. package/front_end/core/sdk/ConsoleModel.ts +6 -5
  112. package/front_end/core/sdk/Cookie.ts +4 -2
  113. package/front_end/core/sdk/DOMDebuggerModel.ts +10 -6
  114. package/front_end/core/sdk/DOMModel.ts +2 -2
  115. package/front_end/core/sdk/DebuggerModel.ts +27 -5
  116. package/front_end/core/sdk/HeapProfilerModel.ts +2 -1
  117. package/front_end/core/sdk/NetworkManager.ts +13 -12
  118. package/front_end/core/sdk/NetworkRequest.ts +1 -1
  119. package/front_end/core/sdk/PageLoad.ts +3 -1
  120. package/front_end/core/sdk/PageResourceLoader.ts +9 -7
  121. package/front_end/core/sdk/ProfileTreeModel.ts +3 -2
  122. package/front_end/core/sdk/RemoteObject.ts +18 -6
  123. package/front_end/core/sdk/ResourceTreeModel.ts +17 -11
  124. package/front_end/core/sdk/ScreenCaptureModel.ts +3 -0
  125. package/front_end/core/sdk/Script.ts +4 -3
  126. package/front_end/core/sdk/ServiceWorkerCacheModel.ts +2 -1
  127. package/front_end/core/sdk/SourceMap.ts +10 -6
  128. package/front_end/core/sdk/SourceMapManager.ts +47 -5
  129. package/front_end/core/sdk/Target.ts +2 -1
  130. package/front_end/core/sdk/TracingModel.ts +0 -9
  131. package/front_end/devtools_compatibility.js +1 -0
  132. package/front_end/entrypoints/formatter_worker/CSSRuleParser.ts +1 -1
  133. package/front_end/entrypoints/lighthouse_worker/LighthouseWorkerService.ts +10 -3
  134. package/front_end/entrypoints/main/MainImpl.ts +22 -2
  135. package/front_end/generated/InspectorBackendCommands.js +79 -14
  136. package/front_end/generated/SupportedCSSProperties.js +21 -8
  137. package/front_end/generated/protocol-mapping.d.ts +4 -0
  138. package/front_end/generated/protocol-proxy-api.d.ts +5 -0
  139. package/front_end/generated/protocol.ts +158 -28
  140. package/front_end/legacy/legacy-defs.d.ts +0 -4
  141. package/front_end/legacy_test_runner/heap_profiler_test_runner/heap_profiler_test_runner.js +1 -1
  142. package/front_end/legacy_test_runner/test_runner/TestRunner.js +1 -0
  143. package/front_end/models/bindings/BreakpointManager.ts +68 -11
  144. package/front_end/models/bindings/CSSWorkspaceBinding.ts +9 -2
  145. package/front_end/models/bindings/CompilerScriptMapping.ts +3 -2
  146. package/front_end/models/bindings/ContentProviderBasedProject.ts +12 -9
  147. package/front_end/models/bindings/DebuggerLanguagePlugins.ts +10 -8
  148. package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +8 -1
  149. package/front_end/models/bindings/DefaultScriptMapping.ts +8 -2
  150. package/front_end/models/bindings/FileUtils.ts +3 -2
  151. package/front_end/models/bindings/IgnoreListManager.ts +5 -5
  152. package/front_end/models/bindings/ResourceUtils.ts +5 -4
  153. package/front_end/models/emulation/EmulatedDevices.ts +17 -0
  154. package/front_end/models/extensions/ExtensionAPI.ts +5 -2
  155. package/front_end/models/extensions/ExtensionPanel.ts +2 -1
  156. package/front_end/models/extensions/ExtensionServer.ts +13 -8
  157. package/front_end/models/issues_manager/AttributionReportingIssue.ts +0 -63
  158. package/front_end/models/issues_manager/CookieIssue.ts +7 -0
  159. package/front_end/models/issues_manager/DeprecationIssue.ts +326 -8
  160. package/front_end/models/issues_manager/IssuesManager.ts +4 -0
  161. package/front_end/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
  162. package/front_end/models/issues_manager/descriptions/deprecation.md +1 -1
  163. package/front_end/models/logs/LogManager.ts +2 -1
  164. package/front_end/models/logs/NetworkLog.ts +14 -12
  165. package/front_end/models/persistence/Automapping.ts +17 -16
  166. package/front_end/models/persistence/EditFileSystemView.ts +5 -4
  167. package/front_end/models/persistence/FileSystemWorkspaceBinding.ts +24 -24
  168. package/front_end/models/persistence/IsolatedFileSystem.ts +2 -2
  169. package/front_end/models/persistence/IsolatedFileSystemManager.ts +7 -6
  170. package/front_end/models/persistence/NetworkPersistenceManager.ts +92 -54
  171. package/front_end/models/persistence/PersistenceImpl.ts +7 -7
  172. package/front_end/models/persistence/PlatformFileSystem.ts +7 -8
  173. package/front_end/models/persistence/WorkspaceSettingsTab.ts +3 -2
  174. package/front_end/models/text_utils/CodeMirrorUtils.ts +53 -0
  175. package/front_end/models/text_utils/text_utils.ts +2 -0
  176. package/front_end/models/timeline_model/TimelineModel.ts +31 -30
  177. package/front_end/models/timeline_model/TimelineProfileTree.ts +3 -2
  178. package/front_end/models/workspace/FileManager.ts +9 -6
  179. package/front_end/models/workspace/UISourceCode.ts +16 -14
  180. package/front_end/models/workspace/WorkspaceImpl.ts +40 -16
  181. package/front_end/panels/accessibility/AccessibilitySubPane.ts +2 -1
  182. package/front_end/panels/application/AppManifestView.ts +1 -1
  183. package/front_end/panels/application/ApplicationPanelCacheSection.ts +5 -4
  184. package/front_end/panels/application/ApplicationPanelSidebar.ts +34 -30
  185. package/front_end/panels/application/ApplicationPanelTreeElement.ts +5 -4
  186. package/front_end/panels/application/BackgroundServiceView.ts +2 -1
  187. package/front_end/panels/application/DatabaseQueryView.ts +2 -1
  188. package/front_end/panels/application/InterestGroupTreeElement.ts +3 -2
  189. package/front_end/panels/application/ReportingApiTreeElement.ts +3 -2
  190. package/front_end/panels/application/ResourcesPanel.ts +4 -3
  191. package/front_end/panels/application/ServiceWorkerCacheViews.ts +6 -1
  192. package/front_end/panels/application/TrustTokensTreeElement.ts +3 -2
  193. package/front_end/panels/application/components/BackForwardCacheStrings.ts +10 -1
  194. package/front_end/panels/application/components/BackForwardCacheView.ts +163 -13
  195. package/front_end/panels/application/components/backForwardCacheView.css +15 -4
  196. package/front_end/panels/browser_debugger/XHRBreakpointsSidebarPane.ts +19 -19
  197. package/front_end/panels/changes/ChangesView.ts +38 -0
  198. package/front_end/panels/console/ConsolePinPane.ts +7 -0
  199. package/front_end/panels/console/ConsolePrompt.ts +11 -1
  200. package/front_end/panels/console/ConsoleSidebar.ts +2 -1
  201. package/front_end/panels/console/ConsoleView.ts +60 -32
  202. package/front_end/panels/console/ConsoleViewMessage.ts +12 -9
  203. package/front_end/panels/console/ConsoleViewport.ts +2 -1
  204. package/front_end/panels/console/ErrorStackParser.ts +8 -4
  205. package/front_end/panels/console/consoleView.css +0 -1
  206. package/front_end/panels/coverage/CoverageListView.ts +1 -1
  207. package/front_end/panels/coverage/CoverageModel.ts +6 -6
  208. package/front_end/panels/coverage/CoverageView.ts +2 -1
  209. package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +2 -1
  210. package/front_end/panels/css_overview/components/CSSOverviewStartView.ts +7 -6
  211. package/front_end/panels/css_overview/components/cssOverviewStartView.css +0 -48
  212. package/front_end/panels/css_overview/cssOverviewCompletedView.css +5 -0
  213. package/front_end/panels/css_overview/cssOverviewSidebarPanel.css +2 -0
  214. package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +2 -1
  215. package/front_end/panels/elements/ComputedStyleWidget.ts +2 -1
  216. package/front_end/panels/elements/ElementStatePaneWidget.ts +4 -6
  217. package/front_end/panels/elements/ElementsPanel.ts +16 -5
  218. package/front_end/panels/elements/ImagePreviewPopover.ts +6 -4
  219. package/front_end/panels/elements/PropertiesWidget.ts +4 -24
  220. package/front_end/panels/elements/StyleEditorWidget.ts +2 -1
  221. package/front_end/panels/elements/StylePropertiesSection.ts +1614 -0
  222. package/front_end/panels/elements/StylePropertyHighlighter.ts +2 -1
  223. package/front_end/panels/elements/StylePropertyTreeElement.ts +20 -1
  224. package/front_end/panels/elements/StylesSidebarPane.ts +97 -1675
  225. package/front_end/panels/elements/elements-legacy.ts +3 -3
  226. package/front_end/panels/elements/elements.ts +3 -0
  227. package/front_end/panels/elements/stylesSidebarPane.css +3 -1
  228. package/front_end/panels/emulation/DeviceModeToolbar.ts +2 -1
  229. package/front_end/panels/input/InputTimeline.ts +3 -2
  230. package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +0 -50
  231. package/front_end/panels/issues/ComboBoxOfCheckBoxes.ts +14 -2
  232. package/front_end/panels/issues/IssueAggregator.ts +8 -0
  233. package/front_end/panels/issues/issues.ts +2 -0
  234. package/front_end/panels/lighthouse/LighthouseController.ts +5 -1
  235. package/front_end/panels/lighthouse/LighthousePanel.ts +3 -1
  236. package/front_end/panels/lighthouse/LighthouseReportRenderer.ts +1 -1
  237. package/front_end/panels/lighthouse/LighthouseTimespanView.ts +3 -3
  238. package/front_end/panels/network/BlockedURLsPane.ts +3 -2
  239. package/front_end/panels/network/NetworkConfigView.ts +6 -0
  240. package/front_end/panels/network/NetworkDataGridNode.ts +4 -0
  241. package/front_end/panels/network/NetworkLogView.ts +3 -3
  242. package/front_end/panels/network/RequestHTMLView.ts +1 -0
  243. package/front_end/panels/network/RequestHeadersView.ts +71 -10
  244. package/front_end/panels/network/networkLogView.css +9 -17
  245. package/front_end/panels/network/requestHeadersTree.css +16 -0
  246. package/front_end/panels/profiler/HeapSnapshotView.ts +5 -2
  247. package/front_end/panels/profiler/LiveHeapProfileView.ts +3 -1
  248. package/front_end/panels/profiler/ProfileView.ts +2 -2
  249. package/front_end/panels/profiler/ProfilesPanel.ts +2 -1
  250. package/front_end/panels/profiler/heapProfiler.css +15 -3
  251. package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +4 -2
  252. package/front_end/panels/screencast/ScreencastView.ts +5 -2
  253. package/front_end/panels/search/SearchConfig.ts +2 -1
  254. package/front_end/panels/settings/KeybindsSettingsTab.ts +3 -2
  255. package/front_end/panels/settings/SettingsScreen.ts +4 -1
  256. package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -2
  257. package/front_end/panels/snippets/ScriptSnippetFileSystem.ts +4 -4
  258. package/front_end/panels/sources/BreakpointEditDialog.ts +0 -1
  259. package/front_end/panels/sources/CSSPlugin.ts +6 -6
  260. package/front_end/panels/sources/CoveragePlugin.ts +2 -1
  261. package/front_end/panels/sources/DebuggerPlugin.ts +4 -4
  262. package/front_end/panels/sources/EditingLocationHistoryManager.ts +4 -1
  263. package/front_end/panels/sources/NavigatorView.ts +28 -20
  264. package/front_end/panels/sources/SearchSourcesView.ts +2 -2
  265. package/front_end/panels/sources/SourcesNavigator.ts +4 -2
  266. package/front_end/panels/sources/SourcesPanel.ts +4 -4
  267. package/front_end/panels/sources/SourcesSearchScope.ts +12 -8
  268. package/front_end/panels/sources/SourcesView.ts +3 -1
  269. package/front_end/panels/sources/TabbedEditorContainer.ts +1 -1
  270. package/front_end/panels/sources/components/HeadersView.css +17 -2
  271. package/front_end/panels/sources/components/HeadersView.ts +103 -1
  272. package/front_end/panels/timeline/TimelineFlameChartDataProvider.ts +9 -9
  273. package/front_end/panels/timeline/TimelinePanel.ts +3 -2
  274. package/front_end/panels/timeline/timelinePanel.css +1 -2
  275. package/front_end/panels/utils/utils.ts +97 -0
  276. package/front_end/third_party/codemirror.next/bundle.ts +27 -25
  277. package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
  278. package/front_end/third_party/codemirror.next/chunk/cpp.js +2 -2
  279. package/front_end/third_party/codemirror.next/chunk/java.js +2 -1
  280. package/front_end/third_party/codemirror.next/chunk/json.js +2 -2
  281. package/front_end/third_party/codemirror.next/chunk/legacy.js +1 -1
  282. package/front_end/third_party/codemirror.next/chunk/markdown.js +2 -2
  283. package/front_end/third_party/codemirror.next/chunk/php.js +2 -1
  284. package/front_end/third_party/codemirror.next/chunk/python.js +2 -2
  285. package/front_end/third_party/codemirror.next/chunk/wast.js +2 -1
  286. package/front_end/third_party/codemirror.next/chunk/xml.js +2 -1
  287. package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1884 -2281
  288. package/front_end/third_party/codemirror.next/codemirror.next.js +1 -1
  289. package/front_end/third_party/codemirror.next/package.json +21 -32
  290. package/front_end/third_party/lit-html/README.chromium +3 -3
  291. package/front_end/third_party/lit-html/package/README.md +1 -1
  292. package/front_end/third_party/lit-html/package/async-directive.d.ts +1 -1
  293. package/front_end/third_party/lit-html/package/async-directive.js.map +1 -1
  294. package/front_end/third_party/lit-html/package/development/async-directive.d.ts +1 -1
  295. package/front_end/third_party/lit-html/package/development/async-directive.js.map +1 -1
  296. package/front_end/third_party/lit-html/package/development/directives/choose.d.ts +32 -0
  297. package/front_end/third_party/lit-html/package/development/directives/choose.d.ts.map +1 -0
  298. package/front_end/third_party/lit-html/package/development/directives/choose.js +41 -0
  299. package/front_end/third_party/lit-html/package/development/directives/choose.js.map +1 -0
  300. package/front_end/third_party/lit-html/package/development/directives/join.d.ts +21 -0
  301. package/front_end/third_party/lit-html/package/development/directives/join.d.ts.map +1 -0
  302. package/front_end/third_party/lit-html/package/development/directives/join.js +19 -0
  303. package/front_end/third_party/lit-html/package/development/directives/join.js.map +1 -0
  304. package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts +23 -0
  305. package/front_end/third_party/lit-html/package/development/directives/keyed.d.ts.map +1 -0
  306. package/front_end/third_party/lit-html/package/development/directives/keyed.js +39 -0
  307. package/front_end/third_party/lit-html/package/development/directives/keyed.js.map +1 -0
  308. package/front_end/third_party/lit-html/package/development/directives/map.d.ts +23 -0
  309. package/front_end/third_party/lit-html/package/development/directives/map.d.ts.map +1 -0
  310. package/front_end/third_party/lit-html/package/development/directives/map.js +30 -0
  311. package/front_end/third_party/lit-html/package/development/directives/map.js.map +1 -0
  312. package/front_end/third_party/lit-html/package/development/directives/range.d.ts +24 -0
  313. package/front_end/third_party/lit-html/package/development/directives/range.d.ts.map +1 -0
  314. package/front_end/third_party/lit-html/package/development/directives/range.js +13 -0
  315. package/front_end/third_party/lit-html/package/development/directives/range.js.map +1 -0
  316. package/front_end/third_party/lit-html/package/development/directives/template-content.d.ts +1 -1
  317. package/front_end/third_party/lit-html/package/development/directives/when.d.ts +26 -0
  318. package/front_end/third_party/lit-html/package/development/directives/when.d.ts.map +1 -0
  319. package/front_end/third_party/lit-html/package/development/directives/when.js +9 -0
  320. package/front_end/third_party/lit-html/package/development/directives/when.js.map +1 -0
  321. package/front_end/third_party/lit-html/package/development/lit-html.d.ts +182 -1
  322. package/front_end/third_party/lit-html/package/development/lit-html.d.ts.map +1 -1
  323. package/front_end/third_party/lit-html/package/development/lit-html.js +187 -4
  324. package/front_end/third_party/lit-html/package/development/lit-html.js.map +1 -1
  325. package/front_end/third_party/lit-html/package/development/static.d.ts.map +1 -1
  326. package/front_end/third_party/lit-html/package/development/static.js +7 -0
  327. package/front_end/third_party/lit-html/package/development/static.js.map +1 -1
  328. package/front_end/third_party/lit-html/package/directives/choose.d.ts +32 -0
  329. package/front_end/third_party/lit-html/package/directives/choose.d.ts.map +1 -0
  330. package/front_end/third_party/lit-html/package/directives/choose.js +7 -0
  331. package/front_end/third_party/lit-html/package/directives/choose.js.map +1 -0
  332. package/front_end/third_party/lit-html/package/directives/class-map.js +1 -1
  333. package/front_end/third_party/lit-html/package/directives/guard.js +1 -1
  334. package/front_end/third_party/lit-html/package/directives/join.d.ts +21 -0
  335. package/front_end/third_party/lit-html/package/directives/join.d.ts.map +1 -0
  336. package/front_end/third_party/lit-html/package/directives/join.js +7 -0
  337. package/front_end/third_party/lit-html/package/directives/join.js.map +1 -0
  338. package/front_end/third_party/lit-html/package/directives/keyed.d.ts +23 -0
  339. package/front_end/third_party/lit-html/package/directives/keyed.d.ts.map +1 -0
  340. package/front_end/third_party/lit-html/package/directives/keyed.js +7 -0
  341. package/front_end/third_party/lit-html/package/directives/keyed.js.map +1 -0
  342. package/front_end/third_party/lit-html/package/directives/map.d.ts +23 -0
  343. package/front_end/third_party/lit-html/package/directives/map.d.ts.map +1 -0
  344. package/front_end/third_party/lit-html/package/directives/map.js +7 -0
  345. package/front_end/third_party/lit-html/package/directives/map.js.map +1 -0
  346. package/front_end/third_party/lit-html/package/directives/range.d.ts +24 -0
  347. package/front_end/third_party/lit-html/package/directives/range.d.ts.map +1 -0
  348. package/front_end/third_party/lit-html/package/directives/range.js +7 -0
  349. package/front_end/third_party/lit-html/package/directives/range.js.map +1 -0
  350. package/front_end/third_party/lit-html/package/directives/ref.js +1 -1
  351. package/front_end/third_party/lit-html/package/directives/repeat.js +1 -1
  352. package/front_end/third_party/lit-html/package/directives/style-map.js +1 -1
  353. package/front_end/third_party/lit-html/package/directives/template-content.d.ts +1 -1
  354. package/front_end/third_party/lit-html/package/directives/template-content.js +1 -1
  355. package/front_end/third_party/lit-html/package/directives/unsafe-html.js +1 -1
  356. package/front_end/third_party/lit-html/package/directives/until.js +1 -1
  357. package/front_end/third_party/lit-html/package/directives/when.d.ts +26 -0
  358. package/front_end/third_party/lit-html/package/directives/when.d.ts.map +1 -0
  359. package/front_end/third_party/lit-html/package/directives/when.js +7 -0
  360. package/front_end/third_party/lit-html/package/directives/when.js.map +1 -0
  361. package/front_end/third_party/lit-html/package/lit-html.d.ts +182 -1
  362. package/front_end/third_party/lit-html/package/lit-html.d.ts.map +1 -1
  363. package/front_end/third_party/lit-html/package/lit-html.js +1 -1
  364. package/front_end/third_party/lit-html/package/lit-html.js.map +1 -1
  365. package/front_end/third_party/lit-html/package/package.json +25 -1
  366. package/front_end/third_party/lit-html/package/private-ssr-support.js +1 -1
  367. package/front_end/third_party/lit-html/package/static.d.ts.map +1 -1
  368. package/front_end/third_party/lit-html/package/static.js +1 -1
  369. package/front_end/third_party/lit-html/package/static.js.map +1 -1
  370. package/front_end/third_party/puppeteer/README.chromium +1 -1
  371. package/front_end/third_party/puppeteer/package/README.md +12 -13
  372. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js +5 -1
  373. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/api-docs-entry.js.map +1 -1
  374. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +5 -1
  375. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
  376. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +2 -2
  377. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +2 -2
  378. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +2 -2
  379. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  380. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +13 -6
  381. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
  382. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +5 -1
  383. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
  384. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts +1 -0
  385. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  386. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js +4 -1
  387. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkEventManager.js.map +1 -1
  388. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts +1 -0
  389. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
  390. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +10 -0
  391. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
  392. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts +4 -2
  393. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -1
  394. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -1
  395. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
  396. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +12 -1
  397. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
  398. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js +5 -1
  399. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/fetch.js.map +1 -1
  400. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.d.ts.map +1 -1
  401. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +7 -6
  402. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
  403. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +8 -1
  404. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
  405. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +6 -2
  406. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
  407. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +6 -2
  408. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
  409. package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/revisions.js +1 -1
  410. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +2 -2
  411. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +2 -2
  412. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +2 -2
  413. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
  414. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +13 -6
  415. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
  416. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts +1 -0
  417. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.d.ts.map +1 -1
  418. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js +4 -1
  419. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkEventManager.js.map +1 -1
  420. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts +1 -0
  421. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
  422. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +10 -0
  423. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
  424. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts +4 -2
  425. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -1
  426. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/PDFOptions.js.map +1 -1
  427. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
  428. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +12 -1
  429. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
  430. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.d.ts.map +1 -1
  431. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +2 -5
  432. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
  433. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +3 -0
  434. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
  435. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +1 -1
  436. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
  437. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +1 -1
  438. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
  439. package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/revisions.js +1 -1
  440. package/front_end/third_party/puppeteer/package/lib/types.d.ts +10 -6
  441. package/front_end/third_party/puppeteer/package/package.json +17 -17
  442. package/front_end/ui/components/code_highlighter/CodeHighlighter.ts +1 -1
  443. package/front_end/ui/components/data_grid/DataGrid.ts +8 -9
  444. package/front_end/ui/components/data_grid/DataGridController.ts +3 -1
  445. package/front_end/ui/components/docs/panel_introduction_steps/basic.html +25 -0
  446. package/front_end/ui/components/docs/panel_introduction_steps/basic.ts +25 -0
  447. package/front_end/ui/components/input/input.ts +2 -2
  448. package/front_end/ui/components/linkifier/LinkifierUtils.ts +3 -1
  449. package/front_end/ui/components/panel_feedback/FeedbackButton.ts +4 -1
  450. package/front_end/ui/components/panel_introduction_steps/PanelIntroductionSteps.ts +44 -0
  451. package/front_end/ui/components/panel_introduction_steps/panelIntroductionSteps.css +56 -0
  452. package/front_end/ui/components/panel_introduction_steps/panel_introduction_steps.ts +5 -0
  453. package/front_end/ui/components/render_coordinator/RenderCoordinator.ts +3 -4
  454. package/front_end/ui/components/text_editor/TextEditor.ts +1 -1
  455. package/front_end/ui/components/text_editor/config.ts +1 -35
  456. package/front_end/ui/components/text_editor/javascript.ts +8 -8
  457. package/front_end/ui/components/tree_outline/TreeOutline.ts +10 -9
  458. package/front_end/ui/components/tree_outline/treeOutline.css +1 -1
  459. package/front_end/ui/legacy/ARIAUtils.ts +4 -2
  460. package/front_end/ui/legacy/ContextMenu.ts +14 -0
  461. package/front_end/ui/legacy/DockController.ts +2 -1
  462. package/front_end/ui/legacy/SettingsUI.ts +3 -3
  463. package/front_end/ui/legacy/SoftContextMenu.ts +43 -14
  464. package/front_end/ui/legacy/Toolbar.ts +16 -0
  465. package/front_end/ui/legacy/Treeoutline.ts +17 -7
  466. package/front_end/ui/legacy/UIUtils.ts +2 -2
  467. package/front_end/ui/legacy/View.ts +14 -8
  468. package/front_end/ui/legacy/ViewManager.ts +2 -1
  469. package/front_end/ui/legacy/ViewRegistration.ts +6 -0
  470. package/front_end/ui/legacy/Widget.ts +2 -1
  471. package/front_end/ui/legacy/XLink.ts +8 -3
  472. package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +3 -1
  473. package/front_end/ui/legacy/components/color_picker/Spectrum.ts +43 -11
  474. package/front_end/ui/legacy/components/data_grid/DataGrid.ts +98 -48
  475. package/front_end/ui/legacy/components/data_grid/ViewportDataGrid.ts +4 -3
  476. package/front_end/ui/legacy/components/data_grid/dataGrid.css +24 -28
  477. package/front_end/ui/legacy/components/inline_editor/CSSAngle.ts +5 -11
  478. package/front_end/ui/legacy/components/inline_editor/CSSLength.ts +8 -1
  479. package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +10 -7
  480. package/front_end/ui/legacy/components/perf_ui/LineLevelProfile.ts +11 -10
  481. package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +7 -1
  482. package/front_end/ui/legacy/components/utils/ImagePreview.ts +18 -9
  483. package/front_end/ui/legacy/components/utils/Linkifier.ts +13 -6
  484. package/front_end/ui/legacy/reportView.css +1 -0
  485. package/front_end/ui/legacy/splitWidget.css +1 -1
  486. package/front_end/ui/legacy/tabbedPane.css +2 -0
  487. package/front_end/ui/legacy/themeColors.css +1 -1
  488. package/front_end/ui/legacy/toolbar.css +17 -1
  489. package/front_end/ui/legacy/utils/focus-changed.ts +3 -1
  490. package/inspector_overlay/.eslintrc.js +9 -0
  491. package/package.json +17 -17
  492. package/scripts/eslint_rules/lib/check_component_naming.js +4 -0
  493. package/scripts/eslint_rules/lib/es_modules_import.js +6 -0
  494. package/scripts/eslint_rules/lib/inject_checkbox_styles.js +121 -0
  495. package/scripts/eslint_rules/tests/es_modules_import_test.js +12 -0
  496. package/scripts/eslint_rules/tests/inject_checkbox_styles_test.js +127 -0
  497. package/front_end/models/issues_manager/descriptions/arAttributionEventSourceTriggerDataTooLarge.md +0 -4
  498. package/front_end/models/issues_manager/descriptions/arAttributionTriggerDataTooLarge.md +0 -4
  499. package/front_end/models/issues_manager/descriptions/arInvalidAttributionData.md +0 -8
  500. package/front_end/models/issues_manager/descriptions/arInvalidEventSourceTriggerData.md +0 -9
  501. package/front_end/models/issues_manager/descriptions/arInvalidTriggerDedupKey.md +0 -5
  502. package/front_end/models/issues_manager/descriptions/arInvalidTriggerPriority.md +0 -5
  503. package/front_end/models/issues_manager/descriptions/arMissingAttributionData.md +0 -7
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choose.d.ts","sourceRoot":"","sources":["../../src/directives/choose.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,eAAO,MAAM,MAAM,+FAalB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ const o=(o,r,n)=>{for(const n of r)if(n[0]===o)return(0,n[1])();return null==n?void 0:n()};export{o as choose};
7
+ //# sourceMappingURL=choose.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choose.js","sources":["../src/directives/choose.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Chooses and evaluates a template function from a list based on matching\n * the given `value` to a case.\n *\n * Cases are structured as `[caseValue, func]`. `value` is matched to\n * `caseValue` by strict equality. The first match is selected. Case values\n * can be of any type including primitives, objects, and symbols.\n *\n * This is similar to a switch statement, but as an expression and without\n * fallthrough.\n *\n * @example\n *\n * ```ts\n * render() {\n * return html`\n * ${choose(this.section, [\n * ['home', () => html`<h1>Home</h1>`],\n * ['about', () => html`<h1>About</h1>`]\n * ],\n * () => html`<h1>Error</h1>`)}\n * `;\n * }\n * ```\n */\nexport const choose = <T, V>(\n value: T,\n cases: Array<[T, () => V]>,\n defaultCase?: () => V\n) => {\n for (const c of cases) {\n const caseValue = c[0];\n if (caseValue === value) {\n const fn = c[1];\n return fn();\n }\n }\n return defaultCase?.();\n};\n"],"names":["choose","value","cases","defaultCase","c","fn"],"mappings":";;;;;MA+BaA,EAAS,CACpBC,EACAC,EACAC,KAEA,IAAK,MAAMC,KAAKF,EAEd,GADkBE,EAAE,KACFH,EAEhB,OAAOI,EADID,EAAE,MAIjB,OAAOD,MAAAA,SAAAA"}
@@ -3,5 +3,5 @@ import{noChange as t}from"../lit-html.js";import{directive as i,Directive as s,P
3
3
  * @license
4
4
  * Copyright 2018 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.st){this.st=new Set,void 0!==i.strings&&(this.et=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.et)||void 0===r?void 0:r.has(t))&&this.st.add(t);return this.render(s)}const e=i.element.classList;this.st.forEach((t=>{t in s||(e.remove(t),this.st.delete(t))}));for(const t in s){const i=!!s[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.st.add(t)):(e.remove(t),this.st.delete(t)))}return t}});export{o as classMap};
6
+ */const o=i(class extends s{constructor(t){var i;if(super(t),t.type!==r.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((i=>t[i])).join(" ")+" "}update(i,[s]){var r,o;if(void 0===this.et){this.et=new Set,void 0!==i.strings&&(this.st=new Set(i.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in s)s[t]&&!(null===(r=this.st)||void 0===r?void 0:r.has(t))&&this.et.add(t);return this.render(s)}const e=i.element.classList;this.et.forEach((t=>{t in s||(e.remove(t),this.et.delete(t))}));for(const t in s){const i=!!s[t];i===this.et.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(e.add(t),this.et.add(t)):(e.remove(t),this.et.delete(t)))}return t}});export{o as classMap};
7
7
  //# sourceMappingURL=class-map.js.map
@@ -4,5 +4,5 @@ import{noChange as r}from"../lit-html.js";import{directive as t,Directive as s}f
4
4
  * Copyright 2018 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const e={},i=t(class extends s{constructor(){super(...arguments),this.ot=e}render(r,t){return t()}update(t,[s,e]){if(Array.isArray(s)){if(Array.isArray(this.ot)&&this.ot.length===s.length&&s.every(((r,t)=>r===this.ot[t])))return r}else if(this.ot===s)return r;return this.ot=Array.isArray(s)?Array.from(s):s,this.render(s,e)}});export{i as guard};
7
+ const e={},i=t(class extends s{constructor(){super(...arguments),this.nt=e}render(r,t){return t()}update(t,[s,e]){if(Array.isArray(s)){if(Array.isArray(this.nt)&&this.nt.length===s.length&&s.every(((r,t)=>r===this.nt[t])))return r}else if(this.nt===s)return r;return this.nt=Array.isArray(s)?Array.from(s):s,this.render(s,e)}});export{i as guard};
8
8
  //# sourceMappingURL=guard.js.map
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ /**
7
+ * Returns an iterable containing the values in `items` interleaved with the
8
+ * `joiner` value.
9
+ *
10
+ * @example
11
+ *
12
+ * ```ts
13
+ * render() {
14
+ * return html`
15
+ * ${join(items, html`<span class="separator">|</span>`)}
16
+ * `;
17
+ * }
18
+ */
19
+ export declare function join<I, J>(items: Iterable<I> | undefined, joiner: (index: number) => J): Iterable<I | J>;
20
+ export declare function join<I, J>(items: Iterable<I> | undefined, joiner: J): Iterable<I | J>;
21
+ //# sourceMappingURL=join.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.d.ts","sourceRoot":"","sources":["../../src/directives/join.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EACvB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,EAC9B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,CAAC,GAC3B,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACnB,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EACvB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,EAC9B,MAAM,EAAE,CAAC,GACR,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ function*o(o,t){const f="function"==typeof t;if(void 0!==o){let i=-1;for(const n of o)i>-1&&(yield f?t(i):t),i++,yield n}}export{o as join};
7
+ //# sourceMappingURL=join.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"join.js","sources":["../src/directives/join.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Returns an iterable containing the values in `items` interleaved with the\n * `joiner` value.\n *\n * @example\n *\n * ```ts\n * render() {\n * return html`\n * ${join(items, html`<span class=\"separator\">|</span>`)}\n * `;\n * }\n */\nexport function join<I, J>(\n items: Iterable<I> | undefined,\n joiner: (index: number) => J\n): Iterable<I | J>;\nexport function join<I, J>(\n items: Iterable<I> | undefined,\n joiner: J\n): Iterable<I | J>;\nexport function* join<I, J>(items: Iterable<I> | undefined, joiner: J) {\n const isFunction = typeof joiner === 'function';\n if (items !== undefined) {\n let i = -1;\n for (const value of items) {\n if (i > -1) {\n yield isFunction ? joiner(i) : joiner;\n }\n i++;\n yield value;\n }\n }\n}\n"],"names":["join","items","joiner","isFunction","undefined","i","value"],"mappings":";;;;;SA2BiBA,EAAWC,EAAgCC,GAC1D,MAAMC,EAA+B,mBAAXD,EAC1B,QAAcE,IAAVH,EAAqB,CACvB,IAAII,GAAK,EACT,IAAK,MAAMC,KAASL,EACdI,GAAK,UACDF,EAAaD,EAAOG,GAAKH,GAEjCG,UACMC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ import { Directive, ChildPart, DirectiveParameters } from '../directive.js';
7
+ declare class Keyed extends Directive {
8
+ key: unknown;
9
+ render(k: unknown, v: unknown): unknown;
10
+ update(part: ChildPart, [k, v]: DirectiveParameters<this>): unknown;
11
+ }
12
+ /**
13
+ * Associates a renderable value with a unique key. When the key changes, the
14
+ * previous DOM is removed and disposed before rendering the next value, even
15
+ * if the value - such as a template - is the same.
16
+ *
17
+ * This is useful for forcing re-renders of stateful components, or working
18
+ * with code that expects new data to generate new HTML elements, such as some
19
+ * animation techniques.
20
+ */
21
+ export declare const keyed: (k: unknown, v: unknown) => import("../directive.js").DirectiveResult<typeof Keyed>;
22
+ export {};
23
+ //# sourceMappingURL=keyed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyed.d.ts","sourceRoot":"","sources":["../../src/directives/keyed.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAEL,SAAS,EACT,SAAS,EACT,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAGzB,cAAM,KAAM,SAAQ,SAAS;IAC3B,GAAG,EAAE,OAAO,CAAW;IAEvB,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO;IAKpB,MAAM,CAAC,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,mBAAmB,CAAC,IAAI,CAAC;CAUnE;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,qFAAmB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import{nothing as r}from"../lit-html.js";import{directive as t,Directive as e}from"../directive.js";import{setCommittedValue as s}from"../directive-helpers.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2021 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */const i=t(class extends e{constructor(){super(...arguments),this.key=r}render(r,t){return this.key=r,t}update(r,[t,e]){return t!==this.key&&(s(r),this.key=t),e}});export{i as keyed};
7
+ //# sourceMappingURL=keyed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyed.js","sources":["../src/directives/keyed.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\nimport {nothing} from '../lit-html.js';\nimport {\n directive,\n Directive,\n ChildPart,\n DirectiveParameters,\n} from '../directive.js';\nimport {setCommittedValue} from '../directive-helpers.js';\n\nclass Keyed extends Directive {\n key: unknown = nothing;\n\n render(k: unknown, v: unknown) {\n this.key = k;\n return v;\n }\n\n override update(part: ChildPart, [k, v]: DirectiveParameters<this>) {\n if (k !== this.key) {\n // Clear the part before returning a value. The one-arg form of\n // setCommittedValue sets the value to a sentinel which forces a\n // commit the next render.\n setCommittedValue(part);\n this.key = k;\n }\n return v;\n }\n}\n\n/**\n * Associates a renderable value with a unique key. When the key changes, the\n * previous DOM is removed and disposed before rendering the next value, even\n * if the value - such as a template - is the same.\n *\n * This is useful for forcing re-renders of stateful components, or working\n * with code that expects new data to generate new HTML elements, such as some\n * animation techniques.\n */\nexport const keyed = directive(Keyed);\n"],"names":["keyed","directive","Directive","constructor","this","nothing","render","k","v","key","update","part","setCommittedValue"],"mappings":";;;;;SA4CaA,EAAQC,EA7BrB,cAAoBC,EAApBC,kCACEC,SAAeC,EAEfC,OAAOC,EAAYC,GAEjB,OADAJ,KAAKK,IAAMF,EACJC,EAGAE,OAAOC,GAAkBJ,EAAGC,IAQnC,OAPID,IAAMH,KAAKK,MAIbG,EAAkBD,GAClBP,KAAKK,IAAMF,GAENC"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ /**
7
+ * Returns an iterable containing the result of calling `f(value)` on each
8
+ * value in `items`.
9
+ *
10
+ * @example
11
+ *
12
+ * ```ts
13
+ * render() {
14
+ * return html`
15
+ * <ul>
16
+ * ${map(items, (i) => html`<li>${i}</li>`)}
17
+ * </ul>
18
+ * `;
19
+ * }
20
+ * ```
21
+ */
22
+ export declare function map<T>(items: Iterable<T> | undefined, f: (value: T, index: number) => unknown): Generator<unknown, void, unknown>;
23
+ //# sourceMappingURL=map.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/directives/map.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,wBAAiB,GAAG,CAAC,CAAC,EACpB,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,SAAS,EAC9B,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,OAAO,qCAQxC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ function*o(o,f){if(void 0!==o){let i=0;for(const t of o)yield f(t,i++)}}export{o as map};
7
+ //# sourceMappingURL=map.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"map.js","sources":["../src/directives/map.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Returns an iterable containing the result of calling `f(value)` on each\n * value in `items`.\n *\n * @example\n *\n * ```ts\n * render() {\n * return html`\n * <ul>\n * ${map(items, (i) => html`<li>${i}</li>`)}\n * </ul>\n * `;\n * }\n * ```\n */\nexport function* map<T>(\n items: Iterable<T> | undefined,\n f: (value: T, index: number) => unknown\n) {\n if (items !== undefined) {\n let i = 0;\n for (const value of items) {\n yield f(value, i++);\n }\n }\n}\n"],"names":["map","items","f","undefined","i","value"],"mappings":";;;;;SAsBiBA,EACfC,EACAC,GAEA,QAAcC,IAAVF,EAAqB,CACvB,IAAIG,EAAI,EACR,IAAK,MAAMC,KAASJ,QACZC,EAAEG,EAAOD"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ /**
7
+ * Returns an iterable of integers from `start` to `end` (exclusive)
8
+ * incrementing by `step`.
9
+ *
10
+ * If `start` is omitted, the range starts at `0`. `step` defaults to `1`.
11
+ *
12
+ * @example
13
+ *
14
+ * ```ts
15
+ * render() {
16
+ * return html`
17
+ * ${map(range(8), () => html`<div class="cell"></div>`)}
18
+ * `;
19
+ * }
20
+ * ```
21
+ */
22
+ export declare function range(end: number): Iterable<number>;
23
+ export declare function range(start: number, end: number, step?: number): Iterable<number>;
24
+ //# sourceMappingURL=range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.d.ts","sourceRoot":"","sources":["../../src/directives/range.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;AACrD,wBAAgB,KAAK,CACnB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,IAAI,CAAC,EAAE,MAAM,GACZ,QAAQ,CAAC,MAAM,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ function*o(o,l,n=1){const t=void 0===l?0:o;null!=l||(l=o);for(let o=t;n>0?o<l:l<o;o+=n)yield o}export{o as range};
7
+ //# sourceMappingURL=range.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range.js","sources":["../src/directives/range.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * Returns an iterable of integers from `start` to `end` (exclusive)\n * incrementing by `step`.\n *\n * If `start` is omitted, the range starts at `0`. `step` defaults to `1`.\n *\n * @example\n *\n * ```ts\n * render() {\n * return html`\n * ${map(range(8), () => html`<div class=\"cell\"></div>`)}\n * `;\n * }\n * ```\n */\nexport function range(end: number): Iterable<number>;\nexport function range(\n start: number,\n end: number,\n step?: number\n): Iterable<number>;\nexport function* range(startOrEnd: number, end?: number, step = 1) {\n const start = end === undefined ? 0 : startOrEnd;\n end ??= startOrEnd;\n for (let i = start; step > 0 ? i < end : end < i; i += step) {\n yield i;\n }\n}\n"],"names":["range","startOrEnd","end","step","start","undefined","i"],"mappings":";;;;;SA4BiBA,EAAMC,EAAoBC,EAAcC,EAAO,GAC9D,MAAMC,OAAgBC,IAARH,EAAoB,EAAID,EACtCC,MAAAA,IAAAA,EAAQD,GACR,IAAK,IAAIK,EAAIF,EAAOD,EAAO,EAAIG,EAAIJ,EAAMA,EAAMI,EAAGA,GAAKH,QAC/CG"}
@@ -3,5 +3,5 @@ import{nothing as t}from"../lit-html.js";import{AsyncDirective as i}from"../asyn
3
3
  * @license
4
4
  * Copyright 2020 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const e=()=>new o;class o{}const h=new WeakMap,n=s(class extends i{render(i){return t}update(i,[s]){var e;const o=s!==this.U;return o&&void 0!==this.U&&this.nt(void 0),(o||this.rt!==this.lt)&&(this.U=s,this.ht=null===(e=i.options)||void 0===e?void 0:e.host,this.nt(this.lt=i.element)),t}nt(t){"function"==typeof this.U?(void 0!==h.get(this.U)&&this.U.call(this.ht,void 0),h.set(this.U,t),void 0!==t&&this.U.call(this.ht,t)):this.U.value=t}get rt(){var t;return"function"==typeof this.U?h.get(this.U):null===(t=this.U)||void 0===t?void 0:t.value}disconnected(){this.rt===this.lt&&this.nt(void 0)}reconnected(){this.nt(this.lt)}});export{e as createRef,n as ref};
6
+ */const e=()=>new o;class o{}const h=new WeakMap,n=s(class extends i{render(i){return t}update(i,[s]){var e;const o=s!==this.U;return o&&void 0!==this.U&&this.ot(void 0),(o||this.rt!==this.lt)&&(this.U=s,this.ht=null===(e=i.options)||void 0===e?void 0:e.host,this.ot(this.lt=i.element)),t}ot(t){"function"==typeof this.U?(void 0!==h.get(this.U)&&this.U.call(this.ht,void 0),h.set(this.U,t),void 0!==t&&this.U.call(this.ht,t)):this.U.value=t}get rt(){var t;return"function"==typeof this.U?h.get(this.U):null===(t=this.U)||void 0===t?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});export{e as createRef,n as ref};
7
7
  //# sourceMappingURL=ref.js.map
@@ -4,5 +4,5 @@ import{noChange as e}from"../lit-html.js";import{directive as s,Directive as t,P
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){var d;const a=l(s),{values:p,keys:v}=this.dt(t,r,c);if(!Array.isArray(a))return this.ct=v,p;const h=null!==(d=this.ct)&&void 0!==d?d:this.ct=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=o(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=o(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=o(a[j],p[A]),i(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=o(a[k],p[w]),i(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=i(s,a[j]);o(e,p[w]),m[w]=e}else m[w]=o(t,p[w]),i(s,a[j],t),a[e]=null;w++}else n(a[k]),k--;else n(a[j]),j++;for(;w<=A;){const e=i(s,m[A+1]);o(e,p[w]),m[w++]=e}for(;j<=k;){const e=a[j++];null!==e&&n(e)}return this.ct=v,f(s,m),e}});export{c as repeat};
7
+ const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=s(class extends t{constructor(e){if(super(e),e.type!==r.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return{values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r,c]){var d;const a=l(s),{values:p,keys:v}=this.dt(t,r,c);if(!Array.isArray(a))return this.ut=v,p;const h=null!==(d=this.ut)&&void 0!==d?d:this.ut=[],m=[];let y,x,j=0,k=a.length-1,w=0,A=p.length-1;for(;j<=k&&w<=A;)if(null===a[j])j++;else if(null===a[k])k--;else if(h[j]===v[w])m[w]=o(a[j],p[w]),j++,w++;else if(h[k]===v[A])m[A]=o(a[k],p[A]),k--,A--;else if(h[j]===v[A])m[A]=o(a[j],p[A]),i(s,m[A+1],a[j]),j++,A--;else if(h[k]===v[w])m[w]=o(a[k],p[w]),i(s,a[j],a[k]),k--,w++;else if(void 0===y&&(y=u(v,w,A),x=u(h,j,k)),y.has(h[j]))if(y.has(h[k])){const e=x.get(v[w]),t=void 0!==e?a[e]:null;if(null===t){const e=i(s,a[j]);o(e,p[w]),m[w]=e}else m[w]=o(t,p[w]),i(s,a[j],t),a[e]=null;w++}else n(a[k]),k--;else n(a[j]),j++;for(;w<=A;){const e=i(s,m[A+1]);o(e,p[w]),m[w++]=e}for(;j<=k;){const e=a[j++];null!==e&&n(e)}return this.ut=v,f(s,m),e}});export{c as repeat};
8
8
  //# sourceMappingURL=repeat.js.map
@@ -3,5 +3,5 @@ import{noChange as t}from"../lit-html.js";import{directive as e,Directive as r,P
3
3
  * @license
4
4
  * Copyright 2018 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const i=e(class extends r{constructor(t){var e;if(super(t),t.type!==s.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ut){this.ut=new Set;for(const t in r)this.ut.add(t);return this.render(r)}this.ut.forEach((t=>{null==r[t]&&(this.ut.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in r){const e=r[t];null!=e&&(this.ut.add(t),t.includes("-")?s.setProperty(t,e):s[t]=e)}return t}});export{i as styleMap};
6
+ */const i=e(class extends r{constructor(t){var e;if(super(t),t.type!==s.ATTRIBUTE||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,r)=>{const s=t[r];return null==s?e:e+`${r=r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`}),"")}update(e,[r]){const{style:s}=e.element;if(void 0===this.ct){this.ct=new Set;for(const t in r)this.ct.add(t);return this.render(r)}this.ct.forEach((t=>{null==r[t]&&(this.ct.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in r){const e=r[t];null!=e&&(this.ct.add(t),t.includes("-")?s.setProperty(t,e):s[t]=e)}return t}});export{i as styleMap};
7
7
  //# sourceMappingURL=style-map.js.map
@@ -8,7 +8,7 @@ import { Directive, PartInfo } from '../directive.js';
8
8
  declare class TemplateContentDirective extends Directive {
9
9
  private _previousTemplate?;
10
10
  constructor(partInfo: PartInfo);
11
- render(template: HTMLTemplateElement): typeof noChange | DocumentFragment;
11
+ render(template: HTMLTemplateElement): DocumentFragment | typeof noChange;
12
12
  }
13
13
  /**
14
14
  * Renders the content of a template element as HTML.
@@ -3,5 +3,5 @@ import{noChange as t}from"../lit-html.js";import{directive as r,Directive as e,P
3
3
  * @license
4
4
  * Copyright 2020 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const o=r(class extends e{constructor(t){if(super(t),t.type!==n.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.at===r?t:(this.at=r,document.importNode(r.content,!0))}});export{o as templateContent};
6
+ */const o=r(class extends e{constructor(t){if(super(t),t.type!==n.CHILD)throw Error("templateContent can only be used in child bindings")}render(r){return this.vt===r?t:(this.vt=r,document.importNode(r.content,!0))}});export{o as templateContent};
7
7
  //# sourceMappingURL=template-content.js.map
@@ -3,5 +3,5 @@ import{nothing as t,noChange as i}from"../lit-html.js";import{Directive as r,Par
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */class e extends r{constructor(i){if(super(i),this.it=t,i.type!==s.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===t||null==r)return this.vt=void 0,this.it=r;if(r===i)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this.vt;this.it=r;const s=[r];return s.raw=s,this.vt={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=n(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};
6
+ */class e extends r{constructor(i){if(super(i),this.it=t,i.type!==s.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===t||null==r)return this.ft=void 0,this.it=r;if(r===i)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this.ft;this.it=r;const s=[r];return s.raw=s,this.ft={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;const o=n(e);export{e as UnsafeHTMLDirective,o as unsafeHTML};
7
7
  //# sourceMappingURL=unsafe-html.js.map
@@ -3,5 +3,5 @@ import{noChange as t}from"../lit-html.js";import{directive as s}from"../directiv
3
3
  * @license
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
- */const n=t=>!i(t)&&"function"==typeof t.then;class h extends r{constructor(){super(...arguments),this._$Cft=1073741823,this._$Cwt=[],this._$CG=new e(this),this._$CK=new o}render(...s){var i;return null!==(i=s.find((t=>!n(t))))&&void 0!==i?i:t}update(s,i){const r=this._$Cwt;let e=r.length;this._$Cwt=i;const o=this._$CG,h=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<i.length&&!(t>this._$Cft);t++){const s=i[t];if(!n(s))return this._$Cft=t,s;t<e&&s===r[t]||(this._$Cft=1073741823,e=0,Promise.resolve(s).then((async t=>{for(;h.get();)await h.get();const i=o.deref();if(void 0!==i){const r=i._$Cwt.indexOf(s);r>-1&&r<i._$Cft&&(i._$Cft=r,i.setValue(t))}})))}return t}disconnected(){this._$CG.disconnect(),this._$CK.pause()}reconnected(){this._$CG.reconnect(this),this._$CK.resume()}}const c=s(h);export{h as UntilDirective,c as until};
6
+ */const n=t=>!i(t)&&"function"==typeof t.then;class h extends r{constructor(){super(...arguments),this._$Cwt=1073741823,this._$Cyt=[],this._$CG=new e(this),this._$CK=new o}render(...s){var i;return null!==(i=s.find((t=>!n(t))))&&void 0!==i?i:t}update(s,i){const r=this._$Cyt;let e=r.length;this._$Cyt=i;const o=this._$CG,h=this._$CK;this.isConnected||this.disconnected();for(let t=0;t<i.length&&!(t>this._$Cwt);t++){const s=i[t];if(!n(s))return this._$Cwt=t,s;t<e&&s===r[t]||(this._$Cwt=1073741823,e=0,Promise.resolve(s).then((async t=>{for(;h.get();)await h.get();const i=o.deref();if(void 0!==i){const r=i._$Cyt.indexOf(s);r>-1&&r<i._$Cwt&&(i._$Cwt=r,i.setValue(t))}})))}return t}disconnected(){this._$CG.disconnect(),this._$CK.pause()}reconnected(){this._$CG.reconnect(this),this._$CK.resume()}}const c=s(h);export{h as UntilDirective,c as until};
7
7
  //# sourceMappingURL=until.js.map
@@ -0,0 +1,26 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ /**
7
+ * When `condition` is true, returns the result of calling `trueCase()`, else
8
+ * returns the result of calling `falseCase()` if `falseCase` is defined.
9
+ *
10
+ * This is a convenience wrapper around a ternary expression that makes it a
11
+ * little nicer to write an inline conditional without an else.
12
+ *
13
+ * @example
14
+ *
15
+ * ```ts
16
+ * render() {
17
+ * return html`
18
+ * ${when(this.user, () => html`User: ${this.user.username}`, () => html`Sign In...`)}
19
+ * `;
20
+ * }
21
+ * ```
22
+ */
23
+ export declare function when<T, F>(condition: true, trueCase: () => T, falseCase?: () => F): T;
24
+ export declare function when<T, F = undefined>(condition: false, trueCase: () => T, falseCase?: () => F): F;
25
+ export declare function when<T, F = undefined>(condition: unknown, trueCase: () => T, falseCase?: () => F): T | F;
26
+ //# sourceMappingURL=when.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"when.d.ts","sourceRoot":"","sources":["../../src/directives/when.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EACvB,SAAS,EAAE,IAAI,EACf,QAAQ,EAAE,MAAM,CAAC,EACjB,SAAS,CAAC,EAAE,MAAM,CAAC,GAClB,CAAC,CAAC;AACL,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,EACnC,SAAS,EAAE,KAAK,EAChB,QAAQ,EAAE,MAAM,CAAC,EACjB,SAAS,CAAC,EAAE,MAAM,CAAC,GAClB,CAAC,CAAC;AACL,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,SAAS,EACnC,SAAS,EAAE,OAAO,EAClB,QAAQ,EAAE,MAAM,CAAC,EACjB,SAAS,CAAC,EAAE,MAAM,CAAC,GAClB,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright 2021 Google LLC
4
+ * SPDX-License-Identifier: BSD-3-Clause
5
+ */
6
+ function n(n,o,r){return n?o():null==r?void 0:r()}export{n as when};
7
+ //# sourceMappingURL=when.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"when.js","sources":["../src/directives/when.ts"],"sourcesContent":["/**\n * @license\n * Copyright 2021 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */\n\n/**\n * When `condition` is true, returns the result of calling `trueCase()`, else\n * returns the result of calling `falseCase()` if `falseCase` is defined.\n *\n * This is a convenience wrapper around a ternary expression that makes it a\n * little nicer to write an inline conditional without an else.\n *\n * @example\n *\n * ```ts\n * render() {\n * return html`\n * ${when(this.user, () => html`User: ${this.user.username}`, () => html`Sign In...`)}\n * `;\n * }\n * ```\n */\nexport function when<T, F>(\n condition: true,\n trueCase: () => T,\n falseCase?: () => F\n): T;\nexport function when<T, F = undefined>(\n condition: false,\n trueCase: () => T,\n falseCase?: () => F\n): F;\nexport function when<T, F = undefined>(\n condition: unknown,\n trueCase: () => T,\n falseCase?: () => F\n): T | F;\nexport function when(\n condition: unknown,\n trueCase: () => unknown,\n falseCase?: () => unknown\n): unknown {\n return condition ? trueCase() : falseCase?.();\n}\n"],"names":["when","condition","trueCase","falseCase"],"mappings":";;;;;SAsCgBA,EACdC,EACAC,EACAC,GAEA,OAAOF,EAAYC,IAAaC,MAAAA,SAAAA"}
@@ -5,6 +5,141 @@
5
5
  */
6
6
  /// <reference types="trusted-types" />
7
7
  import type { Directive } from './directive.js';
8
+ /**
9
+ * Contains types that are part of the unstable debug API.
10
+ *
11
+ * Everything in this API is not stable and may change or be removed in the future,
12
+ * even on patch releases.
13
+ */
14
+ export declare namespace LitUnstable {
15
+ /**
16
+ * When Lit is running in dev mode and `window.emitLitDebugLogEvents` is true,
17
+ * we will emit 'lit-debug' events to window, with live details about the update and render
18
+ * lifecycle. These can be useful for writing debug tooling and visualizations.
19
+ *
20
+ * Please be aware that running with window.emitLitDebugLogEvents has performance overhead,
21
+ * making certain operations that are normally very cheap (like a no-op render) much slower,
22
+ * because we must copy data and dispatch events.
23
+ */
24
+ namespace DebugLog {
25
+ type Entry = TemplatePrep | TemplateInstantiated | TemplateInstantiatedAndUpdated | TemplateUpdating | BeginRender | EndRender | CommitPartEntry | SetPartValue;
26
+ interface TemplatePrep {
27
+ kind: 'template prep';
28
+ template: Template;
29
+ strings: TemplateStringsArray;
30
+ clonableTemplate: HTMLTemplateElement;
31
+ parts: TemplatePart[];
32
+ }
33
+ interface BeginRender {
34
+ kind: 'begin render';
35
+ id: number;
36
+ value: unknown;
37
+ container: HTMLElement | DocumentFragment;
38
+ options: RenderOptions | undefined;
39
+ part: ChildPart | undefined;
40
+ }
41
+ interface EndRender {
42
+ kind: 'end render';
43
+ id: number;
44
+ value: unknown;
45
+ container: HTMLElement | DocumentFragment;
46
+ options: RenderOptions | undefined;
47
+ part: ChildPart;
48
+ }
49
+ interface TemplateInstantiated {
50
+ kind: 'template instantiated';
51
+ template: Template | CompiledTemplate;
52
+ instance: TemplateInstance;
53
+ options: RenderOptions | undefined;
54
+ fragment: Node;
55
+ parts: Array<Part | undefined>;
56
+ values: unknown[];
57
+ }
58
+ interface TemplateInstantiatedAndUpdated {
59
+ kind: 'template instantiated and updated';
60
+ template: Template | CompiledTemplate;
61
+ instance: TemplateInstance;
62
+ options: RenderOptions | undefined;
63
+ fragment: Node;
64
+ parts: Array<Part | undefined>;
65
+ values: unknown[];
66
+ }
67
+ interface TemplateUpdating {
68
+ kind: 'template updating';
69
+ template: Template | CompiledTemplate;
70
+ instance: TemplateInstance;
71
+ options: RenderOptions | undefined;
72
+ parts: Array<Part | undefined>;
73
+ values: unknown[];
74
+ }
75
+ interface SetPartValue {
76
+ kind: 'set part';
77
+ part: Part;
78
+ value: unknown;
79
+ valueIndex: number;
80
+ values: unknown[];
81
+ templateInstance: TemplateInstance;
82
+ }
83
+ type CommitPartEntry = CommitNothingToChildEntry | CommitText | CommitNode | CommitAttribute | CommitProperty | CommitBooleanAttribute | CommitEventListener | CommitToElementBinding;
84
+ interface CommitNothingToChildEntry {
85
+ kind: 'commit nothing to child';
86
+ start: ChildNode;
87
+ end: ChildNode | null;
88
+ parent: Disconnectable | undefined;
89
+ options: RenderOptions | undefined;
90
+ }
91
+ interface CommitText {
92
+ kind: 'commit text';
93
+ node: Text;
94
+ value: unknown;
95
+ options: RenderOptions | undefined;
96
+ }
97
+ interface CommitNode {
98
+ kind: 'commit node';
99
+ start: Node;
100
+ parent: Disconnectable | undefined;
101
+ value: Node;
102
+ options: RenderOptions | undefined;
103
+ }
104
+ interface CommitAttribute {
105
+ kind: 'commit attribute';
106
+ element: Element;
107
+ name: string;
108
+ value: unknown;
109
+ options: RenderOptions | undefined;
110
+ }
111
+ interface CommitProperty {
112
+ kind: 'commit property';
113
+ element: Element;
114
+ name: string;
115
+ value: unknown;
116
+ options: RenderOptions | undefined;
117
+ }
118
+ interface CommitBooleanAttribute {
119
+ kind: 'commit boolean attribute';
120
+ element: Element;
121
+ name: string;
122
+ value: boolean;
123
+ options: RenderOptions | undefined;
124
+ }
125
+ interface CommitEventListener {
126
+ kind: 'commit event listener';
127
+ element: Element;
128
+ name: string;
129
+ value: unknown;
130
+ oldListener: unknown;
131
+ options: RenderOptions | undefined;
132
+ removeListener: boolean;
133
+ addListener: boolean;
134
+ }
135
+ interface CommitToElementBinding {
136
+ kind: 'commit to element binding';
137
+ element: Element;
138
+ value: unknown;
139
+ options: RenderOptions | undefined;
140
+ }
141
+ }
142
+ }
8
143
  /**
9
144
  * Used to sanitize any value before it is written into the DOM. This can be
10
145
  * used to implement a security policy of allowed and disallowed values in
@@ -43,6 +178,10 @@ export declare type ValueSanitizer = (value: unknown) => unknown;
43
178
  declare const HTML_RESULT = 1;
44
179
  declare const SVG_RESULT = 2;
45
180
  declare type ResultType = typeof HTML_RESULT | typeof SVG_RESULT;
181
+ declare const ATTRIBUTE_PART = 1;
182
+ declare const CHILD_PART = 2;
183
+ declare const ELEMENT_PART = 6;
184
+ declare const COMMENT_PART = 7;
46
185
  /**
47
186
  * The return type of the template tag functions.
48
187
  */
@@ -76,8 +215,27 @@ export interface CompiledTemplate extends Omit<Template, 'el'> {
76
215
  */
77
216
  export declare const html: (strings: TemplateStringsArray, ...values: unknown[]) => TemplateResult<1>;
78
217
  /**
79
- * Interprets a template literal as an SVG template that can efficiently
218
+ * Interprets a template literal as an SVG fragment that can efficiently
80
219
  * render to and update a container.
220
+ *
221
+ * ```ts
222
+ * const rect = svg`<rect width="10" height="10"></rect>`;
223
+ *
224
+ * const myImage = html`
225
+ * <svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
226
+ * ${rect}
227
+ * </svg>`;
228
+ * ```
229
+ *
230
+ * The `svg` *tag function* should only be used for SVG fragments, or elements
231
+ * that would be contained **inside** an `<svg>` HTML element. A common error is
232
+ * placing an `<svg>` *element* in a template tagged with the `svg` tag
233
+ * function. The `<svg>` element is an HTML element and should be used within a
234
+ * template tagged with the {@linkcode html} tag function.
235
+ *
236
+ * In LitElement usage, it's invalid to return an SVG fragment from the
237
+ * `render()` method, as the SVG fragment will be contained within the element's
238
+ * shadow root and thus cannot be used within an `<svg>` HTML element.
81
239
  */
82
240
  export declare const svg: (strings: TemplateStringsArray, ...values: unknown[]) => TemplateResult<2>;
83
241
  /**
@@ -181,6 +339,29 @@ declare class TemplateInstance implements Disconnectable {
181
339
  _clone(options: RenderOptions | undefined): Node;
182
340
  _update(values: Array<unknown>): void;
183
341
  }
342
+ declare type AttributeTemplatePart = {
343
+ readonly type: typeof ATTRIBUTE_PART;
344
+ readonly index: number;
345
+ readonly name: string;
346
+ };
347
+ declare type NodeTemplatePart = {
348
+ readonly type: typeof CHILD_PART;
349
+ readonly index: number;
350
+ };
351
+ declare type ElementTemplatePart = {
352
+ readonly type: typeof ELEMENT_PART;
353
+ readonly index: number;
354
+ };
355
+ declare type CommentTemplatePart = {
356
+ readonly type: typeof COMMENT_PART;
357
+ readonly index: number;
358
+ };
359
+ /**
360
+ * A TemplatePart represents a dynamic part in a template, before the template
361
+ * is instantiated. When a template is instantiated Parts are created from
362
+ * TemplateParts.
363
+ */
364
+ declare type TemplatePart = NodeTemplatePart | AttributeTemplatePart | ElementTemplatePart | CommentTemplatePart;
184
365
  export declare type Part = ChildPart | AttributePart | PropertyPart | BooleanAttributePart | ElementPart | EventPart;
185
366
  export type { ChildPart };
186
367
  declare class ChildPart implements Disconnectable {
@@ -1 +1 @@
1
- {"version":3,"file":"lit-html.d.ts","sourceRoot":"","sources":["../src/lit-html.ts"],"names":[],"mappings":"AAAA;;;;GAIG;;AAGH,OAAO,KAAK,EAAC,SAAS,EAA4B,MAAM,gBAAgB,CAAC;AA0DzE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,oBAAY,gBAAgB,GAAG,CAC7B,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,UAAU,GAAG,WAAW,KAC3B,cAAc,CAAC;AAEpB;;;;;;;;;;GAUG;AACH,oBAAY,cAAc,GAAG,CAAC,KAAK,EAAE,OAAO,KA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