7
7
*/
8
8
import { SanitizerFn } from '../interfaces/sanitization' ;
9
9
import { getSelectedIndex } from '../state' ;
10
- import { ΔelementAttribute } from './element' ;
11
- import { Δinterpolation1 , Δinterpolation2 , Δinterpolation3 , Δinterpolation4 , Δinterpolation5 , Δinterpolation6 , Δinterpolation7 , Δinterpolation8 , ΔinterpolationV } from './property_interpolation' ;
10
+ import { ɵɵelementAttribute } from './element' ;
11
+ import { ɵɵinterpolation1 , ɵɵinterpolation2 , ɵɵinterpolation3 , ɵɵinterpolation4 , ɵɵinterpolation5 , ɵɵinterpolation6 , ɵɵinterpolation7 , ɵɵinterpolation8 , ɵɵinterpolationV } from './property_interpolation' ;
12
12
import { TsickleIssue1009 } from './shared' ;
13
13
14
- /**
15
- *
16
- * Update an interpolated attribute on an element with a lone bound value
17
- *
18
- * Used when the value passed to a property has 1 interpolated value in it, an no additional text
19
- * surrounds that interpolated value:
20
- *
21
- * ```html
22
- * <div attr.title="{{v0}}"></div>
23
- * ```
24
- *
25
- * Its compiled representation is::
26
- *
27
- * ```ts
28
- * ΔattributeInterpolate('title', v0);
29
- * ```
30
- *
31
- * @param attrName The name of the attribute to update
32
- * @param prefix Static value used for concatenation only.
33
- * @param v0 Value checked for change.
34
- * @param suffix Static value used for concatenation only.
35
- * @param sanitizer An optional sanitizer function
36
- * @returns itself, so that it may be chained.
37
- * @codeGenApi
38
- */
39
- export function ΔattributeInterpolate (
40
- attrName : string , v0 : any , sanitizer ?: SanitizerFn , namespace ?: string ) : TsickleIssue1009 {
41
- ΔattributeInterpolate1 ( attrName , '' , v0 , '' , sanitizer ) ;
42
- return ΔattributeInterpolate ;
43
- }
44
14
45
15
46
16
/**
@@ -56,7 +26,7 @@ export function ΔattributeInterpolate(
56
26
* Its compiled representation is::
57
27
*
58
28
* ```ts
59
- * ΔattributeInterpolate1 ('title', 'prefix', v0, 'suffix');
29
+ * ɵɵattributeInterpolate1 ('title', 'prefix', v0, 'suffix');
60
30
* ```
61
31
*
62
32
* @param attrName The name of the attribute to update
@@ -67,15 +37,17 @@ export function ΔattributeInterpolate(
67
37
* @returns itself, so that it may be chained.
68
38
* @codeGenApi
69
39
*/
70
- export function ΔattributeInterpolate1 (
40
+ export function ɵɵattributeInterpolate1 (
71
41
attrName : string , prefix : string , v0 : any , suffix : string , sanitizer ?: SanitizerFn ,
72
42
namespace ?: string ) : TsickleIssue1009 {
73
43
const index = getSelectedIndex ( ) ;
74
- const interpolatedValue = Δinterpolation1 ( prefix , v0 , suffix ) ;
75
44
76
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
45
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
46
+ const interpolatedValue = ɵɵinterpolation1 ( prefix , v0 , suffix ) ;
47
+
48
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
77
49
78
- return ΔattributeInterpolate1 ;
50
+ return ɵɵattributeInterpolate1 ;
79
51
}
80
52
81
53
/**
@@ -91,7 +63,7 @@ export function ΔattributeInterpolate1(
91
63
* Its compiled representation is::
92
64
*
93
65
* ```ts
94
- * ΔattributeInterpolate2 ('title', 'prefix', v0, '-', v1, 'suffix');
66
+ * ɵɵattributeInterpolate2 ('title', 'prefix', v0, '-', v1, 'suffix');
95
67
* ```
96
68
*
97
69
* @param attrName The name of the attribute to update
@@ -104,13 +76,15 @@ export function ΔattributeInterpolate1(
104
76
* @returns itself, so that it may be chained.
105
77
* @codeGenApi
106
78
*/
107
- export function ΔattributeInterpolate2 (
79
+ export function ɵɵattributeInterpolate2 (
108
80
attrName : string , prefix : string , v0 : any , i0 : string , v1 : any , suffix : string ,
109
81
sanitizer ?: SanitizerFn , namespace ?: string ) : TsickleIssue1009 {
110
82
const index = getSelectedIndex ( ) ;
111
- const interpolatedValue = Δinterpolation2 ( prefix , v0 , i0 , v1 , suffix ) ;
112
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
113
- return ΔattributeInterpolate2 ;
83
+
84
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
85
+ const interpolatedValue = ɵɵinterpolation2 ( prefix , v0 , i0 , v1 , suffix ) ;
86
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
87
+ return ɵɵattributeInterpolate2 ;
114
88
}
115
89
116
90
/**
@@ -126,7 +100,7 @@ export function ΔattributeInterpolate2(
126
100
* Its compiled representation is::
127
101
*
128
102
* ```ts
129
- * ΔattributeInterpolate3 (
103
+ * ɵɵattributeInterpolate3 (
130
104
* 'title', 'prefix', v0, '-', v1, '-', v2, 'suffix');
131
105
* ```
132
106
*
@@ -142,13 +116,15 @@ export function ΔattributeInterpolate2(
142
116
* @returns itself, so that it may be chained.
143
117
* @codeGenApi
144
118
*/
145
- export function ΔattributeInterpolate3 (
119
+ export function ɵɵattributeInterpolate3 (
146
120
attrName : string , prefix : string , v0 : any , i0 : string , v1 : any , i1 : string , v2 : any ,
147
121
suffix : string , sanitizer ?: SanitizerFn , namespace ?: string ) : TsickleIssue1009 {
148
122
const index = getSelectedIndex ( ) ;
149
- const interpolatedValue = Δinterpolation3 ( prefix , v0 , i0 , v1 , i1 , v2 , suffix ) ;
150
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
151
- return ΔattributeInterpolate3 ;
123
+
124
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
125
+ const interpolatedValue = ɵɵinterpolation3 ( prefix , v0 , i0 , v1 , i1 , v2 , suffix ) ;
126
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
127
+ return ɵɵattributeInterpolate3 ;
152
128
}
153
129
154
130
/**
@@ -164,7 +140,7 @@ export function ΔattributeInterpolate3(
164
140
* Its compiled representation is::
165
141
*
166
142
* ```ts
167
- * ΔattributeInterpolate4 (
143
+ * ɵɵattributeInterpolate4 (
168
144
* 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, 'suffix');
169
145
* ```
170
146
*
@@ -182,13 +158,15 @@ export function ΔattributeInterpolate3(
182
158
* @returns itself, so that it may be chained.
183
159
* @codeGenApi
184
160
*/
185
- export function ΔattributeInterpolate4 (
161
+ export function ɵɵattributeInterpolate4 (
186
162
attrName : string , prefix : string , v0 : any , i0 : string , v1 : any , i1 : string , v2 : any , i2 : string ,
187
163
v3 : any , suffix : string , sanitizer ?: SanitizerFn , namespace ?: string ) : TsickleIssue1009 {
188
164
const index = getSelectedIndex ( ) ;
189
- const interpolatedValue = Δinterpolation4 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , suffix ) ;
190
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
191
- return ΔattributeInterpolate4 ;
165
+
166
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
167
+ const interpolatedValue = ɵɵinterpolation4 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , suffix ) ;
168
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
169
+ return ɵɵattributeInterpolate4 ;
192
170
}
193
171
194
172
/**
@@ -204,7 +182,7 @@ export function ΔattributeInterpolate4(
204
182
* Its compiled representation is::
205
183
*
206
184
* ```ts
207
- * ΔattributeInterpolate5 (
185
+ * ɵɵattributeInterpolate5 (
208
186
* 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, 'suffix');
209
187
* ```
210
188
*
@@ -224,14 +202,16 @@ export function ΔattributeInterpolate4(
224
202
* @returns itself, so that it may be chained.
225
203
* @codeGenApi
226
204
*/
227
- export function ΔattributeInterpolate5 (
205
+ export function ɵɵattributeInterpolate5 (
228
206
attrName : string , prefix : string , v0 : any , i0 : string , v1 : any , i1 : string , v2 : any , i2 : string ,
229
207
v3 : any , i3 : string , v4 : any , suffix : string , sanitizer ?: SanitizerFn ,
230
208
namespace ?: string ) : TsickleIssue1009 {
231
209
const index = getSelectedIndex ( ) ;
232
- const interpolatedValue = Δinterpolation5 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , suffix ) ;
233
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
234
- return ΔattributeInterpolate5 ;
210
+
211
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
212
+ const interpolatedValue = ɵɵinterpolation5 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , suffix ) ;
213
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
214
+ return ɵɵattributeInterpolate5 ;
235
215
}
236
216
237
217
/**
@@ -247,7 +227,7 @@ export function ΔattributeInterpolate5(
247
227
* Its compiled representation is::
248
228
*
249
229
* ```ts
250
- * ΔattributeInterpolate6 (
230
+ * ɵɵattributeInterpolate6 (
251
231
* 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, 'suffix');
252
232
* ```
253
233
*
@@ -269,15 +249,16 @@ export function ΔattributeInterpolate5(
269
249
* @returns itself, so that it may be chained.
270
250
* @codeGenApi
271
251
*/
272
- export function ΔattributeInterpolate6 (
252
+ export function ɵɵattributeInterpolate6 (
273
253
attrName : string , prefix : string , v0 : any , i0 : string , v1 : any , i1 : string , v2 : any , i2 : string ,
274
254
v3 : any , i3 : string , v4 : any , i4 : string , v5 : any , suffix : string , sanitizer ?: SanitizerFn ,
275
255
namespace ?: string ) : TsickleIssue1009 {
276
256
const index = getSelectedIndex ( ) ;
257
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
277
258
const interpolatedValue =
278
- Δinterpolation6 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , i4 , v5 , suffix ) ;
279
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
280
- return ΔattributeInterpolate6 ;
259
+ ɵɵinterpolation6 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , i4 , v5 , suffix ) ;
260
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
261
+ return ɵɵattributeInterpolate6 ;
281
262
}
282
263
283
264
/**
@@ -293,7 +274,7 @@ export function ΔattributeInterpolate6(
293
274
* Its compiled representation is::
294
275
*
295
276
* ```ts
296
- * ΔattributeInterpolate7 (
277
+ * ɵɵattributeInterpolate7 (
297
278
* 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, 'suffix');
298
279
* ```
299
280
*
@@ -317,15 +298,16 @@ export function ΔattributeInterpolate6(
317
298
* @returns itself, so that it may be chained.
318
299
* @codeGenApi
319
300
*/
320
- export function ΔattributeInterpolate7 (
301
+ export function ɵɵattributeInterpolate7 (
321
302
attrName : string , prefix : string , v0 : any , i0 : string , v1 : any , i1 : string , v2 : any , i2 : string ,
322
303
v3 : any , i3 : string , v4 : any , i4 : string , v5 : any , i5 : string , v6 : any , suffix : string ,
323
304
sanitizer ?: SanitizerFn , namespace ?: string ) : TsickleIssue1009 {
324
305
const index = getSelectedIndex ( ) ;
306
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
325
307
const interpolatedValue =
326
- Δinterpolation7 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , i4 , v5 , i5 , v6 , suffix ) ;
327
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
328
- return ΔattributeInterpolate7 ;
308
+ ɵɵinterpolation7 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , i4 , v5 , i5 , v6 , suffix ) ;
309
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
310
+ return ɵɵattributeInterpolate7 ;
329
311
}
330
312
331
313
/**
@@ -341,7 +323,7 @@ export function ΔattributeInterpolate7(
341
323
* Its compiled representation is::
342
324
*
343
325
* ```ts
344
- * ΔattributeInterpolate8 (
326
+ * ɵɵattributeInterpolate8 (
345
327
* 'title', 'prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, 'suffix');
346
328
* ```
347
329
*
@@ -367,15 +349,16 @@ export function ΔattributeInterpolate7(
367
349
* @returns itself, so that it may be chained.
368
350
* @codeGenApi
369
351
*/
370
- export function ΔattributeInterpolate8 (
352
+ export function ɵɵattributeInterpolate8 (
371
353
attrName : string , prefix : string , v0 : any , i0 : string , v1 : any , i1 : string , v2 : any , i2 : string ,
372
354
v3 : any , i3 : string , v4 : any , i4 : string , v5 : any , i5 : string , v6 : any , i6 : string , v7 : any ,
373
355
suffix : string , sanitizer ?: SanitizerFn , namespace ?: string ) : TsickleIssue1009 {
374
356
const index = getSelectedIndex ( ) ;
357
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
375
358
const interpolatedValue =
376
- Δinterpolation8 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , i4 , v5 , i5 , v6 , i6 , v7 , suffix ) ;
377
- ΔelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
378
- return ΔattributeInterpolate8 ;
359
+ ɵɵinterpolation8 ( prefix , v0 , i0 , v1 , i1 , v2 , i2 , v3 , i3 , v4 , i4 , v5 , i5 , v6 , i6 , v7 , suffix ) ;
360
+ ɵɵelementAttribute ( index , attrName , interpolatedValue , sanitizer , namespace ) ;
361
+ return ɵɵattributeInterpolate8 ;
379
362
}
380
363
381
364
/**
@@ -391,7 +374,7 @@ export function ΔattributeInterpolate8(
391
374
* Its compiled representation is::
392
375
*
393
376
* ```ts
394
- * ΔattributeInterpolateV (
377
+ * ɵɵattributeInterpolateV (
395
378
* 'title', ['prefix', v0, '-', v1, '-', v2, '-', v3, '-', v4, '-', v5, '-', v6, '-', v7, '-', v9,
396
379
* 'suffix']);
397
380
* ```
@@ -404,10 +387,11 @@ export function ΔattributeInterpolate8(
404
387
* @returns itself, so that it may be chained.
405
388
* @codeGenApi
406
389
*/
407
- export function ΔattributeInterpolateV (
390
+ export function ɵɵattributeInterpolateV (
408
391
attrName : string , values : any [ ] , sanitizer ?: SanitizerFn ,
409
392
namespace ?: string ) : TsickleIssue1009 {
410
393
const index = getSelectedIndex ( ) ;
411
- ΔelementAttribute ( index , attrName , ΔinterpolationV ( values ) , sanitizer , namespace ) ;
412
- return ΔattributeInterpolateV ;
394
+ // TODO(FW-1340): Refactor to remove the use of other instructions here.
395
+ ɵɵelementAttribute ( index , attrName , ɵɵinterpolationV ( values ) , sanitizer , namespace ) ;
396
+ return ɵɵattributeInterpolateV ;
413
397
}
0 commit comments