carbon-components-angular 5.72.1 → 5.72.2
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/combobox/combobox.component.d.ts +3 -0
- package/docs/documentation/components/ComboBox.html +214 -67
- package/docs/documentation/components/Dropdown.html +322 -134
- package/docs/documentation/components/DropdownList.html +6 -2
- package/docs/documentation/components/RadioGroup.html +166 -77
- package/docs/documentation/coverage.html +10 -10
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/DialogModule/dependencies.svg +34 -34
- package/docs/documentation/modules/DialogModule.html +34 -34
- package/docs/documentation/modules/DocumentationModule/dependencies.svg +4 -4
- package/docs/documentation/modules/DocumentationModule.html +4 -4
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +37 -37
- package/docs/documentation/modules/FileUploaderModule.html +37 -37
- package/docs/documentation/modules/GridModule/dependencies.svg +63 -63
- package/docs/documentation/modules/GridModule.html +63 -63
- package/docs/documentation/modules/HeaderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/HeaderModule.html +4 -4
- package/docs/documentation/modules/I18nModule/dependencies.svg +13 -13
- package/docs/documentation/modules/I18nModule.html +13 -13
- package/docs/documentation/modules/IconModule/dependencies.svg +4 -4
- package/docs/documentation/modules/IconModule.html +4 -4
- package/docs/documentation/modules/InlineLoadingModule/dependencies.svg +15 -15
- package/docs/documentation/modules/InlineLoadingModule.html +15 -15
- package/docs/documentation/modules/InputModule/dependencies.svg +76 -76
- package/docs/documentation/modules/InputModule.html +76 -76
- package/docs/documentation/modules/ListModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ListModule.html +4 -4
- package/docs/documentation/modules/LoadingModule/dependencies.svg +4 -4
- package/docs/documentation/modules/LoadingModule.html +4 -4
- package/docs/documentation/modules/MenuButtonModule/dependencies.svg +28 -28
- package/docs/documentation/modules/MenuButtonModule.html +28 -28
- package/docs/documentation/modules/ModalModule/dependencies.svg +113 -113
- package/docs/documentation/modules/ModalModule.html +113 -113
- package/docs/documentation/modules/NFormsModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NFormsModule.html +4 -4
- package/docs/documentation/modules/NotificationModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NotificationModule.html +4 -4
- package/docs/documentation/modules/NumberModule/dependencies.svg +24 -24
- package/docs/documentation/modules/NumberModule.html +24 -24
- package/docs/documentation/modules/PaginationModule/dependencies.svg +57 -57
- package/docs/documentation/modules/PaginationModule.html +57 -57
- package/docs/documentation/modules/PanelModule/dependencies.svg +36 -36
- package/docs/documentation/modules/PanelModule.html +36 -36
- package/docs/documentation/modules/PlaceholderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/PlaceholderModule.html +4 -4
- package/docs/documentation/modules/PopoverModule/dependencies.svg +4 -4
- package/docs/documentation/modules/PopoverModule.html +4 -4
- package/docs/documentation/modules/ProgressBarModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ProgressBarModule.html +4 -4
- package/docs/documentation/modules/ProgressIndicatorModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ProgressIndicatorModule.html +4 -4
- package/docs/documentation/modules/RadioModule/dependencies.svg +61 -57
- package/docs/documentation/modules/RadioModule.html +61 -57
- package/docs/documentation/modules/SearchModule/dependencies.svg +48 -44
- package/docs/documentation/modules/SearchModule.html +48 -44
- package/docs/documentation/modules/SelectModule/dependencies.svg +60 -60
- package/docs/documentation/modules/SelectModule.html +60 -60
- package/docs/documentation/modules/SideNavModule/dependencies.svg +40 -40
- package/docs/documentation/modules/SideNavModule.html +40 -40
- package/docs/documentation/modules/SliderModule/dependencies.svg +41 -45
- package/docs/documentation/modules/SliderModule.html +41 -45
- package/docs/documentation/modules/TabsModule/dependencies.svg +120 -120
- package/docs/documentation/modules/TabsModule.html +120 -120
- package/docs/documentation/modules/ThemeModule/dependencies.svg +13 -13
- package/docs/documentation/modules/ThemeModule.html +13 -13
- package/docs/documentation/modules/TilesModule/dependencies.svg +106 -106
- package/docs/documentation/modules/TilesModule.html +106 -106
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +41 -45
- package/docs/documentation/modules/TimePickerModule.html +41 -45
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +46 -42
- package/docs/documentation/modules/TimePickerSelectModule.html +46 -42
- package/docs/documentation/modules/ToggleModule/dependencies.svg +17 -17
- package/docs/documentation/modules/ToggleModule.html +17 -17
- package/docs/documentation/modules/ToggletipModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ToggletipModule.html +4 -4
- package/docs/documentation/modules/TooltipModule/dependencies.svg +28 -28
- package/docs/documentation/modules/TooltipModule.html +28 -28
- package/docs/documentation/modules/TreeviewModule/dependencies.svg +4 -4
- package/docs/documentation/modules/TreeviewModule.html +4 -4
- package/docs/documentation/modules/UIShellModule/dependencies.svg +4 -4
- package/docs/documentation/modules/UIShellModule.html +4 -4
- package/docs/documentation.json +261 -231
- package/docs/storybook/3224.14e2c79a.iframe.bundle.js +1 -0
- package/docs/storybook/557.d4341469.iframe.bundle.js +1 -0
- package/docs/storybook/955.7522f55b.iframe.bundle.js +1 -0
- package/docs/storybook/combobox-combobox-stories.e3d08f7d.iframe.bundle.js +1 -0
- package/docs/storybook/dropdown-dropdown-stories.cf59b2ab.iframe.bundle.js +1 -0
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/{main.d2b9abb3.iframe.bundle.js → main.a1247bb8.iframe.bundle.js} +1 -1
- package/docs/storybook/modal-modal-stories.cc2d04cb.iframe.bundle.js +1 -0
- package/docs/storybook/{pagination-pagination-nav-stories.547eede3.iframe.bundle.js → pagination-pagination-nav-stories.01637d11.iframe.bundle.js} +1 -1
- package/docs/storybook/{pagination-pagination-stories.fa7c9094.iframe.bundle.js → pagination-pagination-stories.40d17ebd.iframe.bundle.js} +1 -1
- package/docs/storybook/{patterns-filtering-single-selection-stories.ec91f833.iframe.bundle.js → patterns-filtering-multi-selection-stories.a46a1d6e.iframe.bundle.js} +1 -1
- package/docs/storybook/{patterns-filtering-multiple-categories-stories.531f27d7.iframe.bundle.js → patterns-filtering-multiple-categories-stories.740c719e.iframe.bundle.js} +1 -1
- package/docs/storybook/{patterns-filtering-multi-selection-stories.9086f77f.iframe.bundle.js → patterns-filtering-single-selection-stories.cc647b4a.iframe.bundle.js} +1 -1
- package/docs/storybook/{patterns-forms-multi-step-form-stories.8696062a.iframe.bundle.js → patterns-forms-multi-step-form-stories.2ea46e56.iframe.bundle.js} +1 -1
- package/docs/storybook/{patterns-loading-large-loading-stories.734fb9bc.iframe.bundle.js → patterns-loading-large-loading-stories.e6ae3e31.iframe.bundle.js} +1 -1
- package/docs/storybook/{patterns-loading-progressive-loading-stories.10bcf9f2.iframe.bundle.js → patterns-loading-progressive-loading-stories.63165c09.iframe.bundle.js} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/radio-radio-stories.8ff73370.iframe.bundle.js +1 -0
- package/docs/storybook/runtime~main.b11c471e.iframe.bundle.js +1 -0
- package/dropdown/dropdown.component.d.ts +8 -1
- package/dropdown/list/dropdown-list.component.d.ts +1 -1
- package/esm2020/combobox/combobox.component.mjs +19 -9
- package/esm2020/dropdown/dropdown.component.mjs +31 -15
- package/esm2020/dropdown/list/dropdown-list.component.mjs +1 -1
- package/esm2020/radio/radio-group.component.mjs +19 -7
- package/fesm2015/carbon-components-angular-combobox.mjs +18 -8
- package/fesm2015/carbon-components-angular-combobox.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-dropdown.mjs +31 -14
- package/fesm2015/carbon-components-angular-dropdown.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-radio.mjs +18 -6
- package/fesm2015/carbon-components-angular-radio.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-combobox.mjs +18 -8
- package/fesm2020/carbon-components-angular-combobox.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-dropdown.mjs +30 -14
- package/fesm2020/carbon-components-angular-dropdown.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-radio.mjs +18 -6
- package/fesm2020/carbon-components-angular-radio.mjs.map +1 -1
- package/package.json +1 -1
- package/radio/radio-group.component.d.ts +4 -2
- package/docs/storybook/1250.47c381c1.iframe.bundle.js +0 -1
- package/docs/storybook/3224.3e279e46.iframe.bundle.js +0 -1
- package/docs/storybook/955.99b6ac85.iframe.bundle.js +0 -1
- package/docs/storybook/combobox-combobox-stories.e7427226.iframe.bundle.js +0 -1
- package/docs/storybook/dropdown-dropdown-stories.a76101be.iframe.bundle.js +0 -1
- package/docs/storybook/modal-modal-stories.0a864a6a.iframe.bundle.js +0 -1
- package/docs/storybook/radio-radio-stories.444fc044.iframe.bundle.js +0 -1
- package/docs/storybook/runtime~main.86875b86.iframe.bundle.js +0 -1
|
@@ -270,6 +270,8 @@ export declare class ComboBox implements OnChanges, AfterViewInit, AfterContentI
|
|
|
270
270
|
protected _clearSelectionTitle: Overridable;
|
|
271
271
|
protected _clearSelectionAria: Overridable;
|
|
272
272
|
protected _isFocused: boolean;
|
|
273
|
+
private _writtenValue;
|
|
274
|
+
private _isUsingNgControl;
|
|
273
275
|
/**
|
|
274
276
|
* Creates an instance of ComboBox.
|
|
275
277
|
*/
|
|
@@ -299,6 +301,7 @@ export declare class ComboBox implements OnChanges, AfterViewInit, AfterContentI
|
|
|
299
301
|
hostkeys(ev: KeyboardEvent): void;
|
|
300
302
|
_noop(): void;
|
|
301
303
|
writeValue(value: any): void;
|
|
304
|
+
private _propagateChange;
|
|
302
305
|
onBlur(): void;
|
|
303
306
|
registerOnChange(fn: any): void;
|
|
304
307
|
registerOnTouched(fn: any): void;
|
|
@@ -401,6 +401,10 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
401
401
|
<span class="modifier">Protected</span>
|
|
402
402
|
<a href="#_isFocused" >_isFocused</a>
|
|
403
403
|
</li>
|
|
404
|
+
<li>
|
|
405
|
+
<span class="modifier">Private</span>
|
|
406
|
+
<a href="#_isUsingNgControl" >_isUsingNgControl</a>
|
|
407
|
+
</li>
|
|
404
408
|
<li>
|
|
405
409
|
<span class="modifier">Protected</span>
|
|
406
410
|
<a href="#_openMenuAria" >_openMenuAria</a>
|
|
@@ -409,6 +413,10 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
409
413
|
<span class="modifier">Protected</span>
|
|
410
414
|
<a href="#_placeholder" >_placeholder</a>
|
|
411
415
|
</li>
|
|
416
|
+
<li>
|
|
417
|
+
<span class="modifier">Private</span>
|
|
418
|
+
<a href="#_writtenValue" >_writtenValue</a>
|
|
419
|
+
</li>
|
|
412
420
|
<li>
|
|
413
421
|
<span class="modifier">Static</span>
|
|
414
422
|
<a href="#comboBoxCount" >comboBoxCount</a>
|
|
@@ -494,6 +502,10 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
494
502
|
<li>
|
|
495
503
|
<a href="#_outsideClick" >_outsideClick</a>
|
|
496
504
|
</li>
|
|
505
|
+
<li>
|
|
506
|
+
<span class="modifier">Private</span>
|
|
507
|
+
<a href="#_propagateChange" >_propagateChange</a>
|
|
508
|
+
</li>
|
|
497
509
|
<li>
|
|
498
510
|
<a href="#_shouldDropUp" >_shouldDropUp</a>
|
|
499
511
|
</li>
|
|
@@ -784,7 +796,7 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
784
796
|
</tr>
|
|
785
797
|
<tr>
|
|
786
798
|
<td class="col-md-4">
|
|
787
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
799
|
+
<div class="io-line">Defined in <a href="" data-line="485" class="link-to-prism">src/combobox/combobox.component.ts:485</a></div>
|
|
788
800
|
</td>
|
|
789
801
|
</tr>
|
|
790
802
|
|
|
@@ -1960,8 +1972,8 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
1960
1972
|
|
|
1961
1973
|
<tr>
|
|
1962
1974
|
<td class="col-md-4">
|
|
1963
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1964
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
1975
|
+
<div class="io-line">Defined in <a href="" data-line="610"
|
|
1976
|
+
class="link-to-prism">src/combobox/combobox.component.ts:610</a></div>
|
|
1965
1977
|
</td>
|
|
1966
1978
|
</tr>
|
|
1967
1979
|
|
|
@@ -2001,8 +2013,8 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
2001
2013
|
|
|
2002
2014
|
<tr>
|
|
2003
2015
|
<td class="col-md-4">
|
|
2004
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2005
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2016
|
+
<div class="io-line">Defined in <a href="" data-line="883"
|
|
2017
|
+
class="link-to-prism">src/combobox/combobox.component.ts:883</a></div>
|
|
2006
2018
|
</td>
|
|
2007
2019
|
</tr>
|
|
2008
2020
|
|
|
@@ -2040,8 +2052,8 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
2040
2052
|
|
|
2041
2053
|
<tr>
|
|
2042
2054
|
<td class="col-md-4">
|
|
2043
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2044
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2055
|
+
<div class="io-line">Defined in <a href="" data-line="894"
|
|
2056
|
+
class="link-to-prism">src/combobox/combobox.component.ts:894</a></div>
|
|
2045
2057
|
</td>
|
|
2046
2058
|
</tr>
|
|
2047
2059
|
|
|
@@ -2079,8 +2091,8 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
2079
2091
|
|
|
2080
2092
|
<tr>
|
|
2081
2093
|
<td class="col-md-4">
|
|
2082
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2083
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2094
|
+
<div class="io-line">Defined in <a href="" data-line="863"
|
|
2095
|
+
class="link-to-prism">src/combobox/combobox.component.ts:863</a></div>
|
|
2084
2096
|
</td>
|
|
2085
2097
|
</tr>
|
|
2086
2098
|
|
|
@@ -2148,8 +2160,8 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
2148
2160
|
|
|
2149
2161
|
<tr>
|
|
2150
2162
|
<td class="col-md-4">
|
|
2151
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2152
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2163
|
+
<div class="io-line">Defined in <a href="" data-line="635"
|
|
2164
|
+
class="link-to-prism">src/combobox/combobox.component.ts:635</a></div>
|
|
2153
2165
|
</td>
|
|
2154
2166
|
</tr>
|
|
2155
2167
|
|
|
@@ -2185,8 +2197,8 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
2185
2197
|
|
|
2186
2198
|
<tr>
|
|
2187
2199
|
<td class="col-md-4">
|
|
2188
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2189
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2200
|
+
<div class="io-line">Defined in <a href="" data-line="923"
|
|
2201
|
+
class="link-to-prism">src/combobox/combobox.component.ts:923</a></div>
|
|
2190
2202
|
</td>
|
|
2191
2203
|
</tr>
|
|
2192
2204
|
|
|
@@ -2230,6 +2242,75 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
2230
2242
|
</tr>
|
|
2231
2243
|
</tbody>
|
|
2232
2244
|
</table>
|
|
2245
|
+
<table class="table table-sm table-bordered">
|
|
2246
|
+
<tbody>
|
|
2247
|
+
<tr>
|
|
2248
|
+
<td class="col-md-4">
|
|
2249
|
+
<a name="_propagateChange"></a>
|
|
2250
|
+
<span class="name">
|
|
2251
|
+
<span class="modifier">Private</span>
|
|
2252
|
+
<span ><b>_propagateChange</b></span>
|
|
2253
|
+
<a href="#_propagateChange"><span class="icon ion-ios-link"></span></a>
|
|
2254
|
+
</span>
|
|
2255
|
+
</td>
|
|
2256
|
+
</tr>
|
|
2257
|
+
<tr>
|
|
2258
|
+
<td class="col-md-4">
|
|
2259
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
2260
|
+
<code>_propagateChange(value: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
2261
|
+
</td>
|
|
2262
|
+
</tr>
|
|
2263
|
+
|
|
2264
|
+
|
|
2265
|
+
<tr>
|
|
2266
|
+
<td class="col-md-4">
|
|
2267
|
+
<div class="io-line">Defined in <a href="" data-line="674"
|
|
2268
|
+
class="link-to-prism">src/combobox/combobox.component.ts:674</a></div>
|
|
2269
|
+
</td>
|
|
2270
|
+
</tr>
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
<tr>
|
|
2274
|
+
<td class="col-md-4">
|
|
2275
|
+
|
|
2276
|
+
<div class="io-description">
|
|
2277
|
+
<b>Parameters :</b>
|
|
2278
|
+
|
|
2279
|
+
<table class="params">
|
|
2280
|
+
<thead>
|
|
2281
|
+
<tr>
|
|
2282
|
+
<td>Name</td>
|
|
2283
|
+
<td>Type</td>
|
|
2284
|
+
<td>Optional</td>
|
|
2285
|
+
</tr>
|
|
2286
|
+
</thead>
|
|
2287
|
+
<tbody>
|
|
2288
|
+
<tr>
|
|
2289
|
+
<td>value</td>
|
|
2290
|
+
<td>
|
|
2291
|
+
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
2292
|
+
</td>
|
|
2293
|
+
|
|
2294
|
+
<td>
|
|
2295
|
+
No
|
|
2296
|
+
</td>
|
|
2297
|
+
|
|
2298
|
+
|
|
2299
|
+
</tr>
|
|
2300
|
+
</tbody>
|
|
2301
|
+
</table>
|
|
2302
|
+
</div>
|
|
2303
|
+
<div class="io-description">
|
|
2304
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
2305
|
+
|
|
2306
|
+
</div>
|
|
2307
|
+
<div class="io-description">
|
|
2308
|
+
|
|
2309
|
+
</div>
|
|
2310
|
+
</td>
|
|
2311
|
+
</tr>
|
|
2312
|
+
</tbody>
|
|
2313
|
+
</table>
|
|
2233
2314
|
<table class="table table-sm table-bordered">
|
|
2234
2315
|
<tbody>
|
|
2235
2316
|
<tr>
|
|
@@ -2250,8 +2331,8 @@ Multi-select comboboxes also provide "pills" of selected items.</p>
|
|
|
2250
2331
|
|
|
2251
2332
|
<tr>
|
|
2252
2333
|
<td class="col-md-4">
|
|
2253
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2254
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2334
|
+
<div class="io-line">Defined in <a href="" data-line="903"
|
|
2335
|
+
class="link-to-prism">src/combobox/combobox.component.ts:903</a></div>
|
|
2255
2336
|
</td>
|
|
2256
2337
|
</tr>
|
|
2257
2338
|
|
|
@@ -2292,8 +2373,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2292
2373
|
|
|
2293
2374
|
<tr>
|
|
2294
2375
|
<td class="col-md-4">
|
|
2295
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2296
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2376
|
+
<div class="io-line">Defined in <a href="" data-line="948"
|
|
2377
|
+
class="link-to-prism">src/combobox/combobox.component.ts:948</a></div>
|
|
2297
2378
|
</td>
|
|
2298
2379
|
</tr>
|
|
2299
2380
|
|
|
@@ -2329,8 +2410,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2329
2410
|
|
|
2330
2411
|
<tr>
|
|
2331
2412
|
<td class="col-md-4">
|
|
2332
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2333
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2413
|
+
<div class="io-line">Defined in <a href="" data-line="835"
|
|
2414
|
+
class="link-to-prism">src/combobox/combobox.component.ts:835</a></div>
|
|
2334
2415
|
</td>
|
|
2335
2416
|
</tr>
|
|
2336
2417
|
|
|
@@ -2394,8 +2475,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2394
2475
|
|
|
2395
2476
|
<tr>
|
|
2396
2477
|
<td class="col-md-4">
|
|
2397
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2398
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2478
|
+
<div class="io-line">Defined in <a href="" data-line="709"
|
|
2479
|
+
class="link-to-prism">src/combobox/combobox.component.ts:709</a></div>
|
|
2399
2480
|
</td>
|
|
2400
2481
|
</tr>
|
|
2401
2482
|
|
|
@@ -2459,8 +2540,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2459
2540
|
|
|
2460
2541
|
<tr>
|
|
2461
2542
|
<td class="col-md-4">
|
|
2462
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2463
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2543
|
+
<div class="io-line">Defined in <a href="" data-line="743"
|
|
2544
|
+
class="link-to-prism">src/combobox/combobox.component.ts:743</a></div>
|
|
2464
2545
|
</td>
|
|
2465
2546
|
</tr>
|
|
2466
2547
|
|
|
@@ -2498,8 +2579,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2498
2579
|
|
|
2499
2580
|
<tr>
|
|
2500
2581
|
<td class="col-md-4">
|
|
2501
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2502
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2582
|
+
<div class="io-line">Defined in <a href="" data-line="932"
|
|
2583
|
+
class="link-to-prism">src/combobox/combobox.component.ts:932</a></div>
|
|
2503
2584
|
</td>
|
|
2504
2585
|
</tr>
|
|
2505
2586
|
|
|
@@ -2574,8 +2655,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2574
2655
|
|
|
2575
2656
|
<tr>
|
|
2576
2657
|
<td class="col-md-4">
|
|
2577
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2578
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2658
|
+
<div class="io-line">Defined in <a href="" data-line="610"
|
|
2659
|
+
class="link-to-prism">src/combobox/combobox.component.ts:610</a></div>
|
|
2579
2660
|
</td>
|
|
2580
2661
|
</tr>
|
|
2581
2662
|
|
|
@@ -2645,8 +2726,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2645
2726
|
|
|
2646
2727
|
<tr>
|
|
2647
2728
|
<td class="col-md-4">
|
|
2648
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2649
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2729
|
+
<div class="io-line">Defined in <a href="" data-line="856"
|
|
2730
|
+
class="link-to-prism">src/combobox/combobox.component.ts:856</a></div>
|
|
2650
2731
|
</td>
|
|
2651
2732
|
</tr>
|
|
2652
2733
|
|
|
@@ -2708,8 +2789,8 @@ This can be overridden by passing in a value to the <code>dropUp</code> input.</
|
|
|
2708
2789
|
|
|
2709
2790
|
<tr>
|
|
2710
2791
|
<td class="col-md-4">
|
|
2711
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2712
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2792
|
+
<div class="io-line">Defined in <a href="" data-line="517"
|
|
2793
|
+
class="link-to-prism">src/combobox/combobox.component.ts:517</a></div>
|
|
2713
2794
|
</td>
|
|
2714
2795
|
</tr>
|
|
2715
2796
|
|
|
@@ -2748,8 +2829,8 @@ Subscribes to select events and handles focus/filtering/initial list updates</p>
|
|
|
2748
2829
|
|
|
2749
2830
|
<tr>
|
|
2750
2831
|
<td class="col-md-4">
|
|
2751
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2752
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2832
|
+
<div class="io-line">Defined in <a href="" data-line="584"
|
|
2833
|
+
class="link-to-prism">src/combobox/combobox.component.ts:584</a></div>
|
|
2753
2834
|
</td>
|
|
2754
2835
|
</tr>
|
|
2755
2836
|
|
|
@@ -2787,8 +2868,8 @@ Subscribes to select events and handles focus/filtering/initial list updates</p>
|
|
|
2787
2868
|
|
|
2788
2869
|
<tr>
|
|
2789
2870
|
<td class="col-md-4">
|
|
2790
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2791
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2871
|
+
<div class="io-line">Defined in <a href="" data-line="501"
|
|
2872
|
+
class="link-to-prism">src/combobox/combobox.component.ts:501</a></div>
|
|
2792
2873
|
</td>
|
|
2793
2874
|
</tr>
|
|
2794
2875
|
|
|
@@ -2853,8 +2934,8 @@ Updates pills if necessary.</p>
|
|
|
2853
2934
|
|
|
2854
2935
|
<tr>
|
|
2855
2936
|
<td class="col-md-4">
|
|
2856
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2857
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2937
|
+
<div class="io-line">Defined in <a href="" data-line="600"
|
|
2938
|
+
class="link-to-prism">src/combobox/combobox.component.ts:600</a></div>
|
|
2858
2939
|
</td>
|
|
2859
2940
|
</tr>
|
|
2860
2941
|
|
|
@@ -2892,8 +2973,8 @@ Updates pills if necessary.</p>
|
|
|
2892
2973
|
|
|
2893
2974
|
<tr>
|
|
2894
2975
|
<td class="col-md-4">
|
|
2895
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2896
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
2976
|
+
<div class="io-line">Defined in <a href="" data-line="679"
|
|
2977
|
+
class="link-to-prism">src/combobox/combobox.component.ts:679</a></div>
|
|
2897
2978
|
</td>
|
|
2898
2979
|
</tr>
|
|
2899
2980
|
|
|
@@ -2931,8 +3012,8 @@ Updates pills if necessary.</p>
|
|
|
2931
3012
|
|
|
2932
3013
|
<tr>
|
|
2933
3014
|
<td class="col-md-4">
|
|
2934
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
2935
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3015
|
+
<div class="io-line">Defined in <a href="" data-line="791"
|
|
3016
|
+
class="link-to-prism">src/combobox/combobox.component.ts:791</a></div>
|
|
2936
3017
|
</td>
|
|
2937
3018
|
</tr>
|
|
2938
3019
|
|
|
@@ -3013,8 +3094,8 @@ Updates pills if necessary.</p>
|
|
|
3013
3094
|
|
|
3014
3095
|
<tr>
|
|
3015
3096
|
<td class="col-md-4">
|
|
3016
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3017
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3097
|
+
<div class="io-line">Defined in <a href="" data-line="824"
|
|
3098
|
+
class="link-to-prism">src/combobox/combobox.component.ts:824</a></div>
|
|
3018
3099
|
</td>
|
|
3019
3100
|
</tr>
|
|
3020
3101
|
|
|
@@ -3084,8 +3165,8 @@ Updates pills if necessary.</p>
|
|
|
3084
3165
|
|
|
3085
3166
|
<tr>
|
|
3086
3167
|
<td class="col-md-4">
|
|
3087
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3088
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3168
|
+
<div class="io-line">Defined in <a href="" data-line="757"
|
|
3169
|
+
class="link-to-prism">src/combobox/combobox.component.ts:757</a></div>
|
|
3089
3170
|
</td>
|
|
3090
3171
|
</tr>
|
|
3091
3172
|
|
|
@@ -3123,8 +3204,8 @@ Updates pills if necessary.</p>
|
|
|
3123
3204
|
|
|
3124
3205
|
<tr>
|
|
3125
3206
|
<td class="col-md-4">
|
|
3126
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3127
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3207
|
+
<div class="io-line">Defined in <a href="" data-line="683"
|
|
3208
|
+
class="link-to-prism">src/combobox/combobox.component.ts:683</a></div>
|
|
3128
3209
|
</td>
|
|
3129
3210
|
</tr>
|
|
3130
3211
|
|
|
@@ -3190,8 +3271,8 @@ Updates pills if necessary.</p>
|
|
|
3190
3271
|
|
|
3191
3272
|
<tr>
|
|
3192
3273
|
<td class="col-md-4">
|
|
3193
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3194
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3274
|
+
<div class="io-line">Defined in <a href="" data-line="688"
|
|
3275
|
+
class="link-to-prism">src/combobox/combobox.component.ts:688</a></div>
|
|
3195
3276
|
</td>
|
|
3196
3277
|
</tr>
|
|
3197
3278
|
|
|
@@ -3257,8 +3338,8 @@ Updates pills if necessary.</p>
|
|
|
3257
3338
|
|
|
3258
3339
|
<tr>
|
|
3259
3340
|
<td class="col-md-4">
|
|
3260
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3261
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3341
|
+
<div class="io-line">Defined in <a href="" data-line="697"
|
|
3342
|
+
class="link-to-prism">src/combobox/combobox.component.ts:697</a></div>
|
|
3262
3343
|
</td>
|
|
3263
3344
|
</tr>
|
|
3264
3345
|
|
|
@@ -3329,8 +3410,8 @@ Updates pills if necessary.</p>
|
|
|
3329
3410
|
|
|
3330
3411
|
<tr>
|
|
3331
3412
|
<td class="col-md-4">
|
|
3332
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3333
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3413
|
+
<div class="io-line">Defined in <a href="" data-line="780"
|
|
3414
|
+
class="link-to-prism">src/combobox/combobox.component.ts:780</a></div>
|
|
3334
3415
|
</td>
|
|
3335
3416
|
</tr>
|
|
3336
3417
|
|
|
@@ -3370,8 +3451,8 @@ Updates pills if necessary.</p>
|
|
|
3370
3451
|
|
|
3371
3452
|
<tr>
|
|
3372
3453
|
<td class="col-md-4">
|
|
3373
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3374
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3454
|
+
<div class="io-line">Defined in <a href="" data-line="704"
|
|
3455
|
+
class="link-to-prism">src/combobox/combobox.component.ts:704</a></div>
|
|
3375
3456
|
</td>
|
|
3376
3457
|
</tr>
|
|
3377
3458
|
|
|
@@ -3411,8 +3492,8 @@ Updates pills if necessary.</p>
|
|
|
3411
3492
|
|
|
3412
3493
|
<tr>
|
|
3413
3494
|
<td class="col-md-4">
|
|
3414
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3415
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3495
|
+
<div class="io-line">Defined in <a href="" data-line="936"
|
|
3496
|
+
class="link-to-prism">src/combobox/combobox.component.ts:936</a></div>
|
|
3416
3497
|
</td>
|
|
3417
3498
|
</tr>
|
|
3418
3499
|
|
|
@@ -3448,8 +3529,8 @@ Updates pills if necessary.</p>
|
|
|
3448
3529
|
|
|
3449
3530
|
<tr>
|
|
3450
3531
|
<td class="col-md-4">
|
|
3451
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
3452
|
-
class="link-to-prism">src/combobox/combobox.component.ts:
|
|
3532
|
+
<div class="io-line">Defined in <a href="" data-line="640"
|
|
3533
|
+
class="link-to-prism">src/combobox/combobox.component.ts:640</a></div>
|
|
3453
3534
|
</td>
|
|
3454
3535
|
</tr>
|
|
3455
3536
|
|
|
@@ -3686,6 +3767,32 @@ Updates pills if necessary.</p>
|
|
|
3686
3767
|
</tr>
|
|
3687
3768
|
|
|
3688
3769
|
|
|
3770
|
+
</tbody>
|
|
3771
|
+
</table>
|
|
3772
|
+
<table class="table table-sm table-bordered">
|
|
3773
|
+
<tbody>
|
|
3774
|
+
<tr>
|
|
3775
|
+
<td class="col-md-4">
|
|
3776
|
+
<a name="_isUsingNgControl"></a>
|
|
3777
|
+
<span class="name">
|
|
3778
|
+
<span class="modifier">Private</span>
|
|
3779
|
+
<span ><b>_isUsingNgControl</b></span>
|
|
3780
|
+
<a href="#_isUsingNgControl"><span class="icon ion-ios-link"></span></a>
|
|
3781
|
+
</span>
|
|
3782
|
+
</td>
|
|
3783
|
+
</tr>
|
|
3784
|
+
<tr>
|
|
3785
|
+
<td class="col-md-4">
|
|
3786
|
+
<i>Default value : </i><code>false</code>
|
|
3787
|
+
</td>
|
|
3788
|
+
</tr>
|
|
3789
|
+
<tr>
|
|
3790
|
+
<td class="col-md-4">
|
|
3791
|
+
<div class="io-line">Defined in <a href="" data-line="485" class="link-to-prism">src/combobox/combobox.component.ts:485</a></div>
|
|
3792
|
+
</td>
|
|
3793
|
+
</tr>
|
|
3794
|
+
|
|
3795
|
+
|
|
3689
3796
|
</tbody>
|
|
3690
3797
|
</table>
|
|
3691
3798
|
<table class="table table-sm table-bordered">
|
|
@@ -3738,6 +3845,33 @@ Updates pills if necessary.</p>
|
|
|
3738
3845
|
</tr>
|
|
3739
3846
|
|
|
3740
3847
|
|
|
3848
|
+
</tbody>
|
|
3849
|
+
</table>
|
|
3850
|
+
<table class="table table-sm table-bordered">
|
|
3851
|
+
<tbody>
|
|
3852
|
+
<tr>
|
|
3853
|
+
<td class="col-md-4">
|
|
3854
|
+
<a name="_writtenValue"></a>
|
|
3855
|
+
<span class="name">
|
|
3856
|
+
<span class="modifier">Private</span>
|
|
3857
|
+
<span ><b>_writtenValue</b></span>
|
|
3858
|
+
<a href="#_writtenValue"><span class="icon ion-ios-link"></span></a>
|
|
3859
|
+
</span>
|
|
3860
|
+
</td>
|
|
3861
|
+
</tr>
|
|
3862
|
+
<tr>
|
|
3863
|
+
<td class="col-md-4">
|
|
3864
|
+
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
3865
|
+
|
|
3866
|
+
</td>
|
|
3867
|
+
</tr>
|
|
3868
|
+
<tr>
|
|
3869
|
+
<td class="col-md-4">
|
|
3870
|
+
<div class="io-line">Defined in <a href="" data-line="484" class="link-to-prism">src/combobox/combobox.component.ts:484</a></div>
|
|
3871
|
+
</td>
|
|
3872
|
+
</tr>
|
|
3873
|
+
|
|
3874
|
+
|
|
3741
3875
|
</tbody>
|
|
3742
3876
|
</table>
|
|
3743
3877
|
<table class="table table-sm table-bordered">
|
|
@@ -5210,6 +5344,9 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5210
5344
|
|
|
5211
5345
|
protected _isFocused = false;
|
|
5212
5346
|
|
|
5347
|
+
private _writtenValue: any;
|
|
5348
|
+
private _isUsingNgControl = false;
|
|
5349
|
+
|
|
5213
5350
|
/**
|
|
5214
5351
|
* Creates an instance of ComboBox.
|
|
5215
5352
|
*/
|
|
@@ -5253,10 +5390,10 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5253
5390
|
if (!isUpdate(event)) {
|
|
5254
5391
|
if (this.itemValueKey && this.view.getSelected()) {
|
|
5255
5392
|
const values = this.view.getSelected().map(item => item[this.itemValueKey]);
|
|
5256
|
-
this.
|
|
5393
|
+
this._propagateChange(values);
|
|
5257
5394
|
// otherwise just pass up the values from `getSelected`
|
|
5258
5395
|
} else {
|
|
5259
|
-
this.
|
|
5396
|
+
this._propagateChange(this.view.getSelected());
|
|
5260
5397
|
}
|
|
5261
5398
|
this.selected.emit(event);
|
|
5262
5399
|
}
|
|
@@ -5268,15 +5405,15 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5268
5405
|
|
|
5269
5406
|
if (!isUpdate(event)) {
|
|
5270
5407
|
if (this.itemValueKey) {
|
|
5271
|
-
this.
|
|
5408
|
+
this._propagateChange(event.item[this.itemValueKey]);
|
|
5272
5409
|
} else {
|
|
5273
|
-
this.
|
|
5410
|
+
this._propagateChange(event.item);
|
|
5274
5411
|
}
|
|
5275
5412
|
}
|
|
5276
5413
|
} else {
|
|
5277
5414
|
this.selectedValue = "";
|
|
5278
5415
|
if (!isUpdate(event)) {
|
|
5279
|
-
this.
|
|
5416
|
+
this._propagateChange(null);
|
|
5280
5417
|
}
|
|
5281
5418
|
}
|
|
5282
5419
|
// not guarding these since the nativeElement has to be loaded
|
|
@@ -5287,6 +5424,8 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5287
5424
|
this.view.filterBy("");
|
|
5288
5425
|
this.selected.emit(event.item);
|
|
5289
5426
|
this.closeDropdown();
|
|
5427
|
+
} else if (this._isUsingNgControl) {
|
|
5428
|
+
this.writeValue(this._writtenValue);
|
|
5290
5429
|
}
|
|
5291
5430
|
}
|
|
5292
5431
|
});
|
|
@@ -5362,6 +5501,8 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5362
5501
|
* propagates the value provided from ngModel
|
|
5363
5502
|
*/
|
|
5364
5503
|
writeValue(value: any) {
|
|
5504
|
+
this._writtenValue = value;
|
|
5505
|
+
|
|
5365
5506
|
if (this.type === "single") {
|
|
5366
5507
|
if (this.itemValueKey) {
|
|
5367
5508
|
// clone the specified item and update its state
|
|
@@ -5393,11 +5534,17 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5393
5534
|
this.updateSelected();
|
|
5394
5535
|
}
|
|
5395
5536
|
|
|
5537
|
+
private _propagateChange(value: any) {
|
|
5538
|
+
this._writtenValue = value;
|
|
5539
|
+
this.propagateChangeCallback(value);
|
|
5540
|
+
}
|
|
5541
|
+
|
|
5396
5542
|
onBlur() {
|
|
5397
5543
|
this.onTouchedCallback();
|
|
5398
5544
|
}
|
|
5399
5545
|
|
|
5400
5546
|
registerOnChange(fn: any) {
|
|
5547
|
+
this._isUsingNgControl = true;
|
|
5401
5548
|
this.propagateChangeCallback = fn;
|
|
5402
5549
|
}
|
|
5403
5550
|
|
|
@@ -5429,7 +5576,7 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5429
5576
|
}
|
|
5430
5577
|
return item;
|
|
5431
5578
|
});
|
|
5432
|
-
this.view.
|
|
5579
|
+
this.view.propagateSelected([]);
|
|
5433
5580
|
this.updatePills();
|
|
5434
5581
|
/**
|
|
5435
5582
|
* @todo - In next major version update to the following:
|
|
@@ -5444,9 +5591,9 @@ export class ComboBox implements OnChanges, AfterViewInit, AfterContentInit, OnD
|
|
|
5444
5591
|
// in case there are disabled items they should be mapped according to itemValueKey
|
|
5445
5592
|
if (this.itemValueKey && selected) {
|
|
5446
5593
|
const values = selected.map((item) => item[this.itemValueKey]);
|
|
5447
|
-
this.
|
|
5594
|
+
this._propagateChange(values);
|
|
5448
5595
|
} else {
|
|
5449
|
-
this.
|
|
5596
|
+
this._propagateChange(selected);
|
|
5450
5597
|
}
|
|
5451
5598
|
|
|
5452
5599
|
this.selected.emit(selected as any);
|