chrome-devtools-frontend 1.0.937244 → 1.0.939066
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.stylelintrc.json +15 -11
- package/config/gni/all_devtools_files.gni +0 -19
- package/config/gni/devtools_grd_files.gni +2 -9
- package/front_end/Images/whatsnew.avif +0 -0
- package/front_end/Tests.js +30 -30
- package/front_end/core/host/InspectorFrontendHost.ts +16 -30
- package/front_end/core/host/InspectorFrontendHostAPI.ts +1 -0
- package/front_end/core/host/UserMetrics.ts +25 -0
- package/front_end/core/i18n/locales/en-US.json +4 -1
- package/front_end/core/i18n/locales/en-XL.json +4 -1
- package/front_end/core/platform/string-utilities.ts +23 -0
- package/front_end/core/sdk/DOMModel.ts +1 -1
- package/front_end/core/sdk/EmulationModel.ts +11 -0
- package/front_end/core/sdk/NetworkManager.ts +1 -0
- package/front_end/core/sdk/sdk-meta.ts +30 -1
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -4
- package/front_end/entrypoints/inspector_main/RenderingOptions.ts +9 -2
- package/front_end/entrypoints/inspector_main/inspector_main-meta.ts +0 -3
- package/front_end/entrypoints/inspector_main/renderingOptions.css +2 -2
- package/front_end/entrypoints/lighthouse_worker/LighthouseService.ts +3 -1
- package/front_end/entrypoints/main/MainImpl.ts +15 -0
- package/front_end/entrypoints/main/main-meta.ts +0 -2
- package/front_end/entrypoints/node_app/node_app-meta.ts +0 -3
- package/front_end/entrypoints/node_app/node_app.js +3 -0
- package/front_end/entrypoints/node_main/nodeConnectionsPanel.css +2 -2
- package/front_end/entrypoints/shell/shell.json +3 -7
- package/front_end/entrypoints/worker_app/worker_app.json +0 -2
- package/front_end/generated/InspectorBackendCommands.js +14 -5
- package/front_end/generated/SupportedCSSProperties.js +8 -4
- package/front_end/generated/protocol-mapping.d.ts +10 -0
- package/front_end/generated/protocol-proxy-api.d.ts +19 -0
- package/front_end/generated/protocol.d.ts +56 -1
- package/front_end/legacy_test_runner/test_runner/test_runner.js +2 -4
- package/front_end/models/issues_manager/DeprecationIssue.ts +67 -0
- package/front_end/models/issues_manager/IssuesManager.ts +5 -0
- package/front_end/models/issues_manager/descriptions/deprecation.md +3 -0
- package/front_end/models/issues_manager/issues_manager.ts +2 -0
- package/front_end/models/persistence/editFileSystemView.css +1 -1
- package/front_end/models/persistence/workspaceSettingsTab.css +1 -1
- package/front_end/panels/accessibility/AXBreadcrumbsPane.ts +8 -1
- package/front_end/panels/accessibility/accessibility-meta.ts +0 -3
- package/front_end/panels/accessibility/accessibilityNode.css +2 -2
- package/front_end/panels/accessibility/axBreadcrumbs.css +1 -1
- package/front_end/panels/animation/animationTimeline.css +5 -5
- package/front_end/panels/application/components/ReportsGrid.ts +38 -4
- package/front_end/panels/application/components/frameDetailsReportView.css +1 -1
- package/front_end/panels/application/components/reportingApiGrid.css +4 -0
- package/front_end/panels/application/module.json +1 -3
- package/front_end/panels/application/resourcesPanel.css +1 -1
- package/front_end/panels/application/resourcesSidebar.css +1 -1
- package/front_end/panels/browser_debugger/browser_debugger-meta.ts +0 -5
- package/front_end/panels/browser_debugger/xhrBreakpointsSidebarPane.css +2 -5
- package/front_end/panels/changes/changesSidebar.css +1 -1
- package/front_end/panels/changes/changesView.css +2 -2
- package/front_end/panels/console/console-meta.ts +1 -3
- package/front_end/panels/console/consolePrompt.css +1 -1
- package/front_end/panels/console/consoleSidebar.css +4 -4
- package/front_end/panels/console/consoleView.css +2 -2
- package/front_end/panels/coverage/coverage-meta.ts +0 -3
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +18 -17
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +31 -10
- package/front_end/panels/css_overview/components/cssOverviewStartView.css +1 -1
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +8 -8
- package/front_end/panels/elements/StylePropertyTreeElement.ts +3 -0
- package/front_end/panels/elements/classesPaneWidget.css +1 -1
- package/front_end/panels/elements/components/adornerSettingsPane.css +1 -1
- package/front_end/panels/elements/computedStyleWidgetTree.css +1 -1
- package/front_end/panels/elements/elements-meta.ts +0 -2
- package/front_end/panels/elements/elementsPanel.css +1 -1
- package/front_end/panels/elements/elementsTreeOutline.css +1 -1
- package/front_end/panels/elements/layoutPane.css +1 -1
- package/front_end/panels/elements/platformFontsWidget.css +1 -1
- package/front_end/panels/elements/stylesSectionTree.css +1 -1
- package/front_end/panels/elements/stylesSidebarPane.css +8 -0
- package/front_end/panels/event_listeners/EventListenersView.ts +5 -4
- package/front_end/panels/event_listeners/eventListenersView.css +3 -2
- package/front_end/panels/help/ReleaseNoteText.ts +28 -0
- package/front_end/panels/issues/IssueKindView.ts +0 -6
- package/front_end/panels/issues/IssueView.ts +19 -27
- package/front_end/panels/issues/components/HideIssuesMenu.ts +7 -11
- package/front_end/panels/issues/components/hideIssuesMenu.css +8 -0
- package/front_end/panels/issues/issuesTree.css +28 -5
- package/front_end/panels/lighthouse/lighthouseStartView.css +2 -2
- package/front_end/panels/lighthouse/module.json +0 -1
- package/front_end/panels/media/module.json +0 -1
- package/front_end/panels/media/playerListView.css +1 -1
- package/front_end/panels/mobile_throttling/throttlingSettingsTab.css +1 -1
- package/front_end/panels/network/NetworkSearchScope.ts +3 -1
- package/front_end/panels/network/blockedURLsPane.css +1 -1
- package/front_end/panels/network/module.json +0 -1
- package/front_end/panels/network/networkConfigView.css +1 -1
- package/front_end/panels/network/networkLogView.css +3 -3
- package/front_end/panels/profiler/profileLauncherView.css +3 -3
- package/front_end/panels/protocol_monitor/ProtocolMonitor.ts +3 -0
- package/front_end/panels/protocol_monitor/protocol_monitor-meta.ts +0 -2
- package/front_end/panels/security/mainView.css +2 -2
- package/front_end/panels/security/originView.css +1 -1
- package/front_end/panels/sensors/sensors.css +2 -2
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +1 -1
- package/front_end/panels/settings/emulation/devicesSettingsTab.css +4 -4
- package/front_end/panels/settings/frameworkIgnoreListSettingsTab.css +1 -1
- package/front_end/panels/settings/settingsScreen.css +2 -2
- package/front_end/panels/sources/CoveragePlugin.ts +7 -2
- package/front_end/panels/sources/JavaScriptBreakpointsSidebarPane.ts +14 -17
- package/front_end/panels/sources/callStackSidebarPane.css +1 -1
- package/front_end/panels/sources/dialog.css +1 -1
- package/front_end/panels/sources/javaScriptBreakpointsSidebarPane.css +19 -45
- package/front_end/panels/sources/navigatorTree.css +4 -4
- package/front_end/panels/sources/sources-meta.ts +0 -2
- package/front_end/panels/sources/sourcesPanel.css +2 -2
- package/front_end/panels/sources/threadsSidebarPane.css +1 -1
- package/front_end/panels/timeline/components/WebVitalsTooltip.css +1 -1
- package/front_end/panels/timeline/historyToolbarButton.css +1 -1
- package/front_end/panels/timeline/module.json +0 -1
- package/front_end/panels/timeline/timelineStatusDialog.css +1 -1
- package/front_end/panels/webauthn/webauthnPane.css +2 -2
- package/front_end/third_party/puppeteer/package/CHANGELOG.md +29 -0
- package/front_end/third_party/puppeteer/package/README.md +12 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js +13 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js +25 -7
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js +6 -6
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Coverage.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js +16 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Dialog.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js +8 -8
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FileChooser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts +21 -9
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js +155 -72
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js +32 -29
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js +14 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js +3 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js +13 -12
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js +2 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts +33 -4
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js +92 -46
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts +21 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js +30 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/TaskQueue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/Tracing.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js +5 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js +14 -14
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js +11 -5
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js +30 -15
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js +2 -2
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node/install.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/node.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/cjs/puppeteer/web.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts +2 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js +9 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Browser.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js +22 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Connection.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js +6 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/DOMWorld.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts +10 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js +7 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Errors.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts +21 -9
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js +150 -68
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/FrameManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts +5 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js +22 -19
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js +15 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js +2 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Input.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts +3 -3
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js +2 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/JSHandle.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js +1 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/NetworkManager.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts +33 -4
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js +69 -23
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Page.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts +3 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js +3 -2
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/Target.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts +21 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.d.ts.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js +26 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/TaskQueue.js.map +1 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/common/helper.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js +7 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts +4 -0
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js +27 -12
- package/front_end/third_party/puppeteer/package/lib/esm/puppeteer/node/Launcher.js.map +1 -1
- package/front_end/third_party/puppeteer/package/lib/types.d.ts +3862 -3771
- package/front_end/third_party/puppeteer/package/package.json +33 -40
- package/front_end/ui/components/adorners/adorner.css +1 -1
- package/front_end/ui/components/data_grid/DataGrid.ts +3 -1
- package/front_end/ui/components/data_grid/DataGridUtils.ts +8 -5
- package/front_end/ui/components/data_grid/dataGrid.css +0 -5
- package/front_end/ui/components/expandable_list/expandableList.css +1 -1
- package/front_end/ui/components/icon_button/iconButton.css +1 -0
- package/front_end/ui/components/linear_memory_inspector/valueInterpreterDisplay.css +1 -2
- package/front_end/ui/components/linear_memory_inspector/valueInterpreterSettings.css +1 -1
- package/front_end/ui/components/report_view/reportKey.css +1 -1
- package/front_end/ui/components/report_view/reportValue.css +1 -1
- package/front_end/ui/components/settings/settingCheckbox.css +1 -1
- package/front_end/ui/legacy/ContextMenu.ts +10 -3
- package/front_end/ui/legacy/ListWidget.ts +2 -4
- package/front_end/ui/legacy/SoftContextMenu.ts +9 -2
- package/front_end/ui/legacy/XLink.ts +6 -6
- package/front_end/ui/legacy/checkboxTextLabel.css +2 -2
- package/front_end/ui/legacy/components/color_picker/spectrum.css +9 -9
- package/front_end/ui/legacy/components/data_grid/dataGrid.css +2 -2
- package/front_end/ui/legacy/components/inline_editor/cssAngleEditor.css +3 -3
- package/front_end/ui/legacy/components/inline_editor/cssLength.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/cssShadowEditor.css +1 -1
- package/front_end/ui/legacy/components/inline_editor/fontEditor.css +1 -1
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +2 -2
- package/front_end/ui/legacy/components/perf_ui/module.json +1 -3
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +13 -7
- package/front_end/ui/legacy/components/quick_open/filteredListWidget.css +2 -2
- package/front_end/ui/legacy/components/source_frame/imageView.css +1 -1
- package/front_end/ui/legacy/components/source_frame/module.json +0 -1
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +6 -14
- package/front_end/ui/legacy/emptyWidget.css +1 -1
- package/front_end/ui/legacy/filter.css +1 -1
- package/front_end/ui/legacy/infobar.css +2 -2
- package/front_end/ui/legacy/inspectorCommon.css +46 -46
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +4 -4
- package/front_end/ui/legacy/inspectorSyntaxHighlightDark.css +1 -1
- package/front_end/ui/legacy/inspectorViewTabbedPane.css +1 -1
- package/front_end/ui/legacy/searchableView.css +1 -1
- package/front_end/ui/legacy/softContextMenu.css +11 -1
- package/front_end/ui/legacy/tabbedPane.css +5 -0
- package/front_end/ui/legacy/textPrompt.css +1 -1
- package/front_end/ui/legacy/themeColors.css +1 -0
- package/front_end/ui/legacy/toolbar.css +8 -8
- package/front_end/ui/legacy/treeoutline.css +20 -4
- package/front_end/ui/legacy/viewContainers.css +6 -1
- package/inspector_overlay/common.css +2 -2
- package/inspector_overlay/tool_highlight.css +1 -1
- package/inspector_overlay/tool_paused.css +2 -2
- package/package.json +1 -1
- package/scripts/build/ninja/copy-file.js +10 -1
- package/scripts/build/ninja/copy-files.js +10 -1
- package/scripts/eslint_rules/lib/check_test_definitions.js +2 -1
- package/scripts/eslint_rules/lib/es_modules_import.js +21 -20
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -3
- package/scripts/eslint_rules/lib/migrate_create_shadow_root_with_styles.js +2 -2
- package/scripts/eslint_rules/lib/migrate_register_required_css.js +1 -1
- package/scripts/eslint_rules/tests/check_test_definitions_test.js +34 -0
- package/scripts/eslint_rules/tests/es_modules_import_test.js +3 -2
- package/scripts/eslint_rules/tests/migrate_create_shadow_root_with_styles_test.js +1 -1
- package/scripts/eslint_rules/tests/migrate_register_required_css_test.js +1 -1
- package/front_end/entrypoints/inspector_main/module.json +0 -9
- package/front_end/panels/accessibility/module.json +0 -7
- package/front_end/panels/browser_debugger/module.json +0 -7
- package/front_end/panels/console/module.json +0 -6
- package/front_end/panels/coverage/module.json +0 -6
- package/front_end/panels/elements/module.json +0 -6
- package/front_end/panels/protocol_monitor/module.json +0 -6
- package/front_end/panels/sources/module.json +0 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "puppeteer",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "A high-level API to control headless Chrome over the DevTools Protocol",
|
|
5
5
|
"main": "./cjs-entry.js",
|
|
6
6
|
"types": "lib/types.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"assert-unit-coverage": "cross-env COVERAGE=1 mocha --config mocha-config/coverage-tests.js",
|
|
18
18
|
"funit": "cross-env PUPPETEER_PRODUCT=firefox npm run unit",
|
|
19
19
|
"test": "npm run tsc && npm run lint --silent && npm run unit-with-coverage && npm run test-browser",
|
|
20
|
-
"prepare": "node typescript-if-required.js",
|
|
20
|
+
"prepare": "node typescript-if-required.js && husky install",
|
|
21
21
|
"prepublishOnly": "npm run build",
|
|
22
22
|
"dev-install": "npm run tsc && node install.js",
|
|
23
23
|
"install": "node install.js",
|
|
@@ -58,67 +58,60 @@
|
|
|
58
58
|
"author": "The Chromium Authors",
|
|
59
59
|
"license": "Apache-2.0",
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"debug": "4.3.
|
|
61
|
+
"debug": "4.3.2",
|
|
62
62
|
"devtools-protocol": "0.0.901419",
|
|
63
63
|
"extract-zip": "2.0.1",
|
|
64
64
|
"https-proxy-agent": "5.0.0",
|
|
65
|
-
"node-fetch": "2.6.
|
|
65
|
+
"node-fetch": "2.6.5",
|
|
66
66
|
"pkg-dir": "4.2.0",
|
|
67
|
-
"progress": "2.0.
|
|
67
|
+
"progress": "2.0.3",
|
|
68
68
|
"proxy-from-env": "1.1.0",
|
|
69
69
|
"rimraf": "3.0.2",
|
|
70
|
-
"tar-fs": "2.
|
|
71
|
-
"unbzip2-stream": "1.
|
|
72
|
-
"ws": "
|
|
70
|
+
"tar-fs": "2.1.1",
|
|
71
|
+
"unbzip2-stream": "1.4.3",
|
|
72
|
+
"ws": "8.2.3"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@commitlint/cli": "
|
|
76
|
-
"@commitlint/config-conventional": "
|
|
77
|
-
"@microsoft/api-documenter": "7.13.
|
|
78
|
-
"@microsoft/api-extractor": "7.15
|
|
79
|
-
"@types/debug": "
|
|
75
|
+
"@commitlint/cli": "13.2.0",
|
|
76
|
+
"@commitlint/config-conventional": "13.2.0",
|
|
77
|
+
"@microsoft/api-documenter": "7.13.65",
|
|
78
|
+
"@microsoft/api-extractor": "7.18.15",
|
|
79
|
+
"@types/debug": "4.1.7",
|
|
80
80
|
"@types/mime": "2.0.3",
|
|
81
|
-
"@types/mocha": "
|
|
82
|
-
"@types/node": "
|
|
81
|
+
"@types/mocha": "9.0.0",
|
|
82
|
+
"@types/node": "16.10.9",
|
|
83
83
|
"@types/proxy-from-env": "1.0.1",
|
|
84
|
-
"@types/rimraf": "
|
|
85
|
-
"@types/sinon": "
|
|
86
|
-
"@types/tar-fs": "
|
|
87
|
-
"@types/ws": "
|
|
84
|
+
"@types/rimraf": "3.0.2",
|
|
85
|
+
"@types/sinon": "10.0.4",
|
|
86
|
+
"@types/tar-fs": "2.0.1",
|
|
87
|
+
"@types/ws": "8.2.0",
|
|
88
88
|
"@typescript-eslint/eslint-plugin": "4.23.0",
|
|
89
|
-
"@typescript-eslint/parser": "4.
|
|
90
|
-
"@web/test-runner": "0.
|
|
89
|
+
"@typescript-eslint/parser": "4.33.0",
|
|
90
|
+
"@web/test-runner": "0.13.18",
|
|
91
91
|
"commonmark": "0.29.3",
|
|
92
92
|
"cross-env": "7.0.3",
|
|
93
|
-
"eslint": "7.
|
|
93
|
+
"eslint": "7.32.0",
|
|
94
94
|
"eslint-config-prettier": "8.3.0",
|
|
95
95
|
"eslint-plugin-import": "2.22.1",
|
|
96
|
-
"eslint-plugin-mocha": "
|
|
97
|
-
"eslint-plugin-prettier": "
|
|
98
|
-
"eslint-plugin-unicorn": "
|
|
99
|
-
"esprima": "4.0.
|
|
96
|
+
"eslint-plugin-mocha": "9.0.0",
|
|
97
|
+
"eslint-plugin-prettier": "4.0.0",
|
|
98
|
+
"eslint-plugin-unicorn": "37.0.1",
|
|
99
|
+
"esprima": "4.0.1",
|
|
100
100
|
"expect": "25.2.7",
|
|
101
|
-
"husky": "
|
|
101
|
+
"husky": "7.0.2",
|
|
102
102
|
"jpeg-js": "0.3.7",
|
|
103
103
|
"mime": "2.5.2",
|
|
104
104
|
"minimist": "1.2.0",
|
|
105
|
-
"mocha": "
|
|
105
|
+
"mocha": "9.1.3",
|
|
106
106
|
"ncp": "2.0.0",
|
|
107
|
-
"pixelmatch": "
|
|
108
|
-
"pngjs": "
|
|
107
|
+
"pixelmatch": "5.2.1",
|
|
108
|
+
"pngjs": "6.0.0",
|
|
109
109
|
"prettier": "2.3.0",
|
|
110
110
|
"sinon": "9.2.4",
|
|
111
111
|
"source-map-support": "0.5.19",
|
|
112
|
-
"standard-version": "9.3.
|
|
112
|
+
"standard-version": "9.3.2",
|
|
113
113
|
"text-diff": "1.0.1",
|
|
114
|
-
"ts-node": "
|
|
115
|
-
"typescript": "4.
|
|
116
|
-
},
|
|
117
|
-
"husky": {
|
|
118
|
-
"hooks": {
|
|
119
|
-
"pre-commit": "npm run eslint",
|
|
120
|
-
"commit-msg": "commitlint --env HUSKY_GIT_PARAMS",
|
|
121
|
-
"pre-push": "npm run tsc && npm run eslint && npm run doc && npm run ensure-pinned-deps"
|
|
122
|
-
}
|
|
114
|
+
"ts-node": "10.4.0",
|
|
115
|
+
"typescript": "4.4.4"
|
|
123
116
|
}
|
|
124
117
|
}
|
|
@@ -33,7 +33,7 @@ slot {
|
|
|
33
33
|
border-color: var(--override-adorner-focus-border-color, var(--color-primary));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
:host([aria-pressed=true]) slot {
|
|
36
|
+
:host([aria-pressed="true"]) slot {
|
|
37
37
|
color: var(--override-adorner-active-text-color, var(--color-background));
|
|
38
38
|
background-color: var(--override-adorner-active-background-color, var(--color-primary));
|
|
39
39
|
border: 1px solid var(--override-adorner-active-background-color, var(--color-primary));
|
|
@@ -729,6 +729,7 @@ export class DataGrid extends HTMLElement {
|
|
|
729
729
|
const cellIsFocusableCell = anyColumnsSortable && columnIndex === tabbableCell[0] && tabbableCell[1] === 0;
|
|
730
730
|
|
|
731
731
|
return LitHtml.html`<th class=${thClasses}
|
|
732
|
+
style=${LitHtml.Directives.ifDefined(col.styles ? LitHtml.Directives.styleMap(col.styles) : undefined)}
|
|
732
733
|
data-grid-header-cell=${col.id}
|
|
733
734
|
@focus=${(): void => {
|
|
734
735
|
this.focusCellIfRequired([columnIndex, 0]);
|
|
@@ -749,7 +750,7 @@ export class DataGrid extends HTMLElement {
|
|
|
749
750
|
data-row-index='0'
|
|
750
751
|
data-col-index=${columnIndex}
|
|
751
752
|
tabindex=${LitHtml.Directives.ifDefined(anyColumnsSortable ? (cellIsFocusableCell ? '0' : '-1') : undefined)}
|
|
752
|
-
>${col.title}</th>`;
|
|
753
|
+
>${col.titleElement || col.title}</th>`;
|
|
753
754
|
})}
|
|
754
755
|
</tr>
|
|
755
756
|
</thead>
|
|
@@ -790,6 +791,7 @@ export class DataGrid extends HTMLElement {
|
|
|
790
791
|
const cellOutput = col.visible ? renderCellValue(cell) : null;
|
|
791
792
|
return LitHtml.html`<td
|
|
792
793
|
class=${cellClasses}
|
|
794
|
+
style=${LitHtml.Directives.ifDefined(col.styles ? LitHtml.Directives.styleMap(col.styles) : undefined)}
|
|
793
795
|
tabindex=${cellIsFocusableCell ? '0' : '-1'}
|
|
794
796
|
aria-colindex=${columnIndex + 1}
|
|
795
797
|
title=${cell.title || String(cell.value).substr(0, 20)}
|
|
@@ -6,6 +6,10 @@ import type * as LitHtml from '../../../ui/lit-html/lit-html.js';
|
|
|
6
6
|
import * as DataGridRenderers from './DataGridRenderers.js';
|
|
7
7
|
import * as IconButton from '../../../ui/components/icon_button/icon_button.js';
|
|
8
8
|
|
|
9
|
+
export interface CSSStylesObject {
|
|
10
|
+
readonly [name: string]: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
9
13
|
/**
|
|
10
14
|
* A column is an object with the following properties:
|
|
11
15
|
*
|
|
@@ -19,14 +23,17 @@ import * as IconButton from '../../../ui/components/icon_button/icon_button.js';
|
|
|
19
23
|
* Note, if you're rendering a data-grid yourself you likely shouldn't set
|
|
20
24
|
* this. It's set by the `data-grid-controller`, which is the component you
|
|
21
25
|
* want if your table needs to be sortable.
|
|
26
|
+
* - `styles`: an optional property of key-value sets of CSS properties and values.
|
|
22
27
|
*/
|
|
23
28
|
export interface Column {
|
|
24
29
|
id: string;
|
|
25
30
|
title: string;
|
|
31
|
+
titleElement?: LitHtml.TemplateResult;
|
|
26
32
|
sortable?: boolean;
|
|
27
33
|
widthWeighting: number;
|
|
28
34
|
hideable: boolean;
|
|
29
35
|
visible: boolean;
|
|
36
|
+
styles?: CSSStylesObject;
|
|
30
37
|
}
|
|
31
38
|
|
|
32
39
|
export type CellValue = string|number|boolean|IconButton.Icon.Icon|null;
|
|
@@ -56,14 +63,10 @@ export function getStringifiedCellValues(cells: Cell[]): string {
|
|
|
56
63
|
.toLowerCase();
|
|
57
64
|
}
|
|
58
65
|
|
|
59
|
-
export interface RowCSSStylesObject {
|
|
60
|
-
readonly [name: string]: string;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
66
|
export type Row = {
|
|
64
67
|
cells: Cell[],
|
|
65
68
|
hidden?: boolean,
|
|
66
|
-
styles?:
|
|
69
|
+
styles?: CSSStylesObject,
|
|
67
70
|
};
|
|
68
71
|
|
|
69
72
|
export const enum SortDirection {
|
|
@@ -106,11 +106,6 @@ th.firstVisibleColumn {
|
|
|
106
106
|
padding: 0;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
tr td:nth-child(1),
|
|
110
|
-
tr th:nth-child(1) {
|
|
111
|
-
text-align: center;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
109
|
.filler-row.empty-table td {
|
|
115
110
|
/* If the table is empty and we have no renderable rows, the filler row cell
|
|
116
111
|
* needs to have some form of padding to make it have some height, else it
|
|
@@ -17,7 +17,7 @@ div {
|
|
|
17
17
|
|
|
18
18
|
.arrow-icon {
|
|
19
19
|
display: inline-block;
|
|
20
|
-
-webkit-mask-image: url(Images/treeoutlineTriangles.svg);
|
|
20
|
+
-webkit-mask-image: url("Images/treeoutlineTriangles.svg");
|
|
21
21
|
-webkit-mask-size: 32px 24px;
|
|
22
22
|
-webkit-mask-position: 0 0;
|
|
23
23
|
background-color: var(--color-text-primary);
|
|
@@ -137,8 +137,11 @@ export class Section {
|
|
|
137
137
|
this.items = [];
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
appendItem(label: string, handler: () => void, disabled?: boolean): Item {
|
|
140
|
+
appendItem(label: string, handler: () => void, disabled?: boolean, additionalElement?: Element): Item {
|
|
141
141
|
const item = new Item(this.contextMenu, 'item', label, disabled);
|
|
142
|
+
if (additionalElement) {
|
|
143
|
+
item.customElement = additionalElement;
|
|
144
|
+
}
|
|
142
145
|
this.items.push(item);
|
|
143
146
|
if (this.contextMenu) {
|
|
144
147
|
this.contextMenu.setHandler(item.id(), handler);
|
|
@@ -147,7 +150,7 @@ export class Section {
|
|
|
147
150
|
}
|
|
148
151
|
|
|
149
152
|
appendCustomItem(element: Element): Item {
|
|
150
|
-
const item = new Item(this.contextMenu, 'item'
|
|
153
|
+
const item = new Item(this.contextMenu, 'item');
|
|
151
154
|
item.customElement = element;
|
|
152
155
|
this.items.push(item);
|
|
153
156
|
return item;
|
|
@@ -331,6 +334,7 @@ export class SubMenu extends Item {
|
|
|
331
334
|
|
|
332
335
|
export interface ContextMenuOptions {
|
|
333
336
|
useSoftMenu?: boolean;
|
|
337
|
+
onSoftMenuClosed?: () => void;
|
|
334
338
|
x?: number;
|
|
335
339
|
y?: number;
|
|
336
340
|
}
|
|
@@ -344,6 +348,7 @@ export class ContextMenu extends SubMenu {
|
|
|
344
348
|
private readonly useSoftMenu: boolean;
|
|
345
349
|
private x: number;
|
|
346
350
|
private y: number;
|
|
351
|
+
private onSoftMenuClosed?: () => void;
|
|
347
352
|
private readonly handlers: Map<number, () => void>;
|
|
348
353
|
idInternal: number;
|
|
349
354
|
private softMenu?: SoftContextMenu;
|
|
@@ -360,6 +365,7 @@ export class ContextMenu extends SubMenu {
|
|
|
360
365
|
this.useSoftMenu = Boolean(options.useSoftMenu);
|
|
361
366
|
this.x = options.x === undefined ? mouseEvent.x : options.x;
|
|
362
367
|
this.y = options.y === undefined ? mouseEvent.y : options.y;
|
|
368
|
+
this.onSoftMenuClosed = options.onSoftMenuClosed;
|
|
363
369
|
this.handlers = new Map();
|
|
364
370
|
this.idInternal = 0;
|
|
365
371
|
|
|
@@ -431,7 +437,8 @@ export class ContextMenu extends SubMenu {
|
|
|
431
437
|
const ownerDocument = (eventTarget as HTMLElement).ownerDocument;
|
|
432
438
|
if (this.useSoftMenu || ContextMenu.useSoftMenu ||
|
|
433
439
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode()) {
|
|
434
|
-
this.softMenu = new SoftContextMenu(
|
|
440
|
+
this.softMenu = new SoftContextMenu(
|
|
441
|
+
(menuObject as SoftContextMenuDescriptor[]), this.itemSelected.bind(this), undefined, this.onSoftMenuClosed);
|
|
435
442
|
this.softMenu.show((ownerDocument as Document), new AnchorBox(this.x, this.y, 0, 0));
|
|
436
443
|
} else {
|
|
437
444
|
Host.InspectorFrontendHost.InspectorFrontendHostInstance.showContextMenuAtPoint(
|
|
@@ -283,10 +283,8 @@ export class Editor<T> {
|
|
|
283
283
|
const buttonsRow = this.element.createChild('div', 'editor-buttons');
|
|
284
284
|
this.commitButton = createTextButton('', this.commitClicked.bind(this), '', true /* primary */);
|
|
285
285
|
buttonsRow.appendChild(this.commitButton);
|
|
286
|
-
this.cancelButton =
|
|
287
|
-
i18nString(UIStrings.cancelString), this.cancelClicked.bind(this), '', true /* primary
|
|
288
|
-
this.cancelButton.addEventListener(
|
|
289
|
-
'keydown', onKeyDown.bind(null, event => event.key === 'Enter', this.cancelClicked.bind(this)), false);
|
|
286
|
+
this.cancelButton =
|
|
287
|
+
createTextButton(i18nString(UIStrings.cancelString), this.cancelClicked.bind(this), '', true /* primary */);
|
|
290
288
|
buttonsRow.appendChild(this.cancelButton);
|
|
291
289
|
|
|
292
290
|
this.errorMessageContainer = this.element.createChild('div', 'list-widget-input-validation-error');
|
|
@@ -77,15 +77,18 @@ export class SoftContextMenu {
|
|
|
77
77
|
private hideOnUserGesture?: ((event: Event) => void);
|
|
78
78
|
private activeSubMenuElement?: HTMLElement;
|
|
79
79
|
private subMenu?: SoftContextMenu;
|
|
80
|
+
private onMenuClosed?: () => void;
|
|
80
81
|
|
|
81
82
|
constructor(
|
|
82
|
-
items: SoftContextMenuDescriptor[], itemSelectedCallback: (arg0: number) => void, parentMenu?: SoftContextMenu
|
|
83
|
+
items: SoftContextMenuDescriptor[], itemSelectedCallback: (arg0: number) => void, parentMenu?: SoftContextMenu,
|
|
84
|
+
onMenuClosed?: () => void) {
|
|
83
85
|
this.items = items;
|
|
84
86
|
this.itemSelectedCallback = itemSelectedCallback;
|
|
85
87
|
this.parentMenu = parentMenu;
|
|
86
88
|
this.highlightedMenuItemElement = null;
|
|
87
89
|
|
|
88
90
|
this.detailsForElementMap = new WeakMap();
|
|
91
|
+
this.onMenuClosed = onMenuClosed;
|
|
89
92
|
}
|
|
90
93
|
|
|
91
94
|
show(document: Document, anchorBox: AnchorBox): void {
|
|
@@ -165,6 +168,7 @@ export class SoftContextMenu {
|
|
|
165
168
|
delete this.parentMenu.activeSubMenuElement;
|
|
166
169
|
}
|
|
167
170
|
}
|
|
171
|
+
this.onMenuClosed?.();
|
|
168
172
|
}
|
|
169
173
|
|
|
170
174
|
private createMenuItem(item: SoftContextMenuDescriptor): HTMLElement {
|
|
@@ -193,7 +197,7 @@ export class SoftContextMenu {
|
|
|
193
197
|
subMenuTimer: undefined,
|
|
194
198
|
};
|
|
195
199
|
|
|
196
|
-
if (item.element) {
|
|
200
|
+
if (item.element && !item.label) {
|
|
197
201
|
const wrapper = menuItemElement.createChild('div', 'soft-context-menu-custom-item');
|
|
198
202
|
wrapper.appendChild(item.element);
|
|
199
203
|
detailsForElement.customElement = (item.element as HTMLElement);
|
|
@@ -205,6 +209,9 @@ export class SoftContextMenu {
|
|
|
205
209
|
menuItemElement.classList.add('soft-context-menu-disabled');
|
|
206
210
|
}
|
|
207
211
|
createTextChild(menuItemElement, item.label || '');
|
|
212
|
+
if (item.element) {
|
|
213
|
+
menuItemElement.appendChild(item.element);
|
|
214
|
+
}
|
|
208
215
|
menuItemElement.createChild('span', 'soft-context-menu-shortcut').textContent = item.shortcut || '';
|
|
209
216
|
|
|
210
217
|
menuItemElement.addEventListener('mousedown', this.menuItemMouseDown.bind(this), false);
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import * as Host from '../../core/host/host.js';
|
|
6
6
|
import * as Platform from '../../core/platform/platform.js';
|
|
7
7
|
import * as ComponentHelpers from '../components/helpers/helpers.js';
|
|
8
|
+
import * as LitHtml from '../lit-html/lit-html.js';
|
|
8
9
|
|
|
9
10
|
import * as ARIAUtils from './ARIAUtils.js';
|
|
10
11
|
import type {ContextMenu, Provider} from './ContextMenu.js';
|
|
@@ -14,9 +15,6 @@ import {addReferrerToURLIfNecessary, copyLinkAddressLabel, MaxLengthForDisplayed
|
|
|
14
15
|
import {XElement} from './XElement.js';
|
|
15
16
|
|
|
16
17
|
export class XLink extends XElement {
|
|
17
|
-
tabIndex: number;
|
|
18
|
-
target: string;
|
|
19
|
-
rel: string;
|
|
20
18
|
hrefInternal: string|null;
|
|
21
19
|
private clickable: boolean;
|
|
22
20
|
private readonly onClick: (arg0: Event) => void;
|
|
@@ -40,9 +38,9 @@ export class XLink extends XElement {
|
|
|
40
38
|
|
|
41
39
|
this.style.setProperty('display', 'inline');
|
|
42
40
|
ARIAUtils.markAsLink(this);
|
|
43
|
-
this.
|
|
44
|
-
this.target
|
|
45
|
-
this.rel
|
|
41
|
+
this.setAttribute('tabindex', '0');
|
|
42
|
+
this.setAttribute('target', '_blank');
|
|
43
|
+
this.setAttribute('rel', 'noopener');
|
|
46
44
|
|
|
47
45
|
this.hrefInternal = null;
|
|
48
46
|
this.clickable = true;
|
|
@@ -152,3 +150,5 @@ export class ContextMenuProvider implements Provider {
|
|
|
152
150
|
}
|
|
153
151
|
|
|
154
152
|
ComponentHelpers.CustomElements.defineComponent('x-link', XLink);
|
|
153
|
+
|
|
154
|
+
export const sample = LitHtml.html`<p>Hello, <x-link>world!</x-link></p>`;
|
|
@@ -44,7 +44,7 @@ input.dt-checkbox-themed {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
input.dt-checkbox-themed::after {
|
|
47
|
-
content:
|
|
47
|
+
content: "";
|
|
48
48
|
line-height: 10px;
|
|
49
49
|
position: absolute;
|
|
50
50
|
cursor: pointer;
|
|
@@ -61,7 +61,7 @@ input.dt-checkbox-themed:checked::after {
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
:host-context(.-theme-with-dark-background) input:not(.dt-checkbox-themed) {
|
|
64
|
-
|
|
64
|
+
accent-color: var(--color-checkbox-accent-color);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.dt-checkbox-text {
|
|
@@ -242,26 +242,26 @@
|
|
|
242
242
|
user-select: text;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
.contrast-details-value [is=ui-icon] {
|
|
245
|
+
.contrast-details-value [is="ui-icon"] {
|
|
246
246
|
display: none;
|
|
247
247
|
margin-left: 5px;
|
|
248
248
|
background-color: var(--color-text-primary);
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
.spectrum-contrast-details .toolbar-state-on [is=ui-icon] {
|
|
251
|
+
.spectrum-contrast-details .toolbar-state-on [is="ui-icon"] {
|
|
252
252
|
background-color: var(--color-text-secondary);
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
[is=ui-icon].smallicon-no {
|
|
255
|
+
[is="ui-icon"].smallicon-no {
|
|
256
256
|
background-color: var(--color-accent-red);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
.contrast-pass-fail span[is=ui-icon] {
|
|
259
|
+
.contrast-pass-fail span[is="ui-icon"] {
|
|
260
260
|
margin-left: 5px;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
-
[is=ui-icon].smallicon-checkmark-square,
|
|
264
|
-
[is=ui-icon].smallicon-checkmark-behind {
|
|
263
|
+
[is="ui-icon"].smallicon-checkmark-square,
|
|
264
|
+
[is="ui-icon"].smallicon-checkmark-behind {
|
|
265
265
|
background-color: var(--color-accent-green);
|
|
266
266
|
}
|
|
267
267
|
|
|
@@ -328,7 +328,7 @@
|
|
|
328
328
|
background-color: var(--color-background-inverted-opacity-50);
|
|
329
329
|
}
|
|
330
330
|
|
|
331
|
-
[is=ui-icon].icon-mask.copy-color-icon {
|
|
331
|
+
[is="ui-icon"].icon-mask.copy-color-icon {
|
|
332
332
|
background-color: var(--color-background);
|
|
333
333
|
}
|
|
334
334
|
|
|
@@ -461,7 +461,7 @@
|
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
.palette-color-shades > .spectrum-palette-color {
|
|
464
|
-
margin: 8px 0 0
|
|
464
|
+
margin: 8px 0 0;
|
|
465
465
|
margin-left: 8px;
|
|
466
466
|
width: 12px;
|
|
467
467
|
}
|
|
@@ -644,7 +644,7 @@ div.palette-preview {
|
|
|
644
644
|
padding-bottom: 2px;
|
|
645
645
|
}
|
|
646
646
|
|
|
647
|
-
.swatch.contrast [is=ui-icon] {
|
|
647
|
+
.swatch.contrast [is="ui-icon"] {
|
|
648
648
|
margin: -2px;
|
|
649
649
|
}
|
|
650
650
|
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
@media (forced-colors: active) {
|
|
295
|
-
.sort-order-icon-container [is=ui-icon].icon-mask,
|
|
295
|
+
.sort-order-icon-container [is="ui-icon"].icon-mask,
|
|
296
296
|
.data-grid td.disclosure::before {
|
|
297
297
|
forced-color-adjust: none;
|
|
298
298
|
background-color: ButtonText;
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
}
|
|
304
304
|
|
|
305
305
|
.data-grid th.sortable:hover *,
|
|
306
|
-
.data-grid th.sortable:hover .sort-order-icon-container [is=ui-icon].icon-mask,
|
|
306
|
+
.data-grid th.sortable:hover .sort-order-icon-container [is="ui-icon"].icon-mask,
|
|
307
307
|
.data-grid tr.parent.selected td.disclosure::before,
|
|
308
308
|
.data-grid:focus tr.parent.selected td.disclosure::before,
|
|
309
309
|
.data-grid table.data tr.parent.revealed:hover td.disclosure::before {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
.editor.interacting::before {
|
|
8
|
-
content:
|
|
8
|
+
content: "";
|
|
9
9
|
position: fixed;
|
|
10
10
|
inset: 0;
|
|
11
11
|
}
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
width: 0;
|
|
43
43
|
height: 0;
|
|
44
44
|
border-style: solid;
|
|
45
|
-
border-width: 0 0.9em 0.9em
|
|
45
|
+
border-width: 0 0.9em 0.9em;
|
|
46
46
|
border-color: transparent transparent var(--color-background-elevation-1) transparent;
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
.hand::before {
|
|
79
|
-
content:
|
|
79
|
+
content: "";
|
|
80
80
|
display: inline-block;
|
|
81
81
|
position: absolute;
|
|
82
82
|
top: -0.6em;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.object-properties-section {
|
|
12
|
-
padding: 0
|
|
12
|
+
padding: 0;
|
|
13
13
|
color: var(--color-text-primary);
|
|
14
14
|
display: flex;
|
|
15
15
|
flex-direction: column;
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
.object-properties-section li.editing-sub-part {
|
|
27
27
|
padding: 3px 12px 8px 6px;
|
|
28
|
-
margin: -1px -6px -8px
|
|
28
|
+
margin: -1px -6px -8px;
|
|
29
29
|
text-overflow: clip;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -334,14 +334,20 @@ export class FilteredListWidget extends Common.ObjectWrapper.eventMixin<EventTyp
|
|
|
334
334
|
break;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
|
|
338
|
-
|
|
337
|
+
// If there is an auto-completion, press 'tab' first time will show the auto-completion, second time will rewrite
|
|
338
|
+
// the query. Otherwise it will select the next item.
|
|
339
|
+
if (completion) {
|
|
340
|
+
const selection = this.inputBoxElement.getComponentSelection();
|
|
341
|
+
if (selection && selection.toString().trim() !== '') {
|
|
342
|
+
this.setQuery(completion);
|
|
343
|
+
return true;
|
|
344
|
+
}
|
|
345
|
+
this.inputBoxElement.focus();
|
|
346
|
+
this.inputBoxElement.setText(completion);
|
|
347
|
+
this.setQuerySelectedRange(userEnteredText.length, completion.length);
|
|
348
|
+
return true;
|
|
339
349
|
}
|
|
340
|
-
this.
|
|
341
|
-
this.inputBoxElement.setText(completion);
|
|
342
|
-
this.inputBoxElement.setSelectedRange(userEnteredText.length, completion.length);
|
|
343
|
-
this.scheduleFilter();
|
|
344
|
-
return true;
|
|
350
|
+
return this.list.selectNextItem(true, false);
|
|
345
351
|
}
|
|
346
352
|
|
|
347
353
|
private itemsFilteredForTest(): void {
|