@swisspost/design-system-components 2.0.2 → 2.1.0
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/attribute-observer-10f08c04.js +27 -0
- package/dist/cjs/index-f243643b.js +4 -0
- package/dist/cjs/index.cjs.js +15 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-e8091039.js → package-96a46572.js} +1 -1
- package/dist/cjs/{post-accordion-eebf7827.js → post-accordion-9d27458a.js} +1 -1
- package/dist/cjs/{post-accordion-item-b2977ca5.js → post-accordion-item-61fb55fa.js} +2 -2
- package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/post-accordion.cjs.entry.js +2 -2
- package/dist/cjs/{post-alert-af7728e6.js → post-alert-a810f5b9.js} +2 -2
- package/dist/cjs/post-alert.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-15f79667.js → post-collapsible-1867015c.js} +1 -1
- package/dist/cjs/post-collapsible.cjs.entry.js +2 -2
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-icon-b80d7e24.js → post-icon-07a67b83.js} +1 -1
- package/dist/cjs/post-icon.cjs.entry.js +2 -2
- package/dist/cjs/post-popover-9610b64c.js +104 -0
- package/dist/cjs/post-popover.cjs.entry.js +3 -2
- package/dist/cjs/{post-popovercontainer-130193cf.js → post-popovercontainer-003c0819.js} +26 -13
- package/dist/cjs/post-popovercontainer.cjs.entry.js +2 -2
- package/dist/cjs/post-rating-75574abd.js +88 -0
- package/dist/cjs/post-rating.cjs.entry.js +11 -0
- package/dist/cjs/post-tab-header-85424e32.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-fc0bfcbe.js → post-tab-panel-6a9c4a4f.js} +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-3f909e1c.js → post-tabs-2eb6f376.js} +3 -3
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-e5b22230.js → post-tooltip-260d0627.js} +10 -27
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +1 -1
- package/dist/collection/components/post-alert/post-alert.css +5 -5
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +47 -63
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +25 -12
- package/dist/collection/components/post-rating/post-rating.css +3 -0
- package/dist/collection/components/post-rating/post-rating.js +202 -0
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +9 -26
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/attribute-observer.js +23 -0
- package/dist/components/attribute-observer.js +25 -0
- package/dist/components/index.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-alert2.js +1 -1
- package/dist/components/post-popover2.js +51 -64
- package/dist/components/post-popovercontainer2.js +25 -12
- package/dist/components/post-rating.d.ts +11 -0
- package/dist/components/post-rating.js +6 -0
- package/dist/components/post-rating2.js +113 -0
- package/dist/components/post-tab-header2.js +2 -2
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +2 -2
- package/dist/components/post-tooltip2.js +9 -26
- package/dist/docs.json +151 -14
- package/dist/esm/attribute-observer-37fa950a.js +25 -0
- package/dist/esm/index-1708db56.js +4 -0
- package/dist/esm/index.js +14 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{package-aa903c40.js → package-50a9c0c3.js} +1 -1
- package/dist/esm/{post-accordion-82b49f7b.js → post-accordion-33fe4f0e.js} +1 -1
- package/dist/esm/{post-accordion-item-3deff76a.js → post-accordion-item-1fd95c9f.js} +2 -2
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-alert-c88451ba.js → post-alert-65d67f69.js} +2 -2
- package/dist/esm/post-alert.entry.js +2 -2
- package/dist/esm/{post-collapsible-87ce4e6e.js → post-collapsible-50dc361b.js} +1 -1
- package/dist/esm/post-collapsible.entry.js +2 -2
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/{post-icon-e0536000.js → post-icon-00f314ae.js} +1 -1
- package/dist/esm/post-icon.entry.js +2 -2
- package/dist/esm/post-popover-40bfd1b7.js +102 -0
- package/dist/esm/post-popover.entry.js +3 -2
- package/dist/esm/{post-popovercontainer-6d1d7f76.js → post-popovercontainer-62e1fd82.js} +26 -13
- package/dist/esm/post-popovercontainer.entry.js +2 -2
- package/dist/esm/post-rating-f7a79ed4.js +86 -0
- package/dist/esm/post-rating.entry.js +3 -0
- package/dist/esm/post-tab-header-0683252a.js +30 -0
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-b41d5d0f.js → post-tab-panel-37a1331f.js} +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-97868e9c.js → post-tabs-c4e65a45.js} +3 -3
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tooltip-531b569d.js → post-tooltip-033f63fa.js} +10 -27
- package/dist/esm/post-tooltip.entry.js +3 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-00dcad55.js +1 -0
- package/dist/post-components/p-01e57281.entry.js +1 -0
- package/dist/post-components/p-06c989fb.entry.js +1 -0
- package/dist/post-components/p-07ffb6de.entry.js +1 -0
- package/dist/post-components/p-26c658c1.entry.js +1 -0
- package/dist/post-components/p-2a964700.js +1 -0
- package/dist/post-components/{p-202a23d3.js → p-35f14000.js} +1 -1
- package/dist/post-components/{p-d8ac8ae9.js → p-3fb09ecd.js} +1 -1
- package/dist/post-components/p-4b0a45d8.entry.js +1 -0
- package/dist/post-components/p-53e8e4e7.entry.js +1 -0
- package/dist/post-components/{p-284ca5da.js → p-598b11b6.js} +1 -1
- package/dist/post-components/p-5b6ee52a.entry.js +1 -0
- package/dist/post-components/p-6adeaa6c.js +1 -0
- package/dist/post-components/p-7e7833f7.js +15 -0
- package/dist/post-components/p-8139faa4.entry.js +1 -0
- package/dist/post-components/p-8cd6d7c2.js +1 -0
- package/dist/post-components/{p-bf1293e1.js → p-99a9602e.js} +1 -1
- package/dist/post-components/p-a2775477.entry.js +1 -0
- package/dist/post-components/p-a905b16b.entry.js +1 -0
- package/dist/post-components/p-aa02111b.js +1 -0
- package/dist/post-components/{p-25766de1.js → p-b135d3e2.js} +1 -1
- package/dist/post-components/p-b81e61ed.entry.js +1 -0
- package/dist/post-components/p-d6bc34ff.js +1 -0
- package/dist/post-components/p-da2b8e26.entry.js +1 -0
- package/dist/post-components/p-f0476913.js +1 -0
- package/dist/post-components/p-ff0e1564.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-popover/post-popover.d.ts +3 -17
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +1 -0
- package/dist/types/components/post-rating/post-rating.d.ts +43 -0
- package/dist/types/components.d.ts +69 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/attribute-observer.d.ts +1 -0
- package/package.json +4 -3
- package/dist/cjs/post-popover-392b0554.js +0 -117
- package/dist/cjs/post-tab-header-454cc178.js +0 -32
- package/dist/esm/post-popover-00b006b4.js +0 -115
- package/dist/esm/post-tab-header-0f7866f9.js +0 -30
- package/dist/post-components/p-0ef425cd.entry.js +0 -1
- package/dist/post-components/p-23d55894.entry.js +0 -1
- package/dist/post-components/p-2b5a940c.entry.js +0 -1
- package/dist/post-components/p-31c06741.entry.js +0 -1
- package/dist/post-components/p-320a90d8.entry.js +0 -1
- package/dist/post-components/p-3b8a1f9d.entry.js +0 -1
- package/dist/post-components/p-61ad6181.entry.js +0 -1
- package/dist/post-components/p-71a57911.js +0 -1
- package/dist/post-components/p-b111a381.js +0 -1
- package/dist/post-components/p-ba40e160.js +0 -1
- package/dist/post-components/p-be08f39f.entry.js +0 -1
- package/dist/post-components/p-c3dd84af.js +0 -1
- package/dist/post-components/p-c9ecada7.entry.js +0 -1
- package/dist/post-components/p-cdd7ad0a.js +0 -15
- package/dist/post-components/p-d7863a77.js +0 -1
- package/dist/post-components/p-dc9ffe1d.js +0 -1
- package/dist/post-components/p-fbf645c4.entry.js +0 -1
- package/dist/post-components/p-ff9016ce.entry.js +0 -1
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { v as version } from './package.js';
|
|
3
3
|
import { c as checkNonEmpty } from './check-non-empty.js';
|
|
4
4
|
|
|
5
|
-
const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color
|
|
5
|
+
const postTabHeaderCss = ".tab-title[role=tab]{display:inline-block;cursor:pointer;position:relative;box-sizing:border-box;padding:1rem;transition:background-color 100ms;border-right:1px solid rgba(0,0,0,0);border-left:1px solid rgba(0,0,0,0);outline-color:currentColor;opacity:.7;color:var(--post-contrast-color);text-decoration:none;background-color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus{background-color:unset;color:var(--post-contrast-color)}.tab-title[role=tab]:hover{opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted)}.tab-title[role=tab]:focus-visible{outline:rgba(0,0,0,0);opacity:1;background-color:rgba(var(--post-contrast-color-rgb), 0.6);color:var(--post-contrast-color-inverted);box-shadow:none}.tab-title[role=tab]:focus-visible::after{content:\"\";display:block;position:absolute;top:2px;right:1px;bottom:0;left:1px;box-shadow:0 0 0 1px #fff,0 0 0 2px #333}.tab-title[role=tab].active{z-index:1;border-right-color:#ccc;border-left-color:#ccc;opacity:1;background-color:var(--post-contrast-color-inverted);color:var(--post-contrast-color);font-weight:700}.tab-title[role=tab].active::before{content:\"\";display:block;position:absolute;top:0;right:-1px;left:-1px;height:.25rem;background-color:#fc0}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:hover{background-color:rgba(255,255,255,.2)}:is(.bg-dark,.bg-primary,.bg-black,.bg-danger,.bg-nightblue,.bg-nightblue-bright,.bg-petrol,.bg-coral,.bg-olive,.bg-purple,.bg-purple-bright,.bg-aubergine,.bg-aubergine-bright,.bg-success-green,.bg-error-red) .tab-title[role=tab]:focus-visible{background-color:rgba(255,255,255,.2)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tab-title[role=tab]{opacity:1;border-left-color:Canvas;border-right-color:Canvas;color:LinkText}.tab-title[role=tab]:hover,.tab-title[role=tab]:focus,.tab-title[role=tab]:focus-within,.tab-title[role=tab]:focus-visible{outline:2px solid Highlight;outline-offset:-0.25rem}.tab-title[role=tab].active{border-left-color:ButtonText;border-right-color:ButtonText;color:Highlight}.tab-title[role=tab].active::before{background-color:Highlight}}.bg-yellow .tab-title{background-color:#fc0}.bg-yellow .tab-title.active{background-color:#fc0}.bg-yellow .nav-item{background-color:#fc0}.bg-light .tab-title{background-color:#faf9f8}.bg-light .tab-title.active{background-color:#faf9f8}.bg-light .nav-item{background-color:#faf9f8}.bg-gray .tab-title{background-color:#f4f3f1}.bg-gray .tab-title.active{background-color:#f4f3f1}.bg-gray .nav-item{background-color:#f4f3f1}.bg-dark .tab-title{background-color:#333}.bg-dark .tab-title.active{background-color:#333}.bg-dark .nav-item{background-color:#333}.bg-primary .tab-title{background-color:#333}.bg-primary .tab-title.active{background-color:#333}.bg-primary .nav-item{background-color:#333}.bg-white .tab-title{background-color:#fff}.bg-white .tab-title.active{background-color:#fff}.bg-white .nav-item{background-color:#fff}.bg-black .tab-title{background-color:#000}.bg-black .tab-title.active{background-color:#000}.bg-black .nav-item{background-color:#000}.bg-info .tab-title{background-color:#cce4ee}.bg-info .tab-title.active{background-color:#cce4ee}.bg-info .nav-item{background-color:#cce4ee}.bg-success .tab-title{background-color:#2c911c}.bg-success .tab-title.active{background-color:#2c911c}.bg-success .nav-item{background-color:#2c911c}.bg-warning .tab-title{background-color:#f49e00}.bg-warning .tab-title.active{background-color:#f49e00}.bg-warning .nav-item{background-color:#f49e00}.bg-danger .tab-title{background-color:#a51728}.bg-danger .tab-title.active{background-color:#a51728}.bg-danger .nav-item{background-color:#a51728}.bg-nightblue .tab-title{background-color:#004976}.bg-nightblue .tab-title.active{background-color:#004976}.bg-nightblue .nav-item{background-color:#004976}.bg-nightblue-bright .tab-title{background-color:#0076a8}.bg-nightblue-bright .tab-title.active{background-color:#0076a8}.bg-nightblue-bright .nav-item{background-color:#0076a8}.bg-petrol .tab-title{background-color:#006d68}.bg-petrol .tab-title.active{background-color:#006d68}.bg-petrol .nav-item{background-color:#006d68}.bg-petrol-bright .tab-title{background-color:#00968f}.bg-petrol-bright .tab-title.active{background-color:#00968f}.bg-petrol-bright .nav-item{background-color:#00968f}.bg-coral .tab-title{background-color:#9e2a2f}.bg-coral .tab-title.active{background-color:#9e2a2f}.bg-coral .nav-item{background-color:#9e2a2f}.bg-coral-bright .tab-title{background-color:#e03c31}.bg-coral-bright .tab-title.active{background-color:#e03c31}.bg-coral-bright .nav-item{background-color:#e03c31}.bg-olive .tab-title{background-color:#716135}.bg-olive .tab-title.active{background-color:#716135}.bg-olive .nav-item{background-color:#716135}.bg-olive-bright .tab-title{background-color:#aa9d2e}.bg-olive-bright .tab-title.active{background-color:#aa9d2e}.bg-olive-bright .nav-item{background-color:#aa9d2e}.bg-purple .tab-title{background-color:#80276c}.bg-purple .tab-title.active{background-color:#80276c}.bg-purple .nav-item{background-color:#80276c}.bg-purple-bright .tab-title{background-color:#c5299b}.bg-purple-bright .tab-title.active{background-color:#c5299b}.bg-purple-bright .nav-item{background-color:#c5299b}.bg-aubergine .tab-title{background-color:#523178}.bg-aubergine .tab-title.active{background-color:#523178}.bg-aubergine .nav-item{background-color:#523178}.bg-aubergine-bright .tab-title{background-color:#7566a0}.bg-aubergine-bright .tab-title.active{background-color:#7566a0}.bg-aubergine-bright .nav-item{background-color:#7566a0}.bg-success-green .tab-title{background-color:#2c871d}.bg-success-green .tab-title.active{background-color:#2c871d}.bg-success-green .nav-item{background-color:#2c871d}.bg-error-red .tab-title{background-color:#a51728}.bg-error-red .tab-title.active{background-color:#a51728}.bg-error-red .nav-item{background-color:#a51728}.bg-warning-orange .tab-title{background-color:#f49e00}.bg-warning-orange .tab-title.active{background-color:#f49e00}.bg-warning-orange .nav-item{background-color:#f49e00}.bg-success-background .tab-title{background-color:#c0debb}.bg-success-background .tab-title.active{background-color:#c0debb}.bg-success-background .nav-item{background-color:#c0debb}.bg-error-background .tab-title{background-color:#ffdade}.bg-error-background .tab-title.active{background-color:#ffdade}.bg-error-background .nav-item{background-color:#ffdade}.bg-warning-background .tab-title{background-color:#fce2b2}.bg-warning-background .tab-title.active{background-color:#fce2b2}.bg-warning-background .nav-item{background-color:#fce2b2}[class*=bg-] .tab-title.active:focus::after{background-color:rgba(255,255,255,.2)}@supports selector(*:focus-visible){[class*=bg-] .tab-title.active:focus::after{background-color:unset}[class*=bg-] .tab-title.active:focus-visible::after{background-color:rgba(255,255,255,.2)}}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}.tab-title{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;-webkit-appearance:button;appearance:button}";
|
|
6
6
|
const PostTabHeaderStyle0 = postTabHeaderCss;
|
|
7
7
|
|
|
8
8
|
const PostTabHeader = /*@__PURE__*/ proxyCustomElement(class PostTabHeader extends HTMLElement {
|
|
@@ -20,7 +20,7 @@ const PostTabHeader = /*@__PURE__*/ proxyCustomElement(class PostTabHeader exten
|
|
|
20
20
|
this.tabId = `tab-${this.host.id || crypto.randomUUID()}`;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '999ab8056178562bbcf615b03787451a946f8929', "data-version": version }, h("button", { key: '9795891344158c294f6d77a2245200108f1fe737', "aria-selected": "false", class: "tab-title", id: this.tabId, role: "tab", tabindex: "-1", type: "button" }, h("slot", { key: 'd62f2894e9bf89c00a9d5673cd47507ef7b26359' }))));
|
|
24
24
|
}
|
|
25
25
|
get host() { return this; }
|
|
26
26
|
static get watchers() { return {
|
|
@@ -17,7 +17,7 @@ const PostTabPanel = /*@__PURE__*/ proxyCustomElement(class PostTabPanel extends
|
|
|
17
17
|
this.panelId = `panel-${this.host.id || crypto.randomUUID()}`;
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: '08148fe9b221905fbeab99bdb14f4d040deda959', "data-version": version }, h("div", { key: '04ad9fba5b296902fc75e0e36f7cefd91d0b6948', class: "tab-pane", id: this.panelId, role: "tabpanel" }, h("slot", { key: '840a5242e071f47b102340738f31b3f8b3c10052' }))));
|
|
21
21
|
}
|
|
22
22
|
get host() { return this; }
|
|
23
23
|
static get style() { return PostTabPanelStyle0; }
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { v as version } from './package.js';
|
|
3
3
|
import { f as fadeOut, a as fadeIn } from './fade.js';
|
|
4
4
|
|
|
5
|
-
const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color
|
|
5
|
+
const postTabsCss = ".tabs-wrapper{position:relative;padding-top:1rem;border:0;background-color:rgba(var(--post-contrast-color-rgb), 0.02)}.tabs-wrapper::after{content:\"\";position:absolute;bottom:0;width:100%;height:1px;background-color:#ccc}.tabs-wrapper .tabs{background-color:rgba(0,0,0,0) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.tabs-wrapper::after{background-color:ButtonBorder}}.tabs{margin:0;padding:0;list-style:none;display:flex;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;white-space:nowrap}.tabs::after{content:\"\";display:block;flex:1 0 auto;width:1rem}.tab-content{padding-top:1rem}.bg-yellow .tabs-wrapper{background-color:#fc0}.bg-light .tabs-wrapper{background-color:#faf9f8}.bg-gray .tabs-wrapper{background-color:#f4f3f1}.bg-dark .tabs-wrapper{background-color:#333}.bg-primary .tabs-wrapper{background-color:#333}.bg-white .tabs-wrapper{background-color:#fff}.bg-black .tabs-wrapper{background-color:#000}.bg-info .tabs-wrapper{background-color:#cce4ee}.bg-success .tabs-wrapper{background-color:#2c911c}.bg-warning .tabs-wrapper{background-color:#f49e00}.bg-danger .tabs-wrapper{background-color:#a51728}.bg-nightblue .tabs-wrapper{background-color:#004976}.bg-nightblue-bright .tabs-wrapper{background-color:#0076a8}.bg-petrol .tabs-wrapper{background-color:#006d68}.bg-petrol-bright .tabs-wrapper{background-color:#00968f}.bg-coral .tabs-wrapper{background-color:#9e2a2f}.bg-coral-bright .tabs-wrapper{background-color:#e03c31}.bg-olive .tabs-wrapper{background-color:#716135}.bg-olive-bright .tabs-wrapper{background-color:#aa9d2e}.bg-purple .tabs-wrapper{background-color:#80276c}.bg-purple-bright .tabs-wrapper{background-color:#c5299b}.bg-aubergine .tabs-wrapper{background-color:#523178}.bg-aubergine-bright .tabs-wrapper{background-color:#7566a0}.bg-success-green .tabs-wrapper{background-color:#2c871d}.bg-error-red .tabs-wrapper{background-color:#a51728}.bg-warning-orange .tabs-wrapper{background-color:#f49e00}.bg-success-background .tabs-wrapper{background-color:#c0debb}.bg-error-background .tabs-wrapper{background-color:#ffdade}.bg-warning-background .tabs-wrapper{background-color:#fce2b2}:host{display:block}";
|
|
6
6
|
const PostTabsStyle0 = postTabsCss;
|
|
7
7
|
|
|
8
8
|
const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLElement {
|
|
@@ -143,7 +143,7 @@ const PostTabs = /*@__PURE__*/ proxyCustomElement(class PostTabs extends HTMLEle
|
|
|
143
143
|
nextTabTitle.focus();
|
|
144
144
|
}
|
|
145
145
|
render() {
|
|
146
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: '474b7d00c23aec2a44a202c09b8a75a9dc12b4a8', "data-version": version }, h("div", { key: '2fe1b6cad96fd868cbaa7e775d185537a37228fd', class: "tabs-wrapper" }, h("div", { key: 'ef70af3ddd337cefb719d183d603eb93fb033e25', class: "tabs", role: "tablist" }, h("slot", { key: '360909ea07bbbca523cb21b71daa8b4b02f60bed', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: 'ba44b0e8484e63d9b48f66933f37d854eb648854', class: "tab-content" }, h("slot", { key: 'cd22488448be508393fcb9f9428d3f712c9b659b', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
147
147
|
}
|
|
148
148
|
get host() { return this; }
|
|
149
149
|
static get style() { return PostTabsStyle0; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement as HTMLElement$1, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { v as version$1 } from './package.js';
|
|
3
|
+
import { g as getAttributeObserver } from './attribute-observer.js';
|
|
3
4
|
import { d as defineCustomElement$1 } from './post-popovercontainer2.js';
|
|
4
5
|
|
|
5
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -4781,6 +4782,7 @@ const PostTooltipStyle0 = postTooltipCss;
|
|
|
4781
4782
|
*/
|
|
4782
4783
|
let tooltipInstances = 0;
|
|
4783
4784
|
let hideTooltipTimeout = null;
|
|
4785
|
+
const tooltipTargetAttribute = 'data-tooltip-target';
|
|
4784
4786
|
/**
|
|
4785
4787
|
* Global event listener to show tooltips. This is globalized so that triggers that are rendered
|
|
4786
4788
|
* async will still work without the need to set listeners on the element itself
|
|
@@ -4789,9 +4791,9 @@ let hideTooltipTimeout = null;
|
|
|
4789
4791
|
*/
|
|
4790
4792
|
const globalInterestHandler = (e) => {
|
|
4791
4793
|
const target = e.target;
|
|
4792
|
-
if (!
|
|
4794
|
+
if (!target || !('getAttribute' in target))
|
|
4793
4795
|
return;
|
|
4794
|
-
const tooltipTarget = target.getAttribute(
|
|
4796
|
+
const tooltipTarget = target.getAttribute(tooltipTargetAttribute);
|
|
4795
4797
|
if (!tooltipTarget || tooltipTarget === '')
|
|
4796
4798
|
return;
|
|
4797
4799
|
const tooltip = document.getElementById(tooltipTarget);
|
|
@@ -4809,7 +4811,7 @@ const globalInterestHandler = (e) => {
|
|
|
4809
4811
|
*/
|
|
4810
4812
|
const globalInterestLostHandler = (e) => {
|
|
4811
4813
|
const target = e.target;
|
|
4812
|
-
const tooltipTarget = target.getAttribute(
|
|
4814
|
+
const tooltipTarget = target.getAttribute(tooltipTargetAttribute);
|
|
4813
4815
|
if (!tooltipTarget || tooltipTarget === '')
|
|
4814
4816
|
return;
|
|
4815
4817
|
const tooltip = document.getElementById(tooltipTarget);
|
|
@@ -4832,7 +4834,7 @@ const globalHideTooltip = (tooltip) => {
|
|
|
4832
4834
|
*/
|
|
4833
4835
|
const patchAccessibilityFeatures = (trigger) => {
|
|
4834
4836
|
const describedBy = trigger.getAttribute('aria-describedby');
|
|
4835
|
-
const id = trigger.getAttribute(
|
|
4837
|
+
const id = trigger.getAttribute(tooltipTargetAttribute);
|
|
4836
4838
|
// Add tooltip to aria-describedby
|
|
4837
4839
|
if (!(describedBy === null || describedBy === void 0 ? void 0 : describedBy.includes(id))) {
|
|
4838
4840
|
const newDescribedBy = describedBy ? `${describedBy} ${id}` : id;
|
|
@@ -4843,27 +4845,8 @@ const patchAccessibilityFeatures = (trigger) => {
|
|
|
4843
4845
|
trigger.setAttribute('tabindex', '0');
|
|
4844
4846
|
}
|
|
4845
4847
|
};
|
|
4846
|
-
/**
|
|
4847
|
-
* Handle attribute changes and childList changes from the observer
|
|
4848
|
-
* @param {MutationRecord[]} mutationList
|
|
4849
|
-
*/
|
|
4850
|
-
const triggerObserverHandler = mutationList => {
|
|
4851
|
-
mutationList.forEach(mutation => {
|
|
4852
|
-
if (mutation.type === 'attributes' && mutation.attributeName === 'data-tooltip-target') {
|
|
4853
|
-
patchAccessibilityFeatures(mutation.target);
|
|
4854
|
-
}
|
|
4855
|
-
if (mutation.type === 'childList') {
|
|
4856
|
-
mutation.addedNodes.forEach(node => {
|
|
4857
|
-
if (node.nodeType === Node.ELEMENT_NODE &&
|
|
4858
|
-
node.hasAttribute('data-tooltip-target')) {
|
|
4859
|
-
patchAccessibilityFeatures(node);
|
|
4860
|
-
}
|
|
4861
|
-
});
|
|
4862
|
-
}
|
|
4863
|
-
});
|
|
4864
|
-
};
|
|
4865
4848
|
// Initialize a mutation observer for patching accessibility features
|
|
4866
|
-
const triggerObserver =
|
|
4849
|
+
const triggerObserver = getAttributeObserver(tooltipTargetAttribute, patchAccessibilityFeatures);
|
|
4867
4850
|
const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends HTMLElement$1 {
|
|
4868
4851
|
constructor() {
|
|
4869
4852
|
super();
|
|
@@ -4897,7 +4880,7 @@ const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends H
|
|
|
4897
4880
|
triggerObserver.observe(document.body, {
|
|
4898
4881
|
subtree: true,
|
|
4899
4882
|
childList: true,
|
|
4900
|
-
attributeFilter: [
|
|
4883
|
+
attributeFilter: [tooltipTargetAttribute],
|
|
4901
4884
|
});
|
|
4902
4885
|
}
|
|
4903
4886
|
tooltipInstances++;
|
|
@@ -4956,7 +4939,7 @@ const PostTooltip = /*@__PURE__*/ proxyCustomElement(class PostTooltip extends H
|
|
|
4956
4939
|
}
|
|
4957
4940
|
render() {
|
|
4958
4941
|
const popoverClass = `${this.arrow ? ' has-arrow' : ''}`;
|
|
4959
|
-
return (h(Host, { key: '
|
|
4942
|
+
return (h(Host, { key: '63124ebabffbe5fe857bcc61eecf4133f2952e85', "data-version": version$1, role: "tooltip", onPointerOver: this.handleInterest, onPointerOut: this.handleInterestLost, onFocusIn: this.handleInterest, onFocusOut: this.handleInterestLost }, h("post-popovercontainer", { key: '42e1b5e0ab8cbb3a1b805ccf5b40232b071cf5ad', class: popoverClass, arrow: this.arrow, placement: this.placement, ref: (el) => (this.popoverRef = el) }, h("slot", { key: 'bf414a19c044f3c608ab3141bb93736dd7dea723' }))));
|
|
4960
4943
|
}
|
|
4961
4944
|
get host() { return this; }
|
|
4962
4945
|
static get style() { return PostTooltipStyle0; }
|
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2024-
|
|
2
|
+
"timestamp": "2024-03-05T15:08:17",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.12.0",
|
|
@@ -838,12 +838,16 @@
|
|
|
838
838
|
"slots": [],
|
|
839
839
|
"parts": [],
|
|
840
840
|
"dependents": [
|
|
841
|
-
"post-alert"
|
|
841
|
+
"post-alert",
|
|
842
|
+
"post-rating"
|
|
842
843
|
],
|
|
843
844
|
"dependencies": [],
|
|
844
845
|
"dependencyGraph": {
|
|
845
846
|
"post-alert": [
|
|
846
847
|
"post-icon"
|
|
848
|
+
],
|
|
849
|
+
"post-rating": [
|
|
850
|
+
"post-icon"
|
|
847
851
|
]
|
|
848
852
|
}
|
|
849
853
|
},
|
|
@@ -853,12 +857,7 @@
|
|
|
853
857
|
"tag": "post-popover",
|
|
854
858
|
"readme": "# post-popup\n\n\n",
|
|
855
859
|
"docs": "",
|
|
856
|
-
"docsTags": [
|
|
857
|
-
{
|
|
858
|
-
"name": "slot",
|
|
859
|
-
"text": "default - Slot for placing content inside the popover."
|
|
860
|
-
}
|
|
861
|
-
],
|
|
860
|
+
"docsTags": [],
|
|
862
861
|
"usage": {},
|
|
863
862
|
"props": [
|
|
864
863
|
{
|
|
@@ -1105,12 +1104,7 @@
|
|
|
1105
1104
|
"events": [],
|
|
1106
1105
|
"listeners": [],
|
|
1107
1106
|
"styles": [],
|
|
1108
|
-
"slots": [
|
|
1109
|
-
{
|
|
1110
|
-
"name": "default",
|
|
1111
|
-
"docs": "Slot for placing content inside the popover."
|
|
1112
|
-
}
|
|
1113
|
-
],
|
|
1107
|
+
"slots": [],
|
|
1114
1108
|
"parts": [],
|
|
1115
1109
|
"dependents": [],
|
|
1116
1110
|
"dependencies": [
|
|
@@ -1400,6 +1394,149 @@
|
|
|
1400
1394
|
]
|
|
1401
1395
|
}
|
|
1402
1396
|
},
|
|
1397
|
+
{
|
|
1398
|
+
"filePath": "src/components/post-rating/post-rating.tsx",
|
|
1399
|
+
"encapsulation": "shadow",
|
|
1400
|
+
"tag": "post-rating",
|
|
1401
|
+
"readme": "# post-rating\n\n\n",
|
|
1402
|
+
"docs": "",
|
|
1403
|
+
"docsTags": [],
|
|
1404
|
+
"usage": {},
|
|
1405
|
+
"props": [
|
|
1406
|
+
{
|
|
1407
|
+
"name": "currentRating",
|
|
1408
|
+
"type": "number",
|
|
1409
|
+
"complexType": {
|
|
1410
|
+
"original": "number",
|
|
1411
|
+
"resolved": "number",
|
|
1412
|
+
"references": {}
|
|
1413
|
+
},
|
|
1414
|
+
"mutable": true,
|
|
1415
|
+
"attr": "current-rating",
|
|
1416
|
+
"reflectToAttr": false,
|
|
1417
|
+
"docs": "Defines the rating that the component should show.",
|
|
1418
|
+
"docsTags": [],
|
|
1419
|
+
"default": "0",
|
|
1420
|
+
"values": [
|
|
1421
|
+
{
|
|
1422
|
+
"type": "number"
|
|
1423
|
+
}
|
|
1424
|
+
],
|
|
1425
|
+
"optional": false,
|
|
1426
|
+
"required": false
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"name": "label",
|
|
1430
|
+
"type": "string",
|
|
1431
|
+
"complexType": {
|
|
1432
|
+
"original": "string",
|
|
1433
|
+
"resolved": "string",
|
|
1434
|
+
"references": {}
|
|
1435
|
+
},
|
|
1436
|
+
"mutable": false,
|
|
1437
|
+
"attr": "label",
|
|
1438
|
+
"reflectToAttr": false,
|
|
1439
|
+
"docs": "Defines a hidden label for the component.",
|
|
1440
|
+
"docsTags": [],
|
|
1441
|
+
"default": "'Rating'",
|
|
1442
|
+
"values": [
|
|
1443
|
+
{
|
|
1444
|
+
"type": "string"
|
|
1445
|
+
}
|
|
1446
|
+
],
|
|
1447
|
+
"optional": false,
|
|
1448
|
+
"required": false
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"name": "readonly",
|
|
1452
|
+
"type": "boolean",
|
|
1453
|
+
"complexType": {
|
|
1454
|
+
"original": "boolean",
|
|
1455
|
+
"resolved": "boolean",
|
|
1456
|
+
"references": {}
|
|
1457
|
+
},
|
|
1458
|
+
"mutable": false,
|
|
1459
|
+
"attr": "readonly",
|
|
1460
|
+
"reflectToAttr": false,
|
|
1461
|
+
"docs": "Defines if the component is readonly or not.\nThis usually should be used together with the `currentRating` property.",
|
|
1462
|
+
"docsTags": [],
|
|
1463
|
+
"default": "false",
|
|
1464
|
+
"values": [
|
|
1465
|
+
{
|
|
1466
|
+
"type": "boolean"
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
"optional": false,
|
|
1470
|
+
"required": false
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "stars",
|
|
1474
|
+
"type": "number",
|
|
1475
|
+
"complexType": {
|
|
1476
|
+
"original": "number",
|
|
1477
|
+
"resolved": "number",
|
|
1478
|
+
"references": {}
|
|
1479
|
+
},
|
|
1480
|
+
"mutable": false,
|
|
1481
|
+
"attr": "stars",
|
|
1482
|
+
"reflectToAttr": false,
|
|
1483
|
+
"docs": "Defines the total amount of stars rendered in the component.",
|
|
1484
|
+
"docsTags": [],
|
|
1485
|
+
"default": "5",
|
|
1486
|
+
"values": [
|
|
1487
|
+
{
|
|
1488
|
+
"type": "number"
|
|
1489
|
+
}
|
|
1490
|
+
],
|
|
1491
|
+
"optional": false,
|
|
1492
|
+
"required": false
|
|
1493
|
+
}
|
|
1494
|
+
],
|
|
1495
|
+
"methods": [],
|
|
1496
|
+
"events": [
|
|
1497
|
+
{
|
|
1498
|
+
"event": "change",
|
|
1499
|
+
"detail": "{ value: number; }",
|
|
1500
|
+
"bubbles": true,
|
|
1501
|
+
"complexType": {
|
|
1502
|
+
"original": "{ value: number }",
|
|
1503
|
+
"resolved": "{ value: number; }",
|
|
1504
|
+
"references": {}
|
|
1505
|
+
},
|
|
1506
|
+
"cancelable": true,
|
|
1507
|
+
"composed": true,
|
|
1508
|
+
"docs": "An event emitted whenever the component's value has changed (on blur).\nThe event payload can be used like so: `event.detail.value`.",
|
|
1509
|
+
"docsTags": []
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"event": "input",
|
|
1513
|
+
"detail": "{ value: number; }",
|
|
1514
|
+
"bubbles": true,
|
|
1515
|
+
"complexType": {
|
|
1516
|
+
"original": "{ value: number }",
|
|
1517
|
+
"resolved": "{ value: number; }",
|
|
1518
|
+
"references": {}
|
|
1519
|
+
},
|
|
1520
|
+
"cancelable": true,
|
|
1521
|
+
"composed": true,
|
|
1522
|
+
"docs": "An event emitted whenever the component's value has changed (on input).\nThe event payload can be used like so: `event.detail.value`.",
|
|
1523
|
+
"docsTags": []
|
|
1524
|
+
}
|
|
1525
|
+
],
|
|
1526
|
+
"listeners": [],
|
|
1527
|
+
"styles": [],
|
|
1528
|
+
"slots": [],
|
|
1529
|
+
"parts": [],
|
|
1530
|
+
"dependents": [],
|
|
1531
|
+
"dependencies": [
|
|
1532
|
+
"post-icon"
|
|
1533
|
+
],
|
|
1534
|
+
"dependencyGraph": {
|
|
1535
|
+
"post-rating": [
|
|
1536
|
+
"post-icon"
|
|
1537
|
+
]
|
|
1538
|
+
}
|
|
1539
|
+
},
|
|
1403
1540
|
{
|
|
1404
1541
|
"filePath": "src/components/post-tab-header/post-tab-header.tsx",
|
|
1405
1542
|
"encapsulation": "shadow",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const getAttributeObserver = (attribute, handler) => {
|
|
2
|
+
/**
|
|
3
|
+
* Handle attribute changes and childList changes from the observer
|
|
4
|
+
* @param {MutationRecord[]} mutationList
|
|
5
|
+
*/
|
|
6
|
+
const observerHandler = (mutationList) => {
|
|
7
|
+
mutationList.forEach(mutation => {
|
|
8
|
+
if (mutation.type === 'attributes' && mutation.attributeName === attribute) {
|
|
9
|
+
handler(mutation.target);
|
|
10
|
+
}
|
|
11
|
+
if (mutation.type === 'childList') {
|
|
12
|
+
mutation.addedNodes.forEach(node => {
|
|
13
|
+
if (node.nodeType === Node.ELEMENT_NODE &&
|
|
14
|
+
node.hasAttribute(attribute)) {
|
|
15
|
+
handler(node);
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
// Initialize a mutation observer for patching accessibility features
|
|
22
|
+
return new MutationObserver(observerHandler);
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export { getAttributeObserver as g };
|
|
@@ -1896,6 +1896,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
1896
1896
|
return import(
|
|
1897
1897
|
/* webpackMode: "lazy" */
|
|
1898
1898
|
'./post-popover.entry.js').then(processMod, consoleError);
|
|
1899
|
+
case 'post-rating':
|
|
1900
|
+
return import(
|
|
1901
|
+
/* webpackMode: "lazy" */
|
|
1902
|
+
'./post-rating.entry.js').then(processMod, consoleError);
|
|
1899
1903
|
case 'post-tab-header':
|
|
1900
1904
|
return import(
|
|
1901
1905
|
/* webpackMode: "lazy" */
|
package/dist/esm/index.js
CHANGED
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
export { P as PostAccordion } from './post-accordion-
|
|
2
|
-
export { P as PostAccordionItem } from './post-accordion-item-
|
|
3
|
-
export { P as PostAlert } from './post-alert-
|
|
4
|
-
export { P as PostCollapsible } from './post-collapsible-
|
|
5
|
-
export { P as PostIcon } from './post-icon-
|
|
6
|
-
export { P as PostPopover } from './post-popover-
|
|
7
|
-
export { P as PostPopovercontainer } from './post-popovercontainer-
|
|
8
|
-
export { P as
|
|
9
|
-
export { P as
|
|
10
|
-
export { P as
|
|
11
|
-
export { P as
|
|
1
|
+
export { P as PostAccordion } from './post-accordion-33fe4f0e.js';
|
|
2
|
+
export { P as PostAccordionItem } from './post-accordion-item-1fd95c9f.js';
|
|
3
|
+
export { P as PostAlert } from './post-alert-65d67f69.js';
|
|
4
|
+
export { P as PostCollapsible } from './post-collapsible-50dc361b.js';
|
|
5
|
+
export { P as PostIcon } from './post-icon-00f314ae.js';
|
|
6
|
+
export { P as PostPopover } from './post-popover-40bfd1b7.js';
|
|
7
|
+
export { P as PostPopovercontainer } from './post-popovercontainer-62e1fd82.js';
|
|
8
|
+
export { P as PostRating } from './post-rating-f7a79ed4.js';
|
|
9
|
+
export { P as PostTabs } from './post-tabs-c4e65a45.js';
|
|
10
|
+
export { P as PostTabHeader } from './post-tab-header-0683252a.js';
|
|
11
|
+
export { P as PostTabPanel } from './post-tab-panel-37a1331f.js';
|
|
12
|
+
export { P as PostTooltip } from './post-tooltip-033f63fa.js';
|
|
12
13
|
import './index-1708db56.js';
|
|
13
|
-
import './package-
|
|
14
|
+
import './package-50a9c0c3.js';
|
|
14
15
|
import './index-b444db27.js';
|
|
15
16
|
import './constants-8d548297.js';
|
|
16
17
|
import './fade-7fd71785.js';
|
|
17
18
|
import './check-non-empty-58bd6b17.js';
|
|
19
|
+
import './attribute-observer-37fa950a.js';
|
package/dist/esm/loader.js
CHANGED
|
@@ -3,7 +3,7 @@ export { s as setNonce } from './index-1708db56.js';
|
|
|
3
3
|
|
|
4
4
|
const defineCustomElements = (win, options) => {
|
|
5
5
|
if (typeof window === 'undefined') return undefined;
|
|
6
|
-
return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"collapseChange","onCollapseChange"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"collapseChange","collapseChangeHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]]], options);
|
|
6
|
+
return bootstrapLazy([["post-accordion-item",[[1,"post-accordion-item",{"collapsed":[4],"headingLevel":[2,"heading-level"],"id":[32],"isOpen":[32],"toggle":[64]},[[0,"collapseChange","onCollapseChange"]],{"headingLevel":["validateHeadingLevel"]}]]],["post-alert",[[1,"post-alert",{"dismissible":[4],"dismissLabel":[1,"dismiss-label"],"fixed":[4],"icon":[1],"type":[1],"alertId":[32],"classes":[32],"hasActions":[32],"hasHeading":[32],"onDismissButtonClick":[32],"dismiss":[64]},null,{"dismissible":["validateDismissible"],"dismissLabel":["validateDismissLabel"],"fixed":["validateFixed"],"icon":["validateIcon"],"type":["validateType"]}]]],["post-popover",[[1,"post-popover",{"placement":[1],"closeButtonCaption":[1,"close-button-caption"],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-rating",[[1,"post-rating",{"label":[1],"stars":[2],"currentRating":[1026,"current-rating"],"readonly":[4],"hoveredIndex":[32]}]]],["post-tooltip",[[1,"post-tooltip",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]],["post-accordion",[[1,"post-accordion",{"multiple":[4],"toggle":[64],"expandAll":[64],"collapseAll":[64]},[[0,"collapseChange","collapseChangeHandler"]]]]],["post-tab-header",[[1,"post-tab-header",{"panel":[1],"tabId":[32]},null,{"panel":["validateFor"]}]]],["post-tab-panel",[[1,"post-tab-panel",{"name":[1],"panelId":[32]}]]],["post-tabs",[[1,"post-tabs",{"activePanel":[1,"active-panel"],"show":[64]}]]],["post-collapsible",[[1,"post-collapsible",{"collapsed":[4],"id":[32],"isOpen":[32],"toggle":[64]},null,{"collapsed":["validateCollapsed"]}]]],["post-icon",[[1,"post-icon",{"animation":[1],"base":[1],"flipH":[4,"flip-h"],"flipV":[4,"flip-v"],"name":[1],"rotate":[2],"scale":[2],"svgStyles":[32],"svgOutput":[32]},null,{"animation":["validateAnimation"],"base":["validateBase"],"flipH":["validateFlipH"],"flipV":["validateFlipV"],"name":["validateName"],"rotate":["validateRotate"],"scale":["validateScale"]}]]],["post-popovercontainer",[[1,"post-popovercontainer",{"placement":[1],"arrow":[4],"show":[64],"hide":[64],"toggle":[64]}]]]], options);
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export { defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-50a9c0c3.js';
|
|
3
3
|
|
|
4
4
|
const postAccordionCss = ":host{display:block}";
|
|
5
5
|
const PostAccordionStyle0 = postAccordionCss;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-1708db56.js';
|
|
2
|
-
import { v as version } from './package-
|
|
2
|
+
import { v as version } from './package-50a9c0c3.js';
|
|
3
3
|
import { c as checkEmptyOrOneOf } from './index-b444db27.js';
|
|
4
4
|
|
|
5
5
|
const HEADING_LEVELS = [1, 2, 3, 4, 5, 6];
|
|
@@ -37,7 +37,7 @@ const PostAccordionItem = class {
|
|
|
37
37
|
render() {
|
|
38
38
|
var _a;
|
|
39
39
|
const HeadingTag = `h${(_a = this.headingLevel) !== null && _a !== void 0 ? _a : 2}`;
|
|
40
|
-
return (h(Host, { key: '795ccef5a57e07755df60f651712dff5eb3fcfaf', id: this.id, "data-version": version }, h("div", { key: '529feda41150180001d5535d0d79007e312b0d39', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '4ddcc8f6ab703625ab072541b65ed0dcb7392129', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '09dcd22dc3382fe442018649b392ba95ed3918f9', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '8e4026adc26445aa84cce3587bf4cc82b816641a', name: "header" }))), h("post-collapsible", { key: '
|
|
40
|
+
return (h(Host, { key: '795ccef5a57e07755df60f651712dff5eb3fcfaf', id: this.id, "data-version": version }, h("div", { key: '529feda41150180001d5535d0d79007e312b0d39', part: "accordion-item", class: "accordion-item" }, h(HeadingTag, { key: '4ddcc8f6ab703625ab072541b65ed0dcb7392129', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '09dcd22dc3382fe442018649b392ba95ed3918f9', "aria-controls": `${this.id}--collapse`, "aria-expanded": `${this.isOpen}`, class: `accordion-button${this.isOpen ? '' : ' collapsed'}`, onClick: () => this.toggle(), type: "button" }, h("slot", { key: '8e4026adc26445aa84cce3587bf4cc82b816641a', name: "header" }))), h("post-collapsible", { key: 'c7a4078dd9b2f38651370bfa215361bdc3aaaf5c', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '9841b925e1d9d1dc394762b51bd2da35a4ec02c6', class: "accordion-body" }, h("slot", { key: '6474e69b6e8d26b7d22c3ab86c0a472fddaffdb1' }))))));
|
|
41
41
|
}
|
|
42
42
|
get host() { return getElement(this); }
|
|
43
43
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { P as post_accordion_item } from './post-accordion-item-
|
|
1
|
+
export { P as post_accordion_item } from './post-accordion-item-1fd95c9f.js';
|
|
2
2
|
import './index-1708db56.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-50a9c0c3.js';
|
|
4
4
|
import './index-b444db27.js';
|
|
5
5
|
import './constants-8d548297.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { P as post_accordion } from './post-accordion-
|
|
1
|
+
export { P as post_accordion } from './post-accordion-33fe4f0e.js';
|
|
2
2
|
import './index-1708db56.js';
|
|
3
|
-
import './package-
|
|
3
|
+
import './package-50a9c0c3.js';
|