@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
package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js
CHANGED
|
@@ -9,6 +9,8 @@ import { translations } from "./translations";
|
|
|
9
9
|
/**
|
|
10
10
|
* The `pn-counter` is an input with a button on each side that can be used to increase and decrease the input value.
|
|
11
11
|
*
|
|
12
|
+
* @slot helpertext - Use this slot to add custom HTML inside of the helpertext element. Recommended if you need a link. {@since v7.25.0}
|
|
13
|
+
*
|
|
12
14
|
* @nativeInput Use the `input` event to listen to content being modified by the user. It is emitted everytime a user writes or removes content in the input.
|
|
13
15
|
* @nativeChange The `change` event is emitted when the input loses focus, the user clicks `Enter` or makes a selection (such as auto complete or suggestions).
|
|
14
16
|
*/
|
|
@@ -24,42 +26,60 @@ export class PnCounter {
|
|
|
24
26
|
/** Prevent double events when reaching min/max values. */
|
|
25
27
|
lastDispatchedValue;
|
|
26
28
|
interactType;
|
|
27
|
-
/** Label for the counter */
|
|
29
|
+
/** Label for the counter. This is required for the counter to be 100% accessible out of the box. */
|
|
28
30
|
label;
|
|
29
31
|
/** Set a helpertext for the counter. */
|
|
30
32
|
helpertext;
|
|
31
|
-
/** Set
|
|
33
|
+
/** Set the language manually for the built in translations. */
|
|
34
|
+
language = undefined;
|
|
35
|
+
/** Set a predefined value. @category Native attributes */
|
|
32
36
|
value = 0;
|
|
33
|
-
/**
|
|
34
|
-
counterid = this.id;
|
|
35
|
-
/** Use the compact label variant. @since v7.21.0 */
|
|
36
|
-
compact = false;
|
|
37
|
-
/** Set the language manually for the built in translations. */
|
|
38
|
-
language = null;
|
|
39
|
-
/** Text for the decrease button. Default is "Decrease". @category Translation */
|
|
40
|
-
labelDecrease;
|
|
41
|
-
/** Text for the increase button. Default is "Increase". @category Translation */
|
|
42
|
-
labelIncrease;
|
|
43
|
-
/** Set a message that shows below input when user wants to set a value that is below `min`. Default is "Minimum value is x" @category Translation */
|
|
44
|
-
minMessage;
|
|
45
|
-
/** Set a message that shows below input when user wants to set a value that is above `max`. Default is "Maximum value is x" @category Translation */
|
|
46
|
-
maxMessage;
|
|
47
|
-
/** HTML input name. @category HTML input */
|
|
37
|
+
/** HTML input name. @category Native attributes */
|
|
48
38
|
name;
|
|
49
|
-
/** Minimum value. @category
|
|
39
|
+
/** Minimum value. @category Native attributes */
|
|
50
40
|
min;
|
|
51
|
-
/** Maximum value. @category
|
|
41
|
+
/** Maximum value. @category Native attributes */
|
|
52
42
|
max;
|
|
53
|
-
/** Increase/decrease the value in steps, default is 1. @category
|
|
43
|
+
/** Increase/decrease the value in steps, default is 1. @category Native attributes */
|
|
54
44
|
step = 1;
|
|
55
|
-
/** Suggest values for the counter input. @category
|
|
45
|
+
/** Suggest values for the counter input. @category Native attributes */
|
|
56
46
|
list;
|
|
57
|
-
/** Set the counter as required. @category
|
|
47
|
+
/** Set the counter as required. @category Native attributes */
|
|
58
48
|
required = false;
|
|
59
|
-
/** Set the counter as readonly. @category
|
|
49
|
+
/** Set the counter as readonly. @category Native attributes */
|
|
60
50
|
readonly = false;
|
|
61
|
-
/** Set the counter as disabled. @category
|
|
51
|
+
/** Set the counter as disabled. @category Native attributes */
|
|
62
52
|
disabled = false;
|
|
53
|
+
/** Use the compact label variant. @since v7.21.0 @category Features */
|
|
54
|
+
compact = false;
|
|
55
|
+
/** Text for the decrease button. Default is "Decrease". @category Features */
|
|
56
|
+
labelDecrease;
|
|
57
|
+
/** Text for the increase button. Default is "Increase". @category Features */
|
|
58
|
+
labelIncrease;
|
|
59
|
+
/** Hide the tooltips for the increase/decrease button. @since v7.25.0 @category Features */
|
|
60
|
+
hideTooltips = false;
|
|
61
|
+
/** Set a message that shows below input when user wants to set a value that is below `min`. Default is "Minimum value is x" @category Features */
|
|
62
|
+
minMessage;
|
|
63
|
+
/** Set a message that shows below input when user wants to set a value that is above `max`. Default is "Maximum value is x" @category Features */
|
|
64
|
+
maxMessage;
|
|
65
|
+
/** Set a unique HTML ID for the counter. @since v7.25.0 @category HTML attributes */
|
|
66
|
+
pnId;
|
|
67
|
+
/**
|
|
68
|
+
* Provide the label via an aria attribute.
|
|
69
|
+
* We strongly recommend you use the `label` prop instead.
|
|
70
|
+
* @since v7.25.0
|
|
71
|
+
* @category HTML attributes
|
|
72
|
+
*/
|
|
73
|
+
pnAriaLabel;
|
|
74
|
+
/**
|
|
75
|
+
* Provide the label from another element via its ID.
|
|
76
|
+
* We strongly recommend you use the `label` prop instead.
|
|
77
|
+
* @since v7.25.0
|
|
78
|
+
* @category HTML attributes
|
|
79
|
+
*/
|
|
80
|
+
pnAriaLabelledby;
|
|
81
|
+
/** Set a unique HTML ID for the counter. @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
82
|
+
counterid;
|
|
63
83
|
/**
|
|
64
84
|
* Instead of listening to multiple input, change and/or click events, we bundled them into one.
|
|
65
85
|
* - `value` is the current counter value.
|
|
@@ -89,15 +109,16 @@ export class PnCounter {
|
|
|
89
109
|
this.lastDispatchedValue = this.value;
|
|
90
110
|
}
|
|
91
111
|
handleId() {
|
|
92
|
-
this.idLabel = `${this.
|
|
93
|
-
this.idText = `${this.
|
|
94
|
-
this.idAmount = `${this.
|
|
112
|
+
this.idLabel = `${this.getId()}-label`;
|
|
113
|
+
this.idText = `${this.getId()}-text`;
|
|
114
|
+
this.idAmount = `${this.getId()}-count`;
|
|
95
115
|
}
|
|
96
116
|
async componentWillLoad() {
|
|
97
|
-
this.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
117
|
+
if (this.language === undefined)
|
|
118
|
+
await awaitTopbar(this.hostElement);
|
|
119
|
+
}
|
|
120
|
+
getId() {
|
|
121
|
+
return this.pnId || this.counterid || this.id;
|
|
101
122
|
}
|
|
102
123
|
setVal(event) {
|
|
103
124
|
const { valueAsNumber } = event.target;
|
|
@@ -120,6 +141,12 @@ export class PnCounter {
|
|
|
120
141
|
hasMax() {
|
|
121
142
|
return typeof this.max === 'number';
|
|
122
143
|
}
|
|
144
|
+
getAriaLabel() {
|
|
145
|
+
return !this.label && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
|
|
146
|
+
}
|
|
147
|
+
getAriaLabelledby() {
|
|
148
|
+
return !this.label && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
|
|
149
|
+
}
|
|
123
150
|
decreaseAmount() {
|
|
124
151
|
if (this.hasMin() && this.value <= this.min)
|
|
125
152
|
this.showMinMaxMessage = true;
|
|
@@ -163,9 +190,13 @@ export class PnCounter {
|
|
|
163
190
|
return this.toggleMinMaxMessage();
|
|
164
191
|
return showValue ? this.value.toString() : this.helpertext;
|
|
165
192
|
}
|
|
193
|
+
hideHelpertext() {
|
|
194
|
+
const slotHelpertext = this.hostElement.querySelector('[slot="helpertext"]');
|
|
195
|
+
return !(this.getTextMessage() || !!slotHelpertext?.textContent);
|
|
196
|
+
}
|
|
166
197
|
describedbyIds() {
|
|
167
198
|
const list = [];
|
|
168
|
-
if (this.
|
|
199
|
+
if (!this.hideHelpertext())
|
|
169
200
|
list.push(this.idText);
|
|
170
201
|
if (this.displaySrValue)
|
|
171
202
|
list.push(this.idAmount);
|
|
@@ -180,16 +211,18 @@ export class PnCounter {
|
|
|
180
211
|
return this.disabled || this.readonly;
|
|
181
212
|
}
|
|
182
213
|
renderLabel() {
|
|
183
|
-
|
|
214
|
+
if (!this.label)
|
|
215
|
+
return null;
|
|
216
|
+
return (h("label", { htmlFor: this.getId(), class: "pn-counter-label", id: this.idLabel, "data-compact": this.compact }, h("span", null, this.label)));
|
|
184
217
|
}
|
|
185
218
|
renderButton(increase = false) {
|
|
186
219
|
const label = increase
|
|
187
220
|
? this.labelIncrease || this.translate('INCREASE')
|
|
188
221
|
: this.labelDecrease || this.translate('DECREASE');
|
|
189
|
-
return (h("pn-button", { "data-increase": increase ? true : null, "data-decrease": increase ? null : true, appearance: "light", variant: "outlined", "no-tab": this.noButtons(), icon: increase ? plus : minus, iconOnly: true, tooltip: label, onPnClick: () => (increase ? this.increaseAmount() : this.decreaseAmount()) }));
|
|
222
|
+
return (h("pn-button", { "data-increase": increase ? true : null, "data-decrease": increase ? null : true, appearance: "light", variant: "outlined", "no-tab": this.noButtons(), icon: increase ? plus : minus, iconOnly: true, tooltip: this.hideTooltips ? null : label, arialabel: this.hideTooltips ? label : null, onPnClick: () => (increase ? this.increaseAmount() : this.decreaseAmount()) }));
|
|
190
223
|
}
|
|
191
224
|
render() {
|
|
192
|
-
return (h(Host, { key: '
|
|
225
|
+
return (h(Host, { key: 'f1ff6cf51a77b28c5375f80c686106f82026eda8' }, h("div", { key: 'a6080106e0bf5ca0246e5a47a114c5ba967be4ef', class: "pn-counter", role: "group", "aria-labelledby": this.idLabel, "aria-describedby": this.describedbyIds() }, !this.compact && this.renderLabel(), h("div", { key: 'ef3c419277ca2f2a2f8fe8cefad5633c893b4736', class: "pn-counter-items", "data-hidebuttons": this.noButtons() }, this.renderButton(), h("div", { key: 'c130e8c0d812eaad1cf794e9417ab62d3c12e1a7', class: "pn-counter-input" }, h("input", { key: '908746fc89d2d70fb6f26f0f13bbe99961d66222', id: this.getId(), class: "pn-counter-element", type: "number", min: this.min, max: this.max, step: this.step, value: this.value, name: this.name, placeholder: this.compact ? ' ' : null, required: this.required, readonly: this.readonly, disabled: this.disabled, "aria-label": this.getAriaLabel(), "aria-labelledby": this.getAriaLabelledby(), "aria-describedby": this.describedbyIds(), "data-compact": this.compact, onInput: e => this.setVal(e), onKeyDown: (e) => this.keyBoardInput(e) }), this.compact && this.renderLabel()), this.renderButton(true)), h("p", { key: 'a25cd6e9abdb9fe8077e345cef828e187a11d260', id: this.idText, class: "pn-counter-helpertext", hidden: this.hideHelpertext() }, h("span", { key: '533d9836452f3b21a176eb594c225ad44c21956e' }, this.getTextMessage()), h("slot", { key: '35f10d13c8a1c65e6fc7b1a75b864e1cfd268837', name: "helpertext" })), h("p", { key: '1009ba0ea75131d6c19e3fb8960c39fc9d565d16', id: this.idAmount, class: "pn-counter-sr-only", "aria-live": "assertive" }, this.displaySrValue ? this.getTextMessage(true) : ''))));
|
|
193
226
|
}
|
|
194
227
|
static get is() { return "pn-counter"; }
|
|
195
228
|
static get originalStyleUrls() {
|
|
@@ -212,11 +245,11 @@ export class PnCounter {
|
|
|
212
245
|
"resolved": "string",
|
|
213
246
|
"references": {}
|
|
214
247
|
},
|
|
215
|
-
"required":
|
|
216
|
-
"optional":
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": true,
|
|
217
250
|
"docs": {
|
|
218
251
|
"tags": [],
|
|
219
|
-
"text": "Label for the counter"
|
|
252
|
+
"text": "Label for the counter. This is required for the counter to be 100% accessible out of the box."
|
|
220
253
|
},
|
|
221
254
|
"getter": false,
|
|
222
255
|
"setter": false,
|
|
@@ -242,6 +275,33 @@ export class PnCounter {
|
|
|
242
275
|
"reflect": false,
|
|
243
276
|
"attribute": "helpertext"
|
|
244
277
|
},
|
|
278
|
+
"language": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"mutable": false,
|
|
281
|
+
"complexType": {
|
|
282
|
+
"original": "PnLanguages",
|
|
283
|
+
"resolved": "\"\" | \"da\" | \"en\" | \"fi\" | \"no\" | \"sv\"",
|
|
284
|
+
"references": {
|
|
285
|
+
"PnLanguages": {
|
|
286
|
+
"location": "import",
|
|
287
|
+
"path": "@/globals/types",
|
|
288
|
+
"id": "src/globals/types.ts::PnLanguages",
|
|
289
|
+
"referenceLocation": "PnLanguages"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"required": false,
|
|
294
|
+
"optional": true,
|
|
295
|
+
"docs": {
|
|
296
|
+
"tags": [],
|
|
297
|
+
"text": "Set the language manually for the built in translations."
|
|
298
|
+
},
|
|
299
|
+
"getter": false,
|
|
300
|
+
"setter": false,
|
|
301
|
+
"reflect": false,
|
|
302
|
+
"attribute": "language",
|
|
303
|
+
"defaultValue": "undefined"
|
|
304
|
+
},
|
|
245
305
|
"value": {
|
|
246
306
|
"type": "number",
|
|
247
307
|
"mutable": true,
|
|
@@ -253,8 +313,11 @@ export class PnCounter {
|
|
|
253
313
|
"required": false,
|
|
254
314
|
"optional": false,
|
|
255
315
|
"docs": {
|
|
256
|
-
"tags": [
|
|
257
|
-
|
|
316
|
+
"tags": [{
|
|
317
|
+
"name": "category",
|
|
318
|
+
"text": "Native attributes"
|
|
319
|
+
}],
|
|
320
|
+
"text": "Set a predefined value."
|
|
258
321
|
},
|
|
259
322
|
"getter": false,
|
|
260
323
|
"setter": false,
|
|
@@ -262,7 +325,7 @@ export class PnCounter {
|
|
|
262
325
|
"attribute": "value",
|
|
263
326
|
"defaultValue": "0"
|
|
264
327
|
},
|
|
265
|
-
"
|
|
328
|
+
"name": {
|
|
266
329
|
"type": "string",
|
|
267
330
|
"mutable": false,
|
|
268
331
|
"complexType": {
|
|
@@ -271,90 +334,87 @@ export class PnCounter {
|
|
|
271
334
|
"references": {}
|
|
272
335
|
},
|
|
273
336
|
"required": false,
|
|
274
|
-
"optional":
|
|
337
|
+
"optional": true,
|
|
275
338
|
"docs": {
|
|
276
|
-
"tags": [
|
|
277
|
-
|
|
339
|
+
"tags": [{
|
|
340
|
+
"name": "category",
|
|
341
|
+
"text": "Native attributes"
|
|
342
|
+
}],
|
|
343
|
+
"text": "HTML input name."
|
|
278
344
|
},
|
|
279
345
|
"getter": false,
|
|
280
346
|
"setter": false,
|
|
281
347
|
"reflect": false,
|
|
282
|
-
"attribute": "
|
|
283
|
-
"defaultValue": "this.id"
|
|
348
|
+
"attribute": "name"
|
|
284
349
|
},
|
|
285
|
-
"
|
|
286
|
-
"type": "
|
|
350
|
+
"min": {
|
|
351
|
+
"type": "number",
|
|
287
352
|
"mutable": false,
|
|
288
353
|
"complexType": {
|
|
289
|
-
"original": "
|
|
290
|
-
"resolved": "
|
|
354
|
+
"original": "number",
|
|
355
|
+
"resolved": "number",
|
|
291
356
|
"references": {}
|
|
292
357
|
},
|
|
293
358
|
"required": false,
|
|
294
359
|
"optional": true,
|
|
295
360
|
"docs": {
|
|
296
361
|
"tags": [{
|
|
297
|
-
"name": "
|
|
298
|
-
"text": "
|
|
362
|
+
"name": "category",
|
|
363
|
+
"text": "Native attributes"
|
|
299
364
|
}],
|
|
300
|
-
"text": "
|
|
365
|
+
"text": "Minimum value."
|
|
301
366
|
},
|
|
302
367
|
"getter": false,
|
|
303
368
|
"setter": false,
|
|
304
369
|
"reflect": false,
|
|
305
|
-
"attribute": "
|
|
306
|
-
"defaultValue": "false"
|
|
370
|
+
"attribute": "min"
|
|
307
371
|
},
|
|
308
|
-
"
|
|
309
|
-
"type": "
|
|
372
|
+
"max": {
|
|
373
|
+
"type": "number",
|
|
310
374
|
"mutable": false,
|
|
311
375
|
"complexType": {
|
|
312
|
-
"original": "
|
|
313
|
-
"resolved": "
|
|
314
|
-
"references": {
|
|
315
|
-
"PnLanguages": {
|
|
316
|
-
"location": "import",
|
|
317
|
-
"path": "@/globals/types",
|
|
318
|
-
"id": "src/globals/types.ts::PnLanguages",
|
|
319
|
-
"referenceLocation": "PnLanguages"
|
|
320
|
-
}
|
|
321
|
-
}
|
|
376
|
+
"original": "number",
|
|
377
|
+
"resolved": "number",
|
|
378
|
+
"references": {}
|
|
322
379
|
},
|
|
323
380
|
"required": false,
|
|
324
381
|
"optional": true,
|
|
325
382
|
"docs": {
|
|
326
|
-
"tags": [
|
|
327
|
-
|
|
383
|
+
"tags": [{
|
|
384
|
+
"name": "category",
|
|
385
|
+
"text": "Native attributes"
|
|
386
|
+
}],
|
|
387
|
+
"text": "Maximum value."
|
|
328
388
|
},
|
|
329
389
|
"getter": false,
|
|
330
390
|
"setter": false,
|
|
331
391
|
"reflect": false,
|
|
332
|
-
"attribute": "
|
|
333
|
-
"defaultValue": "null"
|
|
392
|
+
"attribute": "max"
|
|
334
393
|
},
|
|
335
|
-
"
|
|
336
|
-
"type": "
|
|
394
|
+
"step": {
|
|
395
|
+
"type": "number",
|
|
337
396
|
"mutable": false,
|
|
338
397
|
"complexType": {
|
|
339
|
-
"original": "
|
|
340
|
-
"resolved": "
|
|
398
|
+
"original": "number",
|
|
399
|
+
"resolved": "number",
|
|
341
400
|
"references": {}
|
|
342
401
|
},
|
|
343
402
|
"required": false,
|
|
344
|
-
"optional":
|
|
403
|
+
"optional": false,
|
|
345
404
|
"docs": {
|
|
346
405
|
"tags": [{
|
|
347
406
|
"name": "category",
|
|
348
|
-
"text": "
|
|
407
|
+
"text": "Native attributes"
|
|
349
408
|
}],
|
|
350
|
-
"text": "
|
|
409
|
+
"text": "Increase/decrease the value in steps, default is 1."
|
|
351
410
|
},
|
|
352
411
|
"getter": false,
|
|
353
412
|
"setter": false,
|
|
354
413
|
"reflect": false,
|
|
355
|
-
"attribute": "
|
|
414
|
+
"attribute": "step",
|
|
415
|
+
"defaultValue": "1"
|
|
356
416
|
},
|
|
357
|
-
"
|
|
417
|
+
"list": {
|
|
358
418
|
"type": "string",
|
|
359
419
|
"mutable": false,
|
|
360
420
|
"complexType": {
|
|
@@ -367,38 +427,111 @@ export class PnCounter {
|
|
|
367
427
|
"docs": {
|
|
368
428
|
"tags": [{
|
|
369
429
|
"name": "category",
|
|
370
|
-
"text": "
|
|
430
|
+
"text": "Native attributes"
|
|
371
431
|
}],
|
|
372
|
-
"text": "
|
|
432
|
+
"text": "Suggest values for the counter input."
|
|
373
433
|
},
|
|
374
434
|
"getter": false,
|
|
375
435
|
"setter": false,
|
|
376
436
|
"reflect": false,
|
|
377
|
-
"attribute": "
|
|
437
|
+
"attribute": "list"
|
|
378
438
|
},
|
|
379
|
-
"
|
|
380
|
-
"type": "
|
|
439
|
+
"required": {
|
|
440
|
+
"type": "boolean",
|
|
381
441
|
"mutable": false,
|
|
382
442
|
"complexType": {
|
|
383
|
-
"original": "
|
|
384
|
-
"resolved": "
|
|
443
|
+
"original": "boolean",
|
|
444
|
+
"resolved": "boolean",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": false,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [{
|
|
451
|
+
"name": "category",
|
|
452
|
+
"text": "Native attributes"
|
|
453
|
+
}],
|
|
454
|
+
"text": "Set the counter as required."
|
|
455
|
+
},
|
|
456
|
+
"getter": false,
|
|
457
|
+
"setter": false,
|
|
458
|
+
"reflect": false,
|
|
459
|
+
"attribute": "required",
|
|
460
|
+
"defaultValue": "false"
|
|
461
|
+
},
|
|
462
|
+
"readonly": {
|
|
463
|
+
"type": "boolean",
|
|
464
|
+
"mutable": false,
|
|
465
|
+
"complexType": {
|
|
466
|
+
"original": "boolean",
|
|
467
|
+
"resolved": "boolean",
|
|
468
|
+
"references": {}
|
|
469
|
+
},
|
|
470
|
+
"required": false,
|
|
471
|
+
"optional": false,
|
|
472
|
+
"docs": {
|
|
473
|
+
"tags": [{
|
|
474
|
+
"name": "category",
|
|
475
|
+
"text": "Native attributes"
|
|
476
|
+
}],
|
|
477
|
+
"text": "Set the counter as readonly."
|
|
478
|
+
},
|
|
479
|
+
"getter": false,
|
|
480
|
+
"setter": false,
|
|
481
|
+
"reflect": false,
|
|
482
|
+
"attribute": "readonly",
|
|
483
|
+
"defaultValue": "false"
|
|
484
|
+
},
|
|
485
|
+
"disabled": {
|
|
486
|
+
"type": "boolean",
|
|
487
|
+
"mutable": false,
|
|
488
|
+
"complexType": {
|
|
489
|
+
"original": "boolean",
|
|
490
|
+
"resolved": "boolean",
|
|
491
|
+
"references": {}
|
|
492
|
+
},
|
|
493
|
+
"required": false,
|
|
494
|
+
"optional": false,
|
|
495
|
+
"docs": {
|
|
496
|
+
"tags": [{
|
|
497
|
+
"name": "category",
|
|
498
|
+
"text": "Native attributes"
|
|
499
|
+
}],
|
|
500
|
+
"text": "Set the counter as disabled."
|
|
501
|
+
},
|
|
502
|
+
"getter": false,
|
|
503
|
+
"setter": false,
|
|
504
|
+
"reflect": false,
|
|
505
|
+
"attribute": "disabled",
|
|
506
|
+
"defaultValue": "false"
|
|
507
|
+
},
|
|
508
|
+
"compact": {
|
|
509
|
+
"type": "boolean",
|
|
510
|
+
"mutable": false,
|
|
511
|
+
"complexType": {
|
|
512
|
+
"original": "boolean",
|
|
513
|
+
"resolved": "boolean",
|
|
385
514
|
"references": {}
|
|
386
515
|
},
|
|
387
516
|
"required": false,
|
|
388
517
|
"optional": true,
|
|
389
518
|
"docs": {
|
|
390
519
|
"tags": [{
|
|
520
|
+
"name": "since",
|
|
521
|
+
"text": "v7.21.0"
|
|
522
|
+
}, {
|
|
391
523
|
"name": "category",
|
|
392
|
-
"text": "
|
|
524
|
+
"text": "Features"
|
|
393
525
|
}],
|
|
394
|
-
"text": "
|
|
526
|
+
"text": "Use the compact label variant."
|
|
395
527
|
},
|
|
396
528
|
"getter": false,
|
|
397
529
|
"setter": false,
|
|
398
530
|
"reflect": false,
|
|
399
|
-
"attribute": "
|
|
531
|
+
"attribute": "compact",
|
|
532
|
+
"defaultValue": "false"
|
|
400
533
|
},
|
|
401
|
-
"
|
|
534
|
+
"labelDecrease": {
|
|
402
535
|
"type": "string",
|
|
403
536
|
"mutable": false,
|
|
404
537
|
"complexType": {
|
|
@@ -411,16 +544,16 @@ export class PnCounter {
|
|
|
411
544
|
"docs": {
|
|
412
545
|
"tags": [{
|
|
413
546
|
"name": "category",
|
|
414
|
-
"text": "
|
|
547
|
+
"text": "Features"
|
|
415
548
|
}],
|
|
416
|
-
"text": "
|
|
549
|
+
"text": "Text for the decrease button. Default is \"Decrease\"."
|
|
417
550
|
},
|
|
418
551
|
"getter": false,
|
|
419
552
|
"setter": false,
|
|
420
553
|
"reflect": false,
|
|
421
|
-
"attribute": "
|
|
554
|
+
"attribute": "label-decrease"
|
|
422
555
|
},
|
|
423
|
-
"
|
|
556
|
+
"labelIncrease": {
|
|
424
557
|
"type": "string",
|
|
425
558
|
"mutable": false,
|
|
426
559
|
"complexType": {
|
|
@@ -433,83 +566,86 @@ export class PnCounter {
|
|
|
433
566
|
"docs": {
|
|
434
567
|
"tags": [{
|
|
435
568
|
"name": "category",
|
|
436
|
-
"text": "
|
|
569
|
+
"text": "Features"
|
|
437
570
|
}],
|
|
438
|
-
"text": "
|
|
571
|
+
"text": "Text for the increase button. Default is \"Increase\"."
|
|
439
572
|
},
|
|
440
573
|
"getter": false,
|
|
441
574
|
"setter": false,
|
|
442
575
|
"reflect": false,
|
|
443
|
-
"attribute": "
|
|
576
|
+
"attribute": "label-increase"
|
|
444
577
|
},
|
|
445
|
-
"
|
|
446
|
-
"type": "
|
|
578
|
+
"hideTooltips": {
|
|
579
|
+
"type": "boolean",
|
|
447
580
|
"mutable": false,
|
|
448
581
|
"complexType": {
|
|
449
|
-
"original": "
|
|
450
|
-
"resolved": "
|
|
582
|
+
"original": "boolean",
|
|
583
|
+
"resolved": "boolean",
|
|
451
584
|
"references": {}
|
|
452
585
|
},
|
|
453
586
|
"required": false,
|
|
454
|
-
"optional":
|
|
587
|
+
"optional": true,
|
|
455
588
|
"docs": {
|
|
456
589
|
"tags": [{
|
|
590
|
+
"name": "since",
|
|
591
|
+
"text": "v7.25.0"
|
|
592
|
+
}, {
|
|
457
593
|
"name": "category",
|
|
458
|
-
"text": "
|
|
594
|
+
"text": "Features"
|
|
459
595
|
}],
|
|
460
|
-
"text": "
|
|
596
|
+
"text": "Hide the tooltips for the increase/decrease button."
|
|
461
597
|
},
|
|
462
598
|
"getter": false,
|
|
463
599
|
"setter": false,
|
|
464
600
|
"reflect": false,
|
|
465
|
-
"attribute": "
|
|
601
|
+
"attribute": "hide-tooltips",
|
|
602
|
+
"defaultValue": "false"
|
|
466
603
|
},
|
|
467
|
-
"
|
|
468
|
-
"type": "
|
|
604
|
+
"minMessage": {
|
|
605
|
+
"type": "string",
|
|
469
606
|
"mutable": false,
|
|
470
607
|
"complexType": {
|
|
471
|
-
"original": "
|
|
472
|
-
"resolved": "
|
|
608
|
+
"original": "string",
|
|
609
|
+
"resolved": "string",
|
|
473
610
|
"references": {}
|
|
474
611
|
},
|
|
475
612
|
"required": false,
|
|
476
|
-
"optional":
|
|
613
|
+
"optional": true,
|
|
477
614
|
"docs": {
|
|
478
615
|
"tags": [{
|
|
479
616
|
"name": "category",
|
|
480
|
-
"text": "
|
|
617
|
+
"text": "Features"
|
|
481
618
|
}],
|
|
482
|
-
"text": "
|
|
619
|
+
"text": "Set a message that shows below input when user wants to set a value that is below `min`. Default is \"Minimum value is x\""
|
|
483
620
|
},
|
|
484
621
|
"getter": false,
|
|
485
622
|
"setter": false,
|
|
486
623
|
"reflect": false,
|
|
487
|
-
"attribute": "
|
|
624
|
+
"attribute": "min-message"
|
|
488
625
|
},
|
|
489
|
-
"
|
|
490
|
-
"type": "
|
|
626
|
+
"maxMessage": {
|
|
627
|
+
"type": "string",
|
|
491
628
|
"mutable": false,
|
|
492
629
|
"complexType": {
|
|
493
|
-
"original": "
|
|
494
|
-
"resolved": "
|
|
630
|
+
"original": "string",
|
|
631
|
+
"resolved": "string",
|
|
495
632
|
"references": {}
|
|
496
633
|
},
|
|
497
634
|
"required": false,
|
|
498
|
-
"optional":
|
|
635
|
+
"optional": true,
|
|
499
636
|
"docs": {
|
|
500
637
|
"tags": [{
|
|
501
638
|
"name": "category",
|
|
502
|
-
"text": "
|
|
639
|
+
"text": "Features"
|
|
503
640
|
}],
|
|
504
|
-
"text": "
|
|
641
|
+
"text": "Set a message that shows below input when user wants to set a value that is above `max`. Default is \"Maximum value is x\""
|
|
505
642
|
},
|
|
506
643
|
"getter": false,
|
|
507
644
|
"setter": false,
|
|
508
645
|
"reflect": false,
|
|
509
|
-
"attribute": "
|
|
510
|
-
"defaultValue": "1"
|
|
646
|
+
"attribute": "max-message"
|
|
511
647
|
},
|
|
512
|
-
"
|
|
648
|
+
"pnId": {
|
|
513
649
|
"type": "string",
|
|
514
650
|
"mutable": false,
|
|
515
651
|
"complexType": {
|
|
@@ -521,84 +657,93 @@ export class PnCounter {
|
|
|
521
657
|
"optional": true,
|
|
522
658
|
"docs": {
|
|
523
659
|
"tags": [{
|
|
660
|
+
"name": "since",
|
|
661
|
+
"text": "v7.25.0"
|
|
662
|
+
}, {
|
|
524
663
|
"name": "category",
|
|
525
|
-
"text": "HTML
|
|
664
|
+
"text": "HTML attributes"
|
|
526
665
|
}],
|
|
527
|
-
"text": "
|
|
666
|
+
"text": "Set a unique HTML ID for the counter."
|
|
528
667
|
},
|
|
529
668
|
"getter": false,
|
|
530
669
|
"setter": false,
|
|
531
670
|
"reflect": false,
|
|
532
|
-
"attribute": "
|
|
671
|
+
"attribute": "pn-id"
|
|
533
672
|
},
|
|
534
|
-
"
|
|
535
|
-
"type": "
|
|
673
|
+
"pnAriaLabel": {
|
|
674
|
+
"type": "string",
|
|
536
675
|
"mutable": false,
|
|
537
676
|
"complexType": {
|
|
538
|
-
"original": "
|
|
539
|
-
"resolved": "
|
|
677
|
+
"original": "string",
|
|
678
|
+
"resolved": "string",
|
|
540
679
|
"references": {}
|
|
541
680
|
},
|
|
542
681
|
"required": false,
|
|
543
|
-
"optional":
|
|
682
|
+
"optional": true,
|
|
544
683
|
"docs": {
|
|
545
684
|
"tags": [{
|
|
685
|
+
"name": "since",
|
|
686
|
+
"text": "v7.25.0"
|
|
687
|
+
}, {
|
|
546
688
|
"name": "category",
|
|
547
|
-
"text": "
|
|
689
|
+
"text": "HTML attributes"
|
|
548
690
|
}],
|
|
549
|
-
"text": "
|
|
691
|
+
"text": "Provide the label via an aria attribute.\nWe strongly recommend you use the `label` prop instead."
|
|
550
692
|
},
|
|
551
693
|
"getter": false,
|
|
552
694
|
"setter": false,
|
|
553
695
|
"reflect": false,
|
|
554
|
-
"attribute": "
|
|
555
|
-
"defaultValue": "false"
|
|
696
|
+
"attribute": "pn-aria-label"
|
|
556
697
|
},
|
|
557
|
-
"
|
|
558
|
-
"type": "
|
|
698
|
+
"pnAriaLabelledby": {
|
|
699
|
+
"type": "string",
|
|
559
700
|
"mutable": false,
|
|
560
701
|
"complexType": {
|
|
561
|
-
"original": "
|
|
562
|
-
"resolved": "
|
|
702
|
+
"original": "string",
|
|
703
|
+
"resolved": "string",
|
|
563
704
|
"references": {}
|
|
564
705
|
},
|
|
565
706
|
"required": false,
|
|
566
|
-
"optional":
|
|
707
|
+
"optional": true,
|
|
567
708
|
"docs": {
|
|
568
709
|
"tags": [{
|
|
710
|
+
"name": "since",
|
|
711
|
+
"text": "v7.25.0"
|
|
712
|
+
}, {
|
|
569
713
|
"name": "category",
|
|
570
|
-
"text": "
|
|
714
|
+
"text": "HTML attributes"
|
|
571
715
|
}],
|
|
572
|
-
"text": "
|
|
716
|
+
"text": "Provide the label from another element via its ID.\nWe strongly recommend you use the `label` prop instead."
|
|
573
717
|
},
|
|
574
718
|
"getter": false,
|
|
575
719
|
"setter": false,
|
|
576
720
|
"reflect": false,
|
|
577
|
-
"attribute": "
|
|
578
|
-
"defaultValue": "false"
|
|
721
|
+
"attribute": "pn-aria-labelledby"
|
|
579
722
|
},
|
|
580
|
-
"
|
|
581
|
-
"type": "
|
|
723
|
+
"counterid": {
|
|
724
|
+
"type": "string",
|
|
582
725
|
"mutable": false,
|
|
583
726
|
"complexType": {
|
|
584
|
-
"original": "
|
|
585
|
-
"resolved": "
|
|
727
|
+
"original": "string",
|
|
728
|
+
"resolved": "string",
|
|
586
729
|
"references": {}
|
|
587
730
|
},
|
|
588
731
|
"required": false,
|
|
589
|
-
"optional":
|
|
732
|
+
"optional": true,
|
|
590
733
|
"docs": {
|
|
591
734
|
"tags": [{
|
|
735
|
+
"name": "deprecated",
|
|
736
|
+
"text": "Use `pn-id` instead."
|
|
737
|
+
}, {
|
|
592
738
|
"name": "category",
|
|
593
|
-
"text": "
|
|
739
|
+
"text": "HTML attributes"
|
|
594
740
|
}],
|
|
595
|
-
"text": "Set the counter
|
|
741
|
+
"text": "Set a unique HTML ID for the counter."
|
|
596
742
|
},
|
|
597
743
|
"getter": false,
|
|
598
744
|
"setter": false,
|
|
599
745
|
"reflect": false,
|
|
600
|
-
"attribute": "
|
|
601
|
-
"defaultValue": "false"
|
|
746
|
+
"attribute": "counterid"
|
|
602
747
|
}
|
|
603
748
|
};
|
|
604
749
|
}
|
|
@@ -637,6 +782,12 @@ export class PnCounter {
|
|
|
637
782
|
}, {
|
|
638
783
|
"propName": "counterid",
|
|
639
784
|
"methodName": "handleId"
|
|
785
|
+
}, {
|
|
786
|
+
"propName": "pnId",
|
|
787
|
+
"methodName": "handleId",
|
|
788
|
+
"handlerOptions": {
|
|
789
|
+
"immediate": true
|
|
790
|
+
}
|
|
640
791
|
}];
|
|
641
792
|
}
|
|
642
793
|
}
|