@swisspost/design-system-components 10.0.0-next.46 → 10.0.0-next.48
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/dist/cjs/{event-from-AKK8RQrn.js → event-from-C6kpQwhw.js} +2 -2
- package/dist/cjs/index-CpDyH7Ww.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-Din0le0Q.js → package-CZyXYkIN.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +4 -4
- package/dist/cjs/post-avatar.cjs.entry.js +91 -54
- package/dist/cjs/post-back-to-top.cjs.entry.js +32 -7
- package/dist/cjs/post-banner.cjs.entry.js +31 -35
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +1 -1
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/post-closebutton_15.cjs.entry.js +39 -8
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -2
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/post-footer.cjs.entry.js +1 -1
- package/dist/cjs/post-linkarea.cjs.entry.js +1 -1
- package/dist/cjs/post-popover.cjs.entry.js +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +1 -1
- package/dist/cjs/post-tab-header.cjs.entry.js +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +1 -1
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +1 -1
- package/dist/collection/animations/slide-and-fade.js +25 -0
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +5 -5
- package/dist/collection/components/post-avatar/avatar-utils.js +16 -0
- package/dist/collection/components/post-avatar/post-avatar.js +91 -58
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +5 -5
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-banner/post-banner.js +41 -81
- package/dist/collection/components/post-card-control/post-card-control.js +8 -8
- package/dist/collection/components/post-closebutton/post-closebutton.js +9 -1
- package/dist/collection/components/post-menu/post-menu.js +4 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +3 -3
- package/dist/collection/utils/event-from.js +2 -2
- package/dist/components/{p-8U5GFtQP.js → event-from.js} +2 -2
- package/dist/components/get-root.js +15 -0
- package/dist/components/index.d.ts +73 -0
- package/dist/components/index.js +36 -2315
- package/dist/components/package.js +3 -0
- package/dist/components/post-accordion-item.js +1 -1
- package/dist/components/post-accordion-item2.js +113 -0
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/post-accordion2.js +138 -0
- package/dist/components/post-avatar.js +99 -62
- package/dist/components/post-back-to-top.js +37 -13
- package/dist/components/post-banner.js +39 -51
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumb-item2.js +79 -0
- package/dist/components/post-breadcrumbs.js +13 -14
- package/dist/components/post-card-control.js +10 -11
- package/dist/components/post-closebutton.js +13 -6
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +135 -0
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/post-collapsible2.js +110 -0
- package/dist/components/post-footer.js +10 -11
- package/dist/components/post-header.js +30 -8
- package/dist/components/post-icon.js +1 -1
- package/dist/components/post-icon2.js +153 -0
- package/dist/components/post-language-option.js +8 -9
- package/dist/components/post-language-switch.js +12 -13
- package/dist/components/post-linkarea.js +3 -4
- package/dist/components/post-list-item.js +3 -4
- package/dist/components/post-list.js +4 -5
- package/dist/components/post-logo.js +5 -6
- package/dist/components/post-mainnavigation.js +4 -5
- package/dist/components/post-megadropdown-trigger.js +6 -7
- package/dist/components/post-megadropdown.js +7 -8
- package/dist/components/post-menu-item.js +1 -1
- package/dist/components/post-menu-item2.js +30 -0
- package/dist/components/post-menu-trigger.js +1 -1
- package/dist/components/post-menu-trigger2.js +110 -0
- package/dist/components/post-menu.js +1 -1
- package/dist/components/post-menu2.js +222 -0
- package/dist/components/post-popover.js +6 -7
- package/dist/components/post-popovercontainer.js +1 -1
- package/dist/components/post-popovercontainer2.js +3018 -0
- package/dist/components/post-rating.js +8 -9
- package/dist/components/post-tab-header.js +6 -7
- package/dist/components/post-tab-panel.js +6 -7
- package/dist/components/post-tabs.js +7 -8
- package/dist/components/post-togglebutton.js +3 -4
- package/dist/components/post-tooltip-trigger.js +6 -7
- package/dist/components/post-tooltip.js +6 -7
- package/dist/components/react/index.d.ts +33 -0
- package/dist/components/react/index.js +2315 -0
- package/dist/components/react/p-0Ltezq5O.js +3 -0
- package/dist/components/{p-C8YtuR96.js → react/p-38PqL5iD.js} +1 -1
- package/dist/components/react/p-BLchVpF6.js +14 -0
- package/dist/components/react/p-C35MCWIp.js +35 -0
- package/dist/components/{p-Dg6sSnLv.js → react/p-CGsAj6ij.js} +1 -1
- package/dist/components/react/p-CJ80BZ06.js +178 -0
- package/dist/{esm/index-BWC0gtGU.js → components/react/p-CV7fm1rW.js} +1 -1
- package/dist/components/react/p-C_2k3G1c.js +264 -0
- package/dist/components/{p-D1Ldeko3.js → react/p-Ce7jgYmK.js} +2 -2
- package/dist/components/{p-DNnYEFO6.js → react/p-CiYSngKM.js} +7 -7
- package/dist/components/{p-Cpy7mEQb.js → react/p-Da5wbVP8.js} +1 -1
- package/dist/components/{p-9rHPmDn6.js → react/p-Dq9F2i7n.js} +2 -2
- package/dist/components/{p-jLh9Y0sO.js → react/p-DzYquz3e.js} +2 -2
- package/dist/components/{p-C1i4rB_c.js → react/p-JHuJA2Lv.js} +4 -4
- package/dist/components/react/p-SbIC4aZX.js +11 -0
- package/dist/components/{p-Cd5RHPSU.js → react/p-Tg0GNTZM.js} +2 -2
- package/dist/{esm/event-from-8U5GFtQP.js → components/react/p-kraHE1r3.js} +2 -2
- package/dist/components/{p-DQE6fqIb.js → react/p-q8Fvf8A0.js} +1 -1
- package/dist/components/react/p-r4txK0AC.js +3 -0
- package/dist/components/react/post-accordion-item.d.ts +11 -0
- package/dist/components/react/post-accordion-item.js +6 -0
- package/dist/components/react/post-accordion.d.ts +11 -0
- package/dist/components/react/post-accordion.js +6 -0
- package/dist/components/react/post-avatar.d.ts +11 -0
- package/dist/components/react/post-avatar.js +226 -0
- package/dist/components/react/post-back-to-top.d.ts +11 -0
- package/dist/components/react/post-back-to-top.js +145 -0
- package/dist/components/react/post-banner.d.ts +11 -0
- package/dist/components/react/post-banner.js +99 -0
- package/dist/components/react/post-breadcrumb-item.d.ts +11 -0
- package/dist/components/react/post-breadcrumb-item.js +6 -0
- package/dist/components/react/post-breadcrumbs.d.ts +11 -0
- package/dist/components/react/post-breadcrumbs.js +187 -0
- package/dist/components/react/post-card-control.d.ts +11 -0
- package/dist/components/react/post-card-control.js +327 -0
- package/dist/components/react/post-closebutton.d.ts +11 -0
- package/dist/components/react/post-closebutton.js +50 -0
- package/dist/components/react/post-collapsible-trigger.d.ts +11 -0
- package/dist/components/react/post-collapsible-trigger.js +6 -0
- package/dist/components/react/post-collapsible.d.ts +11 -0
- package/dist/components/react/post-collapsible.js +6 -0
- package/dist/components/react/post-footer.d.ts +11 -0
- package/dist/components/react/post-footer.js +117 -0
- package/dist/components/react/post-header.d.ts +11 -0
- package/dist/components/react/post-header.js +333 -0
- package/dist/components/react/post-icon.d.ts +11 -0
- package/dist/components/react/post-icon.js +6 -0
- package/dist/components/react/post-language-option.d.ts +11 -0
- package/dist/components/react/post-language-option.js +101 -0
- package/dist/components/react/post-language-switch.d.ts +11 -0
- package/dist/components/react/post-language-switch.js +159 -0
- package/dist/components/react/post-linkarea.d.ts +11 -0
- package/dist/components/react/post-linkarea.js +46 -0
- package/dist/components/react/post-list-item.d.ts +11 -0
- package/dist/components/react/post-list-item.js +39 -0
- package/dist/components/react/post-list.d.ts +11 -0
- package/dist/components/react/post-list.js +62 -0
- package/dist/components/react/post-logo.d.ts +11 -0
- package/dist/components/react/post-logo.js +59 -0
- package/dist/components/react/post-mainnavigation.d.ts +11 -0
- package/dist/components/react/post-mainnavigation.js +181 -0
- package/dist/components/react/post-megadropdown-trigger.d.ts +11 -0
- package/dist/components/react/post-megadropdown-trigger.js +137 -0
- package/dist/components/react/post-megadropdown.d.ts +11 -0
- package/dist/components/react/post-megadropdown.js +197 -0
- package/dist/components/react/post-menu-item.d.ts +11 -0
- package/dist/components/react/post-menu-item.js +6 -0
- package/dist/components/react/post-menu-trigger.d.ts +11 -0
- package/dist/components/react/post-menu-trigger.js +6 -0
- package/dist/components/react/post-menu.d.ts +11 -0
- package/dist/components/react/post-menu.js +6 -0
- package/dist/components/react/post-popover.d.ts +11 -0
- package/dist/components/react/post-popover.js +189 -0
- package/dist/components/react/post-popovercontainer.d.ts +11 -0
- package/dist/components/react/post-popovercontainer.js +6 -0
- package/dist/components/react/post-rating.d.ts +11 -0
- package/dist/components/react/post-rating.js +153 -0
- package/dist/components/react/post-tab-header.d.ts +11 -0
- package/dist/components/react/post-tab-header.js +53 -0
- package/dist/components/react/post-tab-panel.d.ts +11 -0
- package/dist/components/react/post-tab-panel.js +55 -0
- package/dist/components/react/post-tabs.d.ts +11 -0
- package/dist/components/react/post-tabs.js +197 -0
- package/dist/components/react/post-togglebutton.d.ts +11 -0
- package/dist/components/react/post-togglebutton.js +57 -0
- package/dist/components/react/post-tooltip-trigger.d.ts +11 -0
- package/dist/components/react/post-tooltip-trigger.js +5223 -0
- package/dist/components/react/post-tooltip.d.ts +11 -0
- package/dist/components/react/post-tooltip.js +115 -0
- package/dist/components/switch-variants.js +3 -0
- package/dist/docs.json +43 -76
- package/dist/esm/event-from-kraHE1r3.js +105 -0
- package/dist/esm/index-C8a0ddDa.js +8 -8
- package/dist/esm/index-VmK3ABCB.js +88 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-0Ltezq5O.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +5 -5
- package/dist/esm/post-avatar.entry.js +92 -55
- package/dist/esm/post-back-to-top.entry.js +33 -8
- package/dist/esm/post-banner.entry.js +32 -36
- package/dist/esm/post-breadcrumb-item_2.entry.js +2 -2
- package/dist/esm/post-breadcrumbs.entry.js +2 -2
- package/dist/esm/post-card-control.entry.js +4 -4
- package/dist/esm/post-closebutton_15.entry.js +38 -7
- package/dist/esm/post-collapsible_2.entry.js +3 -3
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/post-footer.entry.js +2 -2
- package/dist/esm/post-linkarea.entry.js +1 -1
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/post-tooltip-trigger.entry.js +2 -2
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/loader/cdn.js +1 -0
- package/dist/loader/index.cjs.js +1 -0
- package/{loader → dist/loader}/index.d.ts +1 -1
- package/dist/loader/index.es2017.js +1 -0
- package/{loader → dist/loader}/index.js +1 -1
- package/dist/post-components/p-0Ltezq5O.js +1 -0
- package/dist/post-components/{p-eddb07df.entry.js → p-16772417.entry.js} +1 -1
- package/dist/post-components/{p-1dee733a.entry.js → p-38d3d441.entry.js} +1 -1
- package/dist/post-components/{p-470750be.entry.js → p-3c71f590.entry.js} +1 -1
- package/dist/post-components/p-40f21542.entry.js +1 -0
- package/dist/post-components/{p-30f12b7c.entry.js → p-4243cdd1.entry.js} +1 -1
- package/dist/post-components/p-4c18cb8c.entry.js +1 -0
- package/dist/post-components/{p-7819009b.entry.js → p-51dc7647.entry.js} +1 -1
- package/dist/post-components/{p-80bad606.entry.js → p-6777e505.entry.js} +1 -1
- package/dist/post-components/{p-7689015e.entry.js → p-6add880f.entry.js} +1 -1
- package/dist/post-components/{p-74a9aafc.entry.js → p-8363fedb.entry.js} +1 -1
- package/dist/post-components/p-83998038.entry.js +1 -0
- package/dist/post-components/{p-cb937e6b.entry.js → p-85bb1b5e.entry.js} +1 -1
- package/dist/post-components/{p-a0a1cab6.entry.js → p-8f4d8685.entry.js} +1 -1
- package/dist/post-components/{p-a69c874a.entry.js → p-95ad536d.entry.js} +1 -1
- package/dist/post-components/{p-3789cf50.entry.js → p-9d806e89.entry.js} +1 -1
- package/dist/post-components/{p-BWC0gtGU.js → p-VmK3ABCB.js} +1 -1
- package/dist/post-components/p-aad86320.entry.js +1 -0
- package/dist/post-components/p-c3e38acf.entry.js +1 -0
- package/dist/post-components/{p-ba13450e.entry.js → p-d61bb2ff.entry.js} +1 -1
- package/dist/post-components/p-kraHE1r3.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/animations/slide-and-fade.d.ts +2 -0
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +3 -3
- package/dist/types/components/post-avatar/avatar-utils.d.ts +3 -0
- package/dist/types/components/post-avatar/post-avatar.d.ts +14 -11
- package/dist/types/components/post-banner/post-banner.d.ts +6 -14
- package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +2 -0
- package/dist/types/components/post-menu/post-menu.d.ts +3 -0
- package/dist/types/components/post-tabs/post-tabs.d.ts +2 -2
- package/dist/types/components.d.ts +9 -27
- package/dist/types/utils/component-on-ready.d.ts +2 -2
- package/hydrate/index.js +208 -142
- package/hydrate/index.mjs +208 -142
- package/package.json +20 -10
- package/dist/cjs/slide-CbBL7A8w.js +0 -28
- package/dist/components/p-7hVD-I9l.js +0 -3
- package/dist/components/p-BuLMaH5t.js +0 -25
- package/dist/esm/package-7hVD-I9l.js +0 -3
- package/dist/esm/slide-BuLMaH5t.js +0 -25
- package/dist/post-components/p-26730afe.entry.js +0 -1
- package/dist/post-components/p-2d3fb75c.entry.js +0 -1
- package/dist/post-components/p-2ed74834.entry.js +0 -1
- package/dist/post-components/p-7hVD-I9l.js +0 -1
- package/dist/post-components/p-8U5GFtQP.js +0 -1
- package/dist/post-components/p-BuLMaH5t.js +0 -1
- package/dist/post-components/p-cb5af9d8.entry.js +0 -1
- package/dist/post-components/p-ea9ae6b7.entry.js +0 -1
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.es2017.js +0 -1
- /package/dist/components/{p-CJ80BZ06.js → breakpoints.js} +0 -0
- /package/dist/components/{p-SbIC4aZX.js → fade.js} +0 -0
- /package/dist/components/{p-C35MCWIp.js → get-focusable-children.js} +0 -0
- /package/dist/components/{p-r4txK0AC.js → heading-levels.js} +0 -0
- /package/dist/components/{p-BLchVpF6.js → index.browser.js} +0 -0
- /package/dist/components/{p-CV7fm1rW.js → index2.js} +0 -0
- /package/dist/components/{p-C_2k3G1c.js → long-press-event.js} +0 -0
- /package/dist/components/{p-CBFgkSgY.js → react/p-CBFgkSgY.js} +0 -0
- /package/dist/components/{p-DjIHLduJ.js → react/p-DjIHLduJ.js} +0 -0
|
@@ -1,49 +1,45 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
1
11
|
import { Host, h, } from "@stencil/core";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
13
|
import { fadeOut } from "../../animations/index";
|
|
4
|
-
import {
|
|
14
|
+
import { checkEmptyOrOneOf, EventFrom } from "../../utils/index";
|
|
5
15
|
import { BANNER_TYPES } from "./banner-types";
|
|
6
|
-
import { nanoid } from "nanoid";
|
|
7
16
|
/**
|
|
8
17
|
* @slot heading - Slot for placing custom content within the banner's heading.
|
|
9
18
|
* @slot actions - Slot for placing custom actions (buttons, links, etc.) within the banner.
|
|
19
|
+
* @slot close-button - Slot for placing a `post-closebutton` component to make the banner dismissible.
|
|
10
20
|
* @slot default - Slot for placing the main content/message of the banner.
|
|
11
21
|
*/
|
|
12
22
|
export class PostBanner {
|
|
13
23
|
constructor() {
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
/**
|
|
17
|
-
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
18
|
-
*/
|
|
19
|
-
this.dismissible = false;
|
|
24
|
+
this.mutationObserver = new MutationObserver(this.checkContent.bind(this));
|
|
25
|
+
this.hasActions = false;
|
|
20
26
|
/**
|
|
21
27
|
* The type of the banner.
|
|
22
28
|
*/
|
|
23
29
|
this.type = 'info';
|
|
24
30
|
}
|
|
25
|
-
checkDismissible() {
|
|
26
|
-
if (this.dismissible) {
|
|
27
|
-
setTimeout(() => {
|
|
28
|
-
checkRequiredAndType(this, 'dismissLabel', 'string');
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
31
|
validateType() {
|
|
33
32
|
checkEmptyOrOneOf(this, 'type', BANNER_TYPES);
|
|
34
33
|
}
|
|
34
|
+
connectedCallback() {
|
|
35
|
+
this.mutationObserver.observe(this.host, { childList: true });
|
|
36
|
+
}
|
|
35
37
|
componentDidLoad() {
|
|
36
|
-
this.
|
|
38
|
+
this.checkContent();
|
|
37
39
|
this.validateType();
|
|
38
40
|
}
|
|
39
|
-
|
|
40
|
-
this.
|
|
41
|
-
this.hasActions = this.host.querySelectorAll('[slot=actions]').length > 0;
|
|
42
|
-
this.classes = `banner ${this.type ? 'banner-' + this.type : ''}`;
|
|
43
|
-
if (this.dismissible)
|
|
44
|
-
this.classes += ' banner-dismissible';
|
|
45
|
-
if (this.hasActions)
|
|
46
|
-
this.classes += ' banner-action';
|
|
41
|
+
disconnectedCallback() {
|
|
42
|
+
this.mutationObserver.disconnect();
|
|
47
43
|
}
|
|
48
44
|
/**
|
|
49
45
|
* Triggers banner dismissal programmatically (same as clicking on the close button (×)).
|
|
@@ -54,16 +50,14 @@ export class PostBanner {
|
|
|
54
50
|
this.host.remove();
|
|
55
51
|
this.postDismissed.emit();
|
|
56
52
|
}
|
|
53
|
+
onCloseButtonClick() {
|
|
54
|
+
void this.dismiss();
|
|
55
|
+
}
|
|
56
|
+
checkContent() {
|
|
57
|
+
this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
|
|
58
|
+
}
|
|
57
59
|
render() {
|
|
58
|
-
|
|
59
|
-
this.hasHeading && (h("div", { key: `${this.bannerId}-heading`, class: "banner-heading" }, h("slot", { key: 'cea692aeb18e0c75d9616efc1cf804f3629f5bbf', name: "heading" }))),
|
|
60
|
-
h("slot", { key: `${this.bannerId}-message` }),
|
|
61
|
-
];
|
|
62
|
-
const actionBannerContent = [
|
|
63
|
-
h("div", { key: `${this.bannerId}-content`, class: "banner-content" }, defaultBannerContent),
|
|
64
|
-
h("div", { key: `${this.bannerId}-buttons`, class: "banner-buttons" }, h("slot", { key: '5f48e2d579c573cce2e347b08951785e2a8a0c42', name: "actions" })),
|
|
65
|
-
];
|
|
66
|
-
return (h(Host, { key: '27649f6a2f208748afd204c2cf4c72b7c19eb3a0', "data-version": version }, h("div", { key: 'dd8418a4d6358bd1f6493a57308ce93a2a945cd2', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '549e7ef13a1d69312c1266737a6c145dd5cf257a', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: 'b024d4254d6e9e52fcf3dca5bfe42c310565afce', class: "visually-hidden" }, this.dismissLabel))), this.hasActions ? actionBannerContent : defaultBannerContent)));
|
|
60
|
+
return (h(Host, { key: 'e15185f83fd0da3aa39b2b5272e4326ecd77ee9d', "data-version": version, role: "alert" }, h("slot", { key: '328dd1643a38643593ef79b5416b6f4b49e4eeef', name: "close-button" }), h("slot", { key: '37ba09740a254eb559e5035dc2611849c1d01993', name: "heading" }), h("slot", { key: '705fe8a24b3d31cce0637bea745128393aeee121' }), this.hasActions && (h("div", { key: '296f89787a5f497fc835d88931b0784ab9c7ace9', class: "actions" }, h("slot", { key: '7a3c6c574ef61890ebd8d038d491b56e65a22129', name: "actions" })))));
|
|
67
61
|
}
|
|
68
62
|
static get is() { return "post-banner"; }
|
|
69
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,45 +73,6 @@ export class PostBanner {
|
|
|
79
73
|
}
|
|
80
74
|
static get properties() {
|
|
81
75
|
return {
|
|
82
|
-
"dismissible": {
|
|
83
|
-
"type": "boolean",
|
|
84
|
-
"attribute": "dismissible",
|
|
85
|
-
"mutable": false,
|
|
86
|
-
"complexType": {
|
|
87
|
-
"original": "boolean",
|
|
88
|
-
"resolved": "boolean",
|
|
89
|
-
"references": {}
|
|
90
|
-
},
|
|
91
|
-
"required": false,
|
|
92
|
-
"optional": false,
|
|
93
|
-
"docs": {
|
|
94
|
-
"tags": [],
|
|
95
|
-
"text": "If `true`, a close button (\u00D7) is displayed and the banner can be dismissed by the user."
|
|
96
|
-
},
|
|
97
|
-
"getter": false,
|
|
98
|
-
"setter": false,
|
|
99
|
-
"reflect": false,
|
|
100
|
-
"defaultValue": "false"
|
|
101
|
-
},
|
|
102
|
-
"dismissLabel": {
|
|
103
|
-
"type": "string",
|
|
104
|
-
"attribute": "dismiss-label",
|
|
105
|
-
"mutable": false,
|
|
106
|
-
"complexType": {
|
|
107
|
-
"original": "string",
|
|
108
|
-
"resolved": "string",
|
|
109
|
-
"references": {}
|
|
110
|
-
},
|
|
111
|
-
"required": false,
|
|
112
|
-
"optional": true,
|
|
113
|
-
"docs": {
|
|
114
|
-
"tags": [],
|
|
115
|
-
"text": "The label to use for the close button of a dismissible banner."
|
|
116
|
-
},
|
|
117
|
-
"getter": false,
|
|
118
|
-
"setter": false,
|
|
119
|
-
"reflect": false
|
|
120
|
-
},
|
|
121
76
|
"type": {
|
|
122
77
|
"type": "string",
|
|
123
78
|
"attribute": "type",
|
|
@@ -141,18 +96,14 @@ export class PostBanner {
|
|
|
141
96
|
},
|
|
142
97
|
"getter": false,
|
|
143
98
|
"setter": false,
|
|
144
|
-
"reflect":
|
|
99
|
+
"reflect": true,
|
|
145
100
|
"defaultValue": "'info'"
|
|
146
101
|
}
|
|
147
102
|
};
|
|
148
103
|
}
|
|
149
104
|
static get states() {
|
|
150
105
|
return {
|
|
151
|
-
"
|
|
152
|
-
"classes": {},
|
|
153
|
-
"hasActions": {},
|
|
154
|
-
"hasHeading": {},
|
|
155
|
-
"onDismissButtonClick": {}
|
|
106
|
+
"hasActions": {}
|
|
156
107
|
};
|
|
157
108
|
}
|
|
158
109
|
static get events() {
|
|
@@ -197,11 +148,20 @@ export class PostBanner {
|
|
|
197
148
|
static get elementRef() { return "host"; }
|
|
198
149
|
static get watchers() {
|
|
199
150
|
return [{
|
|
200
|
-
"propName": "dismissible",
|
|
201
|
-
"methodName": "checkDismissible"
|
|
202
|
-
}, {
|
|
203
151
|
"propName": "type",
|
|
204
152
|
"methodName": "validateType"
|
|
205
153
|
}];
|
|
206
154
|
}
|
|
155
|
+
static get listeners() {
|
|
156
|
+
return [{
|
|
157
|
+
"name": "click",
|
|
158
|
+
"method": "onCloseButtonClick",
|
|
159
|
+
"target": undefined,
|
|
160
|
+
"capture": false,
|
|
161
|
+
"passive": false
|
|
162
|
+
}];
|
|
163
|
+
}
|
|
207
164
|
}
|
|
165
|
+
__decorate([
|
|
166
|
+
EventFrom('post-closebutton')
|
|
167
|
+
], PostBanner.prototype, "onCloseButtonClick", null);
|
|
@@ -5,8 +5,8 @@ let cardControlIds = 0;
|
|
|
5
5
|
/**
|
|
6
6
|
* @class PostCardControl - representing a stencil component
|
|
7
7
|
*
|
|
8
|
-
* @slot default - Content to place into the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt">block content</a>.<
|
|
9
|
-
* @slot icon - To insert a custom icon into the named `icon` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.<
|
|
8
|
+
* @slot default - Content to place into the `default` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Block-level_contentt">block content</a>.<post-banner type="warning" data-size="sm"><p>Even if it is generally possible, we do not recommend using interactive elements in this slot because the background of the card control is clickable.<br/>This can lead to confusion when the hit box of nested interactive controls is not clearly separated from the background, is invalid HTML and click events bubbling up to the card control will unexpectedly toggle it if they're not captured.<br/>More info: <a href="https://accessibilityinsights.io/info-examples/web/nested-interactive/">https://accessibilityinsights.io/info-examples/web/nested-interactive/</a></p></post-banner>
|
|
9
|
+
* @slot icon - To insert a custom icon into the named `icon` slot.<p>Markup accepted: <a href="https://developer.mozilla.org/en-US/docs/Glossary/Inline-level_content">inline content</a>.<post-banner data-size="sm"><p>It is only meant for <code>img</code> or <code>svg</code> elements and overrides the `icon` property.</p></post-banner>
|
|
10
10
|
*/
|
|
11
11
|
export class PostCardControl {
|
|
12
12
|
/**
|
|
@@ -229,14 +229,14 @@ export class PostCardControl {
|
|
|
229
229
|
this.hasIcon = Boolean(this.host.querySelector('[slot="icon"]') || this.icon);
|
|
230
230
|
}
|
|
231
231
|
render() {
|
|
232
|
-
return (h(Host, { key: '
|
|
232
|
+
return (h(Host, { key: 'e0f328775bee8a8a05ca02a0d74c30bab97a55b1', "data-version": version, onClick: this.cardClickHandler }, h("div", { key: '21c4f081f2c4720dce65f0beed7127a7392c21bb', class: {
|
|
233
233
|
'card-control': true,
|
|
234
234
|
'is-checked': this.checked,
|
|
235
235
|
'is-disabled': this.disabled,
|
|
236
236
|
'is-focused': this.focused,
|
|
237
237
|
'is-valid': this.validity !== undefined && this.validity !== false,
|
|
238
238
|
'is-invalid': this.validity === false,
|
|
239
|
-
} }, h("input", { key: '
|
|
239
|
+
} }, h("input", { key: '0850cf58736cd393e1aa34e7f4f44ccdfbde0f1a', ref: el => (this.control = el), id: this.controlId, class: "card-control--input", type: this.type, name: this.name, value: this.value, checked: this.checked, "aria-describedby": `${this.controlId}_content`, "aria-disabled": this.disabled, "aria-invalid": this.validity === false, onClick: this.controlClickHandler, onInput: this.controlChangeHandler, onChange: this.controlChangeHandler, onFocus: this.controlFocusHandler, onBlur: this.controlFocusHandler, onKeyDown: this.controlKeyDownHandler }), h("label", { key: '73956c65cb4a83e0feb3d915c8b5f7561307336f', id: `${this.controlId}_label`, htmlFor: this.controlId, class: "card-control--label" }, this.label, this.description ? (h("div", { class: "card-control--description" }, this.description)) : null), this.hasIcon ? (h("div", { class: "card-control--icon" }, h("slot", { name: "icon" }, this.icon ? h("post-icon", { name: this.icon }) : null))) : null, h("div", { key: '9b4104a21c0d960d9b3adbefdb38ba8e81ac1ab6', id: `${this.controlId}_content`, class: "card-control--content" }, h("slot", { key: '85469e7c5665c934c297a21870bc296a1ef95128' })))));
|
|
240
240
|
}
|
|
241
241
|
componentDidRender() {
|
|
242
242
|
this.setHostContext();
|
|
@@ -347,7 +347,7 @@ export class PostCardControl {
|
|
|
347
347
|
"optional": true,
|
|
348
348
|
"docs": {
|
|
349
349
|
"tags": [],
|
|
350
|
-
"text": "Defines the `name` attribute of the control.\n<
|
|
350
|
+
"text": "Defines the `name` attribute of the control.\n<post-banner data-size=\"sm\"><p>This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</p></post-banner>\n<post-banner data-size=\"sm\"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>"
|
|
351
351
|
},
|
|
352
352
|
"getter": false,
|
|
353
353
|
"setter": false,
|
|
@@ -366,7 +366,7 @@ export class PostCardControl {
|
|
|
366
366
|
"optional": true,
|
|
367
367
|
"docs": {
|
|
368
368
|
"tags": [],
|
|
369
|
-
"text": "Defines the `value` attribute of the control. <
|
|
369
|
+
"text": "Defines the `value` attribute of the control. <post-banner data-size=\"sm\"><p>This is a required property, when the control is used with type `radio`.</p></post-banner>"
|
|
370
370
|
},
|
|
371
371
|
"getter": false,
|
|
372
372
|
"setter": false,
|
|
@@ -444,7 +444,7 @@ export class PostCardControl {
|
|
|
444
444
|
"optional": true,
|
|
445
445
|
"docs": {
|
|
446
446
|
"tags": [],
|
|
447
|
-
"text": "Defines the icon `name` inside the card.\n<
|
|
447
|
+
"text": "Defines the icon `name` inside the card.\n<post-banner data-size=\"sm\"><p>If not set the icon will not show up.</p></post-banner>"
|
|
448
448
|
},
|
|
449
449
|
"getter": false,
|
|
450
450
|
"setter": false,
|
|
@@ -481,7 +481,7 @@ export class PostCardControl {
|
|
|
481
481
|
"composed": true,
|
|
482
482
|
"docs": {
|
|
483
483
|
"tags": [],
|
|
484
|
-
"text": "An event emitted whenever the components checked state is toggled.\nThe event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.\n<
|
|
484
|
+
"text": "An event emitted whenever the components checked state is toggled.\nThe event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.\n<post-banner data-size=\"sm\"><p>If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</p></post-banner>"
|
|
485
485
|
},
|
|
486
486
|
"complexType": {
|
|
487
487
|
"original": "{ state: boolean; value: string }",
|
|
@@ -4,8 +4,16 @@ import { version } from "../../../../package";
|
|
|
4
4
|
* @slot default - Slot for placing visually hidden label in the close button.
|
|
5
5
|
*/
|
|
6
6
|
export class PostClosebutton {
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
this.checkHiddenLabel();
|
|
9
|
+
}
|
|
10
|
+
checkHiddenLabel(slot = this.host.shadowRoot.querySelector('.visually-hidden slot')) {
|
|
11
|
+
if (slot.assignedNodes().length === 0) {
|
|
12
|
+
console.error(`The \`${this.host.localName}\` component requires content for accessibility.`);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
7
15
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'a8db3ecbefea609234c4c8c29dbf085637592c2c', "data-version": version }, h("button", { key: '58cef7f32f6ec89d46a1ea57b5497089a96aebf3', class: "btn btn-icon-close", type: "button" }, h("post-icon", { key: '023a67437b69bb9966d08b027cc5f10d68baac40', "aria-hidden": "true", name: "closex" }), h("span", { key: 'b1a21810b6179ddd8d66b426a3149966c1972f59', class: "visually-hidden" }, h("slot", { key: '2a2417bedbcb57c75993722d3267342c7df7381d', onSlotchange: () => this.checkHiddenLabel() })))));
|
|
9
17
|
}
|
|
10
18
|
static get is() { return "post-closebutton"; }
|
|
11
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,6 +13,9 @@ import { PLACEMENT_TYPES } from "../../types/index";
|
|
|
13
13
|
import { version } from "../../../../package";
|
|
14
14
|
import { getFocusableChildren } from "../../utils/get-focusable-children";
|
|
15
15
|
import { getRoot, checkEmptyOrOneOf, EventFrom } from "../../utils/index";
|
|
16
|
+
/**
|
|
17
|
+
* @part menu - The container element that holds the list of menu items.
|
|
18
|
+
*/
|
|
16
19
|
export class PostMenu {
|
|
17
20
|
constructor() {
|
|
18
21
|
this.lastFocusedElement = null;
|
|
@@ -173,7 +176,7 @@ export class PostMenu {
|
|
|
173
176
|
.flatMap(el => Array.from(getFocusableChildren(el))));
|
|
174
177
|
}
|
|
175
178
|
render() {
|
|
176
|
-
return (h(Host, { key: '
|
|
179
|
+
return (h(Host, { key: 'ee365a30646247563fccd55556f7667cb1591d02', "data-version": version, role: "menu" }, h("post-popovercontainer", { key: 'c649841d408d3f35dfed959cdc6b041163ff80d3', placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '9f4f145b80c716d27dc51f4bcb0d269b2b2678a8', part: "menu" }, h("slot", { key: '72b53c8f154a4a91541799a789e8618a8d1a9c2c' })))));
|
|
177
180
|
}
|
|
178
181
|
static get is() { return "post-menu"; }
|
|
179
182
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,8 +5,8 @@ import { componentOnReady } from "../../utils/index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @slot tabs - Slot for placing tab headers. Each tab header should be a <post-tab-header> element.
|
|
7
7
|
* @slot default - Slot for placing tab panels. Each tab panel should be a <post-tab-panel> element.
|
|
8
|
-
* @part tabs -
|
|
9
|
-
* @part content -
|
|
8
|
+
* @part tabs - The container element that holds the set of tabs.
|
|
9
|
+
* @part content - The container element that displays the content of the currently active tab.
|
|
10
10
|
*/
|
|
11
11
|
export class PostTabs {
|
|
12
12
|
constructor() {
|
|
@@ -145,7 +145,7 @@ export class PostTabs {
|
|
|
145
145
|
nextTab.focus();
|
|
146
146
|
}
|
|
147
147
|
render() {
|
|
148
|
-
return (h(Host, { key: '
|
|
148
|
+
return (h(Host, { key: 'dc7228c840d65e3546e0d13e5bcaa78819b5aeb9', "data-version": version }, h("div", { key: '377d592f7c00f3ec0c7aba2a4a8ca2b88cd37927', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '6e79f33d6cd82d55ba9fad2f09f6163ce7e0a372', class: "tabs", role: "tablist" }, h("slot", { key: '65fbf3cb6525f2f2ae97eb60dad313811db4c585', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '675a59a27e79bad06ea2b70c4fc7b0a6f4b020ff', class: "tab-content", part: "content" }, h("slot", { key: 'b559af0fa652e352673fbabb6829a62a5630e809', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
149
149
|
}
|
|
150
150
|
static get is() { return "post-tabs"; }
|
|
151
151
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @returns true if the event should be processed, false otherwise
|
|
8
8
|
*/
|
|
9
9
|
function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
|
|
10
|
-
if (!(event instanceof
|
|
10
|
+
if (!(event instanceof Event && event.target instanceof HTMLElement))
|
|
11
11
|
return false;
|
|
12
12
|
const eventTarget = event.target;
|
|
13
13
|
if (eventTarget.localName !== tag)
|
|
@@ -38,7 +38,7 @@ export function EventFrom(tag, option = { ignoreNestedComponents: true }) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
|
-
// Creates a hidden storage property for the original method using a
|
|
41
|
+
// Creates a hidden storage property for the original method using a
|
|
42
42
|
// modified key format (__[property]_original) to avoid naming conflicts
|
|
43
43
|
const privateKey = `__${propertyKey}_original`;
|
|
44
44
|
// Create hidden storage for original method
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @returns true if the event should be processed, false otherwise
|
|
8
8
|
*/
|
|
9
9
|
function shouldProcessEvent(event, tag, host, ignoreNestedComponents) {
|
|
10
|
-
if (!(event instanceof
|
|
10
|
+
if (!(event instanceof Event && event.target instanceof HTMLElement))
|
|
11
11
|
return false;
|
|
12
12
|
const eventTarget = event.target;
|
|
13
13
|
if (eventTarget.localName !== tag)
|
|
@@ -38,7 +38,7 @@ function EventFrom(tag, option = { ignoreNestedComponents: true }) {
|
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
40
|
else {
|
|
41
|
-
// Creates a hidden storage property for the original method using a
|
|
41
|
+
// Creates a hidden storage property for the original method using a
|
|
42
42
|
// modified key format (__[property]_original) to avoid naming conflicts
|
|
43
43
|
const privateKey = `__${propertyKey}_original`;
|
|
44
44
|
// Create hidden storage for original method
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { I as IS_BROWSER } from './breakpoints.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* getRootNode() can only be used after the element has been attached to the document!
|
|
5
|
+
* So use it for example in the componentDidLoad lifecycle hook.
|
|
6
|
+
*/
|
|
7
|
+
function getRoot(element) {
|
|
8
|
+
const root = IS_BROWSER ? element.getRootNode() : element;
|
|
9
|
+
if (root instanceof Document || root instanceof ShadowRoot) {
|
|
10
|
+
return root;
|
|
11
|
+
}
|
|
12
|
+
throw new Error('Attempting to access root node before the element is attached to the document or shadow tree.');
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export { getRoot as g };
|
|
@@ -1,3 +1,75 @@
|
|
|
1
|
+
/* PostComponents custom elements */
|
|
2
|
+
export { PostAccordion as PostAccordion } from '../types/components/post-accordion/post-accordion';
|
|
3
|
+
export { defineCustomElement as defineCustomElementPostAccordion } from './post-accordion';
|
|
4
|
+
export { PostAccordionItem as PostAccordionItem } from '../types/components/post-accordion-item/post-accordion-item';
|
|
5
|
+
export { defineCustomElement as defineCustomElementPostAccordionItem } from './post-accordion-item';
|
|
6
|
+
export { PostAvatar as PostAvatar } from '../types/components/post-avatar/post-avatar';
|
|
7
|
+
export { defineCustomElement as defineCustomElementPostAvatar } from './post-avatar';
|
|
8
|
+
export { PostBackToTop as PostBackToTop } from '../types/components/post-back-to-top/post-back-to-top';
|
|
9
|
+
export { defineCustomElement as defineCustomElementPostBackToTop } from './post-back-to-top';
|
|
10
|
+
export { PostBanner as PostBanner } from '../types/components/post-banner/post-banner';
|
|
11
|
+
export { defineCustomElement as defineCustomElementPostBanner } from './post-banner';
|
|
12
|
+
export { PostBreadcrumbItem as PostBreadcrumbItem } from '../types/components/post-breadcrumb-item/post-breadcrumb-item';
|
|
13
|
+
export { defineCustomElement as defineCustomElementPostBreadcrumbItem } from './post-breadcrumb-item';
|
|
14
|
+
export { PostBreadcrumbs as PostBreadcrumbs } from '../types/components/post-breadcrumbs/post-breadcrumbs';
|
|
15
|
+
export { defineCustomElement as defineCustomElementPostBreadcrumbs } from './post-breadcrumbs';
|
|
16
|
+
export { PostCardControl as PostCardControl } from '../types/components/post-card-control/post-card-control';
|
|
17
|
+
export { defineCustomElement as defineCustomElementPostCardControl } from './post-card-control';
|
|
18
|
+
export { PostClosebutton as PostClosebutton } from '../types/components/post-closebutton/post-closebutton';
|
|
19
|
+
export { defineCustomElement as defineCustomElementPostClosebutton } from './post-closebutton';
|
|
20
|
+
export { PostCollapsible as PostCollapsible } from '../types/components/post-collapsible/post-collapsible';
|
|
21
|
+
export { defineCustomElement as defineCustomElementPostCollapsible } from './post-collapsible';
|
|
22
|
+
export { PostCollapsibleTrigger as PostCollapsibleTrigger } from '../types/components/post-collapsible-trigger/post-collapsible-trigger';
|
|
23
|
+
export { defineCustomElement as defineCustomElementPostCollapsibleTrigger } from './post-collapsible-trigger';
|
|
24
|
+
export { PostFooter as PostFooter } from '../types/components/post-footer/post-footer';
|
|
25
|
+
export { defineCustomElement as defineCustomElementPostFooter } from './post-footer';
|
|
26
|
+
export { PostHeader as PostHeader } from '../types/components/post-header/post-header';
|
|
27
|
+
export { defineCustomElement as defineCustomElementPostHeader } from './post-header';
|
|
28
|
+
export { PostIcon as PostIcon } from '../types/components/post-icon/post-icon';
|
|
29
|
+
export { defineCustomElement as defineCustomElementPostIcon } from './post-icon';
|
|
30
|
+
export { PostLanguageOption as PostLanguageOption } from '../types/components/post-language-option/post-language-option';
|
|
31
|
+
export { defineCustomElement as defineCustomElementPostLanguageOption } from './post-language-option';
|
|
32
|
+
export { PostLanguageSwitch as PostLanguageSwitch } from '../types/components/post-language-switch/post-language-switch';
|
|
33
|
+
export { defineCustomElement as defineCustomElementPostLanguageSwitch } from './post-language-switch';
|
|
34
|
+
export { PostLinkarea as PostLinkarea } from '../types/components/post-linkarea/post-linkarea';
|
|
35
|
+
export { defineCustomElement as defineCustomElementPostLinkarea } from './post-linkarea';
|
|
36
|
+
export { PostList as PostList } from '../types/components/post-list/post-list';
|
|
37
|
+
export { defineCustomElement as defineCustomElementPostList } from './post-list';
|
|
38
|
+
export { PostListItem as PostListItem } from '../types/components/post-list-item/post-list-item';
|
|
39
|
+
export { defineCustomElement as defineCustomElementPostListItem } from './post-list-item';
|
|
40
|
+
export { PostLogo as PostLogo } from '../types/components/post-logo/post-logo';
|
|
41
|
+
export { defineCustomElement as defineCustomElementPostLogo } from './post-logo';
|
|
42
|
+
export { PostMainnavigation as PostMainnavigation } from '../types/components/post-mainnavigation/post-mainnavigation';
|
|
43
|
+
export { defineCustomElement as defineCustomElementPostMainnavigation } from './post-mainnavigation';
|
|
44
|
+
export { PostMegadropdown as PostMegadropdown } from '../types/components/post-megadropdown/post-megadropdown';
|
|
45
|
+
export { defineCustomElement as defineCustomElementPostMegadropdown } from './post-megadropdown';
|
|
46
|
+
export { PostMegadropdownTrigger as PostMegadropdownTrigger } from '../types/components/post-megadropdown-trigger/post-megadropdown-trigger';
|
|
47
|
+
export { defineCustomElement as defineCustomElementPostMegadropdownTrigger } from './post-megadropdown-trigger';
|
|
48
|
+
export { PostMenu as PostMenu } from '../types/components/post-menu/post-menu';
|
|
49
|
+
export { defineCustomElement as defineCustomElementPostMenu } from './post-menu';
|
|
50
|
+
export { PostMenuItem as PostMenuItem } from '../types/components/post-menu-item/post-menu-item';
|
|
51
|
+
export { defineCustomElement as defineCustomElementPostMenuItem } from './post-menu-item';
|
|
52
|
+
export { PostMenuTrigger as PostMenuTrigger } from '../types/components/post-menu-trigger/post-menu-trigger';
|
|
53
|
+
export { defineCustomElement as defineCustomElementPostMenuTrigger } from './post-menu-trigger';
|
|
54
|
+
export { PostPopover as PostPopover } from '../types/components/post-popover/post-popover';
|
|
55
|
+
export { defineCustomElement as defineCustomElementPostPopover } from './post-popover';
|
|
56
|
+
export { PostPopovercontainer as PostPopovercontainer } from '../types/components/post-popovercontainer/post-popovercontainer';
|
|
57
|
+
export { defineCustomElement as defineCustomElementPostPopovercontainer } from './post-popovercontainer';
|
|
58
|
+
export { PostRating as PostRating } from '../types/components/post-rating/post-rating';
|
|
59
|
+
export { defineCustomElement as defineCustomElementPostRating } from './post-rating';
|
|
60
|
+
export { PostTabHeader as PostTabHeader } from '../types/components/post-tab-header/post-tab-header';
|
|
61
|
+
export { defineCustomElement as defineCustomElementPostTabHeader } from './post-tab-header';
|
|
62
|
+
export { PostTabPanel as PostTabPanel } from '../types/components/post-tab-panel/post-tab-panel';
|
|
63
|
+
export { defineCustomElement as defineCustomElementPostTabPanel } from './post-tab-panel';
|
|
64
|
+
export { PostTabs as PostTabs } from '../types/components/post-tabs/post-tabs';
|
|
65
|
+
export { defineCustomElement as defineCustomElementPostTabs } from './post-tabs';
|
|
66
|
+
export { PostTogglebutton as PostTogglebutton } from '../types/components/post-togglebutton/post-togglebutton';
|
|
67
|
+
export { defineCustomElement as defineCustomElementPostTogglebutton } from './post-togglebutton';
|
|
68
|
+
export { PostTooltip as PostTooltip } from '../types/components/post-tooltip/post-tooltip';
|
|
69
|
+
export { defineCustomElement as defineCustomElementPostTooltip } from './post-tooltip';
|
|
70
|
+
export { PostTooltipTrigger as PostTooltipTrigger } from '../types/components/post-tooltip-trigger/post-tooltip-trigger';
|
|
71
|
+
export { defineCustomElement as defineCustomElementPostTooltipTrigger } from './post-tooltip-trigger';
|
|
72
|
+
|
|
1
73
|
/**
|
|
2
74
|
* Get the base path to where the assets can be found. Use "setAssetPath(path)"
|
|
3
75
|
* if the path needs to be customized.
|
|
@@ -31,3 +103,4 @@ export interface SetPlatformOptions {
|
|
|
31
103
|
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
32
104
|
}
|
|
33
105
|
export declare const setPlatformOptions: (opts: SetPlatformOptions) => void;
|
|
106
|
+
export * from '../types';
|