ember-inspector 4.13.1 → 4.15.0
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/.ember-cli +1 -9
- package/.github/workflows/build.yml +33 -112
- package/.github/workflows/plan-release.yml +26 -48
- package/.github/workflows/publish.yml +129 -31
- package/.prettierignore +2 -13
- package/.prettierrc.js +10 -4
- package/.release-plan.json +13 -4
- package/.stylelintignore +8 -0
- package/.stylelintrc.js +10 -1
- package/.template-lintrc.js +2 -1
- package/.tool-versions +2 -2
- package/.watchmanconfig +1 -1
- package/CHANGELOG.md +137 -0
- package/DEVELOPMENT.md +50 -0
- package/PRIVACY.md +3 -0
- package/README.md +14 -50
- package/RELEASE.md +15 -50
- package/app/components/app-picker.hbs +2 -2
- package/app/components/component-tree-item.hbs +14 -14
- package/app/components/component-tree-toolbar.hbs +17 -3
- package/app/components/{date-property-field.js → date-property-field.ts} +6 -5
- package/app/components/deprecation-item-source.hbs +1 -1
- package/app/components/deprecation-item.hbs +1 -1
- package/app/components/deprecations-toolbar.hbs +1 -1
- package/app/components/item-types.hbs +7 -7
- package/app/components/list-cell.hbs +3 -3
- package/app/components/list-content.hbs +4 -3
- package/app/components/list-content.ts +96 -0
- package/app/components/list.hbs +3 -3
- package/app/components/list.js +7 -7
- package/app/components/model-types-toolbar.hbs +3 -3
- package/app/components/object-inspector/component-parents.hbs +33 -0
- package/app/components/object-inspector/component-parents.js +43 -0
- package/app/components/object-inspector/dependent-keys.hbs +4 -4
- package/app/components/object-inspector/errors.hbs +4 -4
- package/app/components/object-inspector/properties-all.hbs +1 -1
- package/app/components/object-inspector/properties-base.js +2 -0
- package/app/components/object-inspector/properties-grouped.hbs +5 -5
- package/app/components/object-inspector/property.hbs +36 -34
- package/app/components/object-inspector/property.ts +34 -17
- package/app/components/object-inspector/sort-properties.js +12 -4
- package/app/components/object-inspector/toggle.hbs +9 -0
- package/app/components/object-inspector/toggle.js +6 -0
- package/app/components/object-inspector.hbs +11 -9
- package/app/components/object-inspector.js +1 -1
- package/app/components/promise-item.hbs +11 -11
- package/app/components/promise-item.js +8 -6
- package/app/components/promise-tree-toolbar.hbs +5 -5
- package/app/components/records-toolbar.hbs +2 -2
- package/app/components/render-item.hbs +4 -4
- package/app/components/render-item.ts +12 -9
- package/app/components/render-tree-toolbar.hbs +1 -1
- package/app/components/route-cell-name.hbs +1 -1
- package/app/components/route-cell-name.js +3 -2
- package/app/components/route-tree-toolbar.hbs +2 -2
- package/app/components/scroll-container.js +2 -0
- package/app/components/side-nav.hbs +5 -5
- package/app/components/side-nav.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.hbs +4 -4
- package/{lib/ui/addon/components → app/components/ui}/drag-handle.js +3 -1
- package/{lib/ui/addon/components → app/components/ui}/empty-message.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/error-page.hbs +3 -3
- package/{lib/ui/addon/components → app/components/ui}/resizable-column.js +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-clear-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-reload-button.hbs +1 -1
- package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.hbs +2 -2
- package/app/computed/{debounce.js → debounce.ts} +7 -5
- package/app/config/environment.d.ts +5 -2
- package/app/controllers/app-config.js +1 -0
- package/app/controllers/application.js +36 -71
- package/app/controllers/component-tree.js +26 -7
- package/app/controllers/container-type.js +2 -1
- package/app/controllers/container-types/{index.js → index.ts} +5 -2
- package/app/controllers/container-types.js +3 -6
- package/app/controllers/deprecations.js +16 -11
- package/app/controllers/libraries.js +1 -0
- package/app/controllers/model-types.js +7 -13
- package/app/controllers/promise-tree.ts +149 -0
- package/app/controllers/records.js +18 -26
- package/app/controllers/{render-tree.js → render-tree.ts} +54 -45
- package/app/controllers/route-tree.js +7 -5
- package/app/helpers/build-style.js +1 -1
- package/app/index.html +1 -19
- package/app/initializers/setup.js +1 -1
- package/app/libs/promise-assembler.ts +249 -0
- package/app/libs/resizable-columns.js +10 -10
- package/app/models/{promise.js → promise.ts} +72 -69
- package/app/{router.js → router.ts} +1 -1
- package/app/routes/app-detected.js +3 -5
- package/app/routes/application.js +9 -13
- package/app/routes/deprecations.js +7 -16
- package/app/routes/launch.js +2 -1
- package/app/routes/libraries.js +2 -1
- package/app/routes/model-type.js +2 -3
- package/app/routes/model-types.ts +57 -0
- package/app/routes/promise-tree.ts +63 -0
- package/app/routes/records.ts +78 -0
- package/app/routes/render-tree.ts +93 -0
- package/app/routes/route-tree.js +0 -1
- package/app/routes/{tab.js → tab.ts} +9 -2
- package/app/routes/whats-new.js +6 -4
- package/app/services/adapters/{basic.js → basic.ts} +36 -30
- package/app/services/adapters/{bookmarklet.js → bookmarklet.ts} +17 -24
- package/app/services/adapters/{chrome.js → chrome.ts} +1 -2
- package/app/services/adapters/{web-extension.js → web-extension.ts} +46 -46
- package/app/services/adapters/websocket.ts +40 -0
- package/app/services/layout.ts +124 -0
- package/app/services/port.ts +195 -0
- package/app/services/storage/{local.js → local.ts} +7 -20
- package/app/services/storage/{memory.js → memory.ts} +6 -21
- package/app/services/{storage.js → storage.ts} +25 -23
- package/app/styles/app.scss +1 -0
- package/app/styles/base.scss +6 -2
- package/app/styles/colors.scss +33 -31
- package/app/styles/component_tree.scss +56 -51
- package/app/styles/dropdown.scss +2 -2
- package/app/styles/ember-table.scss +3 -3
- package/app/styles/mixin.scss +26 -26
- package/app/styles/object_inspector.scss +30 -21
- package/{lib/ui/addon/styles → app/styles/ui}/_disclosure-triangle.scss +3 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_drag-handle.scss +7 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_empty-message.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_error-page.scss +8 -7
- package/{lib/ui/addon/styles → app/styles/ui}/_list.scss +46 -45
- package/{lib/ui/addon/styles → app/styles/ui}/_nav.scss +29 -27
- package/app/styles/ui/_object-inspector-toggle.scss +4 -0
- package/{lib/ui/addon/styles → app/styles/ui}/_pill.scss +4 -4
- package/{lib/ui/addon/styles → app/styles/ui}/_send-to-console.scss +1 -1
- package/{lib/ui/addon/styles → app/styles/ui}/_split.scss +26 -20
- package/app/styles/ui/_ui.scss +13 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_checkbox.scss +5 -5
- package/app/styles/ui/toolbar/_icon-button.scss +80 -0
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_index.scss +6 -5
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_radio.scss +10 -10
- package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_search.scss +5 -3
- package/app/styles/utils.scss +408 -122
- package/app/templates/application.hbs +22 -19
- package/app/templates/component-tree.hbs +4 -1
- package/app/templates/deprecations.hbs +2 -3
- package/app/templates/info.hbs +10 -10
- package/app/templates/promise-tree.hbs +1 -1
- package/app/templates/render-tree.hbs +1 -1
- package/app/templates/route-tree.hbs +1 -1
- package/app/utils/escape-reg-exp.ts +3 -2
- package/app/utils/nullish.ts +7 -0
- package/app/utils/parse-text.ts +4 -5
- package/app/utils/truncate.js +0 -1
- package/config/ember-cli-update.json +5 -3
- package/config/ember-try.js +117 -72
- package/config/environment.js +1 -1
- package/config/optional-features.json +2 -1
- package/dist/bookmarklet/load_inspector.js +31 -11
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/bookmarklet/panes-3-16-0/assets/ember-inspector.js +560 -613
- package/dist/bookmarklet/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/bookmarklet/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/bookmarklet/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/bookmarklet/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/bookmarklet/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/bookmarklet/panes-3-16-0/basic-B1dkgN3d.js +149 -0
- package/dist/bookmarklet/panes-3-16-0/basic-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/bookmarklet/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/ember.js +166 -0
- package/dist/bookmarklet/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/bookmarklet/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/bookmarklet/panes-3-16-0/firefox-debug.js +10 -0
- package/dist/bookmarklet/panes-3-16-0/index.html +4 -23
- package/dist/bookmarklet/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/bookmarklet/panes-3-16-0/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/bookmarklet/panes-3-16-0/main.js +7669 -0
- package/dist/bookmarklet/panes-3-16-0/port.js +108 -0
- package/dist/bookmarklet/panes-3-16-0/profile-node.js +60 -0
- package/dist/bookmarklet/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/bookmarklet/panes-3-16-0/runloop-6_0lpzTA.js +1138 -0
- package/dist/bookmarklet/panes-3-16-0/start-inspector-BIYQArZn.js +334 -0
- package/dist/bookmarklet/panes-3-16-0/type-check.js +119 -0
- package/dist/bookmarklet/panes-3-16-0/version.js +90 -0
- package/dist/bookmarklet/panes-3-16-0/versions.js +4 -0
- package/dist/bookmarklet/panes-3-16-0/web-extension-OWnXJ_XK.js +144 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/bookmarklet/panes-3-16-0/websocket-debug.js +10 -0
- package/dist/chrome/background.js +26 -21
- package/dist/chrome/boot.js +1 -1
- package/dist/chrome/content-script.js +12 -11
- package/dist/chrome/devtools.js +12 -3
- package/dist/chrome/manifest.json +4 -2
- package/dist/chrome/options.js +17 -12
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/chrome/panes-3-16-0/assets/ember-inspector.js +560 -613
- package/dist/chrome/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/chrome/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/chrome/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/chrome/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/chrome/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/chrome/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/chrome/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/chrome/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/chrome/panes-3-16-0/basic-B1dkgN3d.js +149 -0
- package/dist/chrome/panes-3-16-0/basic-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/chrome/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/chrome/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/ember.js +166 -0
- package/dist/chrome/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/chrome/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/chrome/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/chrome/panes-3-16-0/firefox-debug.js +10 -0
- package/dist/chrome/panes-3-16-0/index.html +4 -23
- package/dist/chrome/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/chrome/panes-3-16-0/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/chrome/panes-3-16-0/main.js +7669 -0
- package/dist/chrome/panes-3-16-0/port.js +108 -0
- package/dist/chrome/panes-3-16-0/profile-node.js +60 -0
- package/dist/chrome/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/chrome/panes-3-16-0/runloop-6_0lpzTA.js +1138 -0
- package/dist/chrome/panes-3-16-0/start-inspector-BIYQArZn.js +334 -0
- package/dist/chrome/panes-3-16-0/type-check.js +119 -0
- package/dist/chrome/panes-3-16-0/version.js +90 -0
- package/dist/chrome/panes-3-16-0/versions.js +4 -0
- package/dist/chrome/panes-3-16-0/web-extension-OWnXJ_XK.js +144 -0
- package/dist/chrome/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/chrome/panes-3-16-0/websocket-debug.js +10 -0
- package/dist/chrome/scripts/in-page-script.js +19 -13
- package/dist/firefox/background.js +26 -21
- package/dist/firefox/boot.js +1 -1
- package/dist/firefox/content-script.js +12 -11
- package/dist/firefox/devtools.js +12 -3
- package/dist/firefox/manifest.json +4 -2
- package/dist/firefox/options.js +17 -12
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.css +997 -156
- package/dist/firefox/panes-3-16-0/assets/ember-inspector.js +560 -613
- package/dist/firefox/panes-3-16-0/assets/svg/ellipsis.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/focus-point-round.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/svg/nav-bug.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-components.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-container.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-data.svg +1 -1
- package/dist/firefox/panes-3-16-0/assets/svg/nav-deprecations.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-info.svg +3 -3
- package/dist/firefox/panes-3-16-0/assets/svg/nav-promises.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-render-performance.svg +2 -2
- package/dist/firefox/panes-3-16-0/assets/svg/nav-route-tree.svg +7 -7
- package/dist/firefox/panes-3-16-0/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/firefox/panes-3-16-0/assets/vendor.css +4 -841
- package/dist/firefox/panes-3-16-0/assets/vendor.js +4277 -5152
- package/dist/firefox/panes-3-16-0/base-object-HAEdWjmg.js +59 -0
- package/dist/firefox/panes-3-16-0/basic-B1dkgN3d.js +149 -0
- package/dist/firefox/panes-3-16-0/basic-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/firefox/panes-3-16-0/bookmarklet-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/chrome-P6FSEUf1.js +10 -0
- package/dist/firefox/panes-3-16-0/chrome-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/ember.js +166 -0
- package/dist/firefox/panes-3-16-0/ember_debug.js +7 -11018
- package/dist/firefox/panes-3-16-0/evented-BCTya3yE.js +62 -0
- package/dist/firefox/panes-3-16-0/firefox-8F84zphP.js +30 -0
- package/dist/firefox/panes-3-16-0/firefox-debug.js +10 -0
- package/dist/firefox/panes-3-16-0/index.html +4 -23
- package/dist/firefox/panes-3-16-0/internals-CRmXMEzb.js +12 -0
- package/dist/firefox/panes-3-16-0/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/firefox/panes-3-16-0/main.js +7669 -0
- package/dist/firefox/panes-3-16-0/port.js +108 -0
- package/dist/firefox/panes-3-16-0/profile-node.js +60 -0
- package/dist/firefox/panes-3-16-0/promise-assembler.js +218 -0
- package/dist/firefox/panes-3-16-0/runloop-6_0lpzTA.js +1138 -0
- package/dist/firefox/panes-3-16-0/start-inspector-BIYQArZn.js +334 -0
- package/dist/firefox/panes-3-16-0/type-check.js +119 -0
- package/dist/firefox/panes-3-16-0/version.js +90 -0
- package/dist/firefox/panes-3-16-0/versions.js +4 -0
- package/dist/firefox/panes-3-16-0/web-extension-OWnXJ_XK.js +144 -0
- package/dist/firefox/panes-3-16-0/websocket-BSUvUqER.js +58 -0
- package/dist/firefox/panes-3-16-0/websocket-debug.js +10 -0
- package/dist/firefox/scripts/in-page-script.js +19 -13
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js +1135 -0
- package/dist/websocket/assets/chunk.443.86a005e528b587663b78.js.LICENSE.txt +18 -0
- package/dist/websocket/assets/chunk.524.aca67dc376e8cd35b522.js +40 -0
- package/dist/websocket/assets/chunk.582.d3d80e94c4f59dc3b65d.js +42 -0
- package/dist/websocket/assets/ember-inspector.css +997 -156
- package/dist/websocket/assets/ember-inspector.js +560 -613
- package/dist/websocket/assets/svg/ellipsis.svg +3 -3
- package/dist/websocket/assets/svg/focus-point-round.svg +9 -0
- package/dist/websocket/assets/svg/nav-bug.svg +1 -1
- package/dist/websocket/assets/svg/nav-components.svg +2 -2
- package/dist/websocket/assets/svg/nav-container.svg +1 -1
- package/dist/websocket/assets/svg/nav-data.svg +1 -1
- package/dist/websocket/assets/svg/nav-deprecations.svg +3 -3
- package/dist/websocket/assets/svg/nav-info.svg +3 -3
- package/dist/websocket/assets/svg/nav-promises.svg +2 -2
- package/dist/websocket/assets/svg/nav-render-performance.svg +2 -2
- package/dist/websocket/assets/svg/nav-route-tree.svg +7 -7
- package/dist/websocket/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/dist/websocket/assets/vendor.css +4 -841
- package/dist/websocket/assets/vendor.js +4277 -5152
- package/dist/websocket/base-object-HAEdWjmg.js +59 -0
- package/dist/websocket/basic-B1dkgN3d.js +149 -0
- package/dist/websocket/basic-debug.js +10 -0
- package/dist/websocket/bookmarklet-BZWtwuX-.js +32 -0
- package/dist/websocket/bookmarklet-debug.js +10 -0
- package/dist/websocket/chrome-P6FSEUf1.js +10 -0
- package/dist/websocket/chrome-debug.js +10 -0
- package/dist/websocket/ember.js +166 -0
- package/dist/websocket/ember_debug.js +7 -11018
- package/dist/websocket/evented-BCTya3yE.js +62 -0
- package/dist/websocket/firefox-8F84zphP.js +30 -0
- package/dist/websocket/firefox-debug.js +10 -0
- package/dist/websocket/index.html +4 -23
- package/dist/websocket/internals-CRmXMEzb.js +12 -0
- package/dist/websocket/load-ember-debug-in-webpage-DCWcJhQm.js +29 -0
- package/dist/websocket/main.js +7669 -0
- package/dist/websocket/port.js +108 -0
- package/dist/websocket/profile-node.js +60 -0
- package/dist/websocket/promise-assembler.js +218 -0
- package/dist/websocket/runloop-6_0lpzTA.js +1138 -0
- package/dist/websocket/start-inspector-BIYQArZn.js +334 -0
- package/dist/websocket/type-check.js +119 -0
- package/dist/websocket/version.js +90 -0
- package/dist/websocket/versions.js +4 -0
- package/dist/websocket/web-extension-OWnXJ_XK.js +144 -0
- package/dist/websocket/websocket-BSUvUqER.js +58 -0
- package/dist/websocket/websocket-debug.js +10 -0
- package/ember-cli-build.js +31 -140
- package/ember_debug/adapters/basic.js +10 -29
- package/ember_debug/adapters/bookmarklet.js +1 -0
- package/ember_debug/adapters/firefox.js +3 -3
- package/ember_debug/adapters/web-extension.js +6 -5
- package/ember_debug/adapters/websocket.js +2 -2
- package/ember_debug/babel.config.cjs +11 -0
- package/ember_debug/container-debug.js +1 -1
- package/ember_debug/data-debug.js +7 -8
- package/ember_debug/debug-port.js +1 -1
- package/ember_debug/deprecation-debug.js +14 -14
- package/ember_debug/entrypoints/basic-debug.js +10 -0
- package/ember_debug/entrypoints/bookmarklet-debug.js +10 -0
- package/ember_debug/entrypoints/chrome-debug.js +10 -0
- package/ember_debug/entrypoints/firefox-debug.js +10 -0
- package/ember_debug/entrypoints/websocket-debug.js +10 -0
- package/ember_debug/general-debug.js +4 -4
- package/ember_debug/lib/boot-ember-inspector.js +9 -0
- package/ember_debug/lib/get-applications.js +28 -0
- package/ember_debug/lib/load-ember-debug-in-webpage.js +32 -0
- package/ember_debug/lib/send-apps.js +14 -0
- package/ember_debug/lib/send-version-miss.js +38 -0
- package/ember_debug/lib/setup-instance-initializer.js +17 -0
- package/ember_debug/lib/start-inspector.js +195 -0
- package/ember_debug/lib/version-test.js +73 -0
- package/ember_debug/lib/versions.js +3 -0
- package/ember_debug/libs/capture-render-tree.js +1 -2
- package/ember_debug/libs/promise-assembler.js +5 -4
- package/ember_debug/libs/render-tree.js +37 -44
- package/ember_debug/libs/source-map.js +7 -6
- package/ember_debug/libs/view-inspection.js +25 -17
- package/ember_debug/main.js +18 -21
- package/ember_debug/models/profile-manager.js +6 -6
- package/ember_debug/models/profile-node.js +1 -1
- package/ember_debug/models/promise.js +2 -2
- package/ember_debug/object-inspector.js +74 -65
- package/ember_debug/package.json +27 -0
- package/ember_debug/port.js +5 -4
- package/ember_debug/promise-debug.js +5 -5
- package/ember_debug/render-debug.js +5 -5
- package/ember_debug/rollup.config.js +24 -0
- package/ember_debug/route-debug.js +10 -9
- package/ember_debug/services/session.js +2 -2
- package/ember_debug/utils/classify.js +1 -1
- package/ember_debug/utils/ember/object/internals.js +1 -11
- package/ember_debug/utils/ember/own-runloop.js +1 -1
- package/ember_debug/utils/ember/runloop.js +7 -10
- package/ember_debug/utils/ember-object-names.js +11 -9
- package/ember_debug/utils/ember.js +222 -40
- package/ember_debug/utils/evented.js +1 -1
- package/ember_debug/utils/get-object-name.js +3 -3
- package/ember_debug/utils/type-check.js +9 -5
- package/ember_debug/view-debug.js +12 -6
- package/eslint.config.mjs +173 -0
- package/gulpfile.js +1 -1
- package/package.json +97 -95
- package/patches/ember-cli-inject-live-reload.patch +16 -0
- package/pnpm-workspace.yaml +3 -0
- package/public/assets/svg/ellipsis.svg +3 -3
- package/public/assets/svg/focus-point-round.svg +9 -0
- package/public/assets/svg/nav-bug.svg +1 -1
- package/public/assets/svg/nav-components.svg +2 -2
- package/public/assets/svg/nav-container.svg +1 -1
- package/public/assets/svg/nav-data.svg +1 -1
- package/public/assets/svg/nav-deprecations.svg +3 -3
- package/public/assets/svg/nav-info.svg +3 -3
- package/public/assets/svg/nav-promises.svg +2 -2
- package/public/assets/svg/nav-render-performance.svg +2 -2
- package/public/assets/svg/nav-route-tree.svg +7 -7
- package/public/assets/svg/sidebar-toggle-trailing.svg +9 -0
- package/scripts/download-panes.js +1 -1
- package/skeletons/bookmarklet/load_inspector.js +31 -11
- package/skeletons/web-extension/background.js +26 -21
- package/skeletons/web-extension/boot.js +1 -1
- package/skeletons/web-extension/content-script.js +12 -11
- package/skeletons/web-extension/devtools.js +12 -3
- package/skeletons/web-extension/manifest.json +3 -1
- package/skeletons/web-extension/options.js +17 -12
- package/skeletons/web-extension/scripts/in-page-script.js +19 -13
- package/testem.js +0 -1
- package/tests/acceptance/app-picker-test.js +4 -4
- package/tests/acceptance/component-tree-test.js +96 -57
- package/tests/acceptance/container-test.js +0 -2
- package/tests/acceptance/data-test.js +14 -11
- package/tests/acceptance/deprecation-test.js +8 -12
- package/tests/acceptance/info-test.js +2 -2
- package/tests/acceptance/object-inspector-test.js +62 -110
- package/tests/acceptance/promise-test.js +1 -11
- package/tests/acceptance/render-tree-test.js +2 -2
- package/tests/acceptance/route-tree-test.js +12 -14
- package/tests/acceptance/whats-new-test.js +11 -11
- package/tests/ember_debug/container-debug-test.js +5 -14
- package/tests/ember_debug/deprecation-debug-test.js +15 -6
- package/tests/ember_debug/ember-data-test.js +7 -1
- package/tests/ember_debug/ember-debug-test.js +13 -13
- package/tests/ember_debug/object-inspector-test.js +115 -50
- package/tests/ember_debug/profile-manager-test.js +153 -170
- package/tests/ember_debug/profile-node-test.js +9 -5
- package/tests/ember_debug/promise-assembler-test.js +18 -10
- package/tests/ember_debug/promise-debug-test.js +19 -15
- package/tests/ember_debug/render-debug-test.js +8 -1
- package/tests/ember_debug/route-debug-test.js +14 -8
- package/tests/ember_debug/view-debug-test.js +267 -183
- package/tests/helpers/{index.js → index.ts} +6 -5
- package/tests/helpers/setup-ember-debug-test.js +22 -2
- package/tests/index.html +1 -2
- package/tests/integration/injection-test.js +37 -81
- package/tests/test-adapter.js +15 -15
- package/tests/test-helper.js +6 -4
- package/tests/unit/check-current-route-test.js +0 -4
- package/tests/unit/resizable-columns-test.js +53 -51
- package/tests/unit/utils/parse-text-test.js +3 -3
- package/tests/unit/utils/search-match-test.js +5 -5
- package/tests/unit/utils/type-check-test.js +27 -0
- package/tsconfig.json +3 -1
- package/types/ember-inspector/index.d.ts +2 -1
- package/types/global.d.ts +1 -7
- package/.eslintignore +0 -33
- package/.eslintrc.js +0 -86
- package/app/components/list-content.js +0 -130
- package/app/controllers/promise-tree.js +0 -130
- package/app/libs/promise-assembler.js +0 -169
- package/app/routes/model-types.js +0 -47
- package/app/routes/promise-tree.js +0 -48
- package/app/routes/records.js +0 -55
- package/app/routes/render-tree.js +0 -66
- package/app/services/adapters/websocket.js +0 -31
- package/app/services/layout.js +0 -39
- package/app/services/port.js +0 -90
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/bookmarklet/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/bookmarklet/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/chrome/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/chrome/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/chrome/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/firefox/panes-3-16-0/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/firefox/panes-3-16-0/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/firefox/panes-3-16-0/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/websocket/assets/chunk.143.76a242242ec46a377266.js +0 -28
- package/dist/websocket/assets/chunk.178.b6064b368cf24cc346ec.js +0 -9
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js +0 -2620
- package/dist/websocket/assets/chunk.359.0be5d21f60d2b5d6d423.js.LICENSE.txt +0 -67
- package/dist/websocket/assets/fonts/Inter-Bold.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff +0 -0
- package/dist/websocket/assets/fonts/Inter-Regular.woff2 +0 -0
- package/ember_debug/.eslintrc.js +0 -13
- package/ember_debug/utils/ember/debug.js +0 -20
- package/ember_debug/utils/ember/instrumentation.js +0 -11
- package/ember_debug/utils/ember/loader.js +0 -22
- package/ember_debug/utils/rsvp.js +0 -20
- package/ember_debug/vendor/loader.js +0 -54
- package/ember_debug/vendor/startup-wrapper.js +0 -399
- package/lib/ui/addon/styles/_object-inspector-toggle.scss +0 -12
- package/lib/ui/addon/styles/addon.scss +0 -13
- package/lib/ui/addon/styles/toolbar/_icon-button.scss +0 -61
- package/lib/ui/app/components/ui/disclosure-triangle.js +0 -1
- package/lib/ui/app/components/ui/disclosure.js +0 -1
- package/lib/ui/app/components/ui/drag-handle.js +0 -1
- package/lib/ui/app/components/ui/draggable-column.js +0 -1
- package/lib/ui/app/components/ui/empty-message.js +0 -1
- package/lib/ui/app/components/ui/error-page.js +0 -1
- package/lib/ui/app/components/ui/open-links-in-new-window.js +0 -1
- package/lib/ui/app/components/ui/resizable-column.js +0 -1
- package/lib/ui/app/components/ui/send-to-console.js +0 -1
- package/lib/ui/app/components/ui/toolbar-clear-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-divider.js +0 -1
- package/lib/ui/app/components/ui/toolbar-reload-button.js +0 -1
- package/lib/ui/app/components/ui/toolbar-search-field.js +0 -1
- package/lib/ui/app/components/ui/warning-message.js +0 -1
- package/lib/ui/index.js +0 -34
- package/lib/ui/package.json +0 -13
- package/public/assets/fonts/Inter-Bold.woff +0 -0
- package/public/assets/fonts/Inter-Bold.woff2 +0 -0
- package/public/assets/fonts/Inter-Regular.woff +0 -0
- package/public/assets/fonts/Inter-Regular.woff2 +0 -0
- package/tests/helpers/trigger-port.js +0 -6
- /package/app/{app.js → app.ts} +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure-triangle.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/disclosure.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/draggable-column.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/open-links-in-new-window.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/resizable-column.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/send-to-console.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-divider.hbs +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/toolbar-search-field.js +0 -0
- /package/{lib/ui/addon/components → app/components/ui}/warning-message.hbs +0 -0
- /package/app/controllers/{info.js → info.ts} +0 -0
- /package/app/services/adapters/{firefox.js → firefox.ts} +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_goto-source.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/_warning.scss +0 -0
- /package/{lib/ui/addon/styles → app/styles/ui}/toolbar/_divider.scss +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { action } from '@ember/object';
|
|
2
|
+
import { inject as service } from '@ember/service';
|
|
3
|
+
import Component from '@glimmer/component';
|
|
4
|
+
import { htmlSafe } from '@ember/template';
|
|
5
|
+
import { schedule } from '@ember/runloop';
|
|
6
|
+
import { tracked } from '@glimmer/tracking';
|
|
7
|
+
|
|
8
|
+
import type LayoutService from '../services/layout';
|
|
9
|
+
|
|
10
|
+
interface ListContentSignature {
|
|
11
|
+
Element: HTMLDivElement;
|
|
12
|
+
Args: {
|
|
13
|
+
/**
|
|
14
|
+
* Array of objects representing the columns to render
|
|
15
|
+
* and their corresponding widths. This array is passed
|
|
16
|
+
* through the template.
|
|
17
|
+
*
|
|
18
|
+
* Each item in the array has `width` and `id` properties.
|
|
19
|
+
*/
|
|
20
|
+
columns: Array<{ id: string; width: number }>;
|
|
21
|
+
/**
|
|
22
|
+
* Number passed from `list`. Indicates the header height
|
|
23
|
+
* in pixels.
|
|
24
|
+
*/
|
|
25
|
+
headerHeight: number;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Base list view config
|
|
31
|
+
*/
|
|
32
|
+
export default class ListContent extends Component<ListContentSignature> {
|
|
33
|
+
/**
|
|
34
|
+
* The layout service. Used to observe the app's content height.
|
|
35
|
+
*/
|
|
36
|
+
@service('layout') declare layoutService: LayoutService;
|
|
37
|
+
|
|
38
|
+
@tracked contentHeight: number | null = null;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Hook called before destruction. Clean up events listeners.
|
|
42
|
+
*/
|
|
43
|
+
willDestroy() {
|
|
44
|
+
this.layoutService.off(
|
|
45
|
+
'content-height-update',
|
|
46
|
+
this,
|
|
47
|
+
this.updateContentHeight,
|
|
48
|
+
);
|
|
49
|
+
return super.willDestroy();
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
get height() {
|
|
53
|
+
// In testing list-view is created before `contentHeight` is set
|
|
54
|
+
// which will trigger an exception
|
|
55
|
+
if (!this.contentHeight) {
|
|
56
|
+
return 1;
|
|
57
|
+
}
|
|
58
|
+
return this.contentHeight - this.args.headerHeight;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
get style() {
|
|
62
|
+
return htmlSafe(`height:${this.height}px`);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Hook called when content element is inserted.
|
|
67
|
+
*/
|
|
68
|
+
@action
|
|
69
|
+
elementInserted() {
|
|
70
|
+
// eslint-disable-next-line ember/no-runloop
|
|
71
|
+
schedule('afterRender', this, this.setupHeight);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Set up the content height and listen to any updates to that property.
|
|
76
|
+
*/
|
|
77
|
+
setupHeight = () => {
|
|
78
|
+
this.contentHeight = this.layoutService.contentHeight;
|
|
79
|
+
this.layoutService.on(
|
|
80
|
+
'content-height-update',
|
|
81
|
+
this,
|
|
82
|
+
this.updateContentHeight,
|
|
83
|
+
);
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Triggered whenever the app's content height changes. This usually happens
|
|
88
|
+
* when the window is resized. Once we detect a change we update this
|
|
89
|
+
* component's `contentHeight` property and consequently its `height` style.
|
|
90
|
+
*
|
|
91
|
+
* @param height The app's new content height
|
|
92
|
+
*/
|
|
93
|
+
updateContentHeight = (height: number) => {
|
|
94
|
+
this.contentHeight = height;
|
|
95
|
+
};
|
|
96
|
+
}
|
package/app/components/list.hbs
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
{{did-update this.schemaUpdated this.schema}}
|
|
6
6
|
>
|
|
7
7
|
{{#if this.schema.columns.length}}
|
|
8
|
-
<div class="
|
|
9
|
-
<div class="
|
|
8
|
+
<div class="list-header">
|
|
9
|
+
<div class="list-table-container">
|
|
10
10
|
<table>
|
|
11
11
|
<colgroup>
|
|
12
12
|
{{#each this.columns key="id" as |column|}}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
{{/each}}
|
|
15
15
|
</colgroup>
|
|
16
16
|
<tbody>
|
|
17
|
-
<tr class="
|
|
17
|
+
<tr class="list-row">
|
|
18
18
|
{{#each this.columns key="id" as |column|}}
|
|
19
19
|
<ListCell class="js-header-column" @tagName="th">
|
|
20
20
|
{{column.name}}
|
package/app/components/list.js
CHANGED
|
@@ -13,9 +13,6 @@ export default class ListComponent extends Component {
|
|
|
13
13
|
/**
|
|
14
14
|
* Layout service used to listen to changes to the application
|
|
15
15
|
* layout such as resizing of the main nav or object inspector.
|
|
16
|
-
*
|
|
17
|
-
* @property layoutService
|
|
18
|
-
* @type {Service}
|
|
19
16
|
*/
|
|
20
17
|
@service('layout') layoutService;
|
|
21
18
|
|
|
@@ -120,6 +117,7 @@ export default class ListComponent extends Component {
|
|
|
120
117
|
let oldSchema = this.oldSchema;
|
|
121
118
|
let newSchema = this.schema;
|
|
122
119
|
if (newSchema && newSchema !== oldSchema) {
|
|
120
|
+
// eslint-disable-next-line ember/no-runloop
|
|
123
121
|
scheduleOnce('actions', this, this.setupColumns);
|
|
124
122
|
}
|
|
125
123
|
this.oldSchema = newSchema;
|
|
@@ -128,6 +126,7 @@ export default class ListComponent extends Component {
|
|
|
128
126
|
@action
|
|
129
127
|
elementInserted(el) {
|
|
130
128
|
this.el = el;
|
|
129
|
+
// eslint-disable-next-line ember/no-runloop
|
|
131
130
|
scheduleOnce('afterRender', this, this.setupColumns);
|
|
132
131
|
this.onResize = () => {
|
|
133
132
|
this.debounceColumnWidths.perform();
|
|
@@ -157,6 +156,7 @@ export default class ListComponent extends Component {
|
|
|
157
156
|
arr.push({
|
|
158
157
|
name,
|
|
159
158
|
title: name,
|
|
159
|
+
// eslint-disable-next-line ember/no-runloop
|
|
160
160
|
fn: bind(this, this.toggleColumnVisibility, id),
|
|
161
161
|
});
|
|
162
162
|
return arr;
|
|
@@ -166,7 +166,7 @@ export default class ListComponent extends Component {
|
|
|
166
166
|
basicContext.show(menu, e);
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
const listHeader = this.el.querySelector('.
|
|
169
|
+
const listHeader = this.el.querySelector('.list-header');
|
|
170
170
|
if (listHeader) {
|
|
171
171
|
listHeader.addEventListener('contextmenu', this.showBasicContext);
|
|
172
172
|
}
|
|
@@ -184,7 +184,7 @@ export default class ListComponent extends Component {
|
|
|
184
184
|
@action
|
|
185
185
|
toggleColumnVisibility(id) {
|
|
186
186
|
this.resizableColumns.toggleVisibility(id);
|
|
187
|
-
const listHeader = this.el.querySelector('.
|
|
187
|
+
const listHeader = this.el.querySelector('.list-header');
|
|
188
188
|
if (listHeader) {
|
|
189
189
|
listHeader.removeEventListener('contextmenu', this.showBasicContext);
|
|
190
190
|
}
|
|
@@ -212,7 +212,7 @@ export default class ListComponent extends Component {
|
|
|
212
212
|
* @method willDestroy
|
|
213
213
|
*/
|
|
214
214
|
willDestroy() {
|
|
215
|
-
const listHeader = this.el.querySelector('.
|
|
215
|
+
const listHeader = this.el.querySelector('.list-header');
|
|
216
216
|
if (listHeader) {
|
|
217
217
|
listHeader.removeEventListener('contextmenu', this.showBasicContext);
|
|
218
218
|
}
|
|
@@ -228,7 +228,7 @@ export default class ListComponent extends Component {
|
|
|
228
228
|
*/
|
|
229
229
|
@action
|
|
230
230
|
getTableWidth() {
|
|
231
|
-
return this.el.querySelector('.
|
|
231
|
+
return this.el.querySelector('.list-table-container').clientWidth;
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
/**
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
<Ui::ToolbarDivider />
|
|
8
8
|
|
|
9
|
-
<div class="
|
|
9
|
+
<div class="toolbar-checkbox js-filter-hide-empty-model-types">
|
|
10
10
|
<label>
|
|
11
11
|
<Input
|
|
12
12
|
data-test-options-hideEmptyModelTypes
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
Hide Empty Model Types
|
|
17
17
|
</label>
|
|
18
18
|
</div>
|
|
19
|
-
<div class="
|
|
19
|
+
<div class="toolbar-checkbox js-filter-order-records-by-count">
|
|
20
20
|
<label>
|
|
21
21
|
<Input
|
|
22
22
|
data-test-options-orderByRecordCount
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
Order Models By Record Count
|
|
27
27
|
</label>
|
|
28
28
|
</div>
|
|
29
|
-
<button class="
|
|
29
|
+
<button class="toolbar-radio js-filter" {{on "click" @getStore}} data-test-inspect-store type="button">
|
|
30
30
|
Inspect Store
|
|
31
31
|
</button>
|
|
32
32
|
</div>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<ObjectInspector::Accordion @mixin={{this.accordionMixin}} as |accordion|>
|
|
2
|
+
<div
|
|
3
|
+
class="mixin {{this.accordionMixin.type}} {{if accordion.isExpanded "mixin-state-expanded"}} {{if this.accordionMixin.properties.length "mixin-props-yes" "mixin-props-no"}}"
|
|
4
|
+
data-test-object-detail
|
|
5
|
+
>
|
|
6
|
+
{{#if this.accordionMixin.properties.length}}
|
|
7
|
+
<h2
|
|
8
|
+
data-test-object-detail-name
|
|
9
|
+
class="mixin-name sticky top-0 truncate select-none cursor-default text-base15 bg-base01"
|
|
10
|
+
role="button"
|
|
11
|
+
{{on "click" accordion.toggle}}
|
|
12
|
+
>
|
|
13
|
+
{{this.accordionMixin.name}}
|
|
14
|
+
</h2>
|
|
15
|
+
{{else}}
|
|
16
|
+
<h2
|
|
17
|
+
class="mixin-name mixin-name--no-props sticky top-0 truncate select-none text-base09 cursor-default bg-base01"
|
|
18
|
+
data-test-object-detail-name
|
|
19
|
+
>
|
|
20
|
+
{{this.accordionMixin.name}}
|
|
21
|
+
</h2>
|
|
22
|
+
{{/if}}
|
|
23
|
+
{{#if accordion.isExpanded}}
|
|
24
|
+
<ul class="mixin-properties m-0 text-base font-mono list-none">
|
|
25
|
+
{{#each this.parents as |parent|}}
|
|
26
|
+
<ComponentTreeItem @item={{parent}} />
|
|
27
|
+
{{else}}
|
|
28
|
+
<li class="mixin-property flex relative flex-row items-center truncate">No Properties</li>
|
|
29
|
+
{{/each}}
|
|
30
|
+
</ul>
|
|
31
|
+
{{/if}}
|
|
32
|
+
</div>
|
|
33
|
+
</ObjectInspector::Accordion>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import { RenderItem } from 'ember-inspector/controllers/component-tree';
|
|
3
|
+
|
|
4
|
+
class RenderItemNoParent extends RenderItem {
|
|
5
|
+
get level() {
|
|
6
|
+
return 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
get hasChildren() {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export default class ComponentParents extends Component {
|
|
15
|
+
get accordionMixin() {
|
|
16
|
+
return {
|
|
17
|
+
name: 'rendered by',
|
|
18
|
+
expand: true,
|
|
19
|
+
properties: {
|
|
20
|
+
length: 1,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
get parents() {
|
|
25
|
+
const parents = [];
|
|
26
|
+
let item = this.args.item?.parentItem;
|
|
27
|
+
while (item) {
|
|
28
|
+
parents.push(
|
|
29
|
+
new RenderItemNoParent(
|
|
30
|
+
item.controller,
|
|
31
|
+
item.parentItem,
|
|
32
|
+
item.renderNode,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
item = item.parentItem;
|
|
36
|
+
}
|
|
37
|
+
return parents;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
selectComponent = (item) => {
|
|
41
|
+
this.args.select(item);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<li class="
|
|
1
|
+
<li class="mixin-property-dependency-list relative">
|
|
2
2
|
{{svg-jar "dependent-key-connection" width="20px" height="10px"}}
|
|
3
3
|
<ul class="m-0 p-0 list-none">
|
|
4
4
|
{{#each @keys as |dep|}}
|
|
5
5
|
<li
|
|
6
|
-
class="
|
|
6
|
+
class="mixin-property-dependency-item relative text-base12 text-sm {{if dep.changed 'text-spec01'}}"
|
|
7
7
|
title={{if dep.changed 'this property changed'}}
|
|
8
8
|
>
|
|
9
9
|
{{#if dep.child}}
|
|
10
10
|
<span
|
|
11
|
-
class="
|
|
11
|
+
class="mixin-property-dependency-name subkey"
|
|
12
12
|
data-label="object-property-name"
|
|
13
13
|
>
|
|
14
14
|
• -- {{dep.child}}
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
height="9px"
|
|
21
21
|
}}
|
|
22
22
|
<span
|
|
23
|
-
class="
|
|
23
|
+
class="mixin-property-dependency-name"
|
|
24
24
|
data-label="object-property-name"
|
|
25
25
|
>
|
|
26
26
|
{{dep.name}}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<div class="mixin
|
|
2
|
-
<h2 class="
|
|
1
|
+
<div class="mixin mixin-props-no" data-test-object-inspector-errors>
|
|
2
|
+
<h2 class="mixin-name mixin-name--errors bg-base00">
|
|
3
3
|
Errors
|
|
4
4
|
<button
|
|
5
5
|
data-test-send-errors-to-console
|
|
6
|
-
class="send-to-console send-to-console
|
|
6
|
+
class="send-to-console send-to-console-chevron-only ml-1"
|
|
7
7
|
type="button"
|
|
8
8
|
{{on "click" @traceErrors}}
|
|
9
9
|
>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
Trace in the Console
|
|
12
12
|
</button>
|
|
13
13
|
</h2>
|
|
14
|
-
<div class="
|
|
14
|
+
<div class="mixin-properties m-0 text-base font-mono">
|
|
15
15
|
{{#each @errors as |error|}}
|
|
16
16
|
<div class="py-0 px-5 mr-1 text-spec01" data-test-object-inspector-error>
|
|
17
17
|
Error while computing: {{error.property}}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{{#each @model.mixins as |mixin|}}
|
|
2
2
|
<ObjectInspector::Accordion @mixin={{mixin}} as |accordion|>
|
|
3
3
|
<div
|
|
4
|
-
class="mixin {{mixin.type}} {{if accordion.isExpanded "
|
|
4
|
+
class="mixin {{mixin.type}} {{if accordion.isExpanded "mixin-state-expanded"}} {{if mixin.properties.length "mixin-props-yes" "mixin-props-no"}}"
|
|
5
5
|
data-test-object-detail
|
|
6
6
|
>
|
|
7
7
|
{{#if mixin.properties.length}}
|
|
8
8
|
<h2
|
|
9
9
|
data-test-object-detail-name
|
|
10
|
-
class="
|
|
10
|
+
class="mixin-name sticky top-0 truncate select-none cursor-default text-base15 bg-base01"
|
|
11
11
|
role="button"
|
|
12
12
|
{{on "click" accordion.toggle}}
|
|
13
13
|
>
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
</h2>
|
|
16
16
|
{{else}}
|
|
17
17
|
<h2
|
|
18
|
-
class="
|
|
18
|
+
class="mixin-name mixin-name--no-props sticky top-0 truncate select-none text-base09 cursor-default bg-base01"
|
|
19
19
|
data-test-object-detail-name
|
|
20
20
|
>
|
|
21
21
|
{{mixin.name}}
|
|
22
22
|
</h2>
|
|
23
23
|
{{/if}}
|
|
24
24
|
{{#if accordion.isExpanded}}
|
|
25
|
-
<ul class="
|
|
25
|
+
<ul class="mixin-properties m-0 text-base font-mono list-none">
|
|
26
26
|
<ObjectInspector::SortProperties
|
|
27
27
|
@properties={{mixin.properties}} as |sortedProperties|
|
|
28
28
|
>
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
@gotoSource={{fn this.gotoSource prop}}
|
|
37
37
|
/>
|
|
38
38
|
{{else}}
|
|
39
|
-
<li class="
|
|
39
|
+
<li class="mixin-property flex relative flex-row items-center truncate">No Properties</li>
|
|
40
40
|
{{/each}}
|
|
41
41
|
</ObjectInspector::SortProperties>
|
|
42
42
|
</ul>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<li
|
|
2
|
-
class="{{if this.isOverridden "
|
|
2
|
+
class="{{if this.isOverridden "mixin-property-state-overridden line-through"}} mixin-property flex flex-row relative items-center truncate"
|
|
3
3
|
data-test-object-property
|
|
4
4
|
>
|
|
5
5
|
{{!-- Disclosure Triangle --}}
|
|
6
6
|
{{#if this.hasDependentKeys}}
|
|
7
7
|
<button
|
|
8
|
-
class="
|
|
8
|
+
class="mixin-cp-toggle {{if this.showDependentKeys "mixin-cp-toggle-expanded"}}"
|
|
9
9
|
{{on "click" this.toggleDeps}}
|
|
10
10
|
type="button"
|
|
11
11
|
>
|
|
@@ -22,47 +22,49 @@
|
|
|
22
22
|
|
|
23
23
|
{{!-- Property Icon --}}
|
|
24
24
|
<span
|
|
25
|
-
class="
|
|
25
|
+
class="mixin-property-icon-container flex-shrink-0"
|
|
26
26
|
role="button"
|
|
27
27
|
title={{if @model.code @model.code this.iconInfo.title}}
|
|
28
28
|
{{on "click" this.toggleDeps}}
|
|
29
29
|
>
|
|
30
|
-
<span class="
|
|
30
|
+
<span class="mixin-property-icon mixin-property-icon-{{this.iconInfo.type}} inline-block rounded font-mono text-md text-white text-center select-none"></span>
|
|
31
31
|
</span>
|
|
32
32
|
|
|
33
|
-
{{
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
title="service"
|
|
41
|
-
class="mixin__property--group"
|
|
42
|
-
data-test-property-name-service
|
|
43
|
-
>
|
|
44
|
-
{{@model.name}}
|
|
45
|
-
</span>
|
|
46
|
-
{{else}}
|
|
47
|
-
{{#if this.hasDependentKeys}}
|
|
33
|
+
{{#unless this.isOwner}}
|
|
34
|
+
{{!-- Property Name --}}
|
|
35
|
+
<span
|
|
36
|
+
class="mixin-property-name text-base14 truncate"
|
|
37
|
+
data-test-object-property-name
|
|
38
|
+
>
|
|
39
|
+
{{#if this.isService}}
|
|
48
40
|
<span
|
|
49
|
-
title="
|
|
50
|
-
class="
|
|
41
|
+
title="service"
|
|
42
|
+
class="mixin-property--group"
|
|
43
|
+
data-test-property-name-service
|
|
51
44
|
>
|
|
52
45
|
{{@model.name}}
|
|
53
46
|
</span>
|
|
54
47
|
{{else}}
|
|
55
|
-
{{
|
|
48
|
+
{{#if this.hasDependentKeys}}
|
|
49
|
+
<span
|
|
50
|
+
title="computed"
|
|
51
|
+
class="mixin-property--group"
|
|
52
|
+
>
|
|
53
|
+
{{@model.name}}
|
|
54
|
+
</span>
|
|
55
|
+
{{else}}
|
|
56
|
+
{{@model.name}}
|
|
57
|
+
{{/if}}
|
|
56
58
|
{{/if}}
|
|
57
|
-
|
|
58
|
-
</span>
|
|
59
|
+
</span>
|
|
59
60
|
|
|
60
|
-
|
|
61
|
+
<span class="mr-1">: </span>
|
|
62
|
+
{{/unless}}
|
|
61
63
|
|
|
62
64
|
{{#if this.isEdit}}
|
|
63
65
|
{{#if this.isDate}}
|
|
64
66
|
<DatePropertyField
|
|
65
|
-
class="
|
|
67
|
+
class="mixin-property-value-txt flex-1 text-base14 outline-none text-base bg-base01 js-object-property-value-date"
|
|
66
68
|
@allowInput={{true}}
|
|
67
69
|
@date={{readonly this.dateValue}}
|
|
68
70
|
@dateFormat="Y-m-d"
|
|
@@ -71,7 +73,7 @@
|
|
|
71
73
|
/>
|
|
72
74
|
{{else}}
|
|
73
75
|
<ObjectInspector::PropertyField
|
|
74
|
-
class="
|
|
76
|
+
class="mixin-property-value-txt flex-1 text-base14 text-base bg-base01 outline-none"
|
|
75
77
|
@value={{this.txtValue}}
|
|
76
78
|
@insert-newline={{this.save}}
|
|
77
79
|
@escape-press={{this.finishedEditing}}
|
|
@@ -83,17 +85,17 @@
|
|
|
83
85
|
{{#if this.canCalculate}}
|
|
84
86
|
<button
|
|
85
87
|
data-test-calculate
|
|
86
|
-
class="
|
|
88
|
+
class="mixin-calc-btn"
|
|
87
89
|
title="compute property"
|
|
88
90
|
type="button"
|
|
89
|
-
{{on "click" @calculate
|
|
91
|
+
{{on "click" (stop-propagation @calculate)}}
|
|
90
92
|
>
|
|
91
93
|
{{svg-jar "calculate" width="16px" height="16px"}}
|
|
92
94
|
</button>
|
|
93
95
|
{{/if}}
|
|
94
96
|
{{#if this.isDate}}
|
|
95
97
|
<span
|
|
96
|
-
class="{{@model.value.type}}
|
|
98
|
+
class="{{@model.value.type}} mixin-property-value truncate"
|
|
97
99
|
role="button"
|
|
98
100
|
{{on "click" this.dateClick}}
|
|
99
101
|
data-test-object-property-value
|
|
@@ -102,7 +104,7 @@
|
|
|
102
104
|
</span>
|
|
103
105
|
{{else}}
|
|
104
106
|
<span
|
|
105
|
-
class="{{@model.value.type}} {{if this.isService "type-service"}}
|
|
107
|
+
class="{{@model.value.type}} {{if this.isService "type-service"}} mixin-property-value truncate"
|
|
106
108
|
role="button"
|
|
107
109
|
{{on "click" this.valueClick}}
|
|
108
110
|
data-test-object-property-value
|
|
@@ -112,13 +114,13 @@
|
|
|
112
114
|
{{/if}}
|
|
113
115
|
{{/if}}
|
|
114
116
|
|
|
115
|
-
<span class="
|
|
117
|
+
<span class="mixin-property-overridden-by absolute right-0 no-underline bg-spec00">
|
|
116
118
|
(Overridden by {{@model.overridden}})
|
|
117
119
|
</span>
|
|
118
120
|
|
|
119
121
|
<button
|
|
120
122
|
data-test-send-to-console-btn
|
|
121
|
-
class="
|
|
123
|
+
class="mixin-send-btn flex-shrink-0 send-to-console"
|
|
122
124
|
title="Send To Console"
|
|
123
125
|
type="button"
|
|
124
126
|
{{on "click" @sendToConsole}}
|
|
@@ -128,7 +130,7 @@
|
|
|
128
130
|
{{#if this.isFunction}}
|
|
129
131
|
<button
|
|
130
132
|
data-test-goto-source-btn
|
|
131
|
-
class="
|
|
133
|
+
class="mixin-send-btn flex-shrink-0 goto-source"
|
|
132
134
|
title="Goto Source"
|
|
133
135
|
type="button"
|
|
134
136
|
{{on "click" @gotoSource}}
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-return */
|
|
1
2
|
import Component from '@glimmer/component';
|
|
2
3
|
import { tracked } from '@glimmer/tracking';
|
|
4
|
+
// eslint-disable-next-line ember/no-computed-properties-in-native-classes
|
|
3
5
|
import { action, computed } from '@ember/object';
|
|
6
|
+
// eslint-disable-next-line ember/no-computed-properties-in-native-classes
|
|
4
7
|
import { alias, equal } from '@ember/object/computed';
|
|
5
8
|
import { next } from '@ember/runloop';
|
|
6
9
|
import parseText from 'ember-inspector/utils/parse-text';
|
|
7
10
|
|
|
8
|
-
interface
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
interface ObjectInspectorPropertySignature {
|
|
12
|
+
Args: {
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14
|
+
model: any;
|
|
15
|
+
digDeeper: () => unknown;
|
|
16
|
+
gotoSource: () => void;
|
|
17
|
+
sendToConsole: () => void;
|
|
18
|
+
saveProperty: (
|
|
19
|
+
property: unknown,
|
|
20
|
+
value: unknown,
|
|
21
|
+
dataType: unknown,
|
|
22
|
+
) => unknown;
|
|
23
|
+
};
|
|
18
24
|
}
|
|
19
25
|
|
|
20
|
-
export default class ObjectInspectorProperty extends Component<
|
|
26
|
+
export default class ObjectInspectorProperty extends Component<ObjectInspectorPropertySignature> {
|
|
21
27
|
@tracked dateValue: Date | null = null;
|
|
22
28
|
@tracked isDepsExpanded = false;
|
|
23
29
|
@tracked isEdit = false;
|
|
@@ -41,6 +47,10 @@ export default class ObjectInspectorProperty extends Component<ObjectInspectorPr
|
|
|
41
47
|
@equal('args.model.value.type', 'type-string')
|
|
42
48
|
isString!: boolean;
|
|
43
49
|
|
|
50
|
+
get isOwner() {
|
|
51
|
+
return this.args.model?.value?.type === 'type-owner';
|
|
52
|
+
}
|
|
53
|
+
|
|
44
54
|
get isService() {
|
|
45
55
|
return this.args.model?.isService;
|
|
46
56
|
}
|
|
@@ -66,10 +76,7 @@ export default class ObjectInspectorProperty extends Component<ObjectInspectorPr
|
|
|
66
76
|
|
|
67
77
|
@computed('args.model.dependentKeys.[]', 'isCalculated')
|
|
68
78
|
get hasDependentKeys() {
|
|
69
|
-
return
|
|
70
|
-
this.args.model?.dependentKeys?.length &&
|
|
71
|
-
this.isCalculated
|
|
72
|
-
);
|
|
79
|
+
return this.args.model?.dependentKeys?.length && this.isCalculated;
|
|
73
80
|
}
|
|
74
81
|
|
|
75
82
|
get showDependentKeys() {
|
|
@@ -113,6 +120,10 @@ export default class ObjectInspectorProperty extends Component<ObjectInspectorPr
|
|
|
113
120
|
return { type: 'getter', title: 'Getter' };
|
|
114
121
|
}
|
|
115
122
|
|
|
123
|
+
if (this.isOwner) {
|
|
124
|
+
return { type: 'owner', title: 'Owner' };
|
|
125
|
+
}
|
|
126
|
+
|
|
116
127
|
return { type: 'n/a', title: 'N/A' };
|
|
117
128
|
}
|
|
118
129
|
|
|
@@ -121,8 +132,11 @@ export default class ObjectInspectorProperty extends Component<ObjectInspectorPr
|
|
|
121
132
|
}
|
|
122
133
|
|
|
123
134
|
get cannotEdit() {
|
|
124
|
-
if (this.args.model.name === '...' || !this.isCalculated || this.readOnly)
|
|
125
|
-
|
|
135
|
+
if (this.args.model.name === '...' || !this.isCalculated || this.readOnly)
|
|
136
|
+
return true;
|
|
137
|
+
return !['type-string', 'type-number', 'type-boolean'].includes(
|
|
138
|
+
this.args.model?.value?.type,
|
|
139
|
+
);
|
|
126
140
|
}
|
|
127
141
|
|
|
128
142
|
@action
|
|
@@ -143,12 +157,14 @@ export default class ObjectInspectorProperty extends Component<ObjectInspectorPr
|
|
|
143
157
|
return;
|
|
144
158
|
}
|
|
145
159
|
|
|
160
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
146
161
|
let value = this.args.model.value.inspect;
|
|
147
162
|
|
|
148
163
|
if (this.isString) {
|
|
149
164
|
value = this._quotedString(value);
|
|
150
165
|
}
|
|
151
166
|
|
|
167
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
152
168
|
this.txtValue = value;
|
|
153
169
|
this.isEdit = true;
|
|
154
170
|
}
|
|
@@ -168,6 +184,7 @@ export default class ObjectInspectorProperty extends Component<ObjectInspectorPr
|
|
|
168
184
|
|
|
169
185
|
@action
|
|
170
186
|
finishedEditing() {
|
|
187
|
+
// eslint-disable-next-line ember/no-runloop
|
|
171
188
|
next(() => {
|
|
172
189
|
this.isEdit = false;
|
|
173
190
|
});
|