@qilin-agent/experimental-inspector 0.0.0-stage → 3.1.3
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 +49 -0
- package/README.md +179 -2
- package/README.zh.md +180 -0
- package/cordis.patch.yml +5 -0
- package/icon.svg +12 -0
- package/lib/client.js +3572 -0
- package/lib/client.page.js +314 -0
- package/lib/devtools/Images/3d-center.svg +3 -0
- package/lib/devtools/Images/3d-pan.svg +3 -0
- package/lib/devtools/Images/3d-rotate.svg +3 -0
- package/lib/devtools/Images/accelerometer-back.svg +69 -0
- package/lib/devtools/Images/accelerometer-bottom.png +0 -0
- package/lib/devtools/Images/accelerometer-front.svg +28 -0
- package/lib/devtools/Images/accelerometer-left.png +0 -0
- package/lib/devtools/Images/accelerometer-right.png +0 -0
- package/lib/devtools/Images/accelerometer-top.png +0 -0
- package/lib/devtools/Images/account-tree.svg +10 -0
- package/lib/devtools/Images/add-photo.svg +3 -0
- package/lib/devtools/Images/ai-explorer-badge.svg +114 -0
- package/lib/devtools/Images/align-content-center.svg +5 -0
- package/lib/devtools/Images/align-content-end.svg +5 -0
- package/lib/devtools/Images/align-content-space-around.svg +6 -0
- package/lib/devtools/Images/align-content-space-between.svg +4 -0
- package/lib/devtools/Images/align-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/align-content-start.svg +5 -0
- package/lib/devtools/Images/align-content-stretch.svg +4 -0
- package/lib/devtools/Images/align-items-baseline.svg +4 -0
- package/lib/devtools/Images/align-items-center.svg +5 -0
- package/lib/devtools/Images/align-items-end.svg +5 -0
- package/lib/devtools/Images/align-items-start.svg +5 -0
- package/lib/devtools/Images/align-items-stretch.svg +6 -0
- package/lib/devtools/Images/align-self-center.svg +3 -0
- package/lib/devtools/Images/align-self-end.svg +4 -0
- package/lib/devtools/Images/align-self-start.svg +4 -0
- package/lib/devtools/Images/align-self-stretch.svg +5 -0
- package/lib/devtools/Images/animation.svg +3 -0
- package/lib/devtools/Images/arrow-back.svg +4 -0
- package/lib/devtools/Images/arrow-collapse.svg +3 -0
- package/lib/devtools/Images/arrow-down.svg +10 -0
- package/lib/devtools/Images/arrow-drop-down-dark.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down-light.svg +3 -0
- package/lib/devtools/Images/arrow-drop-down.svg +3 -0
- package/lib/devtools/Images/arrow-forward.svg +4 -0
- package/lib/devtools/Images/arrow-right-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down-circle.svg +3 -0
- package/lib/devtools/Images/arrow-up-down.svg +3 -0
- package/lib/devtools/Images/arrow-up.svg +10 -0
- package/lib/devtools/Images/attach-file.svg +3 -0
- package/lib/devtools/Images/baseline-high-availability.svg +17 -0
- package/lib/devtools/Images/baseline-limited-availability.svg +19 -0
- package/lib/devtools/Images/baseline-low-availability.svg +31 -0
- package/lib/devtools/Images/bell.svg +3 -0
- package/lib/devtools/Images/bezier-curve-filled.svg +3 -0
- package/lib/devtools/Images/bin.svg +1 -0
- package/lib/devtools/Images/bottom-panel-close.svg +1 -0
- package/lib/devtools/Images/bottom-panel-open.svg +1 -0
- package/lib/devtools/Images/brackets.svg +1 -0
- package/lib/devtools/Images/breakpoint-circle.svg +4 -0
- package/lib/devtools/Images/breakpoint-crossed-filled.svg +1 -0
- package/lib/devtools/Images/breakpoint-crossed.svg +1 -0
- package/lib/devtools/Images/brush-2.svg +3 -0
- package/lib/devtools/Images/brush-filled.svg +1 -0
- package/lib/devtools/Images/brush.svg +1 -0
- package/lib/devtools/Images/bucket.svg +4 -0
- package/lib/devtools/Images/bug.svg +3 -0
- package/lib/devtools/Images/button-magic.svg +3 -0
- package/lib/devtools/Images/calendar-today.svg +3 -0
- package/lib/devtools/Images/center-focus-weak.svg +3 -0
- package/lib/devtools/Images/check-circle.svg +3 -0
- package/lib/devtools/Images/check-double.svg +3 -0
- package/lib/devtools/Images/checker.svg +12 -0
- package/lib/devtools/Images/checkmark.svg +1 -0
- package/lib/devtools/Images/chevron-double-right.svg +3 -0
- package/lib/devtools/Images/chevron-down.svg +3 -0
- package/lib/devtools/Images/chevron-left-dot.svg +4 -0
- package/lib/devtools/Images/chevron-left.svg +3 -0
- package/lib/devtools/Images/chevron-right.svg +3 -0
- package/lib/devtools/Images/chevron-up.svg +3 -0
- package/lib/devtools/Images/chromeLeft.avif +0 -0
- package/lib/devtools/Images/chromeMiddle.avif +0 -0
- package/lib/devtools/Images/chromeRight.avif +0 -0
- package/lib/devtools/Images/class.svg +6 -0
- package/lib/devtools/Images/clear-list.svg +3 -0
- package/lib/devtools/Images/clear.svg +3 -0
- package/lib/devtools/Images/cloud.svg +3 -0
- package/lib/devtools/Images/code-circle.svg +5 -0
- package/lib/devtools/Images/code-whisperer-badge.svg +166 -0
- package/lib/devtools/Images/code.svg +3 -0
- package/lib/devtools/Images/colon.svg +4 -0
- package/lib/devtools/Images/color-picker-filled.svg +3 -0
- package/lib/devtools/Images/color-picker.svg +3 -0
- package/lib/devtools/Images/compress.svg +8 -0
- package/lib/devtools/Images/console-conditional-breakpoint.svg +1 -0
- package/lib/devtools/Images/console-logpoint.svg +1 -0
- package/lib/devtools/Images/container.svg +4 -0
- package/lib/devtools/Images/cookie.svg +3 -0
- package/lib/devtools/Images/cookie_off.svg +3 -0
- package/lib/devtools/Images/copy.svg +3 -0
- package/lib/devtools/Images/corporate-fare.svg +3 -0
- package/lib/devtools/Images/credit-card.svg +3 -0
- package/lib/devtools/Images/cross-circle-filled.svg +3 -0
- package/lib/devtools/Images/cross-circle.svg +3 -0
- package/lib/devtools/Images/cross.svg +3 -0
- package/lib/devtools/Images/cssoverview_icons_2x.avif +0 -0
- package/lib/devtools/Images/database-off.svg +1 -0
- package/lib/devtools/Images/database.svg +3 -0
- package/lib/devtools/Images/deployed.svg +3 -0
- package/lib/devtools/Images/device-fold.svg +1 -0
- package/lib/devtools/Images/devices.svg +3 -0
- package/lib/devtools/Images/devtools-thumbnail.svg +57 -0
- package/lib/devtools/Images/devtools-tips.svg +61 -0
- package/lib/devtools/Images/devtools-user-badge.svg +129 -0
- package/lib/devtools/Images/devtools.svg +13 -0
- package/lib/devtools/Images/difference.svg +3 -0
- package/lib/devtools/Images/dock-bottom.svg +3 -0
- package/lib/devtools/Images/dock-left.svg +3 -0
- package/lib/devtools/Images/dock-right.svg +3 -0
- package/lib/devtools/Images/dock-window.svg +3 -0
- package/lib/devtools/Images/document.svg +3 -0
- package/lib/devtools/Images/dog-paw.svg +10 -0
- package/lib/devtools/Images/dom-detective-badge.svg +136 -0
- package/lib/devtools/Images/domain.svg +3 -0
- package/lib/devtools/Images/dots-horizontal.svg +1 -0
- package/lib/devtools/Images/dots-vertical.svg +3 -0
- package/lib/devtools/Images/download.svg +3 -0
- package/lib/devtools/Images/edit.svg +1 -0
- package/lib/devtools/Images/empty.svg +2 -0
- package/lib/devtools/Images/errorWave.svg +74 -0
- package/lib/devtools/Images/exclamation.svg +3 -0
- package/lib/devtools/Images/expand.svg +1 -0
- package/lib/devtools/Images/experiment-check.svg +1 -0
- package/lib/devtools/Images/experiment.svg +3 -0
- package/lib/devtools/Images/extension.svg +1 -0
- package/lib/devtools/Images/eye-crossed.svg +3 -0
- package/lib/devtools/Images/eye.svg +3 -0
- package/lib/devtools/Images/file-document.svg +3 -0
- package/lib/devtools/Images/file-fetch-xhr.svg +3 -0
- package/lib/devtools/Images/file-font.svg +4 -0
- package/lib/devtools/Images/file-generic.svg +3 -0
- package/lib/devtools/Images/file-image.svg +3 -0
- package/lib/devtools/Images/file-json.svg +4 -0
- package/lib/devtools/Images/file-manifest.svg +3 -0
- package/lib/devtools/Images/file-media.svg +3 -0
- package/lib/devtools/Images/file-script.svg +3 -0
- package/lib/devtools/Images/file-snippet.svg +4 -0
- package/lib/devtools/Images/file-stylesheet.svg +4 -0
- package/lib/devtools/Images/file-wasm.svg +5 -0
- package/lib/devtools/Images/file-websocket.svg +3 -0
- package/lib/devtools/Images/filter-clear.svg +3 -0
- package/lib/devtools/Images/filter-filled.svg +3 -0
- package/lib/devtools/Images/filter.svg +3 -0
- package/lib/devtools/Images/flex-direction.svg +5 -0
- package/lib/devtools/Images/flex-no-wrap.svg +5 -0
- package/lib/devtools/Images/flex-wrap.svg +8 -0
- package/lib/devtools/Images/flow.svg +3 -0
- package/lib/devtools/Images/flowsheet.svg +1 -0
- package/lib/devtools/Images/fold-more.svg +3 -0
- package/lib/devtools/Images/folder-asterisk.svg +10 -0
- package/lib/devtools/Images/folder-off.svg +3 -0
- package/lib/devtools/Images/folder.svg +3 -0
- package/lib/devtools/Images/frame-crossed.svg +3 -0
- package/lib/devtools/Images/frame-icon.svg +54 -0
- package/lib/devtools/Images/frame.svg +3 -0
- package/lib/devtools/Images/gdp-logo-dark.png +0 -0
- package/lib/devtools/Images/gdp-logo-light.png +0 -0
- package/lib/devtools/Images/gear-filled.svg +3 -0
- package/lib/devtools/Images/gear.svg +4 -0
- package/lib/devtools/Images/gears.svg +3 -0
- package/lib/devtools/Images/geminiInDevTools.png +0 -0
- package/lib/devtools/Images/geminiInDevTools_2x.png +0 -0
- package/lib/devtools/Images/global.svg +5 -0
- package/lib/devtools/Images/google.svg +3 -0
- package/lib/devtools/Images/goto-filled.svg +1 -0
- package/lib/devtools/Images/grid-direction.svg +6 -0
- package/lib/devtools/Images/grid-on.svg +10 -0
- package/lib/devtools/Images/group.svg +3 -0
- package/lib/devtools/Images/heap-snapshot.svg +6 -0
- package/lib/devtools/Images/heap-snapshots.svg +7 -0
- package/lib/devtools/Images/help.svg +3 -0
- package/lib/devtools/Images/history.svg +3 -0
- package/lib/devtools/Images/home.svg +3 -0
- package/lib/devtools/Images/hover.svg +6 -0
- package/lib/devtools/Images/iframe-crossed.svg +3 -0
- package/lib/devtools/Images/iframe.svg +3 -0
- package/lib/devtools/Images/import.svg +3 -0
- package/lib/devtools/Images/indeterminate-question-box.svg +3 -0
- package/lib/devtools/Images/info-filled.svg +3 -0
- package/lib/devtools/Images/info.svg +3 -0
- package/lib/devtools/Images/issue-cross-filled.svg +3 -0
- package/lib/devtools/Images/issue-exclamation-filled.svg +3 -0
- package/lib/devtools/Images/issue-questionmark-filled.svg +3 -0
- package/lib/devtools/Images/issue-text-filled.svg +3 -0
- package/lib/devtools/Images/justify-content-center.svg +5 -0
- package/lib/devtools/Images/justify-content-end.svg +5 -0
- package/lib/devtools/Images/justify-content-space-around.svg +6 -0
- package/lib/devtools/Images/justify-content-space-between.svg +4 -0
- package/lib/devtools/Images/justify-content-space-evenly.svg +6 -0
- package/lib/devtools/Images/justify-content-start.svg +5 -0
- package/lib/devtools/Images/justify-content-stretch.svg +4 -0
- package/lib/devtools/Images/justify-items-center.svg +4 -0
- package/lib/devtools/Images/justify-items-end.svg +4 -0
- package/lib/devtools/Images/justify-items-start.svg +4 -0
- package/lib/devtools/Images/justify-items-stretch.svg +4 -0
- package/lib/devtools/Images/keyboard-arrow-right.svg +1 -0
- package/lib/devtools/Images/keyboard-full.svg +10 -0
- package/lib/devtools/Images/keyboard-pen.svg +1 -0
- package/lib/devtools/Images/keyboard.svg +3 -0
- package/lib/devtools/Images/label-auto.svg +3 -0
- package/lib/devtools/Images/label.svg +10 -0
- package/lib/devtools/Images/large-arrow-right-filled.svg +1 -0
- package/lib/devtools/Images/layers-filled.svg +1 -0
- package/lib/devtools/Images/layers.svg +1 -0
- package/lib/devtools/Images/left-panel-close.svg +1 -0
- package/lib/devtools/Images/left-panel-open.svg +1 -0
- package/lib/devtools/Images/lightbulb-spark.svg +13 -0
- package/lib/devtools/Images/lightbulb.svg +3 -0
- package/lib/devtools/Images/lighthouse_logo.svg +158 -0
- package/lib/devtools/Images/list.svg +3 -0
- package/lib/devtools/Images/location-on.svg +3 -0
- package/lib/devtools/Images/lock-person.svg +1 -0
- package/lib/devtools/Images/lock.svg +3 -0
- package/lib/devtools/Images/mark-email-unread.svg +3 -0
- package/lib/devtools/Images/match-case.svg +3 -0
- package/lib/devtools/Images/match-whole-word.svg +1 -0
- package/lib/devtools/Images/memory.svg +6 -0
- package/lib/devtools/Images/minus.svg +3 -0
- package/lib/devtools/Images/mop.svg +1 -0
- package/lib/devtools/Images/mouse.svg +4 -0
- package/lib/devtools/Images/navigationControls.png +0 -0
- package/lib/devtools/Images/navigationControls_2x.png +0 -0
- package/lib/devtools/Images/network-settings.svg +3 -0
- package/lib/devtools/Images/node-stack-icon.svg +1 -0
- package/lib/devtools/Images/nodeIcon.avif +0 -0
- package/lib/devtools/Images/open-externally.svg +3 -0
- package/lib/devtools/Images/override.svg +11 -0
- package/lib/devtools/Images/palette.svg +10 -0
- package/lib/devtools/Images/pause-circle.svg +1 -0
- package/lib/devtools/Images/pause.svg +1 -0
- package/lib/devtools/Images/pen-spark.svg +3 -0
- package/lib/devtools/Images/performance-panel-delete-annotation.svg +32 -0
- package/lib/devtools/Images/performance-panel-diagram.svg +34 -0
- package/lib/devtools/Images/performance-panel-entry-label.svg +75 -0
- package/lib/devtools/Images/performance-panel-time-range.svg +15 -0
- package/lib/devtools/Images/performance.svg +3 -0
- package/lib/devtools/Images/person.svg +3 -0
- package/lib/devtools/Images/photo-camera.svg +10 -0
- package/lib/devtools/Images/play.svg +3 -0
- package/lib/devtools/Images/plus.svg +3 -0
- package/lib/devtools/Images/policy.svg +3 -0
- package/lib/devtools/Images/popoverArrows.png +0 -0
- package/lib/devtools/Images/popup.svg +3 -0
- package/lib/devtools/Images/preview_feature_video_thumbnail.svg +92 -0
- package/lib/devtools/Images/profile.svg +3 -0
- package/lib/devtools/Images/psychiatry.svg +3 -0
- package/lib/devtools/Images/puzzle.svg +3 -0
- package/lib/devtools/Images/record-start.svg +4 -0
- package/lib/devtools/Images/record-stop.svg +4 -0
- package/lib/devtools/Images/redo.svg +3 -0
- package/lib/devtools/Images/refresh.svg +10 -0
- package/lib/devtools/Images/regular-expression.svg +3 -0
- package/lib/devtools/Images/replace.svg +1 -0
- package/lib/devtools/Images/replay.svg +3 -0
- package/lib/devtools/Images/report.svg +1 -0
- package/lib/devtools/Images/resizeDiagonal.svg +1 -0
- package/lib/devtools/Images/resizeHorizontal.svg +1 -0
- package/lib/devtools/Images/resizeVertical.svg +1 -0
- package/lib/devtools/Images/resume.svg +1 -0
- package/lib/devtools/Images/revert.svg +3 -0
- package/lib/devtools/Images/review.svg +5 -0
- package/lib/devtools/Images/right-panel-close.svg +1 -0
- package/lib/devtools/Images/right-panel-open.svg +1 -0
- package/lib/devtools/Images/scissors.svg +3 -0
- package/lib/devtools/Images/screen-rotation.svg +1 -0
- package/lib/devtools/Images/search.svg +3 -0
- package/lib/devtools/Images/select-element.svg +3 -0
- package/lib/devtools/Images/send.svg +3 -0
- package/lib/devtools/Images/shadow.svg +3 -0
- package/lib/devtools/Images/shield.svg +3 -0
- package/lib/devtools/Images/small-status-dot.svg +3 -0
- package/lib/devtools/Images/smart-assistant.svg +3 -0
- package/lib/devtools/Images/snippet.svg +4 -0
- package/lib/devtools/Images/spark-info.svg +3 -0
- package/lib/devtools/Images/spark.svg +3 -0
- package/lib/devtools/Images/speculative-loads.svg +1 -0
- package/lib/devtools/Images/speedster-badge.svg +166 -0
- package/lib/devtools/Images/star.svg +3 -0
- package/lib/devtools/Images/step-into.svg +1 -0
- package/lib/devtools/Images/step-out.svg +1 -0
- package/lib/devtools/Images/step-over.svg +1 -0
- package/lib/devtools/Images/step.svg +1 -0
- package/lib/devtools/Images/stop.svg +3 -0
- package/lib/devtools/Images/symbol.svg +3 -0
- package/lib/devtools/Images/sync.svg +3 -0
- package/lib/devtools/Images/tab-move.svg +1 -0
- package/lib/devtools/Images/table.svg +3 -0
- package/lib/devtools/Images/terminal.svg +10 -0
- package/lib/devtools/Images/text-analysis.svg +3 -0
- package/lib/devtools/Images/thumb-down-filled.svg +3 -0
- package/lib/devtools/Images/thumb-down.svg +3 -0
- package/lib/devtools/Images/thumb-up-filled.svg +3 -0
- package/lib/devtools/Images/thumb-up.svg +3 -0
- package/lib/devtools/Images/tonality.svg +10 -0
- package/lib/devtools/Images/toolbarResizerVertical.png +0 -0
- package/lib/devtools/Images/top-panel-close.svg +1 -0
- package/lib/devtools/Images/top-panel-open.svg +1 -0
- package/lib/devtools/Images/touch-app.svg +4 -0
- package/lib/devtools/Images/touchCursor.png +0 -0
- package/lib/devtools/Images/touchCursor_2x.png +0 -0
- package/lib/devtools/Images/triangle-bottom-right.svg +3 -0
- package/lib/devtools/Images/triangle-down.svg +1 -0
- package/lib/devtools/Images/triangle-left.svg +1 -0
- package/lib/devtools/Images/triangle-right.svg +1 -0
- package/lib/devtools/Images/triangle-up.svg +3 -0
- package/lib/devtools/Images/trophy.svg +3 -0
- package/lib/devtools/Images/tune.svg +3 -0
- package/lib/devtools/Images/undo.svg +1 -0
- package/lib/devtools/Images/warning-filled.svg +3 -0
- package/lib/devtools/Images/warning.svg +3 -0
- package/lib/devtools/Images/watch.svg +3 -0
- package/lib/devtools/Images/whatsnew.svg +61 -0
- package/lib/devtools/Images/width.svg +3 -0
- package/lib/devtools/Images/zoom-in.svg +3 -0
- package/lib/devtools/LICENSE +27 -0
- package/lib/devtools/application_tokens.css +413 -0
- package/lib/devtools/chunks/FormatterActions-FcPgI0uV.js +19 -0
- package/lib/devtools/chunks/UIFilter-CIzBruM3.js +18 -0
- package/lib/devtools/chunks/UIRequestLocation-CtGcVN3I.js +48 -0
- package/lib/devtools/chunks/_qilin-devtools_empty-BvRk9kiK.js +0 -0
- package/lib/devtools/chunks/accessibility-CwvHp3sj.js +2718 -0
- package/lib/devtools/chunks/acorn-_jSanihy.js +3232 -0
- package/lib/devtools/chunks/adorners-D4aU6nuY.js +45 -0
- package/lib/devtools/chunks/ai_assistance-BU6E0Wio.js +4255 -0
- package/lib/devtools/chunks/angular-Dutmu-L9.js +117 -0
- package/lib/devtools/chunks/animation-TEwO5UI_.js +922 -0
- package/lib/devtools/chunks/application-SCf6MiCN.js +12740 -0
- package/lib/devtools/chunks/autofill-Dp3nMnuK.js +198 -0
- package/lib/devtools/chunks/autofill_manager-BXntqfdp.js +58 -0
- package/lib/devtools/chunks/bindings-DgoVEdsr.js +4105 -0
- package/lib/devtools/chunks/browser-DL1S1Kiu.js +62 -0
- package/lib/devtools/chunks/browser_debugger-p7Rr4IBR.js +629 -0
- package/lib/devtools/chunks/changes-DeW5MC9u.js +2 -0
- package/lib/devtools/chunks/changes-k42bihtm.js +393 -0
- package/lib/devtools/chunks/checkbox.css-CZJJ6atQ.js +4 -0
- package/lib/devtools/chunks/chunk-DF993M8W.js +11 -0
- package/lib/devtools/chunks/code_highlighter-BnTPt9_G.js +210 -0
- package/lib/devtools/chunks/codemirror-CBR9VJma.js +15842 -0
- package/lib/devtools/chunks/color_picker-Cuh_X19Y.js +1566 -0
- package/lib/devtools/chunks/common-DjRFwulW.js +15145 -0
- package/lib/devtools/chunks/common-Uu9A2glf.js +2 -0
- package/lib/devtools/chunks/common-qd_KLeYO.js +6639 -0
- package/lib/devtools/chunks/components-CnPGgDUW.js +704 -0
- package/lib/devtools/chunks/components-Cw5tHQqN.js +1338 -0
- package/lib/devtools/chunks/components-EJwviLtZ.js +1090 -0
- package/lib/devtools/chunks/console-D1WlMaFQ.js +3855 -0
- package/lib/devtools/chunks/console-yMm3XVTY.js +2 -0
- package/lib/devtools/chunks/console_counters-9SfIdrUo.js +103 -0
- package/lib/devtools/chunks/coverage-BbFH390Q.js +1176 -0
- package/lib/devtools/chunks/coverage-CLBpovLw.js +2 -0
- package/lib/devtools/chunks/cpp-CdElSCaB.js +435 -0
- package/lib/devtools/chunks/css_overview-cITV9auE.js +1288 -0
- package/lib/devtools/chunks/data_grid-pC5qqfsJ.js +1671 -0
- package/lib/devtools/chunks/developer_resources-4DqQIvy6.js +240 -0
- package/lib/devtools/chunks/diff-qn55JSCS.js +444 -0
- package/lib/devtools/chunks/dom_extension-BfrKZ4JG.js +172 -0
- package/lib/devtools/chunks/elements-CgEYz3mX.js +2 -0
- package/lib/devtools/chunks/elements-Dbx4q9-v.js +11407 -0
- package/lib/devtools/chunks/emulation-C6XKPPGu.js +1306 -0
- package/lib/devtools/chunks/emulation-D8xbdsAj.js +2 -0
- package/lib/devtools/chunks/emulation-EtJlEukP.js +2732 -0
- package/lib/devtools/chunks/emulation-cjFPXHT9.js +157 -0
- package/lib/devtools/chunks/event_listeners-BeTH3gi2.js +414 -0
- package/lib/devtools/chunks/explain-P_aDGFSD.js +747 -0
- package/lib/devtools/chunks/greendev-BU0QcVPX.js +152 -0
- package/lib/devtools/chunks/heap_snapshot-CZt2KUPL.js +427 -0
- package/lib/devtools/chunks/helper-CI72KvIC.js +33 -0
- package/lib/devtools/chunks/helpers--xrfGSwQ.js +29 -0
- package/lib/devtools/chunks/i18n-DvFMqQdJ.js +17 -0
- package/lib/devtools/chunks/icon_button-BebVdJD8.js +83 -0
- package/lib/devtools/chunks/inline_editor-D54X5UUr.js +1309 -0
- package/lib/devtools/chunks/inspector_main-DRbdXLmF.js +279 -0
- package/lib/devtools/chunks/issue_counter-CeOjTNGW.js +193 -0
- package/lib/devtools/chunks/issues-CegBKEda.js +1649 -0
- package/lib/devtools/chunks/issues_manager-D7nfNPN1.js +3009 -0
- package/lib/devtools/chunks/java-7g_qfFa2.js +263 -0
- package/lib/devtools/chunks/layer_viewer-CaFC5oyv.js +1423 -0
- package/lib/devtools/chunks/layers-CXqlD9zH.js +370 -0
- package/lib/devtools/chunks/legacy-Bqn4Q0Tf.js +41804 -0
- package/lib/devtools/chunks/legacy-DOCLCisy.js +1434 -0
- package/lib/devtools/chunks/less-DXiRNbd4.js +195 -0
- package/lib/devtools/chunks/lighthouse-DtpzvfT6.js +3920 -0
- package/lib/devtools/chunks/lighthouse-T9ZpmENr.js +2 -0
- package/lib/devtools/chunks/linear_memory_inspector-C50PtM45.js +305 -0
- package/lib/devtools/chunks/live-metrics-Bs7wxibB.js +284 -0
- package/lib/devtools/chunks/main-C5y6NscM.js +2 -0
- package/lib/devtools/chunks/main-DcgYyEI0.js +755 -0
- package/lib/devtools/chunks/markdown-tZoR6Bsu.js +1512 -0
- package/lib/devtools/chunks/markdown_view-C67b2DdG.js +461 -0
- package/lib/devtools/chunks/marked-zGgfoDxO.js +1362 -0
- package/lib/devtools/chunks/media-BhuqASbO.js +1337 -0
- package/lib/devtools/chunks/media-Wfo1AbXC.js +2 -0
- package/lib/devtools/chunks/menus-BAUukA5-.js +969 -0
- package/lib/devtools/chunks/mobile_throttling-C26zde8o.js +2 -0
- package/lib/devtools/chunks/mobile_throttling-Cw4AkJH4.js +1052 -0
- package/lib/devtools/chunks/network-C3gIloDN.js +2 -0
- package/lib/devtools/chunks/network-CaxdpGU2.js +9181 -0
- package/lib/devtools/chunks/objectValue.css-C9o9fdM2.js +4 -0
- package/lib/devtools/chunks/object_ui-BYgPTK_b.js +1461 -0
- package/lib/devtools/chunks/object_ui-E7eR7aD-.js +2 -0
- package/lib/devtools/chunks/perf_ui-BqzJrt4p.js +2 -0
- package/lib/devtools/chunks/perf_ui-CQMkYfn3.js +3143 -0
- package/lib/devtools/chunks/performance_monitor-B2kUoCv0.js +385 -0
- package/lib/devtools/chunks/php-tl5gKrxu.js +423 -0
- package/lib/devtools/chunks/platform-BzB373NB.js +600 -0
- package/lib/devtools/chunks/profiler-BGu3akEf.js +4608 -0
- package/lib/devtools/chunks/protocol_client-Cwf_jb8R.js +24329 -0
- package/lib/devtools/chunks/protocol_monitor-B9nMqAAE.js +2 -0
- package/lib/devtools/chunks/protocol_monitor-CvLQ8ms1.js +1224 -0
- package/lib/devtools/chunks/puppeteer-CaOjgj3v.js +13299 -0
- package/lib/devtools/chunks/python-D9AdRkMm.js +580 -0
- package/lib/devtools/chunks/quick_open-C3IZ69m9.js +2 -0
- package/lib/devtools/chunks/quick_open-DRITaPnZ.js +722 -0
- package/lib/devtools/chunks/recorder-C0f1n95b.js +5465 -0
- package/lib/devtools/chunks/recorder-actions-S2RfLX4H.js +6 -0
- package/lib/devtools/chunks/request_link_icon-fGy57GcW.js +87 -0
- package/lib/devtools/chunks/root-DbVQo07X.js +255 -0
- package/lib/devtools/chunks/sass-BPQlMmw2.js +370 -0
- package/lib/devtools/chunks/security-NbgKa3ux.js +898 -0
- package/lib/devtools/chunks/sensors-nM7qcBE4.js +752 -0
- package/lib/devtools/chunks/settings-aKtQC12v.js +1433 -0
- package/lib/devtools/chunks/settings_ui-CzxAFzIb.js +175 -0
- package/lib/devtools/chunks/snackbars-lPThuWYs.js +12010 -0
- package/lib/devtools/chunks/snippets-dIuBmVBv.js +173 -0
- package/lib/devtools/chunks/source_frame-CSjno3kf.js +1352 -0
- package/lib/devtools/chunks/sources-BIZssBei.js +8216 -0
- package/lib/devtools/chunks/sources-Bf8QJxju.js +2 -0
- package/lib/devtools/chunks/suggestion_input-Duuu5pyd.js +196 -0
- package/lib/devtools/chunks/svelte-DJS1itbE.js +744 -0
- package/lib/devtools/chunks/textInput.css-DPvwvIic.js +4 -0
- package/lib/devtools/chunks/text_editor-Dq1P6D2J.js +15706 -0
- package/lib/devtools/chunks/text_utils-ohNt_gua.js +608 -0
- package/lib/devtools/chunks/theme_support-CbSSLkbO.js +92 -0
- package/lib/devtools/chunks/third-party-web-DGiPoc0U.js +12626 -0
- package/lib/devtools/chunks/timeline-BE_ysZxO.js +2 -0
- package/lib/devtools/chunks/timeline-C4vCX79k.js +16347 -0
- package/lib/devtools/chunks/utils-CELci976.js +298 -0
- package/lib/devtools/chunks/vue-CjH9yovn.js +73 -0
- package/lib/devtools/chunks/wast-CbGHiqaW.js +109 -0
- package/lib/devtools/chunks/web_audio-IdfBLjwV.js +277 -0
- package/lib/devtools/chunks/webauthn-iRZlbjGV.js +522 -0
- package/lib/devtools/chunks/whats_new-DOTPf2xJ.js +177 -0
- package/lib/devtools/chunks/xml-DI9dcP5w.js +327 -0
- package/lib/devtools/connect.js +9 -0
- package/lib/devtools/design_system_tokens.css +1061 -0
- package/lib/devtools/device_mode_emulation_frame.html +25 -0
- package/lib/devtools/devtools_app.html +25 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/MotoG4-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus5X-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/Nexus6P-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nest-hub-max-horizontal.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-horizontal-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-default-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-keyboard-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-1x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/google-nexus-5x-vertical-navigation-2x.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPad-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone5-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-landscape.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/iPhone6Plus-portrait.avif +0 -0
- package/lib/devtools/emulated_devices/optimized/optimized_images.gni +53 -0
- package/lib/devtools/entrypoints/device_mode_emulation_frame/device_mode_emulation_frame.js +4 -0
- package/lib/devtools/entrypoints/devtools_app/devtools_app.js +6240 -0
- package/lib/devtools/entrypoints/formatter_worker/formatter_worker-entrypoint.js +2810 -0
- package/lib/devtools/entrypoints/heap_snapshot_worker/heap_snapshot_worker-entrypoint.js +2142 -0
- package/lib/devtools/entrypoints/lighthouse_worker/lighthouse_worker.js +290095 -0
- package/lib/devtools/entrypoints/wasmparser_worker/wasmparser_worker-entrypoint.js +3403 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCoopSandboxedIframeCannotNavigateToCoopPage.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOrigin.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameOriginAfterDefaultedToSameOriginByCoep.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepCorpNotSameSite.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/CoepFrameResourceNeedsCoepHeader.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/CompatibilityModeQuirks.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/CookieAttributeValueExceedsMaxSize.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/LowTextContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeContextDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteExcludeNavigationContextDowngrade.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureErrorSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteNoneInsecureWarnSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeRead.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteUnspecifiedLaxAllowUnsafeSet.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeRead.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnCrossDowngradeSet.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/SameSiteWarnStrictLaxDowngradeStrict.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arInsecureContext.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidInfoHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arInvalidRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationUniqueScopeAlreadySet.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNavigationRegistrationWithoutTransientUserActivation.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterOsTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterSourceHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoRegisterTriggerHeader.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/arNoWebOrOsSupport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsSourceIgnored.md +18 -0
- package/lib/devtools/models/issues_manager/descriptions/arOsTriggerIgnored.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/arPermissionPolicyDisabled.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceAndTriggerHeaders.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/arSourceIgnored.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/arTriggerIgnored.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/arUntrustworthyReportingOrigin.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/arWebAndOsHeaders.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/bounceTrackingMitigations.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagAllowListInvalidOrigin.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/clientHintMetaTagModifiedHTML.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidAllowlistItemType.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidHeader.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistInvalidUrlPattern.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistItemNotInnerList.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistMoreThanOneList.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/connectionAllowlistReportingEndpointNotToken.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieCrossSiteRedirectDowngrade.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeBlockedWithinRelatedWebsiteSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludePortMismatch.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeSchemeMismatch.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieExcludeThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnDomainNonAscii.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantRead.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnMetadataGrantSet.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutRead.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/cookieWarnThirdPartyPhaseoutSet.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsAllowCredentialsRequired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisabledScheme.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsDisallowedByMode.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsHeaderDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsInvalidHeaderValues.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/corsLocalNetworkAccessPermissionDenied.md +19 -0
- package/lib/devtools/models/issues_manager/descriptions/corsMethodDisallowedByPreflightResponse.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsNoCorsRedirectModeNotFollow.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsOriginMismatch.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/corsPreflightResponseInvalid.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsRedirectContainsCredentials.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/corsWildcardOriginNotAllowed.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspEvalViolation.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/cspInlineViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesPolicyViolation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/cspTrustedTypesSinkViolation.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/cspURLViolation.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/deprecation.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsFetchFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestDnsInvalidRecord.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestInvalidEmail.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestKeyBindingSigningFailed.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestRpOriginIsOpaque.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenInvalidSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenMalformedSdJwt.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestUserLoggedOut.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownAccountsEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidContentType.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownIssuanceEndpointCrossOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownListEmpty.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingAccountsEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownMissingIssuanceEndpoint.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/emailVerificationRequestWellKnownUnsupportedSigningAlgorithm.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestAccountsNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestApprovalDeclined.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestCanceled.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorFetchingSignin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestErrorIdToken.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestIdTokenNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestInvalidSigninResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestHttpNotFound.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestInvalidResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestManifestNoResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthRequestTooManyRequests.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidAccountsResponse.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestInvalidConfigOrWellKnown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoAccountSharingPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoApiPermission.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNoReturningUserFromFetchedAccounts.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotIframe.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotPotentiallyTrustworthy.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSameOrigin.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/federatedAuthUserInfoRequestNotSignedInWithIdp.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/fetchingPartitionedBlobURL.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericBackUINavigationWouldSkipAd.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAriaLabelledByToNonExistingIdError.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormAutocompleteAttributeEmptyError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormDuplicateIdForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormEmptyIdAndNameAttributesForInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputAssignedAutocompleteValueToIdOrNameAttributeError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputHasWrongButWellIntendedAutocompleteValueError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormInputWithNoLabelError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForMatchesNonExistingIdError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelForNameError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormLabelHasNeitherForNorNestedInputError.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextMissingToolName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextParameterMissingTitleAndDescription.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericFormModelContextRequiredParameterMissingName.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/genericNavigationEntryMarkedSkippable.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/genericResponseWasBlockedByORB.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/heavyAd.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/mixedContent.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/navigatingPartitionedBlobURL.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabled.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluder.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementActivationDisabledWithOccluderParent.md +9 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementCspFrameAncestorsMissing.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFencedFrameDisallowed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooLarge.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementFontSizeTooSmall.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementGeolocationDeprecated.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInsetBoxShadowUnsupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidDisplayStyle.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidSizeValue.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidType.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementInvalidTypeActivation.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementLowContrast.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementNonOpaqueColor.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingBottomUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPaddingRightUnsupported.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementPermissionsPolicyBlocked.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRegistrationFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementRequestInProgress.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementSecurityChecksFailed.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementTypeNotSupported.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/permissionElementUntrustedEvent.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/placeholderDescriptionForInvisibleIssues.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleInvalidNameIssue.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/propertyRuleIssue.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedOptGroupChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityDisallowedSelectChild.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentAttributesSelectDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentLegendChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityInteractiveContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectElementAccessibilityNonPhrasingContentOptionChild.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/selectivePermissionsIntervention.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedArrayBuffer.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorCrossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorDictionaryLoadFailure.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorMatchingDictionaryNotUsed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryUseErrorUnexpectedContentDictionaryHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorCossOriginNoCorsRequest.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorDisallowedBySettings.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorExpiredResponse.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorFeatureDisabled.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInsufficientResources.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidStructuredHeader.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorInvalidTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNavigationRequest.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNoMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonIntegerTTLField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonListMatchDestField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonSecureContext.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringIdField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringInMatchDestList.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonStringMatchField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorNonTokenTypeField.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorRequestAborted.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorShuttingDown.md +1 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorTooLongIdField.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sharedDictionaryWriteErrorUnsupportedType.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureHeader.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriInvalidSignatureInputHeader.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureHeader.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriMissingSignatureInputHeader.md +7 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsIncorrectLength.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsNotByteSequence.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureHeaderValueIsParameterized.md +15 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentName.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidComponentType.md +13 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidDerivedComponentParameter.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidHeaderComponentParameter.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderInvalidParameter.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderKeyIdLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingLabel.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderMissingRequiredParameters.md +8 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueMissingComponents.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriSignatureInputHeaderValueNotInnerList.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedIntegrityMismatch.md +10 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedInvalidLength.md +5 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureExpired.md +6 -0
- package/lib/devtools/models/issues_manager/descriptions/sriValidationFailedSignatureMismatch.md +11 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetLateImport.md +4 -0
- package/lib/devtools/models/issues_manager/descriptions/stylesheetRequestFailed.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/summaryElementAccessibilityInteractiveContentSummaryDescendant.md +3 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestLength.md +12 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestIncorrectDigestType.md +17 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestMalformedDictionary.md +14 -0
- package/lib/devtools/models/issues_manager/descriptions/unencodedDigestUnknownAlgorithm.md +15 -0
- package/lib/devtools/models/live-metrics/web-vitals-injected/web-vitals-injected.generated.js +1 -0
- package/lib/devtools/panels/recorder/injected/injected.generated.js +1 -0
- package/lib/devtools/panels/whats_new/resources/WNDT.md +14 -0
- package/lib/devtools/resource-manifest.json +3818 -0
- package/lib/devtools/third_party/acorn/package/LICENSE +21 -0
- package/lib/devtools/third_party/axe-core/LICENSE +362 -0
- package/lib/devtools/third_party/chromium/LICENSE +27 -0
- package/lib/devtools/third_party/codemirror/package/LICENSE +21 -0
- package/lib/devtools/third_party/codemirror.next/LICENSE +21 -0
- package/lib/devtools/third_party/csp_evaluator/package/LICENSE +202 -0
- package/lib/devtools/third_party/diff/LICENSE +202 -0
- package/lib/devtools/third_party/i18n/LICENSE +202 -0
- package/lib/devtools/third_party/intl-messageformat/LICENSE +33 -0
- package/lib/devtools/third_party/intl-messageformat/package/LICENSE.md +33 -0
- package/lib/devtools/third_party/json5/LICENSE +23 -0
- package/lib/devtools/third_party/legacy-javascript/LICENSE +202 -0
- package/lib/devtools/third_party/lighthouse/LICENSE +202 -0
- package/lib/devtools/third_party/lit/LICENSE +28 -0
- package/lib/devtools/third_party/marked/LICENSE +39 -0
- package/lib/devtools/third_party/marked/package/LICENSE.md +44 -0
- package/lib/devtools/third_party/puppeteer/LICENSE +202 -0
- package/lib/devtools/third_party/puppeteer/third_party/mitt/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/parsel/LICENSE +21 -0
- package/lib/devtools/third_party/puppeteer/third_party/rxjs/LICENSE +201 -0
- package/lib/devtools/third_party/puppeteer-replay/package/LICENSE +202 -0
- package/lib/devtools/third_party/source-map-scopes-codec/LICENSE +26 -0
- package/lib/devtools/third_party/source-map-scopes-codec/package/LICENSE +26 -0
- package/lib/devtools/third_party/third-party-web/LICENSE +20 -0
- package/lib/devtools/third_party/third-party-web/package/LICENSE +20 -0
- package/lib/devtools/third_party/vscode.web-custom-data/package/LICENSE.md +21 -0
- package/lib/devtools/third_party/wasmparser/package/LICENSE +177 -0
- package/lib/devtools/third_party/web-vitals/package/LICENSE +202 -0
- package/lib/index.js +2554 -0
- package/lib/types/client/bottom/keyboard.d.ts +10 -0
- package/lib/types/client/bottom/locales.d.ts +17 -0
- package/lib/types/client/bottom/page.d.ts +10 -0
- package/lib/types/client/bottom/resize.d.ts +12 -0
- package/lib/types/client/bridge/controller.d.ts +10 -0
- package/lib/types/client/bridge/dispatcher.d.ts +26 -0
- package/lib/types/client/bridge/lifecycle.d.ts +22 -0
- package/lib/types/client/bridge/locales.d.ts +3 -0
- package/lib/types/client/bridge/publisher.d.ts +42 -0
- package/lib/types/client/bridge/rpc.d.ts +13 -0
- package/lib/types/client/bridge/transport.d.ts +41 -0
- package/lib/types/client/cdp/console.d.ts +45 -0
- package/lib/types/client/cdp/debugger.d.ts +8 -0
- package/lib/types/client/cdp/errors.d.ts +8 -0
- package/lib/types/client/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/client/cdp/index.d.ts +10 -0
- package/lib/types/client/cdp/objects.d.ts +69 -0
- package/lib/types/client/cdp/profiler.d.ts +8 -0
- package/lib/types/client/cdp/properties.d.ts +16 -0
- package/lib/types/client/cdp/runtime.d.ts +79 -0
- package/lib/types/client/cdp/sources.d.ts +53 -0
- package/lib/types/client/cdp/stack.d.ts +27 -0
- package/lib/types/client/index.d.ts +3 -0
- package/lib/types/client/inspection/cordis.d.ts +3 -0
- package/lib/types/client/inspection/network.d.ts +4 -0
- package/lib/types/client/inspection/realm.d.ts +27 -0
- package/lib/types/client/plugin.d.ts +29 -0
- package/lib/types/host/bridge/controller.d.ts +108 -0
- package/lib/types/host/bridge/dispatcher.d.ts +16 -0
- package/lib/types/host/bridge/lifecycle.d.ts +42 -0
- package/lib/types/host/bridge/publisher.d.ts +31 -0
- package/lib/types/host/bridge/rpc.d.ts +15 -0
- package/lib/types/host/bridge/transport.d.ts +28 -0
- package/lib/types/host/cdp/console.d.ts +14 -0
- package/lib/types/host/cdp/debugger.d.ts +8 -0
- package/lib/types/host/cdp/errors.d.ts +6 -0
- package/lib/types/host/cdp/heap-profiler.d.ts +8 -0
- package/lib/types/host/cdp/index.d.ts +10 -0
- package/lib/types/host/cdp/objects.d.ts +8 -0
- package/lib/types/host/cdp/profiler.d.ts +8 -0
- package/lib/types/host/cdp/properties.d.ts +7 -0
- package/lib/types/host/cdp/runtime.d.ts +16 -0
- package/lib/types/host/cdp/sources.d.ts +14 -0
- package/lib/types/host/cdp/stack.d.ts +4 -0
- package/lib/types/host/index.d.ts +3 -0
- package/lib/types/host/inspection/cordis.d.ts +3 -0
- package/lib/types/host/inspection/network.d.ts +23 -0
- package/lib/types/host/inspection/realm.d.ts +9 -0
- package/lib/types/host/plugin.d.ts +19 -0
- package/lib/types/index.d.ts +50 -0
- package/lib/types/shared/bridge/buffer.d.ts +62 -0
- package/lib/types/shared/bridge/codec.d.ts +4 -0
- package/lib/types/shared/bridge/control-codec.d.ts +27 -0
- package/lib/types/shared/bridge/ids.d.ts +19 -0
- package/lib/types/shared/bridge/messages/control.d.ts +64 -0
- package/lib/types/shared/bridge/messages/cordis.d.ts +4 -0
- package/lib/types/shared/bridge/messages/network.d.ts +4 -0
- package/lib/types/shared/bridge/messages/observation.d.ts +110 -0
- package/lib/types/shared/bridge/messages/query/codec.d.ts +40 -0
- package/lib/types/shared/bridge/messages/query/commands.d.ts +35 -0
- package/lib/types/shared/bridge/messages/query/frames.d.ts +31 -0
- package/lib/types/shared/bridge/messages/query/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/command-codec.d.ts +9 -0
- package/lib/types/shared/bridge/messages/runtime/commands.d.ts +76 -0
- package/lib/types/shared/bridge/messages/runtime/console-frames.d.ts +52 -0
- package/lib/types/shared/bridge/messages/runtime/frames.d.ts +98 -0
- package/lib/types/shared/bridge/messages/runtime/index.d.ts +5 -0
- package/lib/types/shared/bridge/messages/runtime/value-codec.d.ts +28 -0
- package/lib/types/shared/bridge/messages/sources/codec.d.ts +15 -0
- package/lib/types/shared/bridge/messages/sources/commands.d.ts +42 -0
- package/lib/types/shared/bridge/messages/sources/frames.d.ts +67 -0
- package/lib/types/shared/bridge/messages/sources/index.d.ts +5 -0
- package/lib/types/shared/bridge/publisher.d.ts +33 -0
- package/lib/types/shared/bridge/query-reader.d.ts +10 -0
- package/lib/types/shared/bridge/rpc.d.ts +62 -0
- package/lib/types/shared/bridge/validation.d.ts +3 -0
- package/lib/types/shared/bridge/version.d.ts +3 -0
- package/lib/types/shared/cdp/capabilities.d.ts +17 -0
- package/lib/types/shared/cdp/console.d.ts +28 -0
- package/lib/types/shared/cdp/debugger.d.ts +69 -0
- package/lib/types/shared/cdp/errors.d.ts +27 -0
- package/lib/types/shared/cdp/ids.d.ts +9 -0
- package/lib/types/shared/cdp/index.d.ts +11 -0
- package/lib/types/shared/cdp/operations.d.ts +86 -0
- package/lib/types/shared/cdp/property.d.ts +28 -0
- package/lib/types/shared/cdp/realm.d.ts +137 -0
- package/lib/types/shared/cdp/remote-object.d.ts +44 -0
- package/lib/types/shared/cdp/sources.d.ts +18 -0
- package/lib/types/shared/cordis/collector.d.ts +26 -0
- package/lib/types/shared/cordis/ids.d.ts +7 -0
- package/lib/types/shared/cordis/model.d.ts +61 -0
- package/lib/types/shared/cordis/object-reference.d.ts +14 -0
- package/lib/types/shared/cordis/object-registry.d.ts +80 -0
- package/lib/types/shared/cordis/observer.d.ts +15 -0
- package/lib/types/shared/cordis/projector.d.ts +34 -0
- package/lib/types/shared/cordis/publisher.d.ts +13 -0
- package/lib/types/shared/cordis/reader.d.ts +18 -0
- package/lib/types/shared/cordis/snapshot.d.ts +39 -0
- package/lib/types/shared/dispose.d.ts +11 -0
- package/lib/types/shared/identity.d.ts +12 -0
- package/lib/types/shared/index.d.ts +18 -0
- package/lib/types/shared/json.d.ts +35 -0
- package/lib/types/shared/network/event-source.d.ts +20 -0
- package/lib/types/shared/network/observation.d.ts +52 -0
- package/lib/types/shared/service.d.ts +23 -0
- package/lib/types/shared/validation.d.ts +52 -0
- package/lib/types/shared/web.d.ts +16 -0
- package/lib/types/worker/bridge/endpoint.d.ts +49 -0
- package/lib/types/worker/bridge/hub.d.ts +108 -0
- package/lib/types/worker/bridge/runtime-rpc.d.ts +90 -0
- package/lib/types/worker/bridge/session.d.ts +15 -0
- package/lib/types/worker/bridge/source-rpc.d.ts +42 -0
- package/lib/types/worker/cdp/domains/debugger/cdp-params.d.ts +15 -0
- package/lib/types/worker/cdp/domains/debugger/index.d.ts +6 -0
- package/lib/types/worker/cdp/domains/debugger/projector.d.ts +22 -0
- package/lib/types/worker/cdp/domains/debugger/script-registry.d.ts +70 -0
- package/lib/types/worker/cdp/domains/debugger/session.d.ts +47 -0
- package/lib/types/worker/cdp/domains/dom/index.d.ts +4 -0
- package/lib/types/worker/cdp/domains/dom/model.d.ts +121 -0
- package/lib/types/worker/cdp/domains/dom/session.d.ts +78 -0
- package/lib/types/worker/cdp/domains/native.d.ts +25 -0
- package/lib/types/worker/cdp/domains/network/session.d.ts +46 -0
- package/lib/types/worker/cdp/domains/runtime/cdp-params.d.ts +82 -0
- package/lib/types/worker/cdp/domains/runtime/index.d.ts +3 -0
- package/lib/types/worker/cdp/domains/runtime/object-table.d.ts +117 -0
- package/lib/types/worker/cdp/domains/runtime/session.d.ts +97 -0
- package/lib/types/worker/cdp/ids.d.ts +37 -0
- package/lib/types/worker/cdp/protocol.d.ts +46 -0
- package/lib/types/worker/cdp/realm-sessions.d.ts +67 -0
- package/lib/types/worker/cdp/session.d.ts +39 -0
- package/lib/types/worker/cdp/target.d.ts +17 -0
- package/lib/types/worker/entry.d.ts +3 -0
- package/lib/types/worker/inspection/cordis-query.d.ts +11 -0
- package/lib/types/worker/inspection/cordis-store.d.ts +94 -0
- package/lib/types/worker/inspection/network-store.d.ts +110 -0
- package/lib/types/worker/inspection/query-router.d.ts +78 -0
- package/lib/types/worker/inspection/realm-store.d.ts +58 -0
- package/lib/types/worker/inspection/realm.d.ts +43 -0
- package/lib/types/worker/realms/client/bridge.d.ts +18 -0
- package/lib/types/worker/realms/client/console.d.ts +21 -0
- package/lib/types/worker/realms/client/debugger.d.ts +8 -0
- package/lib/types/worker/realms/client/index.d.ts +18 -0
- package/lib/types/worker/realms/client/runtime.d.ts +28 -0
- package/lib/types/worker/realms/client/scripts.d.ts +15 -0
- package/lib/types/worker/realms/client/sources.d.ts +30 -0
- package/lib/types/worker/realms/client/values.d.ts +55 -0
- package/lib/types/worker/realms/host/bridge.d.ts +49 -0
- package/lib/types/worker/realms/host/console.d.ts +25 -0
- package/lib/types/worker/realms/host/debugger.d.ts +25 -0
- package/lib/types/worker/realms/host/index.d.ts +13 -0
- package/lib/types/worker/realms/host/runtime.d.ts +54 -0
- package/lib/types/worker/realms/host/scripts.d.ts +9 -0
- package/lib/types/worker/realms/host/sources.d.ts +26 -0
- package/lib/types/worker/realms/host/values.d.ts +22 -0
- package/lib/types/worker/server.d.ts +16 -0
- package/lib/worker.js +7289 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +90 -3
|
@@ -0,0 +1,1671 @@
|
|
|
1
|
+
import { n as e } from "./chunk-DF993M8W.js";
|
|
2
|
+
import { Ot as t, Tt as n, W as r, Y as i, z as a } from "./platform-BzB373NB.js";
|
|
3
|
+
import { At as o, bt as s, d as c, jt as l, wt as u } from "./common-qd_KLeYO.js";
|
|
4
|
+
import { Bo as d, D as f, Dt as p, K as ee, Kt as m, Mn as h, O as te, Pn as ne, Ro as re, Tt as g, U as _, Ur as v, Ut as ie, Va as ae, Zo as y, bn as b, br as x, co as oe, ei as se, jf as S, lo as ce, mt as le, so as C, ui as w, vn as ue, wn as T, wo as de, zo as fe } from "./legacy-Bqn4Q0Tf.js";
|
|
5
|
+
//#region \0qilin-devtools:css:/home/runner/work/QiLin/QiLin/node_modules/.pnpm/chrome-devtools-frontend@1.0.1638082/node_modules/chrome-devtools-frontend/front_end/ui/legacy/components/data_grid/dataGrid.css.mjs
|
|
6
|
+
var E = "/*\n * Copyright 2021 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.data-grid {\n position: relative;\n border: 1px solid var(--sys-color-divider) !important; /* stylelint-disable-line declaration-no-important */\n /* See: crbug.com/1152736 for color variable migration. */\n line-height: 120%;\n\n :focus-visible {\n outline: 2px solid var(--sys-color-state-focus-ring);\n outline-offset: -2px;\n }\n}\n\n.data-grid table {\n table-layout: fixed;\n border-spacing: 0;\n border-collapse: separate;\n height: 100%;\n width: 100%;\n}\n\n.data-grid .data-container {\n position: absolute;\n inset: 0;\n overflow: hidden auto;\n transform: translateZ(0);\n background-color: var(--sys-color-cdt-base-container);\n}\n\n.data-grid thead {\n position: sticky;\n top: 0;\n height: 21px;\n z-index: 1;\n}\n\n.data-grid .aria-live-label {\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.data-grid.inline .data-container {\n position: static;\n}\n\n.data-grid .corner {\n width: 14px;\n padding-right: 0;\n padding-left: 0;\n border-left: 0 none transparent !important; /* stylelint-disable-line declaration-no-important */\n}\n\n.data-grid.inline .corner {\n display: none;\n}\n\n.data-grid.data-grid-fits-viewport .corner {\n display: none;\n}\n\n.data-grid .top-filler-td,\n.data-grid .bottom-filler-td {\n height: auto !important; /* stylelint-disable-line declaration-no-important */\n padding: 0 !important; /* stylelint-disable-line declaration-no-important */\n}\n\n.data-grid table.data {\n position: absolute;\n inset: 0;\n border-top: 0 none transparent;\n table-layout: fixed;\n}\n\n.data-grid.inline table.data {\n position: static;\n}\n\n.data-grid tbody tr {\n display: none;\n height: 20px;\n\n &:has(td.show-more) {\n height: var(--sys-size-13);\n }\n}\n\n.data-grid tbody tr.revealed {\n display: table-row;\n}\n\n.striped-data-grid .revealed.data-grid-data-grid-node:nth-child(odd):not(.dirty, .selected),\n.striped-data-grid-starts-with-odd .revealed.data-grid-data-grid-node:nth-child(even):not(.dirty, .selected) {\n background-color: var(--sys-color-surface1);\n}\n\n.data-grid td,\n.data-grid th {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n line-height: 18px;\n height: 18px;\n border-left: 1px solid var(--sys-color-divider);\n padding: 1px 4px;\n}\n\n.data-grid td {\n vertical-align: top;\n user-select: text;\n}\n\n.data-grid tr {\n background-color: var(--sys-color-surface);\n\n &:has(th) {\n background-color: var(--sys-color-surface1);\n }\n}\n\n.data-grid th {\n border-bottom: 1px solid var(--sys-color-divider);\n text-align: left;\n font-weight: normal;\n vertical-align: middle;\n}\n\n.data-grid th:first-child,\n.data-grid td:first-child {\n border-left-width: 0;\n}\n\n.data-grid:focus-within tr.selected td,\n.data-grid:focus-within tr.selected th {\n border-left-color: var(--sys-color-divider-on-tonal-container);\n}\n\n.data-grid td > div,\n.data-grid th > div {\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n min-width: 8px;\n}\n\n.data-grid td.editing > div {\n text-overflow: clip;\n}\n\n.data-grid .center {\n text-align: center;\n}\n\n.data-grid .right {\n text-align: right;\n}\n\n.data-grid th.sortable {\n position: relative;\n}\n\n.data-grid th .sort-order-icon-container {\n min-width: 0;\n position: absolute;\n top: 1px;\n right: 0;\n bottom: 1px;\n display: flex;\n align-items: center;\n}\n\n.data-grid th .sort-order-icon {\n margin-right: 4px;\n margin-bottom: -2px;\n width: 14px;\n height: 14px;\n display: none;\n background-color: var(--icon-default);\n}\n\n.data-grid th.sort-ascending .sort-order-icon {\n display: inline-block;\n mask-image: var(--image-file-triangle-up);\n}\n\n.data-grid th.sort-descending .sort-order-icon {\n display: inline-block;\n mask-image: var(--image-file-triangle-down);\n}\n\n.data-grid th.sort-ascending,\n.data-grid th.sort-descending {\n padding-right: 14px;\n}\n\n.data-grid th.sortable:hover,\n.data-grid th.sortable:focus-within {\n background-color: var(--sys-color-state-hover-on-subtle);\n}\n\n.data-grid .top-filler-td {\n border-bottom: 0 none transparent;\n line-height: 0;\n}\n\n.data-grid button {\n line-height: 18px;\n color: inherit;\n}\n\n.data-grid td.disclosure::before {\n user-select: none;\n mask-image: var(--image-file-triangle-right);\n float: left;\n width: 14px;\n height: 14px;\n margin-right: 2px;\n content: \"\";\n position: relative;\n top: 3px;\n background-color: var(--icon-default);\n transition: transform 200ms;\n}\n\n.data-grid tr:not(.parent) td.disclosure::before {\n background-color: transparent;\n}\n\n.data-grid tr.expanded td.disclosure::before {\n transform: rotate(90deg);\n}\n\n.data-grid tbody tr.revealed.selected {\n background-color: var(--sys-color-neutral-container);\n color: inherit;\n\n & ::selection {\n background-color: var(--sys-color-state-focus-select);\n color: currentcolor;\n }\n}\n\n.data-grid:focus-within tbody tr.revealed.selected {\n background-color: var(--sys-color-tonal-container);\n}\n\n.data-grid tbody tr.revealed:not(.data-grid-filler-row, .selected):hover {\n background-color: var(--sys-color-state-hover-on-subtle);\n}\n\n.data-grid tbody tr.revealed.selected.dirty {\n color: var(--sys-color-on-tonal-container);\n}\n\n.data-grid.no-selection:focus-visible {\n outline: 2px solid var(--sys-color-state-focus-ring);\n outline-offset: -2px;\n}\n\n.data-grid:focus tbody tr.selected {\n background-color: var(--sys-color-tonal-container);\n color: var(--sys-color-on-tonal-container);\n}\n\n.data-grid tbody tr.selected.dirty {\n --override-data-grid-dirty-background-color: var(--sys-color-error);\n\n background-color: var(--override-data-grid-dirty-background-color);\n}\n\n.data-grid:focus tr.selected.dirty {\n --override-data-grid-dirty-background-color: var(--sys-color-error-container);\n}\n\n.data-grid:focus tr.selected .devtools-link {\n color: var(--sys-color-on-tonal-container);\n}\n\n.data-grid:focus tr.parent.selected td.disclosure::before {\n background-color: var(--sys-color-on-tonal-container);\n}\n\n.data-grid tr.inactive {\n color: var(--sys-color-state-disabled);\n font-style: italic;\n}\n\n.data-grid tr.dirty {\n --override-data-grid-dirty-background-color: var(--sys-color-surface-error);\n\n background-color: var(--override-data-grid-dirty-background-color);\n color: var(--sys-color-error);\n font-style: normal;\n}\n\n.data-grid tr.highlighted:not(.selected) {\n background-color: var(--sys-color-surface-yellow);\n}\n\n.striped-data-grid .revealed.data-grid-data-grid-node.highlighted:nth-child(odd):not(.dirty, .selected),\n.striped-data-grid-starts-with-odd .revealed.data-grid-data-grid-node.highlighted:nth-child(even):not(.dirty, .selected) {\n background-color: var(--sys-color-surface-yellow-high);\n}\n\n.data-grid td.show-more {\n white-space: normal;\n gap: var(--sys-size-3);\n\n devtools-button {\n margin-right: var(--sys-size-6);\n position: relative;\n margin-top: 3px;\n margin-bottom: 3px;\n }\n}\n\n.data-grid td.show-more::before {\n display: none;\n}\n\n.data-grid-resizer {\n position: absolute;\n top: 0;\n bottom: 0;\n width: 5px;\n z-index: 500;\n}\n\n@media (forced-colors: active) {\n .sort-order-icon-container .sort-order-icon {\n forced-color-adjust: none;\n background-color: ButtonText;\n }\n\n .data-grid td.disclosure::before {\n forced-color-adjust: none;\n color: ButtonText;\n }\n\n .data-grid.no-selection:focus-visible * {\n color: ButtonText;\n }\n\n .data-grid tbody tr.revealed:not(.data-grid-filler-row, .selected):hover,\n .data-grid:focus-within tbody tr.revealed.selected {\n background-color: Highlight;\n }\n\n .data-grid th.sortable:hover *,\n .data-grid tr.parent.selected td.disclosure::before,\n .data-grid:focus tr.parent.selected td.disclosure::before,\n .data-grid tbody tr.parent.revealed:hover td.disclosure::before {\n color: HighlightText;\n }\n\n .data-grid th.sortable:hover .sort-order-icon-container .sort-order-icon {\n background-color: HighlightText;\n }\n\n .striped-data-grid .revealed.data-grid-data-grid-node:nth-child(odd):not(.dirty, .selected),\n .striped-data-grid-starts-with-odd .revealed.data-grid-data-grid-node:nth-child(even):not(.dirty, .selected),\n .request-cookies-view tr.revealed.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(2n),\n .cookies-table tr.revealed.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(odd) {\n background-color: canvas;\n }\n\n .data-grid.no-selection:focus-visible {\n forced-color-adjust: none;\n border-color: Highlight;\n }\n\n .data-grid th.sortable:hover,\n .data-grid tbody tr.revealed:hover,\n .data-grid tbody tr.revealed.selected,\n .striped-data-grid .revealed:hover.data-grid-data-grid-node:nth-child(odd):not(.dirty, .selected),\n .striped-data-grid-starts-with-odd .revealed:hover.data-grid-data-grid-node:nth-child(even):not(.dirty, .selected),\n .request-cookies-view tr.revealed:hover.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(2n),\n .cookies-table tr.revealed:hover.data-grid-data-grid-node.flagged-cookie-attribute-row:not(.selected):nth-child(odd) {\n forced-color-adjust: none;\n background-color: Highlight;\n }\n\n .data-grid tbody tr.revealed:hover *,\n .data-grid tbody tr.revealed.selected *,\n .data-grid tbody tr.revealed:focus *,\n .data-grid tbody tr.revealed:hover .heap-object-tag {\n color: HighlightText;\n }\n\n .data-grid th {\n background-color: canvas;\n border-color: Highlight;\n }\n}\n", pe = /* @__PURE__ */ e({
|
|
7
|
+
Align: () => R,
|
|
8
|
+
CenterResizerOverBorderAdjustment: () => 3,
|
|
9
|
+
ColumnResizePadding: () => 30,
|
|
10
|
+
CornerWidth: () => 14,
|
|
11
|
+
CreationDataGridNode: () => H,
|
|
12
|
+
DataGridImpl: () => F,
|
|
13
|
+
DataGridNode: () => V,
|
|
14
|
+
DataGridWidget: () => U,
|
|
15
|
+
DataType: () => z,
|
|
16
|
+
Events: () => I,
|
|
17
|
+
Order: () => L,
|
|
18
|
+
ResizeMethod: () => B
|
|
19
|
+
}), D = {
|
|
20
|
+
expanded: "expanded",
|
|
21
|
+
collapsed: "collapsed",
|
|
22
|
+
sRowS: "{PH1} Row {PH2}",
|
|
23
|
+
rowsS: "Rows: {PH1}",
|
|
24
|
+
sSUseTheUpAndDownArrowKeysTo: "{PH1} {PH2}, use the up and down arrow keys to navigate and interact with the rows of the table; Use browse mode to read cell by cell.",
|
|
25
|
+
sortByString: "Sort by",
|
|
26
|
+
resetColumns: "Reset columns",
|
|
27
|
+
headerOptions: "Header options",
|
|
28
|
+
refresh: "Refresh",
|
|
29
|
+
addNew: "Add new",
|
|
30
|
+
editS: "Edit \"{PH1}\"",
|
|
31
|
+
delete: "Delete",
|
|
32
|
+
levelS: "level {PH1}",
|
|
33
|
+
checked: "checked",
|
|
34
|
+
emptyRowCreated: "An empty table row has been created. You may double click or use context menu to edit.",
|
|
35
|
+
enterToSort: "Column sort state: {PH1}. Press enter to apply sorting filter",
|
|
36
|
+
sortableColumn: "Sortable column. Press enter to apply sorting filter"
|
|
37
|
+
}, O = u("ui/legacy/components/data_grid/DataGrid.ts", D), k = s.bind(void 0, O), A = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakMap(), M = /* @__PURE__ */ new WeakMap(), N = /* @__PURE__ */ new WeakMap(), P = /* @__PURE__ */ new WeakMap(), F = class e extends o {
|
|
38
|
+
element;
|
|
39
|
+
displayName;
|
|
40
|
+
editCallback;
|
|
41
|
+
deleteCallback;
|
|
42
|
+
refreshCallback;
|
|
43
|
+
dataTableHeaders;
|
|
44
|
+
scrollContainerInternal;
|
|
45
|
+
#e;
|
|
46
|
+
dataTable;
|
|
47
|
+
inline;
|
|
48
|
+
columnsArray;
|
|
49
|
+
columns;
|
|
50
|
+
visibleColumnsArray;
|
|
51
|
+
cellClass;
|
|
52
|
+
#t;
|
|
53
|
+
headerRow;
|
|
54
|
+
dataTableColumnGroup;
|
|
55
|
+
dataTableBody;
|
|
56
|
+
topFillerRow;
|
|
57
|
+
bottomFillerRow;
|
|
58
|
+
editing;
|
|
59
|
+
selectedNode;
|
|
60
|
+
expandNodesWhenArrowing;
|
|
61
|
+
indentWidth;
|
|
62
|
+
resizers;
|
|
63
|
+
columnWidthsInitialized;
|
|
64
|
+
cornerWidth;
|
|
65
|
+
resizeMethod;
|
|
66
|
+
headerContextMenuCallback;
|
|
67
|
+
rowContextMenuCallback;
|
|
68
|
+
elementToDataGridNode;
|
|
69
|
+
disclosureColumnId;
|
|
70
|
+
sortColumnCell;
|
|
71
|
+
#n;
|
|
72
|
+
editingNode;
|
|
73
|
+
columnWeightsSetting;
|
|
74
|
+
creationNode;
|
|
75
|
+
currentResizer;
|
|
76
|
+
dataGridWidget;
|
|
77
|
+
constructor(e) {
|
|
78
|
+
super();
|
|
79
|
+
let { displayName: t, columns: n, deleteCallback: r, refreshCallback: i } = e;
|
|
80
|
+
this.element = document.createElement("div"), this.element.classList.add("data-grid"), this.element.tabIndex = 0, this.element.addEventListener("keydown", this.keyDown.bind(this), !1), this.element.addEventListener("contextmenu", this.contextMenu.bind(this), !0), this.element.addEventListener("focusin", (e) => {
|
|
81
|
+
this.updateGridAccessibleNameOnFocus(), e.consume(!0);
|
|
82
|
+
}), this.element.addEventListener("focusout", (e) => {
|
|
83
|
+
e.consume(!0);
|
|
84
|
+
}), ee(this.element), this.displayName = t, this.deleteCallback = r, this.refreshCallback = i, this.dataTableHeaders = {}, this.#e = this.element.createChild("div", "data-container"), this.dataTable = this.#e.createChild("table", "data"), this.scrollContainerInternal = this.#e, this.dataTable.addEventListener("dblclick", this.ondblclick.bind(this), !1), this.dataTable.addEventListener("mousedown", this.mouseDownInDataTable.bind(this)), this.dataTable.addEventListener("click", this.clickInDataTable.bind(this), !0), this.inline = !1, this.columnsArray = [], this.columns = {}, this.visibleColumnsArray = n, n.forEach((e) => this.#r(e)), this.cellClass = null, this.dataTableColumnGroup = this.dataTable.createChild("colgroup"), this.#t = this.dataTable.createChild("thead"), this.headerRow = this.#t.createChild("tr"), this.dataTableBody = this.dataTable.createChild("tbody"), this.topFillerRow = this.dataTableBody.createChild("tr", "data-grid-filler-row revealed"), g(this.topFillerRow, !0), this.bottomFillerRow = this.dataTableBody.createChild("tr", "data-grid-filler-row revealed"), g(this.bottomFillerRow, !0), this.setVerticalPadding(0, 0, !0), this.refreshHeader(), this.editing = !1, this.selectedNode = null, this.expandNodesWhenArrowing = !0, this.setRootNode(new V()), this.setHasSelection(!1), this.indentWidth = 15, this.resizers = [], this.columnWidthsInitialized = !1, this.cornerWidth = 14, this.resizeMethod = "nearest", this.headerContextMenuCallback = null, this.rowContextMenuCallback = null, this.elementToDataGridNode = /* @__PURE__ */ new WeakMap();
|
|
85
|
+
}
|
|
86
|
+
setEditCallback(e, t) {
|
|
87
|
+
this.editCallback = e;
|
|
88
|
+
}
|
|
89
|
+
firstSelectableNode() {
|
|
90
|
+
let e = this.#n;
|
|
91
|
+
for (; e && !e.selectable;) e = e.traverseNextNode(!0) || void 0;
|
|
92
|
+
return e;
|
|
93
|
+
}
|
|
94
|
+
lastSelectableNode() {
|
|
95
|
+
let e = this.#n, t = this.#n;
|
|
96
|
+
for (; t;) t.selectable && (e = t), t = t.traverseNextNode(!0) || void 0;
|
|
97
|
+
return e;
|
|
98
|
+
}
|
|
99
|
+
setElementContent(t, n) {
|
|
100
|
+
let r = this.columnIdFromNode(t);
|
|
101
|
+
if (!r) return;
|
|
102
|
+
let i = this.columns[r], a = t.parentElement, o;
|
|
103
|
+
a && (o = this.elementToDataGridNode.get(a)), i.dataType === "Boolean" ? e.setElementBoolean(t, !!n, o) : n !== null && e.setElementText(t, n, !!i.longText, o);
|
|
104
|
+
}
|
|
105
|
+
static setElementText(t, n, i, a) {
|
|
106
|
+
i && n.length > 1e3 ? (t.textContent = r(n, 1e3), v.install(t, n), A.set(t, n)) : (t.textContent = n, v.install(t, ""), A.delete(t)), a && e.updateNodeAccessibleText(a);
|
|
107
|
+
}
|
|
108
|
+
static setElementBoolean(t, n, r) {
|
|
109
|
+
t.textContent = n ? "✓" : "", v.install(t, ""), r && e.updateNodeAccessibleText(r);
|
|
110
|
+
}
|
|
111
|
+
static updateNodeAccessibleText(e) {
|
|
112
|
+
let t = "", n = e.elementInternal?.children[0] || null;
|
|
113
|
+
if (n) {
|
|
114
|
+
for (; n && !n.classList.contains("corner");) {
|
|
115
|
+
let r = null;
|
|
116
|
+
for (let e of n.classList) if (e.includes("-column")) {
|
|
117
|
+
r = e.substring(0, e.indexOf("-column"));
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
if (r && e.dataGrid) {
|
|
121
|
+
let i = e.dataGrid.columns[r];
|
|
122
|
+
i && (t += `${i.title}: ${n.textContent}, `);
|
|
123
|
+
}
|
|
124
|
+
n = n.nextElementSibling;
|
|
125
|
+
}
|
|
126
|
+
t.length > 0 && (t = t.substring(0, t.length - 2)), e.nodeAccessibleText = t;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
setStriped(e) {
|
|
130
|
+
this.element.classList.toggle("striped-data-grid", e);
|
|
131
|
+
}
|
|
132
|
+
setFocusable(e) {
|
|
133
|
+
this.element.tabIndex = e ? 0 : -1, e === !1 && le(this.element);
|
|
134
|
+
}
|
|
135
|
+
setHasSelection(e) {
|
|
136
|
+
this.element.classList.toggle("no-selection", !e);
|
|
137
|
+
}
|
|
138
|
+
announceSelectedGridNode() {
|
|
139
|
+
if (this.element === w(this.element.ownerDocument) && this.selectedNode?.existingElement()) {
|
|
140
|
+
let e;
|
|
141
|
+
this.selectedNode.hasChildren() && (e = this.selectedNode.expanded ? k(D.expanded) : k(D.collapsed));
|
|
142
|
+
let t = e ? `${this.selectedNode.nodeAccessibleText}, ${e}` : this.selectedNode.nodeAccessibleText;
|
|
143
|
+
_.alert(t);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
getNumberOfRows() {
|
|
147
|
+
return this.#n ? this.enumerateChildren(this.#n, [], 1).length : 0;
|
|
148
|
+
}
|
|
149
|
+
updateGridAccessibleNameOnFocus() {
|
|
150
|
+
let e;
|
|
151
|
+
if (this.selectedNode?.existingElement()) {
|
|
152
|
+
let t = "";
|
|
153
|
+
this.selectedNode.hasChildren() && (t = this.selectedNode.expanded ? k(D.expanded) : k(D.collapsed)), e = `${k(D.sRowS, {
|
|
154
|
+
PH1: this.displayName,
|
|
155
|
+
PH2: t
|
|
156
|
+
})} ${this.selectedNode.nodeAccessibleText}`;
|
|
157
|
+
} else {
|
|
158
|
+
if (!this.#n) return;
|
|
159
|
+
let t = this.getNumberOfRows(), n = k(D.rowsS, { PH1: t });
|
|
160
|
+
e = k(D.sSUseTheUpAndDownArrowKeysTo, {
|
|
161
|
+
PH1: this.displayName,
|
|
162
|
+
PH2: n
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
_.alert(e);
|
|
166
|
+
}
|
|
167
|
+
#r(e, t) {
|
|
168
|
+
e.defaultWeight = e.weight;
|
|
169
|
+
let n = e.id;
|
|
170
|
+
n in this.columns && this.#i(n), t === void 0 && (t = this.columnsArray.length), this.columnsArray.splice(t, 0, e), this.columns[n] = e, e.disclosure && (this.disclosureColumnId = n);
|
|
171
|
+
let r = document.createElement("th");
|
|
172
|
+
r.setAttribute("jslog", `${oe().track({
|
|
173
|
+
click: e.sortable,
|
|
174
|
+
resize: !0
|
|
175
|
+
}).context(a(n))}`), r.className = n + "-column", r.setAttribute("tabindex", "0"), r.setAttribute("role", "columnheader"), j.set(r, n), this.dataTableHeaders[n] = r;
|
|
176
|
+
let i = document.createElement("div");
|
|
177
|
+
if (e.titleDOMFragment ? i.appendChild(e.titleDOMFragment) : i.textContent = e.title || null, r.appendChild(i), e.sort && (r.classList.add(e.sort), this.sortColumnCell = r), e.sortable) {
|
|
178
|
+
r.addEventListener("click", this.clickInHeaderCell.bind(this), !1), r.addEventListener("keydown", this.keydownHeaderCell.bind(this), !1), r.classList.add("sortable");
|
|
179
|
+
let t = document.createElement("span");
|
|
180
|
+
t.className = "sort-order-icon", r.createChild("div", "sort-order-icon-container").appendChild(t), e.title && p(r, `${e.title} - ${k(D.sortableColumn)}`);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
addColumn(e, t) {
|
|
184
|
+
this.#r(e, t);
|
|
185
|
+
}
|
|
186
|
+
#i(e) {
|
|
187
|
+
if (!this.columns[e]) return;
|
|
188
|
+
delete this.columns[e];
|
|
189
|
+
let t = this.columnsArray.findIndex((t) => t.id === e);
|
|
190
|
+
this.columnsArray.splice(t, 1);
|
|
191
|
+
let n = this.dataTableHeaders[e];
|
|
192
|
+
n.parentElement && n.parentElement.removeChild(n), delete this.dataTableHeaders[e];
|
|
193
|
+
}
|
|
194
|
+
removeColumn(e) {
|
|
195
|
+
this.#i(e);
|
|
196
|
+
}
|
|
197
|
+
setCellClass(e) {
|
|
198
|
+
this.cellClass = e;
|
|
199
|
+
}
|
|
200
|
+
refreshHeader() {
|
|
201
|
+
this.dataTableColumnGroup.removeChildren(), this.headerRow.removeChildren(), this.topFillerRow.removeChildren(), this.bottomFillerRow.removeChildren();
|
|
202
|
+
for (let e = 0; e < this.visibleColumnsArray.length; ++e) {
|
|
203
|
+
let t = this.visibleColumnsArray[e], n = t.id, r = this.dataTableColumnGroup.createChild("col");
|
|
204
|
+
t.width && (r.style.width = t.width), this.headerRow.appendChild(this.dataTableHeaders[n]);
|
|
205
|
+
let i = this.topFillerRow.createChild("th", "top-filler-td");
|
|
206
|
+
i.textContent = t.title || null, i.scope = "col";
|
|
207
|
+
let a = this.bottomFillerRow.createChild("td", "bottom-filler-td");
|
|
208
|
+
j.set(a, n);
|
|
209
|
+
}
|
|
210
|
+
g(this.headerRow.createChild("th", "corner"), !0);
|
|
211
|
+
let e = this.topFillerRow.createChild("th", "corner");
|
|
212
|
+
e.classList.add("top-filler-td"), e.scope = "col", this.bottomFillerRow.createChild("td", "corner").classList.add("bottom-filler-td"), this.dataTableColumnGroup.createChild("col", "corner");
|
|
213
|
+
}
|
|
214
|
+
setVerticalPadding(e, t, n = !1) {
|
|
215
|
+
let r = e + "px", i = e || t ? t + "px" : "auto";
|
|
216
|
+
this.topFillerRow.style.height === r && this.bottomFillerRow.style.height === i || (this.topFillerRow.style.height = r, this.bottomFillerRow.style.height = i, n || this.dispatchEventToListeners("PaddingChanged"));
|
|
217
|
+
}
|
|
218
|
+
setRootNode(e) {
|
|
219
|
+
this.#n && (this.#n.removeChildren(), this.#n.dataGrid = null, this.#n.isRoot = !1), this.#n = e, e.isRoot = !0, e.setHasChildren(!1), e.expandedInternal = !0, e.revealedInternal = !0, e.selectable = !1, e.dataGrid = this;
|
|
220
|
+
}
|
|
221
|
+
rootNode() {
|
|
222
|
+
let e = this.#n;
|
|
223
|
+
return e || (e = new V(), this.setRootNode(e)), e;
|
|
224
|
+
}
|
|
225
|
+
isColumnEditable(e) {
|
|
226
|
+
let t = this.columns[e];
|
|
227
|
+
return !!(t && t.editable && this.editCallback);
|
|
228
|
+
}
|
|
229
|
+
ondblclick(e) {
|
|
230
|
+
if (!this.editCallback || this.editing || this.editingNode) return;
|
|
231
|
+
let t = this.columnIdFromNode(e.target);
|
|
232
|
+
!t || !this.isColumnEditable(t) || this.startEditing(e.target);
|
|
233
|
+
}
|
|
234
|
+
startEditingColumnOfDataGridNode(e, t) {
|
|
235
|
+
this.editing = !0, this.editingNode = e, this.editingNode.select();
|
|
236
|
+
let n = this.editingNode.element();
|
|
237
|
+
if (!n) return;
|
|
238
|
+
let r = n.children[t], i = A.get(r);
|
|
239
|
+
i && (r.textContent = i);
|
|
240
|
+
let a = this.visibleColumnsArray[t];
|
|
241
|
+
if (a.dataType === "Boolean") {
|
|
242
|
+
let t = ie.create(void 0, e.data[a.id]);
|
|
243
|
+
p(t, a.title || "");
|
|
244
|
+
let n = !1;
|
|
245
|
+
t.style.height = "100%", t.classList.add("inside-datagrid");
|
|
246
|
+
let i = t.checked;
|
|
247
|
+
t.addEventListener("change", () => {
|
|
248
|
+
n = !0, this.editingCommitted(r, t.checked, i, void 0, "forward");
|
|
249
|
+
}, !1), t.addEventListener("keydown", (e) => {
|
|
250
|
+
if (e.key === "Tab") return e.consume(!0), n = !0, this.editingCommitted(r, t.checked, i, void 0, e.shiftKey ? "backward" : "forward");
|
|
251
|
+
e.key === " " ? (e.consume(!0), t.checked = !t.checked) : e.key === "Enter" && (e.consume(!0), n = !0, this.editingCommitted(r, t.checked, i, void 0, "forward"));
|
|
252
|
+
}, !1), t.addEventListener("blur", () => {
|
|
253
|
+
n || this.editingCommitted(r, t.checked, t.checked, void 0, "next");
|
|
254
|
+
}, !1), r.innerHTML = "", r.appendChild(t), t.focus();
|
|
255
|
+
} else {
|
|
256
|
+
te.startEditing(r, this.startEditingConfig(r));
|
|
257
|
+
let e = r.getComponentSelection();
|
|
258
|
+
e && e.selectAllChildren(r);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
startEditingNextEditableColumnOfDataGridNode(e, t, n) {
|
|
262
|
+
let r = this.columns[t], i = this.visibleColumnsArray.indexOf(r), a = this.nextEditableColumn(i, !1, n);
|
|
263
|
+
a !== -1 && this.startEditingColumnOfDataGridNode(e, a);
|
|
264
|
+
}
|
|
265
|
+
startEditing(e) {
|
|
266
|
+
if (!T(e, "td")) return;
|
|
267
|
+
if (this.editingNode = this.dataGridNodeFromNode(e), !this.editingNode) {
|
|
268
|
+
if (!this.creationNode) return;
|
|
269
|
+
this.editingNode = this.creationNode;
|
|
270
|
+
}
|
|
271
|
+
if (this.editingNode instanceof H && this.editingNode.isCreationNode) {
|
|
272
|
+
this.startEditingColumnOfDataGridNode(this.editingNode, this.nextEditableColumn(-1));
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
let t = this.columnIdFromNode(e);
|
|
276
|
+
if (!t) return;
|
|
277
|
+
let n = this.columns[t], r = this.visibleColumnsArray.indexOf(n);
|
|
278
|
+
this.editingNode && this.startEditingColumnOfDataGridNode(this.editingNode, r);
|
|
279
|
+
}
|
|
280
|
+
renderInline() {
|
|
281
|
+
this.element.classList.add("inline"), this.cornerWidth = 0, this.inline = !0, this.updateWidths();
|
|
282
|
+
}
|
|
283
|
+
startEditingConfig(e) {
|
|
284
|
+
return new f(this.editingCommitted.bind(this), this.editingCancelled.bind(this), void 0);
|
|
285
|
+
}
|
|
286
|
+
editingCommitted(e, t, n, r, i) {
|
|
287
|
+
let a = this.columnIdFromNode(e);
|
|
288
|
+
if (!a) {
|
|
289
|
+
this.editingCancelled(e);
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
let o = this.columns[a], s = this.visibleColumnsArray.indexOf(o);
|
|
293
|
+
if (!this.editingNode) return;
|
|
294
|
+
let c = this.editingNode.data[a], l = this.editingNode;
|
|
295
|
+
function u(e) {
|
|
296
|
+
if (i) {
|
|
297
|
+
if (i === "forward") {
|
|
298
|
+
let t = this.nextEditableColumn(-1), n = l instanceof H && l.isCreationNode;
|
|
299
|
+
if (n && s === t && !e) return;
|
|
300
|
+
let r = this.nextEditableColumn(s);
|
|
301
|
+
if (r !== -1) {
|
|
302
|
+
this.startEditingColumnOfDataGridNode(l, r);
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
let i = l.traverseNextNode(!0, null, !0);
|
|
306
|
+
if (i) {
|
|
307
|
+
this.startEditingColumnOfDataGridNode(i, t);
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
if (n && e && this.creationNode) {
|
|
311
|
+
this.addCreationNode(!1), this.startEditingColumnOfDataGridNode(this.creationNode, t);
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
return;
|
|
315
|
+
}
|
|
316
|
+
if (i === "backward") {
|
|
317
|
+
let e = this.nextEditableColumn(s, !0);
|
|
318
|
+
if (e !== -1) {
|
|
319
|
+
this.startEditingColumnOfDataGridNode(l, e);
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
let t = this.nextEditableColumn(this.visibleColumnsArray.length, !0), n = l.traversePreviousNode(!0, !0);
|
|
323
|
+
n && this.startEditingColumnOfDataGridNode(n, t);
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
if (this.setElementContent(e, t), c === t) {
|
|
329
|
+
this.editingCancelled(e), u.call(this, !1);
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
this.editingNode.data[a] = t, this.editCallback && (this.editCallback(this.editingNode, a, c, t, i), this.editingNode instanceof H && this.editingNode.isCreationNode && this.addCreationNode(!1), this.editingCancelled(e), u.call(this, !0));
|
|
333
|
+
}
|
|
334
|
+
editingCancelled(e) {
|
|
335
|
+
this.editing = !1, this.editingNode = null;
|
|
336
|
+
}
|
|
337
|
+
nextEditableColumn(e, t, n) {
|
|
338
|
+
let r = t ? -1 : 1, i = n ? e : e + r, a = this.visibleColumnsArray;
|
|
339
|
+
for (let e = i; e >= 0 && e < a.length; e += r) if (this.isColumnEditable(a[e].id)) return e;
|
|
340
|
+
return -1;
|
|
341
|
+
}
|
|
342
|
+
sortColumnId() {
|
|
343
|
+
return this.sortColumnCell && j.get(this.sortColumnCell) || null;
|
|
344
|
+
}
|
|
345
|
+
sortOrder() {
|
|
346
|
+
return !this.sortColumnCell || this.sortColumnCell.classList.contains("sort-ascending") ? "sort-ascending" : this.sortColumnCell.classList.contains("sort-descending") ? "sort-descending" : null;
|
|
347
|
+
}
|
|
348
|
+
isSortOrderAscending() {
|
|
349
|
+
return !this.sortColumnCell || this.sortColumnCell.classList.contains("sort-ascending");
|
|
350
|
+
}
|
|
351
|
+
autoSizeWidths(e, t, n) {
|
|
352
|
+
t &&= Math.min(t, Math.floor(100 / e.length));
|
|
353
|
+
let r = 0;
|
|
354
|
+
for (let t = 0; t < e.length; ++t) r += e[t];
|
|
355
|
+
let i = 0;
|
|
356
|
+
for (let a = 0; a < e.length; ++a) {
|
|
357
|
+
let o = Math.round(100 * e[a] / r);
|
|
358
|
+
t && o < t ? o = t : n && o > n && (o = n), i += o, e[a] = o;
|
|
359
|
+
}
|
|
360
|
+
let a = i - 100;
|
|
361
|
+
for (; t && a > 0;) for (let n = 0; n < e.length && !(e[n] > t && (--e[n], --a, !a)); ++n);
|
|
362
|
+
for (; n && a < 0;) for (let t = 0; t < e.length && !(e[t] < n && (++e[t], ++a, !a)); ++t);
|
|
363
|
+
return e;
|
|
364
|
+
}
|
|
365
|
+
autoSizeColumns(e, t, n) {
|
|
366
|
+
let r = [];
|
|
367
|
+
for (let e = 0; e < this.columnsArray.length; ++e) r.push((this.columnsArray[e].title || "").length);
|
|
368
|
+
if (n ||= 0, !this.#n) return;
|
|
369
|
+
let i = this.enumerateChildren(this.#n, [], n + 1);
|
|
370
|
+
for (let e = 0; e < i.length; ++e) {
|
|
371
|
+
let t = i[e];
|
|
372
|
+
for (let e = 0; e < this.columnsArray.length; ++e) {
|
|
373
|
+
let n = String(t.data[this.columnsArray[e].id]);
|
|
374
|
+
n.length > r[e] && (r[e] = n.length);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
r = this.autoSizeWidths(r, e, t);
|
|
378
|
+
for (let e = 0; e < this.columnsArray.length; ++e) this.columnsArray[e].weight = r[e];
|
|
379
|
+
this.columnWidthsInitialized = !1, this.updateWidths();
|
|
380
|
+
}
|
|
381
|
+
enumerateChildren(e, t, n) {
|
|
382
|
+
if (e.isRoot || t.push(e), !n) return [];
|
|
383
|
+
for (let r = 0; r < e.children.length; ++r) this.enumerateChildren(e.children[r], t, n - 1);
|
|
384
|
+
return t;
|
|
385
|
+
}
|
|
386
|
+
onResize() {
|
|
387
|
+
this.updateWidths();
|
|
388
|
+
}
|
|
389
|
+
updateWidths() {
|
|
390
|
+
if (!this.columnWidthsInitialized && this.element.offsetWidth) {
|
|
391
|
+
let e = this.element.offsetWidth - this.cornerWidth, t = this.#t.rows[0].cells.length - 1;
|
|
392
|
+
for (let n = 0; n < t; n++) {
|
|
393
|
+
let t = this.visibleColumnsArray[n];
|
|
394
|
+
t.weight ||= 100 * this.getPreferredWidth(n) / e || 10;
|
|
395
|
+
}
|
|
396
|
+
this.columnWidthsInitialized = !0;
|
|
397
|
+
}
|
|
398
|
+
this.applyColumnWeights();
|
|
399
|
+
}
|
|
400
|
+
indexOfVisibleColumn(e) {
|
|
401
|
+
return this.visibleColumnsArray.findIndex((t) => t.id === e);
|
|
402
|
+
}
|
|
403
|
+
setName(e) {
|
|
404
|
+
this.columnWeightsSetting = c.instance().createSetting("data-grid-" + e + "-column-weights", {}), this.loadColumnWeights();
|
|
405
|
+
}
|
|
406
|
+
resetColumnWeights() {
|
|
407
|
+
for (let e of this.columnsArray) e.defaultWeight && (e.weight = e.defaultWeight);
|
|
408
|
+
this.applyColumnWeights(), this.saveColumnWeights();
|
|
409
|
+
}
|
|
410
|
+
loadColumnWeights() {
|
|
411
|
+
if (!this.columnWeightsSetting) return;
|
|
412
|
+
let e = this.columnWeightsSetting.get();
|
|
413
|
+
for (let t = 0; t < this.columnsArray.length; ++t) {
|
|
414
|
+
let n = this.columnsArray[t], r = e[n.id];
|
|
415
|
+
r && (n.weight = r);
|
|
416
|
+
}
|
|
417
|
+
this.applyColumnWeights();
|
|
418
|
+
}
|
|
419
|
+
saveColumnWeights() {
|
|
420
|
+
if (!this.columnWeightsSetting) return;
|
|
421
|
+
let e = {};
|
|
422
|
+
for (let t = 0; t < this.columnsArray.length; ++t) {
|
|
423
|
+
let n = this.columnsArray[t];
|
|
424
|
+
e[n.id] = n.weight;
|
|
425
|
+
}
|
|
426
|
+
this.columnWeightsSetting.set(e);
|
|
427
|
+
}
|
|
428
|
+
wasShown() {
|
|
429
|
+
this.loadColumnWeights();
|
|
430
|
+
}
|
|
431
|
+
willHide() {}
|
|
432
|
+
getPreferredWidth(e) {
|
|
433
|
+
return M.get(this.dataTableColumnGroup.children[e]) || this.#t.rows[0].cells[e].offsetWidth;
|
|
434
|
+
}
|
|
435
|
+
applyColumnWeights() {
|
|
436
|
+
let e = this.element.offsetWidth - this.cornerWidth - 1;
|
|
437
|
+
if (e <= 0) return;
|
|
438
|
+
let t = 0, n = [];
|
|
439
|
+
for (let r = 0; r < this.visibleColumnsArray.length; ++r) if (this.visibleColumnsArray[r].fixedWidth) {
|
|
440
|
+
let t = this.getPreferredWidth(r);
|
|
441
|
+
n[r] = t, e -= t;
|
|
442
|
+
} else t += this.visibleColumnsArray[r].weight || 0;
|
|
443
|
+
let r = 0, i = 0;
|
|
444
|
+
for (let a = 0; a < this.visibleColumnsArray.length; ++a) {
|
|
445
|
+
let o = this.visibleColumnsArray[a], s;
|
|
446
|
+
if (o.fixedWidth) s = n[a];
|
|
447
|
+
else {
|
|
448
|
+
r += o.weight || 0;
|
|
449
|
+
let n = r * e / t | 0;
|
|
450
|
+
s = Math.max(n - i, 30), i = n;
|
|
451
|
+
}
|
|
452
|
+
this.setPreferredWidth(a, s);
|
|
453
|
+
}
|
|
454
|
+
this.positionResizers();
|
|
455
|
+
}
|
|
456
|
+
setColumnsVisibility(e) {
|
|
457
|
+
this.visibleColumnsArray = [];
|
|
458
|
+
for (let t of this.columnsArray) e.has(t.id) && this.visibleColumnsArray.push(t);
|
|
459
|
+
this.refreshHeader(), this.applyColumnWeights();
|
|
460
|
+
let t = this.enumerateChildren(this.rootNode(), [], -1);
|
|
461
|
+
for (let e of t) e.refresh();
|
|
462
|
+
}
|
|
463
|
+
get scrollContainer() {
|
|
464
|
+
return this.scrollContainerInternal;
|
|
465
|
+
}
|
|
466
|
+
positionResizers() {
|
|
467
|
+
let e = this.dataTableColumnGroup.children.length - 1, t = [], n = this.resizers;
|
|
468
|
+
for (; n.length > e - 1;) {
|
|
469
|
+
let e = n.pop();
|
|
470
|
+
e && e.remove();
|
|
471
|
+
}
|
|
472
|
+
for (let n = 0; n < e - 1; n++) t[n] = (t[n - 1] || 0) + this.#t.rows[0].cells[n].offsetWidth;
|
|
473
|
+
for (let r = 0; r < e - 1; r++) {
|
|
474
|
+
let e = n[r];
|
|
475
|
+
e || (e = document.createElement("div"), P.set(e, r), e.classList.add("data-grid-resizer"), h(e, this.startResizerDragging.bind(this), this.resizerDragging.bind(this), this.endResizerDragging.bind(this), "col-resize"), this.element.appendChild(e), n.push(e)), N.get(e) !== t[r] && (N.set(e, t[r]), e.style.left = t[r] + "px");
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
addCreationNode(e) {
|
|
479
|
+
this.creationNode && (this.creationNode.isCreationNode = !1);
|
|
480
|
+
let t = {};
|
|
481
|
+
for (let e in this.columns) t[e] = null;
|
|
482
|
+
this.creationNode = new H(t, e), _.alert(k(D.emptyRowCreated)), this.rootNode().appendChild(this.creationNode);
|
|
483
|
+
}
|
|
484
|
+
keyDown(e) {
|
|
485
|
+
if (!(e instanceof KeyboardEvent) || (this.selectedNode && this.selectedNode.element().tabIndex < 0 && ae(this.selectedNode.element(), e), e.shiftKey || e.metaKey || e.ctrlKey || this.editing || ne())) return;
|
|
486
|
+
let t = !1, n;
|
|
487
|
+
if (!this.selectedNode) e.key === "ArrowUp" && !e.altKey ? n = this.lastSelectableNode() : e.key === "ArrowDown" && !e.altKey && (n = this.firstSelectableNode()), t = !!n;
|
|
488
|
+
else if (e.key === "ArrowUp" && !e.altKey) {
|
|
489
|
+
for (n = this.selectedNode.traversePreviousNode(!0); n && !n.selectable;) n = n.traversePreviousNode(!0);
|
|
490
|
+
t = !!n;
|
|
491
|
+
} else if (e.key === "ArrowDown" && !e.altKey) {
|
|
492
|
+
for (n = this.selectedNode.traverseNextNode(!0); n && !n.selectable;) n = n.traverseNextNode(!0);
|
|
493
|
+
t = !!n;
|
|
494
|
+
} else if (e.key === "ArrowLeft") this.selectedNode.expanded ? (e.altKey ? this.selectedNode.collapseRecursively() : this.selectedNode.collapse(), t = !0) : this.selectedNode.parent && !this.selectedNode.parent.isRoot && (t = !0, this.selectedNode.parent.selectable ? (n = this.selectedNode.parent, t = !!n) : this.selectedNode.parent && this.selectedNode.parent.collapse());
|
|
495
|
+
else if (e.key === "ArrowRight") {
|
|
496
|
+
if (!this.expandNodesWhenArrowing) return;
|
|
497
|
+
this.selectedNode.revealed ? this.selectedNode.hasChildren() && (t = !0, this.selectedNode.expanded ? (n = this.selectedNode.children[0], t = !!n) : e.altKey ? this.selectedNode.expandRecursively() : this.selectedNode.expand()) : (this.selectedNode.reveal(), t = !0);
|
|
498
|
+
} else if (e.keyCode === 8 || e.keyCode === 46) this.deleteCallback && (t = !0, this.deleteCallback(this.selectedNode));
|
|
499
|
+
else if (e.key === "Enter") if (this.editCallback) {
|
|
500
|
+
t = !0;
|
|
501
|
+
let e = this.selectedNode.element();
|
|
502
|
+
if (!e) return;
|
|
503
|
+
this.startEditing(e.children[this.nextEditableColumn(-1)]);
|
|
504
|
+
} else this.dispatchEventToListeners("OpenedNode", this.selectedNode);
|
|
505
|
+
n && (n.reveal(), n.select());
|
|
506
|
+
let r = w(this.element.ownerDocument);
|
|
507
|
+
t && this.element !== r && !this.element.contains(r) && this.element.focus(), t && e.consume(!0);
|
|
508
|
+
}
|
|
509
|
+
updateSelectionBeforeRemoval(e, t) {
|
|
510
|
+
let n = this.selectedNode;
|
|
511
|
+
for (; n && n !== e;) n = n.parent;
|
|
512
|
+
if (!n) return;
|
|
513
|
+
let r;
|
|
514
|
+
for (n = e; n && !n.nextSibling;) n = n.parent;
|
|
515
|
+
for (n && (r = n.nextSibling); r && !r.selectable;) r = r.traverseNextNode(!0);
|
|
516
|
+
if (!r || r.isCreationNode) {
|
|
517
|
+
if (!e) return;
|
|
518
|
+
for (r = e.traversePreviousNode(!0); r && !r.selectable;) r = r.traversePreviousNode(!0);
|
|
519
|
+
}
|
|
520
|
+
r ? (r.reveal(), r.select()) : this.selectedNode && this.selectedNode.deselect();
|
|
521
|
+
}
|
|
522
|
+
dataGridNodeFromNode(e) {
|
|
523
|
+
let t = T(e, "tr");
|
|
524
|
+
return t && this.elementToDataGridNode.get(t) || null;
|
|
525
|
+
}
|
|
526
|
+
columnIdFromNode(e) {
|
|
527
|
+
let t = T(e, "td");
|
|
528
|
+
return t && j.get(t) || null;
|
|
529
|
+
}
|
|
530
|
+
setInert(e) {
|
|
531
|
+
e ? this.element.setAttribute("inert", "inert") : this.element.removeAttribute("inert");
|
|
532
|
+
}
|
|
533
|
+
clickInHeaderCell(e) {
|
|
534
|
+
let t = T(e.target, "th");
|
|
535
|
+
t && this.sortByColumnHeaderCell(t);
|
|
536
|
+
}
|
|
537
|
+
keydownHeaderCell(e) {
|
|
538
|
+
(e.key === "Enter" || e.key === " ") && this.clickInHeaderCell(e);
|
|
539
|
+
}
|
|
540
|
+
sortByColumnHeaderCell(e) {
|
|
541
|
+
if (!j.has(e) || !e.classList.contains("sortable")) return;
|
|
542
|
+
let t = "sort-ascending";
|
|
543
|
+
e === this.sortColumnCell && this.isSortOrderAscending() && (t = "sort-descending"), this.sortColumnCell && (this.sortColumnCell.classList.remove("sort-ascending", "sort-descending"), this.sortColumnCell.removeAttribute("aria-sort")), this.sortColumnCell = e, e.classList.add(t);
|
|
544
|
+
let n = this.isSortOrderAscending() ? "ascending" : "descending";
|
|
545
|
+
e.setAttribute("aria-sort", n), _.alert(k(D.enterToSort, { PH1: n || "" })), this.dispatchEventToListeners("SortingChanged");
|
|
546
|
+
}
|
|
547
|
+
markColumnAsSortedBy(e, t) {
|
|
548
|
+
this.sortColumnCell && this.sortColumnCell.classList.remove("sort-ascending", "sort-descending"), this.sortColumnCell = this.dataTableHeaders[e], this.sortColumnCell.classList.add(t);
|
|
549
|
+
}
|
|
550
|
+
headerTableHeader(e) {
|
|
551
|
+
return this.dataTableHeaders[e];
|
|
552
|
+
}
|
|
553
|
+
mouseDownInDataTable(e) {
|
|
554
|
+
let t = e.target, n = this.dataGridNodeFromNode(t);
|
|
555
|
+
if (!n || !n.selectable || n.isEventWithinDisclosureTriangle(e)) return;
|
|
556
|
+
let r = this.columnIdFromNode(t);
|
|
557
|
+
if (r && this.columns[r].nonSelectable) return;
|
|
558
|
+
let i = e;
|
|
559
|
+
(S() === "mac" ? i.metaKey : i.ctrlKey) ? n.selected ? n.deselect() : n.select() : (n.select(), this.dispatchEventToListeners("OpenedNode", n));
|
|
560
|
+
}
|
|
561
|
+
setHeaderContextMenuCallback(e) {
|
|
562
|
+
this.headerContextMenuCallback = e;
|
|
563
|
+
}
|
|
564
|
+
setRowContextMenuCallback(e) {
|
|
565
|
+
this.rowContextMenuCallback = e;
|
|
566
|
+
}
|
|
567
|
+
contextMenu(e) {
|
|
568
|
+
if (!(e instanceof MouseEvent)) return;
|
|
569
|
+
let t = new x(e), n = e.target, r = this.visibleColumnsArray.filter((e) => e.sortable && e.title), i = this.columnsArray.filter((e) => r.indexOf(e) === -1 && e.allowInSortByEvenWhenHidden), o = [...r, ...i];
|
|
570
|
+
if (o.length > 0) {
|
|
571
|
+
let e = t.defaultSection().appendSubMenuItem(k(D.sortByString), !1, "sort-by");
|
|
572
|
+
for (let t of o) {
|
|
573
|
+
let n = this.dataTableHeaders[t.id];
|
|
574
|
+
e.defaultSection().appendItem(t.title, this.sortByColumnHeaderCell.bind(this, n), { jslogContext: a(t.id) });
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if (n.isSelfOrDescendant(this.#t)) {
|
|
578
|
+
this.headerContextMenuCallback && this.headerContextMenuCallback(t), t.defaultSection().appendItem(k(D.resetColumns), this.resetColumnWeights.bind(this), { jslogContext: "reset-columns" }), t.show();
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
let s = t.defaultSection().appendSubMenuItem(k(D.headerOptions), !1, "header-options");
|
|
582
|
+
this.headerContextMenuCallback && this.headerContextMenuCallback(s), s.defaultSection().appendItem(k(D.resetColumns), this.resetColumnWeights.bind(this), { jslogContext: "reset-columns" });
|
|
583
|
+
let c = e.button === 0, l = c ? this.selectedNode : this.dataGridNodeFromNode(n), u = this.selectedNode?.existingElement();
|
|
584
|
+
if (c && u) {
|
|
585
|
+
let e = u.getBoundingClientRect();
|
|
586
|
+
if (e) {
|
|
587
|
+
let n = (e.right + e.left) / 2, r = (e.bottom + e.top) / 2;
|
|
588
|
+
t.setX(n), t.setY(r);
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
if (this.refreshCallback && (!l || l !== this.creationNode) && t.defaultSection().appendItem(k(D.refresh), this.refreshCallback.bind(this), { jslogContext: "refresh" }), l && l.selectable && !l.isEventWithinDisclosureTriangle(e)) {
|
|
592
|
+
if (this.editCallback) if (l === this.creationNode) {
|
|
593
|
+
let e = this.nextEditableColumn(-1), n = l.element().children[e];
|
|
594
|
+
t.defaultSection().appendItem(k(D.addNew), this.startEditing.bind(this, n), { jslogContext: "add-new" });
|
|
595
|
+
} else if (c) {
|
|
596
|
+
let e = this.nextEditableColumn(-1);
|
|
597
|
+
if (e > -1) {
|
|
598
|
+
let n = this.visibleColumnsArray[e];
|
|
599
|
+
n && this.isColumnEditable(n.id) && t.defaultSection().appendItem(k(D.editS, { PH1: String(n.title) }), this.startEditingColumnOfDataGridNode.bind(this, l, e), { jslogContext: "edit" });
|
|
600
|
+
}
|
|
601
|
+
} else {
|
|
602
|
+
let e = this.columnIdFromNode(n);
|
|
603
|
+
e && this.isColumnEditable(e) && t.defaultSection().appendItem(k(D.editS, { PH1: String(this.columns[e].title) }), this.startEditing.bind(this, n), { jslogContext: "edit" });
|
|
604
|
+
}
|
|
605
|
+
this.deleteCallback && l !== this.creationNode && t.defaultSection().appendItem(k(D.delete), this.deleteCallback.bind(this, l), { jslogContext: "delete" }), this.rowContextMenuCallback && this.rowContextMenuCallback(t, l);
|
|
606
|
+
}
|
|
607
|
+
t.show();
|
|
608
|
+
}
|
|
609
|
+
clickInDataTable(e) {
|
|
610
|
+
let t = this.dataGridNodeFromNode(e.target);
|
|
611
|
+
!t || !t.hasChildren() || !t.isEventWithinDisclosureTriangle(e) || (t.expanded ? e.altKey ? t.collapseRecursively() : t.collapse() : e.altKey ? t.expandRecursively() : t.expand());
|
|
612
|
+
}
|
|
613
|
+
setResizeMethod(e) {
|
|
614
|
+
this.resizeMethod = e;
|
|
615
|
+
}
|
|
616
|
+
startResizerDragging(e) {
|
|
617
|
+
return this.currentResizer = e.target, !0;
|
|
618
|
+
}
|
|
619
|
+
endResizerDragging() {
|
|
620
|
+
this.currentResizer = null, this.saveColumnWeights();
|
|
621
|
+
}
|
|
622
|
+
resizerDragging(e) {
|
|
623
|
+
let t = this.currentResizer;
|
|
624
|
+
if (!t) return;
|
|
625
|
+
let n = e.clientX - this.element.getBoundingClientRect().left, r = 0, a = P.get(t);
|
|
626
|
+
if (a === void 0) return;
|
|
627
|
+
let o = a + 1;
|
|
628
|
+
for (let e = 0; e < a; e++) r += this.getPreferredWidth(e);
|
|
629
|
+
this.resizeMethod === "last" ? o = this.resizers.length : this.resizeMethod === "first" && (r += this.getPreferredWidth(a) - this.getPreferredWidth(0), a = 0);
|
|
630
|
+
let s = r + this.getPreferredWidth(a) + this.getPreferredWidth(o), c = r + 30, l = s - 30;
|
|
631
|
+
if (c > l) return;
|
|
632
|
+
n = i(n, c, l);
|
|
633
|
+
let u = n - 3;
|
|
634
|
+
N.set(t, u), t.style.left = u + "px", this.setPreferredWidth(a, n - r), this.setPreferredWidth(o, s - n);
|
|
635
|
+
let d = this.visibleColumnsArray[a], f = this.visibleColumnsArray[o];
|
|
636
|
+
if (d.weight && f.weight) {
|
|
637
|
+
let e = d.weight + f.weight, t = s - r;
|
|
638
|
+
d.weight = (n - r) * e / t, f.weight = (s - n) * e / t;
|
|
639
|
+
}
|
|
640
|
+
this.positionResizers(), this.updateWidths(), e.preventDefault();
|
|
641
|
+
}
|
|
642
|
+
setPreferredWidth(e, t) {
|
|
643
|
+
let n = this.dataTableColumnGroup.children[e];
|
|
644
|
+
M.set(n, t), n.style.width = t + "px";
|
|
645
|
+
}
|
|
646
|
+
columnOffset(e) {
|
|
647
|
+
if (!this.element.offsetWidth) return 0;
|
|
648
|
+
for (let t = 1; t < this.visibleColumnsArray.length; ++t) if (e === this.visibleColumnsArray[t].id && this.resizers[t - 1]) return N.get(this.resizers[t - 1]) || 0;
|
|
649
|
+
return 0;
|
|
650
|
+
}
|
|
651
|
+
asWidget(e) {
|
|
652
|
+
return this.dataGridWidget ||= new U(this, e), this.dataGridWidget;
|
|
653
|
+
}
|
|
654
|
+
topFillerRowElement() {
|
|
655
|
+
return this.topFillerRow;
|
|
656
|
+
}
|
|
657
|
+
headerHeightInScroller() {
|
|
658
|
+
return this.scrollContainer === this.#e ? this.headerHeight() : 0;
|
|
659
|
+
}
|
|
660
|
+
headerHeight() {
|
|
661
|
+
return this.#t.offsetHeight;
|
|
662
|
+
}
|
|
663
|
+
revealNode(e) {
|
|
664
|
+
e.scrollIntoViewIfNeeded(!1), e.offsetTop - this.scrollContainer.scrollTop < this.headerHeight() && (this.scrollContainer.scrollTop = e.offsetTop - this.headerHeight());
|
|
665
|
+
}
|
|
666
|
+
}, I = /* @__PURE__ */ function(e) {
|
|
667
|
+
return e.SELECTED_NODE = "SelectedNode", e.DESELECTED_NODE = "DeselectedNode", e.OPENED_NODE = "OpenedNode", e.SORTING_CHANGED = "SortingChanged", e.PADDING_CHANGED = "PaddingChanged", e.EXPANDED_NODE = "ExpandedNode", e.COLLAPSED_NODE = "CollapsedNode", e;
|
|
668
|
+
}({}), L = /* @__PURE__ */ function(e) {
|
|
669
|
+
return e.Ascending = "sort-ascending", e.Descending = "sort-descending", e;
|
|
670
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
671
|
+
return e.CENTER = "center", e.RIGHT = "right", e;
|
|
672
|
+
}({}), z = /* @__PURE__ */ function(e) {
|
|
673
|
+
return e.STRING = "String", e.BOOLEAN = "Boolean", e;
|
|
674
|
+
}({}), B = /* @__PURE__ */ function(e) {
|
|
675
|
+
return e.NEAREST = "nearest", e.FIRST = "first", e.LAST = "last", e;
|
|
676
|
+
}({}), V = class {
|
|
677
|
+
elementInternal = null;
|
|
678
|
+
expandedInternal = !1;
|
|
679
|
+
#e = !1;
|
|
680
|
+
dirty = !1;
|
|
681
|
+
inactive = !1;
|
|
682
|
+
highlighted = !1;
|
|
683
|
+
#t;
|
|
684
|
+
revealedInternal;
|
|
685
|
+
attachedInternal = !1;
|
|
686
|
+
savedPosition = null;
|
|
687
|
+
#n = !0;
|
|
688
|
+
children = [];
|
|
689
|
+
dataGrid = null;
|
|
690
|
+
parent = null;
|
|
691
|
+
previousSibling = null;
|
|
692
|
+
nextSibling = null;
|
|
693
|
+
#r = 20;
|
|
694
|
+
selectable = !0;
|
|
695
|
+
isRoot = !1;
|
|
696
|
+
nodeAccessibleText = "";
|
|
697
|
+
cellAccessibleTextMap = /* @__PURE__ */ new Map();
|
|
698
|
+
isCreationNode = !1;
|
|
699
|
+
#i;
|
|
700
|
+
#a;
|
|
701
|
+
constructor(e, t) {
|
|
702
|
+
this.#i = e || {}, this.#a = t || !1;
|
|
703
|
+
}
|
|
704
|
+
element() {
|
|
705
|
+
if (!this.elementInternal) {
|
|
706
|
+
let e = this.createElement();
|
|
707
|
+
this.createCells(e);
|
|
708
|
+
}
|
|
709
|
+
return this.elementInternal;
|
|
710
|
+
}
|
|
711
|
+
createElement() {
|
|
712
|
+
return this.elementInternal = document.createElement("tr"), this.elementInternal.setAttribute("jslog", `${ce().track({
|
|
713
|
+
resize: !0,
|
|
714
|
+
keydown: "ArrowUp|ArrowDown|ArrowLeft|ArrowRight|Enter|Space"
|
|
715
|
+
})}`), this.elementInternal.classList.add("data-grid-data-grid-node"), this.dataGrid && this.dataGrid.elementToDataGridNode.set(this.elementInternal, this), this.#a && this.elementInternal.classList.add("parent"), this.expanded && this.elementInternal.classList.add("expanded"), this.selected && this.elementInternal.classList.add("selected"), this.revealed && this.elementInternal.classList.add("revealed"), this.dirty && this.elementInternal.classList.add("dirty"), this.inactive && this.elementInternal.classList.add("inactive"), this.highlighted && this.elementInternal.classList.add("highlighted"), this.isCreationNode && this.elementInternal.classList.add("creation-node"), this.elementInternal;
|
|
716
|
+
}
|
|
717
|
+
existingElement() {
|
|
718
|
+
return this.elementInternal || null;
|
|
719
|
+
}
|
|
720
|
+
resetElement() {
|
|
721
|
+
this.elementInternal = null;
|
|
722
|
+
}
|
|
723
|
+
createCells(e) {
|
|
724
|
+
if (e.removeChildren(), !this.dataGrid || !this.parent) return;
|
|
725
|
+
let t = this.dataGrid.visibleColumnsArray, n = [];
|
|
726
|
+
(this.#a || !this.parent.isRoot) && n.push(k(D.levelS, { PH1: this.depth + 1 }));
|
|
727
|
+
for (let r = 0; r < t.length; ++r) {
|
|
728
|
+
let i = t[r], a = e.appendChild(this.createCell(i.id));
|
|
729
|
+
i.dataType === "Boolean" && this.data[i.id] === !0 && this.setCellAccessibleName(k(D.checked), a, i.id), n.push(`${i.title}: ${this.cellAccessibleTextMap.get(i.id) || a.textContent}`);
|
|
730
|
+
}
|
|
731
|
+
this.nodeAccessibleText = n.join(", ");
|
|
732
|
+
let r = this.createTDWithClass("corner");
|
|
733
|
+
g(r, !0), e.appendChild(r);
|
|
734
|
+
}
|
|
735
|
+
get data() {
|
|
736
|
+
return this.#i;
|
|
737
|
+
}
|
|
738
|
+
set data(e) {
|
|
739
|
+
this.#i = e || {}, this.refresh();
|
|
740
|
+
}
|
|
741
|
+
get revealed() {
|
|
742
|
+
if (this.revealedInternal !== void 0) return this.revealedInternal;
|
|
743
|
+
let e = this.parent;
|
|
744
|
+
for (; e && !e.isRoot;) {
|
|
745
|
+
if (!e.expanded) return this.revealedInternal = !1, !1;
|
|
746
|
+
e = e.parent;
|
|
747
|
+
}
|
|
748
|
+
return this.revealed = !0, !0;
|
|
749
|
+
}
|
|
750
|
+
set revealed(e) {
|
|
751
|
+
if (this.revealedInternal !== e) {
|
|
752
|
+
this.revealedInternal = e, this.elementInternal && this.elementInternal.classList.toggle("revealed", this.revealedInternal);
|
|
753
|
+
for (let t = 0; t < this.children.length; ++t) this.children[t].revealed = e && this.expanded;
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
isDirty() {
|
|
757
|
+
return this.dirty;
|
|
758
|
+
}
|
|
759
|
+
setDirty(e) {
|
|
760
|
+
this.dirty !== e && (this.dirty = e, this.elementInternal && (e ? this.elementInternal.classList.add("dirty") : this.elementInternal.classList.remove("dirty")));
|
|
761
|
+
}
|
|
762
|
+
setInactive(e) {
|
|
763
|
+
this.inactive !== e && (this.inactive = e, this.elementInternal && (e ? this.elementInternal.classList.add("inactive") : this.elementInternal.classList.remove("inactive")));
|
|
764
|
+
}
|
|
765
|
+
setHighlighted(e) {
|
|
766
|
+
this.highlighted !== e && (this.highlighted = e, this.elementInternal && (e ? this.elementInternal.classList.add("highlighted") : this.elementInternal.classList.remove("highlighted")));
|
|
767
|
+
}
|
|
768
|
+
hasChildren() {
|
|
769
|
+
return this.#a;
|
|
770
|
+
}
|
|
771
|
+
setHasChildren(e) {
|
|
772
|
+
this.#a !== e && (this.#a = e, this.elementInternal && (this.elementInternal.classList.toggle("parent", this.#a), this.elementInternal.classList.toggle("expanded", this.#a && this.expanded)));
|
|
773
|
+
}
|
|
774
|
+
get depth() {
|
|
775
|
+
return this.#t === void 0 && (this.parent && !this.parent.isRoot ? this.#t = this.parent.depth + 1 : this.#t = 0), this.#t;
|
|
776
|
+
}
|
|
777
|
+
get leftPadding() {
|
|
778
|
+
return this.depth * (this.dataGrid ? this.dataGrid.indentWidth : 1);
|
|
779
|
+
}
|
|
780
|
+
get shouldRefreshChildren() {
|
|
781
|
+
return this.#n;
|
|
782
|
+
}
|
|
783
|
+
set shouldRefreshChildren(e) {
|
|
784
|
+
this.#n = e, e && this.expanded && this.expand();
|
|
785
|
+
}
|
|
786
|
+
get selected() {
|
|
787
|
+
return this.#e;
|
|
788
|
+
}
|
|
789
|
+
set selected(e) {
|
|
790
|
+
e ? this.select() : this.deselect();
|
|
791
|
+
}
|
|
792
|
+
get expanded() {
|
|
793
|
+
return this.expandedInternal;
|
|
794
|
+
}
|
|
795
|
+
set expanded(e) {
|
|
796
|
+
e ? this.expand() : this.collapse();
|
|
797
|
+
}
|
|
798
|
+
refresh() {
|
|
799
|
+
this.dataGrid || (this.elementInternal = null), this.elementInternal && this.createCells(this.elementInternal);
|
|
800
|
+
}
|
|
801
|
+
createTDWithClass(e) {
|
|
802
|
+
let t = document.createElement("td");
|
|
803
|
+
e && (t.className = e);
|
|
804
|
+
let n = this.dataGrid ? this.dataGrid.cellClass : null;
|
|
805
|
+
return n && t.classList.add(n), t;
|
|
806
|
+
}
|
|
807
|
+
createTD(e) {
|
|
808
|
+
let t = this.createTDWithClass(e + "-column");
|
|
809
|
+
if (j.set(t, e), this.dataGrid) {
|
|
810
|
+
let n = this.dataGrid.isColumnEditable(e);
|
|
811
|
+
t.setAttribute("jslog", `${C().track({
|
|
812
|
+
click: !0,
|
|
813
|
+
keydown: n ? "Enter|Space|Escape" : !1,
|
|
814
|
+
dblclick: n,
|
|
815
|
+
change: n
|
|
816
|
+
}).context(a(e))}`);
|
|
817
|
+
let r = this.dataGrid.columns[e].align;
|
|
818
|
+
r && t.classList.add(r), e === this.dataGrid.disclosureColumnId && (t.classList.add("disclosure"), this.leftPadding && t.style.setProperty("padding-left", this.leftPadding + "px")), n && (t.tabIndex = 0, t.ariaHasPopup = "true");
|
|
819
|
+
}
|
|
820
|
+
return t;
|
|
821
|
+
}
|
|
822
|
+
createCell(e) {
|
|
823
|
+
let t = this.createTD(e), n = this.data[e];
|
|
824
|
+
return n instanceof Node ? t.appendChild(n) : n !== null && this.dataGrid && this.dataGrid.setElementContent(t, n), t;
|
|
825
|
+
}
|
|
826
|
+
setCellAccessibleName(e, t, n) {
|
|
827
|
+
this.cellAccessibleTextMap.set(n, e);
|
|
828
|
+
for (let e = 0; e < t.children.length; e++) g(t.children[e], !0);
|
|
829
|
+
p(t, e);
|
|
830
|
+
}
|
|
831
|
+
nodeSelfHeight() {
|
|
832
|
+
return 20;
|
|
833
|
+
}
|
|
834
|
+
appendChild(e) {
|
|
835
|
+
this.insertChild(e, this.children.length);
|
|
836
|
+
}
|
|
837
|
+
resetNode(e) {
|
|
838
|
+
this.#t = void 0, delete this.revealedInternal, !e && (this.previousSibling && (this.previousSibling.nextSibling = this.nextSibling), this.nextSibling && (this.nextSibling.previousSibling = this.previousSibling), this.dataGrid = null, this.parent = null, this.nextSibling = null, this.previousSibling = null, this.attachedInternal = !1);
|
|
839
|
+
}
|
|
840
|
+
insertChild(e, t) {
|
|
841
|
+
if (!e) throw Error("insertChild: Node can't be undefined or null.");
|
|
842
|
+
if (e.parent === this) {
|
|
843
|
+
let n = this.children.indexOf(e);
|
|
844
|
+
if (n < 0 && console.assert(!1, "Inconsistent DataGrid state"), n === t) return;
|
|
845
|
+
n < t && --t;
|
|
846
|
+
}
|
|
847
|
+
e.remove(), this.children.splice(t, 0, e), this.setHasChildren(!0), e.parent = this, e.dataGrid = this.dataGrid, e.recalculateSiblings(t), e.#n = !0;
|
|
848
|
+
let n = e.children[0];
|
|
849
|
+
for (; n;) n.resetNode(!0), n.dataGrid = this.dataGrid, n.attachedInternal = !1, n.#n = !0, n = n.traverseNextNode(!1, e, !0);
|
|
850
|
+
this.expanded && e.attach(), this.revealed || (e.revealed = !1);
|
|
851
|
+
}
|
|
852
|
+
remove() {
|
|
853
|
+
this.parent && this.parent.removeChild(this);
|
|
854
|
+
}
|
|
855
|
+
removeChild(e) {
|
|
856
|
+
if (!e) throw Error("removeChild: Node can't be undefined or null.");
|
|
857
|
+
if (e.parent !== this) throw Error("removeChild: Node is not a child of this node.");
|
|
858
|
+
this.dataGrid && this.dataGrid.updateSelectionBeforeRemoval(e, !1), e.detach(), e.resetNode(), n(this.children, e, !0), this.children.length <= 0 && this.setHasChildren(!1);
|
|
859
|
+
}
|
|
860
|
+
removeChildren() {
|
|
861
|
+
this.dataGrid && this.dataGrid.updateSelectionBeforeRemoval(this, !0);
|
|
862
|
+
for (let e = 0; e < this.children.length; ++e) {
|
|
863
|
+
let t = this.children[e];
|
|
864
|
+
t.detach(), t.resetNode();
|
|
865
|
+
}
|
|
866
|
+
this.children = [], this.setHasChildren(!1);
|
|
867
|
+
}
|
|
868
|
+
recalculateSiblings(e) {
|
|
869
|
+
if (!this.parent) return;
|
|
870
|
+
let t = this.parent.children[e - 1] || null;
|
|
871
|
+
t && (t.nextSibling = this), this.previousSibling = t;
|
|
872
|
+
let n = this.parent.children[e + 1] || null;
|
|
873
|
+
n && (n.previousSibling = this), this.nextSibling = n;
|
|
874
|
+
}
|
|
875
|
+
collapse() {
|
|
876
|
+
if (!this.isRoot) {
|
|
877
|
+
this.elementInternal && this.elementInternal.classList.remove("expanded"), this.expandedInternal = !1, this.selected && this.dataGrid && this.dataGrid.announceSelectedGridNode();
|
|
878
|
+
for (let e = 0; e < this.children.length; ++e) this.children[e].revealed = !1;
|
|
879
|
+
this.dataGrid?.dispatchEventToListeners("CollapsedNode", this);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
collapseRecursively() {
|
|
883
|
+
let e = this;
|
|
884
|
+
for (; e;) e.expanded && e.collapse(), e = e.traverseNextNode(!1, this, !0);
|
|
885
|
+
}
|
|
886
|
+
populate() {}
|
|
887
|
+
expand() {
|
|
888
|
+
if (!(!this.#a || this.expandedInternal) && !this.isRoot) {
|
|
889
|
+
if (this.revealed && !this.#n) for (let e = 0; e < this.children.length; ++e) this.children[e].revealed = !0;
|
|
890
|
+
if (this.#n) {
|
|
891
|
+
for (let e = 0; e < this.children.length; ++e) this.children[e].detach();
|
|
892
|
+
if (this.populate(), this.attachedInternal) for (let e = 0; e < this.children.length; ++e) {
|
|
893
|
+
let t = this.children[e];
|
|
894
|
+
this.revealed && (t.revealed = !0), t.attach();
|
|
895
|
+
}
|
|
896
|
+
this.#n = !1;
|
|
897
|
+
}
|
|
898
|
+
this.elementInternal && this.elementInternal.classList.add("expanded"), this.selected && this.dataGrid && this.dataGrid.announceSelectedGridNode(), this.expandedInternal = !0, this.dataGrid?.dispatchEventToListeners("ExpandedNode", this);
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
expandRecursively() {
|
|
902
|
+
let e = this;
|
|
903
|
+
for (; e;) e.expand(), e = e.traverseNextNode(!1, this);
|
|
904
|
+
}
|
|
905
|
+
reveal() {
|
|
906
|
+
if (this.isRoot || !this.dataGrid) return;
|
|
907
|
+
let e = this.parent;
|
|
908
|
+
for (; e && !e.isRoot;) e.expanded || e.expand(), e = e.parent;
|
|
909
|
+
this.dataGrid.revealNode(this.element());
|
|
910
|
+
}
|
|
911
|
+
select(e) {
|
|
912
|
+
!this.dataGrid || !this.selectable || this.selected || (this.dataGrid.selectedNode && this.dataGrid.selectedNode.deselect(), this.#e = !0, this.dataGrid.selectedNode = this, this.elementInternal && (this.elementInternal.classList.add("selected"), this.elementInternal.focus(), this.dataGrid.setHasSelection(!0), this.dataGrid.announceSelectedGridNode()), e || this.dataGrid.dispatchEventToListeners("SelectedNode", this));
|
|
913
|
+
}
|
|
914
|
+
revealAndSelect() {
|
|
915
|
+
this.isRoot || (this.reveal(), this.select());
|
|
916
|
+
}
|
|
917
|
+
deselect(e) {
|
|
918
|
+
this.dataGrid?.selectedNode !== this || !this.selected || (this.#e = !1, this.dataGrid.selectedNode = null, this.elementInternal && (this.elementInternal.classList.remove("selected"), this.dataGrid.setHasSelection(!1)), e || this.dataGrid.dispatchEventToListeners("DeselectedNode"));
|
|
919
|
+
}
|
|
920
|
+
traverseNextNode(e, t, n, r) {
|
|
921
|
+
!n && this.#a && this.populate(), r && (r.depthChange = 0);
|
|
922
|
+
let i = !e || this.revealed ? this.children[0] : null;
|
|
923
|
+
if (i && (!e || this.expanded)) return r && (r.depthChange = 1), i;
|
|
924
|
+
if (this === t) return null;
|
|
925
|
+
if (i = !e || this.revealed ? this.nextSibling : null, i) return i;
|
|
926
|
+
for (i = this; i && !i.isRoot && !((!e || i.revealed) && i.nextSibling) && i.parent !== t;) r && --r.depthChange, i = i.parent;
|
|
927
|
+
return i && (!e || i.revealed) ? i.nextSibling : null;
|
|
928
|
+
}
|
|
929
|
+
traversePreviousNode(e, t) {
|
|
930
|
+
let n = !e || this.revealed ? this.previousSibling : null;
|
|
931
|
+
for (!t && n && n.#a && n.populate(); n && (!e || n.revealed && n.expanded) && n.children[n.children.length - 1];) !t && n && n.#a && n.populate(), n = !e || n.revealed && n.expanded ? n.children[n.children.length - 1] : null;
|
|
932
|
+
return n || (!this.parent || this.parent.isRoot ? null : this.parent);
|
|
933
|
+
}
|
|
934
|
+
isEventWithinDisclosureTriangle(e) {
|
|
935
|
+
if (!this.#a) return !1;
|
|
936
|
+
let t = T(e.target, "td");
|
|
937
|
+
if (!t || !(t instanceof HTMLElement) || !t.classList.contains("disclosure")) return !1;
|
|
938
|
+
let n = t.getBoundingClientRect().left + this.leftPadding;
|
|
939
|
+
return e.pageX >= n && e.pageX <= n + this.#r;
|
|
940
|
+
}
|
|
941
|
+
attach() {
|
|
942
|
+
if (!this.dataGrid || this.attachedInternal) return;
|
|
943
|
+
this.attachedInternal = !0;
|
|
944
|
+
let e = this.traversePreviousNode(!0, !0), t = e ? e.element() : this.dataGrid.topFillerRow;
|
|
945
|
+
if (this.dataGrid.dataTableBody.insertBefore(this.element(), t.nextSibling), this.expandedInternal) for (let e = 0; e < this.children.length; ++e) this.children[e].attach();
|
|
946
|
+
}
|
|
947
|
+
detach() {
|
|
948
|
+
if (this.attachedInternal) {
|
|
949
|
+
this.attachedInternal = !1, this.elementInternal && this.elementInternal.remove();
|
|
950
|
+
for (let e = 0; e < this.children.length; ++e) this.children[e].detach();
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
savePosition() {
|
|
954
|
+
if (!this.savedPosition) {
|
|
955
|
+
if (!this.parent) throw Error("savePosition: Node must have a parent.");
|
|
956
|
+
this.savedPosition = {
|
|
957
|
+
parent: this.parent,
|
|
958
|
+
index: this.parent.children.indexOf(this)
|
|
959
|
+
};
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
restorePosition() {
|
|
963
|
+
this.savedPosition &&= (this.parent !== this.savedPosition.parent && this.savedPosition.parent.insertChild(this, this.savedPosition.index), null);
|
|
964
|
+
}
|
|
965
|
+
}, H = class extends V {
|
|
966
|
+
isCreationNode;
|
|
967
|
+
constructor(e, t) {
|
|
968
|
+
super(e, t), this.isCreationNode = !0;
|
|
969
|
+
}
|
|
970
|
+
}, U = class extends se {
|
|
971
|
+
dataGrid;
|
|
972
|
+
constructor(e, t) {
|
|
973
|
+
super(t), this.dataGrid = e, this.element.appendChild(e.element), this.setDefaultFocusedElement(e.element), this.registerRequiredCSS(E);
|
|
974
|
+
}
|
|
975
|
+
wasShown() {
|
|
976
|
+
super.wasShown(), this.dataGrid.wasShown();
|
|
977
|
+
}
|
|
978
|
+
willHide() {
|
|
979
|
+
this.dataGrid.willHide(), super.willHide();
|
|
980
|
+
}
|
|
981
|
+
onResize() {
|
|
982
|
+
super.onResize(), this.dataGrid.onResize();
|
|
983
|
+
}
|
|
984
|
+
elementsToRestoreScrollPositionsFor() {
|
|
985
|
+
return [this.dataGrid.scrollContainer];
|
|
986
|
+
}
|
|
987
|
+
}, me = /* @__PURE__ */ e({
|
|
988
|
+
Events: () => G,
|
|
989
|
+
ViewportDataGrid: () => W,
|
|
990
|
+
ViewportDataGridNode: () => K
|
|
991
|
+
}), he = 0, W = class extends l(F) {
|
|
992
|
+
onScrollBound;
|
|
993
|
+
visibleNodes;
|
|
994
|
+
enableAutoScrollToBottom = !1;
|
|
995
|
+
keepScrollingToBottom = !1;
|
|
996
|
+
updateIsFromUser;
|
|
997
|
+
lastScrollTop;
|
|
998
|
+
firstVisibleIsStriped;
|
|
999
|
+
isStriped;
|
|
1000
|
+
filters = [];
|
|
1001
|
+
id = he++;
|
|
1002
|
+
constructor(e) {
|
|
1003
|
+
super(e), this.onScrollBound = this.onScroll.bind(this), this.scrollContainer.addEventListener("scroll", this.onScrollBound, !0), this.visibleNodes = [], this.inline = !1, this.updateIsFromUser = !1, this.lastScrollTop = 0, this.firstVisibleIsStriped = !1, this.isStriped = !1, this.setRootNode(new K());
|
|
1004
|
+
}
|
|
1005
|
+
setStriped(e) {
|
|
1006
|
+
this.isStriped = e;
|
|
1007
|
+
let t = !0;
|
|
1008
|
+
this.visibleNodes.length && (t = !!this.filteredNodes().indexOf(this.visibleNodes[0])), this.updateStripesClass(t);
|
|
1009
|
+
}
|
|
1010
|
+
setFilters(e) {
|
|
1011
|
+
this.filters !== e && (this.filters = e, this.scheduleUpdate());
|
|
1012
|
+
}
|
|
1013
|
+
updateStripesClass(e) {
|
|
1014
|
+
this.element.classList.toggle("striped-data-grid", !e && this.isStriped), this.element.classList.toggle("striped-data-grid-starts-with-odd", e && this.isStriped);
|
|
1015
|
+
}
|
|
1016
|
+
setScrollContainer(e) {
|
|
1017
|
+
this.scrollContainer.removeEventListener("scroll", this.onScrollBound, !0), this.scrollContainerInternal = e, this.scrollContainer.addEventListener("scroll", this.onScrollBound, !0);
|
|
1018
|
+
}
|
|
1019
|
+
onResize() {
|
|
1020
|
+
this.keepScrollingToBottom && (this.scrollContainer.scrollTop = this.scrollContainer.scrollHeight - this.scrollContainer.clientHeight), this.scheduleUpdate(), super.onResize();
|
|
1021
|
+
}
|
|
1022
|
+
setEnableAutoScrollToBottom(e) {
|
|
1023
|
+
this.keepScrollingToBottom = this.enableAutoScrollToBottom = e;
|
|
1024
|
+
}
|
|
1025
|
+
onScroll(e) {
|
|
1026
|
+
this.lastScrollTop !== this.scrollContainer.scrollTop && this.scheduleUpdate(!0);
|
|
1027
|
+
}
|
|
1028
|
+
scheduleUpdateStructure() {
|
|
1029
|
+
this.scheduleUpdate();
|
|
1030
|
+
}
|
|
1031
|
+
scheduleUpdate(e) {
|
|
1032
|
+
this.updateIsFromUser = this.updateIsFromUser || !!e, de(`ViewportDataGrid.render ${this.id}`, this.update.bind(this));
|
|
1033
|
+
}
|
|
1034
|
+
updateInstantly() {
|
|
1035
|
+
this.update();
|
|
1036
|
+
}
|
|
1037
|
+
renderInline() {
|
|
1038
|
+
this.inline = !0, super.renderInline(), this.update();
|
|
1039
|
+
}
|
|
1040
|
+
getStringifiedCellValues(e, t) {
|
|
1041
|
+
return JSON.stringify(Object.entries(e).filter(([e]) => t.has(e)).map(([, e]) => e instanceof Node ? e.textContent : String(e))).toLowerCase();
|
|
1042
|
+
}
|
|
1043
|
+
testNodeWithFilter(e, t) {
|
|
1044
|
+
let n = !1, { key: r, text: i, negative: a, regex: o } = t, s = this.getStringifiedCellValues(e.data, r ? new Set(r.split(",")) : new Set(this.visibleColumnsArray.map((e) => e.id)));
|
|
1045
|
+
return o ? n = o.test(s) : i && (n = s.includes(i.toLowerCase())), a ? !n : n;
|
|
1046
|
+
}
|
|
1047
|
+
testNodeWithFilters(e) {
|
|
1048
|
+
for (let t of this.filters) if (!this.testNodeWithFilter(e, t)) return !1;
|
|
1049
|
+
return !0;
|
|
1050
|
+
}
|
|
1051
|
+
calculateVisibleNodes(e, t) {
|
|
1052
|
+
let n = this.filteredNodes();
|
|
1053
|
+
if (this.inline) return {
|
|
1054
|
+
topPadding: 0,
|
|
1055
|
+
bottomPadding: 0,
|
|
1056
|
+
contentHeight: 0,
|
|
1057
|
+
visibleNodes: n,
|
|
1058
|
+
offset: 0
|
|
1059
|
+
};
|
|
1060
|
+
let r = n.length, i = 0, a = 0;
|
|
1061
|
+
for (; i < r && a + n[i].nodeSelfHeight() < t; ++i) a += n[i].nodeSelfHeight();
|
|
1062
|
+
let o = i, s = a;
|
|
1063
|
+
for (; i < r && a < t + e; ++i) a += n[i].nodeSelfHeight();
|
|
1064
|
+
let c = i, l = 0;
|
|
1065
|
+
for (; i < r; ++i) l += n[i].nodeSelfHeight();
|
|
1066
|
+
return this.enableAutoScrollToBottom && (this.keepScrollingToBottom = c === n.length), {
|
|
1067
|
+
topPadding: s,
|
|
1068
|
+
bottomPadding: l,
|
|
1069
|
+
contentHeight: a - s,
|
|
1070
|
+
visibleNodes: n.slice(o, c),
|
|
1071
|
+
offset: o
|
|
1072
|
+
};
|
|
1073
|
+
}
|
|
1074
|
+
getNumberOfRows() {
|
|
1075
|
+
return this.filteredNodes().length;
|
|
1076
|
+
}
|
|
1077
|
+
contentHeight() {
|
|
1078
|
+
let e = this.filteredNodes(), t = 0;
|
|
1079
|
+
for (let n = 0, r = e.length; n < r; ++n) t += e[n].nodeSelfHeight();
|
|
1080
|
+
return t;
|
|
1081
|
+
}
|
|
1082
|
+
update() {
|
|
1083
|
+
let e = this.scrollContainer.clientHeight - this.headerHeightInScroller(), t = this.contentHeight(), n = this.scrollContainer.scrollTop, r = Math.max(0, t - e), i = n;
|
|
1084
|
+
!this.updateIsFromUser && this.keepScrollingToBottom && (i = r), this.updateIsFromUser = !1, i = Math.min(r, i);
|
|
1085
|
+
let a = this.calculateVisibleNodes(e, i), o = a.visibleNodes, s = new Set(o);
|
|
1086
|
+
for (let e = 0; e < this.visibleNodes.length; ++e) {
|
|
1087
|
+
let t = this.visibleNodes[e];
|
|
1088
|
+
if (!s.has(t) && t.attached()) {
|
|
1089
|
+
let e = t.existingElement();
|
|
1090
|
+
e && e.remove();
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
let c = this.topFillerRowElement(), l = this.dataTableBody, u = a.offset;
|
|
1094
|
+
if (o.length) {
|
|
1095
|
+
let e = this.filteredNodes().indexOf(o[0]);
|
|
1096
|
+
this.updateStripesClass(!!(e % 2)), this.keepScrollingToBottom && e !== -1 && !!(e % 2) !== this.firstVisibleIsStriped && (u += 1);
|
|
1097
|
+
}
|
|
1098
|
+
this.firstVisibleIsStriped = !!(u % 2);
|
|
1099
|
+
for (let e = 0; e < o.length; ++e) {
|
|
1100
|
+
let t = o[e], n = t.element();
|
|
1101
|
+
t.setStriped((u + e) % 2 == 0), n !== c.nextSibling && l.insertBefore(n, c.nextSibling), t.revealed = !0, c = n;
|
|
1102
|
+
}
|
|
1103
|
+
this.setVerticalPadding(a.topPadding, a.bottomPadding), this.lastScrollTop = i, i !== n && (this.scrollContainer.scrollTop = i);
|
|
1104
|
+
let d = a.contentHeight <= e && a.topPadding + a.bottomPadding === 0;
|
|
1105
|
+
d !== this.element.classList.contains("data-grid-fits-viewport") && (this.element.classList.toggle("data-grid-fits-viewport", d), this.updateWidths()), this.visibleNodes = o, this.dispatchEventToListeners("ViewportCalculated");
|
|
1106
|
+
}
|
|
1107
|
+
revealViewportNode(e) {
|
|
1108
|
+
let t = this.filteredNodes(), n = t.indexOf(e);
|
|
1109
|
+
if (n === -1) return;
|
|
1110
|
+
let r = 0;
|
|
1111
|
+
for (let e = 0; e < n; ++e) r += t[e].nodeSelfHeight();
|
|
1112
|
+
let i = r + e.nodeSelfHeight(), a = this.scrollContainer.scrollTop, o = this.scrollContainer.offsetHeight - this.headerHeightInScroller();
|
|
1113
|
+
a > r ? (a = r, this.keepScrollingToBottom = !1) : a + o < i && (a = i - o), this.scrollContainer.scrollTop = a;
|
|
1114
|
+
}
|
|
1115
|
+
filteredNodes() {
|
|
1116
|
+
return this.rootNode().flatChildren().filter(this.testNodeWithFilters.bind(this));
|
|
1117
|
+
}
|
|
1118
|
+
}, G = /* @__PURE__ */ function(e) {
|
|
1119
|
+
return e.VIEWPORT_CALCULATED = "ViewportCalculated", e;
|
|
1120
|
+
}({}), K = class extends V {
|
|
1121
|
+
stale;
|
|
1122
|
+
flatNodes;
|
|
1123
|
+
isStripedInternal;
|
|
1124
|
+
constructor(e, t) {
|
|
1125
|
+
super(e, t), this.stale = !1, this.flatNodes = null, this.isStripedInternal = !1;
|
|
1126
|
+
}
|
|
1127
|
+
element() {
|
|
1128
|
+
let e = this.existingElement(), t = e || this.createElement();
|
|
1129
|
+
return (!e || this.stale) && (this.createCells(t), this.stale = !1), t;
|
|
1130
|
+
}
|
|
1131
|
+
nodeSelfHeight() {
|
|
1132
|
+
let e = this.dataGrid?.topFillerRow?.nextElementSibling;
|
|
1133
|
+
return e?.classList.contains("data-grid-data-grid-node") && e.clientHeight || super.nodeSelfHeight();
|
|
1134
|
+
}
|
|
1135
|
+
setStriped(e) {
|
|
1136
|
+
this.isStripedInternal = e, this.element().classList.toggle("odd", e);
|
|
1137
|
+
}
|
|
1138
|
+
isStriped() {
|
|
1139
|
+
return this.isStripedInternal;
|
|
1140
|
+
}
|
|
1141
|
+
clearFlatNodes() {
|
|
1142
|
+
this.flatNodes = null;
|
|
1143
|
+
let e = this.parent;
|
|
1144
|
+
e && e.clearFlatNodes();
|
|
1145
|
+
}
|
|
1146
|
+
flatChildren() {
|
|
1147
|
+
if (this.flatNodes) return this.flatNodes;
|
|
1148
|
+
let e = [], t = [this.children], n = [0], r = 0;
|
|
1149
|
+
for (; r >= 0;) {
|
|
1150
|
+
if (t[r].length <= n[r]) {
|
|
1151
|
+
r--;
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
let i = t[r][n[r]++];
|
|
1155
|
+
e.push(i), i.expanded && i.children.length && (r++, t[r] = i.children, n[r] = 0);
|
|
1156
|
+
}
|
|
1157
|
+
return this.flatNodes = e, e;
|
|
1158
|
+
}
|
|
1159
|
+
insertChild(e, t) {
|
|
1160
|
+
if (this.clearFlatNodes(), e.parent === this) {
|
|
1161
|
+
let n = this.children.indexOf(e);
|
|
1162
|
+
if (n < 0 && console.assert(!1, "Inconsistent DataGrid state"), n === t) return;
|
|
1163
|
+
n < t && --t;
|
|
1164
|
+
}
|
|
1165
|
+
e.remove(), e.parent = this, e.dataGrid = this.dataGrid, this.children.length || this.setHasChildren(!0), this.children.splice(t, 0, e), e.recalculateSiblings(t), this.expanded && this.dataGrid && this.dataGrid.scheduleUpdateStructure();
|
|
1166
|
+
}
|
|
1167
|
+
removeChild(e) {
|
|
1168
|
+
if (this.dataGrid && this.dataGrid.updateSelectionBeforeRemoval(e, !1), this.clearFlatNodes(), e.previousSibling && (e.previousSibling.nextSibling = e.nextSibling), e.nextSibling && (e.nextSibling.previousSibling = e.previousSibling), e.parent !== this) throw Error("removeChild: Node is not a child of this node.");
|
|
1169
|
+
n(this.children, e, !0), e.unlink(), this.children.length || this.setHasChildren(!1), this.expanded && this.dataGrid && this.dataGrid.scheduleUpdateStructure();
|
|
1170
|
+
}
|
|
1171
|
+
removeChildren() {
|
|
1172
|
+
this.dataGrid && this.dataGrid.updateSelectionBeforeRemoval(this, !0), this.clearFlatNodes();
|
|
1173
|
+
for (let e = 0; e < this.children.length; ++e) this.children[e].unlink();
|
|
1174
|
+
this.children = [], this.expanded && this.dataGrid && this.dataGrid.scheduleUpdateStructure();
|
|
1175
|
+
}
|
|
1176
|
+
unlink() {
|
|
1177
|
+
let e = this.existingElement();
|
|
1178
|
+
this.attached() && e && e.remove(), this.resetNode();
|
|
1179
|
+
}
|
|
1180
|
+
collapse() {
|
|
1181
|
+
if (!this.expanded) return;
|
|
1182
|
+
this.clearFlatNodes(), this.expandedInternal = !1;
|
|
1183
|
+
let e = this.existingElement();
|
|
1184
|
+
e && e.classList.remove("expanded"), this.selected && this.dataGrid.announceSelectedGridNode(), this.dataGrid.scheduleUpdateStructure(), this.dataGrid?.dispatchEventToListeners(I.COLLAPSED_NODE, this);
|
|
1185
|
+
}
|
|
1186
|
+
expand() {
|
|
1187
|
+
this.expanded || (this.dataGrid.keepScrollingToBottom = !1, this.clearFlatNodes(), super.expand(), this.dataGrid.scheduleUpdateStructure());
|
|
1188
|
+
}
|
|
1189
|
+
traverseNextNode(e, t, n, r) {
|
|
1190
|
+
let i = super.traverseNextNode(e, t, n, r);
|
|
1191
|
+
return i && e && !this.dataGrid.testNodeWithFilters(i) ? i.traverseNextNode(e, t, n, r) : i;
|
|
1192
|
+
}
|
|
1193
|
+
traversePreviousNode(e, t) {
|
|
1194
|
+
let n = super.traversePreviousNode(e, t);
|
|
1195
|
+
return n && e && !this.dataGrid.testNodeWithFilters(n) ? n.traversePreviousNode(e, t) : n;
|
|
1196
|
+
}
|
|
1197
|
+
attached() {
|
|
1198
|
+
let e = this.existingElement();
|
|
1199
|
+
return !!(this.dataGrid && e?.parentElement);
|
|
1200
|
+
}
|
|
1201
|
+
refresh() {
|
|
1202
|
+
this.attached() ? (this.stale = !0, this.dataGrid.scheduleUpdate()) : this.resetElement();
|
|
1203
|
+
}
|
|
1204
|
+
reveal() {
|
|
1205
|
+
this.dataGrid.revealViewportNode(this);
|
|
1206
|
+
}
|
|
1207
|
+
recalculateSiblings(e) {
|
|
1208
|
+
this.clearFlatNodes(), super.recalculateSiblings(e);
|
|
1209
|
+
}
|
|
1210
|
+
}, ge = /* @__PURE__ */ e({
|
|
1211
|
+
SortableDataGrid: () => q,
|
|
1212
|
+
SortableDataGridNode: () => J
|
|
1213
|
+
}), q = class e extends W {
|
|
1214
|
+
sortingFunction;
|
|
1215
|
+
constructor(t) {
|
|
1216
|
+
super(t), this.sortingFunction = e.TrivialComparator, this.setRootNode(new J());
|
|
1217
|
+
}
|
|
1218
|
+
static TrivialComparator(e, t) {
|
|
1219
|
+
return 0;
|
|
1220
|
+
}
|
|
1221
|
+
static NumericComparator(e, t, n) {
|
|
1222
|
+
let r = t.getNumericValue(e), i = n.getNumericValue(e);
|
|
1223
|
+
return r < i ? -1 : +(r > i);
|
|
1224
|
+
}
|
|
1225
|
+
static StringComparator(e, t, n) {
|
|
1226
|
+
let r = t.data[e], i = n.data[e], a = r instanceof Node ? r.textContent : String(r), o = i instanceof Node ? i.textContent : String(i);
|
|
1227
|
+
return !a || !o ? 0 : a < o ? -1 : +(a > o);
|
|
1228
|
+
}
|
|
1229
|
+
static Comparator(e, t, n, r) {
|
|
1230
|
+
return n.isCreationNode && !r.isCreationNode ? 1 : !n.isCreationNode && r.isCreationNode ? -1 : t ? e(r, n) : e(n, r);
|
|
1231
|
+
}
|
|
1232
|
+
static create(t, n, r) {
|
|
1233
|
+
let i = t.length;
|
|
1234
|
+
if (!i) return null;
|
|
1235
|
+
let a = [];
|
|
1236
|
+
for (let e = 0; e < t.length; ++e) {
|
|
1237
|
+
let n = String(e);
|
|
1238
|
+
a.push({
|
|
1239
|
+
id: n,
|
|
1240
|
+
title: t[e],
|
|
1241
|
+
sortable: !0
|
|
1242
|
+
});
|
|
1243
|
+
}
|
|
1244
|
+
let o = [];
|
|
1245
|
+
for (let e = 0; e < n.length / i; ++e) {
|
|
1246
|
+
let r = {};
|
|
1247
|
+
for (let a = 0; a < t.length; ++a) r[a] = n[i * e + a];
|
|
1248
|
+
let a = new J(r);
|
|
1249
|
+
a.selectable = !1, o.push(a);
|
|
1250
|
+
}
|
|
1251
|
+
let s = new e({
|
|
1252
|
+
displayName: r,
|
|
1253
|
+
columns: a
|
|
1254
|
+
}), c = o.length, l = s.rootNode();
|
|
1255
|
+
for (let e = 0; e < c; ++e) l.appendChild(o[e]);
|
|
1256
|
+
s.addEventListener(I.SORTING_CHANGED, u);
|
|
1257
|
+
function u() {
|
|
1258
|
+
let t = s.rootNode().children, n = s.sortColumnId();
|
|
1259
|
+
if (!n) return;
|
|
1260
|
+
let r = !0;
|
|
1261
|
+
for (let e = 0; e < t.length; e++) {
|
|
1262
|
+
if (t[e].isCreationNode) continue;
|
|
1263
|
+
let i = t[e].data[n];
|
|
1264
|
+
if (isNaN(i instanceof Node ? i.textContent : i)) {
|
|
1265
|
+
r = !1;
|
|
1266
|
+
break;
|
|
1267
|
+
}
|
|
1268
|
+
}
|
|
1269
|
+
let i = r ? e.NumericComparator : e.StringComparator;
|
|
1270
|
+
s.sortNodes(i.bind(null, n), !s.isSortOrderAscending());
|
|
1271
|
+
}
|
|
1272
|
+
return s;
|
|
1273
|
+
}
|
|
1274
|
+
insertChild(e) {
|
|
1275
|
+
this.rootNode().insertChildOrdered(e);
|
|
1276
|
+
}
|
|
1277
|
+
sortNodes(t, n) {
|
|
1278
|
+
this.sortingFunction = e.Comparator.bind(null, t, n), this.rootNode().recalculateSiblings(0), this.rootNode().sortChildren(), this.scheduleUpdateStructure();
|
|
1279
|
+
}
|
|
1280
|
+
}, J = class extends K {
|
|
1281
|
+
#e = /* @__PURE__ */ new Map();
|
|
1282
|
+
#t = !0;
|
|
1283
|
+
#n = null;
|
|
1284
|
+
get data() {
|
|
1285
|
+
return super.data;
|
|
1286
|
+
}
|
|
1287
|
+
set data(e) {
|
|
1288
|
+
this.#e.clear(), super.data = e;
|
|
1289
|
+
}
|
|
1290
|
+
getNumericValue(e) {
|
|
1291
|
+
let t = this.#e.get(e);
|
|
1292
|
+
if (t === void 0) {
|
|
1293
|
+
let n = this.data[e];
|
|
1294
|
+
t = Number(n instanceof Node ? n.textContent : n), this.#e.set(e, t);
|
|
1295
|
+
}
|
|
1296
|
+
return t;
|
|
1297
|
+
}
|
|
1298
|
+
insertChild(e, t) {
|
|
1299
|
+
super.insertChild(e, t), this.#t = !0;
|
|
1300
|
+
}
|
|
1301
|
+
removeChild(e) {
|
|
1302
|
+
super.removeChild(e), this.#t = !0;
|
|
1303
|
+
}
|
|
1304
|
+
refresh() {
|
|
1305
|
+
this.#e.clear(), super.refresh(), this.parent?.markChildrenDirty();
|
|
1306
|
+
}
|
|
1307
|
+
expand() {
|
|
1308
|
+
super.expand(), this.sortChildren();
|
|
1309
|
+
}
|
|
1310
|
+
markChildrenDirty() {
|
|
1311
|
+
this.#t = !0;
|
|
1312
|
+
}
|
|
1313
|
+
insertChildOrdered(e) {
|
|
1314
|
+
let n = this.dataGrid;
|
|
1315
|
+
n && this.insertChild(e, t(this.children, e, n.sortingFunction));
|
|
1316
|
+
}
|
|
1317
|
+
sortChildren() {
|
|
1318
|
+
let e = this.dataGrid;
|
|
1319
|
+
if (!(!e || !this.expanded)) {
|
|
1320
|
+
if (this.#t || this.#n !== e.sortingFunction) {
|
|
1321
|
+
this.children.sort(e.sortingFunction), this.#t = !1, this.#n = e.sortingFunction;
|
|
1322
|
+
for (let e = 0; e < this.children.length; ++e) this.children[e].recalculateSiblings(e);
|
|
1323
|
+
}
|
|
1324
|
+
for (let e = 0; e < this.children.length; ++e) this.children[e].sortChildren();
|
|
1325
|
+
}
|
|
1326
|
+
}
|
|
1327
|
+
}, _e = /* @__PURE__ */ e({ ShowMoreDataGridNode: () => Z }), Y = {
|
|
1328
|
+
showDBefore: "Show {PH1} before",
|
|
1329
|
+
showDAfter: "Show {PH1} after",
|
|
1330
|
+
showAllD: "Show all {PH1}"
|
|
1331
|
+
}, ve = u("ui/legacy/components/data_grid/ShowMoreDataGridNode.ts", Y), X = s.bind(void 0, ve), Z = class extends V {
|
|
1332
|
+
callback;
|
|
1333
|
+
startPosition;
|
|
1334
|
+
endPosition;
|
|
1335
|
+
chunkSize;
|
|
1336
|
+
showNext;
|
|
1337
|
+
showAll;
|
|
1338
|
+
showLast;
|
|
1339
|
+
selectable;
|
|
1340
|
+
hasCells;
|
|
1341
|
+
constructor(e, t, n, r) {
|
|
1342
|
+
super({ summaryRow: !0 }, !1), this.callback = e, this.startPosition = t, this.endPosition = n, this.chunkSize = r, this.showNext = b(X(Y.showDBefore, { PH1: this.chunkSize })), this.showNext.addEventListener("click", this.showNextChunk.bind(this), !1), this.showAll = b(""), this.showAll.addEventListener("click", this.#e.bind(this), !1), this.showLast = b(X(Y.showDAfter, { PH1: this.chunkSize })), this.showLast.addEventListener("click", this.showLastChunk.bind(this), !1), this.updateLabels(), this.selectable = !1;
|
|
1343
|
+
}
|
|
1344
|
+
showNextChunk() {
|
|
1345
|
+
this.callback(this.startPosition, this.startPosition + this.chunkSize);
|
|
1346
|
+
}
|
|
1347
|
+
#e() {
|
|
1348
|
+
this.callback(this.startPosition, this.endPosition);
|
|
1349
|
+
}
|
|
1350
|
+
showLastChunk() {
|
|
1351
|
+
this.callback(this.endPosition - this.chunkSize, this.endPosition);
|
|
1352
|
+
}
|
|
1353
|
+
updateLabels() {
|
|
1354
|
+
let e = this.endPosition - this.startPosition;
|
|
1355
|
+
e > this.chunkSize ? (this.showNext.classList.remove("hidden"), this.showLast.classList.remove("hidden")) : (this.showNext.classList.add("hidden"), this.showLast.classList.add("hidden")), this.showAll.textContent = X(Y.showAllD, { PH1: e });
|
|
1356
|
+
}
|
|
1357
|
+
createCells(e) {
|
|
1358
|
+
this.hasCells = !1, super.createCells(e);
|
|
1359
|
+
}
|
|
1360
|
+
createCell(e) {
|
|
1361
|
+
let t = this.createTD(e);
|
|
1362
|
+
return t.classList.add("show-more"), this.hasCells || (this.hasCells = !0, this.depth && this.dataGrid && t.style.setProperty("padding-left", this.depth * this.dataGrid.indentWidth + "px"), t.appendChild(this.showNext), t.appendChild(this.showAll), t.appendChild(this.showLast)), t;
|
|
1363
|
+
}
|
|
1364
|
+
setStartPosition(e) {
|
|
1365
|
+
this.startPosition = e, this.updateLabels();
|
|
1366
|
+
}
|
|
1367
|
+
setEndPosition(e) {
|
|
1368
|
+
this.endPosition = e, this.updateLabels();
|
|
1369
|
+
}
|
|
1370
|
+
nodeSelfHeight() {
|
|
1371
|
+
return 40;
|
|
1372
|
+
}
|
|
1373
|
+
dispose() {}
|
|
1374
|
+
}, ye = "dummy", be = class extends m {
|
|
1375
|
+
static observedAttributes = [
|
|
1376
|
+
"striped",
|
|
1377
|
+
"name",
|
|
1378
|
+
"inline",
|
|
1379
|
+
"resize"
|
|
1380
|
+
];
|
|
1381
|
+
#e = q.create([ye], [], "");
|
|
1382
|
+
#t = new ResizeObserver(() => {
|
|
1383
|
+
this.inline || this.#e.onResize();
|
|
1384
|
+
});
|
|
1385
|
+
#n;
|
|
1386
|
+
#r = [];
|
|
1387
|
+
#i = /* @__PURE__ */ new Set();
|
|
1388
|
+
#a = /* @__PURE__ */ new Set();
|
|
1389
|
+
#o = null;
|
|
1390
|
+
constructor() {
|
|
1391
|
+
super(), this.style.display = "flex", this.#e.element.style.flex = "auto", this.#n = ue(this, {
|
|
1392
|
+
delegatesFocus: !0,
|
|
1393
|
+
cssFile: E
|
|
1394
|
+
}), this.#n.appendChild(this.#e.element), this.#e.addEventListener(I.SELECTED_NODE, (e) => e.data.configElement.dispatchEvent(new CustomEvent("select"))), this.#e.addEventListener(I.DESELECTED_NODE, () => this.dispatchEvent(new CustomEvent("deselect"))), this.#e.addEventListener(I.OPENED_NODE, (e) => e.data.configElement.dispatchEvent(new CustomEvent("open"))), this.#e.addEventListener(I.EXPANDED_NODE, (e) => e.data.configElement.dispatchEvent(new CustomEvent("expand"))), this.#e.addEventListener(I.COLLAPSED_NODE, (e) => e.data.configElement.dispatchEvent(new CustomEvent("collapse"))), this.#e.addEventListener(I.SORTING_CHANGED, () => this.dispatchEvent(new CustomEvent("sort", { detail: {
|
|
1395
|
+
columnId: this.#e.sortColumnId(),
|
|
1396
|
+
ascending: this.#e.isSortOrderAscending()
|
|
1397
|
+
} }))), this.#e.setRowContextMenuCallback((e, t) => {
|
|
1398
|
+
t.configElement.dispatchEvent(new CustomEvent("contextmenu", { detail: e }));
|
|
1399
|
+
}), this.#e.setHeaderContextMenuCallback((e) => {
|
|
1400
|
+
for (let t of this.#r) this.#i.has(t.id) && e.defaultSection().appendCheckboxItem(this.#e.columns[t.id].title, () => {
|
|
1401
|
+
this.#a.has(t.id) ? this.#a.delete(t.id) : this.#a.add(t.id), this.#e.setColumnsVisibility(new Set(this.#r.map(({ id: e }) => e).filter((e) => !this.#a.has(e))));
|
|
1402
|
+
}, { checked: !this.#a.has(t.id) });
|
|
1403
|
+
}), this.#t.observe(this), this.#c(), this.addNodes(this.templateRoot.querySelectorAll("tr"));
|
|
1404
|
+
}
|
|
1405
|
+
attributeChangedCallback(e, t, n) {
|
|
1406
|
+
if (t !== n) switch (e) {
|
|
1407
|
+
case "striped":
|
|
1408
|
+
this.#e.setStriped(n !== "true");
|
|
1409
|
+
break;
|
|
1410
|
+
case "name":
|
|
1411
|
+
this.#e.displayName = n ?? "";
|
|
1412
|
+
break;
|
|
1413
|
+
case "inline":
|
|
1414
|
+
this.#e.renderInline();
|
|
1415
|
+
break;
|
|
1416
|
+
case "resize":
|
|
1417
|
+
this.#e.setResizeMethod(n);
|
|
1418
|
+
break;
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
set striped(e) {
|
|
1422
|
+
this.toggleAttribute("striped", e);
|
|
1423
|
+
}
|
|
1424
|
+
get striped() {
|
|
1425
|
+
return $(this, "striped");
|
|
1426
|
+
}
|
|
1427
|
+
set inline(e) {
|
|
1428
|
+
this.toggleAttribute("inline", e);
|
|
1429
|
+
}
|
|
1430
|
+
get inline() {
|
|
1431
|
+
return $(this, "inline");
|
|
1432
|
+
}
|
|
1433
|
+
set displayName(e) {
|
|
1434
|
+
this.setAttribute("name", e);
|
|
1435
|
+
}
|
|
1436
|
+
get displayName() {
|
|
1437
|
+
return this.getAttribute("name");
|
|
1438
|
+
}
|
|
1439
|
+
set resizeMethod(e) {
|
|
1440
|
+
this.setAttribute("resize", e);
|
|
1441
|
+
}
|
|
1442
|
+
get resizeMethod() {
|
|
1443
|
+
return this.getAttribute("resize");
|
|
1444
|
+
}
|
|
1445
|
+
set filters(e) {
|
|
1446
|
+
this.#e.setFilters(e), this.#e.element.setAttribute("aria-rowcount", String(this.#e.getNumberOfRows()));
|
|
1447
|
+
}
|
|
1448
|
+
get columns() {
|
|
1449
|
+
return this.#r;
|
|
1450
|
+
}
|
|
1451
|
+
#s(e, t) {
|
|
1452
|
+
let n = e.children.length > 0;
|
|
1453
|
+
n ||= !!t.querySelector("td table"), e.setHasChildren(n);
|
|
1454
|
+
}
|
|
1455
|
+
#c() {
|
|
1456
|
+
for (let e of Object.keys(this.#e.columns)) this.#e.removeColumn(e);
|
|
1457
|
+
this.#i.clear(), this.#r = [];
|
|
1458
|
+
let e = !1;
|
|
1459
|
+
for (let t of this.templateRoot.querySelectorAll("th[id]") || []) {
|
|
1460
|
+
let n = t.id, r = t.textContent?.trim() || "", i = t.firstElementChild ? document.createDocumentFragment() : void 0;
|
|
1461
|
+
if (i) {
|
|
1462
|
+
r = "";
|
|
1463
|
+
for (let e of t.children) i.appendChild(e.cloneNode(!0)), r += e.shadowRoot ? e.shadowRoot.textContent : e.textContent;
|
|
1464
|
+
}
|
|
1465
|
+
let a = $(t, "sortable"), o = t.getAttribute("width") ?? void 0, s = t.hasAttribute("fixed"), c = t.getAttribute("align") ?? void 0;
|
|
1466
|
+
c !== R.CENTER && c !== R.RIGHT && (c = void 0);
|
|
1467
|
+
let l = t.getAttribute("type") === "boolean" ? z.BOOLEAN : z.STRING, u = parseFloat(t.getAttribute("weight") || "") ?? void 0, d = t.hasAttribute("editable");
|
|
1468
|
+
d && (e = !0);
|
|
1469
|
+
let f = t.getAttribute("sort") === "descending" ? L.Descending : t.getAttribute("sort") === "ascending" ? L.Ascending : void 0, p = {
|
|
1470
|
+
id: n,
|
|
1471
|
+
title: r,
|
|
1472
|
+
titleDOMFragment: i,
|
|
1473
|
+
sortable: a,
|
|
1474
|
+
sort: f,
|
|
1475
|
+
fixedWidth: s,
|
|
1476
|
+
width: o,
|
|
1477
|
+
align: c,
|
|
1478
|
+
weight: u,
|
|
1479
|
+
editable: d,
|
|
1480
|
+
dataType: l
|
|
1481
|
+
};
|
|
1482
|
+
this.#e.addColumn(p), this.#r.push(p), $(t, "hideable") && this.#i.add(n);
|
|
1483
|
+
}
|
|
1484
|
+
let t = new Set(this.#r.map(({ id: e }) => e).filter((e) => !this.#a.has(e)));
|
|
1485
|
+
t.size && this.#e.setColumnsVisibility(t), this.#e.setEditCallback(e ? this.#m.bind(this) : void 0, xe), this.#e.deleteCallback = e ? this.#h.bind(this) : void 0;
|
|
1486
|
+
}
|
|
1487
|
+
#l(e) {
|
|
1488
|
+
for (let t of e) {
|
|
1489
|
+
for (let e of [...t.removedNodes, ...t.addedNodes]) if (e instanceof HTMLElement && (e.nodeName === "TH" || e.querySelector("th"))) return !0;
|
|
1490
|
+
if (t.target instanceof HTMLElement && t.target.closest("th")) return !0;
|
|
1491
|
+
}
|
|
1492
|
+
return !1;
|
|
1493
|
+
}
|
|
1494
|
+
#u(e) {
|
|
1495
|
+
return [...e].flatMap((e) => e instanceof HTMLTableRowElement ? [e, ...e.querySelectorAll("table tr")] : e instanceof HTMLElement ? [...e.querySelectorAll("tr")] : []).filter((e) => e.querySelector("td") && !$(e, "placeholder"));
|
|
1496
|
+
}
|
|
1497
|
+
#d(e) {
|
|
1498
|
+
return [...e].flatMap((e) => e instanceof HTMLStyleElement ? [e] : e instanceof HTMLElement ? [...e.querySelectorAll("style")] : []);
|
|
1499
|
+
}
|
|
1500
|
+
#f(e) {
|
|
1501
|
+
for (let t = e.nextElementSibling; t; t = t.nextElementSibling) {
|
|
1502
|
+
let e = Q.get(t);
|
|
1503
|
+
if (e) return e;
|
|
1504
|
+
}
|
|
1505
|
+
return null;
|
|
1506
|
+
}
|
|
1507
|
+
addNodes(e) {
|
|
1508
|
+
for (let t of this.#u(e)) {
|
|
1509
|
+
let e = t.parentElement?.closest("td")?.closest("tr"), n = (e ? Q.get(e) : void 0) || this.#e.rootNode(), r = this.#f(t), i = r ? n.children.indexOf(r) : n.children.length, a = new Q(t, this);
|
|
1510
|
+
this.#s(a, t), (e || a.hasChildren()) && !this.#e.disclosureColumnId && (this.#e.disclosureColumnId = this.#r[0].id), n.insertChild(a, i), $(t, "selected") && a.select(), $(t, "dirty") && a.setDirty(!0), $(t, "inactive") && a.setInactive(!0), $(t, "highlighted") && a.setHighlighted(!0);
|
|
1511
|
+
}
|
|
1512
|
+
for (let t of this.#d(e)) this.#n.appendChild(t.cloneNode(!0));
|
|
1513
|
+
this.#e.dispatchEventToListeners(I.SORTING_CHANGED);
|
|
1514
|
+
}
|
|
1515
|
+
removeNodes(e) {
|
|
1516
|
+
for (let t of this.#u(e)) {
|
|
1517
|
+
let e = Q.get(t);
|
|
1518
|
+
e && Q.remove(e);
|
|
1519
|
+
}
|
|
1520
|
+
}
|
|
1521
|
+
updateNode(e, t) {
|
|
1522
|
+
for (; e?.parentNode && !(e instanceof HTMLElement);) e = e.parentNode;
|
|
1523
|
+
let n = e instanceof HTMLElement ? e.closest("tr") : null, r = n ? Q.get(n) : null;
|
|
1524
|
+
r && n && (t === "selected" ? $(n, "selected") ? r.select() : r.deselect() : t === "dirty" ? r.setDirty($(n, "dirty")) : t === "inactive" ? r.setInactive($(n, "inactive")) : t === "highlighted" ? r.setHighlighted($(n, "highlighted")) : (this.#s(r, n), r.refresh()));
|
|
1525
|
+
}
|
|
1526
|
+
deselectRow() {
|
|
1527
|
+
this.#e.selectedNode?.deselect();
|
|
1528
|
+
}
|
|
1529
|
+
#p() {
|
|
1530
|
+
this.#o && (Q.remove(this.#o), this.#o = null, this.#e.creationNode = void 0);
|
|
1531
|
+
let e = this.templateRoot.querySelector("tr[placeholder]");
|
|
1532
|
+
if (!e) this.#e.creationNode?.remove(), this.#e.creationNode = void 0;
|
|
1533
|
+
else if (!Q.get(e)) {
|
|
1534
|
+
this.#e.creationNode?.remove();
|
|
1535
|
+
let t = new Q(e, this);
|
|
1536
|
+
this.#e.creationNode = t, this.#e.rootNode().appendChild(t);
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
onChange(e) {
|
|
1540
|
+
this.#l(e) && this.#c(), this.#p();
|
|
1541
|
+
let t = e.some((e) => e.addedNodes.length > 0);
|
|
1542
|
+
this.#e.sortColumnId() !== null && !t && this.#e.dispatchEventToListeners(I.SORTING_CHANGED);
|
|
1543
|
+
}
|
|
1544
|
+
#m(e, t, n, r, i) {
|
|
1545
|
+
if (e.isCreationNode) {
|
|
1546
|
+
this.#o = e;
|
|
1547
|
+
let n = !1;
|
|
1548
|
+
if (i) {
|
|
1549
|
+
let e = this.#r.findIndex(({ id: e }) => e === t);
|
|
1550
|
+
n = (i === "forward" ? this.#r.slice(e + 1) : this.#r.slice(0, e)).some(({ editable: e }) => e);
|
|
1551
|
+
}
|
|
1552
|
+
n || e.deselect();
|
|
1553
|
+
return;
|
|
1554
|
+
}
|
|
1555
|
+
e.configElement.dispatchEvent(new CustomEvent("edit", { detail: {
|
|
1556
|
+
columnId: t,
|
|
1557
|
+
valueBeforeEditing: n,
|
|
1558
|
+
newText: r
|
|
1559
|
+
} }));
|
|
1560
|
+
}
|
|
1561
|
+
#h(e) {
|
|
1562
|
+
e.configElement.dispatchEvent(new CustomEvent("delete"));
|
|
1563
|
+
}
|
|
1564
|
+
addEventListener(...e) {
|
|
1565
|
+
super.addEventListener(...e), e[0] === "refresh" && (this.#e.refreshCallback = this.#g.bind(this));
|
|
1566
|
+
}
|
|
1567
|
+
#g() {
|
|
1568
|
+
this.dispatchEvent(new CustomEvent("refresh"));
|
|
1569
|
+
}
|
|
1570
|
+
}, Q = class e extends J {
|
|
1571
|
+
static #e = /* @__PURE__ */ new WeakMap();
|
|
1572
|
+
#t;
|
|
1573
|
+
#n;
|
|
1574
|
+
#r = /* @__PURE__ */ new Set();
|
|
1575
|
+
constructor(t, n) {
|
|
1576
|
+
super(), this.#t = t, e.#e.set(t, this), this.#n = n, this.#i(), this.isCreationNode = $(this.#t, "placeholder");
|
|
1577
|
+
}
|
|
1578
|
+
static get(t) {
|
|
1579
|
+
return t && e.#e.get(t);
|
|
1580
|
+
}
|
|
1581
|
+
get configElement() {
|
|
1582
|
+
return this.#t;
|
|
1583
|
+
}
|
|
1584
|
+
#i() {
|
|
1585
|
+
let e = [...this.#t.children].filter((e) => e.tagName === "TD");
|
|
1586
|
+
for (let t = 0; t < this.#n.columns.length; ++t) {
|
|
1587
|
+
let n = e[t];
|
|
1588
|
+
if (!n) continue;
|
|
1589
|
+
let r = this.#n.columns[t];
|
|
1590
|
+
r.dataType === z.BOOLEAN ? this.data[r.id] = $(n, "data-value") || n.textContent === "true" : this.data[r.id] = n.dataset.value ?? n.textContent ?? "";
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
createElement() {
|
|
1594
|
+
let e = super.createElement();
|
|
1595
|
+
e.addEventListener("click", this.#a.bind(this)), e.addEventListener("mouseenter", this.#a.bind(this)), e.addEventListener("mouseleave", this.#a.bind(this)), this.#t.hasAttribute("style") && e.setAttribute("style", this.#t.getAttribute("style") || "");
|
|
1596
|
+
for (let t of this.#t.classList) e.classList.add(t);
|
|
1597
|
+
return e;
|
|
1598
|
+
}
|
|
1599
|
+
refresh() {
|
|
1600
|
+
this.#i(), super.refresh();
|
|
1601
|
+
let e = this.existingElement();
|
|
1602
|
+
if (e) {
|
|
1603
|
+
this.#t.hasAttribute("style") && e.setAttribute("style", this.#t.getAttribute("style") || "");
|
|
1604
|
+
for (let t of this.#r) e.classList.remove(t);
|
|
1605
|
+
for (let t of this.#t.classList) e.classList.add(t);
|
|
1606
|
+
}
|
|
1607
|
+
}
|
|
1608
|
+
#a(e) {
|
|
1609
|
+
let t = m.findCorrespondingElement(e.target, e.currentTarget, this.#t);
|
|
1610
|
+
if (!t) throw Error("Cell click event target not found in the data grid");
|
|
1611
|
+
t instanceof HTMLElement && t?.dispatchEvent(new MouseEvent(e.type, {
|
|
1612
|
+
bubbles: !0,
|
|
1613
|
+
composed: !0
|
|
1614
|
+
}));
|
|
1615
|
+
}
|
|
1616
|
+
createCells(e) {
|
|
1617
|
+
let t = [...this.#t.querySelectorAll("td")];
|
|
1618
|
+
if (!t.some((e) => e.hasAttribute("colspan"))) super.createCells(e);
|
|
1619
|
+
else for (let n of t) e.appendChild(n.cloneNode(!0));
|
|
1620
|
+
}
|
|
1621
|
+
createCell(e) {
|
|
1622
|
+
let t = this.#n.columns.findIndex(({ id: t }) => t === e);
|
|
1623
|
+
if (this.#n.columns[t].dataType === z.BOOLEAN) {
|
|
1624
|
+
let t = super.createCell(e);
|
|
1625
|
+
return t.setAttribute("part", `${e}-column`), t;
|
|
1626
|
+
}
|
|
1627
|
+
let n = this.createTD(e);
|
|
1628
|
+
n.setAttribute("part", `${e}-column`);
|
|
1629
|
+
let r = [...this.#t.children].filter((e) => e.tagName === "TD")[t];
|
|
1630
|
+
if (this.isCreationNode && !r) return n;
|
|
1631
|
+
if (!r) throw Error(`Column ${e} not found in the data grid`);
|
|
1632
|
+
for (let e of r.childNodes) n.appendChild(e.cloneNode(!0));
|
|
1633
|
+
for (let e of r.classList) n.classList.add(e);
|
|
1634
|
+
n.title = r.title, r.hasAttribute("aria-label") && this.setCellAccessibleName(r.getAttribute("aria-label") || "", n, e);
|
|
1635
|
+
let i = r.getAttribute("style");
|
|
1636
|
+
return i !== null && n.setAttribute("style", i), n;
|
|
1637
|
+
}
|
|
1638
|
+
static remove(t) {
|
|
1639
|
+
e.#e.delete(t.#t), t.remove();
|
|
1640
|
+
}
|
|
1641
|
+
deselect() {
|
|
1642
|
+
super.deselect(), this.isCreationNode && this.#n.dispatchEvent(new CustomEvent("create", { detail: this.data }));
|
|
1643
|
+
}
|
|
1644
|
+
};
|
|
1645
|
+
customElements.define("devtools-data-grid", be);
|
|
1646
|
+
function $(e, t) {
|
|
1647
|
+
return e.hasAttribute(t) && e.getAttribute(t) !== "false";
|
|
1648
|
+
}
|
|
1649
|
+
var xe = { token: "DataGridInternalToken" }, Se = re(class extends fe {
|
|
1650
|
+
#e;
|
|
1651
|
+
constructor(e) {
|
|
1652
|
+
if (e.type !== d.CHILD) throw Error("ifExpanded directive must be used in a child node");
|
|
1653
|
+
super(e), this.#e = e;
|
|
1654
|
+
}
|
|
1655
|
+
render(e) {
|
|
1656
|
+
return this.#t(this.#e.startNode) ? e : y;
|
|
1657
|
+
}
|
|
1658
|
+
#t(e) {
|
|
1659
|
+
if (!e || (e instanceof HTMLElement || (e = e.parentNode), !(e instanceof HTMLElement))) return !1;
|
|
1660
|
+
let t = Q.get(e.closest("tr") ?? void 0);
|
|
1661
|
+
return t ? t.expanded : !1;
|
|
1662
|
+
}
|
|
1663
|
+
}), Ce = /* @__PURE__ */ e({
|
|
1664
|
+
DataGrid: () => pe,
|
|
1665
|
+
ShowMoreDataGridNode: () => _e,
|
|
1666
|
+
SortableDataGrid: () => ge,
|
|
1667
|
+
ViewportDataGrid: () => me,
|
|
1668
|
+
ifExpanded: () => Se
|
|
1669
|
+
});
|
|
1670
|
+
//#endregion
|
|
1671
|
+
export { G as a, F as c, L as d, B as f, J as i, V as l, Z as n, W as o, q as r, R as s, Ce as t, I as u };
|