carbon-components-angular 3.14.5 → 3.15.1
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/bundle/carbon-angular.umd.js +161 -5
- package/bundle/carbon-angular.umd.js.map +1 -1
- package/combobox/combobox.component.js +6 -8
- package/combobox/combobox.component.js.map +1 -1
- package/datepicker/datepicker.component.d.ts +8 -4
- package/datepicker/datepicker.component.js +26 -10
- package/datepicker/datepicker.component.js.map +1 -1
- package/datepicker/datepicker.component.metadata.json +1 -1
- package/datepicker/datepicker.component.ngfactory.js +1 -1
- package/datepicker/datepicker.component.ngsummary.json +1 -1
- package/docs/documentation/classes/ToggleChange.html +1 -1
- package/docs/documentation/components/ClickableTile.html +173 -160
- package/docs/documentation/components/ComboBox.html +5 -7
- package/docs/documentation/components/DatePicker.html +109 -36
- package/docs/documentation/components/ExpandableTile.html +1 -1
- package/docs/documentation/components/HeaderItem.html +241 -11
- package/docs/documentation/components/Pagination.html +1 -1
- package/docs/documentation/components/Select.html +12 -12
- package/docs/documentation/components/SideNavItem.html +236 -13
- package/docs/documentation/components/TabHeaders.html +5 -5
- package/docs/documentation/components/Table.html +22 -22
- package/docs/documentation/components/TableToolbar.html +1 -1
- package/docs/documentation/components/TimePickerSelect.html +4 -4
- package/docs/documentation/components/Toggle.html +1 -1
- package/docs/documentation/coverage.html +15 -15
- package/docs/documentation/directives/ColumnDirective.html +7 -2
- package/docs/documentation/directives/DataGridFocus.html +1 -6
- package/docs/documentation/directives/GridDirective.html +7 -2
- package/docs/documentation/directives/RowDirective.html +7 -2
- package/docs/documentation/interfaces/ExpandableTileTranslations.html +1 -1
- package/docs/documentation/interfaces/PaginationTranslations.html +1 -1
- package/docs/documentation/interfaces/TableTranslations.html +5 -5
- package/docs/documentation/js/menu-wc.js +1 -1
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/I18nModule.html +3 -3
- package/docs/storybook/iframe.html +3 -3
- package/docs/storybook/{main.f5813f877450223bdbab.bundle.js → main.b0c2a883db185116459f.bundle.js} +296 -67
- package/docs/storybook/main.b0c2a883db185116459f.bundle.js.map +1 -0
- package/docs/storybook/{runtime~main.f5813f877450223bdbab.bundle.js → runtime~main.b0c2a883db185116459f.bundle.js} +1 -1
- package/docs/storybook/{runtime~main.f5813f877450223bdbab.bundle.js.map → runtime~main.b0c2a883db185116459f.bundle.js.map} +1 -1
- package/docs/storybook/{vendors~main.f5813f877450223bdbab.bundle.js → vendors~main.b0c2a883db185116459f.bundle.js} +5472 -1
- package/docs/storybook/vendors~main.b0c2a883db185116459f.bundle.js.map +1 -0
- package/grid/grid.directive.js +6 -2
- package/grid/grid.directive.js.map +1 -1
- package/i18n/i18n.module.d.ts +1 -1
- package/i18n/i18n.module.js +3 -3
- package/i18n/i18n.module.js.map +1 -1
- package/i18n/i18n.module.metadata.json +1 -1
- package/i18n/i18n.module.ngsummary.json +1 -1
- package/index.ngsummary.json +1 -1
- package/package.json +1 -1
- package/pagination/pagination.component.d.ts +10 -10
- package/pagination/pagination.component.js.map +1 -1
- package/select/select.component.d.ts +4 -4
- package/select/select.component.js +3 -3
- package/select/select.component.js.map +1 -1
- package/select/select.component.metadata.json +1 -1
- package/select/select.component.ngsummary.json +1 -1
- package/table/data-grid-focus.directive.js +1 -1
- package/table/data-grid-focus.directive.js.map +1 -1
- package/table/data-grid-focus.directive.metadata.json +1 -1
- package/table/data-grid-focus.directive.ngsummary.json +1 -1
- package/table/table.component.d.ts +12 -12
- package/table/table.component.js +3 -3
- package/table/table.component.js.map +1 -1
- package/table/table.component.ngfactory.js +7 -7
- package/table/toolbar/table-toolbar.component.d.ts +3 -3
- package/table/toolbar/table-toolbar.component.js.map +1 -1
- package/tabs/tab-headers.component.js +1 -1
- package/tabs/tab-headers.component.js.map +1 -1
- package/tabs/tab-headers.component.metadata.json +1 -1
- package/tabs/tab-headers.component.ngfactory.js +2 -2
- package/tabs/tab-headers.component.ngfactory.js.map +1 -1
- package/tiles/clickable-tile.component.d.ts +19 -13
- package/tiles/clickable-tile.component.js +26 -17
- package/tiles/clickable-tile.component.js.map +1 -1
- package/tiles/clickable-tile.component.metadata.json +1 -1
- package/tiles/clickable-tile.component.ngfactory.js +8 -11
- package/tiles/clickable-tile.component.ngfactory.js.map +1 -1
- package/tiles/clickable-tile.component.ngsummary.json +1 -1
- package/tiles/expandable-tile.component.d.ts +3 -3
- package/tiles/expandable-tile.component.js.map +1 -1
- package/tiles/tiles.module.ngfactory.js.map +1 -1
- package/toggle/toggle.component.d.ts +3 -3
- package/toggle/toggle.component.js.map +1 -1
- package/ui-shell/header/header-item.component.d.ts +19 -1
- package/ui-shell/header/header-item.component.js +22 -5
- package/ui-shell/header/header-item.component.js.map +1 -1
- package/ui-shell/header/header-item.component.metadata.json +1 -1
- package/ui-shell/header/header-item.component.ngfactory.js +7 -3
- package/ui-shell/header/header-item.component.ngfactory.js.map +1 -1
- package/ui-shell/header/header-item.component.ngsummary.json +1 -1
- package/ui-shell/header/header.module.ngfactory.js.map +1 -1
- package/ui-shell/sidenav/sidenav-item.component.d.ts +19 -1
- package/ui-shell/sidenav/sidenav-item.component.js +22 -5
- package/ui-shell/sidenav/sidenav-item.component.js.map +1 -1
- package/ui-shell/sidenav/sidenav-item.component.metadata.json +1 -1
- package/ui-shell/sidenav/sidenav-item.component.ngfactory.js +7 -3
- package/ui-shell/sidenav/sidenav-item.component.ngfactory.js.map +1 -1
- package/ui-shell/sidenav/sidenav-item.component.ngsummary.json +1 -1
- package/ui-shell/sidenav/sidenav.module.ngfactory.js.map +1 -1
- package/docs/storybook/main.f5813f877450223bdbab.bundle.js.map +0 -1
- package/docs/storybook/vendors~main.f5813f877450223bdbab.bundle.js.map +0 -1
|
@@ -72,11 +72,6 @@
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
<p class="comment">
|
|
76
|
-
<h3>Example</h3>
|
|
77
|
-
</p>
|
|
78
|
-
<div class="io-description">
|
|
79
|
-
</div>
|
|
80
75
|
|
|
81
76
|
<section>
|
|
82
77
|
<h3>Metadata</h3>
|
|
@@ -105,14 +100,10 @@
|
|
|
105
100
|
<td class="col-md-9"><pre class="line-numbers"><code class="language-html"><a
|
|
106
101
|
ibmLink
|
|
107
102
|
class="bx--tile bx--tile--clickable"
|
|
108
|
-
[ngClass]="{
|
|
109
|
-
'bx--tile--is-clicked': clicked
|
|
110
|
-
}"
|
|
111
103
|
tabindex="0"
|
|
112
|
-
(click)="
|
|
113
|
-
(keydown)="onKeyDown($event)"
|
|
104
|
+
(click)="navigate($event)"
|
|
114
105
|
[href]="href"
|
|
115
|
-
[target]="target"
|
|
106
|
+
[attr.target]="target"
|
|
116
107
|
[attr.aria-disabled]="disabled">
|
|
117
108
|
<ng-content></ng-content>
|
|
118
109
|
</a></code></pre></td>
|
|
@@ -134,16 +125,17 @@
|
|
|
134
125
|
<h3 id="index">Index</h3>
|
|
135
126
|
<table class="table table-sm table-bordered index-table">
|
|
136
127
|
<tbody>
|
|
128
|
+
|
|
137
129
|
<tr>
|
|
138
130
|
<td class="col-md-4">
|
|
139
|
-
<h6><b>
|
|
131
|
+
<h6><b>Methods</b></h6>
|
|
140
132
|
</td>
|
|
141
133
|
</tr>
|
|
142
134
|
<tr>
|
|
143
135
|
<td class="col-md-4">
|
|
144
136
|
<ul class="index-list">
|
|
145
137
|
<li>
|
|
146
|
-
<a href="#
|
|
138
|
+
<a href="#navigate">navigate</a>
|
|
147
139
|
</li>
|
|
148
140
|
</ul>
|
|
149
141
|
</td>
|
|
@@ -151,17 +143,26 @@
|
|
|
151
143
|
|
|
152
144
|
<tr>
|
|
153
145
|
<td class="col-md-4">
|
|
154
|
-
<h6><b>
|
|
146
|
+
<h6><b>Inputs</b></h6>
|
|
155
147
|
</td>
|
|
156
148
|
</tr>
|
|
157
149
|
<tr>
|
|
158
150
|
<td class="col-md-4">
|
|
159
151
|
<ul class="index-list">
|
|
160
152
|
<li>
|
|
161
|
-
<a href="#
|
|
153
|
+
<a href="#disabled">disabled</a>
|
|
154
|
+
</li>
|
|
155
|
+
<li>
|
|
156
|
+
<a href="#href">href</a>
|
|
157
|
+
</li>
|
|
158
|
+
<li>
|
|
159
|
+
<a href="#route">route</a>
|
|
162
160
|
</li>
|
|
163
161
|
<li>
|
|
164
|
-
<a href="#
|
|
162
|
+
<a href="#routeExtras">routeExtras</a>
|
|
163
|
+
</li>
|
|
164
|
+
<li>
|
|
165
|
+
<a href="#target">target</a>
|
|
165
166
|
</li>
|
|
166
167
|
</ul>
|
|
167
168
|
</td>
|
|
@@ -169,20 +170,14 @@
|
|
|
169
170
|
|
|
170
171
|
<tr>
|
|
171
172
|
<td class="col-md-4">
|
|
172
|
-
<h6><b>
|
|
173
|
+
<h6><b>Outputs</b></h6>
|
|
173
174
|
</td>
|
|
174
175
|
</tr>
|
|
175
176
|
<tr>
|
|
176
177
|
<td class="col-md-4">
|
|
177
178
|
<ul class="index-list">
|
|
178
179
|
<li>
|
|
179
|
-
<a href="#
|
|
180
|
-
</li>
|
|
181
|
-
<li>
|
|
182
|
-
<a href="#href">href</a>
|
|
183
|
-
</li>
|
|
184
|
-
<li>
|
|
185
|
-
<a href="#target">target</a>
|
|
180
|
+
<a href="#navigation">navigation</a>
|
|
186
181
|
</li>
|
|
187
182
|
</ul>
|
|
188
183
|
</td>
|
|
@@ -190,11 +185,58 @@
|
|
|
190
185
|
|
|
191
186
|
|
|
192
187
|
|
|
193
|
-
|
|
194
188
|
</tbody>
|
|
195
189
|
</table>
|
|
196
190
|
</section>
|
|
197
191
|
|
|
192
|
+
<section>
|
|
193
|
+
<h3 id="constructor">Constructor</h3>
|
|
194
|
+
<table class="table table-sm table-bordered">
|
|
195
|
+
<tbody>
|
|
196
|
+
<tr>
|
|
197
|
+
<td class="col-md-4">
|
|
198
|
+
<code>constructor(router: <a href="https://angular.io/api/router/Router" target="_blank">Router</a>)</code>
|
|
199
|
+
</td>
|
|
200
|
+
</tr>
|
|
201
|
+
<tr>
|
|
202
|
+
<td class="col-md-4">
|
|
203
|
+
<div class="io-line">Defined in <a href="" data-line="66" class="link-to-prism">src/tiles/clickable-tile.component.ts:66</a></div>
|
|
204
|
+
</td>
|
|
205
|
+
</tr>
|
|
206
|
+
|
|
207
|
+
<tr>
|
|
208
|
+
<td class="col-md-4">
|
|
209
|
+
<div>
|
|
210
|
+
<b>Parameters :</b>
|
|
211
|
+
<table class="params">
|
|
212
|
+
<thead>
|
|
213
|
+
<tr>
|
|
214
|
+
<td>Name</td>
|
|
215
|
+
<td>Type</td>
|
|
216
|
+
<td>Optional</td>
|
|
217
|
+
</tr>
|
|
218
|
+
</thead>
|
|
219
|
+
<tbody>
|
|
220
|
+
<tr>
|
|
221
|
+
<td>router</td>
|
|
222
|
+
|
|
223
|
+
<td>
|
|
224
|
+
<code><a href="https://angular.io/api/router/Router" target="_blank" >Router</a></code>
|
|
225
|
+
</td>
|
|
226
|
+
|
|
227
|
+
<td>
|
|
228
|
+
No
|
|
229
|
+
</td>
|
|
230
|
+
|
|
231
|
+
</tr>
|
|
232
|
+
</tbody>
|
|
233
|
+
</table>
|
|
234
|
+
</div>
|
|
235
|
+
</td>
|
|
236
|
+
</tr>
|
|
237
|
+
</tbody>
|
|
238
|
+
</table>
|
|
239
|
+
</section>
|
|
198
240
|
|
|
199
241
|
<section>
|
|
200
242
|
<h3 id="inputs">Inputs</h3>
|
|
@@ -215,7 +257,7 @@
|
|
|
215
257
|
</tr>
|
|
216
258
|
<tr>
|
|
217
259
|
<td class="col-md-2" colspan="2">
|
|
218
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
260
|
+
<div class="io-line">Defined in <a href="" data-line="49" class="link-to-prism">src/tiles/clickable-tile.component.ts:49</a></div>
|
|
219
261
|
</td>
|
|
220
262
|
</tr>
|
|
221
263
|
</tbody>
|
|
@@ -229,16 +271,63 @@
|
|
|
229
271
|
</td>
|
|
230
272
|
<td class="col-md-10">
|
|
231
273
|
<div><p>Sets the <code>href</code> attribute on the <code>ibm-clickable-tile</code> element.</p>
|
|
274
|
+
</div>
|
|
275
|
+
<p>
|
|
276
|
+
<em>Default value : </em><code>"#"</code>
|
|
277
|
+
</p>
|
|
278
|
+
</td>
|
|
279
|
+
</tr>
|
|
280
|
+
<tr>
|
|
281
|
+
<td class="col-md-2" colspan="2">
|
|
282
|
+
<div class="io-line">Defined in <a href="" data-line="39" class="link-to-prism">src/tiles/clickable-tile.component.ts:39</a></div>
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
</tbody>
|
|
286
|
+
</table>
|
|
287
|
+
<table class="table table-sm table-bordered">
|
|
288
|
+
<tbody>
|
|
289
|
+
<tr>
|
|
290
|
+
<td class="col-md-2">
|
|
291
|
+
<a name="route"></a>
|
|
292
|
+
<code>route</code>
|
|
293
|
+
</td>
|
|
294
|
+
<td class="col-md-10">
|
|
295
|
+
<div><p>Array of commands to send to the router when the link is activated
|
|
296
|
+
See: <a href="https://angular.io/api/router/Router#navigate">https://angular.io/api/router/Router#navigate</a></p>
|
|
232
297
|
</div>
|
|
233
298
|
<p>
|
|
234
|
-
<em>Type :</em> <code
|
|
299
|
+
<em>Type :</em> <code>any[]</code>
|
|
235
300
|
|
|
236
301
|
</p>
|
|
237
302
|
</td>
|
|
238
303
|
</tr>
|
|
239
304
|
<tr>
|
|
240
305
|
<td class="col-md-2" colspan="2">
|
|
241
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
306
|
+
<div class="io-line">Defined in <a href="" data-line="55" class="link-to-prism">src/tiles/clickable-tile.component.ts:55</a></div>
|
|
307
|
+
</td>
|
|
308
|
+
</tr>
|
|
309
|
+
</tbody>
|
|
310
|
+
</table>
|
|
311
|
+
<table class="table table-sm table-bordered">
|
|
312
|
+
<tbody>
|
|
313
|
+
<tr>
|
|
314
|
+
<td class="col-md-2">
|
|
315
|
+
<a name="routeExtras"></a>
|
|
316
|
+
<code>routeExtras</code>
|
|
317
|
+
</td>
|
|
318
|
+
<td class="col-md-10">
|
|
319
|
+
<div><p>Router options. Used in conjunction with <code>route</code>
|
|
320
|
+
See: <a href="https://angular.io/api/router/Router#navigate">https://angular.io/api/router/Router#navigate</a></p>
|
|
321
|
+
</div>
|
|
322
|
+
<p>
|
|
323
|
+
<em>Type :</em> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
324
|
+
|
|
325
|
+
</p>
|
|
326
|
+
</td>
|
|
327
|
+
</tr>
|
|
328
|
+
<tr>
|
|
329
|
+
<td class="col-md-2" colspan="2">
|
|
330
|
+
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/tiles/clickable-tile.component.ts:61</a></div>
|
|
242
331
|
</td>
|
|
243
332
|
</tr>
|
|
244
333
|
</tbody>
|
|
@@ -261,108 +350,66 @@
|
|
|
261
350
|
</tr>
|
|
262
351
|
<tr>
|
|
263
352
|
<td class="col-md-2" colspan="2">
|
|
264
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
353
|
+
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/tiles/clickable-tile.component.ts:44</a></div>
|
|
265
354
|
</td>
|
|
266
355
|
</tr>
|
|
267
356
|
</tbody>
|
|
268
357
|
</table>
|
|
269
358
|
</section>
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
359
|
<section>
|
|
274
|
-
|
|
275
|
-
<h3 id="methods">
|
|
276
|
-
Methods
|
|
277
|
-
</h3>
|
|
360
|
+
<h3 id="outputs">Outputs</h3>
|
|
278
361
|
<table class="table table-sm table-bordered">
|
|
279
362
|
<tbody>
|
|
280
363
|
<tr>
|
|
281
|
-
<td class="col-md-
|
|
282
|
-
<a name="
|
|
283
|
-
<
|
|
284
|
-
<b>
|
|
285
|
-
onClick
|
|
286
|
-
</b>
|
|
287
|
-
<a href="#onClick"><span class="icon ion-ios-link"></span></a>
|
|
288
|
-
</span>
|
|
364
|
+
<td class="col-md-2">
|
|
365
|
+
<a name="navigation"></a>
|
|
366
|
+
<code>navigation</code>
|
|
289
367
|
</td>
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
<code
|
|
368
|
+
<td class="col-md-10">
|
|
369
|
+
<div><p>Emits the navigation status promise when the link is activated</p>
|
|
370
|
+
</div>
|
|
371
|
+
<em><code>$event</code> Type:</em> <code><a href="https://angular.io/api/core/EventEmitter" target="_blank" >EventEmitter</a></code>
|
|
372
|
+
|
|
294
373
|
</td>
|
|
295
374
|
</tr>
|
|
296
|
-
|
|
297
|
-
|
|
298
375
|
<tr>
|
|
299
|
-
<td class="col-md-
|
|
300
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
376
|
+
<td class="col-md-2" colspan="2">
|
|
377
|
+
<div class="io-line">Defined in <a href="" data-line="66" class="link-to-prism">src/tiles/clickable-tile.component.ts:66</a></div>
|
|
301
378
|
</td>
|
|
302
379
|
</tr>
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
<tr>
|
|
306
|
-
<td class="col-md-4">
|
|
307
|
-
|
|
308
|
-
<div class="io-description">
|
|
309
|
-
<b>Parameters :</b>
|
|
310
|
-
<table class="params">
|
|
311
|
-
<thead>
|
|
312
|
-
<tr>
|
|
313
|
-
<td>Name</td>
|
|
314
|
-
<td>Optional</td>
|
|
315
|
-
</tr>
|
|
316
|
-
</thead>
|
|
317
|
-
<tbody>
|
|
318
|
-
<tr>
|
|
319
|
-
<td>event</td>
|
|
320
|
-
|
|
321
|
-
<td>
|
|
322
|
-
No
|
|
323
|
-
</td>
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
</tr>
|
|
327
|
-
</tbody>
|
|
328
|
-
</table>
|
|
329
|
-
</div>
|
|
330
|
-
<div>
|
|
331
|
-
</div>
|
|
332
|
-
<div class="io-description">
|
|
333
|
-
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
334
|
-
|
|
335
|
-
</div>
|
|
336
|
-
<div class="io-description">
|
|
337
|
-
|
|
338
|
-
</div>
|
|
339
|
-
</td>
|
|
340
|
-
</tr>
|
|
341
380
|
</tbody>
|
|
342
381
|
</table>
|
|
382
|
+
</section>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
<section>
|
|
386
|
+
|
|
387
|
+
<h3 id="methods">
|
|
388
|
+
Methods
|
|
389
|
+
</h3>
|
|
343
390
|
<table class="table table-sm table-bordered">
|
|
344
391
|
<tbody>
|
|
345
392
|
<tr>
|
|
346
393
|
<td class="col-md-4">
|
|
347
|
-
<a name="
|
|
394
|
+
<a name="navigate"></a>
|
|
348
395
|
<span class="name">
|
|
349
396
|
<b>
|
|
350
|
-
|
|
397
|
+
navigate
|
|
351
398
|
</b>
|
|
352
|
-
<a href="#
|
|
399
|
+
<a href="#navigate"><span class="icon ion-ios-link"></span></a>
|
|
353
400
|
</span>
|
|
354
401
|
</td>
|
|
355
402
|
</tr>
|
|
356
403
|
<tr>
|
|
357
404
|
<td class="col-md-4">
|
|
358
|
-
<code>
|
|
405
|
+
<code>navigate(event)</code>
|
|
359
406
|
</td>
|
|
360
407
|
</tr>
|
|
361
408
|
|
|
362
409
|
|
|
363
410
|
<tr>
|
|
364
411
|
<td class="col-md-4">
|
|
365
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
412
|
+
<div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/tiles/clickable-tile.component.ts:70</a></div>
|
|
366
413
|
</td>
|
|
367
414
|
</tr>
|
|
368
415
|
|
|
@@ -407,45 +454,6 @@
|
|
|
407
454
|
</table>
|
|
408
455
|
</section>
|
|
409
456
|
|
|
410
|
-
<section>
|
|
411
|
-
|
|
412
|
-
<h3 id="inputs">
|
|
413
|
-
Properties
|
|
414
|
-
</h3>
|
|
415
|
-
<table class="table table-sm table-bordered">
|
|
416
|
-
<tbody>
|
|
417
|
-
<tr>
|
|
418
|
-
<td class="col-md-4">
|
|
419
|
-
<a name="clicked"></a>
|
|
420
|
-
<span class="name">
|
|
421
|
-
<b>
|
|
422
|
-
clicked
|
|
423
|
-
</b>
|
|
424
|
-
<a href="#clicked"><span class="icon ion-ios-link"></span></a>
|
|
425
|
-
</span>
|
|
426
|
-
</td>
|
|
427
|
-
</tr>
|
|
428
|
-
<tr>
|
|
429
|
-
<td class="col-md-4">
|
|
430
|
-
<code>clicked: <code></code>
|
|
431
|
-
</code>
|
|
432
|
-
</td>
|
|
433
|
-
</tr>
|
|
434
|
-
<tr>
|
|
435
|
-
<td class="col-md-4">
|
|
436
|
-
<i>Default value : </i><code>false</code>
|
|
437
|
-
</td>
|
|
438
|
-
</tr>
|
|
439
|
-
<tr>
|
|
440
|
-
<td class="col-md-4">
|
|
441
|
-
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/tiles/clickable-tile.component.ts:61</a></div>
|
|
442
|
-
</td>
|
|
443
|
-
</tr>
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
</tbody>
|
|
447
|
-
</table>
|
|
448
|
-
</section>
|
|
449
457
|
|
|
450
458
|
</div>
|
|
451
459
|
|
|
@@ -453,8 +461,12 @@
|
|
|
453
461
|
<div class="tab-pane fade tab-source-code" id="c-source">
|
|
454
462
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
455
463
|
Component,
|
|
456
|
-
Input
|
|
464
|
+
Input,
|
|
465
|
+
Output,
|
|
466
|
+
EventEmitter,
|
|
467
|
+
Optional
|
|
457
468
|
} from "@angular/core";
|
|
469
|
+
import { Router } from "@angular/router";
|
|
458
470
|
|
|
459
471
|
/**
|
|
460
472
|
* Build application's clickable tiles using this component.
|
|
@@ -466,10 +478,6 @@
|
|
|
466
478
|
* tile content
|
|
467
479
|
* </ibm-clickable-tile>
|
|
468
480
|
* ```
|
|
469
|
-
*
|
|
470
|
-
* @export
|
|
471
|
-
* @class ClickableTile
|
|
472
|
-
* @implements {OnInit}
|
|
473
481
|
*/
|
|
474
482
|
@Component({
|
|
475
483
|
selector: "ibm-clickable-tile",
|
|
@@ -477,14 +485,10 @@
|
|
|
477
485
|
<a
|
|
478
486
|
ibmLink
|
|
479
487
|
class="bx--tile bx--tile--clickable"
|
|
480
|
-
[ngClass]="{
|
|
481
|
-
'bx--tile--is-clicked': clicked
|
|
482
|
-
}"
|
|
483
488
|
tabindex="0"
|
|
484
|
-
(click)="
|
|
485
|
-
(keydown)="onKeyDown($event)"
|
|
489
|
+
(click)="navigate($event)"
|
|
486
490
|
[href]="href"
|
|
487
|
-
[target]="target"
|
|
491
|
+
[attr.target]="target"
|
|
488
492
|
[attr.aria-disabled]="disabled">
|
|
489
493
|
<ng-content></ng-content>
|
|
490
494
|
</a>`
|
|
@@ -492,34 +496,43 @@
|
|
|
492
496
|
export class ClickableTile {
|
|
493
497
|
/**
|
|
494
498
|
* Sets the `href` attribute on the `ibm-clickable-tile` element.
|
|
495
|
-
* @type {string}
|
|
496
|
-
* @memberof ClickableTile
|
|
497
499
|
*/
|
|
498
|
-
@Input() href
|
|
500
|
+
@Input() href = "#";
|
|
499
501
|
|
|
500
502
|
/**
|
|
501
503
|
* Sets the `target` attribute on the `ibm-clickable-tile` element.
|
|
502
|
-
* @type {string}
|
|
503
|
-
* @memberof ClickableTile
|
|
504
504
|
*/
|
|
505
505
|
@Input() target: string;
|
|
506
506
|
|
|
507
507
|
/**
|
|
508
508
|
* Set to `true` to disable the clickable tile.
|
|
509
|
-
* @type {boolean}
|
|
510
|
-
* @memberof ClickableTile
|
|
511
509
|
*/
|
|
512
510
|
@Input() disabled = false;
|
|
513
511
|
|
|
514
|
-
|
|
512
|
+
/**
|
|
513
|
+
* Array of commands to send to the router when the link is activated
|
|
514
|
+
* See: https://angular.io/api/router/Router#navigate
|
|
515
|
+
*/
|
|
516
|
+
@Input() route: any[];
|
|
515
517
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
518
|
+
/**
|
|
519
|
+
* Router options. Used in conjunction with `route`
|
|
520
|
+
* See: https://angular.io/api/router/Router#navigate
|
|
521
|
+
*/
|
|
522
|
+
@Input() routeExtras: any;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Emits the navigation status promise when the link is activated
|
|
526
|
+
*/
|
|
527
|
+
@Output() navigation = new EventEmitter<Promise<boolean>>();
|
|
528
|
+
|
|
529
|
+
constructor(@Optional() protected router: Router) {}
|
|
519
530
|
|
|
520
|
-
|
|
521
|
-
if (
|
|
522
|
-
|
|
531
|
+
navigate(event) {
|
|
532
|
+
if (this.router && this.route) {
|
|
533
|
+
event.preventDefault();
|
|
534
|
+
const status = this.router.navigate(this.route, this.routeExtras);
|
|
535
|
+
this.navigation.emit(status);
|
|
523
536
|
}
|
|
524
537
|
}
|
|
525
538
|
}
|
|
@@ -553,7 +566,7 @@ export class ClickableTile {
|
|
|
553
566
|
<script src="../js/libs/htmlparser.js"></script>
|
|
554
567
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
555
568
|
<script>
|
|
556
|
-
var COMPONENT_TEMPLATE = '<div><a ibmLink class="bx--tile bx--tile--clickable"
|
|
569
|
+
var COMPONENT_TEMPLATE = '<div><a ibmLink class="bx--tile bx--tile--clickable" tabindex="0" (click)="navigate($event)" [href]="href" [attr.target]="target" [attr.aria-disabled]="disabled"> <ng-content></ng-content></a></div>'
|
|
557
570
|
var COMPONENTS = [{'name': 'Accordion', 'selector': 'ibm-accordion'},{'name': 'AccordionItem', 'selector': 'ibm-accordion-item'},{'name': 'AlertModal', 'selector': 'ibm-alert-modal'},{'name': 'Breadcrumb', 'selector': 'ibm-breadcrumb'},{'name': 'BreadcrumbItemComponent', 'selector': 'ibm-breadcrumb-item'},{'name': 'Checkbox', 'selector': 'ibm-checkbox'},{'name': 'ClickableTile', 'selector': 'ibm-clickable-tile'},{'name': 'CodeSnippet', 'selector': 'ibm-code-snippet'},{'name': 'ComboBox', 'selector': 'ibm-combo-box'},{'name': 'ContentSwitcher', 'selector': 'ibm-content-switcher'},{'name': 'DatePicker', 'selector': 'ibm-date-picker'},{'name': 'DatePickerInput', 'selector': 'ibm-date-picker-input'},{'name': 'Dialog', 'selector': 'ibm-dialog'},{'name': 'DialogPlaceholder', 'selector': 'ibm-dialog-placeholder'},{'name': 'Documentation', 'selector': 'ibm-documentation'},{'name': 'Dropdown', 'selector': 'ibm-dropdown'},{'name': 'DropdownList', 'selector': 'ibm-dropdown-list'},{'name': 'ExpandableTile', 'selector': 'ibm-expandable-tile'},{'name': 'File', 'selector': 'ibm-file'},{'name': 'FileUploader', 'selector': 'ibm-file-uploader'},{'name': 'Hamburger', 'selector': 'ibm-hamburger'},{'name': 'Header', 'selector': 'ibm-header'},{'name': 'HeaderAction', 'selector': 'ibm-header-action'},{'name': 'HeaderGlobal', 'selector': 'ibm-header-global'},{'name': 'HeaderItem', 'selector': 'ibm-header-item'},{'name': 'HeaderMenu', 'selector': 'ibm-header-menu'},{'name': 'HeaderNavigation', 'selector': 'ibm-header-navigation'},{'name': 'InlineLoading', 'selector': 'ibm-inline-loading'},{'name': 'Label', 'selector': 'ibm-label'},{'name': 'ListColumn', 'selector': 'ibm-list-column'},{'name': 'ListHeader', 'selector': 'ibm-list-header'},{'name': 'ListRow', 'selector': 'ibm-list-row'},{'name': 'Loading', 'selector': 'ibm-loading'},{'name': 'Modal', 'selector': 'ibm-modal'},{'name': 'ModalFooter', 'selector': 'ibm-modal-footer'},{'name': 'ModalHeader', 'selector': 'ibm-modal-header'},{'name': 'ModalPlaceholder', 'selector': 'ibm-modal-placeholder'},{'name': 'Notification', 'selector': 'ibm-notification'},{'name': 'Number', 'selector': 'ibm-number'},{'name': 'OverflowMenu', 'selector': 'ibm-overflow-menu'},{'name': 'OverflowMenuOption', 'selector': 'ibm-overflow-menu-option'},{'name': 'OverflowMenuPane', 'selector': 'ibm-overflow-menu-pane'},{'name': 'Overlay', 'selector': 'ibm-overlay'},{'name': 'Pagination', 'selector': 'ibm-pagination'},{'name': 'Panel', 'selector': 'ibm-panel'},{'name': 'Placeholder', 'selector': 'ibm-placeholder'},{'name': 'ProductSwitcher', 'selector': 'ibm-product-switcher'},{'name': 'ProgressIndicator', 'selector': 'ibm-progress-indicator'},{'name': 'Radio', 'selector': 'ibm-radio'},{'name': 'RadioGroup', 'selector': 'ibm-radio-group'},{'name': 'Sample', 'selector': 'ibm-sample'},{'name': 'SampleSub', 'selector': 'ibm-sample-sub'},{'name': 'Search', 'selector': 'ibm-search'},{'name': 'Select', 'selector': 'ibm-select'},{'name': 'SelectionTile', 'selector': 'ibm-selection-tile'},{'name': 'SideNav', 'selector': 'ibm-sidenav'},{'name': 'SideNavHeader', 'selector': 'ibm-sidenav-header'},{'name': 'SideNavItem', 'selector': 'ibm-sidenav-item'},{'name': 'SideNavMenu', 'selector': 'ibm-sidenav-menu'},{'name': 'Slider', 'selector': 'ibm-slider'},{'name': 'StructuredList', 'selector': 'ibm-structured-list'},{'name': 'SwitcherList', 'selector': 'ibm-switcher-list, ibm-product-switcher-list'},{'name': 'SwitcherListItem', 'selector': 'ibm-switcher-list-item, ibm-product-switcher-list-item, ibm-product-switcher-item'},{'name': 'Tab', 'selector': 'ibm-tab'},{'name': 'TabHeaders', 'selector': 'ibm-tab-headers'},{'name': 'Table', 'selector': 'ibm-table'},{'name': 'TableContainer', 'selector': 'ibm-table-container'},{'name': 'TableHeader', 'selector': 'ibm-table-header'},{'name': 'TableToolbar', 'selector': 'ibm-table-toolbar'},{'name': 'TableToolbarActions', 'selector': 'ibm-table-toolbar-actions'},{'name': 'TableToolbarContent', 'selector': 'ibm-table-toolbar-content'},{'name': 'TableToolbarSearch', 'selector': 'ibm-table-toolbar-search'},{'name': 'Tabs', 'selector': 'ibm-tabs'},{'name': 'Tag', 'selector': 'ibm-tag'},{'name': 'TagFilter', 'selector': 'ibm-tag-filter'},{'name': 'Tile', 'selector': 'ibm-tile'},{'name': 'TileGroup', 'selector': 'ibm-tile-group'},{'name': 'TimePicker', 'selector': 'ibm-timepicker'},{'name': 'TimePickerSelect', 'selector': 'ibm-timepicker-select'},{'name': 'Toast', 'selector': 'ibm-toast'},{'name': 'Toggle', 'selector': 'ibm-toggle'},{'name': 'Tooltip', 'selector': 'ibm-tooltip'},{'name': 'TooltipDefinition', 'selector': 'ibm-tooltip-definition'},{'name': 'TooltipIcon', 'selector': 'ibm-tooltip-icon'}];
|
|
558
571
|
var DIRECTIVES = [{'name': 'Button', 'selector': '[ibmButton]'},{'name': 'ColumnDirective', 'selector': '[ibmCol]'},{'name': 'ContentSwitcherOption', 'selector': '[ibmContentOption]'},{'name': 'DataGridFocus', 'selector': '[ibmDataGridFocus]'},{'name': 'DialogDirective', 'selector': '[ibmDialog]'},{'name': 'EllipsisTooltip', 'selector': '[ibmEllipsisTooltip]'},{'name': 'ExpandedRowHover', 'selector': '[ibmExpandedRowHover]'},{'name': 'GridDirective', 'selector': '[ibmGrid]'},{'name': 'Link', 'selector': '[ibmLink]'},{'name': 'List', 'selector': '[ibmList]'},{'name': 'ListItemDirective', 'selector': '[ibmListItem]'},{'name': 'OptGroup', 'selector': 'optgroup'},{'name': 'Option', 'selector': 'option'},{'name': 'OverflowMenuDirective', 'selector': '[ibmOverflowMenu]'},{'name': 'RowDirective', 'selector': '[ibmRow]'},{'name': 'ScrollableList', 'selector': '[ibmScrollableList]'},{'name': 'TableHeaderDescription', 'selector': '[ibmTableHeaderDescription]'},{'name': 'TableHeaderTitle', 'selector': '[ibmTableHeaderTitle]'},{'name': 'TextArea', 'selector': '[ibmTextArea]'},{'name': 'TextInput', 'selector': '[ibmText]'},{'name': 'TooltipDirective', 'selector': '[ibmTooltip]'}];
|
|
559
572
|
var ACTUAL_COMPONENT = {'name': 'ClickableTile'};
|
|
@@ -2637,13 +2637,11 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit {
|
|
|
2637
2637
|
|
|
2638
2638
|
protected updateSelected() {
|
|
2639
2639
|
const selected = this.view.getSelected();
|
|
2640
|
-
if (
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
this.propagateChangeCallback(selected[0]);
|
|
2646
|
-
}
|
|
2640
|
+
if (this.type === "multi" ) {
|
|
2641
|
+
this.updatePills();
|
|
2642
|
+
} else if (selected) {
|
|
2643
|
+
this.selectedValue = selected[0].content;
|
|
2644
|
+
this.propagateChangeCallback(selected[0]);
|
|
2647
2645
|
}
|
|
2648
2646
|
}
|
|
2649
2647
|
}
|