File tree 13 files changed +56
-72
lines changed
13 files changed +56
-72
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ export default class AuBadge extends Component<AuBadgeSignature> {
37
37
return ' ' ;
38
38
}
39
39
40
- <template >
41
- <span
40
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
41
+ // prettier-ignore
42
+ <template ><span
42
43
class =" au-c-badge {{this .skin }} {{this .size }} "
43
44
aria-hidden ={{if @ iconVisible " false" " true" }}
44
45
...attributes
@@ -49,6 +50,5 @@ export default class AuBadge extends Component<AuBadgeSignature> {
49
50
{{#if @ number }}
50
51
<span class =" au-c-badge__number" >{{@ number }} </span >
51
52
{{/if }}
52
- </span >
53
- </template >
53
+ </span ></template >
54
54
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export default class AuBrand extends Component<AuBrandSignature> {
18
18
}
19
19
20
20
<template >
21
- {{#if @ link }}
21
+ {{~ #if @ link~ }}
22
22
<a
23
23
href ={{@ link }}
24
24
class =" au-c-brand au-c-brand--link {{this .tagline }} "
@@ -52,7 +52,7 @@ export default class AuBrand extends Component<AuBrandSignature> {
52
52
{{/if }}
53
53
</p >
54
54
</a >
55
- {{else }}
55
+ {{~ else ~ }}
56
56
<div class =" au-c-brand {{this .tagline }} " ...attributes >
57
57
<div class =" au-c-brand__logo" >
58
58
<svg
@@ -78,6 +78,6 @@ export default class AuBrand extends Component<AuBrandSignature> {
78
78
{{/if }}
79
79
</p >
80
80
</div >
81
- {{/if }}
81
+ {{~ /if ~ }}
82
82
</template >
83
83
}
Original file line number Diff line number Diff line change @@ -117,8 +117,9 @@ More info in the migration guide: https://github.com/appuniversum/ember-appunive
117
117
return ' ' ;
118
118
}
119
119
120
- <template >
121
- <button
120
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
121
+ // prettier-ignore
122
+ <template ><button
122
123
class =" au-c-button
123
124
{{this .widthClass }}
124
125
{{this .sizeClass }}
@@ -161,6 +162,5 @@ More info in the migration guide: https://github.com/appuniversum/ember-appunive
161
162
<AuIcon @ icon ={{@ icon }} />
162
163
{{/if }}
163
164
{{/unless }}
164
- </button >
165
- </template >
165
+ </button ></template >
166
166
}
Original file line number Diff line number Diff line change @@ -64,9 +64,9 @@ export default class AuCheckbox extends Component<AuCheckboxSignature> {
64
64
}
65
65
}
66
66
67
- < template >
68
- {{~!~}}
69
- <label
67
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
68
+ // prettier-ignore
69
+ < template > <label
70
70
class =" au-c-control au-c-control--checkbox
71
71
{{if ( and ( not @ inGroup) ( not ( has-block ) ) ) ' au-c-control--labelless' }}
72
72
{{if @ disabled ' is-disabled' }} "
@@ -84,7 +84,5 @@ export default class AuCheckbox extends Component<AuCheckboxSignature> {
84
84
/>
85
85
<span class =" au-c-control__indicator" ></span >
86
86
{{ yield }}
87
- </label >
88
- {{~!~}}
89
- </template >
87
+ </label ></template >
90
88
}
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ export interface AuDateInputSignature {
19
19
}
20
20
21
21
export default class AuDateInput extends Component <AuDateInputSignature > {
22
- < template >
23
- {{~!~}}
24
- <AuInput
22
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
23
+ // prettier-ignore
24
+ < template > <AuInput
25
25
@ disabled ={{@ disabled }}
26
26
@ error ={{@ error }}
27
27
@ icon ={{CalendarIcon }}
@@ -31,7 +31,5 @@ export default class AuDateInput extends Component<AuDateInputSignature> {
31
31
placeholder =" DD-MM-JJJJ"
32
32
{{auDateInput value =@ value prefillYear =@ prefillYear onChange =@ onChange}}
33
33
...attributes
34
- />
35
- {{~!~}}
36
- </template >
34
+ /></template >
37
35
}
Original file line number Diff line number Diff line change @@ -104,9 +104,9 @@ export default class AuDropdown extends Component<AuDropdownSignature> {
104
104
};
105
105
}
106
106
107
- < template >
108
- {{~!~}}
109
- <div class =" au-c-dropdown" ...attributes >
107
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
108
+ // prettier-ignore
109
+ < template > <div class =" au-c-dropdown" ...attributes >
110
110
<AuButton
111
111
{{this .reference }}
112
112
@ skin ={{this .skin }}
@@ -153,7 +153,5 @@ export default class AuDropdown extends Component<AuDropdownSignature> {
153
153
</div >
154
154
</div >
155
155
{{/if }}
156
- </div >
157
- {{~!~}}
158
- </template >
156
+ </div ></template >
159
157
}
Original file line number Diff line number Diff line change @@ -45,15 +45,15 @@ export default class AuIcon extends Component<AuIconSignature> {
45
45
}
46
46
47
47
<template >
48
- {{#if this . iconComponent }}
49
- {{#let this . iconComponent as | Icon | }}
48
+ {{~ #if this . iconComponent~ }}
49
+ {{~ #let this . iconComponent as | Icon | ~ }}
50
50
<Icon
51
51
class =" au-c-icon {{this .alignment }} {{this .size }} "
52
52
aria-hidden ={{this .ariaHidden }}
53
53
...attributes
54
54
/>
55
55
{{/let }}
56
- {{else }}
56
+ {{~ else ~ }}
57
57
<svg
58
58
role =" img"
59
59
class =" au-c-icon au-c-icon--{{@ icon }} {{this .alignment }} {{this .size }} "
@@ -64,6 +64,6 @@ export default class AuIcon extends Component<AuIconSignature> {
64
64
xlink:href =" {{this .iconPrefix }} @appuniversum/ember-appuniversum/appuniversum-symbolset.svg#{{@ icon }} "
65
65
></use >
66
66
</svg >
67
- {{/if }}
67
+ {{~ /if ~ }}
68
68
</template >
69
69
}
Original file line number Diff line number Diff line change @@ -61,9 +61,9 @@ export default class AuLinkExternal extends Component<AuLinkExternalSignature> {
61
61
return ' ' ;
62
62
}
63
63
64
- < template >
65
- {{~!~}}
66
- <a
64
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
65
+ // prettier-ignore
66
+ < template > <a
67
67
class =" {{this .skinClass }} {{this .widthClass }} {{this .iconOnlyClass }} "
68
68
target =" _blank"
69
69
rel =" noopener noreferrer"
@@ -83,7 +83,5 @@ export default class AuLinkExternal extends Component<AuLinkExternalSignature> {
83
83
{{! @glint-expect-error: this.isIconLeft ensures that @icon is set }}
84
84
<AuIcon @ icon ={{@ icon }} />
85
85
{{/if }}
86
- </a >
87
- {{~!~}}
88
- </template >
86
+ </a ></template >
89
87
}
Original file line number Diff line number Diff line change @@ -82,9 +82,9 @@ export default class AuLink extends Component<AuLinkSignature> {
82
82
return ' ' ;
83
83
}
84
84
85
- < template >
86
- {{~!~}}
87
- <LinkTo
85
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
86
+ // prettier-ignore
87
+ < template > <LinkTo
88
88
@ route ={{@ route }}
89
89
@ models ={{linkToModels @ model @ models}}
90
90
@ query ={{this .queryParams }}
@@ -94,7 +94,7 @@ export default class AuLink extends Component<AuLinkSignature> {
94
94
{{this .iconOnlyClass }} "
95
95
...attributes
96
96
>
97
- {{#if this . isIconLeft }}
97
+ {{~ #if this . isIconLeft~ }}
98
98
{{! @glint-expect-error: this.isIconLeft ensures that @icon is set }}
99
99
<AuIcon @ icon ={{@ icon }} />
100
100
{{/if }}
@@ -106,8 +106,6 @@ export default class AuLink extends Component<AuLinkSignature> {
106
106
{{#if this . isIconRight }}
107
107
{{! @glint-expect-error: this.isIconRight ensures that @icon is set }}
108
108
<AuIcon @ icon ={{@ icon }} />
109
- {{/if }}
110
- </LinkTo >
111
- {{~!~}}
112
- </template >
109
+ {{~/if ~}}
110
+ </LinkTo ></template >
113
111
}
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export default class AuPill extends Component<AuPillSignature> {
72
72
}
73
73
74
74
<template >
75
- {{#if @ onClickAction }}
75
+ {{~ #if @ onClickAction~ }}
76
76
<span class =" au-c-pill-container" >
77
77
<span
78
78
class =" au-c-pill {{this .skin }} {{this .size }} {{this .draft }} "
@@ -93,8 +93,8 @@ export default class AuPill extends Component<AuPillSignature> {
93
93
<span class =" au-u-hidden-visually" >{{@ actionText }} </span >
94
94
</button >
95
95
</span >
96
- {{else }}
97
- {{#if @ route }}
96
+ {{~ else ~ }}
97
+ {{~ #if @ route~ }}
98
98
<LinkTo
99
99
class =" au-c-pill au-c-pill--hover
100
100
{{this .skin }}
@@ -111,7 +111,7 @@ export default class AuPill extends Component<AuPillSignature> {
111
111
@ hideText ={{@ hideText }}
112
112
>{{ yield }} </Inner >
113
113
</LinkTo >
114
- {{else if @ href }}
114
+ {{~ else if @ href ~ }}
115
115
<a
116
116
href ={{@ href }}
117
117
class =" au-c-pill au-c-pill--hover
@@ -126,7 +126,7 @@ export default class AuPill extends Component<AuPillSignature> {
126
126
@ hideText ={{@ hideText }}
127
127
>{{ yield }} </Inner >
128
128
</a >
129
- {{else }}
129
+ {{~ else ~ }}
130
130
<span
131
131
class =" au-c-pill {{this .skin }} {{this .size }} {{this .draft }} "
132
132
...attributes
@@ -137,8 +137,8 @@ export default class AuPill extends Component<AuPillSignature> {
137
137
@ hideText ={{@ hideText }}
138
138
>{{ yield }} </Inner >
139
139
</span >
140
- {{/if }}
141
- {{/if }}
140
+ {{~ /if ~ }}
141
+ {{~ /if ~ }}
142
142
</template >
143
143
}
144
144
Original file line number Diff line number Diff line change @@ -43,9 +43,9 @@ export default class AuRadio extends Component<AuRadioSignature> {
43
43
}
44
44
}
45
45
46
- < template >
47
- {{~!~}}
48
- <label
46
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
47
+ // prettier-ignore
48
+ < template > <label
49
49
class =" au-c-control au-c-control--radio
50
50
{{if ( and ( not @ inGroup) ( not ( has-block ) ) ) ' au-c-control--labelless' }}
51
51
{{if @ disabled ' is-disabled' }} "
@@ -62,7 +62,5 @@ export default class AuRadio extends Component<AuRadioSignature> {
62
62
/>
63
63
<span class =" au-c-control__indicator" ></span >
64
64
{{ yield }}
65
- </label >
66
- {{~!~}}
67
- </template >
65
+ </label ></template >
68
66
}
Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ export default class AuTextarea extends Component<AuTextareaSignature> {
34
34
else return ' ' ;
35
35
}
36
36
37
- < template >
38
- {{~!~}}
39
- <textarea
37
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
38
+ // prettier-ignore
39
+ < template > <textarea
40
40
class =" au-c-textarea
41
41
{{this .error }}
42
42
{{this .warning }}
@@ -46,7 +46,5 @@ export default class AuTextarea extends Component<AuTextareaSignature> {
46
46
...attributes
47
47
>
48
48
{{~ yield ~}}
49
- </textarea >
50
- {{~!~}}
51
- </template >
49
+ </textarea ></template >
52
50
}
Original file line number Diff line number Diff line change @@ -39,9 +39,9 @@ export default class AuToggleSwitch extends Component<AuToggleSwitchSignature> {
39
39
}
40
40
}
41
41
42
- < template >
43
- {{~!~}}
44
- <label
42
+ // We don't want whitespace between our component and the outer template tag since that's visible in the app (inline element): https://github.com/emberjs/rfcs/issues/982
43
+ // prettier-ignore
44
+ < template > <label
45
45
for ={{@ identifier }}
46
46
class =" au-c-toggle-switch
47
47
{{this .alignmentClass }}
@@ -63,7 +63,5 @@ export default class AuToggleSwitch extends Component<AuToggleSwitchSignature> {
63
63
/>
64
64
<span class =" au-c-toggle-switch__toggle" ></span >
65
65
{{ yield }}
66
- </label >
67
- {{~!~}}
68
- </template >
66
+ </label ></template >
69
67
}
You can’t perform that action at this time.
0 commit comments