@pine-ds/icons 2.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cheatsheet.html +20 -4
- package/dist/cjs/index-b35d5b0f.js +1778 -0
- package/dist/cjs/index-b35d5b0f.js.map +1 -0
- package/dist/cjs/index.cjs.js +12 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/pds-icon.cjs.entry.js +190 -0
- package/dist/cjs/pds-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/pds-icons.cjs.js +25 -0
- package/dist/cjs/pds-icons.cjs.js.map +1 -0
- package/dist/cjs/utils-395a38b7.js +81 -0
- package/dist/cjs/utils-395a38b7.js.map +1 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/pds-icon/pds-icon.css +22 -0
- package/dist/collection/components/pds-icon/pds-icon.js +186 -0
- package/dist/collection/components/pds-icon/pds-icon.js.map +1 -0
- package/dist/collection/components/pds-icon/request.js +29 -0
- package/dist/collection/components/pds-icon/request.js.map +1 -0
- package/dist/collection/components/pds-icon/svg/blog-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/flash-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/flash.svg +1 -0
- package/dist/collection/components/pds-icon/svg/form-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/mail-filled.svg +1 -0
- package/dist/collection/components/pds-icon/svg/map.svg +1 -0
- package/dist/collection/components/pds-icon/svg/publish.svg +1 -0
- package/dist/collection/components/pds-icon/svg/wrench.svg +1 -0
- package/dist/collection/components/pds-icon/test/pds-icon.e2e.js +10 -0
- package/dist/collection/components/pds-icon/test/pds-icon.e2e.js.map +1 -0
- package/dist/collection/components/pds-icon/test/pds-icon.spec.js +70 -0
- package/dist/collection/components/pds-icon/test/pds-icon.spec.js.map +1 -0
- package/dist/collection/components/pds-icon/utils.js +81 -0
- package/dist/collection/components/pds-icon/utils.js.map +1 -0
- package/dist/collection/components/pds-icon/validate.js +44 -0
- package/dist/collection/components/pds-icon/validate.js.map +1 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/docs.d.ts +421 -0
- package/dist/docs.json +95 -0
- package/dist/esm/index-8effeb27.js +1749 -0
- package/dist/esm/index-8effeb27.js.map +1 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +11 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/pds-icon.entry.js +186 -0
- package/dist/esm/pds-icon.entry.js.map +1 -0
- package/dist/esm/pds-icons.js +20 -0
- package/dist/esm/pds-icons.js.map +1 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/utils-a0ad61d0.js +75 -0
- package/dist/esm/utils-a0ad61d0.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +21 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +11 -0
- package/dist/pds-icons/index.esm.js +2 -0
- package/dist/pds-icons/index.esm.js.map +1 -0
- package/dist/pds-icons/p-91678731.entry.js +2 -0
- package/dist/pds-icons/p-91678731.entry.js.map +1 -0
- package/dist/pds-icons/p-a3383818.js +3 -0
- package/dist/pds-icons/p-a3383818.js.map +1 -0
- package/dist/pds-icons/p-dc5765cb.js +2 -0
- package/dist/pds-icons/p-dc5765cb.js.map +1 -0
- package/dist/pds-icons/pds-icons.esm.js +2 -0
- package/dist/pds-icons/pds-icons.esm.js.map +1 -0
- package/dist/pds-icons.json +61 -1
- package/dist/pds-icons.symbols.svg +9 -1
- package/dist/svg/blog-filled.svg +1 -0
- package/dist/svg/flash-filled.svg +1 -0
- package/dist/svg/flash.svg +1 -0
- package/dist/svg/form-filled.svg +1 -0
- package/dist/svg/mail-filled.svg +1 -0
- package/dist/svg/map.svg +1 -0
- package/dist/svg/publish.svg +1 -0
- package/dist/svg/wrench.svg +1 -0
- package/dist/types/components/pds-icon/pds-icon.d.ts +37 -0
- package/dist/types/components/pds-icon/request.d.ts +2 -0
- package/dist/types/components/pds-icon/utils.d.ts +24 -0
- package/dist/types/components/pds-icon/validate.d.ts +2 -0
- package/dist/types/components.d.ts +71 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/stencil-public-runtime.d.ts +1652 -0
- package/icons/index.d.ts +9 -1
- package/icons/index.js +9 -1
- package/icons/index.mjs +9 -1
- package/icons/package.json +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/access-key.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/add-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/add-image.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/add-small.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/add.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/ai-sparkle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/ai-writer-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/ai-writer.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/align-center.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/align-justify.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/align-left.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/align-right.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/analytics-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/analytics-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/app-store.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/archive.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/arrow-corner.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/arrow-down.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/arrow-left.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/arrow-right.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/arrow-up.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/assessment.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/at-sign.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/attach.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/automations.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/ban.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/bank.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/bell.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/blog.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/bold.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/broadcast.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/calendar-date.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/calendar-schedule.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/calendar-simple.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-amex.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-apple-card.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-diners-club.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-discover.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-gpay-card.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-mastercard.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-paypal.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-stripe.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-bw-visa.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/card-update.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/caret-down.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/caret-left.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/caret-right.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/caret-up.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/cart-add.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/cart.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/certificate.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/check-circle-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/check-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/check.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-1.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-2.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-3.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-4.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-5.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-6.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-7.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-8.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/circle-9.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/clock.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/closed-captions.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/code.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/color.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/columns.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/comment.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/connect.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/contact.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/contacts-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/contacts-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/conversation.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/copy.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/coupon.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/course.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/creator-studio-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/creator-studio.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/credit-card.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/custom-field.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/customize.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/danger-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/danger.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/dashboard-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/dashboard-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/delete-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/delete-key.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/delete-x.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/dollar-sign.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/dot-menu-horizontal.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/down-small.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/download.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/downsell.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/draft.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/drop.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/duplicate.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/email-activity.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/emoji.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/enlarge-vertical.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/enlarge.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/expand.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/facebook-2.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/facebook.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/favorite.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/feedback.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/file-money.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/file.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/filter.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/flag.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/folder-group.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/folder.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/form-field.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/form.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/fullscreen.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/funnel.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/grant-offer.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/handle-2-vertical.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/handle-2.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/handle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/hashtag.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/heading-large.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/heading-small.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/headset.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/help-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/help-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/home-alt.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/horizontal-line.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/image.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/info-circle-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/info-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/instagram.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/ios-battery.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/ios-data.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/ios-wifi.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/italic.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/kajabi-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/kajabi-outlined.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/lab.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/launch.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/layout-grid.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/layout-list.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/left-small.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/linkedin.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/list-bullet.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/list-numbers.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/location.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/lock-alt.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/lock.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/logo-afterpay.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/loop.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/mail.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/mapped.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/margin-left.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/margin-right.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/marker-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/marker.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/marketing-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/marketing-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/menu-2.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/menu-alt.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/menu.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/merge.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/microphone-off.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/microphone.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/move-left.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/move-right.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/multi-pay.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/newsletter.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/one-off-session.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/one-time.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/partners-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/partners-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/pause-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/pause.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/payout.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/pen.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/phone-portrait.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/phone-toolbar.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/play-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/play-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/play-store.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/play.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/plug.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/present.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/preview-off.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/preview-on.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/products-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/products-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/question-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/quote.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/redo.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/refresh.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/remove-circle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/remove.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/rename.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/reset-password.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/restore.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/right-small.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/round-dollar.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/rows.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/sales-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/sales-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/scissor.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/screen-share-off.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/screen-share-on.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/search-small.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/search.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/send-message.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/sequences.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/series.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/settings-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/settings-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/share.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/skipped.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/slash-divider.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/sparkle-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/sparkle.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/speaker.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/stack.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/star.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/stop.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/stopwatch.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/strikethrough.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/subscript.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/subscriptions.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/super-admin.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/superscript.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/sync.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/tablet-landscape.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/tablet-portrait.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/text-styles.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/theme-store.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/thumbs-down-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/thumbs-down.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/thumbs-up-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/thumbs-up.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/tiktok.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/trash.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/twitter.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/underline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/undo.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/unlock.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/unmapped.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/up-small.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/upload.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/url.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/user-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/user.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/users-wm.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/users.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/video-off.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/video-on.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/warning-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/warning.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/website-filled.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/website-outline.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/window-paragraph.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/world.svg +0 -0
- /package/dist/{pds-icons → collection/components/pds-icon}/svg/youtube.svg +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export function applyPolyfills() {
|
|
2
|
+
var promises = [];
|
|
3
|
+
if (typeof window !== 'undefined') {
|
|
4
|
+
var win = window;
|
|
5
|
+
|
|
6
|
+
if (!win.customElements ||
|
|
7
|
+
(win.Element && (!win.Element.prototype.closest || !win.Element.prototype.matches || !win.Element.prototype.remove || !win.Element.prototype.getRootNode))) {
|
|
8
|
+
promises.push(import(/* webpackChunkName: "polyfills-dom" */ './dom.js'));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
var checkIfURLIsSupported = function() {
|
|
12
|
+
try {
|
|
13
|
+
var u = new URL('b', 'http://a');
|
|
14
|
+
u.pathname = 'c%20d';
|
|
15
|
+
return (u.href === 'http://a/c%20d') && u.searchParams;
|
|
16
|
+
} catch (e) {
|
|
17
|
+
return false;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
if (
|
|
22
|
+
'function' !== typeof Object.assign || !Object.entries ||
|
|
23
|
+
!Array.prototype.find || !Array.prototype.includes ||
|
|
24
|
+
!String.prototype.startsWith || !String.prototype.endsWith ||
|
|
25
|
+
(win.NodeList && !win.NodeList.prototype.forEach) ||
|
|
26
|
+
!win.fetch ||
|
|
27
|
+
!checkIfURLIsSupported() ||
|
|
28
|
+
typeof WeakMap == 'undefined'
|
|
29
|
+
) {
|
|
30
|
+
promises.push(import(/* webpackChunkName: "polyfills-core-js" */ './core-js.js'));
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
return Promise.all(promises);
|
|
34
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SystemJS 4.0.2
|
|
3
|
+
* MANUAL PATCH: remove script.crossOrigin = "anonymous"
|
|
4
|
+
* MANUAL PATCH: add conditionally apply, n.System=n.System||new u
|
|
5
|
+
*/
|
|
6
|
+
!function(){var e="undefined"!=typeof self,n=e?self:global;var t;if("undefined"!=typeof document){var e=document.querySelector("base[href]");e&&(t=e.href)}if(!t&&"undefined"!=typeof location){var e=(t=location.href.split("#")[0].split("?")[0]).lastIndexOf("/");-1!==e&&(t=t.slice(0,e+1))}var r=/\\/g,o="undefined"!=typeof Symbol,i=o&&Symbol.toStringTag,c=o?Symbol():"@";function u(){this[c]={}}var s=u.prototype;var l;s.import=function(e,n){var t=this;return Promise.resolve(t.resolve(e,n)).then(function(e){var n=function e(n,t,r){var o=n[c][t];if(o)return o;var u=[],s=Object.create(null);i&&Object.defineProperty(s,i,{value:"Module"});var l=Promise.resolve().then(function(){return n.instantiate(t,r)}).then(function(e){if(!e)throw Error("Module "+t+" did not instantiate");var r=e[1](function(e,n){o.h=!0;var t=!1;if("object"!=typeof e)e in s&&s[e]===n||(s[e]=n,t=!0);else for(var n in e){var r=e[n];n in s&&s[n]===r||(s[n]=r,t=!0)}if(t)for(var e=0;e<u.length;e++)u[e](s);return n},2===e[1].length?{import:function(e){return n.import(e,t)},meta:n.createContext(t)}:void 0);return o.e=r.execute||function(){},[e[0],r.setters||[]]});var f=l.then(function(r){return Promise.all(r[0].map(function(o,i){var c=r[1][i];return Promise.resolve(n.resolve(o,t)).then(function(r){var o=e(n,r,t);return Promise.resolve(o.I).then(function(){return c&&(o.i.push(c),!o.h&&o.I||c(o.n)),o})})})).then(function(e){o.d=e})});return f.catch(function(e){o.e=null,o.er=e}),o=n[c][t]={id:t,i:u,n:s,I:l,L:f,h:!1,d:void 0,e:void 0,er:void 0,E:void 0,C:void 0}}(t,e);return n.C||function(e,n){return n.C=function e(n,t,r){if(!r[t.id])return r[t.id]=!0,Promise.resolve(t.L).then(function(){return Promise.all(t.d.map(function(t){return e(n,t,r)}))})}(e,n,{}).then(function(){return function e(n,t,r){if(r[t.id])return;if(r[t.id]=!0,!t.e){if(t.er)throw t.er;return t.E?t.E:void 0}var o;return t.d.forEach(function(t){{var i=e(n,t,r);i&&(o=o||[]).push(i)}}),o?Promise.all(o).then(i):i();function i(){try{var e=t.e.call(f);if(e)return e=e.then(function(){t.C=t.n,t.E=null}),t.E=t.E||e;t.C=t.n}catch(e){throw t.er=e,e}finally{t.L=t.I=void 0,t.e=null}}}(e,n,{})}).then(function(){return n.n})}(t,n)})},s.createContext=function(e){return{url:e}},s.register=function(e,n){l=[e,n]},s.getRegister=function(){var e=l;return l=void 0,e};var f=Object.freeze(Object.create(null));n.System=n.System||new u;var d=s.register;s.register=function(e,n){d.call(this,e,n)},s.instantiate=function(e,n){var t=this;return".json"===e.substr(-5)?fetch(e).then(function(e){return e.text()}).then(function(e){return[[],function(n){return{execute:function(){n("default",JSON.parse(e))}}}]}):new Promise(function(r,o){var i;function c(n){n.filename===e&&(i=n.error)}window.addEventListener("error",c);var u=document.createElement("script");u.charset="utf-8",u.async=!0,u.addEventListener("error",function(){window.removeEventListener("error",c),o(Error("Error loading "+e+(n?" from "+n:"")))}),u.addEventListener("load",function(){window.removeEventListener("error",c),document.head.removeChild(u),i?o(i):r(t.getRegister())}),u.src=e,document.head.appendChild(u)})},e&&"function"==typeof importScripts&&(s.instantiate=function(e){var n=this;return new Promise(function(t,r){try{importScripts(e)}catch(e){r(e)}t(n.getRegister())})}),s.resolve=function(e,n){var o=function(e,n){if(-1!==e.indexOf("\\")&&(e=e.replace(r,"/")),"/"===e[0]&&"/"===e[1])return n.slice(0,n.indexOf(":")+1)+e;if("."===e[0]&&("/"===e[1]||"."===e[1]&&("/"===e[2]||2===e.length&&(e+="/"))||1===e.length&&(e+="/"))||"/"===e[0]){var t=n.slice(0,n.indexOf(":")+1);var r;if(r="/"===n[t.length+1]?"file:"!==t?(r=n.slice(t.length+2)).slice(r.indexOf("/")+1):n.slice(8):n.slice(t.length+("/"===n[t.length])),"/"===e[0])return n.slice(0,n.length-r.length-1)+e;var o=r.slice(0,r.lastIndexOf("/")+1)+e,i=[];var c=-1;for(var e=0;e<o.length;e++)-1!==c?"/"===o[e]&&(i.push(o.slice(c,e+1)),c=-1):"."===o[e]?"."!==o[e+1]||"/"!==o[e+2]&&e+2!==o.length?"/"===o[e+1]||e+1===o.length?e+=1:c=e:(i.pop(),e+=2):c=e;return-1!==c&&i.push(o.slice(c)),n.slice(0,n.length-r.length)+i.join("")}}(e,n||t);if(!o){if(-1!==e.indexOf(":"))return Promise.resolve(e);throw Error('Cannot resolve "'+e+(n?'" from '+n:'"'))}return Promise.resolve(o)}}();
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { g as getAssetPath } from './index-8effeb27.js';
|
|
2
|
+
|
|
3
|
+
let CACHED_MAP;
|
|
4
|
+
const addIcons = (icons) => {
|
|
5
|
+
const map = getIconMap();
|
|
6
|
+
Object.keys(icons).forEach(name => map.set(name, icons[name]));
|
|
7
|
+
};
|
|
8
|
+
const getIconMap = () => {
|
|
9
|
+
if (typeof window === 'undefined') {
|
|
10
|
+
return new Map();
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
if (!CACHED_MAP) {
|
|
14
|
+
const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
15
|
+
win.PdsIcons = win.PdsIcons || {};
|
|
16
|
+
CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();
|
|
17
|
+
}
|
|
18
|
+
return CACHED_MAP;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const getName = (iconName) => {
|
|
22
|
+
if (isStr(iconName)) {
|
|
23
|
+
iconName = toLower(iconName);
|
|
24
|
+
}
|
|
25
|
+
if (!isStr(iconName) || iconName.trim() === '') {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
const invalidChars = iconName.replace(/[a-z]|-|\d/gi, '');
|
|
29
|
+
if (invalidChars != '') {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return iconName;
|
|
33
|
+
};
|
|
34
|
+
const getNamedUrl = (iconName) => {
|
|
35
|
+
const url = getIconMap().get(iconName);
|
|
36
|
+
if (url) {
|
|
37
|
+
return url;
|
|
38
|
+
}
|
|
39
|
+
return getAssetPath(`svg/${iconName}.svg`);
|
|
40
|
+
};
|
|
41
|
+
const getUrl = (icon) => {
|
|
42
|
+
const url = getName(icon.name);
|
|
43
|
+
if (url) {
|
|
44
|
+
return getNamedUrl(url);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
48
|
+
const toLower = (val) => val.toLowerCase();
|
|
49
|
+
/**
|
|
50
|
+
* Elements inside of web components sometimes need to inherit global attributes
|
|
51
|
+
* set on the host. For example, the inner input in `ion-input` should inherit
|
|
52
|
+
* the `title` attribute that developers set directly on `ion-input`. This
|
|
53
|
+
* helper function should be called in componentWillLoad and assigned to a variable
|
|
54
|
+
* that is later used in the render function.
|
|
55
|
+
*
|
|
56
|
+
* This does not need to be reactive as changing attributes on the host element
|
|
57
|
+
* does not trigger a re-render.
|
|
58
|
+
*/
|
|
59
|
+
const inheritAttributes = (el, attributes = []) => {
|
|
60
|
+
const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
61
|
+
attributes.forEach(attr => {
|
|
62
|
+
if (el.hasAttribute(attr)) {
|
|
63
|
+
const value = el.getAttribute(attr);
|
|
64
|
+
if (value !== null) {
|
|
65
|
+
attributeObject[attr] = el.getAttribute(attr);
|
|
66
|
+
}
|
|
67
|
+
el.removeAttribute(attr);
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
return attributeObject;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export { addIcons as a, inheritAttributes as b, getName as c, getUrl as g, isStr as i };
|
|
74
|
+
|
|
75
|
+
//# sourceMappingURL=utils-a0ad61d0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"utils-a0ad61d0.js","mappings":";;AAGA,IAAI,UAA+B,CAAC;MAEvB,QAAQ,GAAG,CAAC,KAAkC;EACzD,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;EACzB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjE,EAAC;AAEM,MAAM,UAAU,GAAG;EACxB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IACjC,OAAO,IAAI,GAAG,EAAE,CAAC;GAClB;OAAO;IACN,IAAI,CAAC,UAAU,EAAE;MACf,MAAM,GAAG,GAAG,MAAa,CAAC;MAC1B,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;MAClC,UAAU,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC;KAC/D;IAED,OAAO,UAAU,CAAC;GACnB;AACH,CAAC,CAAA;MAEY,OAAO,GAAG,CAAC,QAA4B;EAClD,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE;IACnB,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;GAC9B;EAED,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;IAC9C,OAAO,IAAI,CAAC;GACb;EAED,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,CAAC,cAAc,EAAC,EAAE,CAAC,CAAC;EACzD,IAAI,YAAY,IAAI,EAAE,EAAE;IAAE,OAAO,IAAI,CAAC;GAAE;EAExC,OAAO,QAAQ,CAAC;AAClB,EAAC;AAED,MAAM,WAAW,GAAG,CAAC,QAAgB;EACnC,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;EACvC,IAAI,GAAG,EAAE;IACP,OAAO,GAAG,CAAC;GACZ;EAED,OAAO,YAAY,CAAC,OAAO,QAAQ,MAAM,CAAC,CAAC;AAC7C,CAAC,CAAC;MAcW,MAAM,GAAG,CAAC,IAAa;EAClC,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;EAC/B,IAAI,GAAG,EAAE;IACP,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;GACzB;AACH,EAAE;MAIW,KAAK,GAAG,CAAC,GAAQ,KAAoB,OAAO,GAAG,KAAK,SAAS;AACnE,MAAM,OAAO,GAAG,CAAC,GAAW,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;;MAUc,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE;EAC3E,MAAM,eAAe,GAAyB,EAAE,CAAC;EAEjD,UAAU,CAAC,OAAO,CAAC,IAAI;IACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;MACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;MACpC,IAAI,KAAK,KAAK,IAAI,EAAE;QAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;OAC/C;MACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;KAC1B;GACF,CAAC,CAAC;EAEH,OAAO,eAAe,CAAC;AACzB;;;;","names":[],"sources":["src/components/pds-icon/utils.ts"],"sourcesContent":["import { getAssetPath } from '@stencil/core';\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n\n return CACHED_MAP;\n }\n}\n\nexport const getName = (iconName: string | undefined) => {\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (icon: PdsIcon) => {\n const url = getName(icon.name);\n if (url) {\n return getNamedUrl(url);\n }\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n"],"version":3}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./cjs/index.cjs.js');
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './esm/index.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from '../types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): void;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Used to specify a nonce value that corresponds with an application's CSP.
|
|
16
|
+
* When set, the nonce will be added to all dynamically created script and style tags at runtime.
|
|
17
|
+
* Alternatively, the nonce value can be set on a meta tag in the DOM head
|
|
18
|
+
* (<meta name="csp-nonce" content="{ nonce value here }" />) which
|
|
19
|
+
* will result in the same behavior.
|
|
20
|
+
*/
|
|
21
|
+
export declare function setNonce(nonce: string): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../esm/polyfills/index.js';
|
|
4
|
+
export * from '../esm/loader.js';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pds-icons-loader",
|
|
3
|
+
"private": true,
|
|
4
|
+
"typings": "./index.d.ts",
|
|
5
|
+
"module": "./index.js",
|
|
6
|
+
"main": "./index.cjs.js",
|
|
7
|
+
"jsnext:main": "./index.es2017.js",
|
|
8
|
+
"es2015": "./index.es2017.js",
|
|
9
|
+
"es2017": "./index.es2017.js",
|
|
10
|
+
"unpkg": "./cdn.js"
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as i,h as t,H as s,a as e}from"./p-a3383818.js";import{i as n,b as r,g as o,c}from"./p-dc5765cb.js";const l=i=>{const t=document.createElement("div");t.innerHTML=i;for(let i=t.childNodes.length-1;i>=0;i--){if(t.childNodes[i].nodeName.toLowerCase()!=="svg"){t.removeChild(t.childNodes[i])}}const s=t.firstElementChild;if(s&&s.nodeName.toLowerCase()==="svg"){const i=s.getAttribute("class")||"";s.setAttribute("class",(i+" s-ion-icon").trim());if(a(s)){return t.innerHTML}}return""};const a=i=>{if(i.nodeType===1){if(i.nodeName.toLowerCase()==="script"){return false}for(let t=0;t<i.attributes.length;t++){const s=i.attributes[t].name;if(n(s)&&s.toLowerCase().indexOf("on")===0){return false}}for(let t=0;t<i.childNodes.length;t++){if(!a(i.childNodes[t])){return false}}}return true};const h=new Map;const d=new Map;const f=(i,t=false)=>{let s=d.get(i);if(!s){if(typeof fetch!="undefined"&&typeof document!=="undefined"){s=fetch(i).then((s=>{if(s.ok){return s.text().then((s=>{if(s&&t!==false){s=l(s)}h.set(i,s||"")}))}h.set(i,"")}));d.set(i,s)}else{h.set(i,"");return Promise.resolve()}}return s};const u=":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";const p=class{constructor(t){i(this,t);this.inheritedAttributes={};this.hasAriaHidden=()=>{const{el:i}=this;return i.hasAttribute("aria-hidden")&&i.getAttribute("aria-hidden")==="true"};this.ariaLabel=undefined;this.isVisible=false;this.svgContent=undefined;this.color=undefined;this.name=undefined;this.size="regular"}iconSize(){const i={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(i[this.size]){return i[this.size]}else{return this.size}}componentWillLoad(){this.inheritedAttributes=r(this.el,["aria-label"])}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}loadIcon(){if(this.isVisible){const i=o(this);if(i){if(h.has(i)){this.svgContent=h.get(i)}else{f(i).then((()=>this.svgContent=h.get(i)))}}}const i=c(this.name);if(i){this.ariaLabel=i.replace(/\-/g," ")}}render(){const{ariaLabel:i,inheritedAttributes:e}=this;const n={height:this.iconSize(),width:this.iconSize(),color:this.color};return t(s,Object.assign({"aria-label":i!==undefined&&!this.hasAriaHidden()?i:null,role:"img",style:n,class:Object.assign({},g(this.color))},e),this.svgContent?t("div",{class:"icon-inner",innerHTML:this.svgContent}):t("div",{class:"icon-inner"}))}waitUntilVisible(i,t,s){if(typeof window!=="undefined"&&window.IntersectionObserver){const e=this.io=new window.IntersectionObserver((i=>{if(i[0].isIntersecting){e.disconnect();this.io=undefined;s()}}),{rootMargin:t});e.observe(i)}else{s()}}static get assetsDirs(){return["svg"]}get el(){return e(this)}static get watchers(){return{name:["loadIcon"]}}};const g=i=>i?{"pds-color":true,[`pds-color-${i}`]:true}:null;p.style=u;export{p as pds_icon};
|
|
2
|
+
//# sourceMappingURL=p-91678731.entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["validateContent","svgContent","div","document","createElement","innerHTML","i","childNodes","length","nodeName","toLowerCase","removeChild","svgElm","firstElementChild","svgClass","getAttribute","setAttribute","trim","isValid","elm","nodeType","attributes","name","isStr","indexOf","pdsIconContent","Map","requests","getSvgContent","url","sanitize","req","get","fetch","then","rsp","ok","text","set","Promise","resolve","pdsIconCss","PdsIcon","this","inheritedAttributes","hasAriaHidden","el","hasAttribute","iconSize","sizes","small","regular","medium","large","size","componentWillLoad","inheritAttributes","connectedCallback","waitUntilVisible","isVisible","loadIcon","disconnectedCallback","io","disconnect","undefined","getUrl","has","label","getName","ariaLabel","replace","render","style","height","width","color","h","Host","Object","assign","role","class","createColorClasses","rootMargin","cb","window","IntersectionObserver","data","isIntersecting","observe"],"sources":["src/components/pds-icon/validate.ts","src/components/pds-icon/request.ts","src/components/pds-icon/pds-icon.scss?tag=pds-icon&encapsulation=shadow","src/components/pds-icon/pds-icon.tsx"],"sourcesContent":["import { isStr } from './utils';\n\nexport const validateContent = (svgContent: string) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());\n\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm as HTMLElement)) {\n return div.innerHTML;\n }\n }\n return '';\n};\n\nexport const isValid = (elm: HTMLElement) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i] as HTMLElement)) {\n return false;\n }\n }\n }\n return true;\n};\n","import { validateContent } from './validate';\n\nexport const pdsIconContent = new Map<string, string>();\nconst requests = new Map<string, Promise<any>>(); // eslint-disable-line @typescript-eslint/no-explicit-any\n\nexport const getSvgContent = (url: string, sanitize = false) => {\n let req = requests.get(url);\n\n if(!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n\n requests.set(url, req);\n } else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n return req;\n}\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n\n .pdsicon {\n fill: currentColor;\n }\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}\n","import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { getSvgContent, pdsIconContent } from './request';\nimport { getName, getUrl, inheritAttributes } from './utils';\n\n@Component({\n tag: 'pds-icon',\n assetsDirs: ['svg'],\n styleUrl: 'pds-icon.scss',\n shadow: true,\n})\nexport class PdsIcon {\n private io?: IntersectionObserver;\n private inheritedAttributes: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n @Element() el!: HTMLPdsIconElement;\n\n @State() private ariaLabel?: string;\n @State() private isVisible = false;\n @State() private svgContent?: string;\n\n /**\n *\n * The color of the icon\n *\n */\n @Prop() color?: string;\n\n /**\n * The name of the icon to use from\n * the built-in set.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The size of the icon. This can be\n * 'small', 'regular', 'medium', large, or a\n * custom value (40px, 1rem, etc)\n *\n */\n @Prop({ reflect: true }) size?:\n | 'small' // 12px\n | 'regular' // 16px\n | 'medium' // 20px\n | 'large' // 24px\n | 'auto'\n | string = 'regular'\n\n private iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes: { [key: string]: any } = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n }\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n })\n }\n\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n\n @Watch('name')\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n } else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n\n const label = getName(this.name);\n\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n }\n\n return (\n\n <Host\n aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null }\n role=\"img\"\n style={style}\n class={{\n ...createColorClasses(this.color),\n }}\n {...inheritedAttributes}\n >\n {Build.isBrowser && this.svgContent ? (\n <div class=\"icon-inner\" innerHTML={this.svgContent}></div>\n ) : (\n <div class=\"icon-inner\"></div>\n )}\n </Host>\n )\n }\n\n /*****\n * Private Methods\n ****/\n\n private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver(\n (data: IntersectionObserverEntry[]) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n },\n { rootMargin },\n ));\n\n io.observe(el);\n } else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n\n private hasAriaHidden = () => {\n const { el } = this;\n\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n }\n}\n\nconst createColorClasses = (color: string | undefined) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n };\n"],"mappings":"6GAEO,MAAMA,EAAmBC,IAC9B,MAAMC,EAAMC,SAASC,cAAc,OACnCF,EAAIG,UAAYJ,EAGhB,IAAK,IAAIK,EAAIJ,EAAIK,WAAWC,OAAS,EAAGF,GAAK,EAAGA,IAAK,CACnD,GAAIJ,EAAIK,WAAWD,GAAGG,SAASC,gBAAkB,MAAO,CACtDR,EAAIS,YAAYT,EAAIK,WAAWD,G,EAKnC,MAAMM,EAASV,EAAIW,kBACnB,GAAID,GAAUA,EAAOH,SAASC,gBAAkB,MAAO,CACrD,MAAMI,EAAWF,EAAOG,aAAa,UAAY,GACjDH,EAAOI,aAAa,SAAUF,EAAW,eAAeG,QAKxD,GAAIC,EAAQN,GAAwB,CAClC,OAAOV,EAAIG,S,EAGf,MAAO,EAAE,EAGJ,MAAMa,EAAWC,IACtB,GAAIA,EAAIC,WAAa,EAAG,CACtB,GAAID,EAAIV,SAASC,gBAAkB,SAAU,CAC3C,OAAO,K,CAGT,IAAK,IAAIJ,EAAI,EAAGA,EAAIa,EAAIE,WAAWb,OAAQF,IAAK,CAC9C,MAAMgB,EAAOH,EAAIE,WAAWf,GAAGgB,KAC/B,GAAIC,EAAMD,IAASA,EAAKZ,cAAcc,QAAQ,QAAU,EAAG,CACzD,OAAO,K,EAIX,IAAK,IAAIlB,EAAI,EAAGA,EAAIa,EAAIZ,WAAWC,OAAQF,IAAK,CAC9C,IAAKY,EAAQC,EAAIZ,WAAWD,IAAoB,CAC9C,OAAO,K,GAIb,OAAO,IAAI,EC9CN,MAAMmB,EAAiB,IAAIC,IAClC,MAAMC,EAAW,IAAID,IAEd,MAAME,EAAgB,CAACC,EAAaC,EAAW,SACpD,IAAIC,EAAMJ,EAASK,IAAIH,GAEvB,IAAIE,EAAK,CACP,UAAWE,OAAS,oBAAsB9B,WAAa,YAAa,CAElE4B,EAAME,MAAMJ,GAAKK,MAAMC,IACrB,GAAIA,EAAIC,GAAI,CACV,OAAOD,EAAIE,OAAOH,MAAMjC,IACtB,GAAIA,GAAc6B,IAAa,MAAO,CACpC7B,EAAaD,EAAgBC,E,CAE/BwB,EAAea,IAAIT,EAAK5B,GAAc,GAAG,G,CAG7CwB,EAAea,IAAIT,EAAK,GAAG,IAG7BF,EAASW,IAAIT,EAAKE,E,KACb,CACLN,EAAea,IAAIT,EAAK,IACxB,OAAOU,QAAQC,S,EAGnB,OAAOT,CAAG,EC7BZ,MAAMU,EAAa,kN,MCUNC,EAAO,M,yBAEVC,KAAAC,oBAA4C,GA8I5CD,KAAAE,cAAgB,KACtB,MAAMC,GAAEA,GAAOH,KAEf,OAAOG,EAAGC,aAAa,gBAAkBD,EAAG/B,aAAa,iBAAmB,MAAM,E,wCA5IvD,M,6EA4BhB,S,CAEL,QAAAiC,GAEN,MAAMC,EAAgC,CACpCC,MAAO,OACPC,QAAS,OACTC,OAAQ,OACRC,MAAO,QAGT,GAAIJ,EAAMN,KAAKW,MAAO,CACpB,OAAOL,EAAMN,KAAKW,K,KACb,CACL,OAAOX,KAAKW,I,EAGhB,iBAAAC,GACEZ,KAAKC,oBAAsBY,EAAkBb,KAAKG,GAAI,CAAC,c,CAGzD,iBAAAW,GACEd,KAAKe,iBAAiBf,KAAKG,GAAI,QAAQ,KACrCH,KAAKgB,UAAY,KACjBhB,KAAKiB,UAAU,G,CAInB,oBAAAC,GACE,GAAIlB,KAAKmB,GAAI,CACXnB,KAAKmB,GAAGC,aACRpB,KAAKmB,GAAKE,S,EAKd,QAAAJ,GACE,GAAuBjB,KAAKgB,UAAW,CACrC,MAAM9B,EAAMoC,EAAOtB,MACnB,GAAId,EAAK,CACP,GAAIJ,EAAeyC,IAAIrC,GAAM,CAC3Bc,KAAK1C,WAAawB,EAAeO,IAAIH,E,KAChC,CACLD,EAAcC,GAAKK,MAAK,IAAOS,KAAK1C,WAAawB,EAAeO,IAAIH,I,GAK1E,MAAMsC,EAAQC,EAAQzB,KAAKrB,MAE3B,GAAI6C,EAAO,CACTxB,KAAK0B,UAAYF,EAAMG,QAAQ,MAAO,I,EAI1C,MAAAC,GACE,MAAMF,UAAEA,EAASzB,oBAAEA,GAAwBD,KAE3C,MAAM6B,EAAQ,CACZC,OAAQ9B,KAAKK,WACb0B,MAAO/B,KAAKK,WACZ2B,MAAOhC,KAAKgC,OAGd,OAEEC,EAACC,EAAIC,OAAAC,OAAA,cACSV,IAAcL,YAAcrB,KAAKE,gBAAkBwB,EAAY,KAC3EW,KAAK,MACLR,MAAOA,EACPS,MAAKH,OAAAC,OAAA,GACAG,EAAmBvC,KAAKgC,SAEzB/B,GAEgBD,KAAK1C,WACvB2E,EAAA,OAAKK,MAAM,aAAa5E,UAAWsC,KAAK1C,aAExC2E,EAAA,OAAKK,MAAM,e,CAUX,gBAAAvB,CAAiBZ,EAAiBqC,EAAoBC,GAC5D,UAA8BC,SAAW,aAAe,OAASC,qBAAsB,CACrF,MAAMxB,EAAMnB,KAAKmB,GAAK,IAAI,OAASwB,sBAChCC,IACC,GAAIA,EAAK,GAAGC,eAAgB,CAC1B1B,EAAGC,aACHpB,KAAKmB,GAAKE,UACVoB,G,IAGJ,CAAED,eAGJrB,EAAG2B,QAAQ3C,E,KACN,CAGLsC,G,kHAWN,MAAMF,EAAsBP,GACnBA,EACJ,CACE,YAAa,KACb,CAAC,aAAaA,KAAU,MAE1B,K"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
const t="pds-icons";let n;let e;let s=false;let l=false;const o=t=>{const n=new URL(t,$t.t);return n.origin!==ht.location.origin?n.href:n.pathname};const c=(t,n="")=>{{return()=>{}}};const i=(t,n)=>{{return()=>{}}};const f="{visibility:hidden}.hydrated{visibility:inherit}";const r="http://www.w3.org/1999/xlink";const u={};const a=t=>t!=null;const d=t=>{t=typeof t;return t==="object"||t==="function"};function y(t){var n,e,s;return(s=(e=(n=t.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&s!==void 0?s:undefined}const h=(t,n,...e)=>{let s=null;let l=null;let o=false;let c=false;const i=[];const f=n=>{for(let e=0;e<n.length;e++){s=n[e];if(Array.isArray(s)){f(s)}else if(s!=null&&typeof s!=="boolean"){if(o=typeof t!=="function"&&!d(s)){s=String(s)}if(o&&c){i[i.length-1].l+=s}else{i.push(o?p(null,s):s)}c=o}}};f(e);if(n){if(n.key){l=n.key}{const t=n.className||n.class;if(t){n.class=typeof t!=="object"?t:Object.keys(t).filter((n=>t[n])).join(" ")}}}const r=p(t,null);r.o=n;if(i.length>0){r.i=i}{r.u=l}return r};const p=(t,n)=>{const e={h:0,p:t,l:n,$:null,i:null};{e.o=null}{e.u=null}return e};const $={};const m=t=>t&&t.p===$;const v=(t,n)=>{if(t!=null&&!d(t)){if(n&1){return String(t)}return t}return t};const w=t=>ct(t).m;const b=(t,n,e)=>{const s=$t.ce(n,e);t.dispatchEvent(s);return s};const S=new WeakMap;const g=(t,n,e)=>{let s=yt.get(t);if(vt&&e){s=s||new CSSStyleSheet;if(typeof s==="string"){s=n}else{s.replaceSync(n)}}else{s=n}yt.set(t,s)};const k=(t,n,e)=>{var s;const l=C(n);const o=yt.get(l);t=t.nodeType===11?t:pt;if(o){if(typeof o==="string"){t=t.head||t;let n=S.get(t);let e;if(!n){S.set(t,n=new Set)}if(!n.has(l)){{e=pt.createElement("style");e.innerHTML=o;const n=(s=$t.v)!==null&&s!==void 0?s:y(pt);if(n!=null){e.setAttribute("nonce",n)}t.insertBefore(e,t.querySelector("link"))}if(n){n.add(l)}}}else if(!t.adoptedStyleSheets.includes(o)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,o]}}return l};const j=t=>{const n=t.S;const e=t.m;const s=n.h;const l=c("attachStyles",n.k);const o=k(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(s&10){e["s-sc"]=o;e.classList.add(o+"-h")}l()};const C=(t,n)=>"sc-"+t.k;const M=(t,n,e,s,l,o)=>{if(e!==s){let c=rt(t,n);let i=n.toLowerCase();if(n==="class"){const n=t.classList;const l=x(e);const o=x(s);n.remove(...l.filter((t=>t&&!o.includes(t))));n.add(...o.filter((t=>t&&!l.includes(t))))}else if(n==="style"){{for(const n in e){if(!s||s[n]==null){if(n.includes("-")){t.style.removeProperty(n)}else{t.style[n]=""}}}}for(const n in s){if(!e||s[n]!==e[n]){if(n.includes("-")){t.style.setProperty(n,s[n])}else{t.style[n]=s[n]}}}}else if(n==="key");else if(n==="ref"){if(s){s(t)}}else if(!c&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(rt(ht,i)){n=i.slice(2)}else{n=i[2]+n.slice(3)}if(e){$t.rel(t,n,e,false)}if(s){$t.ael(t,n,s,false)}}else{const f=d(s);if((c||f&&s!==null)&&!l){try{if(!t.tagName.includes("-")){const l=s==null?"":s;if(n==="list"){c=false}else if(e==null||t[n]!=l){t[n]=l}}else{t[n]=s}}catch(t){}}let u=false;{if(i!==(i=i.replace(/^xlink\:?/,""))){n=i;u=true}}if(s==null||s===false){if(s!==false||t.getAttribute(n)===""){if(u){t.removeAttributeNS(r,n)}else{t.removeAttribute(n)}}}else if((!c||o&4||l)&&!f){s=s===true?"":s;if(u){t.setAttributeNS(r,n,s)}else{t.setAttribute(n,s)}}}}};const O=/\s/;const x=t=>!t?[]:t.split(O);const P=(t,n,e,s)=>{const l=n.$.nodeType===11&&n.$.host?n.$.host:n.$;const o=t&&t.o||u;const c=n.o||u;{for(s in o){if(!(s in c)){M(l,s,o[s],undefined,e,n.h)}}}for(s in c){M(l,s,o[s],c[s],e,n.h)}};const U=(t,e,l,o)=>{const c=e.i[l];let i=0;let f;let r;if(c.l!==null){f=c.$=pt.createTextNode(c.l)}else{f=c.$=pt.createElement(c.p);{P(null,c,s)}if(a(n)&&f["s-si"]!==n){f.classList.add(f["s-si"]=n)}if(c.i){for(i=0;i<c.i.length;++i){r=U(t,c,i);if(r){f.appendChild(r)}}}}return f};const L=(t,n,s,l,o,c)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===e){i=i.shadowRoot}for(;o<=c;++o){if(l[o]){f=U(null,s,o);if(f){l[o].$=f;i.insertBefore(f,n)}}}};const A=(t,n,e)=>{for(let s=n;s<=e;++s){const n=t[s];if(n){const t=n.$;T(n);if(t){t.remove()}}}};const E=(t,n,e,s)=>{let l=0;let o=0;let c=0;let i=0;let f=n.length-1;let r=n[0];let u=n[f];let a=s.length-1;let d=s[0];let y=s[a];let h;let p;while(l<=f&&o<=a){if(r==null){r=n[++l]}else if(u==null){u=n[--f]}else if(d==null){d=s[++o]}else if(y==null){y=s[--a]}else if(N(r,d)){R(r,d);r=n[++l];d=s[++o]}else if(N(u,y)){R(u,y);u=n[--f];y=s[--a]}else if(N(r,y)){R(r,y);t.insertBefore(r.$,u.$.nextSibling);r=n[++l];y=s[--a]}else if(N(u,d)){R(u,d);t.insertBefore(u.$,r.$);u=n[--f];d=s[++o]}else{c=-1;{for(i=l;i<=f;++i){if(n[i]&&n[i].u!==null&&n[i].u===d.u){c=i;break}}}if(c>=0){p=n[c];if(p.p!==d.p){h=U(n&&n[o],e,c)}else{R(p,d);n[c]=undefined;h=p.$}d=s[++o]}else{h=U(n&&n[o],e,o);d=s[++o]}if(h){{r.$.parentNode.insertBefore(h,r.$)}}}}if(l>f){L(t,s[a+1]==null?null:s[a+1].$,e,s,o,a)}else if(o>a){A(n,l,f)}};const N=(t,n)=>{if(t.p===n.p){{return t.u===n.u}}return false};const R=(t,n)=>{const e=n.$=t.$;const l=t.i;const o=n.i;const c=n.l;if(c===null){{{P(t,n,s)}}if(l!==null&&o!==null){E(e,l,n,o)}else if(o!==null){if(t.l!==null){e.textContent=""}L(e,null,n,o,0,o.length-1)}else if(l!==null){A(l,0,l.length-1)}}else if(t.l!==c){e.data=c}};const T=t=>{{t.o&&t.o.ref&&t.o.ref(null);t.i&&t.i.map(T)}};const W=(t,s,l=false)=>{const o=t.m;const c=t.S;const i=t.j||p(null,null);const f=m(s)?s:h(null,null,s);e=o.tagName;if(c.C){f.o=f.o||{};c.C.map((([t,n])=>f.o[n]=o[t]))}if(l&&f.o){for(const t of Object.keys(f.o)){if(o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)){f.o[t]=o[t]}}}f.p=null;f.h|=4;t.j=f;f.$=i.$=o.shadowRoot||o;{n=o["s-sc"]}R(i,f)};const H=(t,n)=>{if(n&&!t.M&&n["s-p"]){n["s-p"].push(new Promise((n=>t.M=n)))}};const q=(t,n)=>{{t.h|=16}if(t.h&4){t.h|=512;return}H(t,t.O);const e=()=>F(t,n);return Ct(e)};const F=(t,n)=>{const e=c("scheduleUpdate",t.S.k);const s=t.P;let l;if(n){{l=G(s,"componentWillLoad")}}e();return I(l,(()=>_(t,s,n)))};const I=(t,n)=>V(t)?t.then(n):n();const V=t=>t instanceof Promise||t&&t.then&&typeof t.then==="function";const _=async(t,n,e)=>{var s;const l=t.m;const o=c("update",t.S.k);const i=l["s-rc"];if(e){j(t)}const f=c("render",t.S.k);{z(t,n,l,e)}if(i){i.map((t=>t()));l["s-rc"]=undefined}f();o();{const n=(s=l["s-p"])!==null&&s!==void 0?s:[];const e=()=>B(t);if(n.length===0){e()}else{Promise.all(n).then(e);t.h|=4;n.length=0}}};const z=(t,n,e,s)=>{try{n=n.render();{t.h&=~16}{t.h|=2}{{{W(t,n,s)}}}}catch(n){ut(n,t.m)}return null};const B=t=>{const n=t.S.k;const e=t.m;const s=c("postUpdate",n);const l=t.O;if(!(t.h&64)){t.h|=64;{J(e)}s();{t.U(e);if(!l){D()}}}else{s()}{if(t.M){t.M();t.M=undefined}if(t.h&512){jt((()=>q(t,false)))}t.h&=~(4|512)}};const D=n=>{{J(pt.documentElement)}jt((()=>b(ht,"appload",{detail:{namespace:t}})))};const G=(t,n,e)=>{if(t&&t[n]){try{return t[n](e)}catch(t){ut(t)}}return undefined};const J=t=>t.classList.add("hydrated");const K=(t,n)=>ct(t).L.get(n);const Q=(t,n,e,s)=>{const l=ct(t);const o=l.m;const c=l.L.get(n);const i=l.h;const f=l.P;e=v(e,s.A[n][0]);const r=Number.isNaN(c)&&Number.isNaN(e);const u=e!==c&&!r;if((!(i&8)||c===undefined)&&u){l.L.set(n,e);if(f){if(s.N&&i&128){const t=s.N[n];if(t){t.map((t=>{try{f[t](e,c,n)}catch(t){ut(t,o)}}))}}if((i&(2|16))===2){q(l,false)}}}};const X=(t,n,e)=>{var s;if(n.A){if(t.watchers){n.N=t.watchers}const l=Object.entries(n.A);const o=t.prototype;l.map((([t,[s]])=>{if(s&31||e&2&&s&32){Object.defineProperty(o,t,{get(){return K(this,t)},set(e){Q(this,t,e,n)},configurable:true,enumerable:true})}}));if(e&1){const e=new Map;o.attributeChangedCallback=function(t,s,l){$t.jmp((()=>{const c=e.get(t);if(this.hasOwnProperty(c)){l=this[c];delete this[c]}else if(o.hasOwnProperty(c)&&typeof this[c]==="number"&&this[c]==l){return}else if(c==null){const e=ct(this);const o=e===null||e===void 0?void 0:e.h;if(!(o&8)&&o&128&&l!==s){const o=e.P;const c=n.N[t];c===null||c===void 0?void 0:c.forEach((n=>{if(o[n]!=null){o[n].call(o,l,s,t)}}))}return}this[c]=l===null&&typeof this[c]==="boolean"?false:l}))};t.observedAttributes=Array.from(new Set([...Object.keys((s=n.N)!==null&&s!==void 0?s:{}),...l.filter((([t,n])=>n[0]&15)).map((([t,s])=>{const l=s[1]||t;e.set(l,t);if(s[0]&512){n.C.push([t,l])}return l}))]))}}return t};const Y=async(t,n,e,s,l)=>{if((n.h&32)===0){n.h|=32;{l=dt(e);if(l.then){const t=i();l=await l;t()}if(!l.isProxied){{e.N=l.watchers}X(l,e,2);l.isProxied=true}const t=c("createInstance",e.k);{n.h|=8}try{new l(n)}catch(t){ut(t)}{n.h&=~8}{n.h|=128}t();Z(n.P)}if(l.style){let t=l.style;const n=C(e);if(!yt.has(n)){const s=c("registerStyles",e.k);g(n,t,!!(e.h&1));s()}}}const o=n.O;const f=()=>q(n,true);if(o&&o["s-rc"]){o["s-rc"].push(f)}else{f()}};const Z=t=>{{G(t,"connectedCallback")}};const tt=t=>{if(($t.h&1)===0){const n=ct(t);const e=n.S;const s=c("connectedCallback",e.k);if(!(n.h&1)){n.h|=1;{let e=t;while(e=e.parentNode||e.host){if(e["s-p"]){H(n,n.O=e);break}}}if(e.A){Object.entries(e.A).map((([n,[e]])=>{if(e&31&&t.hasOwnProperty(n)){const e=t[n];delete t[n];t[n]=e}}))}{Y(t,n,e)}}else{if(n===null||n===void 0?void 0:n.P){Z(n.P)}else if(n===null||n===void 0?void 0:n.R){n.R.then((()=>Z(n.P)))}}s()}};const nt=t=>{{G(t,"disconnectedCallback")}};const et=async t=>{if(($t.h&1)===0){const n=ct(t);if(n===null||n===void 0?void 0:n.P){nt(n.P)}else if(n===null||n===void 0?void 0:n.R){n.R.then((()=>nt(n.P)))}}};const st=(t,n={})=>{var e;const s=c();const l=[];const o=n.exclude||[];const i=ht.customElements;const r=pt.head;const u=r.querySelector("meta[charset]");const a=pt.createElement("style");const d=[];let h;let p=true;Object.assign($t,n);$t.t=new URL(n.resourcesUrl||"./",pt.baseURI).href;t.map((t=>{t[1].map((n=>{var e;const s={h:n[0],k:n[1],A:n[2],T:n[3]};{s.A=n[2]}{s.C=[]}{s.N=(e=n[4])!==null&&e!==void 0?e:{}}const c=s.k;const f=class extends HTMLElement{constructor(t){super(t);t=this;ft(t,s);if(s.h&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(h){clearTimeout(h);h=null}if(p){d.push(this)}else{$t.jmp((()=>tt(this)))}}disconnectedCallback(){$t.jmp((()=>et(this)))}componentOnReady(){return ct(this).R}};s.W=t[0];if(!o.includes(c)&&!i.get(c)){l.push(c);i.define(c,X(f,s,1))}}))}));{a.innerHTML=l+f;a.setAttribute("data-styles","");const t=(e=$t.v)!==null&&e!==void 0?e:y(pt);if(t!=null){a.setAttribute("nonce",t)}r.insertBefore(a,u?u.nextSibling:r.firstChild)}p=false;if(d.length){d.map((t=>t.connectedCallback()))}else{{$t.jmp((()=>h=setTimeout(D,30)))}}s()};const lt=t=>$t.v=t;const ot=new WeakMap;const ct=t=>ot.get(t);const it=(t,n)=>ot.set(n.P=t,n);const ft=(t,n)=>{const e={h:0,m:t,S:n,L:new Map};{e.R=new Promise((t=>e.U=t));t["s-p"]=[];t["s-rc"]=[]}return ot.set(t,e)};const rt=(t,n)=>n in t;const ut=(t,n)=>(0,console.error)(t,n);const at=new Map;const dt=(t,n,e)=>{const s=t.k.replace(/-/g,"_");const l=t.W;const o=at.get(l);if(o){return o[s]}
|
|
2
|
+
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${l}.entry.js${""}`).then((t=>{{at.set(l,t)}return t[s]}),ut)};const yt=new Map;const ht=typeof window!=="undefined"?window:{};const pt=ht.document||{head:{}};const $t={h:0,t:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,n,e,s)=>t.addEventListener(n,e,s),rel:(t,n,e,s)=>t.removeEventListener(n,e,s),ce:(t,n)=>new CustomEvent(t,n)};const mt=t=>Promise.resolve(t);const vt=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(t){}return false})();const wt=[];const bt=[];const St=(t,n)=>e=>{t.push(e);if(!l){l=true;if(n&&$t.h&4){jt(kt)}else{$t.raf(kt)}}};const gt=t=>{for(let n=0;n<t.length;n++){try{t[n](performance.now())}catch(t){ut(t)}}t.length=0};const kt=()=>{gt(wt);{gt(bt);if(l=wt.length>0){$t.raf(kt)}}};const jt=t=>mt().then(t);const Ct=St(bt,true);export{$ as H,w as a,st as b,o as g,h,mt as p,it as r,lt as s};
|
|
3
|
+
//# sourceMappingURL=p-a3383818.js.map
|