@postnord/pn-marketweb-components 2.0.74 → 2.0.76
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/FetchHelper-f80943bf.js +87 -0
- package/cjs/{FetchHelper-c6cee722.js → MarketWebContextService-5840b8e0.js} +0 -85
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +2 -2
- package/cjs/pn-language-selector_9.cjs.entry.js +1 -1
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +3 -2
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +4 -3
- package/cjs/pn-proxio-pricefinder.cjs.entry.js +43 -0
- package/cjs/pn-proxio-productcard.cjs.entry.js +19 -0
- package/collection/collection-manifest.json +3 -1
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.css +2 -2
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.js +5 -3
- package/collection/components/input/pn-bonus-progressbar/pn-bonus-progressbar.stories.js +1 -1
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.css +3 -2
- package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader.css +3 -0
- package/collection/components/widgets/pn-proxio-pricefinder/pn-proxio-pricefinder.css +0 -0
- package/collection/components/widgets/pn-proxio-pricefinder/pn-proxio-pricefinder.js +98 -0
- package/collection/components/widgets/pn-proxio-pricefinder/pn-proxio-pricefinder.stories.js +22 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.css +0 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.js +21 -0
- package/collection/components/widgets/pn-proxio-productcard/pn-proxio-productcard.stories.js +23 -0
- package/custom-elements/index.d.ts +12 -0
- package/custom-elements/index.js +58 -5
- package/esm/FetchHelper-a0c8aa54.js +85 -0
- package/esm/{FetchHelper-1dfe8514.js → MarketWebContextService-160bf3dd.js} +1 -85
- package/esm/loader.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +2 -2
- package/esm/pn-language-selector_9.entry.js +1 -1
- package/esm/pn-market-web-components.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +2 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -2
- package/esm/pn-proxio-pricefinder.entry.js +39 -0
- package/esm/pn-proxio-productcard.entry.js +15 -0
- package/esm-es5/FetchHelper-a0c8aa54.js +1 -0
- package/esm-es5/{FetchHelper-1dfe8514.js → MarketWebContextService-160bf3dd.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-proxio-pricefinder.entry.js +1 -0
- package/esm-es5/pn-proxio-productcard.entry.js +1 -0
- package/package.json +2 -2
- package/pn-market-web-components/p-055424ac.entry.js +1 -0
- package/pn-market-web-components/{p-f0f58646.js → p-0a7b7046.js} +1 -1
- package/pn-market-web-components/p-1a97780a.system.js +1 -0
- package/pn-market-web-components/p-2b8aa6a9.entry.js +1 -0
- package/pn-market-web-components/{p-57f15df4.system.entry.js → p-34d74e18.system.entry.js} +1 -1
- package/pn-market-web-components/p-3ce2b566.system.entry.js +1 -0
- package/pn-market-web-components/p-3dac3b70.system.entry.js +1 -0
- package/pn-market-web-components/p-67887512.system.js +1 -1
- package/pn-market-web-components/p-831c0495.system.entry.js +1 -0
- package/pn-market-web-components/p-8657ca50.entry.js +1 -0
- package/pn-market-web-components/p-97dc5687.js +1 -0
- package/pn-market-web-components/p-a89a2eb3.entry.js +1 -0
- package/pn-market-web-components/p-b847805a.system.entry.js +1 -0
- package/pn-market-web-components/p-b8e9177e.system.entry.js +1 -0
- package/pn-market-web-components/{p-9bb87139.entry.js → p-c459338f.entry.js} +1 -1
- package/pn-market-web-components/p-c7afc979.entry.js +1 -0
- package/pn-market-web-components/p-d6a17042.system.js +1 -0
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/types/components/widgets/pn-proxio-pricefinder/pn-proxio-pricefinder.d.ts +13 -0
- package/types/components/widgets/pn-proxio-productcard/pn-proxio-productcard.d.ts +3 -0
- package/types/components.d.ts +32 -0
- package/umd/modules/@postnord/web-components/cjs/colors-b857e3bc.js +44 -0
- package/umd/modules/@postnord/web-components/cjs/{icons-6da09d4e.js → icons-4f356137.js} +3 -0
- package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +7 -7
- package/umd/modules/@postnord/web-components/cjs/pn-calendar.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-check-tile.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +4 -2
- package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-colors.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-date-picker-old.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +28 -17
- package/umd/modules/@postnord/web-components/cjs/pn-file-upload.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 +54 -0
- package/umd/modules/@postnord/web-components/cjs/pn-icon-grid.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-icon.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-illustration-grid.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +3 -2
- package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-nav-dropdown.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-option.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-progress-bar.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.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-radio-tile.cjs.entry.js +1 -1
- 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 +33 -13
- package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-spinner.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-table.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-tile.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-toast.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-tooltip.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/assets/colors.js +30 -28
- package/umd/modules/@postnord/web-components/collection/assets/icons.js +3 -0
- package/umd/modules/@postnord/web-components/collection/assets/svgs/recipient.svg +1 -0
- package/umd/modules/@postnord/web-components/collection/assets/svgs/select-service.svg +1 -0
- package/umd/modules/@postnord/web-components/collection/assets/svgs/sender.svg +1 -0
- package/umd/modules/@postnord/web-components/collection/collection-manifest.json +1 -0
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-button/pn-button.css +25 -25
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-button/pn-button.js +3 -4
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion-row/pn-accordion-row.css +4 -4
- package/umd/modules/@postnord/web-components/collection/components/content/pn-table/pn-table.css +22 -22
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-colors/pn-colors.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon-grid/pn-icon-grid.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration-grid/pn-illustration-grid.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.css +9 -9
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.css +8 -8
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.css +6 -6
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.css +18 -18
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.css +7 -7
- package/umd/modules/@postnord/web-components/collection/components/input/pn-calendar/pn-calendar.css +7 -7
- package/umd/modules/@postnord/web-components/collection/components/input/pn-check-tile/pn-check-tile.css +15 -15
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.css +6 -6
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +39 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.css +10 -10
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/date-picker.stories.js +6 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.css +18 -19
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +24 -13
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/translations.js +5 -5
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker-old/pn-date-picker-old.css +9 -9
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.css +12 -12
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +25 -25
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +20 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-nav-dropdown/pn-nav-dropdown.css +5 -5
- package/umd/modules/@postnord/web-components/collection/components/input/pn-option/pn-option.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.css +7 -7
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-tile/pn-radio-tile.css +8 -8
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.css +9 -9
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +23 -4
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/controller/pn-segmented-control.css +6 -6
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/controller/pn-segmented-control.js +33 -13
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +21 -21
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +5 -5
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/header.stories.js +110 -0
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.css +94 -0
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +118 -0
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.css +3 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.css +4 -4
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.css +16 -15
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tab.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.css +4 -4
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.css +8 -8
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.css +2 -2
- package/umd/modules/@postnord/web-components/components/colors.js +30 -28
- package/umd/modules/@postnord/web-components/components/pn-accordion-row.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-button2.js +4 -5
- package/umd/modules/@postnord/web-components/components/pn-calendar2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-check-tile.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-checkbox2.js +7 -3
- package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-colors.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-date-picker-old.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-date-picker.js +28 -17
- package/umd/modules/@postnord/web-components/components/pn-file-upload.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-header.d.ts +11 -0
- package/umd/modules/@postnord/web-components/components/pn-header.js +71 -0
- package/umd/modules/@postnord/web-components/components/pn-icon-grid.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-icon2.js +3 -0
- package/umd/modules/@postnord/web-components/components/pn-illustration-grid.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-input.js +4 -2
- package/umd/modules/@postnord/web-components/components/pn-modal.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-nav-dropdown.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-option2.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-progress-bar2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator-step.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-radio-tile.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-search-field2.js +5 -3
- package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +33 -13
- package/umd/modules/@postnord/web-components/components/pn-select.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-spinner2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-table.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-toast.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tooltip.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/esm/colors-dad016c3.js +42 -0
- package/umd/modules/@postnord/web-components/esm/{icons-179d0f16.js → icons-87afa544.js} +3 -0
- package/umd/modules/@postnord/web-components/esm/loader.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +7 -7
- package/umd/modules/@postnord/web-components/esm/pn-calendar.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-check-tile.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +4 -2
- package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-colors.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-date-picker-old.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +28 -17
- package/umd/modules/@postnord/web-components/esm/pn-file-upload.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 +50 -0
- package/umd/modules/@postnord/web-components/esm/pn-icon-grid.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-icon.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-illustration-grid.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +3 -2
- package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-nav-dropdown.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-option.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-progress-bar.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.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-radio-tile.entry.js +1 -1
- 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 +33 -13
- package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-spinner.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-table.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-tile.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-toast.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-tooltip.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/esm-es5/colors-dad016c3.js +1 -0
- package/umd/modules/@postnord/web-components/esm-es5/{icons-179d0f16.js → icons-87afa544.js} +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/loader.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-accordion-row.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-button_2.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-calendar.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-check-tile.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-checkbox.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-choice-chip.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-colors.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-date-picker-old.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-date-picker.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-file-upload.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-footer.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-header.entry.js +1 -0
- package/umd/modules/@postnord/web-components/esm-es5/pn-icon-grid.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-icon.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-illustration-grid.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-input.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-modal.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-nav-dropdown.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-ocr-search.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-option.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-page-nav-dropdown-item.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-page-nav-item.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-page-nav.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-progress-bar.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-progress-indicator-step.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-radio-button.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-radio-tile.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-segment.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-segmented-control.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-select.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-spinner.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-tab.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-table.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-tablist.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-tile.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-toast.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-toggle-switch.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-tooltip.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/pn-zipcode-search.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm-es5/postnord-web-components.js +1 -1
- package/umd/modules/@postnord/web-components/package.json +11 -11
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-817d5d17.system.entry.js → p-02c2741f.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-a9b57e21.system.entry.js → p-05c428eb.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3b0e4511.entry.js → p-0de26b96.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-7d24dfab.entry.js → p-0ec57c44.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-9f16574c.system.entry.js → p-173e95f5.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-1df3ace2.system.entry.js → p-1c1b30b7.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-dc04bb07.system.entry.js → p-1cce77c3.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-f43000c3.system.entry.js → p-1f157d38.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-008afe80.system.entry.js → p-20988b71.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-27cee172.system.entry.js → p-20fad6a2.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-ab59c993.entry.js → p-2190a228.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b05a8f5a.system.entry.js → p-22271b9e.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-74671e0f.entry.js → p-23b6f027.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-17244a21.system.entry.js → p-281de48e.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b25492d9.system.entry.js → p-28676f45.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-924e1464.system.entry.js → p-2c85afe2.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-368df140.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-79bbd298.entry.js → p-3757194b.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-16375b57.system.entry.js → p-39a26ba4.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-67a953f0.entry.js → p-42049896.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-97d5dd3e.system.entry.js → p-4befd4c5.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-294507b0.js → p-4c62647b.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-4b524de1.system.entry.js → p-52f234c3.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-53b2ab8c.entry.js → p-543ffe51.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5807a81a.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-f7beea04.system.entry.js → p-58f84310.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-cadac0c7.entry.js → p-5a64115d.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5cc41a73.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-cd645eaf.system.entry.js → p-5f2518ea.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5f5b0517.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5fce4b15.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-6dc68e88.system.entry.js → p-6269c9a1.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-13d529e9.entry.js → p-6a8e8e16.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6c9fb6e8.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-c2f279af.entry.js → p-6cd7c4aa.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-1bb1996e.entry.js → p-6d4ccff2.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6dce588e.system.js +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-841c3e03.system.entry.js → p-7263d8a4.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-747a393a.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-2707de35.entry.js → p-7808eb89.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-82af9b54.system.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-9c680e93.entry.js → p-85d78f66.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-f76a42aa.system.entry.js → p-862b4441.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8c799438.system.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-4103a3ce.system.js → p-8efaa1c4.system.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8fbf5762.system.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-91597e05.system.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-c9fa7497.entry.js → p-940a1f92.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-5a972db7.entry.js → p-96bfea54.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-f72d34b8.entry.js → p-9bd67d3b.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-a19942ea.system.entry.js → p-9c2ce322.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-0703e268.entry.js → p-a5d4c33e.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-0a8ba84b.system.entry.js → p-a834fb7c.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-9ddb3d96.entry.js → p-ab2033a1.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3ecd4b50.entry.js → p-b51db896.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-5e585fea.system.entry.js → p-b9a0d9d9.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b7bc48aa.system.entry.js → p-bc486626.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-fc58a5f5.entry.js → p-be92aa5c.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-0439d89f.entry.js → p-c528d2e1.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-a4043417.system.entry.js → p-cbbe9eaa.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d1f05006.system.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-f08bd1f5.system.entry.js → p-d4bb152e.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-728d7132.system.entry.js → p-d5107a0a.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-745ba184.entry.js → p-d547950c.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-7b7d9358.system.entry.js → p-dbe6001f.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3da60603.system.entry.js → p-dec6ee37.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-f2f173c3.system.entry.js → p-e0b7e404.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3d860408.entry.js → p-e5c887c8.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3b48fc0e.system.entry.js → p-e6c0bdad.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-aa44cdfd.system.entry.js → p-e93b0b66.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-03091c0d.entry.js → p-e9cd7635.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-33ec3b6d.entry.js → p-e9d26acb.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-94686b6b.entry.js → p-eb3398c6.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-534eaa88.entry.js → p-f009d757.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b57700ca.entry.js → p-f3c5316e.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-f3cc1874.system.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-fb6cd638.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-1c4ffba4.entry.js → p-fb7baa9c.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-1fa5285a.system.entry.js → p-fb929fe8.system.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-fc3c0b4f.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-a9205ee4.entry.js → p-fca162dc.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-fcb055c7.system.entry.js +1 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-06ee34e1.entry.js → p-ff900e71.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/types/assets/colors.d.ts +2 -0
- package/umd/modules/@postnord/web-components/types/assets/icons.d.ts +3 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.d.ts +2 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-date-picker/pn-date-picker.d.ts +2 -1
- package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +1 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-search-field/pn-search-field.d.ts +1 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/controller/pn-segmented-control.d.ts +2 -1
- package/umd/modules/@postnord/web-components/types/components/layout/pn-header/pn-header.d.ts +16 -0
- package/umd/modules/@postnord/web-components/types/components.d.ts +39 -0
- package/umd/pn-marketweb-salesforce.js +2 -2
- package/pn-market-web-components/p-189ef99c.entry.js +0 -1
- package/pn-market-web-components/p-58115ce6.entry.js +0 -1
- package/pn-market-web-components/p-6174a610.system.js +0 -1
- package/pn-market-web-components/p-6ad8fdad.system.entry.js +0 -1
- package/pn-market-web-components/p-7422abda.system.entry.js +0 -1
- package/pn-market-web-components/p-b1897790.entry.js +0 -1
- package/pn-market-web-components/p-bee5feeb.system.entry.js +0 -1
- package/umd/modules/@postnord/web-components/cjs/colors-bb509869.js +0 -42
- package/umd/modules/@postnord/web-components/esm/colors-7b5cb327.js +0 -40
- package/umd/modules/@postnord/web-components/esm-es5/colors-7b5cb327.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-119cb7d6.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-11b9e822.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-20f9e678.system.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-26422d28.system.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3341ab21.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-35831310.system.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-4b4e5031.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5b15613f.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-92c926c3.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-957fa809.system.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-aa1ec8d3.system.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c5c95287.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e8925d24.system.entry.js +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ed1d51d8.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
pn-zipcode-search {
|
|
2
2
|
display: block;
|
|
3
|
-
color: #
|
|
3
|
+
color: #5e554a;
|
|
4
4
|
}
|
|
5
5
|
pn-zipcode-search .search-results {
|
|
6
6
|
margin-top: 1em;
|
|
@@ -21,7 +21,7 @@ pn-zipcode-search .text-row > * + * {
|
|
|
21
21
|
margin-left: 0.25em;
|
|
22
22
|
}
|
|
23
23
|
pn-zipcode-search .error-text {
|
|
24
|
-
color: #
|
|
24
|
+
color: #a70707;
|
|
25
25
|
padding: 0.5em 1em;
|
|
26
26
|
}
|
|
27
27
|
pn-zipcode-search pn-search-field {
|
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
const colors = {
|
|
2
2
|
"black": "#000000",
|
|
3
|
-
"gray900": "#
|
|
4
|
-
"gray700": "#
|
|
3
|
+
"gray900": "#2d2013",
|
|
4
|
+
"gray700": "#5e554a",
|
|
5
5
|
"gray400": "#969087",
|
|
6
|
-
"gray200": "#
|
|
7
|
-
"gray50": "#
|
|
8
|
-
"gray25": "#
|
|
9
|
-
"white": "#
|
|
10
|
-
"blue900": "#
|
|
11
|
-
"blue700": "#
|
|
12
|
-
"blue400": "#
|
|
13
|
-
"blue200": "#
|
|
14
|
-
"blue50": "#
|
|
15
|
-
"blue25": "#
|
|
6
|
+
"gray200": "#d3cecb",
|
|
7
|
+
"gray50": "#f3f2f2",
|
|
8
|
+
"gray25": "#f9f8f8",
|
|
9
|
+
"white": "#ffffff",
|
|
10
|
+
"blue900": "#0d234b",
|
|
11
|
+
"blue700": "#005d92",
|
|
12
|
+
"blue400": "#00a0d6",
|
|
13
|
+
"blue200": "#8eddf9",
|
|
14
|
+
"blue50": "#e0f8ff",
|
|
15
|
+
"blue25": "#effbff",
|
|
16
16
|
"coral900": "#500715",
|
|
17
|
-
"coral700": "#
|
|
18
|
-
"coral400": "#
|
|
19
|
-
"coral200": "#
|
|
20
|
-
"coral50": "#
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
17
|
+
"coral700": "#9b1c2e",
|
|
18
|
+
"coral400": "#f06365",
|
|
19
|
+
"coral200": "#fbc2c1",
|
|
20
|
+
"coral50": "#fdefee",
|
|
21
|
+
"coral25": "#fef7f6",
|
|
22
|
+
"orange900": "#4f1600",
|
|
23
|
+
"orange700": "#99290a",
|
|
24
|
+
"orange400": "#f89142",
|
|
25
|
+
"orange200": "#ffc8a3",
|
|
26
|
+
"orange50": "#fff1e3",
|
|
27
|
+
"orange25": "#fff8f1",
|
|
28
|
+
"green900": "#002f24",
|
|
29
|
+
"green700": "#005e41",
|
|
30
|
+
"green400": "#5ec584",
|
|
31
|
+
"green200": "#abe3bb",
|
|
32
|
+
"green50": "#dcf6e7",
|
|
33
|
+
"green25": "#edfbf3",
|
|
34
|
+
"warning": "#a70707",
|
|
33
35
|
"electric-default": "#a505cc",
|
|
34
36
|
"electric-haze": "#fdf4ff",
|
|
35
37
|
"electric-faded": "#f3d8f8",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const pnAccordionRowCss = "pn-accordion-row{position:relative;color:black;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:-webkit-transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);transition:-webkit-transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0.7, 0, 0.3, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0, 0.3, 1)}pn-accordion-row+pn-accordion-row{border-top:0.1rem solid #D3CECB;margin-top:0.4rem}pn-accordion-row[data-flipping]{-webkit-transform:translateY(calc(-1px * var(--dy)));transform:translateY(calc(-1px * var(--dy)));-webkit-transition:none;transition:none}pn-accordion-row .accordion-title{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;z-index:0;width:100%;font-weight:400;padding:1em;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);transition:background 0.2s, -webkit-box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);transition:background 0.2s, box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);transition:background 0.2s, box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1), -webkit-box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);border-radius:0.8rem;overflow:hidden;position:relative;background:#
|
|
3
|
+
const pnAccordionRowCss = "pn-accordion-row{position:relative;color:black;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transition:-webkit-transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);transition:-webkit-transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.3s cubic-bezier(0.7, 0, 0.3, 1), -webkit-transform 0.3s cubic-bezier(0.7, 0, 0.3, 1)}pn-accordion-row+pn-accordion-row{border-top:0.1rem solid #D3CECB;margin-top:0.4rem}pn-accordion-row[data-flipping]{-webkit-transform:translateY(calc(-1px * var(--dy)));transform:translateY(calc(-1px * var(--dy)));-webkit-transition:none;transition:none}pn-accordion-row .accordion-title{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;z-index:0;width:100%;font-weight:400;padding:1em;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);transition:background 0.2s, -webkit-box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);transition:background 0.2s, box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);transition:background 0.2s, box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1), -webkit-box-shadow 0.1s cubic-bezier(0.7, 0, 0.3, 1);border-radius:0.8rem;overflow:hidden;position:relative;background:#ffffff;border:none;outline:none;cursor:pointer;font-size:1em;}pn-accordion-row .accordion-title:hover{background:#e0f8ff}pn-accordion-row .accordion-title:focus{-webkit-box-shadow:0 0 0 0.2rem white, 0 0 0 0.4rem #005d92;box-shadow:0 0 0 0.2rem white, 0 0 0 0.4rem #005d92}pn-accordion-row .accordion-title>svg{margin-left:auto;-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.25s;transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.25s;transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.25s;transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.25s, -webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.25s}pn-accordion-row .accordion-title>svg path{fill:#005D92}pn-accordion-row .accordion-title .pn-ripple{-webkit-animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;position:absolute;border-radius:50%;background:#005d92;-webkit-transform:translate(-50%, -50%) scale(0);transform:translate(-50%, -50%) scale(0);opacity:0.05;pointer-events:none}@-webkit-keyframes ripple{to{-webkit-transform:translate(-50%, -50%) scale(1);transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes ripple{to{-webkit-transform:translate(-50%, -50%) scale(1);transform:translate(-50%, -50%) scale(1);opacity:0}}pn-accordion-row .accordion-content{z-index:2;top:0;left:0;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}pn-accordion-row .accordion-content .content{position:absolute;left:0;right:0;width:100%;top:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;pointer-events:none;opacity:0;-webkit-transition:opacity 0.3s;transition:opacity 0.3s;padding:1em}pn-accordion-row[data-state=open] .accordion-content .content{position:relative;pointer-events:unset;opacity:1;-webkit-transition-delay:0.2s;transition-delay:0.2s}pn-accordion-row[data-state=open] .accordion-title svg{-webkit-transform:rotate(-180deg);transform:rotate(-180deg);-webkit-transition-delay:0s;transition-delay:0s}";
|
|
4
4
|
|
|
5
5
|
const PnaccordionItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal
|
|
|
2
2
|
import { d as defineCustomElement$2 } from './pn-icon2.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './pn-spinner2.js';
|
|
4
4
|
|
|
5
|
-
const pnButtonCss = "pn-button{display:inline-block}pn-button button,pn-button a{color:#fff;cursor:pointer;padding:0.75em 1.2em;width:100%;border:none;border-radius:3em;outline:none;position:relative;font-size:1em;min-height:3em;min-width:5.5em;font-weight:500;background:transparent;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:color 0.3s;transition:color 0.3s;-webkit-tap-highlight-color:transparent;}pn-button button pn-icon,pn-button a pn-icon{-ms-flex-negative:0;flex-shrink:0;margin:0 0 0 0.5em}pn-button button pn-icon svg path,pn-button a pn-icon svg path{fill:#fff;-webkit-transition:fill 0.3s;transition:fill 0.3s}pn-button button .pn-button-content,pn-button a .pn-button-content{z-index:2;-webkit-transition:opacity 0.1s, -webkit-transform 0.2s;transition:opacity 0.1s, -webkit-transform 0.2s;transition:opacity 0.1s, transform 0.2s;transition:opacity 0.1s, transform 0.2s, -webkit-transform 0.2s;-webkit-transition-delay:0.2s;transition-delay:0.2s;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}pn-button button .pn-button-bg,pn-button a .pn-button-bg{position:absolute;width:100%;height:100%;top:0;left:50%;border-radius:3em;border:0.1rem solid transparent;background:#005D92;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s;overflow:hidden}pn-button button .pn-button-bg::after,pn-button a .pn-button-bg::after{content:\"\";position:absolute;will-change:transform;-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1), -webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);width:100%;height:100%;background:#0D234B;border-radius:inherit;left:0;-webkit-transform:translateX(-103%);transform:translateX(-103%);opacity:0.5}pn-button button.pn-button-light,pn-button a.pn-button-light{color:#005D92}pn-button button.pn-button-light pn-icon svg path,pn-button a.pn-button-light pn-icon svg path{fill:#005D92}pn-button button.pn-button-light pn-spinner .circle,pn-button a.pn-button-light pn-spinner .circle{stroke:#005D92}pn-button button.pn-button-light pn-spinner .dot,pn-button a.pn-button-light pn-spinner .dot{fill:#005D92}pn-button button.pn-button-light .pn-button-bg,pn-button a.pn-button-light .pn-button-bg{border:0.1rem solid #005D92;background:#fff}pn-button button.pn-button-light .pn-button-bg:after,pn-button a.pn-button-light .pn-button-bg:after{background:#E0F8FF;opacity:1}pn-button button.pn-button-light .pn-button-bg .pn-ripple,pn-button a.pn-button-light .pn-button-bg .pn-ripple{background:#005D92}pn-button button.pn-button-warning,pn-button a.pn-button-warning{color:#A70707}pn-button button.pn-button-warning pn-icon svg path,pn-button a.pn-button-warning pn-icon svg path{fill:#A70707}pn-button button.pn-button-warning pn-spinner .circle,pn-button a.pn-button-warning pn-spinner .circle{stroke:#A70707}pn-button button.pn-button-warning pn-spinner .dot,pn-button a.pn-button-warning pn-spinner .dot{fill:#A70707}pn-button button.pn-button-warning .pn-button-bg,pn-button a.pn-button-warning .pn-button-bg{border:0.1rem solid #A70707;background:#FDEFEE}pn-button button.pn-button-warning .pn-button-bg:after,pn-button a.pn-button-warning .pn-button-bg:after{background:#A70707;opacity:1}pn-button button.pn-button-variation-borderless .pn-button-bg,pn-button a.pn-button-variation-borderless .pn-button-bg{border:0.1rem solid transparent;background:transparent}pn-button button.pn-button-variation-borderless.pn-button-dark .pn-button-bg:after,pn-button a.pn-button-variation-borderless.pn-button-dark .pn-button-bg:after{background:white;opacity:0.1}pn-button button.pn-button-variation-outlined .pn-button-bg,pn-button a.pn-button-variation-outlined .pn-button-bg{background:transparent}pn-button button.pn-button-variation-outlined.pn-button-dark .pn-button-bg,pn-button a.pn-button-variation-outlined.pn-button-dark .pn-button-bg{border-color:#FFFFFF}pn-button button.pn-button-variation-outlined.pn-button-dark .pn-button-bg::after,pn-button a.pn-button-variation-outlined.pn-button-dark .pn-button-bg::after{background:white;opacity:0.1}pn-button button.pn-button-variation-outlined.pn-button-light .pn-button-bg::after,pn-button a.pn-button-variation-outlined.pn-button-light .pn-button-bg::after{background:#00A0D6;opacity:0.1}pn-button button.pn-button-left-icon .pn-button-content,pn-button a.pn-button-left-icon .pn-button-content{-ms-flex-direction:row-reverse;flex-direction:row-reverse}pn-button button.pn-button-left-icon .pn-button-content pn-icon,pn-button a.pn-button-left-icon .pn-button-content pn-icon{margin:0 0.5em 0 0}pn-button button.icon-only,pn-button a.icon-only{width:3em;min-width:0}pn-button button.icon-only pn-icon,pn-button a.icon-only pn-icon{margin:0}pn-button button.icon-only.pn-button-small,pn-button a.icon-only.pn-button-small{width:2.286em;min-width:0;padding:0}pn-button button.pn-button-small,pn-button a.pn-button-small{font-size:1.4rem;padding:0.5em 1em;font-weight:normal;min-height:2.286em;min-width:none}pn-button button.pn-button-small pn-icon svg,pn-button a.pn-button-small pn-icon svg{height:1.28em;width:1.28em}a:focus>pn-button button .pn-button-bg,pn-button button:focus .pn-button-bg,pn-button a:focus .pn-button-bg{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}a:focus>pn-button button .pn-button-bg:after,pn-button button:hover .pn-button-bg:after,pn-button button:focus .pn-button-bg:after,pn-button a:hover .pn-button-bg:after,pn-button a:focus .pn-button-bg:after{-webkit-transform:translateX(0);transform:translateX(0)}a:focus>pn-button button.pn-button-warning,pn-button button.pn-button-warning:hover,pn-button a.pn-button-warning:hover,pn-button button.pn-button-warning:focus,pn-button a.pn-button-warning:focus{color:#fff}a:focus>pn-button button.pn-button-warning pn-icon svg path,pn-button button.pn-button-warning:hover pn-icon svg path,pn-button a.pn-button-warning:hover pn-icon svg path,pn-button button.pn-button-warning:focus pn-icon svg path,pn-button a.pn-button-warning:focus pn-icon svg path{fill:#fff}a:focus>pn-button button.pn-button-warning pn-spinner .circle,pn-button button.pn-button-warning:hover pn-spinner .circle,pn-button a.pn-button-warning:hover pn-spinner .circle,pn-button button.pn-button-warning:focus pn-spinner .circle,pn-button a.pn-button-warning:focus pn-spinner .circle{stroke:#fff}a:focus>pn-button button.pn-button-warning pn-spinner .dot,pn-button button.pn-button-warning:hover pn-spinner .dot,pn-button a.pn-button-warning:hover pn-spinner .dot,pn-button button.pn-button-warning:focus pn-spinner .dot,pn-button a.pn-button-warning:focus pn-spinner .dot{fill:#fff}a:focus>pn-button button.pn-button-warning .pn-button-bg,pn-button button.pn-button-warning:focus .pn-button-bg,pn-button a.pn-button-warning:focus .pn-button-bg{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #A70707}pn-button .pn-ripple{-webkit-animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1);animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1);position:absolute;border-radius:50%;background:#fff;-webkit-transform:translate(-50%, -50%) scale(0);transform:translate(-50%, -50%) scale(0);opacity:0.1;pointer-events:none;z-index:3}@-webkit-keyframes ripple{to{-webkit-transform:translate(-50%, -50%) scale(1);transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes ripple{to{-webkit-transform:translate(-50%, -50%) scale(1);transform:translate(-50%, -50%) scale(1);opacity:0}}pn-button pn-spinner{position:absolute;-webkit-transform:scale(0);transform:scale(0)}pn-button[data-loading] pn-spinner{-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s;transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s;transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s;transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s, -webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s}pn-button[data-loading] .pn-button-content{opacity:0;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transform:translateY(100%);transform:translateY(100%)}pn-button[data-loading] .pn-button-bg{width:3em}pn-button[data-loading] button.pn-button-small .pn-button-bg,pn-button[data-loading] a.pn-button-small .pn-button-bg{width:2.286em}pn-button button .button-tooltip,pn-button a .button-tooltip{position:absolute;top:calc(100% + 0.35em);left:50%;background:#0a406e;color:#FFFFFF;padding:0.25em 0.75em;font-size:0.875em;font-weight:300;border-radius:1em;-webkit-box-shadow:0 1.2px 3.6px rgba(0, 0, 0, 0.1), 0 6.4px 14.4px rgba(0, 0, 0, 0.13);box-shadow:0 1.2px 3.6px rgba(0, 0, 0, 0.1), 0 6.4px 14.4px rgba(0, 0, 0, 0.13);z-index:5;max-width:min(95vw, 40em);-webkit-transition:opacity 0.25s cubic-bezier(0.7, 0, 0.3, 1);transition:opacity 0.25s cubic-bezier(0.7, 0, 0.3, 1);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:-moz-max-content;width:max-content;opacity:0;pointer-events:none}pn-button button[data-tooltip-open] .button-tooltip,pn-button a[data-tooltip-open] .button-tooltip{opacity:1;-webkit-transition-delay:5s;transition-delay:5s}pn-button button.button-tooltip-upwards .button-tooltip,pn-button a.button-tooltip-upwards .button-tooltip{top:auto;bottom:calc(100% + 0.35em)}pn-button button.pn-button-warning .button-tooltip,pn-button a.pn-button-warning .button-tooltip{background:#A70707;color:#FFFFFF}pn-button a{text-decoration:none}pn-button a:hover{color:#FFFFFF}pn-button a:hover.pn-button-light{color:#005D92}";
|
|
5
|
+
const pnButtonCss = "pn-button{display:inline-block}pn-button button,pn-button a{color:#fff;cursor:pointer;padding:0.75em 1.2em;width:100%;border:none;border-radius:3em;outline:none;position:relative;font-size:1em;min-height:3em;min-width:5.5em;font-weight:500;background:transparent;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:color 0.3s;transition:color 0.3s;-webkit-tap-highlight-color:transparent;}pn-button button pn-icon,pn-button a pn-icon{-ms-flex-negative:0;flex-shrink:0;margin:0 0 0 0.5em}pn-button button pn-icon svg path,pn-button a pn-icon svg path{fill:#fff;-webkit-transition:fill 0.3s;transition:fill 0.3s}pn-button button .pn-button-content,pn-button a .pn-button-content{z-index:2;-webkit-transition:opacity 0.1s, -webkit-transform 0.2s;transition:opacity 0.1s, -webkit-transform 0.2s;transition:opacity 0.1s, transform 0.2s;transition:opacity 0.1s, transform 0.2s, -webkit-transform 0.2s;-webkit-transition-delay:0.2s;transition-delay:0.2s;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}pn-button button .pn-button-bg,pn-button a .pn-button-bg{position:absolute;width:100%;height:100%;top:0;left:50%;border-radius:3em;border:0.1rem solid transparent;background:#005d92;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s;overflow:hidden}pn-button button .pn-button-bg::after,pn-button a .pn-button-bg::after{content:\"\";position:absolute;will-change:transform;-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1), -webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1);width:100%;height:100%;background:#0d234b;border-radius:inherit;left:0;-webkit-transform:translateX(-103%);transform:translateX(-103%);opacity:0.5}pn-button button.pn-button-light,pn-button a.pn-button-light{color:#005d92}pn-button button.pn-button-light pn-icon svg path,pn-button a.pn-button-light pn-icon svg path{fill:#005d92}pn-button button.pn-button-light pn-spinner .circle,pn-button a.pn-button-light pn-spinner .circle{stroke:#005d92}pn-button button.pn-button-light pn-spinner .dot,pn-button a.pn-button-light pn-spinner .dot{fill:#005d92}pn-button button.pn-button-light .pn-button-bg,pn-button a.pn-button-light .pn-button-bg{border:0.1rem solid #005d92;background:#fff}pn-button button.pn-button-light .pn-button-bg:after,pn-button a.pn-button-light .pn-button-bg:after{background:#e0f8ff;opacity:1}pn-button button.pn-button-light .pn-button-bg .pn-ripple,pn-button a.pn-button-light .pn-button-bg .pn-ripple{background:#005d92}pn-button button.pn-button-warning,pn-button a.pn-button-warning{color:#a70707}pn-button button.pn-button-warning pn-icon svg path,pn-button a.pn-button-warning pn-icon svg path{fill:#a70707}pn-button button.pn-button-warning pn-spinner .circle,pn-button a.pn-button-warning pn-spinner .circle{stroke:#a70707}pn-button button.pn-button-warning pn-spinner .dot,pn-button a.pn-button-warning pn-spinner .dot{fill:#a70707}pn-button button.pn-button-warning .pn-button-bg,pn-button a.pn-button-warning .pn-button-bg{border:0.1rem solid #a70707;background:#fdefee}pn-button button.pn-button-warning .pn-button-bg:after,pn-button a.pn-button-warning .pn-button-bg:after{background:#a70707;opacity:1}pn-button button.pn-button-variation-borderless .pn-button-bg,pn-button a.pn-button-variation-borderless .pn-button-bg{border:0.1rem solid transparent;background:transparent}pn-button button.pn-button-variation-borderless.pn-button-dark .pn-button-bg:after,pn-button a.pn-button-variation-borderless.pn-button-dark .pn-button-bg:after{background:white;opacity:0.1}pn-button button.pn-button-variation-outlined .pn-button-bg,pn-button a.pn-button-variation-outlined .pn-button-bg{background:transparent}pn-button button.pn-button-variation-outlined.pn-button-dark .pn-button-bg,pn-button a.pn-button-variation-outlined.pn-button-dark .pn-button-bg{border-color:#ffffff}pn-button button.pn-button-variation-outlined.pn-button-dark .pn-button-bg::after,pn-button a.pn-button-variation-outlined.pn-button-dark .pn-button-bg::after{background:white;opacity:0.1}pn-button button.pn-button-variation-outlined.pn-button-light .pn-button-bg::after,pn-button a.pn-button-variation-outlined.pn-button-light .pn-button-bg::after{background:#00a0d6;opacity:0.1}pn-button button.pn-button-left-icon .pn-button-content,pn-button a.pn-button-left-icon .pn-button-content{-ms-flex-direction:row-reverse;flex-direction:row-reverse}pn-button button.pn-button-left-icon .pn-button-content pn-icon,pn-button a.pn-button-left-icon .pn-button-content pn-icon{margin:0 0.5em 0 0}pn-button button.icon-only,pn-button a.icon-only{width:3em;min-width:0}pn-button button.icon-only pn-icon,pn-button a.icon-only pn-icon{margin:0}pn-button button.icon-only.pn-button-small,pn-button a.icon-only.pn-button-small{width:2.286em;min-width:0;padding:0}pn-button button.pn-button-small,pn-button a.pn-button-small{font-size:1.4rem;padding:0.5em 1em;font-weight:normal;min-height:2.286em;min-width:none}pn-button button.pn-button-small pn-icon svg,pn-button a.pn-button-small pn-icon svg{height:1.28em;width:1.28em}a:focus>pn-button button .pn-button-bg,pn-button button:focus .pn-button-bg,pn-button a:focus .pn-button-bg{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005d92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005d92}a:focus>pn-button button .pn-button-bg:after,pn-button button:hover .pn-button-bg:after,pn-button button:focus .pn-button-bg:after,pn-button a:hover .pn-button-bg:after,pn-button a:focus .pn-button-bg:after{-webkit-transform:translateX(0);transform:translateX(0)}a:focus>pn-button button.pn-button-warning,pn-button button.pn-button-warning:hover,pn-button a.pn-button-warning:hover,pn-button button.pn-button-warning:focus,pn-button a.pn-button-warning:focus{color:#fff}a:focus>pn-button button.pn-button-warning pn-icon svg path,pn-button button.pn-button-warning:hover pn-icon svg path,pn-button a.pn-button-warning:hover pn-icon svg path,pn-button button.pn-button-warning:focus pn-icon svg path,pn-button a.pn-button-warning:focus pn-icon svg path{fill:#fff}a:focus>pn-button button.pn-button-warning pn-spinner .circle,pn-button button.pn-button-warning:hover pn-spinner .circle,pn-button a.pn-button-warning:hover pn-spinner .circle,pn-button button.pn-button-warning:focus pn-spinner .circle,pn-button a.pn-button-warning:focus pn-spinner .circle{stroke:#fff}a:focus>pn-button button.pn-button-warning pn-spinner .dot,pn-button button.pn-button-warning:hover pn-spinner .dot,pn-button a.pn-button-warning:hover pn-spinner .dot,pn-button button.pn-button-warning:focus pn-spinner .dot,pn-button a.pn-button-warning:focus pn-spinner .dot{fill:#fff}a:focus>pn-button button.pn-button-warning .pn-button-bg,pn-button button.pn-button-warning:focus .pn-button-bg,pn-button a.pn-button-warning:focus .pn-button-bg{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #a70707;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #a70707}pn-button .pn-ripple{-webkit-animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1);animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1);position:absolute;border-radius:50%;background:#fff;-webkit-transform:translate(-50%, -50%) scale(0);transform:translate(-50%, -50%) scale(0);opacity:0.1;pointer-events:none;z-index:3}@-webkit-keyframes ripple{to{-webkit-transform:translate(-50%, -50%) scale(1);transform:translate(-50%, -50%) scale(1);opacity:0}}@keyframes ripple{to{-webkit-transform:translate(-50%, -50%) scale(1);transform:translate(-50%, -50%) scale(1);opacity:0}}pn-button pn-spinner{position:absolute;-webkit-transform:scale(0);transform:scale(0)}pn-button[data-loading] pn-spinner{-webkit-transform:scale(1);transform:scale(1);-webkit-transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s;transition:-webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s;transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s;transition:transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s, -webkit-transform 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.3s}pn-button[data-loading] .pn-button-content{opacity:0;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transform:translateY(100%);transform:translateY(100%)}pn-button[data-loading] .pn-button-bg{width:3em}pn-button[data-loading] button.pn-button-small .pn-button-bg,pn-button[data-loading] a.pn-button-small .pn-button-bg{width:2.286em}pn-button button .button-tooltip,pn-button a .button-tooltip{position:absolute;top:calc(100% + 0.35em);left:50%;background:#0a406e;color:#ffffff;padding:0.25em 0.75em;font-size:0.875em;font-weight:300;border-radius:1em;-webkit-box-shadow:0 1.2px 3.6px rgba(0, 0, 0, 0.1), 0 6.4px 14.4px rgba(0, 0, 0, 0.13);box-shadow:0 1.2px 3.6px rgba(0, 0, 0, 0.1), 0 6.4px 14.4px rgba(0, 0, 0, 0.13);z-index:5;max-width:min(95vw, 40em);-webkit-transition:opacity 0.25s cubic-bezier(0.7, 0, 0.3, 1);transition:opacity 0.25s cubic-bezier(0.7, 0, 0.3, 1);-webkit-transform:translateX(-50%);transform:translateX(-50%);width:-webkit-max-content;width:-moz-max-content;width:max-content;opacity:0;pointer-events:none}pn-button button[data-tooltip-open] .button-tooltip,pn-button a[data-tooltip-open] .button-tooltip{opacity:1;-webkit-transition-delay:5s;transition-delay:5s}pn-button button.button-tooltip-upwards .button-tooltip,pn-button a.button-tooltip-upwards .button-tooltip{top:auto;bottom:calc(100% + 0.35em)}pn-button button.pn-button-warning .button-tooltip,pn-button a.pn-button-warning .button-tooltip{background:#a70707;color:#ffffff}pn-button a{text-decoration:none}pn-button a:hover{color:#ffffff}pn-button a:hover.pn-button-light{color:#005d92}";
|
|
6
6
|
|
|
7
7
|
const PnButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
8
|
constructor() {
|
|
@@ -67,8 +67,8 @@ const PnButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
67
67
|
const openEvents = ['mouseover', 'focus'];
|
|
68
68
|
const closeEvents = ['mouseleave', 'blur'];
|
|
69
69
|
const eventListeners = [...openEvents, ...closeEvents];
|
|
70
|
-
eventListeners.forEach(
|
|
71
|
-
tooltipAnchor.addEventListener(e,
|
|
70
|
+
eventListeners.forEach(e => {
|
|
71
|
+
tooltipAnchor.addEventListener(e, event => {
|
|
72
72
|
// Should open?
|
|
73
73
|
if (openEvents.includes(event.type)) {
|
|
74
74
|
this.tooltipOpen = true;
|
|
@@ -94,7 +94,6 @@ const PnButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
94
94
|
this.tooltipDx = '0';
|
|
95
95
|
this.tooltipUpwards = y + height > window.innerHeight;
|
|
96
96
|
this.tooltipEl.style.transform = '';
|
|
97
|
-
console.log(this.tooltipUpwards);
|
|
98
97
|
if (x < 0)
|
|
99
98
|
this.tooltipDx = `${x * -1 + extraMargin}`;
|
|
100
99
|
if (right > window.innerWidth)
|
|
@@ -169,7 +168,7 @@ const PnButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
169
168
|
}
|
|
170
169
|
render() {
|
|
171
170
|
const TagName = this.getTagName();
|
|
172
|
-
return (h(Host, { class: "pn-button" }, h(TagName, Object.assign({ class: this.getClassNames(), "data-loading": this.loading, onClick:
|
|
171
|
+
return (h(Host, { class: "pn-button" }, h(TagName, Object.assign({ class: this.getClassNames(), "data-loading": this.loading, onClick: e => this.ripple(e, this.hostElement), "aria-label": this.ariaLabel, "aria-labelledby": this.ariaLabelledby, "data-tooltip-open": this.tooltipOpen, "aria-controls": this.ariaControls, "aria-pressed": this.ariaPressed }, this.getAttributes()), h("div", { class: "pn-button-bg" }), h("div", { class: "pn-button-content" }, !this.iconOnly && h("slot", null), this.icon && h("pn-icon", { symbol: this.icon })), h("pn-spinner", { light: true }), this.iconOnly && (h("div", { class: "button-tooltip" }, h("slot", null))))));
|
|
173
172
|
}
|
|
174
173
|
get hostElement() { return this; }
|
|
175
174
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
|
|
|
2
2
|
import { c as createDateOrNull, a as computeMonths, g as getMonthNamesByLanguage, b as getDayNamesByLanguage } from './helpers.js';
|
|
3
3
|
import { d as defineCustomElement$1 } from './pn-icon2.js';
|
|
4
4
|
|
|
5
|
-
const pnCalendarCss = "pn-calendar .pn-calendar-wrapper{position:relative}pn-calendar .pn-calendar-container{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;width:100%;background-color:white;z-index:9999}pn-calendar .pn-calendar-container .pn-calendar-nav{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:1.6rem}pn-calendar .pn-calendar-container .pn-calendar-nav>div{cursor:pointer}pn-calendar .pn-calendar-container .pn-calendar-nav .nav-previous,pn-calendar .pn-calendar-container .pn-calendar-nav .nav-next{width:3rem;display:-ms-flexbox;display:flex}pn-calendar .pn-calendar-container .pn-calendar-nav .nav-previous{text-align:left;-ms-flex-pack:start;justify-content:flex-start}pn-calendar .pn-calendar-container .pn-calendar-nav .nav-next{text-align:right;-ms-flex-pack:end;justify-content:flex-end}pn-calendar .pn-calendar-container .pn-calendar-nav .pn-calendar-month{padding:1em;border:0.1rem solid #
|
|
5
|
+
const pnCalendarCss = "pn-calendar .pn-calendar-wrapper{position:relative}pn-calendar .pn-calendar-container{-webkit-box-sizing:border-box;box-sizing:border-box;display:block;width:100%;background-color:white;z-index:9999}pn-calendar .pn-calendar-container .pn-calendar-nav{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:1.6rem}pn-calendar .pn-calendar-container .pn-calendar-nav>div{cursor:pointer}pn-calendar .pn-calendar-container .pn-calendar-nav .nav-previous,pn-calendar .pn-calendar-container .pn-calendar-nav .nav-next{width:3rem;display:-ms-flexbox;display:flex}pn-calendar .pn-calendar-container .pn-calendar-nav .nav-previous{text-align:left;-ms-flex-pack:start;justify-content:flex-start}pn-calendar .pn-calendar-container .pn-calendar-nav .nav-next{text-align:right;-ms-flex-pack:end;justify-content:flex-end}pn-calendar .pn-calendar-container .pn-calendar-nav .pn-calendar-month{padding:1em;border:0.1rem solid #5e554a;border-radius:0.8rem;font-size:1.2rem;color:#5e554a;font-weight:500;text-align:center}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;font-size:1.2rem;color:#969087;line-height:2.4rem;text-align:center;font-weight:300}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-row>div{width:2.4rem}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-row .pn-calendar-month{width:6rem}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-day-names{padding:0.4rem 0}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months{color:#5e554a;padding:0.8rem 0}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days:last-child,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months:last-child{padding-bottom:0}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-day,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-month,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-day,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-month{border-bottom:0.4rem inset transparent;cursor:pointer}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-day.disable-day,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-month.disable-day,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-day.disable-day,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-month.disable-day{cursor:default;color:#d3cecb}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-day.disable-day:hover,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-month.disable-day:hover,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-day.disable-day:hover,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-month.disable-day:hover{border-bottom-color:transparent}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-day.today,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-month.today,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-day.today,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-month.today{outline:0.1rem solid #d3cecb}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-day:hover,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-month:hover,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-day:hover,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-month:hover{border-bottom-color:#00a0d6}pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-day:active,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-day.selected,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-month:active,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-days .pn-calendar-month.selected,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-day:active,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-day.selected,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-month:active,pn-calendar .pn-calendar-container .pn-calendar .pn-calendar-months .pn-calendar-month.selected{border-bottom-color:#005d92}";
|
|
6
6
|
|
|
7
7
|
const PnCalendar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
8
8
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$2 } from './pn-illustration2.js';
|
|
3
3
|
|
|
4
|
-
const pnCheckTileCss = "pn-check-tile{position:relative;display:inline-block}pn-check-tile input[type=checkbox]{opacity:0;position:absolute;width:100%;height:100%;pointer-events:none}pn-check-tile>label{position:relative;overflow:hidden;cursor:pointer;background:#
|
|
4
|
+
const pnCheckTileCss = "pn-check-tile{position:relative;display:inline-block}pn-check-tile input[type=checkbox]{opacity:0;position:absolute;width:100%;height:100%;pointer-events:none}pn-check-tile>label{position:relative;overflow:hidden;cursor:pointer;background:#ffffff;padding:0.5em 1em;border-radius:0.5em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:0.5em;color:#005d92;font-weight:500;border:0.1em solid #d3cecb;-webkit-transition-property:background, border, -webkit-box-shadow;transition-property:background, border, -webkit-box-shadow;transition-property:box-shadow, background, border;transition-property:box-shadow, background, border, -webkit-box-shadow;-webkit-transition-duration:0.15s;transition-duration:0.15s;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-ms-flex-wrap:wrap;flex-wrap:wrap}pn-check-tile>label>pn-illustration,pn-check-tile>label>[slot=illustration]{min-width:2.5em;max-height:2.5em}pn-check-tile>label>.pn-check-tile-content{display:-ms-flexbox;display:flex;-ms-flex:1 1;flex:1 1;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:0.5em;max-width:100%;text-align:center;white-space:normal}pn-check-tile>label>.pn-check-tile-content>svg{-ms-flex-negative:0;flex-shrink:0;width:1.5em;height:1.5em;border-radius:0.25em;border:#d3cecb 0.1em solid;padding:0.15em;-webkit-transition:border 0.15s, background 0.15s;transition:border 0.15s, background 0.15s}pn-check-tile>label>.pn-check-tile-content>svg .checkmark-path{stroke:#d3cecb;stroke-dasharray:23;stroke-dashoffset:0}pn-check-tile>label>.pn-check-tile-content>svg .checkmark-path-checked{stroke:#005d92}pn-check-tile>label>.pn-check-tile-content>svg polyline{stroke-linecap:round;stroke-linejoin:round;-webkit-transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86), stroke 0.15s;transition:stroke-dashoffset 0.2s cubic-bezier(0.79, 0.14, 0.15, 0.86), stroke 0.15s;stroke-dashoffset:23;stroke-dasharray:23}pn-check-tile>label:hover{border:0.1em solid #00a0d6;-webkit-box-shadow:0px 3.2000000477px 7.1999998093px 0px #00000021, 0px 0.6000000238px 1.7999999523px 0px #0000001a;box-shadow:0px 3.2000000477px 7.1999998093px 0px #00000021, 0px 0.6000000238px 1.7999999523px 0px #0000001a}pn-check-tile>label:hover>.pn-check-tile-content>svg{border:0.1em solid #00a0d6}pn-check-tile input[type=checkbox]:focus+label{-webkit-box-shadow:0 0 0 0.1rem #fff, 0 0 0 0.2rem #005d92;box-shadow:0 0 0 0.1rem #fff, 0 0 0 0.2rem #005d92}pn-check-tile input[type=checkbox]:focus:checked+label{-webkit-box-shadow:0 0 0 0.1rem #fff, 0 0 0 0.2rem #005d92, 0px 3.2000000477px 7.1999998093px 0px #00000021, 0px 0.6000000238px 1.7999999523px 0px #0000001a;box-shadow:0 0 0 0.1rem #fff, 0 0 0 0.2rem #005d92, 0px 3.2000000477px 7.1999998093px 0px #00000021, 0px 0.6000000238px 1.7999999523px 0px #0000001a}pn-check-tile input[type=checkbox]:checked+label{border:0.1em solid #005d92;background:#effbff;-webkit-box-shadow:0px 3.2000000477px 7.1999998093px 0px #00000021, 0px 0.6000000238px 1.7999999523px 0px #0000001a;box-shadow:0px 3.2000000477px 7.1999998093px 0px #00000021, 0px 0.6000000238px 1.7999999523px 0px #0000001a}pn-check-tile input[type=checkbox]:checked+label>.pn-check-tile-content>svg{background:#005d92;border:0.1em solid #005d92}pn-check-tile input[type=checkbox]:checked+label>.pn-check-tile-content>svg polyline.checkmark-path-checked{stroke-dashoffset:0;stroke:#ffffff}";
|
|
5
5
|
|
|
6
6
|
const PnCheckTile$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const pnCheckboxCss = "pn-checkbox{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}pn-checkbox input{opacity:0;position:absolute}pn-checkbox input[type=checkbox]+label.pn-checkbox{width:1.5em;min-width:1.5em;height:1.5em;min-height:1.5em;background:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;border:0.1rem solid #969087;cursor:pointer;border-radius:0.4rem;cursor:pointer;-webkit-transition-duration:220ms;transition-duration:220ms;-webkit-transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);-webkit-transition-property:border, background, -webkit-box-shadow;transition-property:border, background, -webkit-box-shadow;transition-property:border, background, box-shadow;transition-property:border, background, box-shadow, -webkit-box-shadow}pn-checkbox input[type=checkbox]+label.pn-checkbox svg{width:80%;fill:none}pn-checkbox input[type=checkbox]+label.pn-checkbox svg polyline{stroke:#FFF;-webkit-transform-origin:0 0;transform-origin:0 0;stroke-linecap:round;stroke-dasharray:23;stroke-dashoffset:23;-webkit-transition-delay:none;transition-delay:none;-webkit-transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86)}pn-checkbox input[type=checkbox]:hover+label.pn-checkbox{border:0.1rem solid #
|
|
3
|
+
const pnCheckboxCss = "pn-checkbox{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}pn-checkbox input{opacity:0;position:absolute}pn-checkbox input[type=checkbox]+label.pn-checkbox{width:1.5em;min-width:1.5em;height:1.5em;min-height:1.5em;background:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;border:0.1rem solid #969087;cursor:pointer;border-radius:0.4rem;cursor:pointer;-webkit-transition-duration:220ms;transition-duration:220ms;-webkit-transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);-webkit-transition-property:border, background, -webkit-box-shadow;transition-property:border, background, -webkit-box-shadow;transition-property:border, background, box-shadow;transition-property:border, background, box-shadow, -webkit-box-shadow}pn-checkbox input[type=checkbox]+label.pn-checkbox svg{width:80%;fill:none}pn-checkbox input[type=checkbox]+label.pn-checkbox svg polyline{stroke:#FFF;-webkit-transform-origin:0 0;transform-origin:0 0;stroke-linecap:round;stroke-dasharray:23;stroke-dashoffset:23;-webkit-transition-delay:none;transition-delay:none;-webkit-transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86)}pn-checkbox input[type=checkbox]:hover+label.pn-checkbox{border:0.1rem solid #005d92;background:#e0f8ff}pn-checkbox input[type=checkbox]:checked+label.pn-checkbox,pn-checkbox input[type=checkbox]:indeterminate+label.pn-checkbox{background:#005d92;border:0.1rem solid #005d92}pn-checkbox input[type=checkbox]:checked+label.pn-checkbox svg polyline,pn-checkbox input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline{-webkit-transition-delay:220ms;transition-delay:220ms}pn-checkbox input[type=checkbox]:checked+label.pn-checkbox svg polyline.checkmark-path{stroke-dashoffset:0}pn-checkbox input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline.checkmark-path{stroke-dashoffset:23}pn-checkbox input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline.indeterminate-path{stroke-dashoffset:0}pn-checkbox input[type=checkbox]:focus+label.pn-checkbox,pn-checkbox input[type=checkbox]:active+label.pn-checkbox{-webkit-box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005d92;box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005d92}pn-checkbox input[type=checkbox]:disabled+label.pn-checkbox{background-color:#d3cecb;border:0.1rem solid #969087;cursor:not-allowed}pn-checkbox input[type=checkbox]:disabled+label.pn-checkbox svg polyline{stroke:#969087}pn-checkbox input[type=checkbox]:disabled:checked+label.pn-checkbox{border:0.1rem solid transparent}pn-checkbox input[type=checkbox]:disabled:active+label.pn-checkbox{-webkit-box-shadow:none;box-shadow:none}";
|
|
4
4
|
|
|
5
5
|
const PnCheckbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -9,6 +9,8 @@ const PnCheckbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
9
9
|
this.disabled = false;
|
|
10
10
|
this.checked = false;
|
|
11
11
|
this.indeterminate = false;
|
|
12
|
+
this.ariaLabel = null;
|
|
13
|
+
this.ariaDescribedby = null;
|
|
12
14
|
}
|
|
13
15
|
handlechange() {
|
|
14
16
|
this.indeterminate = false;
|
|
@@ -26,7 +28,7 @@ const PnCheckbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
26
28
|
}
|
|
27
29
|
}
|
|
28
30
|
render() {
|
|
29
|
-
return (h(Host, null, h("input", { type: "checkbox", id: this.checkboxid, value: this.value, name: this.name || this.checkboxid, disabled: this.disabled, checked: this.checked }), h("label", { htmlFor: this.checkboxid, class: "pn-checkbox" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, h("polyline", { class: "checkmark-path", points: "4,12 9,17 20,6", "stroke-width": "3" }), h("polyline", { class: "indeterminate-path", points: "4,12 20,12", "stroke-width": "3" })))));
|
|
31
|
+
return (h(Host, null, h("input", { type: "checkbox", id: this.checkboxid, value: this.value, name: this.name || this.checkboxid, disabled: this.disabled, checked: this.checked, "aria-describedby": this.ariaDescribedby }), h("label", { htmlFor: this.checkboxid, class: "pn-checkbox" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, h("polyline", { class: "checkmark-path", points: "4,12 9,17 20,6", "stroke-width": "3" }), h("polyline", { class: "indeterminate-path", points: "4,12 20,12", "stroke-width": "3" })))));
|
|
30
32
|
}
|
|
31
33
|
get hostElement() { return this; }
|
|
32
34
|
static get style() { return pnCheckboxCss; }
|
|
@@ -36,7 +38,9 @@ const PnCheckbox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
36
38
|
"checkboxid": [1],
|
|
37
39
|
"disabled": [4],
|
|
38
40
|
"checked": [4],
|
|
39
|
-
"indeterminate": [1028]
|
|
41
|
+
"indeterminate": [1028],
|
|
42
|
+
"ariaLabel": [1, "aria-label"],
|
|
43
|
+
"ariaDescribedby": [1, "aria-describedby"]
|
|
40
44
|
}, [[0, "change", "handlechange"]]]);
|
|
41
45
|
function defineCustomElement() {
|
|
42
46
|
if (typeof customElements === "undefined") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const pnChoiceChipCss = "pn-choice-chip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative}pn-choice-chip input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-chip label{display:block;padding:0.4rem 0.8rem;border:0.1rem solid #
|
|
3
|
+
const pnChoiceChipCss = "pn-choice-chip{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative}pn-choice-chip input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-chip label{display:block;padding:0.4rem 0.8rem;border:0.1rem solid #005d92;color:#005d92;border-radius:0.8rem;text-align:center;cursor:pointer;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s;transition:background 0.2s, -webkit-box-shadow 0.1s;transition:box-shadow 0.1s, background 0.2s;transition:box-shadow 0.1s, background 0.2s, -webkit-box-shadow 0.1s}pn-choice-chip input[type=checkbox]:checked+label.pn-choice-chip,pn-choice-chip input[type=checkbox]:indeterminate+label.pn-choice-chip{background:#005d92;color:#fff}pn-choice-chip input[type=checkbox]:hover+label.pn-choice-chip{background:#e0f8ff}pn-choice-chip input[type=checkbox]:focus+label.pn-choice-chip,pn-choice-chip input[type=checkbox]:active+label.pn-choice-chip{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005d92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005d92}pn-choice-chip input[type=checkbox]:active+label.pn-choice-chip{background:#8eddf9}pn-choice-chip input[type=checkbox]:disabled+label.pn-choice-chip{background-color:#d3cecb}pn-choice-chip input[type=checkbox]:checked+label.pn-choice-chip:hover{background:#0d234b;color:#fff}pn-choice-chip input[type=checkbox]:checked+label.pn-choice-chip:active{background:#00a0d6;border:0.1rem solid #00a0d6;color:#fff}";
|
|
4
4
|
|
|
5
5
|
const Pnchoicechip = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { c as colors } from './colors.js';
|
|
3
3
|
|
|
4
|
-
const pnColorsCss = ".colors{padding:3em 2em;max-width:100rem;margin:auto}.palette-container{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.palette-container .color-palette{-ms-flex:1;flex:1;margin:1em}.palette-container .color-palette .color-swatch{width:100px;height:100px;-webkit-box-shadow:1px 2px 4px #
|
|
4
|
+
const pnColorsCss = ".colors{padding:3em 2em;max-width:100rem;margin:auto}.palette-container{width:100%;height:100%;display:-ms-flexbox;display:flex;-ms-flex-line-pack:center;align-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.palette-container .color-palette{-ms-flex:1;flex:1;margin:1em}.palette-container .color-palette .color-swatch{width:100px;height:100px;-webkit-box-shadow:1px 2px 4px #f3f2f2;box-shadow:1px 2px 4px #f3f2f2}.palette-container .color-palette .color-name{-ms-flex-line-pack:center;align-content:center;margin-top:8px}";
|
|
5
5
|
|
|
6
6
|
const PnColors$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
7
|
constructor() {
|
|
@@ -3,7 +3,7 @@ import { c as createDateOrNull, d as debounce } from './helpers.js';
|
|
|
3
3
|
import { d as defineCustomElement$3 } from './pn-calendar2.js';
|
|
4
4
|
import { d as defineCustomElement$2 } from './pn-icon2.js';
|
|
5
5
|
|
|
6
|
-
const pnDatePickerOldCss = "pn-date-picker{display:inline-block}pn-date-picker.open-datepicker .datepicker-container .datepicker-input-container input,pn-date-picker.open-datepicker .datepicker-container .datepicker-input-container input:focus,pn-date-picker.open-datepicker .datepicker-container .datepicker-input-container input:hover{outline:none;border:0.1rem solid #
|
|
6
|
+
const pnDatePickerOldCss = "pn-date-picker{display:inline-block}pn-date-picker.open-datepicker .datepicker-container .datepicker-input-container input,pn-date-picker.open-datepicker .datepicker-container .datepicker-input-container input:focus,pn-date-picker.open-datepicker .datepicker-container .datepicker-input-container input:hover{outline:none;border:0.1rem solid #005d92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005d92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005d92}pn-date-picker.open-datepicker .datepicker-calendar-container{display:block}pn-date-picker.open-datepicker .datepicker-container .datepicker-input-container label,pn-date-picker.has-input .datepicker-container .datepicker-input-container label{top:0.1rem;-webkit-transform:translateY(0);transform:translateY(0);font-size:1.2rem}pn-date-picker.invalid .datepicker-container .datepicker-input-container input,pn-date-picker.invalid .datepicker-container .datepicker-input-container input:focus,pn-date-picker.invalid .datepicker-container .datepicker-input-container input:hover{border:0.1rem solid #a70707}pn-date-picker.invalid .datepicker-container .datepicker-input-container input:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #a70707;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #a70707}pn-date-picker .datepicker-container{position:relative}pn-date-picker .datepicker-container .datepicker-input-container{border:none;position:relative;width:100%;height:100%}pn-date-picker .datepicker-container .datepicker-input-container input,pn-date-picker .datepicker-container .datepicker-input-container div,pn-date-picker .datepicker-container .datepicker-input-container label,pn-date-picker .datepicker-container .datepicker-input-container span{font-family:inherit}pn-date-picker .datepicker-container .datepicker-input-container input{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;border:0.1rem solid #5e554a;background-color:#fff;padding:0.75em;color:#000000;font-size:1.6rem;font-weight:300;line-height:2rem;border-radius:0.8rem;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s}pn-date-picker .datepicker-container .datepicker-input-container input::-webkit-input-placeholder{color:#969087}pn-date-picker .datepicker-container .datepicker-input-container input::-moz-placeholder{color:#969087}pn-date-picker .datepicker-container .datepicker-input-container input:-ms-input-placeholder{color:#969087}pn-date-picker .datepicker-container .datepicker-input-container input::-ms-input-placeholder{color:#969087}pn-date-picker .datepicker-container .datepicker-input-container input::placeholder{color:#969087}pn-date-picker .datepicker-container .datepicker-input-container input{-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-box-shadow:none;box-shadow:none;outline:none}pn-date-picker .datepicker-container .datepicker-input-container input:hover{border-color:#00a0d6}pn-date-picker .datepicker-container .datepicker-input-container input:disabled{background-color:#f3f2f2;border-color:#d3cecb;color:#969087}pn-date-picker .datepicker-container .datepicker-input-container>pn-icon,pn-date-picker .datepicker-container .datepicker-input-container>pn-spinner{position:absolute;right:1rem;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}pn-date-picker .datepicker-container .datepicker-input-container>pn-icon{cursor:pointer}pn-date-picker .datepicker-container .datepicker-input-container label{-webkit-transition:0.2s ease-in-out;transition:0.2s ease-in-out;font-size:1em;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;-ms-flex-order:1;order:1;pointer-events:none;-webkit-font-smoothing:antialiased;z-index:1;position:absolute;color:#969087;font-weight:normal}pn-date-picker .datepicker-calendar-container{display:none;position:absolute;border-radius:0.8rem;top:120%;left:0;width:29.6rem;padding:1.6rem 1.6rem 0.735rem 1.6rem;border:0.1rem solid #d3cecb;-webkit-box-shadow:0 1.2px 3.6px rgba(0, 0, 0, 0.1), 0 6.4px 14.4px rgba(0, 0, 0, 0.13);box-shadow:0 1.2px 3.6px rgba(0, 0, 0, 0.1), 0 6.4px 14.4px rgba(0, 0, 0, 0.13);background-color:white;z-index:9999}pn-date-picker.position-top .datepicker-calendar-container{top:auto;bottom:calc(100% + 1.2rem)}pn-date-picker.position-left .datepicker-calendar-container{right:auto;left:0}pn-date-picker.position-right .datepicker-calendar-container{right:0;left:auto}";
|
|
7
7
|
|
|
8
8
|
const PnDatePickerOld$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
9
9
|
constructor() {
|
|
@@ -75,15 +75,15 @@ const translations = {
|
|
|
75
75
|
],
|
|
76
76
|
},
|
|
77
77
|
WEEK: {
|
|
78
|
-
en: ['
|
|
79
|
-
sv: ['
|
|
80
|
-
da: ['
|
|
81
|
-
fi: ['
|
|
82
|
-
no: ['
|
|
78
|
+
en: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
|
79
|
+
sv: ['Mån', 'Tis', 'Ons', 'Tor', 'Fre', 'Lör', 'Sön'],
|
|
80
|
+
da: ['Man', 'Tir', 'Ons', 'Tor', 'Fre', 'Lør', 'Søn'],
|
|
81
|
+
fi: ['Ma', 'Ti', 'Ke', 'To', 'Pe', 'La', 'Su'],
|
|
82
|
+
no: ['Ma.', 'Ti.', 'On.', 'To.', 'Fr.', 'Lø.', 'Sø'],
|
|
83
83
|
},
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
const pnDatePickerCss = "pn-date-picker{position:relative;display:block}pn-date-picker .weekday{color:#
|
|
86
|
+
const pnDatePickerCss = "pn-date-picker{position:relative;display:inline-block}pn-date-picker .weekday{color:#5e554a;font-weight:500}pn-date-picker .calendar-wrapper{background:#ffffff;border-radius:0.5em;position:absolute;max-width:22em;top:115%;width:100%;left:0;overflow:hidden;z-index:5;-webkit-box-shadow:0px 6.4000000954px 14.3999996185px 0px #00000021, 0px 1.2000000477px 3.5999999046px 0px #0000001a;box-shadow:0px 6.4000000954px 14.3999996185px 0px #00000021, 0px 1.2000000477px 3.5999999046px 0px #0000001a;visibility:hidden;pointer-events:none;-webkit-transition-property:visibility;transition-property:visibility;-webkit-transition-delay:0.2s;transition-delay:0.2s;-webkit-transition-duration:0s;transition-duration:0s}pn-date-picker .calendar-wrapper[data-open]{visibility:visible;pointer-events:auto;-webkit-transition-delay:0s;transition-delay:0s}pn-date-picker .calendar-wrapper[data-open] .calendar{max-height:min(30em, 80vh);-webkit-transition-delay:0s;transition-delay:0s}pn-date-picker .calendar{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;text-align:center;max-height:0;overflow:auto;-webkit-transition:max-height 0.2s cubic-bezier(0.7, 0, 0.3, 1);transition:max-height 0.2s cubic-bezier(0.7, 0, 0.3, 1);}pn-date-picker .calendar::-webkit-scrollbar{background-color:#fff;width:0.75em}pn-date-picker .calendar::-webkit-scrollbar-track{background-color:#fff}pn-date-picker .calendar::-webkit-scrollbar-thumb{background-color:#005d92;border-radius:1em;border:0.25em solid #fff}pn-date-picker .calendar::-webkit-scrollbar-thumb:hover{background-color:#0d234b}pn-date-picker .calendar::-webkit-scrollbar-button{display:none}pn-date-picker [data-month]{padding-top:1.5em}pn-date-picker .pn-date-picker-month{font-weight:500}pn-date-picker .month{font-size:1em;display:grid;padding:0.5em;grid-template-columns:repeat(7, 1fr);grid-gap:0.5em 0;background:#fff;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}pn-date-picker .day{font-size:1em;background:none;aspect-ratio:1;border:none;outline:none;position:relative;cursor:pointer;-webkit-transition:background 0.15s, border-radius 0.15s;transition:background 0.15s, border-radius 0.15s;border-radius:50%;}pn-date-picker .day>span.number{position:relative}pn-date-picker .day::before{content:\"\";position:absolute;top:0;right:0;bottom:0;left:0;margin:auto;-webkit-transition:inherit;transition:inherit}pn-date-picker .day[data-today]::after{content:\"\";position:absolute;width:0.4em;height:0.4em;bottom:10%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);border-radius:50%;background:#005d92}pn-date-picker .day[data-selected=start][data-today]::after,pn-date-picker .day[data-selected=end][data-today]::after,pn-date-picker .day[data-selected=single][data-today]::after{background:#e0f8ff}pn-date-picker .day[data-selected=start]::before,pn-date-picker .day[data-selected=end]::before,pn-date-picker .day[data-selected=single]::before{border-radius:50%;background-color:#005d92}pn-date-picker .day[data-selected=start]::before{border-top-right-radius:0;border-bottom-right-radius:0}pn-date-picker .day[data-selected=start],pn-date-picker .day[data-selected=end],pn-date-picker .day[data-selected=single]{color:white}pn-date-picker .day[data-selected=between]::before{background-color:#e0f8ff;border-radius:0}pn-date-picker .day[data-selected=end][data-selected=end]::before{border-top-left-radius:0;border-bottom-left-radius:0}pn-date-picker .day:focus,pn-date-picker .day:hover{background-color:#effbff}pn-date-picker .pn-date-input-container{background:#ffffff;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;gap:1em;width:100%;padding:0.5em 0.5em 0.5em 0.75em;border-radius:0.5em;border:0.1rem solid #969087;-webkit-transition:-webkit-box-shadow 0.15s;transition:-webkit-box-shadow 0.15s;transition:box-shadow 0.15s;transition:box-shadow 0.15s, -webkit-box-shadow 0.15s}pn-date-picker .pn-date-input-container:focus-within{-webkit-box-shadow:0 0 0 0.1em #fff, 0 0 0 0.2em #005d92;box-shadow:0 0 0 0.1em #fff, 0 0 0 0.2em #005d92}pn-date-picker .pn-date-input-container .divider{width:0.15em;height:1.15em;background:#005d92;border-radius:1em;-ms-flex:0 0 auto;flex:0 0 auto}pn-date-picker .pn-date-input-container pn-icon{-webkit-transition:-webkit-transform 0.15s cubic-bezier(0.7, 0, 0.3, 1);transition:-webkit-transform 0.15s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.15s cubic-bezier(0.7, 0, 0.3, 1);transition:transform 0.15s cubic-bezier(0.7, 0, 0.3, 1), -webkit-transform 0.15s cubic-bezier(0.7, 0, 0.3, 1)}pn-date-picker .pn-date-input-container pn-icon.backwards{-webkit-transform:rotate(180deg);transform:rotate(180deg)}pn-date-picker .pn-date-input-container input{border:none;outline:none;padding:0;font-size:1em;width:100%;background:transparent;padding:0.15em 0;-webkit-transition:inherit;transition:inherit}pn-date-picker .pn-date-input-container input:first-of-type::-webkit-input-placeholder{text-align:right}pn-date-picker .pn-date-input-container input:first-of-type::-moz-placeholder{text-align:right}pn-date-picker .pn-date-input-container input:first-of-type:-ms-input-placeholder{text-align:right}pn-date-picker .pn-date-input-container input:first-of-type::-ms-input-placeholder{text-align:right}pn-date-picker .pn-date-input-container input:first-of-type::placeholder{text-align:right}pn-date-picker .pn-date-input-container input:last-of-type::-webkit-input-placeholder{text-align:left}pn-date-picker .pn-date-input-container input:last-of-type::-moz-placeholder{text-align:left}pn-date-picker .pn-date-input-container input:last-of-type:-ms-input-placeholder{text-align:left}pn-date-picker .pn-date-input-container input:last-of-type::-ms-input-placeholder{text-align:left}pn-date-picker .pn-date-input-container input:last-of-type::placeholder{text-align:left}pn-date-picker .pn-date-input-container button.pn-date-calendar{border:none;background:none;cursor:pointer;outline:none;-webkit-transition:background 0.15s, -webkit-box-shadow 0.15s;transition:background 0.15s, -webkit-box-shadow 0.15s;transition:background 0.15s, box-shadow 0.15s;transition:background 0.15s, box-shadow 0.15s, -webkit-box-shadow 0.15s;border-radius:50%;padding:0.2em}pn-date-picker .pn-date-input-container button.pn-date-calendar:hover{background:#e0f8ff}pn-date-picker .pn-date-input-container button.pn-date-calendar:focus{-webkit-box-shadow:0 0 0 0.1em #fff, 0 0 0 0.2em #005d92;box-shadow:0 0 0 0.1em #fff, 0 0 0 0.2em #005d92;background:#e0f8ff}";
|
|
87
87
|
|
|
88
88
|
const PnDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
89
89
|
constructor() {
|
|
@@ -104,9 +104,9 @@ const PnDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
104
104
|
this.range = false;
|
|
105
105
|
this.disableWeekends = false;
|
|
106
106
|
/** Placeholder for the input field (this will be start date if you have a ranged date picker) */
|
|
107
|
-
this.placeholder = '
|
|
107
|
+
this.placeholder = '';
|
|
108
108
|
/** Placeholder for end date */
|
|
109
|
-
this.endPlaceholder = '
|
|
109
|
+
this.endPlaceholder = '';
|
|
110
110
|
this.currentState = 'idle';
|
|
111
111
|
this.week = [];
|
|
112
112
|
this.months = [];
|
|
@@ -116,6 +116,7 @@ const PnDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
116
116
|
this.selectionMade = false;
|
|
117
117
|
this.years = [];
|
|
118
118
|
this.today = new Date();
|
|
119
|
+
this.shouldScroll = true;
|
|
119
120
|
/* -----------------STATE MACHINE LOGIC------------------ */
|
|
120
121
|
this.machine = {
|
|
121
122
|
initial: 'idle',
|
|
@@ -173,15 +174,15 @@ const PnDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
173
174
|
this.setLanguage();
|
|
174
175
|
this.setYears();
|
|
175
176
|
}
|
|
176
|
-
componentDidLoad() {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
177
|
+
// componentDidLoad() {
|
|
178
|
+
// requestAnimationFrame(() => {
|
|
179
|
+
// const date = this.startDate && this.startDate.getTime() ? this.startDate : new Date();
|
|
180
|
+
// const year = date.getFullYear();
|
|
181
|
+
// const month = this.months[date.getMonth()];
|
|
182
|
+
// const monthEl = this.hostElement.querySelector(`[data-year="${year}"] [data-month="${month}"]`);
|
|
183
|
+
// monthEl.scrollIntoView();
|
|
184
|
+
// });
|
|
185
|
+
// }
|
|
185
186
|
/* -----------------/LIFE CYCLE HOOKS------------------ */
|
|
186
187
|
/* -----------------UTILS------------------ */
|
|
187
188
|
makeSelection() {
|
|
@@ -203,6 +204,8 @@ const PnDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
203
204
|
this.setDateFromOutside();
|
|
204
205
|
}
|
|
205
206
|
openHandler() {
|
|
207
|
+
if (this.shouldScroll)
|
|
208
|
+
this.scrollToMonth();
|
|
206
209
|
if (this.open) {
|
|
207
210
|
document.addEventListener('click', this.handleGlobalClick);
|
|
208
211
|
return;
|
|
@@ -211,6 +214,14 @@ const PnDatePicker$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
211
214
|
this.endDate = null;
|
|
212
215
|
document.removeEventListener('click', this.handleGlobalClick);
|
|
213
216
|
}
|
|
217
|
+
scrollToMonth() {
|
|
218
|
+
this.shouldScroll = false;
|
|
219
|
+
const date = this.startDate && this.startDate.getTime() ? this.startDate : new Date();
|
|
220
|
+
const year = date.getFullYear();
|
|
221
|
+
const month = this.months[date.getMonth()];
|
|
222
|
+
const monthEl = this.hostElement.querySelector(`[data-year="${year}"] [data-month="${month}"]`);
|
|
223
|
+
monthEl.scrollIntoView();
|
|
224
|
+
}
|
|
214
225
|
clickHandler(e) {
|
|
215
226
|
var _a;
|
|
216
227
|
const target = (_a = e.composedPath) === null || _a === void 0 ? void 0 : _a.call(e)[0];
|
|
@@ -14,7 +14,7 @@ class PnFileUploadError extends Error {
|
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
const pnFileUploadCss = "pn-file-upload.hover .pn-file-upload-container .pn-dropzone-container{background-color:#
|
|
17
|
+
const pnFileUploadCss = "pn-file-upload.hover .pn-file-upload-container .pn-dropzone-container{background-color:#e0f8ff}pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container{background-color:#d3cecb}pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container,pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container:after,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container:after{background-image:-webkit-gradient(linear, left top, right top, color-stop(50%, #969087), color-stop(0%, transparent));background-image:linear-gradient(to right, #969087 50%, transparent 0%)}pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container .pn-dropzone-inner,pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container .pn-dropzone-inner:after,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container .pn-dropzone-inner,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container .pn-dropzone-inner:after{background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #969087), color-stop(0%, transparent));background-image:linear-gradient(to bottom, #969087 50%, transparent 0%)}pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container a,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container a{cursor:default}pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container:hover,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container:hover{background-color:#d3cecb}pn-file-upload.invalid .pn-file-upload-container .pn-dropzone-container .headline a,pn-file-upload.disabled .pn-file-upload-container .pn-dropzone-container .headline a{color:#5e554a}pn-file-upload .pn-file-upload-input{display:none}pn-file-upload .pn-file-upload-container .pn-dropzone-container{text-align:center;position:relative;background-image:-webkit-gradient(linear, left top, right top, color-stop(50%, #00a0d6), color-stop(0%, transparent));background-image:linear-gradient(to right, #00a0d6 50%, transparent 0%);background-position:top;background-size:16px 1px;background-repeat:repeat-x;background-color:#ffffff}pn-file-upload .pn-file-upload-container .pn-dropzone-container:after{content:\" \";position:absolute;width:100%;height:1px;bottom:0;left:0;background-image:-webkit-gradient(linear, left top, right top, color-stop(50%, #00a0d6), color-stop(0%, transparent));background-image:linear-gradient(to right, #00a0d6 50%, transparent 0%);background-position:bottom;background-size:16px 1px;background-repeat:repeat-x}pn-file-upload .pn-file-upload-container .pn-dropzone-container:hover{background-color:#e0f8ff}pn-file-upload .pn-file-upload-container .pn-dropzone-container .pn-dropzone-inner{padding:25px 60px;position:relative;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #00a0d6), color-stop(0%, transparent));background-image:linear-gradient(to bottom, #00a0d6 50%, transparent 0%);background-position:left;background-size:1px 16px;background-repeat:repeat-y}pn-file-upload .pn-file-upload-container .pn-dropzone-container .pn-dropzone-inner:after{content:\" \";position:absolute;width:1px;height:100%;top:0;right:0;background-image:-webkit-gradient(linear, left top, left bottom, color-stop(50%, #00a0d6), color-stop(0%, transparent));background-image:linear-gradient(to bottom, #00a0d6 50%, transparent 0%);background-position:right;background-size:1px 16px;background-repeat:repeat-y}pn-file-upload .pn-file-upload-container .pn-dropzone-container .headline{color:#969087;font-size:16px;font-weight:300;line-height:20px;text-align:center;margin-bottom:8px}pn-file-upload .pn-file-upload-container .pn-dropzone-container .headline a{color:#005d92}pn-file-upload .pn-file-upload-container .pn-dropzone-container .description{color:#969087;font-size:12px;font-weight:300;line-height:16px;margin-bottom:0}pn-file-upload .files-list .files-list-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:start;align-items:flex-start}pn-file-upload .files-list .files-list-item>pn-progress-bar{margin-right:10px;-ms-flex:1;flex:1}pn-file-upload .files-list .files-list-item>pn-icon{margin-top:34px;cursor:pointer}pn-file-upload .files-list .files-list-item-error{color:#5e554a;font-size:14px;font-weight:300;line-height:20px}";
|
|
18
18
|
|
|
19
19
|
const PnFileUpload$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
20
20
|
constructor() {
|
|
@@ -137,7 +137,7 @@ const translations = {
|
|
|
137
137
|
},
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
const pnFooterCss = "pn-footer{color:#
|
|
140
|
+
const pnFooterCss = "pn-footer{color:#5e554a;padding-bottom:2em;display:block}pn-footer .pn-footer-row{padding:0.2em 0;font-size:0.9em;text-align:center}pn-footer .pn-footer-row p,pn-footer .pn-footer-row a{margin-right:0.2em;display:inline-block}pn-footer a{color:#005d92}pn-footer pn-icon{margin-left:0.2em}pn-footer #ot-sdk-btn{-webkit-box-direction:normal;-webkit-box-sizing:border-box;box-sizing:border-box;color:#005d92;display:inline-block;font-size:0.9em;margin-right:0.2em;text-align:center;text-decoration:none;visibility:inherit}";
|
|
141
141
|
|
|
142
142
|
const PnFooter$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
143
143
|
constructor() {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PnHeader extends Components.PnHeader, HTMLElement {}
|
|
4
|
+
export const PnHeader: {
|
|
5
|
+
prototype: PnHeader;
|
|
6
|
+
new (): PnHeader;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
import { c as colors } from './colors.js';
|
|
3
|
+
|
|
4
|
+
const pnHeaderCss = "pn-header{border-radius:0.5em;background-color:#effbff;background-color:var(--bg);display:block;-webkit-transition:background-color 0.2s ease-in-out;transition:background-color 0.2s ease-in-out}pn-header>.page-nav{padding:clamp(1em, 3vw, 2em) clamp(0.5em, 3vw, 2em) 1em;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}pn-header>.page-nav>pn-page-nav{min-width:0}.pn-header-content-wrapper{position:relative}pn-header .pn-header-content{max-width:var(--max-width);margin:auto;display:-ms-flexbox;display:flex;gap:0.5em;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;padding-right:0;position:relative;text-align:left;-ms-flex-align:space-between;align-items:space-between;background-color:var(--bg);z-index:1}pn-header .pn-header-content>*{min-width:0}pn-header .pn-header-left{-ms-flex:1 1 60%;flex:1 1 60%;padding:1em;padding:clamp(1em, 3vw, 2em) clamp(0.5em, 3vw, 2em);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:1.5em}pn-header .pn-header-left h1{font-size:clamp(1.85em, 5vw, 2em)}pn-header .pn-header-left p{font-size:1.25em;max-width:60ch;line-height:1.4}pn-header [slot=buttons]{display:-ms-flexbox;display:flex;gap:0.5em;-ms-flex-wrap:wrap-reverse;flex-wrap:wrap-reverse;-ms-flex-pack:center;justify-content:center;max-width:30em}pn-header [slot=buttons]>*{-ms-flex:1 1 auto;flex:1 1 auto}.pn-header-content-wrapper.pn-header-illustration .pn-header-right{background-color:#e0f8ff;background-color:var(--pill-color);border-radius:20em 1em 1em 20em}.pn-header-content-wrapper.pn-header-illustration::after{content:\"\";background-color:var(--pill-color);position:absolute;right:0;top:0;width:50%;height:100%;border-radius:0 0 0.5em 0}.pn-header-content-wrapper.pn-header-illustration .pn-header-right{-ms-flex:1 1 12em;flex:1 1 12em;margin-left:2em;padding-left:2em;display:-ms-flexbox;display:flex;-ms-flex-align:end;align-items:flex-end;-ms-flex-pack:end;justify-content:flex-end;-webkit-transition:background-color 0.2s ease-in-out;transition:background-color 0.2s ease-in-out}.pn-header-content-wrapper.pn-header-illustration .pn-header-right [slot=illustration]{max-height:clamp(6em, 35vw, 25em);height:-webkit-min-content;height:-moz-min-content;height:min-content}";
|
|
5
|
+
|
|
6
|
+
const PnHeader$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
/** Available colors: blue, coral, orange, gray and green */
|
|
11
|
+
this.color = 'blue';
|
|
12
|
+
this.maxWidth = null;
|
|
13
|
+
}
|
|
14
|
+
colorHandler() {
|
|
15
|
+
this.setColor();
|
|
16
|
+
}
|
|
17
|
+
componentWillLoad() {
|
|
18
|
+
this.setColor();
|
|
19
|
+
this.checkSlots();
|
|
20
|
+
}
|
|
21
|
+
setColor() {
|
|
22
|
+
const alternatives = ['blue', 'coral', 'gray', 'orange', 'green'];
|
|
23
|
+
this.color = alternatives.includes(this.color) ? this.color : 'blue';
|
|
24
|
+
this.hostElement.style.setProperty('--bg', colors[`${this.color}25`]);
|
|
25
|
+
this.hostElement.style.setProperty('--pill-color', colors[`${this.color}50`]);
|
|
26
|
+
if (this.maxWidth)
|
|
27
|
+
this.hostElement.style.setProperty('--max-width', `${this.maxWidth}`);
|
|
28
|
+
}
|
|
29
|
+
checkSlots() {
|
|
30
|
+
const slottedIllustration = this.hostElement.querySelector('[slot="illustration"]');
|
|
31
|
+
const topNav = this.hostElement.querySelector('[slot="top-menu"]');
|
|
32
|
+
this.topNav = !!topNav;
|
|
33
|
+
this.pill = !!slottedIllustration;
|
|
34
|
+
}
|
|
35
|
+
wrapperClasses() {
|
|
36
|
+
let classes = 'pn-header-content-wrapper ';
|
|
37
|
+
if (this.pill)
|
|
38
|
+
classes += 'pn-header-illustration ';
|
|
39
|
+
return classes;
|
|
40
|
+
}
|
|
41
|
+
render() {
|
|
42
|
+
return (h(Host, null, this.topNav && (h("div", { class: "page-nav" }, h("slot", { name: "top-menu" }))), h("div", { class: this.wrapperClasses() }, h("div", { class: "pn-header-content" }, h("div", { class: "pn-header-left" }, h("h1", null, this.heading), h("p", null, h("slot", null)), h("slot", { name: "buttons" }), h("slot", { name: "bottom-menu" })), h("div", { class: "pn-header-right" }, h("slot", { name: "illustration" }))))));
|
|
43
|
+
}
|
|
44
|
+
get hostElement() { return this; }
|
|
45
|
+
static get watchers() { return {
|
|
46
|
+
"color": ["colorHandler"]
|
|
47
|
+
}; }
|
|
48
|
+
static get style() { return pnHeaderCss; }
|
|
49
|
+
}, [4, "pn-header", {
|
|
50
|
+
"heading": [1],
|
|
51
|
+
"color": [1025],
|
|
52
|
+
"maxWidth": [1, "max-width"]
|
|
53
|
+
}]);
|
|
54
|
+
function defineCustomElement$1() {
|
|
55
|
+
if (typeof customElements === "undefined") {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const components = ["pn-header"];
|
|
59
|
+
components.forEach(tagName => { switch (tagName) {
|
|
60
|
+
case "pn-header":
|
|
61
|
+
if (!customElements.get(tagName)) {
|
|
62
|
+
customElements.define(tagName, PnHeader$1);
|
|
63
|
+
}
|
|
64
|
+
break;
|
|
65
|
+
} });
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const PnHeader = PnHeader$1;
|
|
69
|
+
const defineCustomElement = defineCustomElement$1;
|
|
70
|
+
|
|
71
|
+
export { PnHeader, defineCustomElement };
|