@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
|
@@ -6,7 +6,7 @@ import { h, Host, Mixin } from "@stencil/core";
|
|
|
6
6
|
import { animateHeightFactory } from "../../../globals/mixins/index";
|
|
7
7
|
import { translations } from "./translations";
|
|
8
8
|
import { close, alert_exclamation_circle, chevron_down } from "pn-design-assets/pn-assets/icons.js";
|
|
9
|
-
import { uuidv4, awaitTopbar, ripple, en, getTotalHeightOffset } from "../../../index";
|
|
9
|
+
import { uuidv4, awaitTopbar, ripple, en, getMenuWidth, getTotalHeightOffset } from "../../../index";
|
|
10
10
|
/**
|
|
11
11
|
* The `pn-multiselect` gets its options via javascript.
|
|
12
12
|
*
|
|
@@ -15,6 +15,9 @@ import { uuidv4, awaitTopbar, ripple, en, getTotalHeightOffset } from "../../../
|
|
|
15
15
|
*
|
|
16
16
|
* @nativeChange The `pn-multiselect` is built with `input[type=checkbox]` elements, so the `change` event works. However, we recommend the customEvents described above.
|
|
17
17
|
*
|
|
18
|
+
* @slot helpertext - You can use this slot instead of the prop `helpertext`. Recommended, only if you need to include additional HTML markup. Such as a `pn-text-link`. Use a `span` element to wrap the text and link. {@since v7.25.0}
|
|
19
|
+
* @slot error - You can use this slot instead of the prop `error`. Recommended, only if you need to include additional HTML markup. Such as a `pn-text-link`. Use a `span` element to wrap the text and link. {@since v7.25.0}
|
|
20
|
+
*
|
|
18
21
|
* @see {@link https://portal.postnord.com/web-components/?path=/docs/components-input-multiselect--docs#pn-multiselect%20(options) Options documentation}
|
|
19
22
|
*/
|
|
20
23
|
export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
@@ -26,6 +29,7 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
26
29
|
idButton = `${this.id}-button`;
|
|
27
30
|
idOptions = `${this.id}-options`;
|
|
28
31
|
idHelper = `${this.id}-text`;
|
|
32
|
+
idError = `${this.id}-error`;
|
|
29
33
|
idChips = `${this.id}-chips`;
|
|
30
34
|
idSr = `${this.id}-sr`;
|
|
31
35
|
elGroup;
|
|
@@ -44,28 +48,32 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
44
48
|
label;
|
|
45
49
|
/** Display a helper text underneath the select */
|
|
46
50
|
helpertext;
|
|
51
|
+
/** Manually set the language, not needed if you have the pnTopbar available */
|
|
52
|
+
language = undefined;
|
|
53
|
+
/** HTML name of the checkbox elements. Used for each checkbox inside the multiselect. @category Native attributes */
|
|
54
|
+
name;
|
|
55
|
+
/** HTML name of the input element. @category Native attributes*/
|
|
56
|
+
selectName;
|
|
47
57
|
/**
|
|
48
58
|
* This is what will be shown on load if no value is used.
|
|
49
59
|
* The `placeholder` will override the default text used if you have the `search` prop active.
|
|
60
|
+
* @category Native attributes
|
|
50
61
|
*/
|
|
51
62
|
placeholder;
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
/** HTML name of the input element.*/
|
|
57
|
-
selectName;
|
|
58
|
-
/** Display an icon to the left of the select input */
|
|
59
|
-
icon;
|
|
60
|
-
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 */
|
|
61
|
-
compact = false;
|
|
62
|
-
/** Manually set the language, not needed if you have the pnTopbar available */
|
|
63
|
-
language = null;
|
|
63
|
+
/** Set the select as required. @category Native attributes */
|
|
64
|
+
required = false;
|
|
65
|
+
/** Disable the select. @category Native attributes */
|
|
66
|
+
disabled = false;
|
|
64
67
|
/**
|
|
65
|
-
*
|
|
66
|
-
* @
|
|
68
|
+
* The array of `PnMultiselectOption` objects.
|
|
69
|
+
* @see {@link PnMultiselectOption} for the option object properties.
|
|
70
|
+
* @category Features
|
|
67
71
|
**/
|
|
68
72
|
options;
|
|
73
|
+
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 @category Features */
|
|
74
|
+
compact = false;
|
|
75
|
+
/** Display an icon to the left of the select input @category Features */
|
|
76
|
+
icon;
|
|
69
77
|
/**
|
|
70
78
|
* Adds a "Select all" option into the list.
|
|
71
79
|
* If you use the search feature at the same time, clicking this option will only toggle the options found.
|
|
@@ -100,8 +108,7 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
100
108
|
**/
|
|
101
109
|
itemCount = 5;
|
|
102
110
|
/**
|
|
103
|
-
*
|
|
104
|
-
* @description The component will automatically set the max height of the dropdown list on its own.
|
|
111
|
+
* The component will automatically set the max height of the dropdown list on its own.
|
|
105
112
|
* It takes the `pn-topbar` into account and will open in the direction that fits best.
|
|
106
113
|
* Use this prop to override this behaviour and use a custom max-height.
|
|
107
114
|
* @category Features
|
|
@@ -117,20 +124,34 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
117
124
|
* @category Features
|
|
118
125
|
**/
|
|
119
126
|
bottom = false;
|
|
120
|
-
/**
|
|
121
|
-
required = false;
|
|
122
|
-
/** Disable the select. @category Validation */
|
|
123
|
-
disabled = false;
|
|
124
|
-
/** Trigger the invalid state. @category Validation */
|
|
127
|
+
/** Trigger the invalid state. @category Features */
|
|
125
128
|
invalid = false;
|
|
126
|
-
/** Display an error message and trigger the invalid state. @category
|
|
129
|
+
/** Display an error message and trigger the invalid state. @category Features */
|
|
127
130
|
error;
|
|
131
|
+
/** Set a custom ID for the select. @since v7.25.0 @category HTML attributes */
|
|
132
|
+
pnId;
|
|
133
|
+
/**
|
|
134
|
+
* Provide the label via an aria attribute.
|
|
135
|
+
* We strongly recommend you use the `label` prop instead.
|
|
136
|
+
* @since v7.25.0
|
|
137
|
+
* @category HTML attributes
|
|
138
|
+
*/
|
|
139
|
+
pnAriaLabel;
|
|
140
|
+
/**
|
|
141
|
+
* Provide the label from another element via its ID.
|
|
142
|
+
* We strongly recommend you use the `label` prop instead.
|
|
143
|
+
* @since v7.25.0
|
|
144
|
+
* @category HTML attributes
|
|
145
|
+
*/
|
|
146
|
+
pnAriaLabelledby;
|
|
147
|
+
/** Select HTML id @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
148
|
+
selectId;
|
|
128
149
|
handleOpen() {
|
|
129
150
|
if (this.open) {
|
|
130
151
|
this.addGlobalEventListeners();
|
|
131
152
|
this.handleDirection();
|
|
132
153
|
this.handleMaxHeight();
|
|
133
|
-
this.
|
|
154
|
+
this.handleOffset();
|
|
134
155
|
}
|
|
135
156
|
else {
|
|
136
157
|
this.removeGlobalEventListeners();
|
|
@@ -156,11 +177,12 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
156
177
|
this.handleInputSearch();
|
|
157
178
|
}
|
|
158
179
|
handleSelectId() {
|
|
159
|
-
const id = this.
|
|
180
|
+
const id = this.getId();
|
|
160
181
|
this.idLegend = `${id}-legend`;
|
|
161
182
|
this.idButton = `${id}-button`;
|
|
162
183
|
this.idOptions = `${id}-options`;
|
|
163
184
|
this.idHelper = `${id}-text`;
|
|
185
|
+
this.idError = `${id}-error`;
|
|
164
186
|
this.idChips = `${id}-chips`;
|
|
165
187
|
this.idSr = `${id}-sr`;
|
|
166
188
|
}
|
|
@@ -172,8 +194,8 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
172
194
|
if (!this.open)
|
|
173
195
|
return;
|
|
174
196
|
this.toggleOpen(false);
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
197
|
+
this.elGroup.style.removeProperty('--pn-select-max-height');
|
|
198
|
+
this.elGroup.style.removeProperty('--pn-select-options-offset');
|
|
177
199
|
}
|
|
178
200
|
/** Dispatched everytime the multiselect is opened or closed. */
|
|
179
201
|
toggleSelect;
|
|
@@ -192,19 +214,44 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
192
214
|
**/
|
|
193
215
|
searchInput;
|
|
194
216
|
async componentWillLoad() {
|
|
195
|
-
this.
|
|
196
|
-
if (this.language === null)
|
|
217
|
+
if (this.language === undefined)
|
|
197
218
|
await awaitTopbar(this.hostElement);
|
|
198
219
|
}
|
|
199
220
|
componentDidLoad() {
|
|
200
221
|
if (!!this.searchQuery?.length)
|
|
201
222
|
this.handleSearchQuery();
|
|
202
223
|
}
|
|
224
|
+
getId() {
|
|
225
|
+
return this.pnId || this.selectId || this.id;
|
|
226
|
+
}
|
|
227
|
+
hasHelperText() {
|
|
228
|
+
return this.helpertext?.length > 0 || this.checkSlottedHelper();
|
|
229
|
+
}
|
|
230
|
+
/** If any `error` text is present, either via prop/slot. */
|
|
231
|
+
hasErrorMessage() {
|
|
232
|
+
return this.error?.length > 0 || this.checkSlottedError();
|
|
233
|
+
}
|
|
234
|
+
/** If any `error` is active, either via the prop `invalid` or `error` prop/slot. */
|
|
235
|
+
hasError() {
|
|
236
|
+
return this.hasErrorMessage() || this.invalid;
|
|
237
|
+
}
|
|
238
|
+
checkSlottedHelper() {
|
|
239
|
+
return !!this.hostElement.querySelector('[slot=helpertext]');
|
|
240
|
+
}
|
|
241
|
+
checkSlottedError() {
|
|
242
|
+
return !!this.hostElement.querySelector('[slot=error]');
|
|
243
|
+
}
|
|
244
|
+
hideHelpertext() {
|
|
245
|
+
return this.hasErrorMessage() || !this.hasHelperText();
|
|
246
|
+
}
|
|
247
|
+
hideError() {
|
|
248
|
+
return !this.hasErrorMessage();
|
|
249
|
+
}
|
|
203
250
|
globalEvents = (event) => {
|
|
204
251
|
const target = event.target;
|
|
205
|
-
|
|
206
|
-
if (!isWithinCalendar)
|
|
252
|
+
if (!this.hostElement.contains(target) || event?.key === 'Escape') {
|
|
207
253
|
this.toggleOpen(false);
|
|
254
|
+
}
|
|
208
255
|
};
|
|
209
256
|
addGlobalEventListeners() {
|
|
210
257
|
const root = this.hostElement.getRootNode();
|
|
@@ -397,9 +444,21 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
397
444
|
const maxHeight = this.upwards ? inputHeight - offset : window.innerHeight - inputHeight - offset;
|
|
398
445
|
this.elGroup.style.setProperty('--pn-select-max-height', `${Math.ceil(maxHeight)}px`);
|
|
399
446
|
}
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
447
|
+
handleOffset() {
|
|
448
|
+
this.elGroup.style.removeProperty('--pn-select-options-offset');
|
|
449
|
+
requestAnimationFrame(() => {
|
|
450
|
+
const { left, right } = this.getRect(this.elList);
|
|
451
|
+
const menuWidth = getMenuWidth();
|
|
452
|
+
const leftBoundary = menuWidth + 8;
|
|
453
|
+
const rightBoundary = window.innerWidth - 8;
|
|
454
|
+
let offset = 0;
|
|
455
|
+
if (left < leftBoundary)
|
|
456
|
+
offset = leftBoundary - left;
|
|
457
|
+
else if (right > rightBoundary)
|
|
458
|
+
offset = rightBoundary - right;
|
|
459
|
+
if (offset !== 0)
|
|
460
|
+
this.elGroup.style.setProperty('--pn-select-options-offset', `${Math.floor(offset)}px`);
|
|
461
|
+
});
|
|
403
462
|
}
|
|
404
463
|
setFocus() {
|
|
405
464
|
if (this.search)
|
|
@@ -407,12 +466,6 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
407
466
|
else
|
|
408
467
|
this.elButton.focus({ preventScroll: true });
|
|
409
468
|
}
|
|
410
|
-
hasError() {
|
|
411
|
-
return this.invalid || !!this.error;
|
|
412
|
-
}
|
|
413
|
-
hasMessage() {
|
|
414
|
-
return !!this.helpertext || !!this.error;
|
|
415
|
-
}
|
|
416
469
|
toggleOpen(state) {
|
|
417
470
|
if (typeof state === 'boolean' && state === this.open)
|
|
418
471
|
return;
|
|
@@ -533,14 +586,45 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
533
586
|
const single = `MORE_OPTION${count === 1 ? '' : 'S'}`;
|
|
534
587
|
return `${count} ${this.translate(single)}`;
|
|
535
588
|
}
|
|
589
|
+
displayLabel() {
|
|
590
|
+
return !!this.label;
|
|
591
|
+
}
|
|
592
|
+
getAriaLabel() {
|
|
593
|
+
return !this.displayLabel() && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
|
|
594
|
+
}
|
|
595
|
+
/**
|
|
596
|
+
* If you use a label (technically a legend), use the `idLegend` to point to it.
|
|
597
|
+
* If not, make sure there is no pnAriaLabel and use pnAriaLabelledby.
|
|
598
|
+
* This is to make sure there are no double label/labelledby.
|
|
599
|
+
*/
|
|
600
|
+
getAriaLabelledby() {
|
|
601
|
+
return this.displayLabel() ? this.idLegend : !this.pnAriaLabel ? this.pnAriaLabelledby : null;
|
|
602
|
+
}
|
|
536
603
|
describedBy() {
|
|
537
|
-
const list = [
|
|
604
|
+
const list = [];
|
|
605
|
+
if (this.search)
|
|
606
|
+
list.push(this.idChips);
|
|
607
|
+
if (this.srMessage)
|
|
608
|
+
list.push(this.idSr);
|
|
609
|
+
if (this.hasHelperText() && !this.hasErrorMessage())
|
|
610
|
+
list.push(this.idHelper);
|
|
611
|
+
if (this.hasErrorMessage())
|
|
612
|
+
list.push(this.idError);
|
|
538
613
|
if (list.length)
|
|
539
614
|
return list.join(' ');
|
|
540
615
|
return null;
|
|
541
616
|
}
|
|
542
|
-
|
|
543
|
-
|
|
617
|
+
/**
|
|
618
|
+
* This is to prevent a rare issue with rendering flag icons.
|
|
619
|
+
* Flags use a set ID to identify gradient colors. If the icon is rendered while the dropdown is closed,
|
|
620
|
+
* the ID is not unique and the icon will not be rendered for other pn-icons using it.
|
|
621
|
+
* This is a temp fix to address the root issue which is how the flags SVG styling is built.
|
|
622
|
+
*/
|
|
623
|
+
renderItemIcon(icon, hide) {
|
|
624
|
+
return (this.open || this.isMoving()) && !!icon && !hide;
|
|
625
|
+
}
|
|
626
|
+
renderOption({ label, value, checked, helpertext, icon, id = `${this.getId()}-${value || label}`, invalid, disabled, hide, group, }, indexGroup, indexNested) {
|
|
627
|
+
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))))));
|
|
544
628
|
}
|
|
545
629
|
renderOptions() {
|
|
546
630
|
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() &&
|
|
@@ -551,7 +635,7 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
551
635
|
}), 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'))))))));
|
|
552
636
|
}
|
|
553
637
|
renderChips() {
|
|
554
|
-
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())))));
|
|
638
|
+
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())))));
|
|
555
639
|
}
|
|
556
640
|
renderLabel(compactLabel = false) {
|
|
557
641
|
if (!this.label)
|
|
@@ -562,7 +646,7 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
562
646
|
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()))));
|
|
563
647
|
}
|
|
564
648
|
render() {
|
|
565
|
-
return (h(Host, { key: '
|
|
649
|
+
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))))));
|
|
566
650
|
}
|
|
567
651
|
static get is() { return "pn-multiselect"; }
|
|
568
652
|
static get originalStyleUrls() {
|
|
@@ -585,8 +669,8 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
585
669
|
"resolved": "string",
|
|
586
670
|
"references": {}
|
|
587
671
|
},
|
|
588
|
-
"required":
|
|
589
|
-
"optional":
|
|
672
|
+
"required": false,
|
|
673
|
+
"optional": true,
|
|
590
674
|
"docs": {
|
|
591
675
|
"tags": [],
|
|
592
676
|
"text": "Label placed above the select"
|
|
@@ -615,24 +699,32 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
615
699
|
"reflect": false,
|
|
616
700
|
"attribute": "helpertext"
|
|
617
701
|
},
|
|
618
|
-
"
|
|
702
|
+
"language": {
|
|
619
703
|
"type": "string",
|
|
620
704
|
"mutable": false,
|
|
621
705
|
"complexType": {
|
|
622
|
-
"original": "
|
|
623
|
-
"resolved": "
|
|
624
|
-
"references": {
|
|
706
|
+
"original": "PnLanguages",
|
|
707
|
+
"resolved": "\"\" | \"da\" | \"en\" | \"fi\" | \"no\" | \"sv\"",
|
|
708
|
+
"references": {
|
|
709
|
+
"PnLanguages": {
|
|
710
|
+
"location": "import",
|
|
711
|
+
"path": "@/index",
|
|
712
|
+
"id": "src/index.ts::PnLanguages",
|
|
713
|
+
"referenceLocation": "PnLanguages"
|
|
714
|
+
}
|
|
715
|
+
}
|
|
625
716
|
},
|
|
626
717
|
"required": false,
|
|
627
718
|
"optional": true,
|
|
628
719
|
"docs": {
|
|
629
720
|
"tags": [],
|
|
630
|
-
"text": "
|
|
721
|
+
"text": "Manually set the language, not needed if you have the pnTopbar available"
|
|
631
722
|
},
|
|
632
723
|
"getter": false,
|
|
633
724
|
"setter": false,
|
|
634
725
|
"reflect": false,
|
|
635
|
-
"attribute": "
|
|
726
|
+
"attribute": "language",
|
|
727
|
+
"defaultValue": "undefined"
|
|
636
728
|
},
|
|
637
729
|
"name": {
|
|
638
730
|
"type": "string",
|
|
@@ -645,7 +737,10 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
645
737
|
"required": false,
|
|
646
738
|
"optional": true,
|
|
647
739
|
"docs": {
|
|
648
|
-
"tags": [
|
|
740
|
+
"tags": [{
|
|
741
|
+
"name": "category",
|
|
742
|
+
"text": "Native attributes"
|
|
743
|
+
}],
|
|
649
744
|
"text": "HTML name of the checkbox elements. Used for each checkbox inside the multiselect."
|
|
650
745
|
},
|
|
651
746
|
"getter": false,
|
|
@@ -653,26 +748,6 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
653
748
|
"reflect": false,
|
|
654
749
|
"attribute": "name"
|
|
655
750
|
},
|
|
656
|
-
"selectId": {
|
|
657
|
-
"type": "string",
|
|
658
|
-
"mutable": false,
|
|
659
|
-
"complexType": {
|
|
660
|
-
"original": "string",
|
|
661
|
-
"resolved": "string",
|
|
662
|
-
"references": {}
|
|
663
|
-
},
|
|
664
|
-
"required": false,
|
|
665
|
-
"optional": true,
|
|
666
|
-
"docs": {
|
|
667
|
-
"tags": [],
|
|
668
|
-
"text": "Select HTML id"
|
|
669
|
-
},
|
|
670
|
-
"getter": false,
|
|
671
|
-
"setter": false,
|
|
672
|
-
"reflect": false,
|
|
673
|
-
"attribute": "select-id",
|
|
674
|
-
"defaultValue": "this.id"
|
|
675
|
-
},
|
|
676
751
|
"selectName": {
|
|
677
752
|
"type": "string",
|
|
678
753
|
"mutable": false,
|
|
@@ -684,7 +759,10 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
684
759
|
"required": false,
|
|
685
760
|
"optional": true,
|
|
686
761
|
"docs": {
|
|
687
|
-
"tags": [
|
|
762
|
+
"tags": [{
|
|
763
|
+
"name": "category",
|
|
764
|
+
"text": "Native attributes"
|
|
765
|
+
}],
|
|
688
766
|
"text": "HTML name of the input element."
|
|
689
767
|
},
|
|
690
768
|
"getter": false,
|
|
@@ -692,7 +770,7 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
692
770
|
"reflect": false,
|
|
693
771
|
"attribute": "select-name"
|
|
694
772
|
},
|
|
695
|
-
"
|
|
773
|
+
"placeholder": {
|
|
696
774
|
"type": "string",
|
|
697
775
|
"mutable": false,
|
|
698
776
|
"complexType": {
|
|
@@ -703,15 +781,18 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
703
781
|
"required": false,
|
|
704
782
|
"optional": true,
|
|
705
783
|
"docs": {
|
|
706
|
-
"tags": [
|
|
707
|
-
|
|
784
|
+
"tags": [{
|
|
785
|
+
"name": "category",
|
|
786
|
+
"text": "Native attributes"
|
|
787
|
+
}],
|
|
788
|
+
"text": "This is what will be shown on load if no value is used.\nThe `placeholder` will override the default text used if you have the `search` prop active."
|
|
708
789
|
},
|
|
709
790
|
"getter": false,
|
|
710
791
|
"setter": false,
|
|
711
792
|
"reflect": false,
|
|
712
|
-
"attribute": "
|
|
793
|
+
"attribute": "placeholder"
|
|
713
794
|
},
|
|
714
|
-
"
|
|
795
|
+
"required": {
|
|
715
796
|
"type": "boolean",
|
|
716
797
|
"mutable": false,
|
|
717
798
|
"complexType": {
|
|
@@ -723,43 +804,39 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
723
804
|
"optional": true,
|
|
724
805
|
"docs": {
|
|
725
806
|
"tags": [{
|
|
726
|
-
"name": "
|
|
727
|
-
"text": "
|
|
807
|
+
"name": "category",
|
|
808
|
+
"text": "Native attributes"
|
|
728
809
|
}],
|
|
729
|
-
"text": "Set the
|
|
810
|
+
"text": "Set the select as required."
|
|
730
811
|
},
|
|
731
812
|
"getter": false,
|
|
732
813
|
"setter": false,
|
|
733
814
|
"reflect": false,
|
|
734
|
-
"attribute": "
|
|
815
|
+
"attribute": "required",
|
|
735
816
|
"defaultValue": "false"
|
|
736
817
|
},
|
|
737
|
-
"
|
|
738
|
-
"type": "
|
|
818
|
+
"disabled": {
|
|
819
|
+
"type": "boolean",
|
|
739
820
|
"mutable": false,
|
|
740
821
|
"complexType": {
|
|
741
|
-
"original": "
|
|
742
|
-
"resolved": "
|
|
743
|
-
"references": {
|
|
744
|
-
"PnLanguages": {
|
|
745
|
-
"location": "import",
|
|
746
|
-
"path": "@/index",
|
|
747
|
-
"id": "src/index.ts::PnLanguages",
|
|
748
|
-
"referenceLocation": "PnLanguages"
|
|
749
|
-
}
|
|
750
|
-
}
|
|
822
|
+
"original": "boolean",
|
|
823
|
+
"resolved": "boolean",
|
|
824
|
+
"references": {}
|
|
751
825
|
},
|
|
752
826
|
"required": false,
|
|
753
827
|
"optional": true,
|
|
754
828
|
"docs": {
|
|
755
|
-
"tags": [
|
|
756
|
-
|
|
829
|
+
"tags": [{
|
|
830
|
+
"name": "category",
|
|
831
|
+
"text": "Native attributes"
|
|
832
|
+
}],
|
|
833
|
+
"text": "Disable the select."
|
|
757
834
|
},
|
|
758
835
|
"getter": false,
|
|
759
836
|
"setter": false,
|
|
760
837
|
"reflect": false,
|
|
761
|
-
"attribute": "
|
|
762
|
-
"defaultValue": "
|
|
838
|
+
"attribute": "disabled",
|
|
839
|
+
"defaultValue": "false"
|
|
763
840
|
},
|
|
764
841
|
"options": {
|
|
765
842
|
"type": "unknown",
|
|
@@ -780,14 +857,65 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
780
857
|
"optional": false,
|
|
781
858
|
"docs": {
|
|
782
859
|
"tags": [{
|
|
783
|
-
"name": "
|
|
784
|
-
"text": "
|
|
860
|
+
"name": "see",
|
|
861
|
+
"text": "{@link PnMultiselectOption } for the option object properties."
|
|
862
|
+
}, {
|
|
863
|
+
"name": "category",
|
|
864
|
+
"text": "Features"
|
|
785
865
|
}],
|
|
786
|
-
"text": "
|
|
866
|
+
"text": "The array of `PnMultiselectOption` objects."
|
|
787
867
|
},
|
|
788
868
|
"getter": false,
|
|
789
869
|
"setter": false
|
|
790
870
|
},
|
|
871
|
+
"compact": {
|
|
872
|
+
"type": "boolean",
|
|
873
|
+
"mutable": false,
|
|
874
|
+
"complexType": {
|
|
875
|
+
"original": "boolean",
|
|
876
|
+
"resolved": "boolean",
|
|
877
|
+
"references": {}
|
|
878
|
+
},
|
|
879
|
+
"required": false,
|
|
880
|
+
"optional": true,
|
|
881
|
+
"docs": {
|
|
882
|
+
"tags": [{
|
|
883
|
+
"name": "since",
|
|
884
|
+
"text": "v7.21.0"
|
|
885
|
+
}, {
|
|
886
|
+
"name": "category",
|
|
887
|
+
"text": "Features"
|
|
888
|
+
}],
|
|
889
|
+
"text": "Set the date picker label as compact. If used, the `placeholder` will no longer be displayed."
|
|
890
|
+
},
|
|
891
|
+
"getter": false,
|
|
892
|
+
"setter": false,
|
|
893
|
+
"reflect": false,
|
|
894
|
+
"attribute": "compact",
|
|
895
|
+
"defaultValue": "false"
|
|
896
|
+
},
|
|
897
|
+
"icon": {
|
|
898
|
+
"type": "string",
|
|
899
|
+
"mutable": false,
|
|
900
|
+
"complexType": {
|
|
901
|
+
"original": "string",
|
|
902
|
+
"resolved": "string",
|
|
903
|
+
"references": {}
|
|
904
|
+
},
|
|
905
|
+
"required": false,
|
|
906
|
+
"optional": true,
|
|
907
|
+
"docs": {
|
|
908
|
+
"tags": [{
|
|
909
|
+
"name": "category",
|
|
910
|
+
"text": "Features"
|
|
911
|
+
}],
|
|
912
|
+
"text": "Display an icon to the left of the select input"
|
|
913
|
+
},
|
|
914
|
+
"getter": false,
|
|
915
|
+
"setter": false,
|
|
916
|
+
"reflect": false,
|
|
917
|
+
"attribute": "icon"
|
|
918
|
+
},
|
|
791
919
|
"selectAll": {
|
|
792
920
|
"type": "boolean",
|
|
793
921
|
"mutable": false,
|
|
@@ -927,13 +1055,10 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
927
1055
|
"optional": true,
|
|
928
1056
|
"docs": {
|
|
929
1057
|
"tags": [{
|
|
930
|
-
"name": "description",
|
|
931
|
-
"text": "The component will automatically set the max height of the dropdown list on its own.\nIt takes the `pn-topbar` into account and will open in the direction that fits best.\nUse this prop to override this behaviour and use a custom max-height."
|
|
932
|
-
}, {
|
|
933
1058
|
"name": "category",
|
|
934
1059
|
"text": "Features"
|
|
935
1060
|
}],
|
|
936
|
-
"text": "
|
|
1061
|
+
"text": "The component will automatically set the max height of the dropdown list on its own.\nIt takes the `pn-topbar` into account and will open in the direction that fits best.\nUse this prop to override this behaviour and use a custom max-height."
|
|
937
1062
|
},
|
|
938
1063
|
"getter": false,
|
|
939
1064
|
"setter": false,
|
|
@@ -986,7 +1111,7 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
986
1111
|
"attribute": "bottom",
|
|
987
1112
|
"defaultValue": "false"
|
|
988
1113
|
},
|
|
989
|
-
"
|
|
1114
|
+
"invalid": {
|
|
990
1115
|
"type": "boolean",
|
|
991
1116
|
"mutable": false,
|
|
992
1117
|
"complexType": {
|
|
@@ -999,22 +1124,22 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
999
1124
|
"docs": {
|
|
1000
1125
|
"tags": [{
|
|
1001
1126
|
"name": "category",
|
|
1002
|
-
"text": "
|
|
1127
|
+
"text": "Features"
|
|
1003
1128
|
}],
|
|
1004
|
-
"text": "
|
|
1129
|
+
"text": "Trigger the invalid state."
|
|
1005
1130
|
},
|
|
1006
1131
|
"getter": false,
|
|
1007
1132
|
"setter": false,
|
|
1008
1133
|
"reflect": false,
|
|
1009
|
-
"attribute": "
|
|
1134
|
+
"attribute": "invalid",
|
|
1010
1135
|
"defaultValue": "false"
|
|
1011
1136
|
},
|
|
1012
|
-
"
|
|
1013
|
-
"type": "
|
|
1137
|
+
"error": {
|
|
1138
|
+
"type": "string",
|
|
1014
1139
|
"mutable": false,
|
|
1015
1140
|
"complexType": {
|
|
1016
|
-
"original": "
|
|
1017
|
-
"resolved": "
|
|
1141
|
+
"original": "string",
|
|
1142
|
+
"resolved": "string",
|
|
1018
1143
|
"references": {}
|
|
1019
1144
|
},
|
|
1020
1145
|
"required": false,
|
|
@@ -1022,40 +1147,41 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
1022
1147
|
"docs": {
|
|
1023
1148
|
"tags": [{
|
|
1024
1149
|
"name": "category",
|
|
1025
|
-
"text": "
|
|
1150
|
+
"text": "Features"
|
|
1026
1151
|
}],
|
|
1027
|
-
"text": "
|
|
1152
|
+
"text": "Display an error message and trigger the invalid state."
|
|
1028
1153
|
},
|
|
1029
1154
|
"getter": false,
|
|
1030
1155
|
"setter": false,
|
|
1031
1156
|
"reflect": false,
|
|
1032
|
-
"attribute": "
|
|
1033
|
-
"defaultValue": "false"
|
|
1157
|
+
"attribute": "error"
|
|
1034
1158
|
},
|
|
1035
|
-
"
|
|
1036
|
-
"type": "
|
|
1159
|
+
"pnId": {
|
|
1160
|
+
"type": "string",
|
|
1037
1161
|
"mutable": false,
|
|
1038
1162
|
"complexType": {
|
|
1039
|
-
"original": "
|
|
1040
|
-
"resolved": "
|
|
1163
|
+
"original": "string",
|
|
1164
|
+
"resolved": "string",
|
|
1041
1165
|
"references": {}
|
|
1042
1166
|
},
|
|
1043
1167
|
"required": false,
|
|
1044
1168
|
"optional": true,
|
|
1045
1169
|
"docs": {
|
|
1046
1170
|
"tags": [{
|
|
1171
|
+
"name": "since",
|
|
1172
|
+
"text": "v7.25.0"
|
|
1173
|
+
}, {
|
|
1047
1174
|
"name": "category",
|
|
1048
|
-
"text": "
|
|
1175
|
+
"text": "HTML attributes"
|
|
1049
1176
|
}],
|
|
1050
|
-
"text": "
|
|
1177
|
+
"text": "Set a custom ID for the select."
|
|
1051
1178
|
},
|
|
1052
1179
|
"getter": false,
|
|
1053
1180
|
"setter": false,
|
|
1054
1181
|
"reflect": false,
|
|
1055
|
-
"attribute": "
|
|
1056
|
-
"defaultValue": "false"
|
|
1182
|
+
"attribute": "pn-id"
|
|
1057
1183
|
},
|
|
1058
|
-
"
|
|
1184
|
+
"pnAriaLabel": {
|
|
1059
1185
|
"type": "string",
|
|
1060
1186
|
"mutable": false,
|
|
1061
1187
|
"complexType": {
|
|
@@ -1067,15 +1193,68 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
1067
1193
|
"optional": true,
|
|
1068
1194
|
"docs": {
|
|
1069
1195
|
"tags": [{
|
|
1196
|
+
"name": "since",
|
|
1197
|
+
"text": "v7.25.0"
|
|
1198
|
+
}, {
|
|
1070
1199
|
"name": "category",
|
|
1071
|
-
"text": "
|
|
1200
|
+
"text": "HTML attributes"
|
|
1072
1201
|
}],
|
|
1073
|
-
"text": "
|
|
1202
|
+
"text": "Provide the label via an aria attribute.\nWe strongly recommend you use the `label` prop instead."
|
|
1074
1203
|
},
|
|
1075
1204
|
"getter": false,
|
|
1076
1205
|
"setter": false,
|
|
1077
1206
|
"reflect": false,
|
|
1078
|
-
"attribute": "
|
|
1207
|
+
"attribute": "pn-aria-label"
|
|
1208
|
+
},
|
|
1209
|
+
"pnAriaLabelledby": {
|
|
1210
|
+
"type": "string",
|
|
1211
|
+
"mutable": false,
|
|
1212
|
+
"complexType": {
|
|
1213
|
+
"original": "string",
|
|
1214
|
+
"resolved": "string",
|
|
1215
|
+
"references": {}
|
|
1216
|
+
},
|
|
1217
|
+
"required": false,
|
|
1218
|
+
"optional": true,
|
|
1219
|
+
"docs": {
|
|
1220
|
+
"tags": [{
|
|
1221
|
+
"name": "since",
|
|
1222
|
+
"text": "v7.25.0"
|
|
1223
|
+
}, {
|
|
1224
|
+
"name": "category",
|
|
1225
|
+
"text": "HTML attributes"
|
|
1226
|
+
}],
|
|
1227
|
+
"text": "Provide the label from another element via its ID.\nWe strongly recommend you use the `label` prop instead."
|
|
1228
|
+
},
|
|
1229
|
+
"getter": false,
|
|
1230
|
+
"setter": false,
|
|
1231
|
+
"reflect": false,
|
|
1232
|
+
"attribute": "pn-aria-labelledby"
|
|
1233
|
+
},
|
|
1234
|
+
"selectId": {
|
|
1235
|
+
"type": "string",
|
|
1236
|
+
"mutable": false,
|
|
1237
|
+
"complexType": {
|
|
1238
|
+
"original": "string",
|
|
1239
|
+
"resolved": "string",
|
|
1240
|
+
"references": {}
|
|
1241
|
+
},
|
|
1242
|
+
"required": false,
|
|
1243
|
+
"optional": true,
|
|
1244
|
+
"docs": {
|
|
1245
|
+
"tags": [{
|
|
1246
|
+
"name": "deprecated",
|
|
1247
|
+
"text": "Use `pn-id` instead."
|
|
1248
|
+
}, {
|
|
1249
|
+
"name": "category",
|
|
1250
|
+
"text": "HTML attributes"
|
|
1251
|
+
}],
|
|
1252
|
+
"text": "Select HTML id"
|
|
1253
|
+
},
|
|
1254
|
+
"getter": false,
|
|
1255
|
+
"setter": false,
|
|
1256
|
+
"reflect": false,
|
|
1257
|
+
"attribute": "select-id"
|
|
1079
1258
|
}
|
|
1080
1259
|
};
|
|
1081
1260
|
}
|
|
@@ -1207,6 +1386,12 @@ export class PnMultiselect extends Mixin(animateHeightFactory) {
|
|
|
1207
1386
|
}, {
|
|
1208
1387
|
"propName": "selectId",
|
|
1209
1388
|
"methodName": "handleSelectId"
|
|
1389
|
+
}, {
|
|
1390
|
+
"propName": "pnId",
|
|
1391
|
+
"methodName": "handleSelectId",
|
|
1392
|
+
"handlerOptions": {
|
|
1393
|
+
"immediate": true
|
|
1394
|
+
}
|
|
1210
1395
|
}];
|
|
1211
1396
|
}
|
|
1212
1397
|
static get listeners() {
|