@postnord/pn-marketweb-components 4.3.6 → 4.3.8
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/{convert-9361e443.js → convert-aa209554.js} +27 -17
- package/cjs/convert-aa209554.js.map +1 -0
- package/cjs/pn-find-price.cjs.entry.js +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +2 -2
- package/components/convert.js +26 -16
- package/components/convert.js.map +1 -1
- package/components/pn-teaser-card.js +1 -1
- package/components/pn-teaser-card.js.map +1 -1
- package/esm/{convert-ecca01b6.js → convert-a9a18794.js} +27 -17
- package/esm/convert-a9a18794.js.map +1 -0
- package/esm/pn-find-price.entry.js +1 -1
- package/esm/pn-find-service-and-price.entry.js +1 -1
- package/esm/pn-product-pricelist.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js.map +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-00e6bb4b.js +2 -0
- package/pn-market-web-components/p-00e6bb4b.js.map +1 -0
- package/pn-market-web-components/{p-c4059cc1.entry.js → p-181e40ee.entry.js} +2 -2
- package/pn-market-web-components/{p-6d263c6e.entry.js → p-96d81eb2.entry.js} +2 -2
- package/pn-market-web-components/p-96d81eb2.entry.js.map +1 -0
- package/pn-market-web-components/{p-f8ccc718.entry.js → p-a0d7154f.entry.js} +2 -2
- package/pn-market-web-components/{p-413afe7c.entry.js → p-c18154a4.entry.js} +2 -2
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/cem.json +12220 -0
- package/umd/modules/@postnord/web-components/cjs/{index-CfUQZtlH.js → index-DWu-2oJc.js} +144 -85
- package/umd/modules/@postnord/web-components/cjs/{index-CNdVg5VI.js → index-vOySuOUW.js} +1 -1
- package/umd/modules/@postnord/web-components/cjs/index.cjs.js +18 -16
- package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-accordion.cjs.entry.js +5 -4
- package/umd/modules/@postnord/web-components/cjs/pn-action-menu.cjs.entry.js +6 -6
- package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +4 -4
- package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +63 -21
- package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +38 -18
- package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +71 -37
- package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +185 -103
- package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +33 -27
- package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +73 -42
- package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-icon_2.cjs.entry.js +8 -10
- package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +122 -89
- package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +24 -12
- package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +136 -52
- package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +4 -4
- package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +61 -20
- package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +88 -43
- package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +42 -25
- package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +16 -11
- package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +21 -21
- package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +90 -35
- package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +15 -10
- 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 +5 -4
- package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +88 -34
- package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +5 -5
- package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +56 -20
- package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-wizard.cjs.entry.js +71 -49
- package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -3
- package/umd/modules/@postnord/web-components/collection/collection-manifest.json +4 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/pn-action-menu.css +1 -10
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js +5 -4
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.css +13 -9
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.js +12 -14
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.css +6 -2
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.js +7 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.css +4 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js +71 -13
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/pn-progress-stepper.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.css +5 -5
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.js +70 -45
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.css +3 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +213 -52
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.js +128 -68
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js +305 -154
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +562 -275
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.css +21 -16
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +114 -54
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.css +37 -50
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js +159 -97
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/translation.js +7 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +415 -264
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.css +13 -24
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +316 -131
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.css +3 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +223 -63
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.css +3 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +357 -191
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.css +6 -9
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +177 -90
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +24 -24
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +84 -37
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +18 -14
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +237 -90
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +6 -5
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +255 -115
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +5 -3
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +216 -68
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +4 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.css +3 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +11 -6
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/collection/globals/helpers.js +16 -14
- package/umd/modules/@postnord/web-components/components/helpers.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-accordion.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-action-menu.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-checkbox.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-date-picker.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-fieldset.js +1 -1
- 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.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-icon2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-illustration2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-input2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-modal.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-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-progress-indicator.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-stepper2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-range.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-spinner2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-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-wizard.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/esm/{index-CosyroON.js → index-DyhO6xPY.js} +1 -1
- package/umd/modules/@postnord/web-components/esm/{index-CAEP792y.js → index-XKg-ydzH.js} +144 -85
- package/umd/modules/@postnord/web-components/esm/index.js +19 -17
- package/umd/modules/@postnord/web-components/esm/loader.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js +5 -4
- package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js +6 -6
- package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +4 -4
- package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +63 -21
- package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +38 -18
- package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +71 -37
- package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +185 -103
- package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +33 -27
- package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +73 -42
- package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-icon_2.entry.js +8 -10
- package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +122 -89
- package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +24 -12
- package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +137 -53
- package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +4 -4
- package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +61 -20
- package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +88 -43
- package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +42 -25
- package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +16 -11
- package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +21 -21
- package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +90 -35
- package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +15 -10
- package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +5 -4
- package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +88 -34
- package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +5 -5
- package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +56 -20
- package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js +71 -49
- package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -4
- package/umd/modules/@postnord/web-components/hydrate/index.js +1715 -940
- package/umd/modules/@postnord/web-components/hydrate/index.mjs +1715 -940
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +3 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +3 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +3312 -561
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-globals/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +246 -179
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +245 -180
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +49 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +51 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +23 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +238 -169
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +12 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +10 -10
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/460.node-fetch.js +3 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +32 -32
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +4 -4
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +33 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/package.json +16 -16
- package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-ea50ecd2.entry.js → p-020ee3f4.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-060b6ad2.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0bf70d44.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1ec52623.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-27c71f60.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-292a7591.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3d2cac86.entry.js → p-3709c995.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3db02038.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-2f4ad4a4.entry.js → p-4b9fb0fc.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-506a801d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-518651ad.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-54917d9f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-56ade97b.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-64207923.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-665af57e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6d85c967.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6e407015.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-01ac1c67.entry.js → p-720b8b90.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-7aea3de5.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-7b6ae520.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-83d02093.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-88344f8d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3c96cb61.entry.js → p-895acf7f.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8cedf2e0.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-91c6a8cf.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-98a37be9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9a6c90e4.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9d2ee77a.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9d56fb64.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-BlM_xfdt.js → p-BWAVaTWQ.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-XKg-ydzH.js +6 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a1f92f19.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a31d93db.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-aa15469e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-db2b7e5d.entry.js → p-b45e58df.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b72f9866.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b0710b87.entry.js → p-b7a2e5b0.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c09179d6.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-38e44ed0.entry.js → p-ce2c2395.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d228b929.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d71054df.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d81b4ede.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e11b4af5.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-c4c4c75b.entry.js → p-e5574624.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e6ad75f9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e6cd4c7f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ede550f0.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ef00ef4d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/types/components/buttons/pn-action-menu/pn-action-menu.d.ts +111 -0
- package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/pn-accordion.d.ts +2 -2
- package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-icon/pn-icon.d.ts +5 -7
- package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-illustration/pn-illustration.d.ts +8 -2
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-modal/pn-modal.d.ts +17 -6
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-toast/pn-toast.d.ts +100 -0
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-wizard/pn-wizard.d.ts +6 -1
- package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.d.ts +124 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-choice-chip/pn-choice-chip.d.ts +31 -15
- package/umd/modules/@postnord/web-components/types/components/input/pn-counter/pn-counter.d.ts +51 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-date-picker/pn-date-picker.d.ts +338 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-fieldset/pn-fieldset.d.ts +24 -15
- package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/pn-file-upload.d.ts +36 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/translation.d.ts +7 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +89 -66
- package/umd/modules/@postnord/web-components/types/components/input/pn-multiselect/pn-multiselect.d.ts +265 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-radio-button/pn-radio-button.d.ts +124 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-range/pn-range.d.ts +73 -42
- package/umd/modules/@postnord/web-components/types/components/input/pn-search-field/pn-search-field.d.ts +32 -21
- package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/pn-segmented-control.d.ts +19 -18
- package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/segment/pn-segment.d.ts +12 -9
- package/umd/modules/@postnord/web-components/types/components/input/pn-select/pn-select.d.ts +51 -31
- package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +58 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-toggle-switch/pn-toggle-switch.d.ts +36 -14
- package/umd/modules/@postnord/web-components/types/components.d.ts +1851 -511
- package/umd/modules/@postnord/web-components/types/globals/mixins/index.d.ts +21 -0
- package/umd/modules/@postnord/web-components/types/stencil-public-runtime.d.ts +23 -2
- package/umd/modules/@postnord/web-components/vscode-data.json +218 -38
- package/umd/pn-marketweb-salesforce-header.js +1 -1
- package/cjs/convert-9361e443.js.map +0 -1
- package/esm/convert-ecca01b6.js.map +0 -1
- package/pn-market-web-components/p-63ff7fa2.js +0 -2
- package/pn-market-web-components/p-63ff7fa2.js.map +0 -1
- package/pn-market-web-components/p-6d263c6e.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0dd15cc3.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0e94a4dd.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0ed2ee53.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-109ba1fc.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-153311c8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1a3c49ba.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2610f8ab.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-267c323e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a364778.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a682ff9.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2cce8a9f.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-306ec758.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3d459401.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3deb5a9e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-41c09d4d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-484dfaa4.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-50116c0d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-502b8430.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5b7c1333.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-67f55491.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-838c17b9.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-849d48c6.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-89aaa3c8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8b2b6f5d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-93db2b9e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-97ffc4b3.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-CAEP792y.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b3c4e3e8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b8c4423b.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ba59528f.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c0ae367c.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c843ae5e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d1e27524.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d214e930.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d7091312.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e3fb693e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e83de0b1.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-edc28eee.entry.js +0 -5
- /package/pn-market-web-components/{p-c4059cc1.entry.js.map → p-181e40ee.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f8ccc718.entry.js.map → p-a0d7154f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-413afe7c.entry.js.map → p-c18154a4.entry.js.map} +0 -0
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* By PostNord.
|
|
4
4
|
*/
|
|
5
|
-
import { t as transformTag, M as Mixin, r as registerInstance, c as createEvent, g as getElement, h, a as Host } from './index-
|
|
6
|
-
import { a as animateHeightFactory } from './index-
|
|
5
|
+
import { t as transformTag, M as Mixin, r as registerInstance, c as createEvent, g as getElement, h, a as Host } from './index-XKg-ydzH.js';
|
|
6
|
+
import { a as animateHeightFactory } from './index-DyhO6xPY.js';
|
|
7
7
|
import { a as alert_exclamation_circle } from './alert_exclamation_circle-B88w-Zxn.js';
|
|
8
8
|
import { c as chevron_down } from './chevron_down-DrYFvs2M.js';
|
|
9
9
|
import { c as close } from './close-BvuWkoyY.js';
|
|
10
|
-
import { uuidv4, awaitTopbar, ripple, getTotalHeightOffset, en } from './index.js';
|
|
10
|
+
import { uuidv4, awaitTopbar, ripple, getTotalHeightOffset, getMenuWidth, en } from './index.js';
|
|
11
11
|
|
|
12
12
|
const translations = {
|
|
13
13
|
SELECT_AN_OPTION: {
|
|
@@ -110,23 +110,24 @@ const translations = {
|
|
|
110
110
|
},
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
const pnMultiselectCss = () => `${transformTag("pn-multiselect")}{display:inline-block}${transformTag("pn-multiselect")} .pn-multiselect{position:relative;border:0;margin:0;padding:0}${transformTag("pn-multiselect")} .pn-multiselect[data-icon]{--pn-input-offset-left:2em}${transformTag("pn-multiselect")} .pn-multiselect[data-icon] .pn-multiselect-element{padding-left:2.75em}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-label{color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-label[data-compact]{color:#2d2013}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element{padding-right:5.5em;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:hover{border-color:#500715}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:focus-visible{background-color:#ffffff;border-color:#a70707;outline-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill,${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill:hover,${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill:focus,${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #fef7f6 inset;-webkit-text-fill-color:#2d2013}${transformTag("pn-multiselect")} .pn-multiselect-label{width:100%;cursor:pointer;display:flex;justify-content:space-between;align-items:flex-end;font-weight:400;color:#2d2013;margin:0 0 0.25em 0;gap:0.5em;-webkit-tap-highlight-color:transparent;transition-property:color, transform;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-label{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-label[data-compact]{position:absolute;top:1.5625em;left:calc(var(--pn-input-offset-left, 0px) + 0.75em + 0.0625em);margin:0;pointer-events:none;align-items:center;height:1.5em;max-width:calc(100% - (var(--pn-input-offset-left, 0px) + 0.75em) - (var(--pn-input-offset-right, 0px) + 0.75em));transform:translateY(-50%) scale(1) translateZ(0);transform-origin:0 0;transition-delay:0.2s}${transformTag("pn-multiselect")} .pn-multiselect-label[data-compact]>span{font-size:1em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;line-height:1.5em}${transformTag("pn-multiselect")} .pn-multiselect-label>span{font-size:0.875em}${transformTag("pn-multiselect")} .pn-multiselect-label[data-compact]{justify-content:start}${transformTag("pn-multiselect")} .pn-multiselect-sr-only{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);margin:-1px;white-space:nowrap}${transformTag("pn-multiselect")} .pn-multiselect-group{position:relative;padding:0;margin:0}${transformTag("pn-multiselect")} .pn-multiselect-input{position:relative}${transformTag("pn-multiselect")} .pn-multiselect-input>${transformTag("pn-icon")}{pointer-events:none;position:absolute;top:0.75em;right:3.5em}${transformTag("pn-multiselect")} .pn-multiselect-input>${transformTag("pn-icon")}[data-custom]{left:0.75em;right:unset}${transformTag("pn-multiselect")} .pn-multiselect-button{cursor:pointer;position:absolute;right:0.75em;top:50%;transform:translateY(-50%);padding:0;margin:0;border:0;width:2em;height:2em;font-size:1em;border-radius:50%;background-color:transparent;-webkit-tap-highlight-color:transparent;transition-property:background-color, outline-color, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-button{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-button{outline:0.2rem solid transparent;outline-offset:0.2rem}${transformTag("pn-multiselect")} .pn-multiselect-button:focus-visible{outline-color:#005d92;background-color:#ffffff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-button>${transformTag("pn-icon")}>svg>path{transition-property:transform;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-button>${transformTag("pn-icon")}>svg>path{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-button>${transformTag("pn-icon")}>svg>path{transition-delay:0.2s;transform-origin:center;transform:rotate(0deg)}${transformTag("pn-multiselect")} .pn-multiselect-button:hover{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-button[aria-expanded=true]{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-button[aria-expanded=true]>${transformTag("pn-icon")}>svg>path{transform:rotate(180deg);transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element{cursor:text;text-align:left;transition-delay:0.1s, 0.1s, 0s;width:100%;display:flex;align-items:center;justify-content:space-between;gap:0.5em;overflow:hidden;text-overflow:ellipsis;color:#2d2013;background-color:#ffffff;border:0.0625em solid #969087;border-radius:0.5em;padding:0.75em 3.5em 0.75em 0.75em;font-family:inherit;font-size:1em;font-weight:500;line-height:1.5em;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill,${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill:hover,${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill:focus,${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #e0f8ff inset;-webkit-text-fill-color:#2d2013}${transformTag("pn-multiselect")} .pn-multiselect-element{outline:0.2rem solid transparent;outline-offset:0.2rem}${transformTag("pn-multiselect")} .pn-multiselect-element:focus-visible{outline-color:#005d92;background-color:#ffffff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-element{transition-property:outline-color, background-color, border-color, color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-element{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]{text-align:left;padding-top:1.125em;padding-bottom:0.375em;max-width:unset}${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]::placeholder{color:transparent}${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]:focus+.pn-multiselect-label,${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]:not(:placeholder-shown)+.pn-multiselect-label{transform:translateY(-85%) scale(0.75);transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element::placeholder{color:#5e554a;font-weight:normal}${transformTag("pn-multiselect")} .pn-multiselect-element:hover{border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2;pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled+.pn-multiselect-button{pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled+.pn-multiselect-button path{fill:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-element:placeholder{color:#5e554a;font-weight:normal}${transformTag("pn-multiselect")} .pn-multiselect-element[type=input]:hover{cursor:pointer;color:#2d2013;background-color:#effbff;transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element[type=input]:hover[aria-invalid=true]{background-color:#fdefee}${transformTag("pn-multiselect")} .pn-multiselect-element:focus-visible{transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element::-webkit-search-cancel-button,${transformTag("pn-multiselect")} .pn-multiselect-element::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}${transformTag("pn-multiselect")} .pn-multiselect-options{scroll-behavior:smooth;position:absolute;z-index:10;top:calc(100% + 0.5em);left:0;right:0;background-color:#ffffff;box-shadow:0em 0.075em 0.225em 0em rgba(0, 0, 0, 0.1), 0em 0.4em 0.9em 0em rgba(0, 0, 0, 0.13);border-radius:0.5em;list-style:none;margin:0;padding:0;width:var(--pn-select-options-width);max-height:var(--pn-select-max-height);overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;visibility:hidden;transform-origin:top left}${transformTag("pn-multiselect")} .pn-multiselect-options[data-open]{visibility:visible}${transformTag("pn-multiselect")} .pn-multiselect-options[data-upwards]{top:unset;bottom:calc(100% + 0.5em);transform-origin:bottom left;box-shadow:0 -0.0625em 0.125em rgba(0, 0, 0, 0.2)}${transformTag("pn-multiselect")} .pn-multiselect-options[data-moving]{overflow:hidden;visibility:visible}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar{background-color:#ffffff;width:0.875em;border-radius:0.5em}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-track{background-color:#ffffff;border-radius:0.5em}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-thumb{cursor:pointer;background-color:#969087;border-radius:1em;border:0.25em solid #ffffff}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-thumb:hover{background-color:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-corner,${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-button{display:none}${transformTag("pn-multiselect")} .pn-multiselect-options>${transformTag("pn-input")}{padding:0.5em}${transformTag("pn-multiselect")} .pn-multiselect-optgroup{list-style:none;padding:0}${transformTag("pn-multiselect")} .pn-multiselect-optgroup>.pn-multiselect-option>.pn-multiselect-option-content{padding-left:2em}${transformTag("pn-multiselect")} .pn-multiselect-chips{list-style:none;display:flex;flex-wrap:wrap;gap:0.5em;padding:0;margin:0.5em 0 0 0;color:#5e554a;font-weight:400}${transformTag("pn-multiselect")} .pn-multiselect-chips:empty{display:none}${transformTag("pn-multiselect")} .pn-multiselect-chip{margin:0;display:inline-flex;align-items:center;gap:0.25em;background-color:#ffffff;border-radius:0.5em;padding:0.125em 0.25em 0.125em 0.5em;line-height:1.5em;border:0.0625em solid #5e554a;outline:0.2rem solid transparent;outline-offset:0.2rem;transition-property:background-color, outline-color, border-color, color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-chip{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-chip:focus-within{color:#005d92;outline-color:#005d92;background-color:#effbff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-chip[data-count]{pointer-events:none;border:0;padding-left:0;padding-right:0;background-color:unset}${transformTag("pn-multiselect")} .pn-multiselect-chip-label{font-size:0.875em;white-space:nowrap}${transformTag("pn-multiselect")} .pn-multiselect-chip-button{cursor:pointer;font-size:1em;padding:0.25em;height:1.5em;width:1.5em;border:0;background-color:unset;border-radius:50%;transition-property:background-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-chip-button{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-chip-button{-webkit-tap-highlight-color:transparent}${transformTag("pn-multiselect")} .pn-multiselect-chip-button:hover{background-color:#8eddf9}${transformTag("pn-multiselect")} .pn-multiselect-chip-button:focus{outline:0}${transformTag("pn-multiselect")} .pn-multiselect-no-results{margin:0;padding:0.75em}${transformTag("pn-multiselect")} .pn-multiselect-description{color:#5e554a;font-size:0.875em;font-weight:400;margin:0.25em 0 0 0;display:flex;flex-direction:column;gap:0.25em}${transformTag("pn-multiselect")} .pn-multiselect-description[role=alert]{color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option{position:relative;margin:0;padding:0}${transformTag("pn-multiselect")} .pn-multiselect-option .pn-ripple{animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1);position:absolute;border-radius:50%;background-color:#005d92;transform:translate(-50%, -50%) scale(0);opacity:0.1;pointer-events:none;z-index:3}@keyframes ripple{to{transform:translate(-50%, -50%) scale(1);opacity:0}}${transformTag("pn-multiselect")} .pn-multiselect-option-input{cursor:pointer;position:absolute;opacity:0;left:0;top:0;height:100%;width:100%;margin:0;-webkit-tap-highlight-color:transparent}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled{pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled+.pn-multiselect-option-content{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2;pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#f3f2f2;border-color:#969087}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled+.pn-multiselect-option-content path{fill:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled:checked+.pn-multiselect-option-content{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#969087;border-color:#969087}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled:checked+.pn-multiselect-option-content path{fill:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]+.pn-multiselect-option-content .pn-ripple{background-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked+.pn-multiselect-option-content{background-color:#fdefee}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#a70707;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:focus-visible+.pn-multiselect-option-content{background-color:#fdefee}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#500715;border-color:#500715}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:hover+.pn-multiselect-option-content{background-color:#fef7f6}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#500715;border-color:#500715}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:hover+.pn-multiselect-option-content{background-color:#fef7f6}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#fdefee;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{outline-color:#a70707;background-color:#fdefee;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input:hover+.pn-multiselect-option-content{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#005d92;background-color:#e0f8ff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{outline-color:#005d92;background-color:#e0f8ff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked+.pn-multiselect-option-content{background-color:#e0f8ff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#005d92;background-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox svg polyline.pn-multiselect-option-checkbox-checkmark-path{transition-delay:0.2s;stroke-dashoffset:0}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:hover+.pn-multiselect-option-content{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#0d234b;background-color:#0d234b}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:focus-visible+.pn-multiselect-option-content{background-color:#e0f8ff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#0d234b;background-color:#0d234b}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#005d92;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate+.pn-multiselect-option-content svg .pn-multiselect-option-checkbox-checkmark-path{stroke-dashoffset:23}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate+.pn-multiselect-option-content svg .pn-multiselect-option-checkbox-indeterminate-path{stroke-dashoffset:0}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#0d234b;border-color:#0d234b}${transformTag("pn-multiselect")} .pn-multiselect-option-content{position:relative;overflow:hidden;z-index:-1;display:flex;align-items:center;padding:0.75em 1em;gap:0.5em;background-color:#ffffff;transition-property:background-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-option-content{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-option-text{flex:1;text-overflow:ellipsis;overflow:hidden}${transformTag("pn-multiselect")} .pn-multiselect-option-helper{color:#5e554a;margin:0}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox{background-color:#ffffff;flex:0 0 1.5em;width:1.5em;height:1.5em;border:0.0625em solid #969087;border-radius:0.25em;outline:0.2rem solid transparent;outline-offset:0.2rem;transition-property:background-color, border-color, outline-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline{stroke:#ffffff;stroke-linecap:round;stroke-dasharray:23;transition-property:stroke-dashoffset;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline{transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline.pn-multiselect-option-checkbox-checkmark-path{stroke-dashoffset:23}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline.pn-multiselect-option-checkbox-indeterminate-path{stroke-dashoffset:23}`;
|
|
113
|
+
const pnMultiselectCss = () => `${transformTag("pn-multiselect")}{display:inline-block}${transformTag("pn-multiselect")} .pn-multiselect{position:relative;border:0;margin:0;padding:0}${transformTag("pn-multiselect")} .pn-multiselect[data-icon]{--pn-input-offset-left:2em}${transformTag("pn-multiselect")} .pn-multiselect[data-icon] .pn-multiselect-element{padding-left:2.75em}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-label{color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-label[data-compact]{color:#2d2013}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element{padding-right:5.5em;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:hover{border-color:#500715}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:focus-visible{background-color:#ffffff;border-color:#a70707;outline-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill,${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill:hover,${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill:focus,${transformTag("pn-multiselect")} .pn-multiselect[data-error] .pn-multiselect-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #fef7f6 inset;-webkit-text-fill-color:#2d2013}${transformTag("pn-multiselect")} .pn-multiselect-label{width:100%;cursor:pointer;display:flex;justify-content:space-between;align-items:flex-end;font-weight:400;color:#2d2013;margin:0 0 0.25em 0;gap:0.5em;-webkit-tap-highlight-color:transparent;transition-property:color, transform;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-label{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-label[data-compact]{position:absolute;top:1.5625em;left:calc(var(--pn-input-offset-left, 0px) + 0.75em + 0.0625em);margin:0;pointer-events:none;align-items:center;height:1.5em;max-width:calc(100% - (var(--pn-input-offset-left, 0px) + 0.75em) - (var(--pn-input-offset-right, 0px) + 0.75em));transform:translateY(-50%) scale(1) translateZ(0);transform-origin:0 0;transition-delay:0.2s}${transformTag("pn-multiselect")} .pn-multiselect-label[data-compact]>span{font-size:1em;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;line-height:1.5em}${transformTag("pn-multiselect")} .pn-multiselect-label>span{font-size:0.875em}${transformTag("pn-multiselect")} .pn-multiselect-label[data-compact]{justify-content:start}${transformTag("pn-multiselect")} .pn-multiselect-sr-only{position:absolute;height:1px;width:1px;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);margin:-1px;white-space:nowrap}${transformTag("pn-multiselect")} .pn-multiselect-group{position:relative;padding:0;margin:0}${transformTag("pn-multiselect")} .pn-multiselect-input{position:relative}${transformTag("pn-multiselect")} .pn-multiselect-input>${transformTag("pn-icon")}{pointer-events:none;position:absolute;top:0.75em;right:3.5em}${transformTag("pn-multiselect")} .pn-multiselect-input>${transformTag("pn-icon")}[data-custom]{left:0.75em;right:unset}${transformTag("pn-multiselect")} .pn-multiselect-button{cursor:pointer;position:absolute;right:0.75em;top:50%;transform:translateY(-50%);padding:0;margin:0;border:0;width:2em;height:2em;font-size:1em;border-radius:50%;background-color:transparent;-webkit-tap-highlight-color:transparent;transition-property:background-color, outline-color, border-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-button{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-button{outline:0.2rem solid transparent;outline-offset:0.2rem}${transformTag("pn-multiselect")} .pn-multiselect-button:focus-visible{outline-color:#005d92;background-color:#ffffff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-button>${transformTag("pn-icon")} svg>path{transition-delay:0.2s;transform-origin:center;transform:rotate(0deg)}${transformTag("pn-multiselect")} .pn-multiselect-button:hover{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-button[aria-expanded=true]{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-button[aria-expanded=true]>${transformTag("pn-icon")} svg>path{transform:rotate(180deg);transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element{cursor:text;text-align:left;transition-delay:0.1s, 0.1s, 0s;width:100%;display:flex;align-items:center;justify-content:space-between;gap:0.5em;overflow:hidden;text-overflow:ellipsis;color:#2d2013;background-color:#ffffff;border:0.0625em solid #969087;border-radius:0.5em;padding:0.75em 3.5em 0.75em 0.75em;font-family:inherit;font-size:1em;font-weight:500;line-height:1.5em;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill,${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill:hover,${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill:focus,${transformTag("pn-multiselect")} .pn-multiselect-element:-webkit-autofill:active{-webkit-box-shadow:0 0 0 10em #e0f8ff inset;-webkit-text-fill-color:#2d2013}${transformTag("pn-multiselect")} .pn-multiselect-element{outline:0.2rem solid transparent;outline-offset:0.2rem}${transformTag("pn-multiselect")} .pn-multiselect-element:focus-visible{outline-color:#005d92;background-color:#ffffff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-element{transition-property:outline-color, background-color, border-color, color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-element{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]{text-align:left;padding-top:1.125em;padding-bottom:0.375em;max-width:unset}${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]::placeholder{color:transparent}${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]:focus+.pn-multiselect-label,${transformTag("pn-multiselect")} .pn-multiselect-element[data-compact]:not(:placeholder-shown)+.pn-multiselect-label{transform:translateY(-85%) scale(0.75);transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element::placeholder{color:#5e554a;font-weight:normal}${transformTag("pn-multiselect")} .pn-multiselect-element:hover{border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2;pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled+.pn-multiselect-button{pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-element:disabled+.pn-multiselect-button path{fill:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-element:placeholder{color:#5e554a;font-weight:normal}${transformTag("pn-multiselect")} .pn-multiselect-element[type=input]:hover{cursor:pointer;color:#2d2013;background-color:#effbff;transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element[type=input]:hover[aria-invalid=true]{background-color:#fdefee}${transformTag("pn-multiselect")} .pn-multiselect-element:focus-visible{transition-delay:0s}${transformTag("pn-multiselect")} .pn-multiselect-element::-webkit-search-cancel-button,${transformTag("pn-multiselect")} .pn-multiselect-element::-webkit-search-decoration{-webkit-appearance:none;-moz-appearance:none;appearance:none}${transformTag("pn-multiselect")} .pn-multiselect-options{scroll-behavior:smooth;position:absolute;z-index:10;top:calc(100% + 0.5em);left:0;right:0;background-color:#ffffff;box-shadow:0em 0.075em 0.225em 0em rgba(0, 0, 0, 0.1), 0em 0.4em 0.9em 0em rgba(0, 0, 0, 0.13);border-radius:0.5em;list-style:none;margin:0;padding:0;width:clamp(100%, 95vw, 20em);max-height:var(--pn-select-max-height);overflow-y:auto;overflow-x:hidden;display:flex;flex-direction:column;visibility:hidden;transform-origin:top left;transform:translateX(var(--pn-select-options-offset, 0))}${transformTag("pn-multiselect")} .pn-multiselect-options[data-open]{visibility:visible}${transformTag("pn-multiselect")} .pn-multiselect-options[data-upwards]{top:unset;bottom:calc(100% + 0.5em);transform-origin:bottom left;box-shadow:0 -0.0625em 0.125em rgba(0, 0, 0, 0.2)}${transformTag("pn-multiselect")} .pn-multiselect-options[data-moving]{overflow:hidden;visibility:visible}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar{background-color:#ffffff;width:0.875em;border-radius:0.5em}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-track{background-color:#ffffff;border-radius:0.5em}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-thumb{cursor:pointer;background-color:#969087;border-radius:1em;border:0.25em solid #ffffff}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-thumb:hover{background-color:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-corner,${transformTag("pn-multiselect")} .pn-multiselect-options::-webkit-scrollbar-button{display:none}${transformTag("pn-multiselect")} .pn-multiselect-options>${transformTag("pn-input")}{padding:0.5em}${transformTag("pn-multiselect")} .pn-multiselect-optgroup{list-style:none;padding:0}${transformTag("pn-multiselect")} .pn-multiselect-optgroup>.pn-multiselect-option>.pn-multiselect-option-content{padding-left:2em}${transformTag("pn-multiselect")} .pn-multiselect-chips{list-style:none;display:flex;flex-wrap:wrap;gap:0.5em;padding:0;margin:0.5em 0 0 0;color:#5e554a;font-weight:400}${transformTag("pn-multiselect")} .pn-multiselect-chips:empty{display:none}${transformTag("pn-multiselect")} .pn-multiselect-chip{margin:0;display:inline-flex;align-items:center;gap:0.25em;background-color:#ffffff;border-radius:0.5em;padding:0.125em 0.25em 0.125em 0.5em;line-height:1.5em;border:0.0625em solid #5e554a;outline:0.2rem solid transparent;outline-offset:0.2rem;transition-property:background-color, outline-color, border-color, color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-chip{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-chip:focus-within{color:#005d92;outline-color:#005d92;background-color:#effbff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-chip[data-count]{pointer-events:none;border:0;padding-left:0;padding-right:0;background-color:unset}${transformTag("pn-multiselect")} .pn-multiselect-chip-label{font-size:0.875em;white-space:nowrap}${transformTag("pn-multiselect")} .pn-multiselect-chip-button{cursor:pointer;font-size:1em;padding:0.25em;height:1.5em;width:1.5em;border:0;background-color:unset;border-radius:50%;-webkit-tap-highlight-color:transparent;transition-property:background-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-chip-button{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-chip-button:hover{background-color:#8eddf9}${transformTag("pn-multiselect")} .pn-multiselect-chip-button:focus{outline:0}${transformTag("pn-multiselect")} .pn-multiselect-no-results{margin:0;padding:0.75em}${transformTag("pn-multiselect")} .pn-multiselect-text{color:#5e554a;font-size:0.875em;font-weight:400;margin:0.25em 0 0 0;display:flex;flex-direction:column;gap:0.25em}${transformTag("pn-multiselect")} .pn-multiselect-text[hidden]{display:none}${transformTag("pn-multiselect")} .pn-multiselect-text[role=alert]{color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option{position:relative;margin:0;padding:0}${transformTag("pn-multiselect")} .pn-multiselect-option .pn-ripple{animation:ripple 0.4s cubic-bezier(0.7, 0, 0.3, 1);position:absolute;border-radius:50%;background-color:#005d92;transform:translate(-50%, -50%) scale(0);opacity:0.1;pointer-events:none;z-index:3}@keyframes ripple{to{transform:translate(-50%, -50%) scale(1);opacity:0}}${transformTag("pn-multiselect")} .pn-multiselect-option-input{cursor:pointer;position:absolute;opacity:0;left:0;top:0;height:100%;width:100%;margin:0;-webkit-tap-highlight-color:transparent}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled{pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled+.pn-multiselect-option-content{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2;pointer-events:none}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#f3f2f2;border-color:#969087}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled+.pn-multiselect-option-content .pn-icon-svg path{fill:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled:checked+.pn-multiselect-option-content{color:#5e554a;background-color:#f3f2f2;border-color:#f3f2f2}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#969087;border-color:#969087}${transformTag("pn-multiselect")} .pn-multiselect-option-input:disabled:checked+.pn-multiselect-option-content .pn-icon-svg path{fill:#5e554a}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]+.pn-multiselect-option-content .pn-ripple{background-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked+.pn-multiselect-option-content{background-color:#fdefee}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#a70707;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:focus-visible+.pn-multiselect-option-content{background-color:#fdefee}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#500715;border-color:#500715}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:hover+.pn-multiselect-option-content{background-color:#fef7f6}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:checked:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#500715;border-color:#500715}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:hover+.pn-multiselect-option-content{background-color:#fef7f6}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#fdefee;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input[aria-invalid=true]:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{outline-color:#a70707;background-color:#fdefee;border-color:#a70707}${transformTag("pn-multiselect")} .pn-multiselect-option-input:hover+.pn-multiselect-option-content{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#005d92;background-color:#e0f8ff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{outline-color:#005d92;background-color:#e0f8ff;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked+.pn-multiselect-option-content{background-color:#e0f8ff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#005d92;background-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked+.pn-multiselect-option-content .pn-multiselect-option-checkbox svg polyline.pn-multiselect-option-checkbox-checkmark-path{transition-delay:0.2s;stroke-dashoffset:0}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:hover+.pn-multiselect-option-content{background-color:#effbff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#0d234b;background-color:#0d234b}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:focus-visible+.pn-multiselect-option-content{background-color:#e0f8ff}${transformTag("pn-multiselect")} .pn-multiselect-option-input:checked:focus-visible+.pn-multiselect-option-content .pn-multiselect-option-checkbox{border-color:#0d234b;background-color:#0d234b}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#005d92;border-color:#005d92}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate+.pn-multiselect-option-content svg .pn-multiselect-option-checkbox-checkmark-path{stroke-dashoffset:23}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate+.pn-multiselect-option-content svg .pn-multiselect-option-checkbox-indeterminate-path{stroke-dashoffset:0}${transformTag("pn-multiselect")} .pn-multiselect-option-input:indeterminate:hover+.pn-multiselect-option-content .pn-multiselect-option-checkbox{background-color:#0d234b;border-color:#0d234b}${transformTag("pn-multiselect")} .pn-multiselect-option-content{position:relative;overflow:hidden;z-index:-1;display:flex;align-items:center;padding:0.75em 1em;gap:0.5em;background-color:#ffffff;transition-property:background-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-option-content{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-option-text{flex:1;text-overflow:ellipsis;overflow:hidden}${transformTag("pn-multiselect")} .pn-multiselect-option-helper{color:#5e554a;margin:0}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox{background-color:#ffffff;flex:0 0 1.5em;width:1.5em;height:1.5em;border:0.0625em solid #969087;border-radius:0.25em;outline:0.2rem solid transparent;outline-offset:0.2rem;transition-property:background-color, border-color, outline-color;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline{stroke:#ffffff;stroke-linecap:round;stroke-dasharray:23;transition-delay:0s;transition-property:stroke-dashoffset;transition-duration:0.2s;transition-timing-function:cubic-bezier(0.7, 0, 0.3, 1)}@media (prefers-reduced-motion: reduce){${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline{transition-duration:0s;transition-delay:0s}}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline.pn-multiselect-option-checkbox-checkmark-path{stroke-dashoffset:23}${transformTag("pn-multiselect")} .pn-multiselect-option-checkbox svg polyline.pn-multiselect-option-checkbox-indeterminate-path{stroke-dashoffset:23}`;
|
|
114
114
|
|
|
115
115
|
const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
116
116
|
constructor(hostRef) {
|
|
117
117
|
super();
|
|
118
118
|
registerInstance(this, hostRef);
|
|
119
|
-
this.toggleSelect = createEvent(this, "toggleSelect");
|
|
120
|
-
this.allOptions = createEvent(this, "allOptions");
|
|
121
|
-
this.selectedOption = createEvent(this, "selectedOption");
|
|
122
|
-
this.selectedAllOptions = createEvent(this, "selectedAllOptions");
|
|
123
|
-
this.searchInput = createEvent(this, "searchInput");
|
|
119
|
+
this.toggleSelect = createEvent(this, "toggleSelect", 7);
|
|
120
|
+
this.allOptions = createEvent(this, "allOptions", 7);
|
|
121
|
+
this.selectedOption = createEvent(this, "selectedOption", 7);
|
|
122
|
+
this.selectedAllOptions = createEvent(this, "selectedAllOptions", 7);
|
|
123
|
+
this.searchInput = createEvent(this, "searchInput", 7);
|
|
124
124
|
}
|
|
125
125
|
id = `pn-multiselect-${uuidv4()}`;
|
|
126
126
|
idLegend = `${this.id}-legend`;
|
|
127
127
|
idButton = `${this.id}-button`;
|
|
128
128
|
idOptions = `${this.id}-options`;
|
|
129
129
|
idHelper = `${this.id}-text`;
|
|
130
|
+
idError = `${this.id}-error`;
|
|
130
131
|
idChips = `${this.id}-chips`;
|
|
131
132
|
idSr = `${this.id}-sr`;
|
|
132
133
|
elGroup;
|
|
@@ -145,28 +146,32 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
145
146
|
label;
|
|
146
147
|
/** Display a helper text underneath the select */
|
|
147
148
|
helpertext;
|
|
149
|
+
/** Manually set the language, not needed if you have the pnTopbar available */
|
|
150
|
+
language = undefined;
|
|
151
|
+
/** HTML name of the checkbox elements. Used for each checkbox inside the multiselect. @category Native attributes */
|
|
152
|
+
name;
|
|
153
|
+
/** HTML name of the input element. @category Native attributes*/
|
|
154
|
+
selectName;
|
|
148
155
|
/**
|
|
149
156
|
* This is what will be shown on load if no value is used.
|
|
150
157
|
* The `placeholder` will override the default text used if you have the `search` prop active.
|
|
158
|
+
* @category Native attributes
|
|
151
159
|
*/
|
|
152
160
|
placeholder;
|
|
153
|
-
/**
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
|
|
157
|
-
/** HTML name of the input element.*/
|
|
158
|
-
selectName;
|
|
159
|
-
/** Display an icon to the left of the select input */
|
|
160
|
-
icon;
|
|
161
|
-
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 */
|
|
162
|
-
compact = false;
|
|
163
|
-
/** Manually set the language, not needed if you have the pnTopbar available */
|
|
164
|
-
language = null;
|
|
161
|
+
/** Set the select as required. @category Native attributes */
|
|
162
|
+
required = false;
|
|
163
|
+
/** Disable the select. @category Native attributes */
|
|
164
|
+
disabled = false;
|
|
165
165
|
/**
|
|
166
|
-
*
|
|
167
|
-
* @
|
|
166
|
+
* The array of `PnMultiselectOption` objects.
|
|
167
|
+
* @see {@link PnMultiselectOption} for the option object properties.
|
|
168
|
+
* @category Features
|
|
168
169
|
**/
|
|
169
170
|
options;
|
|
171
|
+
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 @category Features */
|
|
172
|
+
compact = false;
|
|
173
|
+
/** Display an icon to the left of the select input @category Features */
|
|
174
|
+
icon;
|
|
170
175
|
/**
|
|
171
176
|
* Adds a "Select all" option into the list.
|
|
172
177
|
* If you use the search feature at the same time, clicking this option will only toggle the options found.
|
|
@@ -201,8 +206,7 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
201
206
|
**/
|
|
202
207
|
itemCount = 5;
|
|
203
208
|
/**
|
|
204
|
-
*
|
|
205
|
-
* @description The component will automatically set the max height of the dropdown list on its own.
|
|
209
|
+
* The component will automatically set the max height of the dropdown list on its own.
|
|
206
210
|
* It takes the `pn-topbar` into account and will open in the direction that fits best.
|
|
207
211
|
* Use this prop to override this behaviour and use a custom max-height.
|
|
208
212
|
* @category Features
|
|
@@ -218,20 +222,34 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
218
222
|
* @category Features
|
|
219
223
|
**/
|
|
220
224
|
bottom = false;
|
|
221
|
-
/**
|
|
222
|
-
required = false;
|
|
223
|
-
/** Disable the select. @category Validation */
|
|
224
|
-
disabled = false;
|
|
225
|
-
/** Trigger the invalid state. @category Validation */
|
|
225
|
+
/** Trigger the invalid state. @category Features */
|
|
226
226
|
invalid = false;
|
|
227
|
-
/** Display an error message and trigger the invalid state. @category
|
|
227
|
+
/** Display an error message and trigger the invalid state. @category Features */
|
|
228
228
|
error;
|
|
229
|
+
/** Set a custom ID for the select. @since v7.25.0 @category HTML attributes */
|
|
230
|
+
pnId;
|
|
231
|
+
/**
|
|
232
|
+
* Provide the label via an aria attribute.
|
|
233
|
+
* We strongly recommend you use the `label` prop instead.
|
|
234
|
+
* @since v7.25.0
|
|
235
|
+
* @category HTML attributes
|
|
236
|
+
*/
|
|
237
|
+
pnAriaLabel;
|
|
238
|
+
/**
|
|
239
|
+
* Provide the label from another element via its ID.
|
|
240
|
+
* We strongly recommend you use the `label` prop instead.
|
|
241
|
+
* @since v7.25.0
|
|
242
|
+
* @category HTML attributes
|
|
243
|
+
*/
|
|
244
|
+
pnAriaLabelledby;
|
|
245
|
+
/** Select HTML id @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
246
|
+
selectId;
|
|
229
247
|
handleOpen() {
|
|
230
248
|
if (this.open) {
|
|
231
249
|
this.addGlobalEventListeners();
|
|
232
250
|
this.handleDirection();
|
|
233
251
|
this.handleMaxHeight();
|
|
234
|
-
this.
|
|
252
|
+
this.handleOffset();
|
|
235
253
|
}
|
|
236
254
|
else {
|
|
237
255
|
this.removeGlobalEventListeners();
|
|
@@ -257,11 +275,12 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
257
275
|
this.handleInputSearch();
|
|
258
276
|
}
|
|
259
277
|
handleSelectId() {
|
|
260
|
-
const id = this.
|
|
278
|
+
const id = this.getId();
|
|
261
279
|
this.idLegend = `${id}-legend`;
|
|
262
280
|
this.idButton = `${id}-button`;
|
|
263
281
|
this.idOptions = `${id}-options`;
|
|
264
282
|
this.idHelper = `${id}-text`;
|
|
283
|
+
this.idError = `${id}-error`;
|
|
265
284
|
this.idChips = `${id}-chips`;
|
|
266
285
|
this.idSr = `${id}-sr`;
|
|
267
286
|
}
|
|
@@ -273,8 +292,8 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
273
292
|
if (!this.open)
|
|
274
293
|
return;
|
|
275
294
|
this.toggleOpen(false);
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
295
|
+
this.elGroup.style.removeProperty('--pn-select-max-height');
|
|
296
|
+
this.elGroup.style.removeProperty('--pn-select-options-offset');
|
|
278
297
|
}
|
|
279
298
|
/** Dispatched everytime the multiselect is opened or closed. */
|
|
280
299
|
toggleSelect;
|
|
@@ -293,19 +312,44 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
293
312
|
**/
|
|
294
313
|
searchInput;
|
|
295
314
|
async componentWillLoad() {
|
|
296
|
-
this.
|
|
297
|
-
if (this.language === null)
|
|
315
|
+
if (this.language === undefined)
|
|
298
316
|
await awaitTopbar(this.hostElement);
|
|
299
317
|
}
|
|
300
318
|
componentDidLoad() {
|
|
301
319
|
if (!!this.searchQuery?.length)
|
|
302
320
|
this.handleSearchQuery();
|
|
303
321
|
}
|
|
322
|
+
getId() {
|
|
323
|
+
return this.pnId || this.selectId || this.id;
|
|
324
|
+
}
|
|
325
|
+
hasHelperText() {
|
|
326
|
+
return this.helpertext?.length > 0 || this.checkSlottedHelper();
|
|
327
|
+
}
|
|
328
|
+
/** If any `error` text is present, either via prop/slot. */
|
|
329
|
+
hasErrorMessage() {
|
|
330
|
+
return this.error?.length > 0 || this.checkSlottedError();
|
|
331
|
+
}
|
|
332
|
+
/** If any `error` is active, either via the prop `invalid` or `error` prop/slot. */
|
|
333
|
+
hasError() {
|
|
334
|
+
return this.hasErrorMessage() || this.invalid;
|
|
335
|
+
}
|
|
336
|
+
checkSlottedHelper() {
|
|
337
|
+
return !!this.hostElement.querySelector('[slot=helpertext]');
|
|
338
|
+
}
|
|
339
|
+
checkSlottedError() {
|
|
340
|
+
return !!this.hostElement.querySelector('[slot=error]');
|
|
341
|
+
}
|
|
342
|
+
hideHelpertext() {
|
|
343
|
+
return this.hasErrorMessage() || !this.hasHelperText();
|
|
344
|
+
}
|
|
345
|
+
hideError() {
|
|
346
|
+
return !this.hasErrorMessage();
|
|
347
|
+
}
|
|
304
348
|
globalEvents = (event) => {
|
|
305
349
|
const target = event.target;
|
|
306
|
-
|
|
307
|
-
if (!isWithinCalendar)
|
|
350
|
+
if (!this.hostElement.contains(target) || event?.key === 'Escape') {
|
|
308
351
|
this.toggleOpen(false);
|
|
352
|
+
}
|
|
309
353
|
};
|
|
310
354
|
addGlobalEventListeners() {
|
|
311
355
|
const root = this.hostElement.getRootNode();
|
|
@@ -498,9 +542,21 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
498
542
|
const maxHeight = this.upwards ? inputHeight - offset : window.innerHeight - inputHeight - offset;
|
|
499
543
|
this.elGroup.style.setProperty('--pn-select-max-height', `${Math.ceil(maxHeight)}px`);
|
|
500
544
|
}
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
545
|
+
handleOffset() {
|
|
546
|
+
this.elGroup.style.removeProperty('--pn-select-options-offset');
|
|
547
|
+
requestAnimationFrame(() => {
|
|
548
|
+
const { left, right } = this.getRect(this.elList);
|
|
549
|
+
const menuWidth = getMenuWidth();
|
|
550
|
+
const leftBoundary = menuWidth + 8;
|
|
551
|
+
const rightBoundary = window.innerWidth - 8;
|
|
552
|
+
let offset = 0;
|
|
553
|
+
if (left < leftBoundary)
|
|
554
|
+
offset = leftBoundary - left;
|
|
555
|
+
else if (right > rightBoundary)
|
|
556
|
+
offset = rightBoundary - right;
|
|
557
|
+
if (offset !== 0)
|
|
558
|
+
this.elGroup.style.setProperty('--pn-select-options-offset', `${Math.floor(offset)}px`);
|
|
559
|
+
});
|
|
504
560
|
}
|
|
505
561
|
setFocus() {
|
|
506
562
|
if (this.search)
|
|
@@ -508,12 +564,6 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
508
564
|
else
|
|
509
565
|
this.elButton.focus({ preventScroll: true });
|
|
510
566
|
}
|
|
511
|
-
hasError() {
|
|
512
|
-
return this.invalid || !!this.error;
|
|
513
|
-
}
|
|
514
|
-
hasMessage() {
|
|
515
|
-
return !!this.helpertext || !!this.error;
|
|
516
|
-
}
|
|
517
567
|
toggleOpen(state) {
|
|
518
568
|
if (typeof state === 'boolean' && state === this.open)
|
|
519
569
|
return;
|
|
@@ -634,14 +684,45 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
634
684
|
const single = `MORE_OPTION${count === 1 ? '' : 'S'}`;
|
|
635
685
|
return `${count} ${this.translate(single)}`;
|
|
636
686
|
}
|
|
687
|
+
displayLabel() {
|
|
688
|
+
return !!this.label;
|
|
689
|
+
}
|
|
690
|
+
getAriaLabel() {
|
|
691
|
+
return !this.displayLabel() && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* If you use a label (technically a legend), use the `idLegend` to point to it.
|
|
695
|
+
* If not, make sure there is no pnAriaLabel and use pnAriaLabelledby.
|
|
696
|
+
* This is to make sure there are no double label/labelledby.
|
|
697
|
+
*/
|
|
698
|
+
getAriaLabelledby() {
|
|
699
|
+
return this.displayLabel() ? this.idLegend : !this.pnAriaLabel ? this.pnAriaLabelledby : null;
|
|
700
|
+
}
|
|
637
701
|
describedBy() {
|
|
638
|
-
const list = [
|
|
702
|
+
const list = [];
|
|
703
|
+
if (this.search)
|
|
704
|
+
list.push(this.idChips);
|
|
705
|
+
if (this.srMessage)
|
|
706
|
+
list.push(this.idSr);
|
|
707
|
+
if (this.hasHelperText() && !this.hasErrorMessage())
|
|
708
|
+
list.push(this.idHelper);
|
|
709
|
+
if (this.hasErrorMessage())
|
|
710
|
+
list.push(this.idError);
|
|
639
711
|
if (list.length)
|
|
640
712
|
return list.join(' ');
|
|
641
713
|
return null;
|
|
642
714
|
}
|
|
643
|
-
|
|
644
|
-
|
|
715
|
+
/**
|
|
716
|
+
* This is to prevent a rare issue with rendering flag icons.
|
|
717
|
+
* Flags use a set ID to identify gradient colors. If the icon is rendered while the dropdown is closed,
|
|
718
|
+
* the ID is not unique and the icon will not be rendered for other pn-icons using it.
|
|
719
|
+
* This is a temp fix to address the root issue which is how the flags SVG styling is built.
|
|
720
|
+
*/
|
|
721
|
+
renderItemIcon(icon, hide) {
|
|
722
|
+
return (this.open || this.isMoving()) && !!icon && !hide;
|
|
723
|
+
}
|
|
724
|
+
renderOption({ label, value, checked, helpertext, icon, id = `${this.getId()}-${value || label}`, invalid, disabled, hide, group, }, indexGroup, indexNested) {
|
|
725
|
+
return (h("li", { class: "pn-multiselect-option", key: id, hidden: hide }, h("input", { type: "checkbox", id: id, class: "pn-multiselect-option-input", checked: checked ?? this.optionSelected(value), indeterminate: indexNested === undefined && this.isIndeterminate(indexGroup), name: this.name, value: value, disabled: this.disabled || disabled, required: this.required, "aria-invalid": invalid ? 'true' : null, "aria-describedby": helpertext ? `${id}-helper` : null, onClick: (event) => this.ripple(event), onKeyDown: (event) => this.checkboxNav(event, value), onBlur: (event) => this.handleBlur(event) }), h("div", { class: "pn-multiselect-option-content" }, this.renderItemIcon(icon, hide) && h("pn-icon", { icon: icon, color: "blue900" }), h("div", { class: "pn-multiselect-option-text" }, h("label", { class: "pn-multiselect-option-label", htmlFor: id }, h("span", null, label)), helpertext && (h("p", { class: "pn-multiselect-option-helper", id: `${id}-helper` }, helpertext))), h("div", { class: "pn-multiselect-option-checkbox" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none" }, h("polyline", { class: "pn-multiselect-option-checkbox-checkmark-path", points: "4,12 9,17 20,6", "stroke-width": "3" }), h("polyline", { class: "pn-multiselect-option-checkbox-indeterminate-path", points: "4,12 20,12", "stroke-width": "3" })))), group?.length && (h("ul", { class: "pn-multiselect-optgroup" }, group?.map((option, i) => this.renderOption(option, indexGroup, i))))));
|
|
645
726
|
}
|
|
646
727
|
renderOptions() {
|
|
647
728
|
return (h("ul", { id: this.idOptions, class: "pn-multiselect-options", "data-open": this.open, "data-upwards": this.upwards, onChange: (event) => this.handleChange(event), style: { height: '0px' }, ref: el => (this.elList = el) }, this.showSelectAll() &&
|
|
@@ -652,7 +733,7 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
652
733
|
}), this.options?.map((option, index) => this.renderOption(option, index)), this.showEmptyOption() && (h("li", { class: "pn-multiselect-option" }, h("div", { class: "pn-multiselect-option-content", role: "alert" }, h("div", { class: "pn-multiselect-option-text" }, h("span", { class: "pn-multiselect-option-label" }, this.translate(this.isEmpty() ? 'NO_OPTIONS' : 'NO_SEARCH_RESULTS'))))))));
|
|
653
734
|
}
|
|
654
735
|
renderChips() {
|
|
655
|
-
return (h("ul", { id: this.idChips, class: "pn-multiselect-chips", "aria-label": this.translate('SELECTED_OPTIONS'), ref: el => (this.elChips = el) }, this.optionsCheckedPreview()?.map(({ label, value }, index) => (h("li", { class: "pn-multiselect-chip", "aria-setsize": this.optionsCheckedTotal(), "aria-posinset": index + 1, key: `${label}-${value}` }, h("span", { class: "pn-multiselect-chip-label" }, label), h("button", { type: "button", class: "pn-multiselect-chip-button", "aria-label": `${this.translate('REMOVE')} ${label}`, onClick: () => this.optionSelect({ val: value, checked: false, chip: index }) }, h("pn-icon", { icon: close, small: true, color: "blue700" }))))), this.optionsCheckedTotal() > this.itemCount && (h("li", { class: "pn-multiselect-chip", "data-count": true }, h("span", { class: "pn-multiselect-chip-label" }, "+ ", this.additonalOptions())))));
|
|
736
|
+
return (h("ul", { id: this.idChips, class: "pn-multiselect-chips", "aria-label": this.translate('SELECTED_OPTIONS'), ref: el => (this.elChips = el) }, this.optionsCheckedPreview()?.map(({ label, value, icon }, index) => (h("li", { class: "pn-multiselect-chip", "aria-setsize": this.optionsCheckedTotal(), "aria-posinset": index + 1, key: `${label}-${value}` }, !!icon && h("pn-icon", { icon: icon, small: true }), h("span", { class: "pn-multiselect-chip-label" }, label), h("button", { type: "button", class: "pn-multiselect-chip-button", "aria-label": `${this.translate('REMOVE')} ${label}`, onClick: () => this.optionSelect({ val: value, checked: false, chip: index }) }, h("pn-icon", { icon: close, small: true, color: "blue700" }))))), this.optionsCheckedTotal() > this.itemCount && (h("li", { class: "pn-multiselect-chip", "data-count": true }, h("span", { class: "pn-multiselect-chip-label" }, "+ ", this.additonalOptions())))));
|
|
656
737
|
}
|
|
657
738
|
renderLabel(compactLabel = false) {
|
|
658
739
|
if (!this.label)
|
|
@@ -663,7 +744,7 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
663
744
|
return (h(Tag, { id: id, class: { 'pn-multiselect-label': true, 'pn-multiselect-sr-only': this.compact && !compactLabel }, "data-compact": this.compact, ...attrs }, h("span", null, this.label), !!this.optionsChecked()?.length && (h("span", null, this.optionsCheckedTotal(), "/", this.optionsTotal()))));
|
|
664
745
|
}
|
|
665
746
|
render() {
|
|
666
|
-
return (h(Host, { key: '
|
|
747
|
+
return (h(Host, { key: '326b1351c1600920a89b49a4ca04fb48af112bb7' }, h("fieldset", { key: '069b0689d499ad99b65f29597cc3968a47a3fc86', class: "pn-multiselect", "data-icon": !!this.icon, "data-error": this.hasError(), disabled: this.disabled }, this.renderLabel(), h("div", { key: '0a96f922421c6a1adb664714ec0d593cfdf950e5', class: "pn-multiselect-group", ref: el => (this.elGroup = el) }, h("div", { key: '3c6cadb7ff3dbc67fb8bab786133d64ad330c5d7', class: "pn-multiselect-input" }, !!this.icon && h("pn-icon", { key: '20bb5b6b273bea94903648a3465e14cf8dad2f77', class: "pn-multiselect-icon", "data-custom": true, icon: this.icon }), h("input", { key: '905179f50885d27bc7f41df667be93731dd5e4be', tabindex: this.search ? null : '-1', type: this.search ? 'search' : 'input', id: this.getId(), class: "pn-multiselect-element", value: this.search ? this.searchQuery : this.optionsCheckedLabels(), name: this.selectName, placeholder: this.getPlaceholder(), required: this.search ? null : this.required, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.describedBy(), "aria-controls": `${this.idOptions} ${this.search ? this.idChips : ''}`, "aria-invalid": this.hasError()?.toString(), disabled: this.disabled, readonly: !this.search, "data-compact": this.compact, onClick: () => (this.search && this.open ? null : this.toggleOpen()), onKeyDown: e => this.handleInputKeyboard(e), onBlur: e => this.handleBlur(e), onInput: e => this.search && this.setSearchQuery(e.target.value), ref: el => (this.elInput = el) }), this.compact && this.renderLabel(true), this.hasError() && (h("pn-icon", { key: '635d97c6b8f780e6bd6daab225a97d1057b4bf0d', class: "pn-multiselect-icon", "data-error": true, icon: alert_exclamation_circle, color: "warning" })), h("button", { key: '77e9862561cd9ed80c5aa1b386ae772476a34e76', id: this.idButton, type: "button", class: "pn-multiselect-button", "aria-label": this.translate(`BUTTON_${this.open ? 'CLOSE' : 'OPEN'}`), "aria-describedby": this.search ? null : this.getId(), "aria-controls": this.idOptions, "aria-expanded": this.open.toString(), onClick: () => this.toggleOpen(), ref: el => (this.elButton = el) }, h("pn-icon", { key: '28092398e64c04af103142d8f459579eb2b70a1b', class: "pn-multiselect-icon", icon: chevron_down, color: "blue700" }))), this.renderOptions()), h("p", { key: '17d396f1b3175b502ce8d54c6ec059588bbe8128', id: this.idHelper, class: "pn-multiselect-text", hidden: this.hideHelpertext() }, h("span", { key: '693ba0a687b9b9766249e6703d0252beeeb762e9' }, this.helpertext), h("slot", { key: 'a70b1dff00b4ec936461f73354ebe18ce1a0a0c1', name: "helpertext" })), h("p", { key: '94c44db96a270fd7d3180c6dfddb53a46e85c2aa', id: this.idError, class: "pn-multiselect-text", role: "alert", hidden: this.hideError() }, h("span", { key: '0297ed1e18f374c0c3f0909a1ee5685b75c73a7c' }, this.error), h("slot", { key: '9c545b960d440978e46858b69ac86ad0112510c7', name: "error" })), this.search && this.renderChips(), h("slot", { key: '9551563c6a72fa6e06ce473eadbc73a0428b551e' }), this.search && (h("p", { key: '96863325f57e613f0272d652e05a70e1c5c35dde', id: this.idSr, class: "pn-multiselect-sr-only", role: "alert", "aria-live": "assertive" }, this.srMessage && h("span", { key: '21b84e0522ca16702a9ccabb071d30c0317631ef' }, this.srMessage))))));
|
|
667
748
|
}
|
|
668
749
|
static get watchers() { return {
|
|
669
750
|
"open": [{
|
|
@@ -677,6 +758,9 @@ const PnMultiselect = class extends Mixin(animateHeightFactory) {
|
|
|
677
758
|
}],
|
|
678
759
|
"selectId": [{
|
|
679
760
|
"handleSelectId": 0
|
|
761
|
+
}],
|
|
762
|
+
"pnId": [{
|
|
763
|
+
"handleSelectId": 1
|
|
680
764
|
}]
|
|
681
765
|
}; }
|
|
682
766
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* By PostNord.
|
|
4
4
|
*/
|
|
5
|
-
import { t as transformTag, r as registerInstance, g as getElement, h, a as Host } from './index-
|
|
5
|
+
import { t as transformTag, r as registerInstance, g as getElement, h, a as Host } from './index-XKg-ydzH.js';
|
|
6
6
|
import { awaitTopbar, sv } from './index.js';
|
|
7
7
|
|
|
8
8
|
const translations = {
|
|
@@ -136,7 +136,7 @@ const PnOcrSearch = class {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
render() {
|
|
139
|
-
return (h(Host, { key: '
|
|
139
|
+
return (h(Host, { key: '7cf50eabd6310124086f1674537bbb5f73ac6714' }, h("pn-search-field", { key: 'b8a24cdd8fdbb4ad6ac051bddd064f731bac8880', loading: this.loading, label: this.getTranslation('SEARCH_BUTTON'), button: "icon", buttonLabel: this.getTranslation('SEARCH_BUTTON'), placeholder: this.getTranslation('PLACEHOLDER_TEXT'), onSearch: e => this.handleSearch(e) }), this.renderSearchResult(), this.renderErrorMessage()));
|
|
140
140
|
}
|
|
141
141
|
};
|
|
142
142
|
PnOcrSearch.style = pnOcrSearchCss();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* By PostNord.
|
|
4
4
|
*/
|
|
5
|
-
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, h } from './index-
|
|
5
|
+
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, h } from './index-XKg-ydzH.js';
|
|
6
6
|
import { a as arrow_right } from './arrow_right-D_UyW-KH.js';
|
|
7
7
|
|
|
8
8
|
const pnPageNavDropdownItemCss = () => `${transformTag("pn-page-nav-dropdown-item")}:first-of-type li>a,${transformTag("pn-page-nav-dropdown-item")}:first-of-type li>button{border-radius:0.5em 0.5em 0 0}${transformTag("pn-page-nav-dropdown-item")}:last-of-type li>a,${transformTag("pn-page-nav-dropdown-item")}:last-of-type li>button{border-radius:0 0 0.5em 0.5em}${transformTag("pn-page-nav-dropdown-item")}:last-of-type li>hr{display:none}${transformTag("pn-page-nav-dropdown-item")} li{font-size:inherit}${transformTag("pn-page-nav-dropdown-item")} li>*{color:#ffffff;font-size:inherit;border:none;padding:1em;margin:0;display:flex;justify-content:space-between;align-items:center;cursor:pointer;transition:background 0.15s;outline:none;width:100%;font-weight:500}${transformTag("pn-page-nav-dropdown-item")} li>*>${transformTag("pn-icon")}{margin-left:1em}${transformTag("pn-page-nav-dropdown-item")} li>*.pn-page-nav-dropdown-item-active{background:#005d92}${transformTag("pn-page-nav-dropdown-item")} li>*.pn-page-nav-dropdown-item-active:hover,${transformTag("pn-page-nav-dropdown-item")} li>*.pn-page-nav-dropdown-item-active:focus{background:#005d92}${transformTag("pn-page-nav-dropdown-item")} li>*:hover,${transformTag("pn-page-nav-dropdown-item")} li>*:focus{background:#0d234b}${transformTag("pn-page-nav-dropdown-item")} li>*:focus{box-shadow:inset 0 0 0 0.1em #005d92, inset 0 0 0 0.2em #d3cecb}${transformTag("pn-page-nav-dropdown-item")} li>a{text-decoration:none}${transformTag("pn-page-nav-dropdown-item")} li>button{background:none}${transformTag("pn-page-nav-dropdown-item")} li>hr{bottom:0;padding:0;margin:0 auto;border-top:0.0625em solid #d3cecb;opacity:0.6;width:85%}`;
|
|
@@ -10,7 +10,7 @@ const pnPageNavDropdownItemCss = () => `${transformTag("pn-page-nav-dropdown-ite
|
|
|
10
10
|
const PnPageNavDropdownItem = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
registerInstance(this, hostRef);
|
|
13
|
-
this.itemselection = createEvent(this, "itemselection");
|
|
13
|
+
this.itemselection = createEvent(this, "itemselection", 7);
|
|
14
14
|
}
|
|
15
15
|
get hostElement() { return getElement(this); }
|
|
16
16
|
/**
|
|
@@ -43,7 +43,7 @@ const PnPageNavDropdownItem = class {
|
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
45
|
const TagName = this.getTagName();
|
|
46
|
-
return (h("li", { key: '
|
|
46
|
+
return (h("li", { key: '93c6bd31a88c76797cee2bc915c31e6ecfa5aace' }, h(TagName, { key: '2818d4f3a1572f863f9b9a8609d572f5994f6e75', href: this.href || '#', class: this.setClassnames(), type: this.getType(), onClick: e => this.select(e), tabindex: "-1" }, h("slot", { key: 'e04f130737445747a2b93bf9d7372bf22889fcff' }), h("pn-icon", { key: '934d46f6bd482171d974efec7c4494f8b1b1faff', icon: arrow_right, color: "white" })), h("hr", { key: 'c5c9c4a24affe5b10d56e8a6ca5d6bee434aa571' })));
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
PnPageNavDropdownItem.style = pnPageNavDropdownItemCss();
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* By PostNord.
|
|
4
4
|
*/
|
|
5
|
-
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, h, a as Host } from './index-
|
|
5
|
+
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, h, a as Host } from './index-XKg-ydzH.js';
|
|
6
6
|
|
|
7
7
|
const pnPageNavItemCss = () => `${transformTag("pn-page-nav-item")}{position:relative;color:#ffffff;margin-right:0.5em;z-index:2;white-space:nowrap;scroll-snap-align:center;outline:none;-webkit-tap-highlight-color:transparent;transform:translateZ(0)}${transformTag("pn-page-nav-item")} a{text-decoration:none;color:#ffffff;height:100%;width:100%;padding:0.5em;font-weight:500;border-radius:3em;border:0.0625em solid transparent;display:inline-flex;align-items:center;cursor:pointer;outline:none;transition:box-shadow 0.15s}${transformTag("pn-page-nav-item")} a:focus{box-shadow:0 0 0 0.1em #d3cecb}${transformTag("pn-page-nav-item")} a>${transformTag("pn-icon")}{margin-right:0.5em}${transformTag("pn-page-nav-item")}:last-of-type{margin-right:0}`;
|
|
8
8
|
|
|
9
9
|
const PnPageNavItem = class {
|
|
10
10
|
constructor(hostRef) {
|
|
11
11
|
registerInstance(this, hostRef);
|
|
12
|
-
this.itemselection = createEvent(this, "itemselection");
|
|
12
|
+
this.itemselection = createEvent(this, "itemselection", 7);
|
|
13
13
|
}
|
|
14
14
|
get hostElement() { return getElement(this); }
|
|
15
15
|
/** The item value. Used by `pn-page-nav` to determine pre-selected item. */
|
|
@@ -26,7 +26,7 @@ const PnPageNavItem = class {
|
|
|
26
26
|
this.itemselection.emit(this.value);
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'b4249e533daa9f96259d5379fdfcd90d87f3cc11' }, h("li", { key: '86b933f5d6b4bc827826c679a6ddf04efca08ee9' }, h("a", { key: '217797b771a53db8bbf53272eaafe816fc668ebc', href: this.href || '#', class: "pn-page-nav-item", onClick: e => this.select(e) }, this.icon && h("pn-icon", { key: '8de359aa34e50caa65a66db5620590f24d409dae', icon: this.icon, color: "white" }), h("slot", { key: '5610d030d68f2e7f3f8eac68c02a01c3f9624f5e' })))));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
PnPageNavItem.style = pnPageNavItemCss();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* By PostNord.
|
|
4
4
|
*/
|
|
5
|
-
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, f as forceUpdate, h, a as Host } from './index-
|
|
5
|
+
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, f as forceUpdate, h, a as Host } from './index-XKg-ydzH.js';
|
|
6
6
|
import { uuidv4 } from './index.js';
|
|
7
7
|
import { a as arrow_left } from './arrow_left-CQaMdITw.js';
|
|
8
8
|
import { a as arrow_right } from './arrow_right-D_UyW-KH.js';
|
|
@@ -13,7 +13,7 @@ const pnPageNavCss = () => `${transformTag("pn-page-nav")}{display:block;positio
|
|
|
13
13
|
const PnPageNav = class {
|
|
14
14
|
constructor(hostRef) {
|
|
15
15
|
registerInstance(this, hostRef);
|
|
16
|
-
this.navchange = createEvent(this, "navchange");
|
|
16
|
+
this.navchange = createEvent(this, "navchange", 7);
|
|
17
17
|
}
|
|
18
18
|
mo;
|
|
19
19
|
navContainer;
|
|
@@ -297,7 +297,7 @@ const PnPageNav = class {
|
|
|
297
297
|
}
|
|
298
298
|
/* ---------------------------------------/DROPDOWN LOGIC--------------------------------------- */
|
|
299
299
|
render() {
|
|
300
|
-
return (h(Host, { key: '
|
|
300
|
+
return (h(Host, { key: '2bca6384910b5b314ddbb6f4f646fa95ee084c09' }, h("div", { key: '2322adc21546db4fcf950f0136516ef3a059b409', class: "pn-page-nav-wrapper" }, h("nav", { key: '62ce2c8c14c2748b8e5f4fd91263c19b70db1559', class: "pn-page-nav" }, this.dropdownActive && (h("button", { key: 'a7839cdd22ca1fbb7f2a1dcb56ebf8d9d7dda05d', type: "button", class: this.dropdownButtonClasses(), onClick: () => this.toggleDropdown(), "aria-controls": "page-nav-dropdown", "aria-expanded": `${this.dropdownOpen}` }, this.dropdown, h("pn-icon", { key: '1a91a0a67c34295456c3bdb943740b257d942a53', icon: chevron_down, color: "white", small: true }), h("div", { key: '1197635d3c157fae6b5fd90b52a8a61af8de4b8e', class: "pn-page-nav-divider" }))), h("ul", { key: '3a19fcbe877e2dc81c76d378fffe1536ac1af54f', class: "pn-page-nav-items" }, h("slot", { key: 'aff622272002a021fc4606cb9d43aa9d86e06ba3' }), h("li", { key: 'eb6d08cc390d742576a633629ee930b979ee9fdf', class: "pn-pn-bg pn-pn-active", role: "presentation" }), h("li", { key: '86be3cba39c47f3bc7f3c87afedfef66afcd6fb2', class: "pn-pn-bg pn-pn-hover", role: "presentation" }))), this.showScrollArrows && (h("div", { key: '875412be070486024d5886f5f4099747b0d51b8a', class: this.scrollArrowClasses() }, h("button", { key: '358199bf37ce3473f002ae20e6dfab31a1ae0ac5', class: "pn-pn-arrow-left", onClick: () => this.scroll(-120), tabindex: "-1" }, h("pn-icon", { key: 'c40ceef73645e7bf9cec3935e892faf8c369a158', icon: arrow_left, color: "white" })), h("button", { key: '8ac847b47005a0d61f72de5122601c38ff268655', class: "pn-pn-arrow-right", onClick: () => this.scroll(120), tabindex: "-1" }, h("pn-icon", { key: 'dc21c3242fe32126adca3ebc38c8a8eeed705aca', icon: arrow_right, color: "blue700" }))))), this.dropdownActive && (h("ul", { key: '7666ab6c68d3b9fe0bd39ac4bd1cec2e240e6871', id: this.navid, class: this.dropdownClasses() }, h("slot", { key: '64c6a3b285fb8058eb8085f2557e001c6711db4c', name: "dropdown-item" })))));
|
|
301
301
|
}
|
|
302
302
|
static get watchers() { return {
|
|
303
303
|
"value": [{
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* By PostNord.
|
|
4
4
|
*/
|
|
5
|
-
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, h, a as Host } from './index-
|
|
5
|
+
import { t as transformTag, r as registerInstance, c as createEvent, g as getElement, h, a as Host } from './index-XKg-ydzH.js';
|
|
6
6
|
import { a as arrow_left } from './arrow_left-CQaMdITw.js';
|
|
7
7
|
import { a as arrow_right } from './arrow_right-D_UyW-KH.js';
|
|
8
8
|
import { awaitTopbar, en } from './index.js';
|
|
@@ -50,8 +50,8 @@ const pnPaginationCss = () => `${transformTag("pn-pagination")}{display:block;ma
|
|
|
50
50
|
const PnPagination = class {
|
|
51
51
|
constructor(hostRef) {
|
|
52
52
|
registerInstance(this, hostRef);
|
|
53
|
-
this.pageSelected = createEvent(this, "pageSelected");
|
|
54
|
-
this.rowsSelected = createEvent(this, "rowsSelected");
|
|
53
|
+
this.pageSelected = createEvent(this, "pageSelected", 7);
|
|
54
|
+
this.rowsSelected = createEvent(this, "rowsSelected", 7);
|
|
55
55
|
}
|
|
56
56
|
listElement;
|
|
57
57
|
get hostElement() { return getElement(this); }
|
|
@@ -226,7 +226,7 @@ const PnPagination = class {
|
|
|
226
226
|
return (h("pn-button", { arialabel: label, ariacurrent: current ? 'page' : null, href: this.getUrl(page), rel: current ? null : rel, appearance: "light", small: true, icon: icon, iconOnly: true, onPnClick: ({ detail }) => this.navigate({ page, event: detail }) }));
|
|
227
227
|
}
|
|
228
228
|
render() {
|
|
229
|
-
return (h(Host, { key: '
|
|
229
|
+
return (h(Host, { key: 'a975a04388ce0495aef863236d3fd2f936380fed' }, h("nav", { key: '920aeb21c535b7f09bc54924865d3b5be2a65652', id: this.paginationId, class: "pn-pagination", "aria-label": this.label || this.translate('PAGINATION') }, this.useRowList() && (h("pn-select", { key: '880de99ef3a2a1400ff08f420c8c81017846e1fa', class: "pn-pagination-rows", label: this.rowsLabel || this.translate('ROWS_PAGE'), onChange: event => this.setRows(event) }, this.getRowList().map(item => (h("option", { value: item, selected: this.rows === Number(item), innerHTML: `${item}` }))))), h("div", { key: 'd11a69a8d7f5efcaae031214f2abf417d8922207', class: "pn-pagination-container", "data-right": this.useRowList() }, this.renderJumpButton(), this.renderButton({ page: 1, dataAttr: 'first' }), this.renderDivider(), h("ol", { key: '2a5777aecd5210105ea26ed8c8cb9d99d1f1efc8', class: "pn-pagination-list", ref: el => (this.listElement = el) }, this.getPagination().map(item => this.renderItem(item))), this.renderDivider(true), this.renderButton({ page: this.pages, dataAttr: 'last' }), this.renderJumpButton(true)))));
|
|
230
230
|
}
|
|
231
231
|
static get watchers() { return {
|
|
232
232
|
"page": [{
|