|
1 | 1 | <li |
2 | | - class="{{if this.isOverridden "mixin__property_state_overridden"}} mixin__property js-object-property" |
| 2 | + class="{{if this.isOverridden "mixin__property-state-overridden line-through"}} mixin__property flex flex-row relative items-center truncate" |
| 3 | + data-test-object-property |
3 | 4 | > |
4 | 5 | {{!-- Disclosure Triangle --}} |
5 | 6 | {{#if this.hasDependentKeys}} |
|
19 | 20 | {{/if}} |
20 | 21 |
|
21 | 22 | {{!-- Property Icon --}} |
22 | | - <span class="mixin__property-icon-container" title={{if @model.code @model.code this.iconInfo.title}} |
| 23 | + <span |
| 24 | + class="mixin__property-icon-container flex-shrink-0" |
| 25 | + title={{if @model.code @model.code this.iconInfo.title}} |
23 | 26 | {{on "click" this.toggleDeps}} |
24 | 27 | > |
25 | | - <span class="mixin__property-icon mixin__property-icon--{{this.iconInfo.type}}"></span> |
| 28 | + <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> |
26 | 29 | </span> |
27 | 30 |
|
28 | 31 | {{!-- Property Name --}} |
29 | | - <span class="mixin__property-name js-object-property-name"> |
| 32 | + <span |
| 33 | + class="mixin__property-name text-base14 truncate" |
| 34 | + data-test-object-property-name |
| 35 | + > |
30 | 36 | {{#if this.isService}} |
31 | 37 | <span |
32 | 38 | title="service" |
33 | | - class="js-property-name-service mixin__property--group" |
| 39 | + class="mixin__property--group" |
| 40 | + data-test-property-name-service |
34 | 41 | > |
35 | 42 | {{@model.name}} |
36 | 43 | </span> |
37 | 44 | {{else}} |
38 | 45 | {{#if this.hasDependentKeys}} |
39 | 46 | <span |
40 | 47 | title="computed" |
41 | | - class="js-property-name-computed mixin__property--group" |
| 48 | + class="mixin__property--group" |
42 | 49 | > |
43 | 50 | {{@model.name}} |
44 | 51 | </span> |
|
48 | 55 | {{/if}} |
49 | 56 | </span> |
50 | 57 |
|
51 | | - <span class="mixin__property-value-separator">: </span> |
| 58 | + <span class="mr-1">: </span> |
52 | 59 |
|
53 | 60 | {{#if this.isEdit}} |
54 | 61 | {{#if this.isDate}} |
55 | 62 | {{date-property-field |
56 | 63 | allowInput=true |
57 | 64 | date=(readonly this.dateValue) |
58 | 65 | dateFormat="Y-m-d" |
59 | | - class="mixin__property-value-txt js-object-property-value-date" |
| 66 | + class="mixin__property-value-txt flex-1 text-base14 outline-none text-base bg-base01 js-object-property-value-date" |
60 | 67 | onChange=this.dateSelected |
61 | 68 | onClose=this.finishedEditing |
62 | 69 | }} |
63 | 70 | {{else}} |
64 | 71 | <ObjectInspector::PropertyField |
65 | | - class="mixin__property-value-txt js-object-property-value-txt" |
| 72 | + class="mixin__property-value-txt flex-1 text-base14 text-base bg-base01 outline-none" |
66 | 73 | @value={{this.txtValue}} |
67 | 74 | @insert-newline={{fn this.save}} |
68 | 75 | @escape-press={{fn this.finishedEditing}} |
69 | 76 | @focus-out={{fn this.finishedEditing}} |
| 77 | + data-test-object-property-value-txt |
70 | 78 | /> |
71 | 79 | {{/if}} |
72 | 80 | {{else}} |
73 | 81 | {{#if this.canCalculate}} |
74 | 82 | <button |
75 | | - class="mixin__calc-btn js-calculate" |
| 83 | + class="mixin__calc-btn" |
76 | 84 | title="compute property" |
77 | 85 | {{on "click" @calculate bubbles=false}} |
| 86 | + data-test-calculate |
78 | 87 | > |
79 | 88 | {{svg-jar "calculate" width="16px" height="16px"}} |
80 | 89 | </button> |
81 | 90 | {{/if}} |
82 | 91 | {{#if this.isDate}} |
83 | 92 | <span |
84 | | - class="{{this.valueType}} mixin__property-value js-object-property-value" |
| 93 | + class="{{this.valueType}} mixin__property-value truncate" |
85 | 94 | {{on "click" this.dateClick}} |
| 95 | + data-test-object-property-value |
86 | 96 | > |
87 | 97 | {{@model.value.inspect}} |
88 | 98 | </span> |
89 | 99 | {{else}} |
90 | 100 | <span |
91 | | - class="{{this.valueType}} {{if this.isService "type-service"}} mixin__property-value js-object-property-value" |
| 101 | + class="{{this.valueType}} {{if this.isService "type-service"}} mixin__property-value truncate" |
92 | 102 | {{on "click" this.valueClick}} |
| 103 | + data-test-object-property-value |
93 | 104 | > |
94 | 105 | {{@model.value.inspect}} |
95 | 106 | </span> |
96 | 107 | {{/if}} |
97 | 108 | {{/if}} |
98 | 109 |
|
99 | | - <span class="mixin__property-overridden-by">(Overridden by {{@model.overridden}})</span> |
| 110 | + <span class="mixin__property-overridden-by absolute right-0 no-underline bg-spec00"> |
| 111 | + (Overridden by {{@model.overridden}}) |
| 112 | + </span> |
100 | 113 |
|
101 | 114 | <button |
102 | | - class="mixin__send-btn send-to-console js-send-to-console-btn" |
| 115 | + class="mixin__send-btn flex-shrink-0 send-to-console" |
103 | 116 | title="Send to console" |
104 | 117 | {{on "click" @sendToConsole}} |
| 118 | + data-test-send-to-console-btn |
105 | 119 | > |
106 | 120 | {{svg-jar "send-with-text" width="20px" height="10px"}} |
107 | 121 | </button> |
|
0 commit comments