@postnord/pn-marketweb-components 4.4.0 → 4.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +25 -3
- package/cjs/pn-date-and-time.cjs.entry.js.map +1 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/collection/components/input/pn-date-and-time/pn-date-and-time.js +44 -3
- package/collection/components/input/pn-date-and-time/pn-date-and-time.js.map +1 -1
- package/collection/components/input/pn-date-and-time/pn-date-and-time.stories.js +3 -1
- package/components/pn-date-and-time.js +27 -3
- package/components/pn-date-and-time.js.map +1 -1
- package/esm/loader.js +1 -1
- package/esm/pn-date-and-time.entry.js +25 -3
- package/esm/pn-date-and-time.entry.js.map +1 -1
- package/esm/pn-market-web-components.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-dbfb632c.entry.js +2 -0
- package/pn-market-web-components/p-dbfb632c.entry.js.map +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js.map +1 -1
- package/types/components/input/pn-date-and-time/pn-date-and-time.d.ts +3 -0
- package/types/components.d.ts +2 -0
- package/umd/modules/@postnord/web-components/cem.json +392 -0
- package/umd/modules/@postnord/web-components/cjs/close_small-CTOfc4Qy.js +10 -0
- package/umd/modules/@postnord/web-components/cjs/index-DWu-2oJc.js +12 -4
- package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-input-chip.cjs.entry.js +52 -0
- package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +2 -4
- package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-skeleton-loader.cjs.entry.js +103 -0
- package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tablist.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +1 -1
- package/umd/modules/@postnord/web-components/collection/collection-manifest.json +2 -0
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-skeleton-loader/pn-skeleton-loader.css +314 -0
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-skeleton-loader/pn-skeleton-loader.js +291 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input-chip/pn-input-chip.css +109 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input-chip/pn-input-chip.js +232 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/components/close_small.js +5 -0
- package/umd/modules/@postnord/web-components/components/index.d.ts +4 -0
- package/umd/modules/@postnord/web-components/components/index.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-header.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-input-chip.d.ts +11 -0
- package/umd/modules/@postnord/web-components/components/pn-input-chip.js +5 -0
- package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-range.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-skeleton-loader.d.ts +11 -0
- package/umd/modules/@postnord/web-components/components/pn-skeleton-loader.js +5 -0
- package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/esm/close_small-gPbnChG6.js +8 -0
- package/umd/modules/@postnord/web-components/esm/index-XKg-ydzH.js +12 -4
- package/umd/modules/@postnord/web-components/esm/loader.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-input-chip.entry.js +50 -0
- package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +2 -4
- package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-skeleton-loader.entry.js +101 -0
- package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +1 -1
- package/umd/modules/@postnord/web-components/hydrate/index.js +199 -22
- package/umd/modules/@postnord/web-components/hydrate/index.mjs +199 -22
- package/umd/modules/@postnord/web-components/package.json +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-e11b4af5.entry.js → p-10d5fb90.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-88344f8d.entry.js → p-110ba4cc.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-98a37be9.entry.js → p-1b27c05f.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-292a7591.entry.js → p-20fe57fd.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-43483837.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-060b6ad2.entry.js → p-48f7e582.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-a31d93db.entry.js → p-594f5e35.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-9d56fb64.entry.js → p-5f5f3eeb.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-783ee52f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-e5574624.entry.js → p-809a0ddb.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-d81b4ede.entry.js → p-8d90ab9d.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3db02038.entry.js → p-90b44536.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-a1f92f19.entry.js → p-9f48d450.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-ef00ef4d.entry.js → p-a028c1af.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a3bd612d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-d228b929.entry.js → p-a70c9879.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b80c060c.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-0bf70d44.entry.js → p-bdb494ac.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-020ee3f4.entry.js → p-c51d8164.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-8cedf2e0.entry.js → p-c7a6d048.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b45e58df.entry.js → p-d728a000.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-eb15a889.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3709c995.entry.js → p-fa3c2490.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-64207923.entry.js → p-fdbffb51.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-gPbnChG6.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-skeleton-loader/pn-skeleton-loader.d.ts +35 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-input-chip/pn-input-chip.d.ts +34 -0
- package/umd/modules/@postnord/web-components/types/components.d.ts +257 -0
- package/umd/modules/@postnord/web-components/vscode-data.json +117 -0
- package/umd/pn-marketweb-header-wrongrembase.css +6 -5
- package/umd/pn-marketweb-init.js +1 -1
- package/umd/pn-marketweb-salesforce-header.js +1 -1
- package/umd/pn-marketweb-salesforce-owncss.js +88 -0
- package/umd/pn-marketweb-salesforce.js +1 -1
- package/vscode-data.json +4 -0
- package/pn-market-web-components/p-99843884.entry.js +0 -2
- package/pn-market-web-components/p-99843884.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-aa15469e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b72f9866.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d71054df.entry.js +0 -5
|
@@ -6098,7 +6098,7 @@ class PnCard {
|
|
|
6098
6098
|
}
|
|
6099
6099
|
render() {
|
|
6100
6100
|
const TitleTag = this.getHeadingTag();
|
|
6101
|
-
return (hAsync(Host, { key: '
|
|
6101
|
+
return (hAsync(Host, { key: '65ed28a0a625760d11f9bd7961978af7573f7062' }, hAsync("article", { key: '2f05480099b5bedddba115a3f00174d0ed4f9658', id: this.cardId, class: "pn-card", "data-link": !!this.href, "data-horizontal": this.horizontal, "data-reverse": this.reverse, "data-focus": this.visibleOutline }, hAsync("div", { key: '1ec2a31f2e71b9f4a511efb49461541f141ff077', class: "pn-card-image" }, hAsync("picture", { key: '869648c55b9e64091b55f501b759ffcddc33a8c5', class: "pn-card-picture", style: { '--pn-card-aspect-ratio': this.aspectRatio || 'unset' } }, hAsync("slot", { key: '9e31feb5e4c486159fb4f9ebb57cefbd7d156988', name: "image" }))), hAsync("div", { key: 'e2cfd35b304c05fb569da26aa7f248ed53b1e7aa', class: "pn-card-content" }, hAsync("header", { key: 'a5730ce876dd1b5fa0c6c37ba400801530bf99ea', class: "pn-card-header" }, hAsync("div", { key: '4e9566e679185db1704e313002d20d7016558c25', class: "pn-card-tags" }, hAsync("slot", { key: '0c4863c1ef7b69ef8a333dd7ac834f76b8a3fc00', name: "tags" })), !!this.overline && hAsync("p", { key: '8129ee0e178e4db9fcbf9895e75d64c02279a0a6', class: "pn-card-label-overline" }, this.overline), !!this.label && (hAsync(TitleTag, { key: '62a8d9c1512683f3e4248eac05bf2f33e0374fe9', id: this.getTitleId(), class: "pn-card-label" }, this.label)), hAsync("slot", { key: '13f3c2e3e182ce134dc7be0af3c8c2dec1c1f751', name: "header" })), hAsync("section", { key: 'c34ddb8484423b65927ace2e0b46deed6b1d3b64', class: "pn-card-section" }, !!this.text && hAsync("p", { key: '8370b223a2af93f64eb2efd84dda0b172324be54', class: "pn-card-section-paragraph" }, this.text), hAsync("slot", { key: '363cc14089263d2e640f35707a6503aeb77ae8a6' })), hAsync("nav", { key: '5636561cc2dc0eb1a1f42d213e87e73da9a3ce98', class: "pn-card-navigation" }, this.showHref() && (hAsync("a", { key: '9c7be2037e54320ccb2668170828e7ffc8fd7d25', class: "pn-card-link", href: this.href, target: this.target, rel: this.rel, "aria-labelledby": this.getLabelledby(), onClick: event => this.handleClick(event), onFocus: event => this.handleFocus(event), onBlur: event => this.handleFocus(event) }, this.hrefLabel, hAsync("pn-icon", { key: 'd77e3349eb1ed2cb3e8e72418c70d66b93ad5b20', color: "blue700", icon: this.getIcon() }))), hAsync("slot", { key: 'c28d4208e146a77f334fc326e7abbbf53e86e028', name: "navigation" }))))));
|
|
6102
6102
|
}
|
|
6103
6103
|
static get watchers() { return {
|
|
6104
6104
|
"cardId": [{
|
|
@@ -8915,7 +8915,7 @@ class PnFooter {
|
|
|
8915
8915
|
}
|
|
8916
8916
|
}
|
|
8917
8917
|
render() {
|
|
8918
|
-
return (hAsync(Host, { key: '
|
|
8918
|
+
return (hAsync(Host, { key: '61cf8e26fec57dff5d84b3bdbf6d72cb90dcf3c2' }, hAsync("div", { key: 'b796d5ac1f8755487ca528d9ebe6422b488ad211', class: "pn-footer-row" }, hAsync("p", { key: '9605f844d588bb9beecbdf8825de7062d2307b84' }, this.getText('questions')), this.renderLink('contact')), hAsync("div", { key: 'd9c7999ad9ba1590855037c1d9c3b660f8c6baf9', class: "pn-footer-row" }, this.market !== NO && this.renderLink('terms'), this.renderLink('privacy'), this.renderLink('cookies')), hAsync("div", { key: '2fbccb619a895f09f01e5d97c9530717fe5b38b1', class: "pn-footer-row" }, hAsync("p", { key: '9505adff1fb347f7eba8c7a4db771a7ba9b5a65c' }, this.getText('info')), this.renderLink('domain'))));
|
|
8919
8919
|
}
|
|
8920
8920
|
static get style() { return pnFooterCss(); }
|
|
8921
8921
|
static get cmpMeta() { return {
|
|
@@ -8999,7 +8999,7 @@ class PnHeader {
|
|
|
8999
8999
|
return this.goBackText || translations$b[this.language || en$2];
|
|
9000
9000
|
}
|
|
9001
9001
|
render() {
|
|
9002
|
-
return (hAsync(Host, { key: '
|
|
9002
|
+
return (hAsync(Host, { key: '82364cab3b3aece27e10f06e565b8ce0d6597f14' }, hAsync("header", { key: '368dfc4db49a8903c8cad81c9b161fe25095e2d1', class: "pn-header" }, hAsync("div", { key: 'f98b1ba196ed150cc27f9136f25ad46c31d7424e', class: "pn-header-container" }, hAsync("div", { key: '6c7465e8060690aa36a4e405f640cd23bfa0c0f2', class: "pn-header-breadcrumbs", hidden: !this.showBreadcrumb() }, this.goBackHref && (hAsync("pn-text-link", { key: 'd6dc1b2b5a22e80c95d42fadcd4912de1df35bb8', label: this.getButtonText(), href: this.goBackHref, icon: arrow_left, leftIcon: true })), hAsync("slot", { key: '44f163e4552a10f1340e51752bc2d825d74391ad', name: "breadcrumb" })), hAsync("div", { key: 'afb2d897acf67744c1a0eac4d5089f40bec07d40', class: "pn-header-content" }, this.heading && hAsync("h1", { key: '8135619a44048a4072453140f6bd0e4fb5e349aa' }, this.heading), hAsync("slot", { key: 'c013b74286636fd9ebfe575161ba8829d0eac903' })), hAsync("div", { key: '5942ae47d1426f033565d20f294a9e0906600dbb', class: "pn-header-buttons", hidden: !this.hasButtons }, hAsync("slot", { key: '287ff16c616bf76f832a867ad077d1f62a29d9e0', name: "buttons" })), hAsync("slot", { key: '7e9778bf8258cae60e27ceb3c1638f759ff02e82', name: "menu" })))));
|
|
9003
9003
|
}
|
|
9004
9004
|
static get watchers() { return {
|
|
9005
9005
|
"maxWidth": [{
|
|
@@ -9634,6 +9634,68 @@ class PnInput {
|
|
|
9634
9634
|
}; }
|
|
9635
9635
|
}
|
|
9636
9636
|
|
|
9637
|
+
const pnInputChipCss = () => `${transformTag("pn-input-chip")}{display:inline-block}${transformTag("pn-input-chip")} .pn-input-chip{position:relative;font-size:1em;font-weight:500;text-align:center;display:flex;align-items:center;gap:0.25em;padding:0.5em 0.5em 0.5em 1em;border:0.0625em solid #969087;border-radius:0.5em;background-color:#ffffff;cursor:pointer;transition-property:border-color, background-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-input-chip")} .pn-input-chip{transition-duration:0s;transition-delay:0s}}${transformTag("pn-input-chip")} .pn-input-chip{outline:0.2rem solid transparent;outline-offset:0.2rem}${transformTag("pn-input-chip")} .pn-input-chip[data-icon]{padding-left:0.75em}${transformTag("pn-input-chip")} .pn-input-chip[data-icon][data-small]{padding-left:0.5em}${transformTag("pn-input-chip")} .pn-input-chip[data-icon][data-large]{padding-left:1em}${transformTag("pn-input-chip")} .pn-input-chip[data-small]{padding:0.25em 0.25em 0.25em 0.75em}${transformTag("pn-input-chip")} .pn-input-chip[data-small] .pn-input-chip-label{line-height:1.25em;font-size:0.875em}${transformTag("pn-input-chip")} .pn-input-chip[data-large]{padding:0.6875em 0.6875em 0.6875em 1.25em}${transformTag("pn-input-chip")} .pn-input-chip:hover{background-color:#effbff;border-color:#005d92}${transformTag("pn-input-chip")} .pn-input-chip:hover .pn-input-chip-label{color:#005d92}${transformTag("pn-input-chip")} .pn-input-chip:hover .pn-input-chip-icon .pn-icon-svg path{fill:#005d92}${transformTag("pn-input-chip")} .pn-input-chip:focus-visible{outline-color:#005d92;border-color:#005d92}${transformTag("pn-input-chip")} .pn-input-chip:active{background-color:#e0f8ff;border-color:#005d92}${transformTag("pn-input-chip")} .pn-input-chip:active .pn-input-chip-label{color:#0d234b}${transformTag("pn-input-chip")} .pn-input-chip:active .pn-input-chip-icon .pn-icon-svg path{fill:#0d234b}${transformTag("pn-input-chip")} .pn-input-chip:disabled{background-color:#f3f2f2;border-color:#f3f2f2;cursor:not-allowed}${transformTag("pn-input-chip")} .pn-input-chip:disabled .pn-input-chip-label{color:#5e554a;margin-right:0.5em}${transformTag("pn-input-chip")} .pn-input-chip:disabled .pn-input-chip-icon .pn-icon-svg path{fill:#5e554a}${transformTag("pn-input-chip")} .pn-input-chip-icon{flex-shrink:0;width:1.5em;height:1.5em}${transformTag("pn-input-chip")} .pn-input-chip-label{color:#005d92;line-height:1.5em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}${transformTag("pn-input-chip")} .pn-input-chip-close{flex-shrink:0;width:1.5em;height:1.5em;display:flex;align-items:center;justify-content:center}`;
|
|
9638
|
+
|
|
9639
|
+
/**
|
|
9640
|
+
* The `pn-input-chip` represents a confirmed user input value that can be removed.
|
|
9641
|
+
* It is visually similar to the `pn-choice-chip` but its only action is deletion.
|
|
9642
|
+
* Clicking anywhere on the chip removes it.
|
|
9643
|
+
*/
|
|
9644
|
+
class PnInputChip {
|
|
9645
|
+
constructor(hostRef) {
|
|
9646
|
+
registerInstance(this, hostRef);
|
|
9647
|
+
this.pnDelete = createEvent(this, "pnDelete", 7);
|
|
9648
|
+
}
|
|
9649
|
+
id = `pn-input-chip-${uuidv4()}`;
|
|
9650
|
+
/** The chip label text. */
|
|
9651
|
+
label;
|
|
9652
|
+
/** Optional value identifier emitted with the delete event. @category Native attributes */
|
|
9653
|
+
value;
|
|
9654
|
+
/** Add a leading icon to the chip. @category Features */
|
|
9655
|
+
icon;
|
|
9656
|
+
/** Use the small size for the input chip. @category Features */
|
|
9657
|
+
small = false;
|
|
9658
|
+
/** Use the large size for the input chip. @category Features */
|
|
9659
|
+
large = false;
|
|
9660
|
+
/** Disable the chip. When disabled, the chip is not interactive. @category Native attributes */
|
|
9661
|
+
disabled = false;
|
|
9662
|
+
/** Emitted when the chip is clicked (removed). */
|
|
9663
|
+
pnDelete;
|
|
9664
|
+
/**
|
|
9665
|
+
* A unique HTML ID for the input chip.
|
|
9666
|
+
* @category HTML attributes
|
|
9667
|
+
*/
|
|
9668
|
+
pnId;
|
|
9669
|
+
handleDelete = () => {
|
|
9670
|
+
if (!this.disabled) {
|
|
9671
|
+
this.pnDelete.emit({ label: this.label, value: this.value });
|
|
9672
|
+
}
|
|
9673
|
+
};
|
|
9674
|
+
getId() {
|
|
9675
|
+
return this.pnId || this.id;
|
|
9676
|
+
}
|
|
9677
|
+
render() {
|
|
9678
|
+
return (hAsync(Host, { key: '38bf6d618ac176e63fc2da44b20aa45b744c3ff8' }, hAsync("button", { key: '43a8fa2b75eedefef49ce8881c72e86cf1323486', type: "button", class: "pn-input-chip", id: this.getId(), "data-icon": !!this.icon, "data-small": this.small, "data-large": this.large, disabled: this.disabled, "aria-label": `Remove ${this.label}`, onClick: this.handleDelete }, !!this.icon && hAsync("pn-icon", { key: '53b015eba2c0a074febc78089bcdefc9cb799ad1', class: "pn-input-chip-icon", icon: this.icon }), hAsync("span", { key: '0baa4ef7ebe84ac5102f295c02ad3f0e08a6516e', class: "pn-input-chip-label" }, this.label), !this.disabled && hAsync("pn-icon", { key: '320c04a05bb38411734a77c085bd536c29296423', color: "blue700", icon: close_small }))));
|
|
9679
|
+
}
|
|
9680
|
+
static get style() { return pnInputChipCss(); }
|
|
9681
|
+
static get cmpMeta() { return {
|
|
9682
|
+
"$flags$": 512,
|
|
9683
|
+
"$tagName$": "pn-input-chip",
|
|
9684
|
+
"$members$": {
|
|
9685
|
+
"label": [1],
|
|
9686
|
+
"value": [513],
|
|
9687
|
+
"icon": [1],
|
|
9688
|
+
"small": [4],
|
|
9689
|
+
"large": [4],
|
|
9690
|
+
"disabled": [4],
|
|
9691
|
+
"pnId": [1, "pn-id"]
|
|
9692
|
+
},
|
|
9693
|
+
"$listeners$": undefined,
|
|
9694
|
+
"$lazyBundleId$": "-",
|
|
9695
|
+
"$attrsToReflect$": [["value", "value"]]
|
|
9696
|
+
}; }
|
|
9697
|
+
}
|
|
9698
|
+
|
|
9637
9699
|
const translations$9 = {
|
|
9638
9700
|
CLOSE_MODAL: {
|
|
9639
9701
|
en: 'Close dialog',
|
|
@@ -10614,7 +10676,7 @@ class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
10614
10676
|
return (hAsync(Tag, { id: id, class: { 'pn-multiselect-label': true, 'pn-multiselect-sr-only': this.compact && !compactLabel }, "data-compact": this.compact, ...attrs }, hAsync("span", null, this.label), !!this.optionsChecked()?.length && (hAsync("span", null, this.optionsCheckedTotal(), "/", this.optionsTotal()))));
|
|
10615
10677
|
}
|
|
10616
10678
|
render() {
|
|
10617
|
-
return (hAsync(Host, { key: '
|
|
10679
|
+
return (hAsync(Host, { key: 'a0ecbc763c7fe2e742a2737a13ccb25049ca5d2c' }, hAsync("fieldset", { key: 'e34a6c4a098b8509985300c6101f28810a2624e5', class: "pn-multiselect", "data-icon": !!this.icon, "data-error": this.hasError(), disabled: this.disabled }, this.renderLabel(), hAsync("div", { key: '4af7e657d83cd4eb9d1f7aef7c41e91c204e8b49', class: "pn-multiselect-group", ref: el => (this.elGroup = el) }, hAsync("div", { key: 'f5d0ab6e61dfac0c19a3ba86230c3da6e14efde5', class: "pn-multiselect-input" }, !!this.icon && hAsync("pn-icon", { key: '2bb3a5906b9624c14b912dae42ab0f266be28708', class: "pn-multiselect-icon", "data-custom": true, icon: this.icon }), hAsync("input", { key: '40bf05bdcdfc7d20d11c7d463863727e5d6aff2e', tabindex: this.search ? null : '-1', type: this.search ? 'search' : 'input', id: this.getId(), class: "pn-multiselect-element", value: this.search ? this.searchQuery : this.optionsCheckedLabels(), name: this.selectName, placeholder: this.getPlaceholder(), required: this.search ? null : this.required, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.describedBy(), "aria-controls": `${this.idOptions} ${this.search ? this.idChips : ''}`, "aria-invalid": this.hasError()?.toString(), disabled: this.disabled, readonly: !this.search, "data-compact": this.compact, onClick: () => (this.search && this.open ? null : this.toggleOpen()), onKeyDown: e => this.handleInputKeyboard(e), onBlur: e => this.handleBlur(e), onInput: e => this.search && this.setSearchQuery(e.target.value), ref: el => (this.elInput = el) }), this.compact && this.renderLabel(true), this.hasError() && (hAsync("pn-icon", { key: 'cb667952d2f8c5d2d651781f15ff74b6b775e042', class: "pn-multiselect-icon", "data-error": true, icon: alert_exclamation_circle, color: "warning" })), hAsync("button", { key: '94b05fea39ded60eab60763fdb84a9b711ae8162', id: this.idButton, type: "button", class: "pn-multiselect-button", "aria-label": this.translate(`BUTTON_${this.open ? 'CLOSE' : 'OPEN'}`), "aria-describedby": this.search ? null : this.getId(), "aria-controls": this.idOptions, "aria-expanded": this.open.toString(), onClick: () => this.toggleOpen(), ref: el => (this.elButton = el) }, hAsync("pn-icon", { key: 'eeaafee94ca176871092ceeb80d963fccc31dcec', class: "pn-multiselect-icon", icon: chevron_down, color: "blue700" }))), this.renderOptions()), hAsync("p", { key: '2b769d32ed6692b99a19c125c5177eb375095e68', id: this.idHelper, class: "pn-multiselect-text", hidden: this.hideHelpertext() }, hAsync("span", { key: 'dc43a1985211d85923e3085d44cb2b368e2582a4' }, this.helpertext), hAsync("slot", { key: 'f0f4cd86c528644a133f7c9db51251a77265e15f', name: "helpertext" })), hAsync("p", { key: '718171d4d2c510d70c562a188ef25eacf60ea039', id: this.idError, class: "pn-multiselect-text", role: "alert", hidden: this.hideError() }, hAsync("span", { key: '2b0cfd1042189fb60d96e3d43001f3ff6794cb4e' }, this.error), hAsync("slot", { key: 'e381d819a3de5c550816309f097ae37c713b604e', name: "error" })), this.search && this.renderChips(), hAsync("slot", { key: '6f7731063585b04cc851a5790ec77fff209baa03' }), this.search && (hAsync("p", { key: 'f4df41d21ebc5219a86fbc90947285635df86d13', id: this.idSr, class: "pn-multiselect-sr-only", role: "alert", "aria-live": "assertive" }, this.srMessage && hAsync("span", { key: '6d24d915b81ef53a1eb210d3c7d0a85184ea1e88' }, this.srMessage))))));
|
|
10618
10680
|
}
|
|
10619
10681
|
static get watchers() { return {
|
|
10620
10682
|
"open": [{
|
|
@@ -10807,7 +10869,7 @@ class PnOcrSearch {
|
|
|
10807
10869
|
}
|
|
10808
10870
|
}
|
|
10809
10871
|
render() {
|
|
10810
|
-
return (hAsync(Host, { key: '
|
|
10872
|
+
return (hAsync(Host, { key: 'c6f418483d78065a3a95f94f18613f76088ae279' }, hAsync("pn-search-field", { key: 'c28bff48bc802958b6c8c05f54ad9093c3b1708e', loading: this.loading, label: this.getTranslation('SEARCH_BUTTON'), button: "icon", buttonLabel: this.getTranslation('SEARCH_BUTTON'), placeholder: this.getTranslation('PLACEHOLDER_TEXT'), onSearch: e => this.handleSearch(e) }), this.renderSearchResult(), this.renderErrorMessage()));
|
|
10811
10873
|
}
|
|
10812
10874
|
static get style() { return pnOcrSearchCss(); }
|
|
10813
10875
|
static get cmpMeta() { return {
|
|
@@ -11121,7 +11183,7 @@ class PnPageNav {
|
|
|
11121
11183
|
}
|
|
11122
11184
|
/* ---------------------------------------/DROPDOWN LOGIC--------------------------------------- */
|
|
11123
11185
|
render() {
|
|
11124
|
-
return (hAsync(Host, { key: '
|
|
11186
|
+
return (hAsync(Host, { key: '57c1d7248ca2704b6acf675cfd9648d5d2afcf60' }, hAsync("div", { key: 'b02d7389cb66d185ff1d72674a3ce2d2c3a81e76', class: "pn-page-nav-wrapper" }, hAsync("nav", { key: '60d1d6974945dd5971a967d92886c4c4a3a5b4ff', class: "pn-page-nav" }, this.dropdownActive && (hAsync("button", { key: '6ce020ca42332cd760c410b6144f2317fa95f239', type: "button", class: this.dropdownButtonClasses(), onClick: () => this.toggleDropdown(), "aria-controls": "page-nav-dropdown", "aria-expanded": `${this.dropdownOpen}` }, this.dropdown, hAsync("pn-icon", { key: 'd2b750dc24022e5b1b5425b4b2a76dcba0c26c69', icon: chevron_down, color: "white", small: true }), hAsync("div", { key: '1257070fcbcfcbe08142b379466f7fd7dc3d37ee', class: "pn-page-nav-divider" }))), hAsync("ul", { key: 'd72c186854c5a679bb9395c7aa9f0dfe469b8f14', class: "pn-page-nav-items" }, hAsync("slot", { key: 'ba7a508c841b594466bdadf1bf904cadef5b2bc9' }), hAsync("li", { key: 'c50294022952d8168886d816509a0297c262071c', class: "pn-pn-bg pn-pn-active", role: "presentation" }), hAsync("li", { key: 'a2dfc8bb63575feabb0a58caae1e8ae76e873943', class: "pn-pn-bg pn-pn-hover", role: "presentation" }))), this.showScrollArrows && (hAsync("div", { key: '5e99c2cc1d1122091b2286e4fd9c54cb0734fb59', class: this.scrollArrowClasses() }, hAsync("button", { key: 'a92f375c45a6705154b58dd5ca8df03cf6010a6f', class: "pn-pn-arrow-left", onClick: () => this.scroll(-120), tabindex: "-1" }, hAsync("pn-icon", { key: '58413aff678f1b3a4d17a3693261fc9f3110d8cc', icon: arrow_left, color: "white" })), hAsync("button", { key: '2a83e1480087752eacebdf5c35fcfbea3fa3cb8d', class: "pn-pn-arrow-right", onClick: () => this.scroll(120), tabindex: "-1" }, hAsync("pn-icon", { key: 'fde8949b978be59ae2d9c5ab44ce286b72c35790', icon: arrow_right, color: "blue700" }))))), this.dropdownActive && (hAsync("ul", { key: '802117bef707c98683b3ed30449897ac13d6af05', id: this.navid, class: this.dropdownClasses() }, hAsync("slot", { key: '414852b90620a09a11f9a4c3b1d7d4809b6f8487', name: "dropdown-item" })))));
|
|
11125
11187
|
}
|
|
11126
11188
|
static get watchers() { return {
|
|
11127
11189
|
"value": [{
|
|
@@ -11195,7 +11257,7 @@ class PnPageNavDropdownItem {
|
|
|
11195
11257
|
}
|
|
11196
11258
|
render() {
|
|
11197
11259
|
const TagName = this.getTagName();
|
|
11198
|
-
return (hAsync("li", { key: '
|
|
11260
|
+
return (hAsync("li", { key: 'a092dbd0ea2bead9b2d974cadf80f74190a0d14e' }, hAsync(TagName, { key: 'd0d9542e100b59c39ced2612c9b279d7d07bd876', href: this.href || '#', class: this.setClassnames(), type: this.getType(), onClick: e => this.select(e), tabindex: "-1" }, hAsync("slot", { key: '96f8721e300c4b32e72df20079030986d5ffee6b' }), hAsync("pn-icon", { key: 'd835de522cec9ec9f686bb9c0d30d842d4feeb80', icon: arrow_right, color: "white" })), hAsync("hr", { key: 'db691728876fa378a714eb13202922a99bd8ca46' })));
|
|
11199
11261
|
}
|
|
11200
11262
|
static get style() { return pnPageNavDropdownItemCss(); }
|
|
11201
11263
|
static get cmpMeta() { return {
|
|
@@ -11238,7 +11300,7 @@ class PnPageNavItem {
|
|
|
11238
11300
|
this.itemselection.emit(this.value);
|
|
11239
11301
|
}
|
|
11240
11302
|
render() {
|
|
11241
|
-
return (hAsync(Host, { key: '
|
|
11303
|
+
return (hAsync(Host, { key: '3bceeadfd2b66e184d7c287e0d720d8093e571fa' }, hAsync("li", { key: '58eb5671306d42c653113838c1a1ba9c96312c2d' }, hAsync("a", { key: '438609540a2a64ac3aabf8030b68056574e68551', href: this.href || '#', class: "pn-page-nav-item", onClick: e => this.select(e) }, this.icon && hAsync("pn-icon", { key: '945dd1e63943e2854290b010f088caa08f684cc4', icon: this.icon, color: "white" }), hAsync("slot", { key: 'f3a9032f5373651349135b101a23ef2dc52a52a9' })))));
|
|
11242
11304
|
}
|
|
11243
11305
|
static get style() { return pnPageNavItemCss(); }
|
|
11244
11306
|
static get cmpMeta() { return {
|
|
@@ -11482,7 +11544,7 @@ class PnPagination {
|
|
|
11482
11544
|
return (hAsync("pn-button", { arialabel: label, ariacurrent: current ? 'page' : null, href: this.getUrl(page), rel: current ? null : rel, appearance: "light", small: true, icon: icon, iconOnly: true, onPnClick: ({ detail }) => this.navigate({ page, event: detail }) }));
|
|
11483
11545
|
}
|
|
11484
11546
|
render() {
|
|
11485
|
-
return (hAsync(Host, { key: '
|
|
11547
|
+
return (hAsync(Host, { key: '5c36be3d032fa0769af32e78f76ef7681b87b5b0' }, hAsync("nav", { key: '1e63a84c6f9e0b43bffd675d24d8b11e1a2e6abb', id: this.paginationId, class: "pn-pagination", "aria-label": this.label || this.translate('PAGINATION') }, this.useRowList() && (hAsync("pn-select", { key: '07e4af8aab83392cedff2587e72abab3045ccdaf', class: "pn-pagination-rows", label: this.rowsLabel || this.translate('ROWS_PAGE'), onChange: event => this.setRows(event) }, this.getRowList().map(item => (hAsync("option", { value: item, selected: this.rows === Number(item), innerHTML: `${item}` }))))), hAsync("div", { key: '6ece9af08f44edde18795c16b03b476de6682be9', class: "pn-pagination-container", "data-right": this.useRowList() }, this.renderJumpButton(), this.renderButton({ page: 1, dataAttr: 'first' }), this.renderDivider(), hAsync("ol", { key: '6c87dbecfad6aecc50c10158e17a903581902c45', class: "pn-pagination-list", ref: el => (this.listElement = el) }, this.getPagination().map(item => this.renderItem(item))), this.renderDivider(true), this.renderButton({ page: this.pages, dataAttr: 'last' }), this.renderJumpButton(true)))));
|
|
11486
11548
|
}
|
|
11487
11549
|
static get watchers() { return {
|
|
11488
11550
|
"page": [{
|
|
@@ -12040,7 +12102,7 @@ class PnRadioButton extends Mixin(animateHeightFactory) {
|
|
|
12040
12102
|
return !this.displayLabel() && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
|
|
12041
12103
|
}
|
|
12042
12104
|
render() {
|
|
12043
|
-
return (hAsync(Host, { key: '
|
|
12105
|
+
return (hAsync(Host, { key: '52305f6cf3826500739510f0cf1fd0ab2abc7dc2' }, hAsync("input", { key: 'cc4f799fb58073ca59af798601d70baf88263aca', type: "radio", id: this.getId(), class: "pn-radio-input", value: this.value, name: this.name, disabled: this.disabled, checked: this.checked, required: this.required, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-invalid": this.isInvalid()?.toString(), "aria-describedby": this.displayHelpertext() ? this.idHelpertext : null, "data-tile": this.tile, "data-expand": this.expand, onChange: event => this.pnRadioChange.emit(event), ref: el => (this.radioInput = el) }), hAsync("div", { key: '05e2a10face9b2ca1b0ced1f6f38f1173f15d1c0', class: "pn-radio", "data-tile": this.tile, "data-expand": this.expand, "data-invalid": this.isInvalid() }, hAsync("div", { key: 'b5274e03c47ac3d53103af945b3e8ce211eec827', class: "pn-radio-button" }, hAsync("div", { key: '1f4a592f7d243312e00259f67ce60836a449f42d', class: "pn-radio-outer" }, hAsync("div", { key: '05cb629b8c45724c6831271a40620ba5ec6e66ef', class: "pn-radio-inner" }))), hAsync("div", { key: 'a91835bcaa01888fd2a2b1b768def02203b58038', class: "pn-radio-content", hidden: !this.displayText() }, hAsync("label", { key: 'c11016410fd25dbb3288640ef5f239553991f0f8', htmlFor: this.getId(), class: "pn-radio-label", hidden: !this.displayLabel() }, this.label), hAsync("p", { key: '6d4d46978e2a4f326af1558c4c6dd04c3c29956b', id: this.idHelpertext, class: "pn-radio-helpertext", hidden: !this.displayHelpertext() }, this.helpertext, hAsync("slot", { key: '3167af1f4d47e1a9c8010bc9316b32c5499f66ee', name: "helpertext" })), hAsync("slot", { key: '1a4b466d8a8ba4e06ae96977e33fad1c502d5ea2' })), this.displayIcon() && hAsync("pn-icon", { key: '67f80f5c1db91e7310cf5baefdf6f3c346c83397', icon: this.icon, color: "gray900" }), hAsync("div", { key: 'e296239a734c33c40035b489d79b1edf44f1a2b7', class: "pn-radio-container", "data-open": this.checked, hidden: !this.displayContent(), style: { height: '0px' }, ref: el => (this.contentArea = el) }, hAsync("div", { key: 'f6245b5b2c9611da4b59a3fdb3047fe8365f1678', class: "pn-radio-area" }, hAsync("slot", { key: 'b985712da1ea4504025d17cc507588f14d9ebfff', name: "content" }))))));
|
|
12044
12106
|
}
|
|
12045
12107
|
static get watchers() { return {
|
|
12046
12108
|
"radioid": [{
|
|
@@ -12427,7 +12489,7 @@ class PnRange {
|
|
|
12427
12489
|
this.setValue(numberValue, this.pressControl === 'end');
|
|
12428
12490
|
}
|
|
12429
12491
|
render() {
|
|
12430
|
-
return (hAsync(Host, { key: '
|
|
12492
|
+
return (hAsync(Host, { key: '7b15d5fd890496496ef2056fe05d84726ca469fb' }, hAsync("div", { key: '61d8b45ca3ccf77cdafed4ba1b810c171ed7fc53', class: "pn-range", "data-markers": !!this.markers?.length, "data-input": this.input }, hAsync("div", { key: 'e7c83db6b00415406d2906b48d0e502b241419ba', class: "pn-range-header", "data-input": this.input }, this.label && (hAsync("label", { key: '11a45aa1c4559e8a067f3f795e6c471d1a208079', htmlFor: this.pnId, class: "pn-range-label" }, hAsync("span", { key: '70f0c5a768b9524c2b029d723dc8440396ab9e73' }, this.label))), this.multiple && this.labelEnd && (hAsync("label", { key: '87c879956b9c056e94e520160d2d5ce101156bdb', htmlFor: this.pnIdEnd, class: "pn-range-label" }, hAsync("span", { key: '19cef5a35f5af8d7572bd25b8c585142090e01eb' }, this.labelEnd)))), this.renderPrefix(), hAsync("div", { key: 'fa7fcce195c3ec0f59f68223235991c78b0cd1e5', class: "pn-range-group", "data-pressing": this.isPressing }, this.renderRangeInput(), this.multiple && (hAsync(Fragment, { key: 'b8cfb75f9e26ca87cfcea6c9ac86843b83dd7f65' }, this.renderRangeInput(true), hAsync("input", { key: '6ae36cdd478fa192f7c131e6b1dbdbe4423beb31', id: this.idInputHidden, type: "range", class: "pn-range-overlay-input", ...this.commonAttrs(), "aria-invalid": this.hasError().toString(), hidden: true, tabIndex: -1, ...this.setListeners(true) }))), hAsync("div", { key: '87fa2359de2cb4ad694a5637e86105ddeb001d83', class: "pn-range-track", "data-multiple": this.multiple, "aria-hidden": "true" }), this.renderTooltip(), this.multiple && this.renderTooltip(true), !!this.markers?.length && (hAsync("ul", { key: '7fba4903d152f1597916a6ca960d0ead94108705', "aria-hidden": "true", class: "pn-range-markers" }, this.markers.map(({ label, value }) => (hAsync("li", { class: "pn-range-markers-item", "data-min": this.calcPercentage(value) === this.min, "data-max": this.calcPercentage(value) === this.max, style: { '--pn-range-marker-position': `${this.calcPercentage(value)}%` } }, hAsync("span", { class: "pn-range-markers-label", "data-active": this.isActiveMarker(value) }, this.getMarkerLabel({ value, label })))))))), this.renderSuffix(), !!this.markers?.length && (hAsync("datalist", { key: 'b14372658a0fef24130fb285de78833828db1690', id: this.idDatalist }, this.markers.map(({ label, value }) => (hAsync("option", { value: value, label: label === null ? null : label }))))), hAsync("p", { key: 'b69de56bb0a97f7a60a7cf7d68e52feb21a5af1b', id: this.idHelpertext, class: "pn-range-message", hidden: !this.hasHelperText() || this.hasErrorMessage() }, hAsync("span", { key: 'd0a03b481006198b487144d0552b1719bf845f67' }, this.helpertext), hAsync("slot", { key: 'e4c4698135491e6af33df77a7d0108f8c0aa0840', name: "helpertext" })), hAsync("p", { key: '9f462d515aeedfa4c28d0214afa9dba5ec10225e', id: this.idError, class: "pn-range-message pn-range-error", role: "alert", hidden: !this.hasErrorMessage() }, hAsync("span", { key: 'cbf21fa15da09a99e7d6daf01e5b497dec7d437c' }, this.error), hAsync("slot", { key: '93f9afd84d778eebf53d73531084c18fa583ee84', name: "error" })))));
|
|
12431
12493
|
}
|
|
12432
12494
|
static get watchers() { return {
|
|
12433
12495
|
"value": [{
|
|
@@ -12779,7 +12841,7 @@ class PnSearchField {
|
|
|
12779
12841
|
return this.searchSimple() ? 'outlined' : null;
|
|
12780
12842
|
}
|
|
12781
12843
|
render() {
|
|
12782
|
-
return (hAsync(Host, { key: '
|
|
12844
|
+
return (hAsync(Host, { key: 'aa01f135ec98eed061d33617a5d21fb75407a917' }, hAsync("div", { key: '17161eac733e7f46c26524baf0508292b1575712', class: "pn-search-field", "data-inline": this.searchAuto(), "data-loading": this.loading, "data-searching": !!this.value, "data-jumbo": this.searchJumbo() }, hAsync("div", { key: '12a771d29c021a6c83fe9aa152f8367c7f20f2e3', class: "pn-search-field-container" }, hAsync("input", { key: 'b5ce3770f1ef6d53ee904ef40894eb91c76c96b4', class: "pn-search-field-input", id: this.getId(), type: "search", value: this.value, name: this.name, placeholder: this.placeholder, autocomplete: this.autocomplete, list: this.list, required: this.required, disabled: this.disabled, "aria-label": this.label, "aria-labelledby": this.getAriaLabelledby(), onKeyDown: e => this.emitSearch({ button: e }), onInput: e => this.setVal(e) }), hAsync("div", { key: 'f1922be073a70bbf54f67b7adc793c240b212769', class: "pn-search-field-inline" }, this.searchAuto() && (hAsync("pn-button", { key: '497b71cf5c3a1403789a4746b92da1b6f72f6341', class: "pn-search-field-button", type: "button", appearance: "light", small: true, icon: search, iconOnly: true, arialabel: this.getButtonLabel(), noTab: this.loading, onPnClick: e => this.emitSearch({ click: e.detail }) })), !this.disabled && (hAsync("pn-button", { key: 'd1591b1d364e9da38129099a7f2841282c0d224e', small: true, class: "pn-search-field-clear", type: "button", appearance: "light", icon: close_small, iconOnly: true, arialabel: this.translate('CLEAR'), noTab: !this.value || this.loading, onPnClick: () => this.clearInput() })), this.searchAuto() && hAsync("pn-spinner", { key: '205a3761b7637381f9ea50c4e28c6734f27558f3', class: "pn-search-field-spinner" }))), !this.searchAuto() && (hAsync("pn-button", { key: '0b41069b9d9554c196e32289e82192137cd8059e', class: "pn-search-field-submit", label: this.getButtonLabel(), tooltip: this.buttonTooltip, appearance: this.searchButtonAppearance(), variant: this.searchButtonVariant(), icon: search, iconOnly: this.searchSimple() || this.searchJumbo(), arialabel: this.searchSimple() || this.searchJumbo() ? this.getButtonLabel() : null, loading: this.loading, onPnClick: e => this.emitSearch({ click: e.detail }) })))));
|
|
12783
12845
|
}
|
|
12784
12846
|
static get style() { return pnSearchFieldCss(); }
|
|
12785
12847
|
static get cmpMeta() { return {
|
|
@@ -12848,7 +12910,7 @@ class PnSegment {
|
|
|
12848
12910
|
return this.pnId || this.segmentid || this.id;
|
|
12849
12911
|
}
|
|
12850
12912
|
render() {
|
|
12851
|
-
return (hAsync(Host, { key: '
|
|
12913
|
+
return (hAsync(Host, { key: '035a10616c69c6c25f0edcff2a31532138684e99', onMouseEnter: (event) => this.handleHover(event) }, hAsync("input", { key: 'd256c8e01319f349339beafe2257ff2b2ebfbf08', class: "pn-segment", id: this.getId(), name: this.name, checked: this.selected, type: "radio", value: this.value, disabled: this.disabled }), hAsync("label", { key: '1bd57da75f8c9de454777d4bdcc22f23703c9d7e', htmlFor: this.getId(), class: "pn-segment-label" }, this.icon && hAsync("pn-icon", { key: 'f5c399f939fcad384b18c1de782fa542f3cf0ee9', icon: this.icon, color: "blue700" }), hAsync("span", { key: 'e0484e6a5357c24a2fa61bdb63245703a8db9cda', class: "pn-segment-text" }, this.label, hAsync("slot", { key: '1c2e2d941fefd272ea58fdcd0b98c0909eccfd5f' })))));
|
|
12852
12914
|
}
|
|
12853
12915
|
static get style() { return pnSegmentCss(); }
|
|
12854
12916
|
static get cmpMeta() { return {
|
|
@@ -12994,7 +13056,7 @@ class PnSegmentedControl {
|
|
|
12994
13056
|
}
|
|
12995
13057
|
/*---------------------------------------/SCROLL ARROW LOGIC-------------------------------------------*/
|
|
12996
13058
|
render() {
|
|
12997
|
-
return (hAsync(Host, { key: '
|
|
13059
|
+
return (hAsync(Host, { key: '314c016bb1daea417c741babc236f8de14b9ab21' }, hAsync("div", { key: '10af3eb77723a2f99d6e665e6340caf9aaf03d27', class: "pn-segmented-control", ref: el => (this.segmentContainer = el) }, hAsync("slot", { key: '516890ccb71a58628d1f527272424b295c8959ab' }), hAsync("div", { key: 'f0f162d91a3c14a93b60195492978f03b41a0ecf', class: "pn-sc-bg", "data-active": true, ref: el => (this.activeBg = el) }), hAsync("div", { key: '9ca1016209402986a1702db3f50f9d52d913d249', class: "pn-sc-bg", "data-hover": true, ref: el => (this.hoverBg = el) })), hAsync("div", { key: '61d56ebba096df1a0cfab0aea8aa52059c62d13e', class: "pn-sc-arrows", "data-left": this.showLeftArrow, "data-right": this.showRightArrow, hidden: !this.showScrollArrows }, hAsync("button", { key: '1da8665af3d990175b92e50cf83e01adca082909', "aria-label": "Left", class: "pn-sc-arrow pn-sc-arrow-left", onClick: () => this.scroll(-120), tabindex: "-1" }, hAsync("pn-icon", { key: '3e78658670b082a938a5f976ea34b51449d669af', icon: arrow_left })), hAsync("button", { key: '03fad3f5c772b282850098e31d8ea717f5efb054', "aria-label": "Right", class: "pn-sc-arrow pn-sc-arrow-right", onClick: () => this.scroll(120), tabindex: "-1" }, hAsync("pn-icon", { key: '659dfab232a3256a9819cdf4ec34445f9bbfa875', icon: arrow_right })))));
|
|
12998
13060
|
}
|
|
12999
13061
|
static get watchers() { return {
|
|
13000
13062
|
"value": [{
|
|
@@ -13142,7 +13204,7 @@ class PnSelect {
|
|
|
13142
13204
|
return (hAsync("label", { htmlFor: this.getId(), class: "pn-select-label", "data-compact": this.compact, "data-icon": !!this.icon }, hAsync("span", null, this.label)));
|
|
13143
13205
|
}
|
|
13144
13206
|
render() {
|
|
13145
|
-
return (hAsync(Host, { key: '
|
|
13207
|
+
return (hAsync(Host, { key: 'c00c913a1786719ef71800ed15adaf0dd47577ff' }, hAsync("div", { key: 'c2ee0553f2c130e12e7bc5bcfb611d457071cdec', class: "pn-select", "data-error": this.hasError() }, !this.compact && this.renderLabel(), hAsync("div", { key: '7e8d7a1ab89e30b870883ff50bec31dd2a38690d', class: "pn-select-input" }, this.icon && hAsync("pn-icon", { key: '772eb356db3cdf4fd04a67e1666ddb98799d40c0', class: "pn-select-icon", icon: this.icon, "data-custom": true, "aria-hidden": "true" }), this.hasError() && (hAsync("pn-icon", { key: '03ccbd0952abb83cc4828ad6bfca777e1544f7a6', class: "pn-select-icon", icon: alert_exclamation_circle, color: "warning", "data-error": true, "aria-hidden": "true" })), hAsync("select", { key: '46db113874c38b6f2ae6a42fbc63d9a9654a9dc1', id: this.getId(), class: "pn-select-element", name: this.name, form: this.form, autocomplete: this.autocomplete, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.getAriaDescribedby(), "aria-invalid": this.hasError().toString(), disabled: this.disabled, "data-compact": this.compact }, hAsync("slot", { key: '8253ace83c8f6454d8bae7550895768d4e53f809' })), this.compact && this.renderLabel(), hAsync("pn-icon", { key: '88b094bd13b0d9cf912103427722e8be9ea2b687', class: "pn-select-icon", icon: chevron_down, color: "blue700", "data-default": true, "aria-hidden": "true" })), hAsync("p", { key: '03009e2b484ade6fadb9e20f161cfc50964db43a', id: this.idHelper, class: "pn-select-text", hidden: this.hideHelpertext() }, hAsync("span", { key: '2620e53c70c4ab95efc9924faa1a3ea298ec741b' }, this.helpertext), hAsync("slot", { key: 'bd9798ba17632021ce177292cc022f57ae52193f', name: "helpertext" })), hAsync("p", { key: '6ba88b6a3884430e7c263803ece5000adb08abe7', id: this.idError, class: "pn-select-text", role: "alert", hidden: this.hideError() }, hAsync("span", { key: 'dcc53f692bce2eaa5460075b9a1e191f29a777ad' }, this.error), hAsync("slot", { key: '0cf932dadffd1df3958e400a08c090483fc7c397', name: "error" })))));
|
|
13146
13208
|
}
|
|
13147
13209
|
static get watchers() { return {
|
|
13148
13210
|
"selectId": [{
|
|
@@ -13179,6 +13241,119 @@ class PnSelect {
|
|
|
13179
13241
|
}; }
|
|
13180
13242
|
}
|
|
13181
13243
|
|
|
13244
|
+
const pnSkeletonLoaderCss = () => `@keyframes pn-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}${transformTag("pn-skeleton-loader")}{display:block;background:transparent}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader{background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--box{width:100%;height:100%;min-height:3em;min-width:10em;border-radius:0.5em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--card{width:100%;min-width:10em;border-radius:0.5em;box-shadow:0em 0.0625em 0.125em 0em rgba(20, 20, 20, 0.11), 0em 0.1875em 0.4375em 0em rgba(0, 0, 0, 0.13);background:#ffffff;animation:none;overflow:hidden;display:flex;flex-direction:column}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-card-image{width:100%;height:10em;clip-path:ellipse(175% 100% at top center);background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-card-image{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-card-content{display:flex;flex-direction:column;gap:0.5em;padding:clamp(0.75em, 5vw, 1.5em)}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--tile{width:100%;border-radius:0.5em;box-shadow:0em 0.0625em 0.125em 0em rgba(20, 20, 20, 0.11), 0em 0.1875em 0.4375em 0em rgba(0, 0, 0, 0.13);background:#ffffff;animation:none;display:flex;flex-direction:column;align-items:center;padding:clamp(0.75em, 3vw, 1.5em);gap:clamp(1em, 5vw, 1.5em);text-align:center}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-tile-circle{width:7em;height:7em;border-radius:50%;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-tile-circle{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-tile-content{display:flex;flex-direction:column;gap:0.5em;width:100%}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--header{width:100%;background:none;animation:none;display:flex;flex-direction:column;gap:1em;padding:clamp(1em, 3vw, 2em) clamp(0.5em, 3vw, 2em)}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-header-back{width:5em;height:1em;border-radius:0.25em;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-header-back{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-header-heading{width:40%;height:2em;border-radius:0.25em;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-header-heading{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-header-subheading{width:30%;height:1em;border-radius:0.25em;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-header-subheading{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--chip{display:inline-block;width:6em;height:2.5em;border-radius:0.5em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--chip.pn-skeleton-loader--small{height:2em;width:5em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--chip.pn-skeleton-loader--large{height:2.875em;width:7em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--input{width:100%;min-width:10em;height:3em;border-radius:0.5em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--avatar{width:3em;height:3em;border-radius:50%}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--button{display:inline-block;min-width:5.5em;height:3em;border-radius:3em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic{position:relative;background:none;animation:none;pointer-events:none}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic *{color:transparent !important;text-shadow:none !important}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic img,${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic svg,${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic ${transformTag("pn-icon")},${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic ${transformTag("pn-illustration")}{visibility:hidden}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton]{position:relative;overflow:hidden}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton]::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton]::after{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=avatar]{border-radius:50%;overflow:hidden}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=button]{border-radius:3em;min-height:3em;min-width:5.5em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=button] *{visibility:hidden}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=chip]{border-radius:0.5em;min-height:2.5em;min-width:4em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=chip] *{visibility:hidden}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=text]::after{display:none}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=text]>*{position:relative;overflow:hidden;border-radius:0.25em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=text]>*::after{content:"";position:absolute;inset:0;border-radius:0.25em;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--automatic [data-skeleton=text]>*::after{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--text{width:100%;min-width:10em;height:1em;border-radius:0.25em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--paragraph{display:flex;flex-direction:column;gap:0.5em;min-width:10em;background:none;animation:none}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader--table{display:flex;flex-direction:column;gap:0.5em;min-width:10em;background:none;animation:none;border-radius:0.5em}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-table-header{width:100%;height:4em;border-radius:0.5em 0.5em 0 0;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-table-header{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-table-row{width:100%;height:3em;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-table-row:last-child{border-radius:0 0 0.5em 0.5em}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-table-row{animation:none}}${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-line{width:100%;height:1em;border-radius:0.25em;background:linear-gradient(90deg, #f3f2f2 25%, #f9f8f8 50%, #f3f2f2 75%);background-size:200% 100%;animation:pn-shimmer 1.5s infinite ease-in-out}@media (prefers-reduced-motion: reduce){${transformTag("pn-skeleton-loader")} .pn-skeleton-loader-line{animation:none}}`;
|
|
13245
|
+
|
|
13246
|
+
/** Display a skeleton loader placeholder to indicate content is loading. */
|
|
13247
|
+
class PnSkeletonLoader {
|
|
13248
|
+
constructor(hostRef) {
|
|
13249
|
+
registerInstance(this, hostRef);
|
|
13250
|
+
}
|
|
13251
|
+
/** The skeleton shape to render.
|
|
13252
|
+
*/
|
|
13253
|
+
type = 'box';
|
|
13254
|
+
/** Custom width (CSS value). Overrides type default.
|
|
13255
|
+
*/
|
|
13256
|
+
width;
|
|
13257
|
+
/** Custom height (CSS value). Overrides type default.
|
|
13258
|
+
*/
|
|
13259
|
+
height;
|
|
13260
|
+
/** Custom border-radius (CSS value). Overrides type default.
|
|
13261
|
+
*/
|
|
13262
|
+
borderRadius;
|
|
13263
|
+
/** Small size variant for type="chip".
|
|
13264
|
+
*/
|
|
13265
|
+
small = false;
|
|
13266
|
+
/** Large size variant for type="chip".
|
|
13267
|
+
*/
|
|
13268
|
+
large = false;
|
|
13269
|
+
/** Number of lines for type="paragraph" or body rows for type="table". Does not do anything for other types. Default is 3.
|
|
13270
|
+
*/
|
|
13271
|
+
lines = 3;
|
|
13272
|
+
/** When true, masks slotted content with shimmer instead of rendering a skeleton shape. The slotted content keeps its layout but text and images are hidden behind the shimmer effect.
|
|
13273
|
+
*/
|
|
13274
|
+
automatic = false;
|
|
13275
|
+
/** When true, hides the skeleton. For automatic mode, the slotted content is shown without masking.
|
|
13276
|
+
*/
|
|
13277
|
+
hide = false;
|
|
13278
|
+
getStyle() {
|
|
13279
|
+
const style = {};
|
|
13280
|
+
if (this.width)
|
|
13281
|
+
style['width'] = this.width;
|
|
13282
|
+
if (this.height)
|
|
13283
|
+
style['height'] = this.height;
|
|
13284
|
+
if (this.borderRadius)
|
|
13285
|
+
style['border-radius'] = this.borderRadius;
|
|
13286
|
+
return style;
|
|
13287
|
+
}
|
|
13288
|
+
renderParagraph() {
|
|
13289
|
+
const rows = [];
|
|
13290
|
+
for (let i = 0; i < this.lines; i++) {
|
|
13291
|
+
const isLast = i === this.lines - 1;
|
|
13292
|
+
rows.push(hAsync("div", { class: "pn-skeleton-loader-line", style: isLast ? { width: '75%' } : undefined }));
|
|
13293
|
+
}
|
|
13294
|
+
return rows;
|
|
13295
|
+
}
|
|
13296
|
+
renderTable() {
|
|
13297
|
+
const rows = [];
|
|
13298
|
+
for (let i = 0; i < this.lines; i++) {
|
|
13299
|
+
rows.push(hAsync("div", { class: "pn-skeleton-loader-table-row" }));
|
|
13300
|
+
}
|
|
13301
|
+
return rows;
|
|
13302
|
+
}
|
|
13303
|
+
render() {
|
|
13304
|
+
const style = this.getStyle();
|
|
13305
|
+
if (this.automatic) {
|
|
13306
|
+
return (hAsync(Host, null, hAsync("div", { class: {
|
|
13307
|
+
'pn-skeleton-loader--automatic': !this.hide,
|
|
13308
|
+
}, role: !this.hide ? 'status' : undefined, "aria-busy": !this.hide ? 'true' : undefined, "aria-label": !this.hide ? 'Loading' : undefined }, hAsync("slot", null))));
|
|
13309
|
+
}
|
|
13310
|
+
if (this.hide) {
|
|
13311
|
+
return hAsync(Host, { style: { display: 'none' } });
|
|
13312
|
+
}
|
|
13313
|
+
if (this.type === 'paragraph') {
|
|
13314
|
+
return (hAsync(Host, null, hAsync("div", { class: "pn-skeleton-loader pn-skeleton-loader--paragraph", style: style, role: "status", "aria-busy": "true", "aria-label": "Loading" }, this.renderParagraph())));
|
|
13315
|
+
}
|
|
13316
|
+
if (this.type === 'table') {
|
|
13317
|
+
return (hAsync(Host, null, hAsync("div", { class: "pn-skeleton-loader pn-skeleton-loader--table", style: style, role: "status", "aria-busy": "true", "aria-label": "Loading" }, hAsync("div", { class: "pn-skeleton-loader-table-header" }), this.renderTable())));
|
|
13318
|
+
}
|
|
13319
|
+
if (this.type === 'card') {
|
|
13320
|
+
return (hAsync(Host, null, hAsync("div", { class: "pn-skeleton-loader pn-skeleton-loader--card", style: style, role: "status", "aria-busy": "true", "aria-label": "Loading" }, hAsync("div", { class: "pn-skeleton-loader-card-image" }), hAsync("div", { class: "pn-skeleton-loader-card-content" }, this.renderParagraph()))));
|
|
13321
|
+
}
|
|
13322
|
+
if (this.type === 'tile') {
|
|
13323
|
+
return (hAsync(Host, null, hAsync("div", { class: "pn-skeleton-loader pn-skeleton-loader--tile", style: style, role: "status", "aria-busy": "true", "aria-label": "Loading" }, hAsync("div", { class: "pn-skeleton-loader-tile-circle" }), hAsync("div", { class: "pn-skeleton-loader-tile-content" }, hAsync("div", { class: "pn-skeleton-loader-line" }), hAsync("div", { class: "pn-skeleton-loader-line", style: { width: '75%' } })))));
|
|
13324
|
+
}
|
|
13325
|
+
if (this.type === 'header') {
|
|
13326
|
+
return (hAsync(Host, null, hAsync("div", { class: "pn-skeleton-loader pn-skeleton-loader--header", style: style, role: "status", "aria-busy": "true", "aria-label": "Loading" }, hAsync("div", { class: "pn-skeleton-loader-header-back" }), hAsync("div", { class: "pn-skeleton-loader-header-heading" }), hAsync("div", { class: "pn-skeleton-loader-header-subheading" }))));
|
|
13327
|
+
}
|
|
13328
|
+
const classes = {
|
|
13329
|
+
'pn-skeleton-loader': true,
|
|
13330
|
+
[`pn-skeleton-loader--${this.type}`]: true,
|
|
13331
|
+
'pn-skeleton-loader--small': this.small,
|
|
13332
|
+
'pn-skeleton-loader--large': this.large,
|
|
13333
|
+
};
|
|
13334
|
+
return (hAsync(Host, null, hAsync("div", { class: classes, style: style, role: "status", "aria-busy": "true", "aria-label": "Loading" })));
|
|
13335
|
+
}
|
|
13336
|
+
static get style() { return pnSkeletonLoaderCss(); }
|
|
13337
|
+
static get cmpMeta() { return {
|
|
13338
|
+
"$flags$": 772,
|
|
13339
|
+
"$tagName$": "pn-skeleton-loader",
|
|
13340
|
+
"$members$": {
|
|
13341
|
+
"type": [1],
|
|
13342
|
+
"width": [1],
|
|
13343
|
+
"height": [1],
|
|
13344
|
+
"borderRadius": [1, "border-radius"],
|
|
13345
|
+
"small": [4],
|
|
13346
|
+
"large": [4],
|
|
13347
|
+
"lines": [2],
|
|
13348
|
+
"automatic": [4],
|
|
13349
|
+
"hide": [4]
|
|
13350
|
+
},
|
|
13351
|
+
"$listeners$": undefined,
|
|
13352
|
+
"$lazyBundleId$": "-",
|
|
13353
|
+
"$attrsToReflect$": []
|
|
13354
|
+
}; }
|
|
13355
|
+
}
|
|
13356
|
+
|
|
13182
13357
|
const pnSpinnerCss = () => `${transformTag("pn-spinner")}{display:inline-block}${transformTag("pn-spinner")} .pn-spinner{--pn-spinner-size:1.5em;--pn-spinner-color:main.$blue700;height:var(--pn-spinner-size);width:var(--pn-spinner-size);display:block;animation:rotate 1s infinite;animation-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-spinner")} .pn-spinner{animation-duration:2s}}${transformTag("pn-spinner")} .pn-spinner-circle{stroke:var(--pn-spinner-color);transform-origin:center center;transform:rotate(-310deg);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:64;animation:loading 2s infinite;animation-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-spinner")} .pn-spinner-circle{animation-duration:4s}}${transformTag("pn-spinner")} .pn-spinner-dot{fill:var(--pn-spinner-color)}@keyframes loading{0%{stroke-dashoffset:55}50%{stroke-dashoffset:12}100%{stroke-dashoffset:55}}@keyframes rotate{from{transform:rotate(-180deg) scaleX(-1)}to{transform:rotate(180deg) scaleX(-1)}}`;
|
|
13183
13358
|
|
|
13184
13359
|
/** Display a spinner to indicate a loading state. */
|
|
@@ -13347,7 +13522,7 @@ class PnTab {
|
|
|
13347
13522
|
}
|
|
13348
13523
|
render() {
|
|
13349
13524
|
const Tag = this.tag;
|
|
13350
|
-
return (hAsync(Host, { key: '
|
|
13525
|
+
return (hAsync(Host, { key: '55537e72d57486887ce53f76414c3cf2f6cf8d5d' }, hAsync(Tag, { key: 'a6b04fbff9c34f49e3ef93b4d34dc7dc08fcdbc9', id: this.tabid, class: "pn-tab", ...this.renderProperties(), onClick: (e) => this.handleClick(e), onMouseEnter: (e) => this.triggerEnter(e), onFocus: (e) => this.triggerEnter(e), onMouseLeave: (e) => this.triggerLeave(e), onBlur: (e) => this.triggerLeave(e), onKeyDown: (e) => this.arrowKeyNav(e) }, !!this.icon && hAsync("pn-icon", { key: '9d7fc111d42a22dbed2f9bc3a67644d6de632e61', icon: this.icon, color: this.iconColor() }), hAsync("slot", { key: '09d51a66dada9af7263e01ea08b0717cba6f4722' }), hAsync("span", { key: '23ae59bf1b5fbb25fe3a936758402c67e47eee3a', class: "pn-tab-label" }, this.label))));
|
|
13351
13526
|
}
|
|
13352
13527
|
static get style() { return pnTabCss(); }
|
|
13353
13528
|
static get cmpMeta() { return {
|
|
@@ -13577,7 +13752,7 @@ class PnTablist {
|
|
|
13577
13752
|
return translations$3?.[prop]?.[this.language || en$2];
|
|
13578
13753
|
}
|
|
13579
13754
|
render() {
|
|
13580
|
-
return (hAsync(Host, { key: '
|
|
13755
|
+
return (hAsync(Host, { key: '5e8d5b627e77c77e6de6bc560695f1acd5b1630d' }, hAsync("nav", { key: 'a33459d6510b75b5fc72674ab18606c4806a4058', class: "pn-tablist", role: this.isMenu ? null : 'tablist', "aria-label": this.label, "data-stacked": this.stackedicons, "data-small": !this.isMenu && this.small, "data-large": this.isMenu, "data-scroll": this.showScrollArrows, ref: el => (this.tabListEl = el) }, hAsync("slot", { key: '7bc0071b838903823c0c687385cd7d3311e83111' }), hAsync("div", { key: '50a05b5c23f05341728a941f3285e33c0b4dea0b', class: "pn-tablist-line" }, hAsync("div", { key: '9f838979792831b3283e35e60328ef406a52115e', ref: el => (this.lineActive = el), class: "pn-tablist-line-item pn-tablist-line-active" }), hAsync("div", { key: '06c6f200d2aa9eab372bcf5eee3b903864b2b7ff', ref: el => (this.lineHovered = el), class: "pn-tablist-line-item pn-tablist-line-hovered" }))), hAsync("div", { key: 'a43537577c3442186c66418cbaa26d48547c0828', class: "pn-tablist-scroll" }, hAsync("pn-button", { key: '7881274a4cffa56529a8c1684d38d7bc3af7ac66', class: "pn-tablist-arrow", "data-show": this.arrowLeft, onClick: () => this.scroll(), noTab: true, appearance: "light", variant: "outlined", icon: chevron_left, iconOnly: true, arialabel: this.translate('LEFT'), small: true }), hAsync("pn-button", { key: '0f38bf167cf2c8784242439c43950e5608699bed', class: "pn-tablist-arrow", "data-show": this.arrowRight, onClick: () => this.scroll({ right: true }), noTab: true, appearance: "light", variant: "outlined", icon: chevron_right, iconOnly: true, arialabel: this.translate('RIGHT'), small: true }))));
|
|
13581
13756
|
}
|
|
13582
13757
|
static get watchers() { return {
|
|
13583
13758
|
"value": [{
|
|
@@ -13703,7 +13878,7 @@ class PnTextLink {
|
|
|
13703
13878
|
/** Set a unique html ID of the a element. @category Link attributes */
|
|
13704
13879
|
linkid;
|
|
13705
13880
|
render() {
|
|
13706
|
-
return (hAsync("a", { key: '
|
|
13881
|
+
return (hAsync("a", { key: 'c6ea5bb512bf4ea09b6003358805533d2230ec67', id: this.linkid, class: "pn-text-link", href: this.href, rel: this.rel, target: this.target, download: this.download, hreflang: this.hreflang, media: this.media, referrerPolicy: this.referrerpolicy, "data-icon": !!this.icon, "data-icon-left": this.leftIcon, "data-light": this.light }, this.label, hAsync("slot", { key: '17fa00f7ca96e51f512713cd344d9c8bfb160af1' }), this.icon && hAsync("pn-icon", { key: '99a0150b6b9be360f911c2afb66c728ae54d739b', icon: this.icon })));
|
|
13707
13882
|
}
|
|
13708
13883
|
static get style() { return pnTextLinkCss(); }
|
|
13709
13884
|
static get cmpMeta() { return {
|
|
@@ -13861,7 +14036,7 @@ class PnTextarea {
|
|
|
13861
14036
|
return (hAsync("label", { class: "pn-textarea-label", htmlFor: this.getId(), "data-compact": this.compact }, hAsync("span", null, this.label), this.maxlength >= 1 && hAsync("span", null, `${this.value?.length || 0}/${this.maxlength}`)));
|
|
13862
14037
|
}
|
|
13863
14038
|
render() {
|
|
13864
|
-
return (hAsync(Host, { key: '
|
|
14039
|
+
return (hAsync(Host, { key: '046f1fdb7dd6f834116a0488a90da361d7b91b1c' }, hAsync("div", { key: 'f0ffbb17ac4dfe2074deba72fbc26e7988dafeb6', class: "pn-textarea", "data-valid": this.valid, "data-error": this.hasError(), "data-resize": this.resize }, !this.compact && this.renderLabel(), hAsync("textarea", { key: 'aa82eb1bbe99f801941cb155fe1ee6af1f55b805', class: "pn-textarea-element", id: this.getId(), value: this.value, name: this.name, placeholder: this.compact ? this.placeholder || ' ' : this.placeholder, rows: this.rows, cols: this.cols, wrap: this.wrap, autocomplete: this.autocomplete, spellcheck: this.spellcheck, maxlength: this.maxlength, required: this.required, disabled: this.disabled, readonly: this.readonly, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.getAriaDescribedby(), "aria-invalid": this.hasError().toString(), "data-compact": this.compact, onInput: e => this.setVal(e) }), this.compact && this.renderLabel(), hAsync("p", { key: '3b258a6423b92fb8fdc411db861be42c17f0b0d1', id: this.idHelper, class: "pn-textarea-text", hidden: this.hideHelpertext() }, hAsync("span", { key: 'be839a0794224ee1766e56b09858df2050d7199a' }, this.helpertext), hAsync("slot", { key: '631642b2a335fb0009cc110f177cbe4851d5a0fb', name: "helpertext" })), hAsync("p", { key: '7f91ffb2a81e5dd9a78187d86aa71aca6e2b43d7', id: this.idError, class: "pn-textarea-text", role: "alert", hidden: this.hideError() }, hAsync("span", { key: '4d8d749e257bb292c8e0b982354e9a7add06b50b' }, this.error), hAsync("slot", { key: '7178418c4bf5cbe7b2bc8de6f586766e3cbc73c9', name: "error" })))));
|
|
13865
14040
|
}
|
|
13866
14041
|
static get watchers() { return {
|
|
13867
14042
|
"textareaid": [{
|
|
@@ -13980,7 +14155,7 @@ class PnTile {
|
|
|
13980
14155
|
this.pnTile.emit({ click: event });
|
|
13981
14156
|
}
|
|
13982
14157
|
render() {
|
|
13983
|
-
return (hAsync(Host, { key: '
|
|
14158
|
+
return (hAsync(Host, { key: '127727acb1596f91d84fce39bb15da17557ab760' }, hAsync("div", { key: 'afc40764a1e45b51127f4622758678351d6c6c4e', class: "pn-tile", "data-horizontal": this.horizontal, "data-href": !!this.url, "data-focus": this.visibleOutline, ref: el => (this.tile = el) }, hAsync("div", { key: '32546ad6c86dd3ca850b4161c5672fdfc612ccf4', class: "pn-tile-illustration", "data-circle": !!this.url, "data-icon": this.showIcon(), role: "presentation", hidden: !this.showImage() }, this.showPropIllustration() ? (hAsync("pn-illustration", { illustration: this.illustration })) : (this.showIcon() && hAsync("pn-icon", { color: "blue700", icon: this.icon })), hAsync("div", { key: '4bc8653775913c7c3f5437b724905833136d6305', class: "pn-tile-illustration-slot", hidden: !this.showSlotIllustration(), ref: el => (this.illustrationSlot = el) }, hAsync("slot", { key: '4d1658c813db7e2b4b6f2c32ce081384a576cf2d', name: "illustration" }))), hAsync("div", { key: 'f51d689d6d72a039d83adbdc28d6b6de2953e610', class: "pn-tile-text" }, hAsync("h3", { key: '904c4fb3f4578842cebef57f810314fc41e47ab5', class: "pn-tile-title" }, this.url ? (hAsync("a", { class: "pn-tile-link", href: this.url, target: this.target, rel: !this.rel && this.isExternal() ? 'noopener noreferrer' : this.rel, onClick: e => this.clickHandler(e), onFocus: event => this.handleFocus(event), onBlur: event => this.handleFocus(event) }, this.label)) : (this.label), this.isExternal() && hAsync("pn-icon", { key: '1bbebd1324580d07ef646a272b0f73396a6ff7db', icon: open_in_new, small: true, color: "blue700" })), hAsync("div", { key: 'b223d1cda348abe5dc4c07e4d52d33580b6fdf67', class: "pn-tile-slot" }, !!this.text && hAsync("p", { key: '6e79f2654198dfe5d1f3dab7cd0527174393b00e', class: "pn-tile-paragraph" }, this.text), hAsync("slot", { key: '33a4dfe4e18147785372a56c19b78e8961ad1ccb' }))))));
|
|
13984
14159
|
}
|
|
13985
14160
|
static get style() { return pnTileCss(); }
|
|
13986
14161
|
static get cmpMeta() { return {
|
|
@@ -14274,7 +14449,7 @@ class PnToggleSwitch {
|
|
|
14274
14449
|
return !this.displayLabel() && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
|
|
14275
14450
|
}
|
|
14276
14451
|
render() {
|
|
14277
|
-
return (hAsync(Host, { key: '
|
|
14452
|
+
return (hAsync(Host, { key: 'a3363d23f18ca6fd7e9240dcaa46946cda07dd7b' }, hAsync("div", { key: '203140db6d9953527ba4f15e7289bffb2e69a2a1', class: "pn-toggle" }, hAsync("div", { key: 'dac906f74e8aa9899bcb1c99ee53e82695f5a280', class: "pn-toggle-content" }, this.label && (hAsync("label", { key: 'fecf18137bbec21e45feb4380f6c0ebdd0dae01a', htmlFor: this.getId(), class: "pn-toggle-label" }, hAsync("span", { key: '176e29c2756be27e0975690fe0d5f555b382ef6f' }, this.label))), hAsync("p", { key: '865da739546b4f5214fdb63d22a1ea23f1029203', id: this.idHelper, class: "pn-toggle-helper", hidden: !this.showHelpertext() }, this.hasHelpertextProp() && hAsync("span", { key: 'c958031faa669b81215300bd4bc2b31fed018e1a' }, this.helpertext), hAsync("slot", { key: '01267d6e878a089a7174e2747cd232fd9a250f28', name: "helpertext" }))), hAsync("div", { key: 'e3f74dd8febd161788f7a9d197e4216cfa00513e', class: "pn-toggle-button", "data-small": this.small, "data-large": this.large, "data-loading": this.loading }, hAsync("input", { key: '2e9627c525e29bf561072b6d5578b379cba5f597', id: this.getId(), class: "pn-toggle-element", type: "checkbox", name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.describedBy() }), hAsync("div", { key: '45c2b0269215a6ffa48654541f81d70f33eb57d3', class: "pn-toggle-bg" }), hAsync("div", { key: '684e373a709db9877993c18f29eefc68e6f74585', class: "pn-toggle-circle" }, hAsync("svg", { key: 'e918edb5254603543bc20d639164c05f56db1c54', class: "pn-toggle-check", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, hAsync("polyline", { key: '4f5441441932cd5e645686a8226ddd6a9744b47c', points: "4,12 9,17 20,6", "stroke-width": "3" })), hAsync("pn-spinner", { key: 'a0d94d932142f174c009bf0fb61d23714f9f700d', size: this.getSpinnerSize() }))))));
|
|
14278
14453
|
}
|
|
14279
14454
|
static get watchers() { return {
|
|
14280
14455
|
"pnId": [{
|
|
@@ -14961,7 +15136,7 @@ class PnZipcodeSearch {
|
|
|
14961
15136
|
}
|
|
14962
15137
|
}
|
|
14963
15138
|
render() {
|
|
14964
|
-
return (hAsync(Host, { key: '
|
|
15139
|
+
return (hAsync(Host, { key: '604fc6f9244f665ee3aec5411ed21c475e103755' }, hAsync("pn-search-field", { key: '80704adf3156c3ad8b0430cff195344ae2e31536', label: this.translation('PLACEHOLDER_TEXT'), value: this.value, searchid: this.searchId, loading: this.loading, button: "icon", buttonLabel: this.translation('SEARCH'), placeholder: this.translation('PLACEHOLDER_TEXT'), onSearch: e => this.handleSearch(e.detail) }), this.renderSearchResult(), this.renderErrorMessage()));
|
|
14965
15140
|
}
|
|
14966
15141
|
static get style() { return pnZipcodeSearchCss(); }
|
|
14967
15142
|
static get cmpMeta() { return {
|
|
@@ -15001,6 +15176,7 @@ registerComponents([
|
|
|
15001
15176
|
PnIcon,
|
|
15002
15177
|
PnIllustration,
|
|
15003
15178
|
PnInput,
|
|
15179
|
+
PnInputChip,
|
|
15004
15180
|
PnModal,
|
|
15005
15181
|
PnMultiselect,
|
|
15006
15182
|
PnOcrSearch,
|
|
@@ -15019,6 +15195,7 @@ registerComponents([
|
|
|
15019
15195
|
PnSegment,
|
|
15020
15196
|
PnSegmentedControl,
|
|
15021
15197
|
PnSelect,
|
|
15198
|
+
PnSkeletonLoader,
|
|
15022
15199
|
PnSpinner,
|
|
15023
15200
|
PnTab,
|
|
15024
15201
|
PnTable,
|