carbon-components-angular 5.57.2 → 5.57.4
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/contained-list/contained-list.component.d.ts +5 -1
- package/docs/documentation/components/ContainedList.html +49 -15
- package/docs/documentation/coverage.html +9 -9
- package/docs/documentation/injectables/BaseModalService.html +85 -9
- package/docs/documentation/injectables/ModalService.html +62 -3
- package/docs/documentation/injectables/PlaceholderService.html +57 -22
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/ComboBoxModule/dependencies.svg +4 -4
- package/docs/documentation/modules/ComboBoxModule.html +4 -4
- package/docs/documentation/modules/DatePickerInputModule/dependencies.svg +37 -41
- package/docs/documentation/modules/DatePickerInputModule.html +37 -41
- package/docs/documentation/modules/DialogModule/dependencies.svg +34 -34
- package/docs/documentation/modules/DialogModule.html +34 -34
- package/docs/documentation/modules/FileUploaderModule/dependencies.svg +36 -36
- package/docs/documentation/modules/FileUploaderModule.html +36 -36
- package/docs/documentation/modules/NumberModule/dependencies.svg +4 -4
- package/docs/documentation/modules/NumberModule.html +4 -4
- package/docs/documentation/modules/RadioModule/dependencies.svg +48 -48
- package/docs/documentation/modules/RadioModule.html +48 -48
- package/docs/documentation/modules/SelectModule/dependencies.svg +43 -43
- package/docs/documentation/modules/SelectModule.html +43 -43
- package/docs/documentation/modules/SliderModule/dependencies.svg +4 -4
- package/docs/documentation/modules/SliderModule.html +4 -4
- package/docs/documentation/modules/TabsModule/dependencies.svg +69 -69
- package/docs/documentation/modules/TabsModule.html +69 -69
- package/docs/documentation/modules/TagModule/dependencies.svg +37 -37
- package/docs/documentation/modules/TagModule.html +37 -37
- package/docs/documentation/modules/ThemeModule/dependencies.svg +14 -14
- package/docs/documentation/modules/ThemeModule.html +14 -14
- package/docs/documentation/modules/TilesModule/dependencies.svg +91 -91
- package/docs/documentation/modules/TilesModule.html +91 -91
- package/docs/documentation/modules/TimePickerModule/dependencies.svg +18 -18
- package/docs/documentation/modules/TimePickerModule.html +18 -18
- package/docs/documentation/modules/TimePickerSelectModule/dependencies.svg +24 -24
- package/docs/documentation/modules/TimePickerSelectModule.html +24 -24
- package/docs/documentation/modules/ToggleModule/dependencies.svg +6 -6
- package/docs/documentation/modules/ToggleModule.html +6 -6
- 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 +99 -72
- package/docs/storybook/{3931.b0862ad7.iframe.bundle.js → 3931.36351824.iframe.bundle.js} +1 -1
- package/docs/storybook/{7773.b5e74332.iframe.bundle.js → 7773.e984a82c.iframe.bundle.js} +1 -1
- package/docs/storybook/combobox-combobox-stories.67eec93c.iframe.bundle.js +1 -0
- package/docs/storybook/contained-list-contained-list-stories.b7913db8.iframe.bundle.js +1 -0
- package/docs/storybook/{dropdown-dropdown-stories.38c08419.iframe.bundle.js → dropdown-dropdown-stories.97d1c398.iframe.bundle.js} +1 -1
- package/docs/storybook/iframe.html +2 -2
- package/docs/storybook/main.c0bb6f79.iframe.bundle.js +1 -0
- package/docs/storybook/modal-modal-stories.8f435f37.iframe.bundle.js +1 -0
- package/docs/storybook/{patterns-loading-large-loading-stories.d531452e.iframe.bundle.js → patterns-loading-large-loading-stories.6f92d3f6.iframe.bundle.js} +1 -1
- package/docs/storybook/project.json +1 -1
- package/docs/storybook/{runtime~main.07ba8b82.iframe.bundle.js → runtime~main.530d4cf0.iframe.bundle.js} +1 -1
- package/esm2020/contained-list/contained-list.component.mjs +6 -4
- package/esm2020/modal/base-modal.service.mjs +19 -3
- package/esm2020/placeholder/placeholder.service.mjs +7 -3
- package/fesm2015/carbon-components-angular-contained-list.mjs +5 -3
- package/fesm2015/carbon-components-angular-contained-list.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-modal.mjs +18 -2
- package/fesm2015/carbon-components-angular-modal.mjs.map +1 -1
- package/fesm2015/carbon-components-angular-placeholder.mjs +6 -2
- package/fesm2015/carbon-components-angular-placeholder.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-contained-list.mjs +5 -3
- package/fesm2020/carbon-components-angular-contained-list.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-modal.mjs +18 -2
- package/fesm2020/carbon-components-angular-modal.mjs.map +1 -1
- package/fesm2020/carbon-components-angular-placeholder.mjs +6 -2
- package/fesm2020/carbon-components-angular-placeholder.mjs.map +1 -1
- package/modal/base-modal.service.d.ts +17 -1
- package/package.json +1 -1
- package/placeholder/placeholder.service.d.ts +2 -2
- package/docs/storybook/combobox-combobox-stories.e3b860f0.iframe.bundle.js +0 -1
- package/docs/storybook/contained-list-contained-list-stories.b87addfb.iframe.bundle.js +0 -1
- package/docs/storybook/main.ae95bbe6.iframe.bundle.js +0 -1
- package/docs/storybook/modal-modal-stories.5772b01f.iframe.bundle.js +0 -1
|
@@ -224,8 +224,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
224
224
|
|
|
225
225
|
<tr>
|
|
226
226
|
<td class="col-md-4">
|
|
227
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
228
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
227
|
+
<div class="io-line">Defined in <a href="" data-line="83"
|
|
228
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:83</a></div>
|
|
229
229
|
</td>
|
|
230
230
|
</tr>
|
|
231
231
|
|
|
@@ -296,15 +296,15 @@ Also used to insert/remove components from that view.</p>
|
|
|
296
296
|
</tr>
|
|
297
297
|
<tr>
|
|
298
298
|
<td class="col-md-4">
|
|
299
|
-
<code>createComponent(component: ComponentRef<any>, injector: Injector, id?: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a
|
|
299
|
+
<code>createComponent(component: ComponentRef<any>, injector: Injector, id?: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>, environment: EnvironmentInjector)</code>
|
|
300
300
|
</td>
|
|
301
301
|
</tr>
|
|
302
302
|
|
|
303
303
|
|
|
304
304
|
<tr>
|
|
305
305
|
<td class="col-md-4">
|
|
306
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
307
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
306
|
+
<div class="io-line">Defined in <a href="" data-line="38"
|
|
307
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:38</a></div>
|
|
308
308
|
</td>
|
|
309
309
|
</tr>
|
|
310
310
|
|
|
@@ -323,6 +323,7 @@ Also used to insert/remove components from that view.</p>
|
|
|
323
323
|
<td>Name</td>
|
|
324
324
|
<td>Type</td>
|
|
325
325
|
<td>Optional</td>
|
|
326
|
+
<td>Default value</td>
|
|
326
327
|
</tr>
|
|
327
328
|
</thead>
|
|
328
329
|
<tbody>
|
|
@@ -336,6 +337,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
336
337
|
No
|
|
337
338
|
</td>
|
|
338
339
|
|
|
340
|
+
<td>
|
|
341
|
+
</td>
|
|
339
342
|
|
|
340
343
|
</tr>
|
|
341
344
|
<tr>
|
|
@@ -348,6 +351,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
348
351
|
No
|
|
349
352
|
</td>
|
|
350
353
|
|
|
354
|
+
<td>
|
|
355
|
+
</td>
|
|
351
356
|
|
|
352
357
|
</tr>
|
|
353
358
|
<tr>
|
|
@@ -360,6 +365,23 @@ Also used to insert/remove components from that view.</p>
|
|
|
360
365
|
Yes
|
|
361
366
|
</td>
|
|
362
367
|
|
|
368
|
+
<td>
|
|
369
|
+
</td>
|
|
370
|
+
|
|
371
|
+
</tr>
|
|
372
|
+
<tr>
|
|
373
|
+
<td>environment</td>
|
|
374
|
+
<td>
|
|
375
|
+
<code>EnvironmentInjector</code>
|
|
376
|
+
</td>
|
|
377
|
+
|
|
378
|
+
<td>
|
|
379
|
+
No
|
|
380
|
+
</td>
|
|
381
|
+
|
|
382
|
+
<td>
|
|
383
|
+
<code>undefined</code>
|
|
384
|
+
</td>
|
|
363
385
|
|
|
364
386
|
</tr>
|
|
365
387
|
</tbody>
|
|
@@ -396,8 +418,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
396
418
|
|
|
397
419
|
<tr>
|
|
398
420
|
<td class="col-md-4">
|
|
399
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
400
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
421
|
+
<div class="io-line">Defined in <a href="" data-line="64"
|
|
422
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:64</a></div>
|
|
401
423
|
</td>
|
|
402
424
|
</tr>
|
|
403
425
|
|
|
@@ -463,8 +485,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
463
485
|
|
|
464
486
|
<tr>
|
|
465
487
|
<td class="col-md-4">
|
|
466
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
467
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
488
|
+
<div class="io-line">Defined in <a href="" data-line="68"
|
|
489
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:68</a></div>
|
|
468
490
|
</td>
|
|
469
491
|
</tr>
|
|
470
492
|
|
|
@@ -542,8 +564,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
542
564
|
|
|
543
565
|
<tr>
|
|
544
566
|
<td class="col-md-4">
|
|
545
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
546
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
567
|
+
<div class="io-line">Defined in <a href="" data-line="97"
|
|
568
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:97</a></div>
|
|
547
569
|
</td>
|
|
548
570
|
</tr>
|
|
549
571
|
|
|
@@ -621,8 +643,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
621
643
|
|
|
622
644
|
<tr>
|
|
623
645
|
<td class="col-md-4">
|
|
624
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
625
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
646
|
+
<div class="io-line">Defined in <a href="" data-line="76"
|
|
647
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:76</a></div>
|
|
626
648
|
</td>
|
|
627
649
|
</tr>
|
|
628
650
|
|
|
@@ -688,8 +710,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
688
710
|
|
|
689
711
|
<tr>
|
|
690
712
|
<td class="col-md-4">
|
|
691
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
692
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
713
|
+
<div class="io-line">Defined in <a href="" data-line="27"
|
|
714
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:27</a></div>
|
|
693
715
|
</td>
|
|
694
716
|
</tr>
|
|
695
717
|
|
|
@@ -769,8 +791,8 @@ Also used to insert/remove components from that view.</p>
|
|
|
769
791
|
|
|
770
792
|
<tr>
|
|
771
793
|
<td class="col-md-4">
|
|
772
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
773
|
-
class="link-to-prism">src/placeholder/placeholder.service.ts:
|
|
794
|
+
<div class="io-line">Defined in <a href="" data-line="90"
|
|
795
|
+
class="link-to-prism">src/placeholder/placeholder.service.ts:90</a></div>
|
|
774
796
|
</td>
|
|
775
797
|
</tr>
|
|
776
798
|
|
|
@@ -859,7 +881,7 @@ Also used to insert/remove components from that view.</p>
|
|
|
859
881
|
</tr>
|
|
860
882
|
<tr>
|
|
861
883
|
<td class="col-md-4">
|
|
862
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
884
|
+
<div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/placeholder/placeholder.service.ts:23</a></div>
|
|
863
885
|
</td>
|
|
864
886
|
</tr>
|
|
865
887
|
|
|
@@ -897,7 +919,7 @@ Also used to insert/remove components from that view.</p>
|
|
|
897
919
|
</tr>
|
|
898
920
|
<tr>
|
|
899
921
|
<td class="col-md-4">
|
|
900
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
922
|
+
<div class="io-line">Defined in <a href="" data-line="19" class="link-to-prism">src/placeholder/placeholder.service.ts:19</a></div>
|
|
901
923
|
</td>
|
|
902
924
|
</tr>
|
|
903
925
|
|
|
@@ -919,7 +941,9 @@ Also used to insert/remove components from that view.</p>
|
|
|
919
941
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
920
942
|
ComponentRef,
|
|
921
943
|
ViewContainerRef,
|
|
922
|
-
Injector
|
|
944
|
+
Injector,
|
|
945
|
+
EnvironmentInjector,
|
|
946
|
+
inject
|
|
923
947
|
} from "@angular/core";
|
|
924
948
|
import { Injectable } from "@angular/core";
|
|
925
949
|
|
|
@@ -951,7 +975,12 @@ export class PlaceholderService {
|
|
|
951
975
|
/**
|
|
952
976
|
* Creates and returns component in the view.
|
|
953
977
|
*/
|
|
954
|
-
createComponent(
|
|
978
|
+
createComponent(
|
|
979
|
+
component: ComponentRef<any>,
|
|
980
|
+
injector: Injector,
|
|
981
|
+
id?: any,
|
|
982
|
+
environment: EnvironmentInjector = undefined
|
|
983
|
+
): ComponentRef<any> {
|
|
955
984
|
if (id) {
|
|
956
985
|
if (!this.viewContainerMap.has(id)) {
|
|
957
986
|
console.error(`No view container with id ${id} found`);
|
|
@@ -963,7 +992,13 @@ export class PlaceholderService {
|
|
|
963
992
|
console.error("No view container defined! Likely due to a missing `cds-placeholder`");
|
|
964
993
|
return;
|
|
965
994
|
}
|
|
966
|
-
return this.viewContainerRef.createComponent(component as any,
|
|
995
|
+
return this.viewContainerRef.createComponent(component as any,
|
|
996
|
+
{
|
|
997
|
+
index: this.viewContainerRef.length,
|
|
998
|
+
injector,
|
|
999
|
+
environmentInjector: environment
|
|
1000
|
+
}
|
|
1001
|
+
);
|
|
967
1002
|
}
|
|
968
1003
|
|
|
969
1004
|
destroyComponent(component: ComponentRef<any>) {
|