@swisspost/design-system-components 9.0.0-next.5 → 9.0.0-next.6
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/get-root-7a3498ef.js +11 -0
- package/dist/cjs/index-e1f32cce.js +4 -4
- package/dist/cjs/index.cjs.js +22 -21
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-53892d3d.js → package-81d89808.js} +1 -1
- package/dist/cjs/{post-accordion-7f627ffd.js → post-accordion-7d2805f4.js} +1 -1
- package/dist/cjs/{post-accordion-item-ceb5399f.js → post-accordion-item-0d8b65b1.js} +1 -1
- 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-avatar-a8123d38.js → post-avatar-0b87e44f.js} +1 -1
- package/dist/cjs/post-avatar.cjs.entry.js +2 -2
- package/dist/cjs/post-banner-e42f02bd.js +90 -0
- package/dist/cjs/{post-alert.cjs.entry.js → post-banner.cjs.entry.js} +3 -3
- package/dist/cjs/{post-breadcrumb-item-6e4704e5.js → post-breadcrumb-item-46a8e876.js} +1 -1
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/post-card-control-7d3c5545.js +272 -0
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/post-closebutton_10.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-e4862a5b.js → post-collapsible-trigger-ae50d0d4.js} +3 -10
- package/dist/cjs/post-collapsible_2.cjs.entry.js +3 -2
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-language-option-62414842.js → post-language-option-c6049337.js} +1 -1
- package/dist/cjs/post-language-option.cjs.entry.js +2 -2
- package/dist/cjs/{post-megadropdown-trigger-da912fed.js → post-megadropdown-trigger-97472602.js} +3 -3
- package/dist/cjs/{post-menu-54fa65d3.js → post-menu-61c31423.js} +1 -1
- package/dist/cjs/{post-menu-item-8c3090b1.js → post-menu-item-4f393cde.js} +1 -1
- package/dist/cjs/post-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/{post-menu-trigger-71449876.js → post-menu-trigger-44a5f8e9.js} +5 -3
- package/dist/cjs/post-menu-trigger.cjs.entry.js +3 -2
- package/dist/cjs/post-menu.cjs.entry.js +2 -2
- package/dist/cjs/{post-popover-5f639e4f.js → post-popover-44fdb733.js} +2 -2
- package/dist/cjs/post-popover.cjs.entry.js +2 -2
- package/dist/cjs/{post-rating-3d166fed.js → post-rating-4d5e7c8e.js} +1 -1
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-header-3fcb40fa.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-e5685f3d.js → post-tab-panel-b1a41181.js} +1 -1
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-e871c911.js → post-tabs-092790e4.js} +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-62f31d0e.js → post-tag-389a43f7.js} +2 -2
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/{post-tooltip-851c342c.js → post-tooltip-c42d6853.js} +1 -1
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/post-avatar/post-avatar.js +1 -1
- package/dist/collection/components/post-banner/banner-types.js +1 -0
- package/dist/collection/components/post-banner/post-banner.css +3 -0
- package/dist/collection/components/{post-alert/post-alert.js → post-banner/post-banner.js} +39 -68
- package/dist/collection/components/post-card-control/post-card-control.css +1 -1
- package/dist/collection/components/post-card-control/post-card-control.js +8 -8
- package/dist/collection/components/post-list/post-list.js +2 -2
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +4 -3
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tag/post-tag.js +2 -2
- package/dist/collection/index.js +1 -1
- package/dist/components/get-root.js +9 -0
- package/dist/components/index.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/{post-alert.d.ts → post-banner.d.ts} +4 -4
- package/dist/components/post-banner.js +6 -0
- package/dist/components/post-banner2.js +125 -0
- package/dist/components/post-card-control2.js +3 -3
- package/dist/components/post-collapsible-trigger2.js +1 -8
- package/dist/components/post-list2.js +2 -2
- package/dist/components/post-menu-trigger2.js +4 -2
- package/dist/components/post-popover2.js +1 -1
- package/dist/components/post-tab-header2.js +1 -1
- package/dist/components/post-tabs2.js +1 -1
- package/dist/components/post-tag2.js +1 -1
- package/dist/docs.json +149 -175
- package/dist/esm/get-root-7af2e0d1.js +9 -0
- package/dist/esm/index-e1b64755.js +4 -4
- package/dist/esm/index.js +21 -20
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-c65b0409.js +3 -0
- package/dist/esm/{post-accordion-b2762084.js → post-accordion-c833c272.js} +1 -1
- package/dist/esm/{post-accordion-item-82ef1c4a.js → post-accordion-item-19fb4776.js} +1 -1
- package/dist/esm/post-accordion-item.entry.js +2 -2
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/{post-avatar-e84c49cb.js → post-avatar-f43ebc89.js} +1 -1
- package/dist/esm/post-avatar.entry.js +2 -2
- package/dist/esm/post-banner-cf6f756b.js +88 -0
- package/dist/esm/{post-alert.entry.js → post-banner.entry.js} +2 -2
- package/dist/esm/{post-breadcrumb-item-ff752018.js → post-breadcrumb-item-a93b91a7.js} +1 -1
- package/dist/esm/post-breadcrumb-item.entry.js +2 -2
- package/dist/esm/post-card-control-017fb9b2.js +270 -0
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/post-closebutton_10.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-34740fa6.js → post-collapsible-trigger-7b3d0fd3.js} +2 -9
- package/dist/esm/post-collapsible_2.entry.js +3 -2
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/{post-language-option-e2a76752.js → post-language-option-05f53f6f.js} +1 -1
- package/dist/esm/post-language-option.entry.js +2 -2
- package/dist/esm/{post-megadropdown-trigger-7e577245.js → post-megadropdown-trigger-3112a42b.js} +3 -3
- package/dist/esm/{post-menu-e6337859.js → post-menu-05396ff7.js} +1 -1
- package/dist/esm/{post-menu-item-c10a0a93.js → post-menu-item-bbbb6a7e.js} +1 -1
- package/dist/esm/post-menu-item.entry.js +2 -2
- package/dist/esm/{post-menu-trigger-5f31ad60.js → post-menu-trigger-f9f4d299.js} +5 -3
- package/dist/esm/post-menu-trigger.entry.js +3 -2
- package/dist/esm/post-menu.entry.js +2 -2
- package/dist/esm/{post-popover-d78547b4.js → post-popover-1ae328eb.js} +2 -2
- package/dist/esm/post-popover.entry.js +2 -2
- package/dist/esm/{post-rating-d04d0349.js → post-rating-75171e3a.js} +1 -1
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-tab-header-d4d40b0e.js +30 -0
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-d9ecc10e.js → post-tab-panel-79b42d3e.js} +1 -1
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-e98a47e8.js → post-tabs-4d880ed8.js} +2 -2
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-40a65871.js → post-tag-bf91d0a7.js} +2 -2
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/{post-tooltip-3b1e121c.js → post-tooltip-7aa14f94.js} +1 -1
- package/dist/esm/post-tooltip.entry.js +2 -2
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-314c1090.js +1 -0
- package/dist/post-components/p-34e5b9da.entry.js +1 -0
- package/dist/post-components/p-3899ed87.js +1 -0
- package/dist/post-components/p-3b3b57d0.entry.js +1 -0
- package/dist/post-components/p-4221fd16.js +1 -0
- package/dist/post-components/{p-1d8a41d3.js → p-470eb29c.js} +1 -1
- package/dist/post-components/{p-af8cfb8e.js → p-476a6342.js} +1 -1
- package/dist/post-components/p-499f3c12.entry.js +1 -0
- package/dist/post-components/{p-879ae242.js → p-4ac02dc1.js} +1 -1
- package/dist/post-components/p-4cb59994.js +1 -0
- package/dist/post-components/{p-e0dc4fac.js → p-4cca12fe.js} +1 -1
- package/dist/post-components/p-56bd7eb7.entry.js +1 -0
- package/dist/post-components/p-61b27b51.entry.js +1 -0
- package/dist/post-components/p-6e37b9bf.entry.js +1 -0
- package/dist/post-components/{p-76dbca34.entry.js → p-7175208c.entry.js} +1 -1
- package/dist/post-components/p-71eb2dc7.js +1 -0
- package/dist/post-components/p-7391daa3.entry.js +1 -0
- package/dist/post-components/{p-6e7bde44.js → p-73a5b344.js} +1 -1
- package/dist/post-components/{p-7a20605b.js → p-7a887455.js} +1 -1
- package/dist/post-components/p-7a995b7e.entry.js +1 -0
- package/dist/post-components/p-888ab913.entry.js +1 -0
- package/dist/post-components/p-8927a8e4.entry.js +1 -0
- package/dist/post-components/p-8fb11b22.entry.js +1 -0
- package/dist/post-components/p-916ec6d5.entry.js +1 -0
- package/dist/post-components/p-98d8ba01.js +1 -0
- package/dist/post-components/{p-2069e764.js → p-9d94bf34.js} +1 -1
- package/dist/post-components/p-a1a1b679.entry.js +1 -0
- package/dist/post-components/p-a87d8337.entry.js +1 -0
- package/dist/post-components/p-ab0556af.entry.js +1 -0
- package/dist/post-components/p-b8d230eb.js +1 -0
- package/dist/post-components/{p-42c628fd.js → p-c6ac2e45.js} +1 -1
- package/dist/post-components/p-c94a2ae1.entry.js +1 -0
- package/dist/post-components/{p-fc2c7222.js → p-cd06fab9.js} +1 -1
- package/dist/post-components/p-cf298c46.js +1 -0
- package/dist/post-components/p-d2938e9a.entry.js +1 -0
- package/dist/post-components/p-d6ac46af.js +1 -0
- package/dist/post-components/{p-75514d7d.js → p-d7c37aca.js} +1 -1
- package/dist/post-components/p-dddc70f6.entry.js +1 -0
- package/dist/post-components/{p-77a757d4.js → p-ed12b51d.js} +1 -1
- package/dist/post-components/p-fc91cbc2.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-avatar/post-avatar.d.ts +1 -1
- package/dist/types/components/post-banner/banner-types.d.ts +2 -0
- package/dist/types/components/post-banner/post-banner.d.ts +49 -0
- package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
- package/dist/types/components/post-list/post-list.d.ts +1 -1
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +1 -0
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components.d.ts +71 -79
- package/dist/types/index.d.ts +1 -1
- package/loaders/get-root.js +9 -0
- package/loaders/index.d.ts +2 -2
- package/loaders/index.js +1 -1
- package/loaders/package.js +1 -1
- package/loaders/{post-alert.d.ts → post-banner.d.ts} +4 -4
- package/loaders/post-banner.js +128 -0
- package/loaders/post-card-control.js +3 -3
- package/loaders/post-collapsible-trigger2.js +1 -8
- package/loaders/post-list.js +2 -2
- package/loaders/post-menu-trigger.js +4 -2
- package/loaders/post-popover.js +1 -1
- package/loaders/post-tab-header.js +1 -1
- package/loaders/post-tabs.js +1 -1
- package/loaders/post-tag.js +1 -1
- package/package.json +4 -4
- package/dist/cjs/post-alert-5333a23c.js +0 -99
- package/dist/cjs/post-card-control-b289ddcf.js +0 -272
- package/dist/cjs/post-tab-header-03b20f24.js +0 -32
- package/dist/collection/components/post-alert/alert-types.js +0 -1
- package/dist/collection/components/post-alert/post-alert.css +0 -7
- package/dist/components/post-alert.js +0 -6
- package/dist/components/post-alert2.js +0 -136
- package/dist/esm/package-d0380f19.js +0 -3
- package/dist/esm/post-alert-0679e14b.js +0 -97
- package/dist/esm/post-card-control-53b9ca94.js +0 -270
- package/dist/esm/post-tab-header-6efc530f.js +0 -30
- package/dist/post-components/p-029c91d8.entry.js +0 -1
- package/dist/post-components/p-03c850fa.entry.js +0 -1
- package/dist/post-components/p-3705d2b4.js +0 -1
- package/dist/post-components/p-3aaea2a7.js +0 -1
- package/dist/post-components/p-3b4342e4.entry.js +0 -1
- package/dist/post-components/p-3b5bd4a4.entry.js +0 -1
- package/dist/post-components/p-3f785d16.entry.js +0 -1
- package/dist/post-components/p-40a57111.entry.js +0 -1
- package/dist/post-components/p-41f5f626.entry.js +0 -1
- package/dist/post-components/p-43451d07.js +0 -1
- package/dist/post-components/p-49a42850.js +0 -1
- package/dist/post-components/p-4f1a40dd.entry.js +0 -1
- package/dist/post-components/p-70c016ab.js +0 -1
- package/dist/post-components/p-77af2367.entry.js +0 -1
- package/dist/post-components/p-976c2742.js +0 -1
- package/dist/post-components/p-9cda2b0d.entry.js +0 -1
- package/dist/post-components/p-9fab4d3c.js +0 -1
- package/dist/post-components/p-a0226aec.js +0 -1
- package/dist/post-components/p-aa890e24.entry.js +0 -1
- package/dist/post-components/p-ac6d9496.js +0 -1
- package/dist/post-components/p-ad6e41d5.entry.js +0 -1
- package/dist/post-components/p-c95813b2.entry.js +0 -1
- package/dist/post-components/p-d3814644.entry.js +0 -1
- package/dist/post-components/p-d5b02b44.entry.js +0 -1
- package/dist/post-components/p-f404d0bb.entry.js +0 -1
- package/dist/post-components/p-f5b933bc.entry.js +0 -1
- package/dist/post-components/p-fbda2556.entry.js +0 -1
- package/dist/types/components/post-alert/alert-types.d.ts +0 -2
- package/dist/types/components/post-alert/post-alert.d.ts +0 -54
- package/loaders/post-alert.js +0 -139
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as r,H as t,g as c}from"./p-3eab790d.js";import{v as a}from"./p-3aaea2a7.js";import{H as i}from"./p-247a1668.js";import{c as e}from"./p-0338f9da.js";const n=class{constructor(r){o(this,r),this.id=void 0,this.collapsed=!1,this.headingLevel=void 0}validateHeadingLevel(o=this.headingLevel){e(o,i,"The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.")}componentDidLoad(){this.validateHeadingLevel()}componentWillLoad(){this.id=this.host.id||`a${crypto.randomUUID()}`}onCollapseToggle(o){o.target===this.host&&"post-accordion-item"===o.target.localName&&(this.collapsed=!o.detail)}async toggle(o){return this.collapsible.toggle(o)}render(){var o;const c=`h${null!==(o=this.headingLevel)&&void 0!==o?o:2}`;return r(t,{key:"3d2740ab4942832231737f1c26c075f37590bf53",id:this.id,"data-version":a},r("div",{key:"cba3f09d50db4ad285cc20a051763e7d843ab36d",part:"accordion-item",class:"accordion-item"},r("post-collapsible-trigger",{key:"87e7da5bfaee393fdf8423e8521448b976125daa",for:`${this.id}--collapse`},r(c,{key:"89d218bd032caddc6b484edab1f8d3d912c73c17",class:"accordion-header",id:`${this.id}--header`},r("button",{key:"2f4597376234c64fec882ecdac76c2e3f541474c",type:"button",class:"accordion-button"+(this.collapsed?" collapsed":"")},r("slot",{key:"573e3a196c71548868698066c1220f56f5c39181",name:"header"})))),r("post-collapsible",{key:"6e07f4dfe240e52aad4d8e7b176ca2ec9476d605",id:`${this.id}--collapse`,collapsed:this.collapsed,ref:o=>this.collapsible=o},r("div",{key:"f7f10770fbd1ae6ac867fb1ff255a303fd42c461",class:"accordion-body"},r("slot",{key:"dc0d49c7484481b57e7665e25761c425db3247b4"})))))}get host(){return c(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};n.style=".accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item){--post-bg-opacity:1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item){--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222}.accordion-item{border-block:2px solid #666;--post-bg-rgb:244, 243, 241}.bg-yellow .accordion-item{--post-bg-rgb:255, 255, 255}.bg-white .accordion-item{--post-bg-rgb:244, 243, 241}.bg-light .accordion-item{--post-bg-rgb:255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb:255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb:255, 255, 255}.bg-black .accordion-item{--post-bg-rgb:255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-secondary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error .accordion-item{--post-bg-rgb:255, 255, 255}.bg-info .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb:255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;outline:none}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:400}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-secondary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}:host(:not(:first-of-type)) .accordion-item{border-block-start:0}";export{n as P}
|
|
1
|
+
import{r as o,h as r,H as t,g as c}from"./p-3eab790d.js";import{v as i}from"./p-d6ac46af.js";import{H as a}from"./p-247a1668.js";import{c as e}from"./p-0338f9da.js";const n=class{constructor(r){o(this,r),this.id=void 0,this.collapsed=!1,this.headingLevel=void 0}validateHeadingLevel(o=this.headingLevel){e(o,a,"The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.")}componentDidLoad(){this.validateHeadingLevel()}componentWillLoad(){this.id=this.host.id||`a${crypto.randomUUID()}`}onCollapseToggle(o){o.target===this.host&&"post-accordion-item"===o.target.localName&&(this.collapsed=!o.detail)}async toggle(o){return this.collapsible.toggle(o)}render(){var o;const c=`h${null!==(o=this.headingLevel)&&void 0!==o?o:2}`;return r(t,{key:"3d2740ab4942832231737f1c26c075f37590bf53",id:this.id,"data-version":i},r("div",{key:"cba3f09d50db4ad285cc20a051763e7d843ab36d",part:"accordion-item",class:"accordion-item"},r("post-collapsible-trigger",{key:"87e7da5bfaee393fdf8423e8521448b976125daa",for:`${this.id}--collapse`},r(c,{key:"89d218bd032caddc6b484edab1f8d3d912c73c17",class:"accordion-header",id:`${this.id}--header`},r("button",{key:"2f4597376234c64fec882ecdac76c2e3f541474c",type:"button",class:"accordion-button"+(this.collapsed?" collapsed":"")},r("slot",{key:"573e3a196c71548868698066c1220f56f5c39181",name:"header"})))),r("post-collapsible",{key:"6e07f4dfe240e52aad4d8e7b176ca2ec9476d605",id:`${this.id}--collapse`,collapsed:this.collapsed,ref:o=>this.collapsible=o},r("div",{key:"f7f10770fbd1ae6ac867fb1ff255a303fd42c461",class:"accordion-body"},r("slot",{key:"dc0d49c7484481b57e7665e25761c425db3247b4"})))))}get host(){return c(this)}static get watchers(){return{headingLevel:["validateHeadingLevel"]}}};n.style=".accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item){--post-bg-opacity:1;background-color:rgba(var(--post-bg-rgb), var(--post-bg-opacity)) !important;color:var(--post-contrast-color) !important}.accordion-item,.bg-yellow .accordion-item,.bg-white .accordion-item,.bg-light .accordion-item,.bg-gray .accordion-item,.bg-dark .accordion-item,.bg-black .accordion-item,.bg-primary .accordion-item,.bg-secondary .accordion-item,.bg-success .accordion-item,.bg-warning .accordion-item,.bg-error .accordion-item,.bg-info .accordion-item,.bg-success-background .accordion-item,.bg-warning-background .accordion-item,.bg-error-background .accordion-item,post-accordion-item::part(accordion-item),.bg-yellow post-accordion-item::part(accordion-item),.bg-white post-accordion-item::part(accordion-item),.bg-light post-accordion-item::part(accordion-item),.bg-gray post-accordion-item::part(accordion-item),.bg-dark post-accordion-item::part(accordion-item),.bg-black post-accordion-item::part(accordion-item),.bg-primary post-accordion-item::part(accordion-item),.bg-secondary post-accordion-item::part(accordion-item),.bg-success post-accordion-item::part(accordion-item),.bg-warning post-accordion-item::part(accordion-item),.bg-error post-accordion-item::part(accordion-item),.bg-info post-accordion-item::part(accordion-item),.bg-success-background post-accordion-item::part(accordion-item),.bg-warning-background post-accordion-item::part(accordion-item),.bg-error-background post-accordion-item::part(accordion-item){--post-contrast-color:#000;--post-focus-color:#1976c8;--post-contrast-color-inverted:#fff;--post-gray-10:hsl(0, 0%, 90%);--post-gray-20:hsl(0, 0%, 80%);--post-gray-40:hsl(0, 0%, 60%);--post-gray-60:hsl(0, 0%, 40%);--post-gray-80:hsl(0, 0%, 20%);--post-yellow:#fc0;--post-white:#fff;--post-light:#faf9f8;--post-gray:#f4f3f1;--post-dark:hsl(0, 0%, 20%);--post-black:#000;--post-primary:hsl(0, 0%, 20%);--post-secondary:hsl(0, 0%, 40%);--post-success:#2c871d;--post-warning:#f49e00;--post-error:#a51728;--post-info:#cce4ee;--post-success-background:#c0debb;--post-warning-background:#fce2b2;--post-error-background:#ffdade;--post-contrast-color-rgb:0, 0, 0;--post-contrast-color-inverted-rgb:255, 255, 255;--post-gray-10-rgb:230, 230, 230;--post-gray-20-rgb:204, 204, 204;--post-gray-40-rgb:153, 153, 153;--post-gray-60-rgb:102, 102, 102;--post-gray-80-rgb:51, 51, 51;--post-black-alpha-10-rgba:rgba(0, 0, 0, 0.1);--post-black-alpha-20-rgba:rgba(0, 0, 0, 0.2);--post-black-alpha-40-rgba:rgba(0, 0, 0, 0.4);--post-black-alpha-60-rgba:rgba(0, 0, 0, 0.6);--post-black-alpha-80-rgba:rgba(0, 0, 0, 0.8);--post-white-alpha-10-rgba:rgba(255, 255, 255, 0.1);--post-white-alpha-20-rgba:rgba(255, 255, 255, 0.2);--post-white-alpha-40-rgba:rgba(255, 255, 255, 0.4);--post-white-alpha-60-rgba:rgba(255, 255, 255, 0.6);--post-white-alpha-80-rgba:rgba(255, 255, 255, 0.8);--post-yellow-rgb:255, 204, 0;--post-white-rgb:255, 255, 255;--post-light-rgb:250, 249, 248;--post-gray-rgb:244, 243, 241;--post-dark-rgb:51, 51, 51;--post-black-rgb:0, 0, 0;--post-primary-rgb:51, 51, 51;--post-secondary-rgb:102, 102, 102;--post-success-rgb:44, 135, 29;--post-warning-rgb:244, 158, 0;--post-error-rgb:165, 23, 40;--post-info-rgb:204, 228, 238;--post-success-background-rgb:192, 222, 187;--post-warning-background-rgb:252, 226, 178;--post-error-background-rgb:255, 218, 222}.accordion-item{border-block:2px solid #666;--post-bg-rgb:244, 243, 241}.bg-yellow .accordion-item{--post-bg-rgb:255, 255, 255}.bg-white .accordion-item{--post-bg-rgb:244, 243, 241}.bg-light .accordion-item{--post-bg-rgb:255, 255, 255}.bg-gray .accordion-item{--post-bg-rgb:255, 255, 255}.bg-dark .accordion-item{--post-bg-rgb:255, 255, 255}.bg-black .accordion-item{--post-bg-rgb:255, 255, 255}.bg-primary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-secondary .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error .accordion-item{--post-bg-rgb:255, 255, 255}.bg-info .accordion-item{--post-bg-rgb:255, 255, 255}.bg-success-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-warning-background .accordion-item{--post-bg-rgb:255, 255, 255}.bg-error-background .accordion-item{--post-bg-rgb:255, 255, 255}.accordion-item+.accordion-item{border-block-start:0}.accordion-header{color:#333;font-size:1rem;font-weight:700;line-height:1.5;margin:0}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;width:100%;position:relative;padding-block:1rem;padding-inline-start:1rem;padding-inline-end:3rem;text-align:start;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;outline:none}.accordion-button:focus-visible{outline:2px solid #1976c8}.accordion-button:hover{color:#000;background-color:#e6e6e6}.accordion-button:disabled{opacity:.4;pointer-events:none}.accordion-button::after{-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 18.3-.9.9-6.7-6.6-6.6 6.6-.9-.9 7.5-7.6z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:1.5rem;width:1.5rem;position:absolute;inset-inline-end:1rem;inset-block-start:50%;transform:translateY(-50%);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed::after{transform:translateY(-50%) rotate(-180deg)}.accordion-button>.text-truncate{display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover:not(:disabled),.accordion-button:focus-visible:not(:disabled){outline:2px solid Highlight}.accordion-button:disabled{opacity:1 !important}}.accordion-body{padding:.5rem 1rem 1rem;font-weight:400}.accordion-button>*,.accordion-body>:first-child{margin-block-start:0 !important}.accordion-button>*,.accordion-body>:last-child{margin-block-end:0 !important}:host{display:block}.accordion-button{cursor:pointer}.accordion-button>::slotted(.text-truncate){display:block}post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-yellow post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-white post-accordion-item::part(accordion-item){--post-bg-rgb:244, 243, 241}.bg-light post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-gray post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-dark post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-black post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-primary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-secondary post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-info post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-success-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-warning-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}.bg-error-background post-accordion-item::part(accordion-item){--post-bg-rgb:255, 255, 255}:host(:not(:first-of-type)) .accordion-item{border-block-start:0}";export{n as P}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t){const e=t.getRootNode();if(e instanceof Document||e instanceof ShadowRoot)return e;throw new Error("Attempting to access root node before the element is attached to the document or shadow tree.")}export{t as g}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,b as a}from"./p-3eab790d.js";export{s as setNonce}from"./p-3eab790d.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-
|
|
1
|
+
import{p as e,b as a}from"./p-3eab790d.js";export{s as setNonce}from"./p-3eab790d.js";import{g as l}from"./p-e1255160.js";(()=>{const a=import.meta.url,l={};return""!==a&&(l.resourcesUrl=new URL(".",a).href),e(l)})().then((async e=>(await l(),a([["p-d2938e9a",[[1,"post-accordion-item",{collapsed:[1028],headingLevel:[2,"heading-level"],id:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]],{headingLevel:["validateHeadingLevel"]}]]],["p-499f3c12",[[1,"post-banner",{dismissible:[4],dismissLabel:[1,"dismiss-label"],icon:[1],type:[1],bannerId:[32],classes:[32],hasActions:[32],hasHeading:[32],onDismissButtonClick:[32],dismiss:[64]},null,{dismissible:["validateDismissible"],dismissLabel:["validateDismissLabel"],icon:["validateIcon"],type:["validateType"]}]]],["p-6e37b9bf",[[1,"post-breadcrumb-item",{url:[1]},null,{url:["validateUrl"]}]]],["p-34e5b9da",[[65,"post-card-control",{label:[1],description:[1],type:[1],name:[1],value:[1],checked:[1028],disabled:[1028],validity:[1025],icon:[1],focused:[32],reset:[64],groupReset:[64]},null,{label:["validateControlLabel"],type:["validateControlType"],checked:["updateControlChecked"],disabled:["updateControlDisabled"]}]]],["p-a87d8337",[[1,"post-menu",{placement:[1],isVisible:[32],toggle:[64],show:[64],hide:[64]}]]],["p-c94a2ae1",[[1,"post-popover",{placement:[1],closeButtonCaption:[1,"close-button-caption"],arrow:[4],show:[64],hide:[64],toggle:[64]}]]],["p-61b27b51",[[1,"post-rating",{label:[1],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]}]]],["p-888ab913",[[1,"post-tag",{variant:[1],size:[1],icon:[1],classes:[32]},null,{variant:["variantChanged"],size:["sizeChanged"]}]]],["p-8fb11b22",[[1,"post-tooltip",{placement:[1],arrow:[4],delayed:[4],show:[64],hide:[64],toggle:[64]},null,{delayed:["validateDelayed"]}]]],["p-916ec6d5",[[1,"post-accordion",{headingLevel:[2,"heading-level"],multiple:[4],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:["validateHeadingLevel"]}]]],["p-ab0556af",[[1,"post-avatar",{firstname:[1],lastname:[1],userid:[1],email:[1],slottedImage:[32],avatarType:[32],imageUrl:[32],imageAlt:[32],initials:[32]},null,{firstname:["validateFirstname"]}]]],["p-7a995b7e",[[1,"post-language-option",{code:[1],active:[1540],name:[1],url:[1],select:[64]},null,{code:["validateCode"],active:["validateActiveProp"],name:["validateName"],url:["validateUrl"]}]]],["p-56bd7eb7",[[1,"post-menu-item"]]],["p-7391daa3",[[4,"post-menu-trigger",{for:[1],ariaExpanded:[32]},null,{for:["validateControlFor"]}]]],["p-dddc70f6",[[1,"post-tab-header",{panel:[1],tabId:[32]},null,{panel:["validateFor"]}]]],["p-a1a1b679",[[1,"post-tab-panel",{name:[1],panelId:[32]}]]],["p-8927a8e4",[[1,"post-tabs",{activePanel:[1,"active-panel"],show:[64]}]]],["p-3b3b57d0",[[1,"post-collapsible",{collapsed:[1028],toggle:[64]},null,{collapsed:["collapsedChange"]}],[0,"post-collapsible-trigger",{for:[1],update:[64]},null,{for:["setAriaAttributes"]}]]],["p-7175208c",[[4,"post-closebutton"],[4,"post-megadropdown",{show:[64],hide:[64],toggle:[64]}],[1,"post-header",{device:[32],mobileMenuExtended:[32]},[[0,"postMainNavigationClosed","handlePostMainNavigationClosed"]]],[4,"post-list",{titleHidden:[4,"title-hidden"],horizontal:[4],titleId:[32]}],[1,"post-list-item"],[1,"post-logo",{url:[1]},null,{url:["validateUrl"]}],[4,"post-mainnavigation",null,[[0,"postToggle","handleMegadropdownToggled"]]],[1,"post-megadropdown-trigger",{toggled:[32]}],[4,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],arrow:[4],show:[64],hide:[64],toggle:[64]}],[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"]}]]]],e))));
|
|
@@ -19,7 +19,7 @@ export declare class PostAvatar {
|
|
|
19
19
|
*/
|
|
20
20
|
readonly lastname?: string;
|
|
21
21
|
/**
|
|
22
|
-
* Defines the company internal userId.<div className="mb-1
|
|
22
|
+
* Defines the company internal userId.<div className="mb-1 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
23
23
|
*/
|
|
24
24
|
readonly userid?: string;
|
|
25
25
|
/**
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { BannerType } from './banner-types';
|
|
3
|
+
/**
|
|
4
|
+
* @slot heading - Slot for placing custom content within the banner's heading.
|
|
5
|
+
* @slot actions - Slot for placing custom actions (buttons, links, etc.) within the banner.
|
|
6
|
+
* @slot default - Slot for placing the main content/message of the banner.
|
|
7
|
+
*/
|
|
8
|
+
export declare class PostBanner {
|
|
9
|
+
host: HTMLPostBannerElement;
|
|
10
|
+
bannerId: `${string}-${string}-${string}-${string}-${string}`;
|
|
11
|
+
classes: string;
|
|
12
|
+
hasActions: boolean;
|
|
13
|
+
hasHeading: boolean;
|
|
14
|
+
onDismissButtonClick: () => Promise<void>;
|
|
15
|
+
/**
|
|
16
|
+
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
17
|
+
*/
|
|
18
|
+
readonly dismissible: boolean;
|
|
19
|
+
validateDismissible(isDismissible?: boolean): void;
|
|
20
|
+
/**
|
|
21
|
+
* The label to use for the close button of a dismissible banner.
|
|
22
|
+
*/
|
|
23
|
+
readonly dismissLabel: string;
|
|
24
|
+
validateDismissLabel(dismissLabel?: string): void;
|
|
25
|
+
/**
|
|
26
|
+
* The icon to display in the banner. By default, the icon depends on the banner type.
|
|
27
|
+
*
|
|
28
|
+
* If `none`, no icon is displayed.
|
|
29
|
+
*/
|
|
30
|
+
readonly icon: string;
|
|
31
|
+
validateIcon(icon?: string): void;
|
|
32
|
+
/**
|
|
33
|
+
* The type of the banner.
|
|
34
|
+
*/
|
|
35
|
+
readonly type: BannerType;
|
|
36
|
+
validateType(type?: "neutral" | "success" | "warning" | "danger" | "info"): void;
|
|
37
|
+
/**
|
|
38
|
+
* An event emitted when the banner element is dismissed, after the transition.
|
|
39
|
+
* It has no payload and only relevant for dismissible banners.
|
|
40
|
+
*/
|
|
41
|
+
postDismissed: EventEmitter<void>;
|
|
42
|
+
componentDidLoad(): void;
|
|
43
|
+
componentWillRender(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Triggers banner dismissal programmatically (same as clicking on the close button (×)).
|
|
46
|
+
*/
|
|
47
|
+
dismiss(): Promise<void>;
|
|
48
|
+
render(): any;
|
|
49
|
+
}
|
|
@@ -2,8 +2,8 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
/**
|
|
3
3
|
* @class PostCardControl - representing a stencil component
|
|
4
4
|
*
|
|
5
|
-
* @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>.<p className="
|
|
6
|
-
* @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>.<p className="
|
|
5
|
+
* @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>.<p className="banner banner-sm banner-warning">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>
|
|
6
|
+
* @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>.<p className="banner banner-sm banner-info">It is only meant for <code>img</code> or <code>svg</code> elements and overrides the `icon` property.</p>
|
|
7
7
|
*/
|
|
8
8
|
export declare class PostCardControl {
|
|
9
9
|
private readonly EVENT_MAP;
|
|
@@ -30,12 +30,12 @@ export declare class PostCardControl {
|
|
|
30
30
|
readonly type: 'checkbox' | 'radio';
|
|
31
31
|
/**
|
|
32
32
|
* Defines the `name` attribute of the control.
|
|
33
|
-
* <span className="
|
|
34
|
-
* <span className="
|
|
33
|
+
* <span className="banner banner-sm banner-info">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.</span>
|
|
34
|
+
* <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
35
35
|
*/
|
|
36
36
|
readonly name: string;
|
|
37
37
|
/**
|
|
38
|
-
* Defines the `value` attribute of the control. <span className="
|
|
38
|
+
* Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
39
39
|
*/
|
|
40
40
|
readonly value: string;
|
|
41
41
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class PostCardControl {
|
|
|
53
53
|
validity: null | 'true' | 'false';
|
|
54
54
|
/**
|
|
55
55
|
* Defines the icon `name` inside the card.
|
|
56
|
-
* <span className="
|
|
56
|
+
* <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
57
57
|
*/
|
|
58
58
|
readonly icon: string;
|
|
59
59
|
/**
|
|
@@ -67,7 +67,7 @@ export declare class PostCardControl {
|
|
|
67
67
|
/**
|
|
68
68
|
* An event emitted whenever the components checked state is toggled.
|
|
69
69
|
* The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked.
|
|
70
|
-
* <span className="
|
|
70
|
+
* <span className="banner banner-sm banner-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
|
|
71
71
|
*/
|
|
72
72
|
postChange: EventEmitter<{
|
|
73
73
|
state: boolean;
|
|
@@ -16,7 +16,7 @@ export declare class PostList {
|
|
|
16
16
|
* The list can become horizontal by setting `horizontal="true"` or just `horizontal`
|
|
17
17
|
*/
|
|
18
18
|
readonly horizontal: boolean;
|
|
19
|
-
titleEl
|
|
19
|
+
private titleEl;
|
|
20
20
|
componentWillLoad(): void;
|
|
21
21
|
componentDidLoad(): void;
|
|
22
22
|
private checkTitle;
|
|
@@ -13,6 +13,7 @@ export declare class PostMenuTrigger {
|
|
|
13
13
|
* Used to manage click and key events for menu control.
|
|
14
14
|
*/
|
|
15
15
|
private slottedButton;
|
|
16
|
+
private root?;
|
|
16
17
|
/**
|
|
17
18
|
* Watch for changes to the `for` property to validate its type and ensure it is a string.
|
|
18
19
|
* @param forValue - The new value of the `for` property.
|
|
@@ -14,7 +14,7 @@ export declare class PostTag {
|
|
|
14
14
|
readonly size: null | 'sm';
|
|
15
15
|
/**
|
|
16
16
|
* Defines the icon `name` inside of the component.
|
|
17
|
-
* <span className="
|
|
17
|
+
* <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
18
18
|
* To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs">icon library</a>.
|
|
19
19
|
*/
|
|
20
20
|
readonly icon: null | string;
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { HeadingLevel } from "./types/index";
|
|
9
|
-
import {
|
|
9
|
+
import { BannerType } from "./components/post-banner/banner-types";
|
|
10
10
|
import { Placement } from "@floating-ui/dom";
|
|
11
11
|
export { HeadingLevel } from "./types/index";
|
|
12
|
-
export {
|
|
12
|
+
export { BannerType } from "./components/post-banner/banner-types";
|
|
13
13
|
export { Placement } from "@floating-ui/dom";
|
|
14
14
|
export namespace Components {
|
|
15
15
|
interface PostAccordion {
|
|
@@ -49,49 +49,45 @@ export namespace Components {
|
|
|
49
49
|
*/
|
|
50
50
|
"toggle": (force?: boolean) => Promise<boolean>;
|
|
51
51
|
}
|
|
52
|
-
interface
|
|
53
|
-
/**
|
|
54
|
-
* Triggers alert dismissal programmatically (same as clicking on the close button (×)).
|
|
55
|
-
*/
|
|
56
|
-
"dismiss": () => Promise<void>;
|
|
52
|
+
interface PostAvatar {
|
|
57
53
|
/**
|
|
58
|
-
*
|
|
54
|
+
* Defines the users email address associated with a gravatar profile picture.
|
|
59
55
|
*/
|
|
60
|
-
"
|
|
56
|
+
"email"?: string;
|
|
61
57
|
/**
|
|
62
|
-
*
|
|
58
|
+
* Defines the users firstname.
|
|
63
59
|
*/
|
|
64
|
-
"
|
|
60
|
+
"firstname": string;
|
|
65
61
|
/**
|
|
66
|
-
*
|
|
62
|
+
* Defines the users lastname.
|
|
67
63
|
*/
|
|
68
|
-
"
|
|
64
|
+
"lastname"?: string;
|
|
69
65
|
/**
|
|
70
|
-
*
|
|
66
|
+
* Defines the company internal userId.<div className="mb-1 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
71
67
|
*/
|
|
72
|
-
"
|
|
68
|
+
"userid"?: string;
|
|
69
|
+
}
|
|
70
|
+
interface PostBanner {
|
|
73
71
|
/**
|
|
74
|
-
*
|
|
72
|
+
* Triggers banner dismissal programmatically (same as clicking on the close button (×)).
|
|
75
73
|
*/
|
|
76
|
-
"
|
|
77
|
-
}
|
|
78
|
-
interface PostAvatar {
|
|
74
|
+
"dismiss": () => Promise<void>;
|
|
79
75
|
/**
|
|
80
|
-
*
|
|
76
|
+
* The label to use for the close button of a dismissible banner.
|
|
81
77
|
*/
|
|
82
|
-
"
|
|
78
|
+
"dismissLabel": string;
|
|
83
79
|
/**
|
|
84
|
-
*
|
|
80
|
+
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
85
81
|
*/
|
|
86
|
-
"
|
|
82
|
+
"dismissible": boolean;
|
|
87
83
|
/**
|
|
88
|
-
*
|
|
84
|
+
* The icon to display in the banner. By default, the icon depends on the banner type. If `none`, no icon is displayed.
|
|
89
85
|
*/
|
|
90
|
-
"
|
|
86
|
+
"icon": string;
|
|
91
87
|
/**
|
|
92
|
-
*
|
|
88
|
+
* The type of the banner.
|
|
93
89
|
*/
|
|
94
|
-
"
|
|
90
|
+
"type": BannerType;
|
|
95
91
|
}
|
|
96
92
|
interface PostBreadcrumbItem {
|
|
97
93
|
/**
|
|
@@ -120,7 +116,7 @@ export namespace Components {
|
|
|
120
116
|
*/
|
|
121
117
|
"groupReset": () => Promise<void>;
|
|
122
118
|
/**
|
|
123
|
-
* Defines the icon `name` inside the card. <span className="
|
|
119
|
+
* Defines the icon `name` inside the card. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
124
120
|
*/
|
|
125
121
|
"icon": string;
|
|
126
122
|
/**
|
|
@@ -128,7 +124,7 @@ export namespace Components {
|
|
|
128
124
|
*/
|
|
129
125
|
"label": string;
|
|
130
126
|
/**
|
|
131
|
-
* Defines the `name` attribute of the control. <span className="
|
|
127
|
+
* Defines the `name` attribute of the control. <span className="banner banner-sm banner-info">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.</span> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
132
128
|
*/
|
|
133
129
|
"name": string;
|
|
134
130
|
/**
|
|
@@ -144,7 +140,7 @@ export namespace Components {
|
|
|
144
140
|
*/
|
|
145
141
|
"validity": null | 'true' | 'false';
|
|
146
142
|
/**
|
|
147
|
-
* Defines the `value` attribute of the control. <span className="
|
|
143
|
+
* Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
148
144
|
*/
|
|
149
145
|
"value": string;
|
|
150
146
|
}
|
|
@@ -396,7 +392,7 @@ export namespace Components {
|
|
|
396
392
|
}
|
|
397
393
|
interface PostTag {
|
|
398
394
|
/**
|
|
399
|
-
* Defines the icon `name` inside of the component. <span className="
|
|
395
|
+
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs">icon library</a>.
|
|
400
396
|
*/
|
|
401
397
|
"icon": null | string;
|
|
402
398
|
/**
|
|
@@ -439,9 +435,9 @@ export namespace Components {
|
|
|
439
435
|
"toggle": (target: HTMLElement, force?: boolean) => Promise<void>;
|
|
440
436
|
}
|
|
441
437
|
}
|
|
442
|
-
export interface
|
|
438
|
+
export interface PostBannerCustomEvent<T> extends CustomEvent<T> {
|
|
443
439
|
detail: T;
|
|
444
|
-
target:
|
|
440
|
+
target: HTMLPostBannerElement;
|
|
445
441
|
}
|
|
446
442
|
export interface PostCardControlCustomEvent<T> extends CustomEvent<T> {
|
|
447
443
|
detail: T;
|
|
@@ -492,28 +488,28 @@ declare global {
|
|
|
492
488
|
prototype: HTMLPostAccordionItemElement;
|
|
493
489
|
new (): HTMLPostAccordionItemElement;
|
|
494
490
|
};
|
|
495
|
-
interface
|
|
491
|
+
interface HTMLPostAvatarElement extends Components.PostAvatar, HTMLStencilElement {
|
|
492
|
+
}
|
|
493
|
+
var HTMLPostAvatarElement: {
|
|
494
|
+
prototype: HTMLPostAvatarElement;
|
|
495
|
+
new (): HTMLPostAvatarElement;
|
|
496
|
+
};
|
|
497
|
+
interface HTMLPostBannerElementEventMap {
|
|
496
498
|
"postDismissed": void;
|
|
497
499
|
}
|
|
498
|
-
interface
|
|
499
|
-
addEventListener<K extends keyof
|
|
500
|
+
interface HTMLPostBannerElement extends Components.PostBanner, HTMLStencilElement {
|
|
501
|
+
addEventListener<K extends keyof HTMLPostBannerElementEventMap>(type: K, listener: (this: HTMLPostBannerElement, ev: PostBannerCustomEvent<HTMLPostBannerElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
500
502
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
501
503
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
502
504
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
503
|
-
removeEventListener<K extends keyof
|
|
505
|
+
removeEventListener<K extends keyof HTMLPostBannerElementEventMap>(type: K, listener: (this: HTMLPostBannerElement, ev: PostBannerCustomEvent<HTMLPostBannerElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
504
506
|
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
505
507
|
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
506
508
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
507
509
|
}
|
|
508
|
-
var
|
|
509
|
-
prototype:
|
|
510
|
-
new ():
|
|
511
|
-
};
|
|
512
|
-
interface HTMLPostAvatarElement extends Components.PostAvatar, HTMLStencilElement {
|
|
513
|
-
}
|
|
514
|
-
var HTMLPostAvatarElement: {
|
|
515
|
-
prototype: HTMLPostAvatarElement;
|
|
516
|
-
new (): HTMLPostAvatarElement;
|
|
510
|
+
var HTMLPostBannerElement: {
|
|
511
|
+
prototype: HTMLPostBannerElement;
|
|
512
|
+
new (): HTMLPostBannerElement;
|
|
517
513
|
};
|
|
518
514
|
interface HTMLPostBreadcrumbItemElement extends Components.PostBreadcrumbItem, HTMLStencilElement {
|
|
519
515
|
}
|
|
@@ -775,8 +771,8 @@ declare global {
|
|
|
775
771
|
interface HTMLElementTagNameMap {
|
|
776
772
|
"post-accordion": HTMLPostAccordionElement;
|
|
777
773
|
"post-accordion-item": HTMLPostAccordionItemElement;
|
|
778
|
-
"post-alert": HTMLPostAlertElement;
|
|
779
774
|
"post-avatar": HTMLPostAvatarElement;
|
|
775
|
+
"post-banner": HTMLPostBannerElement;
|
|
780
776
|
"post-breadcrumb-item": HTMLPostBreadcrumbItemElement;
|
|
781
777
|
"post-card-control": HTMLPostCardControlElement;
|
|
782
778
|
"post-closebutton": HTMLPostClosebuttonElement;
|
|
@@ -826,49 +822,45 @@ declare namespace LocalJSX {
|
|
|
826
822
|
*/
|
|
827
823
|
"headingLevel"?: HeadingLevel;
|
|
828
824
|
}
|
|
829
|
-
interface
|
|
830
|
-
/**
|
|
831
|
-
* The label to use for the close button of a dismissible alert.
|
|
832
|
-
*/
|
|
833
|
-
"dismissLabel"?: string;
|
|
825
|
+
interface PostAvatar {
|
|
834
826
|
/**
|
|
835
|
-
*
|
|
827
|
+
* Defines the users email address associated with a gravatar profile picture.
|
|
836
828
|
*/
|
|
837
|
-
"
|
|
829
|
+
"email"?: string;
|
|
838
830
|
/**
|
|
839
|
-
*
|
|
831
|
+
* Defines the users firstname.
|
|
840
832
|
*/
|
|
841
|
-
"
|
|
833
|
+
"firstname": string;
|
|
842
834
|
/**
|
|
843
|
-
*
|
|
835
|
+
* Defines the users lastname.
|
|
844
836
|
*/
|
|
845
|
-
"
|
|
837
|
+
"lastname"?: string;
|
|
846
838
|
/**
|
|
847
|
-
*
|
|
839
|
+
* Defines the company internal userId.<div className="mb-1 banner banner-warning banner-sm">Can only be used on post.ch domains!</div>
|
|
848
840
|
*/
|
|
849
|
-
"
|
|
841
|
+
"userid"?: string;
|
|
842
|
+
}
|
|
843
|
+
interface PostBanner {
|
|
850
844
|
/**
|
|
851
|
-
* The
|
|
845
|
+
* The label to use for the close button of a dismissible banner.
|
|
852
846
|
*/
|
|
853
|
-
"
|
|
854
|
-
}
|
|
855
|
-
interface PostAvatar {
|
|
847
|
+
"dismissLabel"?: string;
|
|
856
848
|
/**
|
|
857
|
-
*
|
|
849
|
+
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
858
850
|
*/
|
|
859
|
-
"
|
|
851
|
+
"dismissible"?: boolean;
|
|
860
852
|
/**
|
|
861
|
-
*
|
|
853
|
+
* The icon to display in the banner. By default, the icon depends on the banner type. If `none`, no icon is displayed.
|
|
862
854
|
*/
|
|
863
|
-
"
|
|
855
|
+
"icon"?: string;
|
|
864
856
|
/**
|
|
865
|
-
*
|
|
857
|
+
* An event emitted when the banner element is dismissed, after the transition. It has no payload and only relevant for dismissible banners.
|
|
866
858
|
*/
|
|
867
|
-
"
|
|
859
|
+
"onPostDismissed"?: (event: PostBannerCustomEvent<void>) => void;
|
|
868
860
|
/**
|
|
869
|
-
*
|
|
861
|
+
* The type of the banner.
|
|
870
862
|
*/
|
|
871
|
-
"
|
|
863
|
+
"type"?: BannerType;
|
|
872
864
|
}
|
|
873
865
|
interface PostBreadcrumbItem {
|
|
874
866
|
/**
|
|
@@ -893,7 +885,7 @@ declare namespace LocalJSX {
|
|
|
893
885
|
*/
|
|
894
886
|
"disabled"?: boolean;
|
|
895
887
|
/**
|
|
896
|
-
* Defines the icon `name` inside the card. <span className="
|
|
888
|
+
* Defines the icon `name` inside the card. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
897
889
|
*/
|
|
898
890
|
"icon"?: string;
|
|
899
891
|
/**
|
|
@@ -901,11 +893,11 @@ declare namespace LocalJSX {
|
|
|
901
893
|
*/
|
|
902
894
|
"label": string;
|
|
903
895
|
/**
|
|
904
|
-
* Defines the `name` attribute of the control. <span className="
|
|
896
|
+
* Defines the `name` attribute of the control. <span className="banner banner-sm banner-info">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.</span> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
905
897
|
*/
|
|
906
898
|
"name"?: string;
|
|
907
899
|
/**
|
|
908
|
-
* An event emitted whenever the components checked state is toggled. The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked. <span className="
|
|
900
|
+
* An event emitted whenever the components checked state is toggled. The event payload (emitted under `event.detail.state`) is a boolean: `true` if the component is checked, `false` if it is unchecked. <span className="banner banner-sm banner-info">If the component is used with type `radio`, it will only emit this event, when the checked state is changing to `true`.</span>
|
|
909
901
|
*/
|
|
910
902
|
"onPostChange"?: (event: PostCardControlCustomEvent<{ state: boolean; value: string }>) => void;
|
|
911
903
|
/**
|
|
@@ -921,7 +913,7 @@ declare namespace LocalJSX {
|
|
|
921
913
|
*/
|
|
922
914
|
"validity"?: null | 'true' | 'false';
|
|
923
915
|
/**
|
|
924
|
-
* Defines the `value` attribute of the control. <span className="
|
|
916
|
+
* Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
925
917
|
*/
|
|
926
918
|
"value"?: string;
|
|
927
919
|
}
|
|
@@ -1132,7 +1124,7 @@ declare namespace LocalJSX {
|
|
|
1132
1124
|
}
|
|
1133
1125
|
interface PostTag {
|
|
1134
1126
|
/**
|
|
1135
|
-
* Defines the icon `name` inside of the component. <span className="
|
|
1127
|
+
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/5704bdc4-c5b5-45e6-b123-c54d01fce2f1--docs">icon library</a>.
|
|
1136
1128
|
*/
|
|
1137
1129
|
"icon"?: null | string;
|
|
1138
1130
|
/**
|
|
@@ -1161,8 +1153,8 @@ declare namespace LocalJSX {
|
|
|
1161
1153
|
interface IntrinsicElements {
|
|
1162
1154
|
"post-accordion": PostAccordion;
|
|
1163
1155
|
"post-accordion-item": PostAccordionItem;
|
|
1164
|
-
"post-alert": PostAlert;
|
|
1165
1156
|
"post-avatar": PostAvatar;
|
|
1157
|
+
"post-banner": PostBanner;
|
|
1166
1158
|
"post-breadcrumb-item": PostBreadcrumbItem;
|
|
1167
1159
|
"post-card-control": PostCardControl;
|
|
1168
1160
|
"post-closebutton": PostClosebutton;
|
|
@@ -1196,8 +1188,8 @@ declare module "@stencil/core" {
|
|
|
1196
1188
|
interface IntrinsicElements {
|
|
1197
1189
|
"post-accordion": LocalJSX.PostAccordion & JSXBase.HTMLAttributes<HTMLPostAccordionElement>;
|
|
1198
1190
|
"post-accordion-item": LocalJSX.PostAccordionItem & JSXBase.HTMLAttributes<HTMLPostAccordionItemElement>;
|
|
1199
|
-
"post-alert": LocalJSX.PostAlert & JSXBase.HTMLAttributes<HTMLPostAlertElement>;
|
|
1200
1191
|
"post-avatar": LocalJSX.PostAvatar & JSXBase.HTMLAttributes<HTMLPostAvatarElement>;
|
|
1192
|
+
"post-banner": LocalJSX.PostBanner & JSXBase.HTMLAttributes<HTMLPostBannerElement>;
|
|
1201
1193
|
"post-breadcrumb-item": LocalJSX.PostBreadcrumbItem & JSXBase.HTMLAttributes<HTMLPostBreadcrumbItemElement>;
|
|
1202
1194
|
/**
|
|
1203
1195
|
* @class PostCardControl - representing a stencil component
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Components, JSX } from './components';
|
|
2
2
|
export { PostAccordion } from './components/post-accordion/post-accordion';
|
|
3
3
|
export { PostAccordionItem } from './components/post-accordion-item/post-accordion-item';
|
|
4
|
-
export {
|
|
4
|
+
export { PostBanner } from './components/post-banner/post-banner';
|
|
5
5
|
export { PostBreadcrumbItem } from './components/post-breadcrumb-item/post-breadcrumb-item';
|
|
6
6
|
export { PostAvatar } from './components/post-avatar/post-avatar';
|
|
7
7
|
export { PostCardControl } from './components/post-card-control/post-card-control';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function getRoot(element) {
|
|
2
|
+
const root = element.getRootNode();
|
|
3
|
+
if (root instanceof Document || root instanceof ShadowRoot) {
|
|
4
|
+
return root;
|
|
5
|
+
}
|
|
6
|
+
throw new Error('Attempting to access root node before the element is attached to the document or shadow tree.');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export { getRoot as g };
|
package/loaders/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ export { PostAccordion as PostAccordion } from '../dist/types/components/post-ac
|
|
|
3
3
|
export { defineCustomElement as defineCustomElementPostAccordion } from './post-accordion';
|
|
4
4
|
export { PostAccordionItem as PostAccordionItem } from '../dist/types/components/post-accordion-item/post-accordion-item';
|
|
5
5
|
export { defineCustomElement as defineCustomElementPostAccordionItem } from './post-accordion-item';
|
|
6
|
-
export { PostAlert as PostAlert } from '../dist/types/components/post-alert/post-alert';
|
|
7
|
-
export { defineCustomElement as defineCustomElementPostAlert } from './post-alert';
|
|
8
6
|
export { PostAvatar as PostAvatar } from '../dist/types/components/post-avatar/post-avatar';
|
|
9
7
|
export { defineCustomElement as defineCustomElementPostAvatar } from './post-avatar';
|
|
8
|
+
export { PostBanner as PostBanner } from '../dist/types/components/post-banner/post-banner';
|
|
9
|
+
export { defineCustomElement as defineCustomElementPostBanner } from './post-banner';
|
|
10
10
|
export { PostBreadcrumbItem as PostBreadcrumbItem } from '../dist/types/components/post-breadcrumb-item/post-breadcrumb-item';
|
|
11
11
|
export { defineCustomElement as defineCustomElementPostBreadcrumbItem } from './post-breadcrumb-item';
|
|
12
12
|
export { PostCardControl as PostCardControl } from '../dist/types/components/post-card-control/post-card-control';
|
package/loaders/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export { PostPopover, defineCustomElement as defineCustomElementPostPopover } fr
|
|
|
5
5
|
export { PostTooltip, defineCustomElement as defineCustomElementPostTooltip } from './post-tooltip.js';
|
|
6
6
|
export { PostAccordion, defineCustomElement as defineCustomElementPostAccordion } from './post-accordion.js';
|
|
7
7
|
export { PostAccordionItem, defineCustomElement as defineCustomElementPostAccordionItem } from './post-accordion-item.js';
|
|
8
|
-
export {
|
|
8
|
+
export { PostBanner, defineCustomElement as defineCustomElementPostBanner } from './post-banner.js';
|
|
9
9
|
export { PostBreadcrumbItem, defineCustomElement as defineCustomElementPostBreadcrumbItem } from './post-breadcrumb-item.js';
|
|
10
10
|
export { PostCardControl, defineCustomElement as defineCustomElementPostCardControl } from './post-card-control.js';
|
|
11
11
|
export { PostClosebutton, defineCustomElement as defineCustomElementPostClosebutton } from './post-closebutton.js';
|
package/loaders/package.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Components, JSX } from "../dist/types/components";
|
|
2
2
|
|
|
3
|
-
interface
|
|
4
|
-
export const
|
|
5
|
-
prototype:
|
|
6
|
-
new ():
|
|
3
|
+
interface PostBanner extends Components.PostBanner, HTMLElement {}
|
|
4
|
+
export const PostBanner: {
|
|
5
|
+
prototype: PostBanner;
|
|
6
|
+
new (): PostBanner;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
9
|
* Used to define this component and all nested components recursively.
|