@deepseek-ai/dsh-experimental-inspector 0.2.1-alpha.1 → 0.2.1-alpha.2
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/README.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/lib/devtools/chunks/AutocompleteHistory-BJXpeT8x.js +73 -0
- package/lib/devtools/chunks/{FormatterActions-FcPgI0uV.js → FormatterActions-D6HaA-6R.js} +17 -6
- package/lib/devtools/chunks/MapUtilities-C6UNTa-e.js +50 -0
- package/lib/devtools/chunks/ResolverBase-BwI5i_Uj.js +33 -0
- package/lib/devtools/chunks/Runnable-Mz0aa-Zm.js +22 -0
- package/lib/devtools/chunks/StorageItem-_wZ3i4k_.js +12 -0
- package/lib/devtools/chunks/StringUtilities-CMDxNrEc.js +190 -0
- package/lib/devtools/chunks/{accessibility-DWRTNZZv.js → accessibility-CriFXarh.js} +225 -226
- package/lib/devtools/chunks/{acorn-_jSanihy.js → acorn-yx0Qbj0X.js} +58 -51
- package/lib/devtools/chunks/{adorners-BWktF-ky.js → adorners-D4bF0Xzg.js} +2 -4
- package/lib/devtools/chunks/{ai_assistance-DDJWkXxY.js → ai_assistance-Dzdtg9s8.js} +571 -558
- package/lib/devtools/chunks/{angular-Dutmu-L9.js → angular-CyYAyotN.js} +1 -1
- package/lib/devtools/chunks/{animation-CD0BSrV5.js → animation-eDKXX3j-.js} +91 -92
- package/lib/devtools/chunks/{application-lhlpfZHi.js → application-DG2H8fsc.js} +2237 -2232
- package/lib/devtools/chunks/{autofill-BGuL7dsc.js → autofill-DfPSF3rt.js} +24 -24
- package/lib/devtools/chunks/autofill_manager-BMi-l6xF.js +59 -0
- package/lib/devtools/chunks/{bindings-tcbmvQVs.js → bindings-DyamxTH2.js} +492 -462
- package/lib/devtools/chunks/{browser-DL1S1Kiu.js → browser-DveWkZD5.js} +1 -1
- package/lib/devtools/chunks/{browser_debugger-DN-AYfjS.js → browser_debugger-D1rAg54B.js} +146 -145
- package/lib/devtools/chunks/{changes-MAt-jsZ6.js → changes-BtlH668S.js} +46 -45
- package/lib/devtools/chunks/{changes-Bz1DPttV.js → changes-DjZCqvtP.js} +1 -1
- package/lib/devtools/chunks/{code_highlighter-BhlfnyuU.js → code_highlighter-CNBDhX-D.js} +6 -3
- package/lib/devtools/chunks/{codemirror-CBR9VJma.js → codemirror-CENmPHF2.js} +157 -137
- package/lib/devtools/chunks/{color_picker-CSYjZTOC.js → color_picker-Dp-vkqgw.js} +273 -273
- package/lib/devtools/chunks/{common-BYmylR0V.js → common-Bs7hSOUj.js} +2683 -2500
- package/lib/devtools/chunks/{common-qd_KLeYO.js → common-DMSVbaSb.js} +1077 -1439
- package/lib/devtools/chunks/{common-C4B90py-.js → common-DfB2Jn7T.js} +1 -1
- package/lib/devtools/chunks/{components-B16X4F0B.js → components-Cgicptsb.js} +68 -67
- package/lib/devtools/chunks/{components-BKOYfwK8.js → components-ChzSxrwT.js} +258 -293
- package/lib/devtools/chunks/{components-h5Jc4d84.js → components-CvUVvCxT.js} +170 -116
- package/lib/devtools/chunks/{console-Drj1oaLX.js → console-CtRRpTLN.js} +1 -1
- package/lib/devtools/chunks/{console-77CI3Icw.js → console-DyEFGxFI.js} +596 -601
- package/lib/devtools/chunks/{console_counters-DHu-wfML.js → console_counters-BNvk7SJs.js} +26 -26
- package/lib/devtools/chunks/{coverage-CpoO-XbA.js → coverage-CQXVwXWb.js} +156 -150
- package/lib/devtools/chunks/{coverage-BRz5wjEx.js → coverage-CqLu6rH2.js} +1 -1
- package/lib/devtools/chunks/{cpp-CdElSCaB.js → cpp-DaQzQ7EV.js} +1 -1
- package/lib/devtools/chunks/{css_overview-SeeMOLow.js → css_overview-UA7lEwB3.js} +344 -345
- package/lib/devtools/chunks/{data_grid-CmrktS_0.js → data_grid-C6uthMeA.js} +109 -102
- package/lib/devtools/chunks/{developer_resources-B-QY9DgD.js → developer_resources-DZK4LTht.js} +38 -37
- package/lib/devtools/chunks/{diff-qn55JSCS.js → diff-DXcO6Sla.js} +24 -7
- package/lib/devtools/chunks/{dom_extension-B0UaTHZj.js → dom_extension-BLny9Waw.js} +38 -14
- package/lib/devtools/chunks/{elements-hAAHn6NI.js → elements-BcCLQjkY.js} +1 -1
- package/lib/devtools/chunks/{elements-CDjB5Fth.js → elements-CiWscFTo.js} +1881 -1776
- package/lib/devtools/chunks/{emulation-C44LPBGb.js → emulation-CODu4I-X.js} +277 -271
- package/lib/devtools/chunks/{emulation-Dg2hBZ1s.js → emulation-CiDWWSyp.js} +61 -59
- package/lib/devtools/chunks/{emulation-DggDTf7O.js → emulation-DZzLxQFD.js} +5 -5
- package/lib/devtools/chunks/{emulation-NnJHzQl1.js → emulation-XHyfGdIJ.js} +1 -1
- package/lib/devtools/chunks/{event_listeners-4BHBMf72.js → event_listeners-DtE39_Kt.js} +63 -63
- package/lib/devtools/chunks/explain-BThUhJV7.js +745 -0
- package/lib/devtools/chunks/{greendev-DBJXfpCn.js → greendev-Ce4kKfHb.js} +38 -38
- package/lib/devtools/chunks/{heap_snapshot-CZt2KUPL.js → heap_snapshot-CTdRQlts.js} +6 -6
- package/lib/devtools/chunks/{helper-CKpZDOFV.js → helper-Cjm7Cg8b.js} +2 -2
- package/lib/devtools/chunks/{helpers-DsKPYsmx.js → helpers-CsoC22BH.js} +2 -2
- package/lib/devtools/chunks/{i18n-C9j87hY4.js → i18n-CTSaUtZW.js} +4 -3
- package/lib/devtools/chunks/{icon_button-CT9RqK0x.js → icon_button-DGIafxYW.js} +2 -2
- package/lib/devtools/chunks/{inline_editor-CLWkQCiR.js → inline_editor-R0UzNzHT.js} +218 -215
- package/lib/devtools/chunks/{inspector_main-BLu_O8D7.js → inspector_main-BFYGyw-S.js} +75 -73
- package/lib/devtools/chunks/{issue_counter-B-O8QiNX.js → issue_counter-aMFHu4Gr.js} +22 -22
- package/lib/devtools/chunks/{issues-CLL26jNI.js → issues-CfCXyqwr.js} +469 -468
- package/lib/devtools/chunks/{issues_manager-DoHFLsWX.js → issues_manager-Ba4w-pt1.js} +537 -599
- package/lib/devtools/chunks/{java-7g_qfFa2.js → java-62KG1Vpd.js} +1 -1
- package/lib/devtools/chunks/{layer_viewer-CvO3kOPP.js → layer_viewer-BFHe_8OF.js} +101 -100
- package/lib/devtools/chunks/{layers-DcApw5dX.js → layers-6D_9Q2Y1.js} +22 -22
- package/lib/devtools/chunks/{legacy-DOCLCisy.js → legacy-BYV0pRId.js} +4 -4
- package/lib/devtools/chunks/{legacy-DyOfBngp.js → legacy-dM_vujv7.js} +6124 -5944
- package/lib/devtools/chunks/{less-DXiRNbd4.js → less-DmILOm_5.js} +1 -1
- package/lib/devtools/chunks/{lighthouse-CygUfumH.js → lighthouse-B1qM_zXC.js} +181 -191
- package/lib/devtools/chunks/{lighthouse-DmUsroOS.js → lighthouse-DJcRfd0b.js} +1 -1
- package/lib/devtools/chunks/{linear_memory_inspector-DSV9fl0V.js → linear_memory_inspector-Dh5tCAly.js} +22 -22
- package/lib/devtools/chunks/{live-metrics-zpo2ismg.js → live-metrics-TfuE0SdD.js} +73 -73
- package/lib/devtools/chunks/main-BR5KnvrD.js +753 -0
- package/lib/devtools/chunks/{main-qTzsGFwj.js → main-CbxrZ9aG.js} +1 -1
- package/lib/devtools/chunks/{markdown-tZoR6Bsu.js → markdown-rVMoMV9q.js} +1 -1
- package/lib/devtools/chunks/{markdown_view-aKEyq0rC.js → markdown_view-D8BG91nk.js} +15 -12
- package/lib/devtools/chunks/{marked-zGgfoDxO.js → marked-CGxJO_CC.js} +20 -14
- package/lib/devtools/chunks/{media-BzwDz5b0.js → media-BABuksh3.js} +236 -234
- package/lib/devtools/chunks/{media-C0DVk3qR.js → media-lWOgExWb.js} +1 -1
- package/lib/devtools/chunks/{menus-DimAk5cf.js → menus-CbHfE0QY.js} +85 -83
- package/lib/devtools/chunks/{mobile_throttling-dQC-GSI7.js → mobile_throttling-DGhe-4CD.js} +174 -172
- package/lib/devtools/chunks/{mobile_throttling-BgPzBoO6.js → mobile_throttling-DPEmQ593.js} +1 -1
- package/lib/devtools/chunks/{network-CyhLFA2l.js → network-CzcqMGwP.js} +1237 -1230
- package/lib/devtools/chunks/{network-DzcurDFK.js → network-JFnyzJOB.js} +1 -1
- package/lib/devtools/chunks/{object_ui-2tm7WZMn.js → object_ui-DABOq_QK.js} +1 -1
- package/lib/devtools/chunks/{object_ui-Bie0H5KA.js → object_ui-Dj5WXMwl.js} +255 -249
- package/lib/devtools/chunks/{perf_ui-KVoWf3e9.js → perf_ui-B15al1e8.js} +409 -405
- package/lib/devtools/chunks/{perf_ui-Bo2RX_xn.js → perf_ui-Ch09Shon.js} +1 -1
- package/lib/devtools/chunks/{performance_monitor-BEz49skW.js → performance_monitor-DCfknRat.js} +55 -56
- package/lib/devtools/chunks/{php-tl5gKrxu.js → php-DVXaM5js.js} +7 -5
- package/lib/devtools/chunks/platform-D4TUCh2P.js +7 -0
- package/lib/devtools/chunks/{profiler-C17aLbu4.js → profiler-UQy7Xmba.js} +707 -703
- package/lib/devtools/chunks/{protocol_client-Cwf_jb8R.js → protocol_client-L4-X1Qrb.js} +2 -2
- package/lib/devtools/chunks/protocol_monitor-BzX6rcsq.js +2 -0
- package/lib/devtools/chunks/{protocol_monitor-BLhMIpKa.js → protocol_monitor-Ddc61xch.js} +221 -225
- package/lib/devtools/chunks/{puppeteer-ZLIws8kb.js → puppeteer-xGpmPP-i.js} +71 -89
- package/lib/devtools/chunks/{python-D9AdRkMm.js → python-kisakN4d.js} +3 -3
- package/lib/devtools/chunks/{quick_open-7ZN9BrSN.js → quick_open-Elz6wiNU.js} +1 -1
- package/lib/devtools/chunks/{quick_open-5LqbYTTQ.js → quick_open-thOwmkpR.js} +92 -94
- package/lib/devtools/chunks/{recorder-B3_Y3iDF.js → recorder-DkmPS_WQ.js} +365 -365
- package/lib/devtools/chunks/{request_link_icon-CvnKeL4L.js → request_link_icon-Do-M_Ngw.js} +2 -2
- package/lib/devtools/chunks/{root-DbVQo07X.js → root-DdvV-xPu.js} +52 -74
- package/lib/devtools/chunks/{sass-BPQlMmw2.js → sass-CIsRpUiU.js} +1 -1
- package/lib/devtools/chunks/{security-CjIwFb65.js → security-Cc3n87Ux.js} +175 -181
- package/lib/devtools/chunks/{sensors-CUwCaLnd.js → sensors-D7jtF6tx.js} +62 -62
- package/lib/devtools/chunks/{settings-Bf7TI_d_.js → settings-C_IwrLR-.js} +235 -229
- package/lib/devtools/chunks/{settings_ui-CeFF2GA-.js → settings_ui-B3VIsMZM.js} +54 -53
- package/lib/devtools/chunks/{snackbars-EEiDVB8s.js → snackbars-Dq3yf1tP.js} +1169 -1172
- package/lib/devtools/chunks/{snippets-WH3uwILH.js → snippets-BWb8aXVv.js} +51 -50
- package/lib/devtools/chunks/{source_frame-Dy_EOM1p.js → source_frame-B0odV5Nv.js} +166 -165
- package/lib/devtools/chunks/{sources-B8BvvVSx.js → sources-RXc96T-9.js} +1131 -1140
- package/lib/devtools/chunks/{sources-CFqn8ozl.js → sources-TPBBLKKV.js} +1 -1
- package/lib/devtools/chunks/{suggestion_input-D_5giWdk.js → suggestion_input-CbJ3xGeU.js} +6 -16
- package/lib/devtools/chunks/{svelte-DJS1itbE.js → svelte-C62W4gaL.js} +1 -1
- package/lib/devtools/chunks/{text_editor-C5VoL1Xb.js → text_editor-B6PKcoob.js} +374 -444
- package/lib/devtools/chunks/{text_utils-ohNt_gua.js → text_utils-DWSliayn.js} +161 -82
- package/lib/devtools/chunks/{theme_support-DIe-Aj1T.js → theme_support-BJ6jI25-.js} +49 -34
- package/lib/devtools/chunks/{third-party-web-DGiPoc0U.js → third-party-web-Dm5IRT3g.js} +1 -1
- package/lib/devtools/chunks/{timeline-erFWfDtO.js → timeline-BOm6TluW.js} +2407 -2389
- package/lib/devtools/chunks/{timeline-TQGKsD1c.js → timeline-DCzpZ1Y0.js} +1 -1
- package/lib/devtools/chunks/{utils-BOPum8Fh.js → utils-3dsE24eK.js} +50 -52
- package/lib/devtools/chunks/{vue-CjH9yovn.js → vue-rRx4yj6I.js} +1 -1
- package/lib/devtools/chunks/{wast-CbGHiqaW.js → wast-BJdLzx63.js} +1 -1
- package/lib/devtools/chunks/{web_audio-DeiVgByc.js → web_audio-BxUFAfxi.js} +25 -25
- package/lib/devtools/chunks/{webauthn-CkUZQkJE.js → webauthn-CSv6nAmN.js} +24 -24
- package/lib/devtools/chunks/{whats_new-rTSFIu0-.js → whats_new-21V-YX7t.js} +18 -19
- package/lib/devtools/chunks/{xml-DI9dcP5w.js → xml-qmN-BlAu.js} +1 -1
- package/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +1 -1
- package/lib/devtools/entrypoints/devtools_app/devtools_app.js +2444 -2443
- package/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +116 -118
- package/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +289 -192
- package/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +428 -403
- package/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +31 -44
- package/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -1
- package/lib/devtools/panels/recorder/injected/injected.generated.js +1 -1
- package/lib/devtools/resource-manifest.json +384 -354
- package/lib/index.js +9 -0
- package/package.json +26 -26
- package/lib/devtools/chunks/autofill_manager-lLpnJefn.js +0 -58
- package/lib/devtools/chunks/explain-Bi00oAm4.js +0 -747
- package/lib/devtools/chunks/main-CVouKJ7n.js +0 -755
- package/lib/devtools/chunks/platform-BzB373NB.js +0 -600
- package/lib/devtools/chunks/protocol_monitor-BjWZPjcg.js +0 -2
- /package/lib/devtools/chunks/{chunk-DF993M8W.js → rolldown-runtime-DF993M8W.js} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
1
|
+
import { n as e } from "./rolldown-runtime-DF993M8W.js";
|
|
2
|
+
import { B as t, D as n, H as r, K as i, U as a } from "./common-DMSVbaSb.js";
|
|
3
|
+
import { Bd as o, Fo as s, L as c, No as l, Po as u, Ur as d, Zc as ee, Zo as f, aa as te, al as p, bc as ne, dn as re, ei as ie, el as m, fa as h, fo as ae, i as oe, ii as se, jd as g, jr as ce, n as le, na as ue, nl as _, no as v, o as de, ol as y, xc as fe, xn as b } from "./legacy-dM_vujv7.js";
|
|
4
|
+
import "./platform-D4TUCh2P.js";
|
|
5
|
+
import { F as pe } from "./StringUtilities-CMDxNrEc.js";
|
|
6
|
+
import { c as me } from "./common-Bs7hSOUj.js";
|
|
7
|
+
import { t as x } from "./i18n-CTSaUtZW.js";
|
|
8
|
+
import { t as he } from "./objectValue.css-JafYDKlR.js";
|
|
8
9
|
//#region \0dsh-devtools:css:/home/runner/work/deepseek-harness/deepseek-harness/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/panels/accessibility/accessibilityNode.css.mjs
|
|
9
|
-
var
|
|
10
|
-
AXAttributes: () =>
|
|
11
|
-
AXNativeSourceTypes: () =>
|
|
12
|
-
AXSourceTypes: () =>
|
|
13
|
-
}),
|
|
10
|
+
var S = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.widget.ax-subpane {\n overflow-x: hidden;\n user-select: text;\n}\n\n.ax-ignored-info {\n padding: 6px;\n}\n\n.ax-ignored-node-pane {\n flex: none;\n}\n\n.invalid {\n text-decoration: line-through;\n}\n\nspan.ax-value-undefined {\n font-style: italic;\n}\n\n.ax-value-source-unused {\n opacity: 70%;\n}\n\n.ax-value-source-superseded,\n.ax-value-source-invalid {\n text-decoration: line-through;\n}\n\n.tree-outline dt-icon-label {\n position: relative;\n left: -11px;\n}\n\n.tree-outline li {\n display: block;\n overflow-x: hidden;\n align-items: baseline;\n}\n\n.tree-outline li::before {\n content: \"\";\n width: 14px;\n display: inline-block;\n margin-bottom: -2px;\n margin-right: 3px;\n}\n\n.tree-outline li.property {\n color: var(--sys-color-on-surface);\n}\n\n.tree-outline li.invalid {\n position: relative;\n left: -2px;\n}\n\n.tree-outline dt-icon-label + .ax-name {\n margin-left: -11px;\n}\n\n.tree-outline li span {\n flex-shrink: 0;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n@media (forced-colors: active) {\n .ax-value-source-unused {\n opacity: 100%;\n }\n\n .tree-outline-disclosure:hover li.parent::before {\n background-color: ButtonText;\n }\n}\n", ge = /* @__PURE__ */ e({
|
|
11
|
+
AXAttributes: () => T,
|
|
12
|
+
AXNativeSourceTypes: () => D,
|
|
13
|
+
AXSourceTypes: () => E
|
|
14
|
+
}), C = {
|
|
14
15
|
disabled: "Disabled",
|
|
15
16
|
ifTrueThisElementCurrentlyCannot: "If true, this element currently cannot be interacted with.",
|
|
16
17
|
invalidUserEntry: "Invalid user entry",
|
|
@@ -113,259 +114,259 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
113
114
|
valueFromTitleAttribute: "Value from title attribute.",
|
|
114
115
|
fromNativeHtml: "From native HTML",
|
|
115
116
|
valueFromNativeHtmlUnknownSource: "Value from native HTML (unknown source)."
|
|
116
|
-
},
|
|
117
|
+
}, _e = i("panels/accessibility/AccessibilityStrings.ts", C), w = t.bind(void 0, _e), T = {
|
|
117
118
|
disabled: {
|
|
118
|
-
name: C
|
|
119
|
-
description: C
|
|
119
|
+
name: w(C.disabled),
|
|
120
|
+
description: w(C.ifTrueThisElementCurrentlyCannot),
|
|
120
121
|
group: "AXGlobalStates"
|
|
121
122
|
},
|
|
122
123
|
invalid: {
|
|
123
|
-
name: C
|
|
124
|
-
description: C
|
|
124
|
+
name: w(C.invalidUserEntry),
|
|
125
|
+
description: w(C.ifTrueThisElementsUserentered),
|
|
125
126
|
group: "AXGlobalStates"
|
|
126
127
|
},
|
|
127
128
|
editable: {
|
|
128
|
-
name: C
|
|
129
|
-
description: C
|
|
129
|
+
name: w(C.editable),
|
|
130
|
+
description: w(C.ifAndHowThisElementCanBeEdited)
|
|
130
131
|
},
|
|
131
132
|
focusable: {
|
|
132
|
-
name: C
|
|
133
|
-
description: C
|
|
133
|
+
name: w(C.focusable),
|
|
134
|
+
description: w(C.ifTrueThisElementCanReceiveFocus)
|
|
134
135
|
},
|
|
135
136
|
focused: {
|
|
136
|
-
name: C
|
|
137
|
-
description: C
|
|
137
|
+
name: w(C.focused),
|
|
138
|
+
description: w(C.ifTrueThisElementCurrentlyHas)
|
|
138
139
|
},
|
|
139
140
|
settable: {
|
|
140
|
-
name: C
|
|
141
|
-
description: C
|
|
141
|
+
name: w(C.canSetValue),
|
|
142
|
+
description: w(C.whetherTheValueOfThisElementCan)
|
|
142
143
|
},
|
|
143
144
|
live: {
|
|
144
|
-
name: C
|
|
145
|
-
description: C
|
|
145
|
+
name: w(C.liveRegion),
|
|
146
|
+
description: w(C.whetherAndWhatPriorityOfLive),
|
|
146
147
|
group: "AXLiveRegionAttributes"
|
|
147
148
|
},
|
|
148
149
|
atomic: {
|
|
149
|
-
name: C
|
|
150
|
-
description: C
|
|
150
|
+
name: w(C.atomicLiveRegions),
|
|
151
|
+
description: w(C.ifThisElementMayReceiveLive),
|
|
151
152
|
group: "AXLiveRegionAttributes"
|
|
152
153
|
},
|
|
153
154
|
relevant: {
|
|
154
|
-
name: C
|
|
155
|
-
description: C
|
|
155
|
+
name: w(C.relevantLiveRegions),
|
|
156
|
+
description: w(C.ifThisElementMayReceiveLiveUpdates),
|
|
156
157
|
group: "AXLiveRegionAttributes"
|
|
157
158
|
},
|
|
158
159
|
busy: {
|
|
159
|
-
name: C
|
|
160
|
-
description: C
|
|
160
|
+
name: w(C.busyLiveRegions),
|
|
161
|
+
description: w(C.whetherThisElementOrItsSubtree),
|
|
161
162
|
group: "AXLiveRegionAttributes"
|
|
162
163
|
},
|
|
163
164
|
root: {
|
|
164
|
-
name: C
|
|
165
|
-
description: C
|
|
165
|
+
name: w(C.liveRegionRoot),
|
|
166
|
+
description: w(C.ifThisElementMayReceiveLiveUpdatesThe),
|
|
166
167
|
group: "AXLiveRegionAttributes"
|
|
167
168
|
},
|
|
168
169
|
autocomplete: {
|
|
169
|
-
name: C
|
|
170
|
-
description: C
|
|
170
|
+
name: w(C.hasAutocomplete),
|
|
171
|
+
description: w(C.whetherAndWhatTypeOfAutocomplete),
|
|
171
172
|
group: "AXWidgetAttributes"
|
|
172
173
|
},
|
|
173
174
|
haspopup: {
|
|
174
|
-
name: C
|
|
175
|
-
description: C
|
|
175
|
+
name: w(C.hasPopup),
|
|
176
|
+
description: w(C.whetherThisElementHasCausedSome),
|
|
176
177
|
group: "AXWidgetAttributes"
|
|
177
178
|
},
|
|
178
179
|
level: {
|
|
179
|
-
name: C
|
|
180
|
-
description: C
|
|
180
|
+
name: w(C.level),
|
|
181
|
+
description: w(C.theHierarchicalLevelOfThis),
|
|
181
182
|
group: "AXWidgetAttributes"
|
|
182
183
|
},
|
|
183
184
|
multiselectable: {
|
|
184
|
-
name: C
|
|
185
|
-
description: C
|
|
185
|
+
name: w(C.multiselectable),
|
|
186
|
+
description: w(C.whetherAUserMaySelectMoreThanOne),
|
|
186
187
|
group: "AXWidgetAttributes"
|
|
187
188
|
},
|
|
188
189
|
orientation: {
|
|
189
|
-
name: C
|
|
190
|
-
description: C
|
|
190
|
+
name: w(C.orientation),
|
|
191
|
+
description: w(C.whetherThisLinearElements),
|
|
191
192
|
group: "AXWidgetAttributes"
|
|
192
193
|
},
|
|
193
194
|
multiline: {
|
|
194
|
-
name: C
|
|
195
|
-
description: C
|
|
195
|
+
name: w(C.multiline),
|
|
196
|
+
description: w(C.whetherThisTextBoxMayHaveMore),
|
|
196
197
|
group: "AXWidgetAttributes"
|
|
197
198
|
},
|
|
198
199
|
readonly: {
|
|
199
|
-
name: C
|
|
200
|
-
description: C
|
|
200
|
+
name: w(C.readonlyString),
|
|
201
|
+
description: w(C.ifTrueThisElementMayBeInteracted),
|
|
201
202
|
group: "AXWidgetAttributes"
|
|
202
203
|
},
|
|
203
204
|
required: {
|
|
204
|
-
name: C
|
|
205
|
-
description: C
|
|
205
|
+
name: w(C.requiredString),
|
|
206
|
+
description: w(C.whetherThisElementIsARequired),
|
|
206
207
|
group: "AXWidgetAttributes"
|
|
207
208
|
},
|
|
208
209
|
valuemin: {
|
|
209
|
-
name: C
|
|
210
|
-
description: C
|
|
210
|
+
name: w(C.minimumValue),
|
|
211
|
+
description: w(C.forARangeWidgetTheMinimumAllowed),
|
|
211
212
|
group: "AXWidgetAttributes"
|
|
212
213
|
},
|
|
213
214
|
valuemax: {
|
|
214
|
-
name: C
|
|
215
|
-
description: C
|
|
215
|
+
name: w(C.maximumValue),
|
|
216
|
+
description: w(C.forARangeWidgetTheMaximumAllowed),
|
|
216
217
|
group: "AXWidgetAttributes"
|
|
217
218
|
},
|
|
218
219
|
valuetext: {
|
|
219
|
-
name: C
|
|
220
|
-
description: C
|
|
220
|
+
name: w(C.valueDescription),
|
|
221
|
+
description: w(C.aHumanreadableVersionOfTheValue),
|
|
221
222
|
group: "AXWidgetAttributes"
|
|
222
223
|
},
|
|
223
224
|
checked: {
|
|
224
|
-
name: C
|
|
225
|
-
description: C
|
|
225
|
+
name: w(C.checked),
|
|
226
|
+
description: w(C.whetherThisCheckboxRadioButtonOr),
|
|
226
227
|
group: "AXWidgetStates"
|
|
227
228
|
},
|
|
228
229
|
expanded: {
|
|
229
|
-
name: C
|
|
230
|
-
description: C
|
|
230
|
+
name: w(C.expanded),
|
|
231
|
+
description: w(C.whetherThisElementOrAnother),
|
|
231
232
|
group: "AXWidgetStates"
|
|
232
233
|
},
|
|
233
234
|
pressed: {
|
|
234
|
-
name: C
|
|
235
|
-
description: C
|
|
235
|
+
name: w(C.pressed),
|
|
236
|
+
description: w(C.whetherThisToggleButtonIs),
|
|
236
237
|
group: "AXWidgetStates"
|
|
237
238
|
},
|
|
238
239
|
selected: {
|
|
239
|
-
name: C
|
|
240
|
-
description: C
|
|
240
|
+
name: w(C.selectedString),
|
|
241
|
+
description: w(C.whetherTheOptionRepresentedBy),
|
|
241
242
|
group: "AXWidgetStates"
|
|
242
243
|
},
|
|
243
244
|
activedescendant: {
|
|
244
|
-
name: C
|
|
245
|
-
description: C
|
|
245
|
+
name: w(C.activeDescendant),
|
|
246
|
+
description: w(C.theDescendantOfThisElementWhich),
|
|
246
247
|
group: "AXRelationshipAttributes"
|
|
247
248
|
},
|
|
248
249
|
flowto: {
|
|
249
|
-
name:
|
|
250
|
-
description: C
|
|
250
|
+
name: a("Flows to"),
|
|
251
|
+
description: w(C.elementToWhichTheUserMayChooseTo),
|
|
251
252
|
group: "AXRelationshipAttributes"
|
|
252
253
|
},
|
|
253
254
|
controls: {
|
|
254
|
-
name: C
|
|
255
|
-
description: C
|
|
255
|
+
name: w(C.controls),
|
|
256
|
+
description: w(C.elementOrElementsWhoseContentOr),
|
|
256
257
|
group: "AXRelationshipAttributes"
|
|
257
258
|
},
|
|
258
259
|
describedby: {
|
|
259
|
-
name: C
|
|
260
|
-
description: C
|
|
260
|
+
name: w(C.describedBy),
|
|
261
|
+
description: w(C.elementOrElementsWhichFormThe),
|
|
261
262
|
group: "AXRelationshipAttributes"
|
|
262
263
|
},
|
|
263
264
|
labelledby: {
|
|
264
|
-
name: C
|
|
265
|
-
description: C
|
|
265
|
+
name: w(C.labeledBy),
|
|
266
|
+
description: w(C.elementOrElementsWhichMayFormThe),
|
|
266
267
|
group: "AXRelationshipAttributes"
|
|
267
268
|
},
|
|
268
269
|
owns: {
|
|
269
|
-
name:
|
|
270
|
-
description: C
|
|
270
|
+
name: a("Owns"),
|
|
271
|
+
description: w(C.elementOrElementsWhichShouldBe),
|
|
271
272
|
group: "AXRelationshipAttributes"
|
|
272
273
|
},
|
|
273
274
|
name: {
|
|
274
|
-
name:
|
|
275
|
-
description: C
|
|
275
|
+
name: a("Name"),
|
|
276
|
+
description: w(C.theComputedNameOfThisElement),
|
|
276
277
|
group: "Default"
|
|
277
278
|
},
|
|
278
279
|
role: {
|
|
279
|
-
name: C
|
|
280
|
-
description: C
|
|
280
|
+
name: w(C.role),
|
|
281
|
+
description: w(C.indicatesThePurposeOfThisElement),
|
|
281
282
|
group: "Default"
|
|
282
283
|
},
|
|
283
284
|
value: {
|
|
284
|
-
name: C
|
|
285
|
-
description: C
|
|
285
|
+
name: w(C.value),
|
|
286
|
+
description: w(C.theValueOfThisElementThisMayBe),
|
|
286
287
|
group: "Default"
|
|
287
288
|
},
|
|
288
289
|
help: {
|
|
289
|
-
name: C
|
|
290
|
-
description: C
|
|
290
|
+
name: w(C.help),
|
|
291
|
+
description: w(C.theComputedHelpTextForThis),
|
|
291
292
|
group: "Default"
|
|
292
293
|
},
|
|
293
294
|
description: {
|
|
294
|
-
name: C
|
|
295
|
-
description: C
|
|
295
|
+
name: w(C.description),
|
|
296
|
+
description: w(C.theAccessibleDescriptionForThis),
|
|
296
297
|
group: "Default"
|
|
297
298
|
}
|
|
298
|
-
},
|
|
299
|
+
}, E = {
|
|
299
300
|
attribute: {
|
|
300
|
-
name: C
|
|
301
|
-
description: C
|
|
301
|
+
name: w(C.fromAttribute),
|
|
302
|
+
description: w(C.valueFromAttribute)
|
|
302
303
|
},
|
|
303
304
|
implicit: {
|
|
304
|
-
name: C
|
|
305
|
-
description: C
|
|
305
|
+
name: w(C.implicit),
|
|
306
|
+
description: w(C.implicitValue)
|
|
306
307
|
},
|
|
307
308
|
style: {
|
|
308
|
-
name: C
|
|
309
|
-
description: C
|
|
309
|
+
name: w(C.fromStyle),
|
|
310
|
+
description: w(C.valueFromStyle)
|
|
310
311
|
},
|
|
311
312
|
contents: {
|
|
312
|
-
name: C
|
|
313
|
-
description: C
|
|
313
|
+
name: w(C.contents),
|
|
314
|
+
description: w(C.valueFromElementContents)
|
|
314
315
|
},
|
|
315
316
|
placeholder: {
|
|
316
|
-
name: C
|
|
317
|
-
description: C
|
|
317
|
+
name: w(C.fromPlaceholderAttribute),
|
|
318
|
+
description: w(C.valueFromPlaceholderAttribute)
|
|
318
319
|
},
|
|
319
320
|
relatedElement: {
|
|
320
|
-
name: C
|
|
321
|
-
description: C
|
|
321
|
+
name: w(C.relatedElement),
|
|
322
|
+
description: w(C.valueFromRelatedElement)
|
|
322
323
|
}
|
|
323
|
-
},
|
|
324
|
+
}, D = {
|
|
324
325
|
description: {
|
|
325
|
-
name: C
|
|
326
|
-
description: C
|
|
326
|
+
name: w(C.fromDescription),
|
|
327
|
+
description: w(C.valueFromDescriptionElement)
|
|
327
328
|
},
|
|
328
329
|
figcaption: {
|
|
329
|
-
name: C
|
|
330
|
-
description: C
|
|
330
|
+
name: w(C.fromCaption),
|
|
331
|
+
description: w(C.valueFromFigcaptionElement)
|
|
331
332
|
},
|
|
332
333
|
label: {
|
|
333
|
-
name: C
|
|
334
|
-
description: C
|
|
334
|
+
name: w(C.fromLabel),
|
|
335
|
+
description: w(C.valueFromLabelElement)
|
|
335
336
|
},
|
|
336
337
|
labelfor: {
|
|
337
|
-
name: C
|
|
338
|
-
description: C
|
|
338
|
+
name: w(C.fromLabelFor),
|
|
339
|
+
description: w(C.valueFromLabelElementWithFor)
|
|
339
340
|
},
|
|
340
341
|
labelwrapped: {
|
|
341
|
-
name: C
|
|
342
|
-
description: C
|
|
342
|
+
name: w(C.fromLabelWrapped),
|
|
343
|
+
description: w(C.valueFromLabelElementWrapped)
|
|
343
344
|
},
|
|
344
345
|
legend: {
|
|
345
|
-
name: C
|
|
346
|
-
description: C
|
|
346
|
+
name: w(C.fromLegend),
|
|
347
|
+
description: w(C.valueFromLegendElement)
|
|
347
348
|
},
|
|
348
349
|
rubyannotation: {
|
|
349
|
-
name: C
|
|
350
|
-
description: C
|
|
350
|
+
name: w(C.fromRubyAnnotation),
|
|
351
|
+
description: w(C.valueFromNativeHtmlRuby)
|
|
351
352
|
},
|
|
352
353
|
tablecaption: {
|
|
353
|
-
name: C
|
|
354
|
-
description: C
|
|
354
|
+
name: w(C.fromCaption),
|
|
355
|
+
description: w(C.valueFromTableCaption)
|
|
355
356
|
},
|
|
356
357
|
title: {
|
|
357
|
-
name: C
|
|
358
|
-
description: C
|
|
358
|
+
name: w(C.fromTitle),
|
|
359
|
+
description: w(C.valueFromTitleAttribute)
|
|
359
360
|
},
|
|
360
361
|
other: {
|
|
361
|
-
name: C
|
|
362
|
-
description: C
|
|
362
|
+
name: w(C.fromNativeHtml),
|
|
363
|
+
description: w(C.valueFromNativeHtmlUnknownSource)
|
|
363
364
|
}
|
|
364
|
-
},
|
|
365
|
+
}, O = "/*\n * Copyright 2015 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n@scope to (devtools-widget > *) {\n.ax-name {\n color: var(--sys-color-token-attribute);\n flex-shrink: 0;\n}\n\n.ax-readable-name {\n flex-shrink: 0;\n}\n\n.ax-readable-string {\n font-style: italic;\n}\n\n.ax-value-string {\n color: var(--sys-color-token-property-special);\n}\n\nspan.ax-internal-role {\n font-style: italic;\n}\n\n#source-order-warning {\n padding-bottom: 0;\n text-align: left;\n}\n\n.source-order-checkbox {\n margin: 2px 2px 2px 5px;\n}\n\n.info-message-overflow {\n overflow-x: hidden;\n white-space: normal;\n}\n}\n", ve = /* @__PURE__ */ e({ AccessibilitySubPane: () => k }), k = class extends le {
|
|
365
366
|
axNode;
|
|
366
367
|
nodeInternal;
|
|
367
368
|
constructor(e) {
|
|
368
|
-
super(e), this.registerRequiredCSS(
|
|
369
|
+
super(e), this.registerRequiredCSS(O), this.axNode = null;
|
|
369
370
|
}
|
|
370
371
|
setAXNode(e) {}
|
|
371
372
|
node() {
|
|
@@ -379,20 +380,20 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
379
380
|
return t.length === 0 && t.push("gray-info-message"), n.element.classList.add(...t, "info-message-overflow"), n;
|
|
380
381
|
}
|
|
381
382
|
createTreeOutline() {
|
|
382
|
-
let e = new
|
|
383
|
-
return e.registerRequiredCSS(
|
|
383
|
+
let e = new de();
|
|
384
|
+
return e.registerRequiredCSS(S, O, he), e.element.classList.add("hidden"), e.setHideOverflow(!0), this.element.appendChild(e.element), e;
|
|
384
385
|
}
|
|
385
|
-
},
|
|
386
|
+
}, ye = /* @__PURE__ */ e({
|
|
386
387
|
AXNodeIgnoredReasonTreeElement: () => z,
|
|
387
|
-
AXNodePropertyTreeElement: () =>
|
|
388
|
-
AXNodePropertyTreePropertyElement: () =>
|
|
389
|
-
AXNodeSubPane: () =>
|
|
388
|
+
AXNodePropertyTreeElement: () => P,
|
|
389
|
+
AXNodePropertyTreePropertyElement: () => be,
|
|
390
|
+
AXNodeSubPane: () => N,
|
|
390
391
|
AXRelatedNodeElement: () => R,
|
|
391
392
|
AXRelatedNodeSourceTreeElement: () => L,
|
|
392
|
-
AXValueSourceTreeElement: () =>
|
|
393
|
-
StringProperties: () =>
|
|
394
|
-
TypeStyles: () =>
|
|
395
|
-
}),
|
|
393
|
+
AXValueSourceTreeElement: () => xe,
|
|
394
|
+
StringProperties: () => I,
|
|
395
|
+
TypeStyles: () => F
|
|
396
|
+
}), A = {
|
|
396
397
|
computedProperties: "Computed Properties",
|
|
397
398
|
noAccessibilityNode: "No accessibility node",
|
|
398
399
|
accessibilityNodeNotExposed: "Accessibility node not exposed",
|
|
@@ -416,7 +417,7 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
416
417
|
elementHasPlaceholder: "Element has {PH1}.",
|
|
417
418
|
elementIsPresentational: "Element is presentational.",
|
|
418
419
|
elementNotInteresting: "Element not interesting for accessibility."
|
|
419
|
-
},
|
|
420
|
+
}, j = i("panels/accessibility/AccessibilityNodeView.ts", A), M = r.bind(void 0, j), N = class extends k {
|
|
420
421
|
axNode;
|
|
421
422
|
noNodeInfo;
|
|
422
423
|
ignoredInfo;
|
|
@@ -424,10 +425,10 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
424
425
|
ignoredReasonsTree;
|
|
425
426
|
constructor() {
|
|
426
427
|
super({
|
|
427
|
-
title:
|
|
428
|
+
title: M(A.computedProperties),
|
|
428
429
|
viewId: "computed-properties",
|
|
429
|
-
jslog: `${
|
|
430
|
-
}), this.registerRequiredCSS(
|
|
430
|
+
jslog: `${v("computed-properties")}`
|
|
431
|
+
}), this.registerRequiredCSS(S), this.axNode = null, this.contentElement.classList.add("ax-subpane"), this.noNodeInfo = this.createInfo(M(A.noAccessibilityNode)), this.ignoredInfo = this.createInfo(M(A.accessibilityNodeNotExposed), "ax-ignored-info", "hidden"), this.treeOutline = this.createTreeOutline(), this.ignoredReasonsTree = this.createTreeOutline(), this.element.classList.add("accessibility-computed"), this.treeOutline.setFocusable(!0);
|
|
431
432
|
}
|
|
432
433
|
setAXNode(e) {
|
|
433
434
|
if (this.axNode === e) return;
|
|
@@ -451,12 +452,12 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
451
452
|
}
|
|
452
453
|
this.element.classList.remove("ax-ignored-node-pane"), this.ignoredInfo.element.classList.add("hidden"), n.element.classList.add("hidden"), this.noNodeInfo.element.classList.add("hidden"), t.element.classList.remove("hidden");
|
|
453
454
|
function r(n) {
|
|
454
|
-
t.appendChild(new
|
|
455
|
+
t.appendChild(new be(n, e));
|
|
455
456
|
}
|
|
456
457
|
for (let t of e.coreProperties()) r(t);
|
|
457
458
|
let i = e.role();
|
|
458
459
|
i && r({
|
|
459
|
-
name:
|
|
460
|
+
name: fe.ROLE,
|
|
460
461
|
value: i
|
|
461
462
|
});
|
|
462
463
|
for (let t of e.properties()) r(t);
|
|
@@ -466,19 +467,19 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
466
467
|
setNode(e) {
|
|
467
468
|
super.setNode(e), this.axNode = null;
|
|
468
469
|
}
|
|
469
|
-
},
|
|
470
|
+
}, P = class e extends oe {
|
|
470
471
|
axNode;
|
|
471
472
|
constructor(e) {
|
|
472
473
|
super(""), this.axNode = e;
|
|
473
474
|
}
|
|
474
475
|
static createSimpleValueElement(e, t) {
|
|
475
476
|
let n;
|
|
476
|
-
!e || e ===
|
|
477
|
+
!e || e === o.AXValueType.ValueUndefined || e === o.AXValueType.ComputedString ? n = document.createElement("span") : (n = document.createElement("span"), n.classList.add("monospace"));
|
|
477
478
|
let r;
|
|
478
|
-
return r = e &&
|
|
479
|
+
return r = e && I.has(e) ? "\"" + t.replace(/\n/g, "↵") + "\"" : String(t), e && e in F && n.classList.add(F[e]), n.setTextContentTruncatedIfNeeded(r || ""), d.install(n, String(t) || ""), n;
|
|
479
480
|
}
|
|
480
481
|
static createExclamationMark(e) {
|
|
481
|
-
let t =
|
|
482
|
+
let t = re({
|
|
482
483
|
iconName: "warning-filled",
|
|
483
484
|
color: "var(--icon-warning)"
|
|
484
485
|
});
|
|
@@ -486,21 +487,21 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
486
487
|
}
|
|
487
488
|
appendNameElement(e) {
|
|
488
489
|
let t = document.createElement("span");
|
|
489
|
-
if (e in
|
|
490
|
-
let n =
|
|
490
|
+
if (e in T) {
|
|
491
|
+
let n = T[e];
|
|
491
492
|
t.textContent = n.name(), d.install(t, n.description()), t.classList.add("ax-readable-name");
|
|
492
493
|
} else t.textContent = e, t.classList.add("ax-name"), t.classList.add("monospace");
|
|
493
494
|
this.listItemElement.appendChild(t);
|
|
494
495
|
}
|
|
495
496
|
appendValueElement(t) {
|
|
496
|
-
if (t.type ===
|
|
497
|
+
if (t.type === o.AXValueType.Idref || t.type === o.AXValueType.Node || t.type === o.AXValueType.IdrefList || t.type === o.AXValueType.NodeList) {
|
|
497
498
|
this.appendRelatedNodeListValueElement(t);
|
|
498
499
|
return;
|
|
499
500
|
}
|
|
500
501
|
if (t.sources) {
|
|
501
502
|
let e = t.sources;
|
|
502
503
|
for (let t = 0; t < e.length; t++) {
|
|
503
|
-
let n = e[t], r = new
|
|
504
|
+
let n = e[t], r = new xe(n, this.axNode);
|
|
504
505
|
this.appendChild(r);
|
|
505
506
|
}
|
|
506
507
|
this.expand();
|
|
@@ -509,11 +510,11 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
509
510
|
this.listItemElement.appendChild(n);
|
|
510
511
|
}
|
|
511
512
|
appendRelatedNode(e, t) {
|
|
512
|
-
let n = new L({ deferredNode: new
|
|
513
|
+
let n = new L({ deferredNode: new p(this.axNode.accessibilityModel().target(), e.backendDOMNodeId) }, e);
|
|
513
514
|
this.appendChild(n);
|
|
514
515
|
}
|
|
515
516
|
appendRelatedNodeInline(e) {
|
|
516
|
-
let t = new R({ deferredNode: new
|
|
517
|
+
let t = new R({ deferredNode: new p(this.axNode.accessibilityModel().target(), e.backendDOMNodeId) });
|
|
517
518
|
this.listItemElement.appendChild(t.render());
|
|
518
519
|
}
|
|
519
520
|
appendRelatedNodeListValueElement(e) {
|
|
@@ -523,7 +524,7 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
523
524
|
}
|
|
524
525
|
e.relatedNodes && e.relatedNodes.forEach(this.appendRelatedNode, this), e.relatedNodes && e.relatedNodes.length <= 3 ? this.expand() : this.collapse();
|
|
525
526
|
}
|
|
526
|
-
},
|
|
527
|
+
}, F = {
|
|
527
528
|
attribute: "ax-value-string",
|
|
528
529
|
boolean: "object-value-boolean",
|
|
529
530
|
booleanOrUndefined: "object-value-boolean",
|
|
@@ -537,12 +538,12 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
537
538
|
string: "ax-value-string",
|
|
538
539
|
tristate: "object-value-boolean",
|
|
539
540
|
valueUndefined: "ax-value-undefined"
|
|
540
|
-
},
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
]),
|
|
541
|
+
}, I = /* @__PURE__ */ new Set([
|
|
542
|
+
o.AXValueType.String,
|
|
543
|
+
o.AXValueType.ComputedString,
|
|
544
|
+
o.AXValueType.IdrefList,
|
|
545
|
+
o.AXValueType.Idref
|
|
546
|
+
]), be = class extends P {
|
|
546
547
|
property;
|
|
547
548
|
toggleOnClick;
|
|
548
549
|
constructor(e, t) {
|
|
@@ -554,7 +555,7 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
554
555
|
update() {
|
|
555
556
|
this.listItemElement.removeChildren(), this.appendNameElement(this.property.name), this.listItemElement.createChild("span", "separator").textContent = ":\xA0", this.appendValueElement(this.property.value);
|
|
556
557
|
}
|
|
557
|
-
},
|
|
558
|
+
}, xe = class extends P {
|
|
558
559
|
source;
|
|
559
560
|
constructor(e, t) {
|
|
560
561
|
super(t), this.source = e;
|
|
@@ -564,7 +565,7 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
564
565
|
}
|
|
565
566
|
appendRelatedNodeWithIdref(e, t) {
|
|
566
567
|
let n = new L({
|
|
567
|
-
deferredNode: new
|
|
568
|
+
deferredNode: new p(this.axNode.accessibilityModel().target(), e.backendDOMNodeId),
|
|
568
569
|
idref: t
|
|
569
570
|
}, e);
|
|
570
571
|
this.appendChild(n);
|
|
@@ -587,47 +588,47 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
587
588
|
}
|
|
588
589
|
appendRelatedNodeListValueElement(e) {
|
|
589
590
|
let t = e.relatedNodes, n = t ? t.length : 0;
|
|
590
|
-
e.type ===
|
|
591
|
+
e.type === o.AXValueType.IdrefList || e.type === o.AXValueType.Idref ? this.appendIDRefValueElement(e) : super.appendRelatedNodeListValueElement(e), n <= 3 ? this.expand() : this.collapse();
|
|
591
592
|
}
|
|
592
593
|
appendSourceNameElement(e) {
|
|
593
594
|
let t = document.createElement("span"), n = e.type;
|
|
594
595
|
switch (n) {
|
|
595
|
-
case
|
|
596
|
-
case
|
|
597
|
-
case
|
|
596
|
+
case o.AXValueSourceType.Attribute:
|
|
597
|
+
case o.AXValueSourceType.Placeholder:
|
|
598
|
+
case o.AXValueSourceType.RelatedElement:
|
|
598
599
|
if (e.nativeSource) {
|
|
599
600
|
let n = e.nativeSource;
|
|
600
|
-
t.textContent =
|
|
601
|
+
t.textContent = D[n].name(), d.install(t, D[n].description()), t.classList.add("ax-readable-name");
|
|
601
602
|
break;
|
|
602
603
|
}
|
|
603
604
|
t.textContent = e.attribute || null, t.classList.add("ax-name"), t.classList.add("monospace");
|
|
604
605
|
break;
|
|
605
|
-
default: n in
|
|
606
|
+
default: n in E ? (t.textContent = E[n].name(), d.install(t, E[n].description()), t.classList.add("ax-readable-name")) : (console.warn(n, "not in AXSourceTypes"), t.textContent = n);
|
|
606
607
|
}
|
|
607
608
|
this.listItemElement.appendChild(t);
|
|
608
609
|
}
|
|
609
610
|
update() {
|
|
610
611
|
if (this.listItemElement.removeChildren(), this.source.invalid) {
|
|
611
|
-
let e =
|
|
612
|
+
let e = P.createExclamationMark(M(A.invalidSource));
|
|
612
613
|
this.listItemElement.appendChild(e), this.listItemElement.classList.add("ax-value-source-invalid");
|
|
613
614
|
} else this.source.superseded && this.listItemElement.classList.add("ax-value-source-unused");
|
|
614
|
-
if (this.appendSourceNameElement(this.source), this.listItemElement.createChild("span", "separator").textContent = ":\xA0", this.source.attributeValue) this.appendValueElement(this.source.attributeValue),
|
|
615
|
-
else if (this.source.nativeSourceValue) this.appendValueElement(this.source.nativeSourceValue),
|
|
615
|
+
if (this.appendSourceNameElement(this.source), this.listItemElement.createChild("span", "separator").textContent = ":\xA0", this.source.attributeValue) this.appendValueElement(this.source.attributeValue), b(this.listItemElement, "\xA0");
|
|
616
|
+
else if (this.source.nativeSourceValue) this.appendValueElement(this.source.nativeSourceValue), b(this.listItemElement, "\xA0"), this.source.value && this.appendValueElement(this.source.value);
|
|
616
617
|
else if (this.source.value) this.appendValueElement(this.source.value);
|
|
617
618
|
else {
|
|
618
|
-
let e =
|
|
619
|
+
let e = P.createSimpleValueElement(o.AXValueType.ValueUndefined, M(A.notSpecified));
|
|
619
620
|
this.listItemElement.appendChild(e), this.listItemElement.classList.add("ax-value-source-unused");
|
|
620
621
|
}
|
|
621
622
|
this.source.value && this.source.superseded && this.listItemElement.classList.add("ax-value-source-superseded");
|
|
622
623
|
}
|
|
623
|
-
}, L = class extends
|
|
624
|
+
}, L = class extends oe {
|
|
624
625
|
value;
|
|
625
626
|
axRelatedNodeElement;
|
|
626
627
|
constructor(e, t) {
|
|
627
628
|
super(""), this.value = t, this.axRelatedNodeElement = new R(e), this.selectable = !0;
|
|
628
629
|
}
|
|
629
630
|
onattach() {
|
|
630
|
-
this.listItemElement.appendChild(this.axRelatedNodeElement.render()), this.value && this.value.text && this.listItemElement.appendChild(
|
|
631
|
+
this.listItemElement.appendChild(this.axRelatedNodeElement.render()), this.value && this.value.text && this.listItemElement.appendChild(P.createSimpleValueElement(o.AXValueType.ComputedString, this.value.text));
|
|
631
632
|
}
|
|
632
633
|
onenter() {
|
|
633
634
|
return this.axRelatedNodeElement.revealNode(), !0;
|
|
@@ -643,19 +644,19 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
643
644
|
if (this.deferredNode) {
|
|
644
645
|
let t = document.createElement("span");
|
|
645
646
|
e.appendChild(t), this.deferredNode.resolvePromise().then((e) => {
|
|
646
|
-
e && s(
|
|
647
|
+
e && s(me.instance().linkify(e, { preventKeyboardFocus: !0 }), t);
|
|
647
648
|
});
|
|
648
649
|
} else if (this.idref) {
|
|
649
650
|
e.classList.add("invalid");
|
|
650
|
-
let t =
|
|
651
|
-
|
|
651
|
+
let t = P.createExclamationMark(M(A.noNodeWithThisId));
|
|
652
|
+
b(t, this.idref), e.appendChild(t);
|
|
652
653
|
}
|
|
653
654
|
return e;
|
|
654
655
|
}
|
|
655
656
|
revealNode() {
|
|
656
657
|
this.deferredNode && this.deferredNode.resolvePromise().then((e) => n(e));
|
|
657
658
|
}
|
|
658
|
-
}, z = class e extends
|
|
659
|
+
}, z = class e extends P {
|
|
659
660
|
property;
|
|
660
661
|
toggleOnClick;
|
|
661
662
|
reasonElement;
|
|
@@ -666,72 +667,70 @@ var x = "/*\n * Copyright 2017 The Chromium Authors\n * Use of this source code
|
|
|
666
667
|
let n = null;
|
|
667
668
|
switch (e) {
|
|
668
669
|
case "activeModalDialog":
|
|
669
|
-
n =
|
|
670
|
+
n = x(j, A.elementIsHiddenBy, {});
|
|
670
671
|
break;
|
|
671
672
|
case "hiddenByChildTree":
|
|
672
|
-
n =
|
|
673
|
+
n = x(j, A.elementIsHiddenByChildTree, {});
|
|
673
674
|
break;
|
|
674
675
|
case "ancestorIsLeafNode":
|
|
675
|
-
n =
|
|
676
|
+
n = x(j, A.ancestorChildrenAreAll, {});
|
|
676
677
|
break;
|
|
677
678
|
case "ariaHiddenElement": {
|
|
678
679
|
let e = document.createElement("span", { is: "source-code" }).textContent = "aria-hidden";
|
|
679
|
-
n =
|
|
680
|
+
n = x(j, A.elementIsPlaceholder, { PH1: e });
|
|
680
681
|
break;
|
|
681
682
|
}
|
|
682
683
|
case "ariaHiddenSubtree": {
|
|
683
684
|
let e = document.createElement("span", { is: "source-code" }).textContent = "aria-hidden", t = document.createElement("span", { is: "source-code" }).textContent = "true";
|
|
684
|
-
n =
|
|
685
|
+
n = x(j, A.placeholderIsPlaceholderOnAncestor, {
|
|
685
686
|
PH1: e,
|
|
686
687
|
PH2: t
|
|
687
688
|
});
|
|
688
689
|
break;
|
|
689
690
|
}
|
|
690
691
|
case "emptyAlt":
|
|
691
|
-
n =
|
|
692
|
+
n = x(j, A.elementHasEmptyAltText, {});
|
|
692
693
|
break;
|
|
693
694
|
case "emptyText":
|
|
694
|
-
n =
|
|
695
|
+
n = x(j, A.noTextContent, {});
|
|
695
696
|
break;
|
|
696
697
|
case "inertElement":
|
|
697
|
-
n =
|
|
698
|
+
n = x(j, A.elementIsInert, {});
|
|
698
699
|
break;
|
|
699
700
|
case "inertSubtree":
|
|
700
|
-
n =
|
|
701
|
+
n = x(j, A.elementIsInAnInertSubTree, {});
|
|
701
702
|
break;
|
|
702
703
|
case "inheritsPresentation":
|
|
703
|
-
n =
|
|
704
|
+
n = x(j, A.elementsInheritsPresentational, {});
|
|
704
705
|
break;
|
|
705
706
|
case "labelContainer":
|
|
706
|
-
n =
|
|
707
|
+
n = x(j, A.partOfLabelElement, {});
|
|
707
708
|
break;
|
|
708
709
|
case "labelFor":
|
|
709
|
-
n =
|
|
710
|
+
n = x(j, A.labelFor, {});
|
|
710
711
|
break;
|
|
711
712
|
case "notRendered":
|
|
712
|
-
n =
|
|
713
|
+
n = x(j, A.elementIsNotRendered, {});
|
|
713
714
|
break;
|
|
714
715
|
case "notVisible":
|
|
715
|
-
n =
|
|
716
|
+
n = x(j, A.elementIsNotVisible, {});
|
|
716
717
|
break;
|
|
717
718
|
case "presentationalRole": {
|
|
718
719
|
let e = t?.role()?.value || "", r = document.createElement("span", { is: "source-code" }).textContent = "role=" + e;
|
|
719
|
-
n =
|
|
720
|
+
n = x(j, A.elementHasPlaceholder, { PH1: r });
|
|
720
721
|
break;
|
|
721
722
|
}
|
|
722
723
|
case "probablyPresentational":
|
|
723
|
-
n =
|
|
724
|
-
break;
|
|
725
|
-
case "uninteresting":
|
|
726
|
-
n = b(A, k.elementNotInteresting, {});
|
|
724
|
+
n = x(j, A.elementIsPresentational, {});
|
|
727
725
|
break;
|
|
726
|
+
case "uninteresting": n = x(j, A.elementNotInteresting, {});
|
|
728
727
|
}
|
|
729
728
|
return n && n.classList.add("ax-reason"), n;
|
|
730
729
|
}
|
|
731
730
|
onattach() {
|
|
732
731
|
this.listItemElement.removeChildren(), this.reasonElement = e.createReasonElement(this.property.name, this.axNode), this.reasonElement && this.listItemElement.appendChild(this.reasonElement);
|
|
733
732
|
let t = this.property.value;
|
|
734
|
-
t.type ===
|
|
733
|
+
t.type === o.AXValueType.Idref && this.appendRelatedNodeListValueElement(t);
|
|
735
734
|
}
|
|
736
735
|
}, Se = "/*\n * Copyright 2026 The Chromium Authors\n * Use of this source code is governed by a BSD-style license that can be\n * found in the LICENSE file.\n */\n\n.accessibility-toggle-container {\n padding: 12px 18px;\n border-bottom: 1px solid var(--sys-color-divider);\n}\n", Ce = {
|
|
737
736
|
attributes: [
|
|
@@ -2512,45 +2511,45 @@ var U = class {
|
|
|
2512
2511
|
}), W = {
|
|
2513
2512
|
ariaAttributes: "ARIA Attributes",
|
|
2514
2513
|
noAriaAttributes: "No ARIA attributes"
|
|
2515
|
-
}, Ee =
|
|
2516
|
-
let
|
|
2514
|
+
}, Ee = i("panels/accessibility/ARIAAttributesView.ts", W), G = r.bind(void 0, Ee), { render: De, html: K } = l, { widget: Oe } = se, q = (e, t, n) => {
|
|
2515
|
+
let r = (t, n) => {
|
|
2517
2516
|
n.consume(!0), e.onStartEditing(t);
|
|
2518
|
-
},
|
|
2517
|
+
}, i = (t) => {
|
|
2519
2518
|
let n = e.propertyCompletions.get(t);
|
|
2520
2519
|
return n?.length ? K`<datalist id=completions>
|
|
2521
2520
|
${n.map((e) => K`<option>${e}</option>`)}
|
|
2522
|
-
</datalist>` :
|
|
2521
|
+
</datalist>` : f;
|
|
2523
2522
|
};
|
|
2524
2523
|
De(e.attributes.length === 0 ? K`
|
|
2525
|
-
<style>${
|
|
2524
|
+
<style>${O}</style>
|
|
2526
2525
|
<devtools-widget
|
|
2527
2526
|
${Oe(c, { text: G(W.noAriaAttributes) })}
|
|
2528
2527
|
class="gray-info-message info-message-overflow"></devtools-widget>` : K`<devtools-tree
|
|
2529
2528
|
hide-overflow
|
|
2530
2529
|
.template=${K`
|
|
2531
2530
|
<ul role="tree">
|
|
2532
|
-
${e.attributes?.map((
|
|
2531
|
+
${e.attributes?.map((t) => K`
|
|
2533
2532
|
<li role="treeitem">
|
|
2534
|
-
<style>${
|
|
2535
|
-
<span class="ax-name monospace" @mousedown=${
|
|
2536
|
-
${
|
|
2533
|
+
<style>${O}</style>
|
|
2534
|
+
<span class="ax-name monospace" @mousedown=${r.bind(null, t)}>
|
|
2535
|
+
${t.name}
|
|
2537
2536
|
</span>
|
|
2538
|
-
<span class="separator" @mousedown=${
|
|
2537
|
+
<span class="separator" @mousedown=${r.bind(null, t)}>${":\xA0"}</span>
|
|
2539
2538
|
<devtools-prompt
|
|
2540
2539
|
completions=completions
|
|
2541
2540
|
class="monospace"
|
|
2542
|
-
@mousedown=${
|
|
2541
|
+
@mousedown=${r.bind(null, t)}
|
|
2543
2542
|
.completionTimeout=${0}
|
|
2544
|
-
?editing=${e.attributeBeingEdited ===
|
|
2545
|
-
@commit=${(
|
|
2546
|
-
@cancel=${() => e.onCancelEditing(
|
|
2547
|
-
${t
|
|
2548
|
-
${
|
|
2543
|
+
?editing=${e.attributeBeingEdited === t}
|
|
2544
|
+
@commit=${(n) => e.onCommitEditing(t, n.detail)}
|
|
2545
|
+
@cancel=${() => e.onCancelEditing(t)}>
|
|
2546
|
+
${pe(t.value, 1e4)}
|
|
2547
|
+
${i(t)}
|
|
2549
2548
|
</devtools-prompt>
|
|
2550
2549
|
</li>`)}
|
|
2551
2550
|
</ul>
|
|
2552
|
-
`}></devtools-tree>`,
|
|
2553
|
-
}, J = class extends
|
|
2551
|
+
`}></devtools-tree>`, n, { container: { attributes: { jslog: `${v("aria-attributes")}` } } });
|
|
2552
|
+
}, J = class extends k {
|
|
2554
2553
|
#e;
|
|
2555
2554
|
#t = null;
|
|
2556
2555
|
constructor(e = q) {
|
|
@@ -2582,14 +2581,14 @@ var U = class {
|
|
|
2582
2581
|
this.#e(a, {}, this.contentElement);
|
|
2583
2582
|
}
|
|
2584
2583
|
isARIAAttribute(e) {
|
|
2585
|
-
return
|
|
2584
|
+
return ee.has(e.name);
|
|
2586
2585
|
}
|
|
2587
2586
|
}, Y = {
|
|
2588
2587
|
sourceOrderViewer: "Source Order Viewer",
|
|
2589
2588
|
noSourceOrderInformation: "No source order information available",
|
|
2590
2589
|
thereMayBeADelayInDisplaying: "There may be a delay in displaying source order for elements with many children",
|
|
2591
2590
|
showSourceOrder: "Show source order"
|
|
2592
|
-
}, ke =
|
|
2591
|
+
}, ke = i("panels/accessibility/SourceOrderView.ts", Y), X = r.bind(void 0, ke), Ae = 300, je = (e, t, n) => {
|
|
2593
2592
|
function r(t) {
|
|
2594
2593
|
let n = t.currentTarget;
|
|
2595
2594
|
e.onShowSourceOrderChanged(n.checked), t.consume();
|
|
@@ -2605,16 +2604,16 @@ var U = class {
|
|
|
2605
2604
|
id="source-order-warning">
|
|
2606
2605
|
${X(Y.thereMayBeADelayInDisplaying)}
|
|
2607
2606
|
</div>
|
|
2608
|
-
` :
|
|
2607
|
+
` : f}
|
|
2609
2608
|
<devtools-checkbox class="source-order-checkbox"
|
|
2610
|
-
jslog=${
|
|
2609
|
+
jslog=${ae().track({ click: !0 })}
|
|
2611
2610
|
?checked=${e.showSourceOrder}
|
|
2612
2611
|
@change=${r}>
|
|
2613
2612
|
${X(Y.showSourceOrder)}
|
|
2614
2613
|
</devtools-checkbox>
|
|
2615
2614
|
`}
|
|
2616
|
-
`, n, { container: { attributes: { jslog: `${
|
|
2617
|
-
}, Me = class extends
|
|
2615
|
+
`, n, { container: { attributes: { jslog: `${v("source-order-viewer")}` } } });
|
|
2616
|
+
}, Me = class extends k {
|
|
2618
2617
|
#e = 0;
|
|
2619
2618
|
#t = void 0;
|
|
2620
2619
|
#n;
|
|
@@ -2642,7 +2641,7 @@ var U = class {
|
|
|
2642
2641
|
};
|
|
2643
2642
|
this.#n(e, void 0, this.contentElement);
|
|
2644
2643
|
}
|
|
2645
|
-
}, Ne = /* @__PURE__ */ e({ AccessibilitySidebarView: () => Le }), { html: Pe, render: Fe } =
|
|
2644
|
+
}, Ne = /* @__PURE__ */ e({ AccessibilitySidebarView: () => Le }), { html: Pe, render: Fe } = l, Z = { showAccessibilityTree: "Show accessibility tree" }, Ie = i("panels/accessibility/AccessibilitySidebarView.ts", Z), Q = r.bind(void 0, Ie), $, Le = class e extends ie {
|
|
2646
2645
|
#e;
|
|
2647
2646
|
#t;
|
|
2648
2647
|
skipNextPullNode;
|
|
@@ -2653,7 +2652,7 @@ var U = class {
|
|
|
2653
2652
|
toggleContainer;
|
|
2654
2653
|
toggleAction;
|
|
2655
2654
|
constructor() {
|
|
2656
|
-
super(), this.registerRequiredCSS(Se), this.element.classList.add("accessibility-sidebar-view"), this.#e = null, this.#t = null, this.skipNextPullNode = !1, this.sidebarPaneStack =
|
|
2655
|
+
super(), this.registerRequiredCSS(Se), this.element.classList.add("accessibility-sidebar-view"), this.#e = null, this.#t = null, this.skipNextPullNode = !1, this.sidebarPaneStack = ce.instance().createStackLocation(), this.toggleContainer = document.createElement("div"), this.toggleContainer.classList.add("accessibility-toggle-container"), this.element.appendChild(this.toggleContainer), this.toggleAction = ue.instance().getAction("elements.toggle-a11y-tree"), this.toggleAction.addEventListener(te.TOGGLED, this.updateToggle, this), this.updateToggle(), this.ariaSubPane = new J(), this.sidebarPaneStack.showView(this.ariaSubPane), this.axNodeSubPane = new N(), this.sidebarPaneStack.showView(this.axNodeSubPane), this.sourceOrderSubPane = new Me(), this.sidebarPaneStack.showView(this.sourceOrderSubPane), this.sidebarPaneStack.widget().show(this.element), h.instance().addFlavorChangeListener(_, this.pullNode, this), this.pullNode();
|
|
2657
2656
|
}
|
|
2658
2657
|
static instance(t) {
|
|
2659
2658
|
return (!$ || t?.forceNew) && ($ = new e()), $;
|
|
@@ -2673,21 +2672,21 @@ var U = class {
|
|
|
2673
2672
|
async performUpdate() {
|
|
2674
2673
|
let e = this.node();
|
|
2675
2674
|
if (this.axNodeSubPane.setNode(e), this.ariaSubPane.setNode(e), this.sourceOrderSubPane.setNodeAsync(e), !e) return;
|
|
2676
|
-
let t = e.domModel().target().model(
|
|
2675
|
+
let t = e.domModel().target().model(ne);
|
|
2677
2676
|
t && (await t.requestPartialAXTree(e), this.accessibilityNodeCallback(t.axNodeForDOMNode(e)));
|
|
2678
2677
|
}
|
|
2679
2678
|
wasShown() {
|
|
2680
|
-
super.wasShown(), this.performUpdate(),
|
|
2679
|
+
super.wasShown(), this.performUpdate(), g.instance().addModelListener(m, y.AttrModified, this.onNodeChange, this, { scoped: !0 }), g.instance().addModelListener(m, y.AttrRemoved, this.onNodeChange, this, { scoped: !0 }), g.instance().addModelListener(m, y.CharacterDataModified, this.onNodeChange, this, { scoped: !0 }), g.instance().addModelListener(m, y.ChildNodeCountUpdated, this.onNodeChange, this, { scoped: !0 });
|
|
2681
2680
|
}
|
|
2682
2681
|
willHide() {
|
|
2683
|
-
super.willHide(),
|
|
2682
|
+
super.willHide(), g.instance().removeModelListener(m, y.AttrModified, this.onNodeChange, this), g.instance().removeModelListener(m, y.AttrRemoved, this.onNodeChange, this), g.instance().removeModelListener(m, y.CharacterDataModified, this.onNodeChange, this), g.instance().removeModelListener(m, y.ChildNodeCountUpdated, this.onNodeChange, this);
|
|
2684
2683
|
}
|
|
2685
2684
|
pullNode() {
|
|
2686
2685
|
if (this.skipNextPullNode) {
|
|
2687
2686
|
this.skipNextPullNode = !1;
|
|
2688
2687
|
return;
|
|
2689
2688
|
}
|
|
2690
|
-
this.setNode(
|
|
2689
|
+
this.setNode(h.instance().flavor(_));
|
|
2691
2690
|
}
|
|
2692
2691
|
updateToggle() {
|
|
2693
2692
|
let e = this.toggleAction.toggled();
|
|
@@ -2710,9 +2709,9 @@ var U = class {
|
|
|
2710
2709
|
}
|
|
2711
2710
|
onNodeChange(e) {
|
|
2712
2711
|
if (!this.node()) return;
|
|
2713
|
-
let t = e.data, n = t instanceof
|
|
2712
|
+
let t = e.data, n = t instanceof _ ? t : t.node;
|
|
2714
2713
|
this.node() === n && this.requestUpdate();
|
|
2715
2714
|
}
|
|
2716
2715
|
};
|
|
2717
2716
|
//#endregion
|
|
2718
|
-
export { Te as ARIAAttributesView, we as ARIAMetadata,
|
|
2717
|
+
export { Te as ARIAAttributesView, we as ARIAMetadata, ye as AccessibilityNodeView, Ne as AccessibilitySidebarView, ge as AccessibilityStrings, ve as AccessibilitySubPane };
|