@porsche-design-system/components-angular 2.18.0 → 2.19.0-rc.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/CHANGELOG.md +16 -0
- package/esm2020/porsche-design-system.module.mjs +2 -2
- package/esm2020/toast-manager.mjs +2 -2
- package/fesm2015/porsche-design-system-components-angular.mjs +2 -2
- package/fesm2015/porsche-design-system-components-angular.mjs.map +1 -1
- package/fesm2020/porsche-design-system-components-angular.mjs +2 -2
- package/fesm2020/porsche-design-system-components-angular.mjs.map +1 -1
- package/package.json +2 -2
- package/partials/partials.js +0 -2
- package/utilities/js/js.js +0 -2
|
@@ -1736,7 +1736,7 @@ class DefaultConfig {
|
|
|
1736
1736
|
}
|
|
1737
1737
|
class PorscheDesignSystemModule {
|
|
1738
1738
|
constructor(configParam) {
|
|
1739
|
-
const configs = (configParam
|
|
1739
|
+
const configs = (configParam || [new DefaultConfig()]);
|
|
1740
1740
|
configs.forEach(({ prefix }) => load({ prefix }));
|
|
1741
1741
|
}
|
|
1742
1742
|
static load(config) {
|
|
@@ -1767,7 +1767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1767
1767
|
|
|
1768
1768
|
class ToastManager {
|
|
1769
1769
|
addMessage(message) {
|
|
1770
|
-
const toast = document.querySelector('p-toast,[p-toast]');
|
|
1770
|
+
const toast = document.body.querySelector('p-toast,[p-toast]');
|
|
1771
1771
|
customElements.whenDefined(toast.tagName.toLowerCase()).then(() => toast.addMessage(message));
|
|
1772
1772
|
}
|
|
1773
1773
|
}
|