10 files changed +478
-169
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,15 @@ export default class ComponentTreeArg extends Component {
12
12
13
13
get displayValue ( ) {
14
14
if ( this . isObject ) {
15
+ if ( this . args . value . inspect ) {
16
+ if ( this . args . value . type === 'function' ) {
17
+ return this . args . value . inspect
18
+ . replace ( / " / g, '\\"' )
19
+ . replace ( 'bound ' , '' )
20
+ . replace ( '{ ... }' , '' ) ;
21
+ }
22
+ return this . args . value . inspect . replace ( / " / g, '\\"' ) ;
23
+ }
15
24
return '...' ;
16
25
} else if ( typeof this . args . value === 'string' ) {
17
26
// Escape any interior quotes – we will add the surrounding quotes in the template
Original file line number Diff line number Diff line change 87
87
<span class =" component-name" >
88
88
{{ @item.name }}
89
89
</span >
90
+ {{ #each-in @item.args.named as |name value |}}
91
+ <div class =" arg-token flex ml-2" >
92
+ <span class =" key-token" >
93
+ {{ name }}
94
+ </span >
95
+ ={{ if (is-string value ) " \" " }}
96
+ <ComponentTreeArg @value ={{ value }} />
97
+ {{ if (is-string value ) " \" " }}
98
+ </div >
99
+ {{ /each-in }}
90
100
{{ /if }}
91
101
</code >
92
102
</div >
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ export default class ObjectInspectorProperty extends Component<ObjectInspectorPr
120
120
121
121
get cannotEdit ( ) {
122
122
if ( this . args . model . name === '...' || ! this . isCalculated ) return true ;
123
- return this . isFunction || this . isOverridden || this . readOnly ;
123
+ return this . args . model ?. value ?. type !== 'type-string' && this . args . model ?. value ?. type !== 'type-number' ;
124
124
}
125
125
126
126
@action
Original file line number Diff line number Diff line change @@ -301,15 +301,18 @@ class RenderItem {
301
301
}
302
302
303
303
get isComponent ( ) {
304
- return this . renderNode . type === 'component' || this . renderNode . type === 'remote-element' ;
304
+ return (
305
+ this . renderNode . type === 'component' ||
306
+ this . renderNode . type === 'remote-element'
307
+ ) ;
305
308
}
306
309
307
310
get isModifier ( ) {
308
311
return this . renderNode . type === 'modifier' ;
309
312
}
310
313
311
314
get isHtmlTag ( ) {
312
- return this . renderNode . type === 'htmlTag ' ;
315
+ return this . renderNode . type === 'html-element ' ;
313
316
}
314
317
315
318
get name ( ) {
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ module.exports = function (defaults) {
54
54
if ( process . env . EMBER_ENV !== 'test' ) {
55
55
// https://github.com/ef4/ember-auto-import/issues/540
56
56
options . autoImport . publicAssetURL = 'assets/' ;
57
+ } else {
58
+ options . autoImport . publicAssetURL = 'assets/' ;
57
59
}
58
60
59
61
// When running ember-try on Ember < 3.13, colocation support is
0 commit comments