@postnord/pn-marketweb-components 4.3.6 → 4.3.7
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/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
|
@@ -13,85 +13,52 @@ import { PnLanguages } from "../../../index";
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class PnInput {
|
|
15
15
|
private readonly id;
|
|
16
|
-
private
|
|
16
|
+
private idHelper;
|
|
17
|
+
private idError;
|
|
17
18
|
private prefix;
|
|
18
19
|
private suffix;
|
|
19
20
|
private mo;
|
|
20
21
|
hostElement: HTMLElement;
|
|
21
22
|
offsetLeft: number;
|
|
22
23
|
offsetRight: number;
|
|
23
|
-
showHelperSlot: boolean;
|
|
24
|
-
showErrorSlot: boolean;
|
|
25
24
|
showPassword: boolean;
|
|
26
25
|
togglePassword(): void;
|
|
27
26
|
/** Text label placed above the input field. */
|
|
28
|
-
label
|
|
27
|
+
label?: string;
|
|
29
28
|
/** Text message placed underneath the input field. */
|
|
30
29
|
helpertext?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Provide a unique HTML id to connect the input with the label.
|
|
33
|
-
* A unique uuid ID will be generated if this field is left empty.
|
|
34
|
-
**/
|
|
35
|
-
inputid: string;
|
|
36
|
-
/** Set the value of the input. */
|
|
37
|
-
value: string;
|
|
38
30
|
/**
|
|
39
31
|
* Set the language manually for the translations of show/hide/clear button text.
|
|
40
32
|
* Not needed if you have the pntopbar on the page.
|
|
41
33
|
**/
|
|
42
34
|
language?: PnLanguages;
|
|
43
|
-
/**
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Select an icon to display before the input field value.
|
|
47
|
-
* `icon` takes precedence over the `text-prefix` prop.
|
|
48
|
-
*
|
|
49
|
-
* @see {@link textPrefix}
|
|
50
|
-
* @category Visual
|
|
51
|
-
**/
|
|
52
|
-
icon: string;
|
|
53
|
-
/**
|
|
54
|
-
* Set a small text before the input field value.
|
|
55
|
-
* Cannot be used together with an `icon` at the same time.
|
|
56
|
-
*
|
|
57
|
-
* @see {@link icon}
|
|
58
|
-
* @see {@link textSuffix}
|
|
59
|
-
* @category Visual
|
|
60
|
-
**/
|
|
61
|
-
textPrefix: string;
|
|
62
|
-
/**
|
|
63
|
-
* Set a small text after the input field value.
|
|
64
|
-
* Cannot be used with the `text-prefix` prop at the same time.
|
|
65
|
-
*
|
|
66
|
-
* @see {@link textPrefix}
|
|
67
|
-
* @category Visual
|
|
68
|
-
**/
|
|
69
|
-
textSuffix: string;
|
|
70
|
-
/** pn-input supports: `text`, `password`, `url`, `tel`, `search`, `number` & `email`. @category HTML input */
|
|
35
|
+
/** Set the value of the input. @category Native attributes */
|
|
36
|
+
value: string;
|
|
37
|
+
/** pn-input supports: `text`, `password`, `url`, `tel`, `search`, `number` & `email`. @category Native attributes */
|
|
71
38
|
type?: 'text' | 'password' | 'url' | 'tel' | 'search' | 'number' | 'email' | '';
|
|
72
39
|
/**
|
|
73
40
|
* HTML input name. Setting a name will help the browser understand what type of data the input have
|
|
74
41
|
* and can better assist with autofill data based on previous entires much better.
|
|
75
|
-
*
|
|
76
|
-
* @category HTML input
|
|
42
|
+
* @category Native attributes
|
|
77
43
|
**/
|
|
78
44
|
name?: string;
|
|
79
45
|
/**
|
|
80
46
|
* Provide a placeholder text. Remember that this is no replacement for a label.
|
|
81
47
|
* The placeholder should be a nice addition to the label/helpertext, not important information.
|
|
82
48
|
*
|
|
83
|
-
* @category
|
|
49
|
+
* @category Native attributes
|
|
84
50
|
**/
|
|
85
51
|
placeholder?: string;
|
|
86
52
|
/**
|
|
87
53
|
* Let the browser know what type of autocorrects the input should use.
|
|
88
|
-
* Works much better if a `name` and `
|
|
54
|
+
* Works much better if a `name` and `pn-id` is supplied.
|
|
89
55
|
* @see {@link name}
|
|
90
56
|
* @see {@link inputid}
|
|
91
57
|
*
|
|
92
|
-
* @category
|
|
58
|
+
* @category Native attributes
|
|
59
|
+
*/
|
|
93
60
|
autocomplete?: string;
|
|
94
|
-
/** The maximum number of characters the user should be able to add, also adds a visible counter. @category
|
|
61
|
+
/** The maximum number of characters the user should be able to add, also adds a visible counter. @category Native attributes */
|
|
95
62
|
maxlength: number;
|
|
96
63
|
/**
|
|
97
64
|
* Hint the browser about what type of virtual keyboard should be used.
|
|
@@ -100,35 +67,62 @@ export declare class PnInput {
|
|
|
100
67
|
*
|
|
101
68
|
* Leave empty or with a `''` value if you want the browsers default behaviour (`text`).
|
|
102
69
|
*
|
|
103
|
-
* @category
|
|
70
|
+
* @category Native attributes
|
|
104
71
|
**/
|
|
105
72
|
inputmode?: 'text' | 'none' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
106
|
-
/** Point to a datalist element for this input. @category
|
|
73
|
+
/** Point to a datalist element for this input. @category Native attributes */
|
|
107
74
|
list?: string;
|
|
108
|
-
/** Pattern prop. @category
|
|
75
|
+
/** Pattern prop. @category Native attributes */
|
|
109
76
|
pattern?: string;
|
|
110
|
-
/** Set the `min` value of the `number` input. @category
|
|
77
|
+
/** Set the `min` value of the `number` input. @category Native attributes */
|
|
111
78
|
min?: number | string;
|
|
112
|
-
/** Set the `max` value of the `number` input. @category
|
|
79
|
+
/** Set the `max` value of the `number` input. @category Native attributes */
|
|
113
80
|
max?: number | string;
|
|
114
|
-
/** Set a `step` for the number input. @category
|
|
81
|
+
/** Set a `step` for the number input. @category Native attributes */
|
|
115
82
|
step?: number | string;
|
|
116
|
-
/**
|
|
117
|
-
arialabel?: string;
|
|
118
|
-
/** Set the ID of what this input controls. @category HTML input */
|
|
119
|
-
ariacontrols?: string;
|
|
120
|
-
/** Set the input as `required`. @category State */
|
|
83
|
+
/** Set the input as `required`. @category Native attributes */
|
|
121
84
|
required: boolean;
|
|
122
|
-
/** Set the input as `
|
|
123
|
-
disabled: boolean;
|
|
124
|
-
/** Set the input as `readonly`. @category State */
|
|
85
|
+
/** Set the input as `readonly`. @category Native attributes */
|
|
125
86
|
readonly: boolean;
|
|
126
|
-
/** Set the input as `
|
|
87
|
+
/** Set the input as `disabled`. @category Native attributes */
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Use the compact label variant. The `placeholder` you provide will not be visible if used at the same time.
|
|
91
|
+
* @since v7.21.0
|
|
92
|
+
* @category Features
|
|
93
|
+
*/
|
|
94
|
+
compact?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* Select an icon to display before the input field value.
|
|
97
|
+
* `icon` takes precedence over the `text-prefix` prop.
|
|
98
|
+
*
|
|
99
|
+
* @see {@link textPrefix}
|
|
100
|
+
* @category Features
|
|
101
|
+
**/
|
|
102
|
+
icon: string;
|
|
103
|
+
/**
|
|
104
|
+
* Set a small text before the input field value.
|
|
105
|
+
* Cannot be used together with an `icon` at the same time.
|
|
106
|
+
*
|
|
107
|
+
* @see {@link icon}
|
|
108
|
+
* @see {@link textSuffix}
|
|
109
|
+
* @category Features
|
|
110
|
+
**/
|
|
111
|
+
textPrefix: string;
|
|
112
|
+
/**
|
|
113
|
+
* Set a small text after the input field value.
|
|
114
|
+
* Cannot be used with the `text-prefix` prop at the same time.
|
|
115
|
+
*
|
|
116
|
+
* @see {@link textPrefix}
|
|
117
|
+
* @category Features
|
|
118
|
+
**/
|
|
119
|
+
textSuffix: string;
|
|
120
|
+
/** Set the input as `valid`. Provides a green color and a check icon. @category Features */
|
|
127
121
|
valid?: boolean;
|
|
128
122
|
/**
|
|
129
123
|
* Set the input as `invalid`. Provides a red color and red warning icon.
|
|
130
124
|
* @see{@link error Provide an error message.}
|
|
131
|
-
* @category
|
|
125
|
+
* @category Features
|
|
132
126
|
**/
|
|
133
127
|
invalid: boolean;
|
|
134
128
|
/**
|
|
@@ -136,15 +130,40 @@ export declare class PnInput {
|
|
|
136
130
|
*
|
|
137
131
|
* Error message; will take precedence over helpertext if both are provided.
|
|
138
132
|
* @see{@link invalid Set invalid without an error message.}
|
|
139
|
-
* @category
|
|
133
|
+
* @category Features
|
|
140
134
|
**/
|
|
141
135
|
error?: string;
|
|
136
|
+
/** Set a custom ID for the input (default is a generated UUID). @since v7.25.0 @category HTML attributes */
|
|
137
|
+
pnId?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Provide the label via an aria attribute.
|
|
140
|
+
* We strongly recommend you use the `label` prop instead.
|
|
141
|
+
* @since v7.25.0
|
|
142
|
+
* @category HTML attributes
|
|
143
|
+
*/
|
|
144
|
+
pnAriaLabel?: string;
|
|
145
|
+
/**
|
|
146
|
+
* Provide the label from another element via its ID.
|
|
147
|
+
* We strongly recommend you use the `label` prop instead.
|
|
148
|
+
* @since v7.25.0
|
|
149
|
+
* @category HTML attributes
|
|
150
|
+
*/
|
|
151
|
+
pnAriaLabelledby?: string;
|
|
152
|
+
/** Set the ID of what this input controls. @since v7.25.0 @category HTML attributes */
|
|
153
|
+
pnAriaControls?: string;
|
|
154
|
+
/** Set a custom ID for the input (default is a generated UUID). @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
155
|
+
inputid?: string;
|
|
156
|
+
/** While you can use the `aria-label`, using a `label` is far more accessible. @deprecated Use `pn-aria-label` instead. @category HTML attributes */
|
|
157
|
+
arialabel?: string;
|
|
158
|
+
/** Set the ID of what this input controls. @deprecated Use `pn-aria-controls` instead. @category HTML attributes */
|
|
159
|
+
ariacontrols?: string;
|
|
142
160
|
handleOffset(): void;
|
|
143
|
-
|
|
161
|
+
handleId(): void;
|
|
144
162
|
connectedCallback(): void;
|
|
145
163
|
disconnectedCallback(): void;
|
|
146
164
|
componentWillLoad(): Promise<void>;
|
|
147
165
|
componentDidLoad(): void;
|
|
166
|
+
private getId;
|
|
148
167
|
private setVal;
|
|
149
168
|
private clearVal;
|
|
150
169
|
private translate;
|
|
@@ -152,8 +171,8 @@ export declare class PnInput {
|
|
|
152
171
|
private hasErrorMessage;
|
|
153
172
|
/** If any error is active, either via the prop `invalid` or `error` prop/slot. */
|
|
154
173
|
private hasError;
|
|
155
|
-
|
|
156
|
-
private
|
|
174
|
+
private hideHelpertext;
|
|
175
|
+
private hideError;
|
|
157
176
|
private checkSlottedHelper;
|
|
158
177
|
private checkSlottedError;
|
|
159
178
|
private getInputType;
|
|
@@ -179,6 +198,10 @@ export declare class PnInput {
|
|
|
179
198
|
private useLabel;
|
|
180
199
|
/** Compact label must be positioned after the input element in order to work. */
|
|
181
200
|
private useCompactLabel;
|
|
201
|
+
private displayLabel;
|
|
202
|
+
private getAriaLabel;
|
|
203
|
+
private getAriaLabelledby;
|
|
204
|
+
private getAriaDescribedby;
|
|
182
205
|
private renderLabel;
|
|
183
|
-
render():
|
|
206
|
+
render(): any;
|
|
184
207
|
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import type { PnLanguages, PnMultiselectOption } from "../../../index";
|
|
3
|
+
declare const PnMultiselect_base: abstract new (...args: any[]) => {
|
|
4
|
+
animation: Animation;
|
|
5
|
+
animationDurationDefault: number;
|
|
6
|
+
animationDuration: number;
|
|
7
|
+
isClosing: boolean;
|
|
8
|
+
isExpanding: boolean;
|
|
9
|
+
animateDropdown(element: HTMLElement, open: boolean, startHeight: string, endHeight: string): void;
|
|
10
|
+
openDropdown(element: HTMLElement, heightOverride?: number): void;
|
|
11
|
+
closeDropdown(element: HTMLElement, heightOverride?: number): void;
|
|
12
|
+
animationFinish(element: HTMLElement): void;
|
|
13
|
+
cancelAnimations(): void;
|
|
14
|
+
setAnimationDuration(): void;
|
|
15
|
+
isMoving(): boolean;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The `pn-multiselect` gets its options via javascript.
|
|
19
|
+
*
|
|
20
|
+
* Native HTML does not accept arrays of objects. Most frameworks solves this automatically (Vue, react, etc...),
|
|
21
|
+
* but keep this in mind if you use this component outside of a framework environment.
|
|
22
|
+
*
|
|
23
|
+
* @nativeChange The `pn-multiselect` is built with `input[type=checkbox]` elements, so the `change` event works. However, we recommend the customEvents described above.
|
|
24
|
+
*
|
|
25
|
+
* @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}
|
|
26
|
+
* @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}
|
|
27
|
+
*
|
|
28
|
+
* @see {@link https://portal.postnord.com/web-components/?path=/docs/components-input-multiselect--docs#pn-multiselect%20(options) Options documentation}
|
|
29
|
+
*/
|
|
30
|
+
export declare class PnMultiselect extends PnMultiselect_base {
|
|
31
|
+
private readonly id;
|
|
32
|
+
private idLegend;
|
|
33
|
+
private idButton;
|
|
34
|
+
private idOptions;
|
|
35
|
+
private idHelper;
|
|
36
|
+
private idError;
|
|
37
|
+
private idChips;
|
|
38
|
+
private idSr;
|
|
39
|
+
private elGroup;
|
|
40
|
+
private elButton;
|
|
41
|
+
private elInput;
|
|
42
|
+
private elList;
|
|
43
|
+
private elChips;
|
|
44
|
+
private srTimer;
|
|
45
|
+
hostElement: HTMLElement;
|
|
46
|
+
private isSearching;
|
|
47
|
+
/** Layout state. */
|
|
48
|
+
private open;
|
|
49
|
+
private upwards;
|
|
50
|
+
private srMessage?;
|
|
51
|
+
/** Label placed above the select */
|
|
52
|
+
label?: string;
|
|
53
|
+
/** Display a helper text underneath the select */
|
|
54
|
+
helpertext?: string;
|
|
55
|
+
/** Manually set the language, not needed if you have the pnTopbar available */
|
|
56
|
+
language?: PnLanguages;
|
|
57
|
+
/** HTML name of the checkbox elements. Used for each checkbox inside the multiselect. @category Native attributes */
|
|
58
|
+
name?: string;
|
|
59
|
+
/** HTML name of the input element. @category Native attributes*/
|
|
60
|
+
selectName?: string;
|
|
61
|
+
/**
|
|
62
|
+
* This is what will be shown on load if no value is used.
|
|
63
|
+
* The `placeholder` will override the default text used if you have the `search` prop active.
|
|
64
|
+
* @category Native attributes
|
|
65
|
+
*/
|
|
66
|
+
placeholder?: string;
|
|
67
|
+
/** Set the select as required. @category Native attributes */
|
|
68
|
+
required?: boolean;
|
|
69
|
+
/** Disable the select. @category Native attributes */
|
|
70
|
+
disabled?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The array of `PnMultiselectOption` objects.
|
|
73
|
+
* @see {@link PnMultiselectOption} for the option object properties.
|
|
74
|
+
* @category Features
|
|
75
|
+
**/
|
|
76
|
+
options: PnMultiselectOption[];
|
|
77
|
+
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 @category Features */
|
|
78
|
+
compact?: boolean;
|
|
79
|
+
/** Display an icon to the left of the select input @category Features */
|
|
80
|
+
icon?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Adds a "Select all" option into the list.
|
|
83
|
+
* If you use the search feature at the same time, clicking this option will only toggle the options found.
|
|
84
|
+
* @see {@link search}
|
|
85
|
+
* @category Features
|
|
86
|
+
**/
|
|
87
|
+
selectAll?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Set a custom value for the "Select all value" option.
|
|
90
|
+
* @see {@link selectAll}
|
|
91
|
+
* @category Features
|
|
92
|
+
*/
|
|
93
|
+
allValue?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Allow the user to search among the options.
|
|
96
|
+
* The selected options will now display underneath the multiselect element.
|
|
97
|
+
*
|
|
98
|
+
* @category Features
|
|
99
|
+
**/
|
|
100
|
+
search?: boolean;
|
|
101
|
+
/** Set the search query of the multiselect.
|
|
102
|
+
*
|
|
103
|
+
* @see {@link search}
|
|
104
|
+
* @category Features
|
|
105
|
+
*/
|
|
106
|
+
searchQuery?: string;
|
|
107
|
+
/**
|
|
108
|
+
* Decide how many items should be shown before ellipsis. Requires the `search` prop to work.
|
|
109
|
+
*
|
|
110
|
+
* @see {@link search}
|
|
111
|
+
* @category Features
|
|
112
|
+
**/
|
|
113
|
+
itemCount?: number;
|
|
114
|
+
/**
|
|
115
|
+
* The component will automatically set the max height of the dropdown list on its own.
|
|
116
|
+
* It takes the `pn-topbar` into account and will open in the direction that fits best.
|
|
117
|
+
* Use this prop to override this behaviour and use a custom max-height.
|
|
118
|
+
* @category Features
|
|
119
|
+
**/
|
|
120
|
+
maxHeight?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Force the dropdown to always open upwards.
|
|
123
|
+
* @category Features
|
|
124
|
+
**/
|
|
125
|
+
top?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Force the dropdown to always open downwards.
|
|
128
|
+
* @category Features
|
|
129
|
+
**/
|
|
130
|
+
bottom?: boolean;
|
|
131
|
+
/** Trigger the invalid state. @category Features */
|
|
132
|
+
invalid?: boolean;
|
|
133
|
+
/** Display an error message and trigger the invalid state. @category Features */
|
|
134
|
+
error?: string;
|
|
135
|
+
/** Set a custom ID for the select. @since v7.25.0 @category HTML attributes */
|
|
136
|
+
pnId?: string;
|
|
137
|
+
/**
|
|
138
|
+
* Provide the label via an aria attribute.
|
|
139
|
+
* We strongly recommend you use the `label` prop instead.
|
|
140
|
+
* @since v7.25.0
|
|
141
|
+
* @category HTML attributes
|
|
142
|
+
*/
|
|
143
|
+
pnAriaLabel?: string;
|
|
144
|
+
/**
|
|
145
|
+
* Provide the label from another element via its ID.
|
|
146
|
+
* We strongly recommend you use the `label` prop instead.
|
|
147
|
+
* @since v7.25.0
|
|
148
|
+
* @category HTML attributes
|
|
149
|
+
*/
|
|
150
|
+
pnAriaLabelledby?: string;
|
|
151
|
+
/** Select HTML id @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
152
|
+
selectId?: string;
|
|
153
|
+
handleOpen(): void;
|
|
154
|
+
handleSearch(): void;
|
|
155
|
+
handleSearchQuery(): void;
|
|
156
|
+
handleSelectId(): void;
|
|
157
|
+
/**
|
|
158
|
+
* If the select is open and you resize the window.
|
|
159
|
+
* Remove all css props and disable the animations entierly.
|
|
160
|
+
**/
|
|
161
|
+
handleResize(): void;
|
|
162
|
+
/** Dispatched everytime the multiselect is opened or closed. */
|
|
163
|
+
toggleSelect: EventEmitter<{
|
|
164
|
+
open: boolean;
|
|
165
|
+
}>;
|
|
166
|
+
/** This event contains the entire options array with the new props. Dispatched everytime you make changes to any option. */
|
|
167
|
+
allOptions: EventEmitter<PnMultiselectOption[]>;
|
|
168
|
+
/** Dispatched when you toggle an option. Includes all the props of the option. */
|
|
169
|
+
selectedOption: EventEmitter<PnMultiselectOption>;
|
|
170
|
+
/**
|
|
171
|
+
* This event is dispatched when the user toggles the "Choose all options" box.
|
|
172
|
+
* Also triggers when you click the "Select {number} options" if you are performing a search at the same time.
|
|
173
|
+
**/
|
|
174
|
+
selectedAllOptions: EventEmitter<{
|
|
175
|
+
checked: boolean;
|
|
176
|
+
searching: boolean;
|
|
177
|
+
query?: string;
|
|
178
|
+
found?: PnMultiselectOption[];
|
|
179
|
+
}>;
|
|
180
|
+
/**
|
|
181
|
+
* Contains the search text and the options found for that query.
|
|
182
|
+
* Dispacthed everytime you change the search query.
|
|
183
|
+
**/
|
|
184
|
+
searchInput: EventEmitter<{
|
|
185
|
+
query: string;
|
|
186
|
+
found?: PnMultiselectOption[];
|
|
187
|
+
}>;
|
|
188
|
+
componentWillLoad(): Promise<void>;
|
|
189
|
+
componentDidLoad(): void;
|
|
190
|
+
private getId;
|
|
191
|
+
private hasHelperText;
|
|
192
|
+
/** If any `error` text is present, either via prop/slot. */
|
|
193
|
+
private hasErrorMessage;
|
|
194
|
+
/** If any `error` is active, either via the prop `invalid` or `error` prop/slot. */
|
|
195
|
+
private hasError;
|
|
196
|
+
private checkSlottedHelper;
|
|
197
|
+
private checkSlottedError;
|
|
198
|
+
private hideHelpertext;
|
|
199
|
+
private hideError;
|
|
200
|
+
private globalEvents;
|
|
201
|
+
private addGlobalEventListeners;
|
|
202
|
+
private removeGlobalEventListeners;
|
|
203
|
+
private dropdownHandler;
|
|
204
|
+
private emitEvents;
|
|
205
|
+
private optionsChecked;
|
|
206
|
+
private optionsTotal;
|
|
207
|
+
private optionsIndex;
|
|
208
|
+
private optionsCheckedTotal;
|
|
209
|
+
private optionsCheckedPreview;
|
|
210
|
+
private optionsCheckedLabels;
|
|
211
|
+
private optionsSearch;
|
|
212
|
+
private noResults;
|
|
213
|
+
private isIndeterminate;
|
|
214
|
+
private optionSelect;
|
|
215
|
+
private optionSelectAll;
|
|
216
|
+
private optionSelected;
|
|
217
|
+
private translate;
|
|
218
|
+
private getRect;
|
|
219
|
+
private ripple;
|
|
220
|
+
private handleSrMesssage;
|
|
221
|
+
private handleDirection;
|
|
222
|
+
private handleMaxHeight;
|
|
223
|
+
private handleOffset;
|
|
224
|
+
private setFocus;
|
|
225
|
+
private toggleOpen;
|
|
226
|
+
private handleInputKeyboard;
|
|
227
|
+
private setSearchQuery;
|
|
228
|
+
private handleInputSearch;
|
|
229
|
+
private getListItem;
|
|
230
|
+
private getOptionIndex;
|
|
231
|
+
private checkboxNav;
|
|
232
|
+
private handleBlur;
|
|
233
|
+
private handleLabel;
|
|
234
|
+
/** Check if there are no options in the list. */
|
|
235
|
+
private isEmpty;
|
|
236
|
+
private showSelectAll;
|
|
237
|
+
/** Check if the empty/nothing found should be visible. */
|
|
238
|
+
private showEmptyOption;
|
|
239
|
+
private getPlaceholder;
|
|
240
|
+
private handleChange;
|
|
241
|
+
/** Display the "X more selected options" text. */
|
|
242
|
+
private additonalOptions;
|
|
243
|
+
private displayLabel;
|
|
244
|
+
private getAriaLabel;
|
|
245
|
+
/**
|
|
246
|
+
* If you use a label (technically a legend), use the `idLegend` to point to it.
|
|
247
|
+
* If not, make sure there is no pnAriaLabel and use pnAriaLabelledby.
|
|
248
|
+
* This is to make sure there are no double label/labelledby.
|
|
249
|
+
*/
|
|
250
|
+
private getAriaLabelledby;
|
|
251
|
+
private describedBy;
|
|
252
|
+
/**
|
|
253
|
+
* This is to prevent a rare issue with rendering flag icons.
|
|
254
|
+
* Flags use a set ID to identify gradient colors. If the icon is rendered while the dropdown is closed,
|
|
255
|
+
* the ID is not unique and the icon will not be rendered for other pn-icons using it.
|
|
256
|
+
* This is a temp fix to address the root issue which is how the flags SVG styling is built.
|
|
257
|
+
*/
|
|
258
|
+
private renderItemIcon;
|
|
259
|
+
private renderOption;
|
|
260
|
+
private renderOptions;
|
|
261
|
+
private renderChips;
|
|
262
|
+
private renderLabel;
|
|
263
|
+
render(): any;
|
|
264
|
+
}
|
|
265
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
declare const PnRadioButton_base: abstract new (...args: any[]) => {
|
|
3
|
+
animation: Animation;
|
|
4
|
+
animationDurationDefault: number;
|
|
5
|
+
animationDuration: number;
|
|
6
|
+
isClosing: boolean;
|
|
7
|
+
isExpanding: boolean;
|
|
8
|
+
animateDropdown(element: HTMLElement, open: boolean, startHeight: string, endHeight: string): void;
|
|
9
|
+
openDropdown(element: HTMLElement, heightOverride?: number): void;
|
|
10
|
+
closeDropdown(element: HTMLElement, heightOverride?: number): void;
|
|
11
|
+
animationFinish(element: HTMLElement): void;
|
|
12
|
+
cancelAnimations(): void;
|
|
13
|
+
setAnimationDuration(): void;
|
|
14
|
+
isMoving(): boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The `pn-radio-button` is built with a native `input[type="radio"]` in the background.
|
|
18
|
+
* This means you can use native events to listen to the changes.
|
|
19
|
+
*
|
|
20
|
+
* @nativeChange Use the `change` event to listen when the radio state is being changed.
|
|
21
|
+
*
|
|
22
|
+
* @slot - The default slot for adding custom HTML under the label/helpertext. {@since v7.17.0}
|
|
23
|
+
* @slot helpertext - Use this slot to add custom HTML inside of the helpertext element.
|
|
24
|
+
* Only recommended if you need a link without the `tile` prop. {@since v7.17.0}
|
|
25
|
+
* @slot content - When using the `tile` and `expand` props, this slot will be revealed when the input is checked. {@since v7.17.0}
|
|
26
|
+
*/
|
|
27
|
+
export declare class PnRadioButton extends PnRadioButton_base {
|
|
28
|
+
private readonly id;
|
|
29
|
+
private idHelpertext;
|
|
30
|
+
private contentArea;
|
|
31
|
+
private radioInput;
|
|
32
|
+
hostElement: HTMLElement;
|
|
33
|
+
/** The radio label */
|
|
34
|
+
label?: string;
|
|
35
|
+
/** This adds an optional helpertext under the label. */
|
|
36
|
+
helpertext?: string;
|
|
37
|
+
/** This will be emitted on change and input events. @category Native attributes */
|
|
38
|
+
value: string;
|
|
39
|
+
/** The name of the radio group. @category Native attributes */
|
|
40
|
+
name?: string;
|
|
41
|
+
/** Programmatically check the input. @category Native attributes */
|
|
42
|
+
checked?: boolean;
|
|
43
|
+
/** Set the radio as required. @category Native attributes */
|
|
44
|
+
required?: boolean;
|
|
45
|
+
/** Disable the radio. @category Native attributes */
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Turn the radio into a clickable tile. A border and padding is added.
|
|
49
|
+
*
|
|
50
|
+
* **Do not** use interactive elements (links/buttons) inside of the slots when using this prop.
|
|
51
|
+
* An exception is made when using the `tile` + `expand` props together,
|
|
52
|
+
* which allows you to use interactive elements.
|
|
53
|
+
*
|
|
54
|
+
* @category Features
|
|
55
|
+
*/
|
|
56
|
+
tile?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Allow the radio to control the slot area "content".
|
|
59
|
+
* When checked, the area is visible, when unchecked, the area is hidden.
|
|
60
|
+
*
|
|
61
|
+
* The prop `tile` must be used at the same time.
|
|
62
|
+
* @see {@link tile}
|
|
63
|
+
* @since v7.17.0
|
|
64
|
+
* @category Features
|
|
65
|
+
*/
|
|
66
|
+
expand?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Add an icon on the right of your radio tile. The `tile` prop must be `true` for the icon to work.
|
|
69
|
+
* @see {@link tile}
|
|
70
|
+
* @category Features
|
|
71
|
+
*/
|
|
72
|
+
icon?: string;
|
|
73
|
+
/**
|
|
74
|
+
* If set to true, color scheme will turn red, indicating that there is an issue or incorrect input related the radio.
|
|
75
|
+
* @category Features
|
|
76
|
+
*/
|
|
77
|
+
invalid?: boolean;
|
|
78
|
+
/** A unique HTML ID for the radio. @since v7.25.0 @category HTML attributes */
|
|
79
|
+
pnId?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Provide the label via an aria attribute.
|
|
82
|
+
* We strongly recommend you use the `label` prop instead.
|
|
83
|
+
* @since v7.25.0
|
|
84
|
+
* @category HTML attributes
|
|
85
|
+
*/
|
|
86
|
+
pnAriaLabel?: string;
|
|
87
|
+
/**
|
|
88
|
+
* Provide the label from another element via its ID.
|
|
89
|
+
* We strongly recommend you use the `label` prop instead.
|
|
90
|
+
* @since v7.25.0
|
|
91
|
+
* @category HTML attributes
|
|
92
|
+
*/
|
|
93
|
+
pnAriaLabelledby?: string;
|
|
94
|
+
/**
|
|
95
|
+
* A unique HTML ID for the radio.
|
|
96
|
+
* @deprecated Use `pn-id` instead.
|
|
97
|
+
* @category HTML attributes
|
|
98
|
+
*/
|
|
99
|
+
radioid?: string;
|
|
100
|
+
handleId(): void;
|
|
101
|
+
handleChecked(checked?: boolean): void;
|
|
102
|
+
handleChange(e: Event): void;
|
|
103
|
+
/**
|
|
104
|
+
* This is the same as the native `change` event, but without bubbling.
|
|
105
|
+
* This is useful when you want to listen to the event directly on the `pn-radio-button` element without
|
|
106
|
+
* having to worry about catching events from nested pn-radio-buttons.
|
|
107
|
+
*
|
|
108
|
+
* @since v7.25.0
|
|
109
|
+
**/
|
|
110
|
+
pnRadioChange: EventEmitter<Event>;
|
|
111
|
+
componentDidLoad(): void;
|
|
112
|
+
private getId;
|
|
113
|
+
private uncheckOtherRadios;
|
|
114
|
+
private isInvalid;
|
|
115
|
+
private displayText;
|
|
116
|
+
private displayLabel;
|
|
117
|
+
private displayHelpertext;
|
|
118
|
+
private displayIcon;
|
|
119
|
+
private displayContent;
|
|
120
|
+
private getAriaLabel;
|
|
121
|
+
private getAriaLabelledby;
|
|
122
|
+
render(): any;
|
|
123
|
+
}
|
|
124
|
+
export {};
|