@postnord/pn-marketweb-components 4.3.6 → 4.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/{convert-9361e443.js → convert-aa209554.js} +27 -17
- package/cjs/convert-aa209554.js.map +1 -0
- package/cjs/pn-find-price.cjs.entry.js +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +2 -2
- package/components/convert.js +26 -16
- package/components/convert.js.map +1 -1
- package/components/pn-teaser-card.js +1 -1
- package/components/pn-teaser-card.js.map +1 -1
- package/esm/{convert-ecca01b6.js → convert-a9a18794.js} +27 -17
- package/esm/convert-a9a18794.js.map +1 -0
- package/esm/pn-find-price.entry.js +1 -1
- package/esm/pn-find-service-and-price.entry.js +1 -1
- package/esm/pn-product-pricelist.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js.map +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-00e6bb4b.js +2 -0
- package/pn-market-web-components/p-00e6bb4b.js.map +1 -0
- package/pn-market-web-components/{p-c4059cc1.entry.js → p-181e40ee.entry.js} +2 -2
- package/pn-market-web-components/{p-6d263c6e.entry.js → p-96d81eb2.entry.js} +2 -2
- package/pn-market-web-components/p-96d81eb2.entry.js.map +1 -0
- package/pn-market-web-components/{p-f8ccc718.entry.js → p-a0d7154f.entry.js} +2 -2
- package/pn-market-web-components/{p-413afe7c.entry.js → p-c18154a4.entry.js} +2 -2
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/cem.json +12220 -0
- package/umd/modules/@postnord/web-components/cjs/{index-CfUQZtlH.js → index-DWu-2oJc.js} +144 -85
- package/umd/modules/@postnord/web-components/cjs/{index-CNdVg5VI.js → index-vOySuOUW.js} +1 -1
- package/umd/modules/@postnord/web-components/cjs/index.cjs.js +18 -16
- package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-accordion.cjs.entry.js +5 -4
- package/umd/modules/@postnord/web-components/cjs/pn-action-menu.cjs.entry.js +6 -6
- package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +4 -4
- package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +63 -21
- package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +38 -18
- package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +71 -37
- package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +185 -103
- package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +33 -27
- package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +73 -42
- package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-icon_2.cjs.entry.js +8 -10
- package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +122 -89
- package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +24 -12
- package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +136 -52
- package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +4 -4
- package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +61 -20
- package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +88 -43
- package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +42 -25
- package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +16 -11
- package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +21 -21
- package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +90 -35
- package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +15 -10
- package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tablist.cjs.entry.js +5 -4
- package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +88 -34
- package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +5 -5
- package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +56 -20
- package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-wizard.cjs.entry.js +71 -49
- package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -3
- package/umd/modules/@postnord/web-components/collection/collection-manifest.json +4 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/pn-action-menu.css +1 -10
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js +5 -4
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.css +13 -9
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.js +12 -14
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.css +6 -2
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.js +7 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.css +4 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js +71 -13
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/pn-progress-stepper.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.css +5 -5
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.js +70 -45
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.css +3 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +213 -52
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.js +128 -68
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js +305 -154
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +562 -275
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.css +21 -16
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +114 -54
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.css +37 -50
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js +159 -97
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/translation.js +7 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +415 -264
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.css +13 -24
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +316 -131
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.css +3 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +223 -63
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.css +3 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +357 -191
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.css +6 -9
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +177 -90
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +24 -24
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +84 -37
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +18 -14
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +237 -90
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +6 -5
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +255 -115
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +5 -3
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +216 -68
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +4 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.css +3 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +11 -6
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/collection/globals/helpers.js +16 -14
- package/umd/modules/@postnord/web-components/components/helpers.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-accordion.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-action-menu.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-checkbox.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-date-picker.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-fieldset.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-file-upload.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-header.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-icon2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-illustration2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-input2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-modal.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-bar2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator-step.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-stepper2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-range.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-spinner2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-toast.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tooltip.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-wizard.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/esm/{index-CosyroON.js → index-DyhO6xPY.js} +1 -1
- package/umd/modules/@postnord/web-components/esm/{index-CAEP792y.js → index-XKg-ydzH.js} +144 -85
- package/umd/modules/@postnord/web-components/esm/index.js +19 -17
- package/umd/modules/@postnord/web-components/esm/loader.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js +5 -4
- package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js +6 -6
- package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +4 -4
- package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +63 -21
- package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +38 -18
- package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +71 -37
- package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +185 -103
- package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +33 -27
- package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +73 -42
- package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-icon_2.entry.js +8 -10
- package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +122 -89
- package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +24 -12
- package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +137 -53
- package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +4 -4
- package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +61 -20
- package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +88 -43
- package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +42 -25
- package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +16 -11
- package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +21 -21
- package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +90 -35
- package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +15 -10
- package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +5 -4
- package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +88 -34
- package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +5 -5
- package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +56 -20
- package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js +71 -49
- package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -4
- package/umd/modules/@postnord/web-components/hydrate/index.js +1715 -940
- package/umd/modules/@postnord/web-components/hydrate/index.mjs +1715 -940
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +3 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +3 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +3312 -561
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-globals/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +246 -179
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +245 -180
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +49 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +51 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +23 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +238 -169
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +12 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +10 -10
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/460.node-fetch.js +3 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +32 -32
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +4 -4
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +33 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/package.json +16 -16
- package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-ea50ecd2.entry.js → p-020ee3f4.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-060b6ad2.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0bf70d44.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1ec52623.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-27c71f60.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-292a7591.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3d2cac86.entry.js → p-3709c995.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3db02038.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-2f4ad4a4.entry.js → p-4b9fb0fc.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-506a801d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-518651ad.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-54917d9f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-56ade97b.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-64207923.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-665af57e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6d85c967.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6e407015.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-01ac1c67.entry.js → p-720b8b90.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-7aea3de5.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-7b6ae520.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-83d02093.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-88344f8d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3c96cb61.entry.js → p-895acf7f.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8cedf2e0.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-91c6a8cf.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-98a37be9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9a6c90e4.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9d2ee77a.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9d56fb64.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-BlM_xfdt.js → p-BWAVaTWQ.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-XKg-ydzH.js +6 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a1f92f19.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a31d93db.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-aa15469e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-db2b7e5d.entry.js → p-b45e58df.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b72f9866.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b0710b87.entry.js → p-b7a2e5b0.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c09179d6.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-38e44ed0.entry.js → p-ce2c2395.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d228b929.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d71054df.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d81b4ede.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e11b4af5.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-c4c4c75b.entry.js → p-e5574624.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e6ad75f9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e6cd4c7f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ede550f0.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ef00ef4d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/types/components/buttons/pn-action-menu/pn-action-menu.d.ts +111 -0
- package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/pn-accordion.d.ts +2 -2
- package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-icon/pn-icon.d.ts +5 -7
- package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-illustration/pn-illustration.d.ts +8 -2
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-modal/pn-modal.d.ts +17 -6
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-toast/pn-toast.d.ts +100 -0
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-wizard/pn-wizard.d.ts +6 -1
- package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.d.ts +124 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-choice-chip/pn-choice-chip.d.ts +31 -15
- package/umd/modules/@postnord/web-components/types/components/input/pn-counter/pn-counter.d.ts +51 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-date-picker/pn-date-picker.d.ts +338 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-fieldset/pn-fieldset.d.ts +24 -15
- package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/pn-file-upload.d.ts +36 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/translation.d.ts +7 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +89 -66
- package/umd/modules/@postnord/web-components/types/components/input/pn-multiselect/pn-multiselect.d.ts +265 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-radio-button/pn-radio-button.d.ts +124 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-range/pn-range.d.ts +73 -42
- package/umd/modules/@postnord/web-components/types/components/input/pn-search-field/pn-search-field.d.ts +32 -21
- package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/pn-segmented-control.d.ts +19 -18
- package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/segment/pn-segment.d.ts +12 -9
- package/umd/modules/@postnord/web-components/types/components/input/pn-select/pn-select.d.ts +51 -31
- package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +58 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-toggle-switch/pn-toggle-switch.d.ts +36 -14
- package/umd/modules/@postnord/web-components/types/components.d.ts +1851 -511
- package/umd/modules/@postnord/web-components/types/globals/mixins/index.d.ts +21 -0
- package/umd/modules/@postnord/web-components/types/stencil-public-runtime.d.ts +23 -2
- package/umd/modules/@postnord/web-components/vscode-data.json +218 -38
- package/umd/pn-marketweb-salesforce-header.js +1 -1
- package/cjs/convert-9361e443.js.map +0 -1
- package/esm/convert-ecca01b6.js.map +0 -1
- package/pn-market-web-components/p-63ff7fa2.js +0 -2
- package/pn-market-web-components/p-63ff7fa2.js.map +0 -1
- package/pn-market-web-components/p-6d263c6e.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0dd15cc3.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0e94a4dd.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0ed2ee53.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-109ba1fc.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-153311c8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1a3c49ba.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2610f8ab.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-267c323e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a364778.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a682ff9.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2cce8a9f.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-306ec758.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3d459401.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3deb5a9e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-41c09d4d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-484dfaa4.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-50116c0d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-502b8430.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5b7c1333.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-67f55491.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-838c17b9.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-849d48c6.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-89aaa3c8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8b2b6f5d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-93db2b9e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-97ffc4b3.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-CAEP792y.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b3c4e3e8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b8c4423b.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ba59528f.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c0ae367c.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c843ae5e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d1e27524.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d214e930.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d7091312.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e3fb693e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e83de0b1.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-edc28eee.entry.js +0 -5
- /package/pn-market-web-components/{p-c4059cc1.entry.js.map → p-181e40ee.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f8ccc718.entry.js.map → p-a0d7154f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-413afe7c.entry.js.map → p-c18154a4.entry.js.map} +0 -0
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-DWu-2oJc.js');
|
|
8
8
|
var index$2 = require('./index.cjs.js');
|
|
9
|
-
var index$1 = require('./index-
|
|
9
|
+
var index$1 = require('./index-vOySuOUW.js');
|
|
10
10
|
var arrow_left = require('./arrow_left-Crkz484c.js');
|
|
11
11
|
var arrow_right = require('./arrow_right-CABi9Wkp.js');
|
|
12
12
|
|
|
@@ -522,20 +522,21 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
522
522
|
constructor(hostRef) {
|
|
523
523
|
super();
|
|
524
524
|
index.registerInstance(this, hostRef);
|
|
525
|
-
this.dateselection = index.createEvent(this, "dateselection");
|
|
526
|
-
this.dateSelection = index.createEvent(this, "dateSelection");
|
|
527
|
-
this.dateInvalid = index.createEvent(this, "dateInvalid");
|
|
528
|
-
this.toggleCalendar = index.createEvent(this, "toggleCalendar");
|
|
529
|
-
this.currentView = index.createEvent(this, "currentView");
|
|
525
|
+
this.dateselection = index.createEvent(this, "dateselection", 7);
|
|
526
|
+
this.dateSelection = index.createEvent(this, "dateSelection", 7);
|
|
527
|
+
this.dateInvalid = index.createEvent(this, "dateInvalid", 7);
|
|
528
|
+
this.toggleCalendar = index.createEvent(this, "toggleCalendar", 7);
|
|
529
|
+
this.currentView = index.createEvent(this, "currentView", 7);
|
|
530
530
|
}
|
|
531
531
|
id = `pn-date-picker-${index$2.uuidv4()}`;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
532
|
+
idStart = `${this.id}-from`;
|
|
533
|
+
idEnd = `${this.id}-to`;
|
|
534
|
+
idStartButton = `${this.id}-from-button`;
|
|
535
|
+
idEndButton = `${this.id}-to-button`;
|
|
536
536
|
idHelper = `${this.id}-helper`;
|
|
537
537
|
idError = `${this.id}-error`;
|
|
538
538
|
idCalendar = `${this.id}-calendar`;
|
|
539
|
+
mo;
|
|
539
540
|
calendarElement;
|
|
540
541
|
today = getToday();
|
|
541
542
|
separators = [];
|
|
@@ -545,7 +546,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
545
546
|
get hostElement() { return index.getElement(this); }
|
|
546
547
|
open = false;
|
|
547
548
|
openUp = false;
|
|
548
|
-
|
|
549
|
+
selectingEnd = false;
|
|
549
550
|
grid;
|
|
550
551
|
viewYearStart = null;
|
|
551
552
|
dateViewYear;
|
|
@@ -559,72 +560,67 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
559
560
|
labelTo;
|
|
560
561
|
/** Provide a helpertext for the date input. */
|
|
561
562
|
helpertext;
|
|
562
|
-
/**
|
|
563
|
+
/** Manually set language; this will be inherited from the topbar. */
|
|
564
|
+
language = undefined;
|
|
565
|
+
/** Set a predefined value for the from date (input value). @see {@link format} @category Native attributes */
|
|
563
566
|
start = '';
|
|
564
567
|
/**
|
|
565
|
-
* Set a predefined value for the from date.
|
|
568
|
+
* Set a predefined value for the from date. (input value end)
|
|
566
569
|
*
|
|
567
570
|
* @see {@link range}
|
|
568
571
|
* @see {@link format}
|
|
572
|
+
* @category Native attributes
|
|
569
573
|
*/
|
|
570
574
|
end = '';
|
|
571
|
-
/**
|
|
572
|
-
* Set the date format of the value.
|
|
573
|
-
*
|
|
574
|
-
* While you can set any date value from the Dayjs documentation,
|
|
575
|
-
* we strongly recommend you pick a simple format that you can also type manually.
|
|
576
|
-
*
|
|
577
|
-
* @since v7.6.0
|
|
578
|
-
* @see {@link https://day.js.org/docs/en/display/format Day.js format documentation.}
|
|
579
|
-
*/
|
|
580
|
-
format = 'YYYY-MM-DD';
|
|
581
|
-
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 */
|
|
582
|
-
compact = false;
|
|
583
|
-
/** Manually set language; this will be inherited from the topbar. */
|
|
584
|
-
language = null;
|
|
585
|
-
/** Set a custom ID for the calendar. @since v7.6.0 @category HTML attributes */
|
|
586
|
-
dateId = this.id;
|
|
587
|
-
/** HTML input name @since v7.6.0 @category HTML attributes */
|
|
575
|
+
/** HTML input name @since v7.6.0 @category Native attributes*/
|
|
588
576
|
name;
|
|
577
|
+
/** HTML input name @since v7.25.0 @category Native attributes */
|
|
578
|
+
nameEnd;
|
|
589
579
|
/**
|
|
590
580
|
* Placeholder for the input field (defaults to the format prop).
|
|
591
581
|
* @see {@link format}
|
|
592
|
-
* @category
|
|
582
|
+
* @category Native attributes
|
|
593
583
|
**/
|
|
594
|
-
placeholder
|
|
584
|
+
placeholder;
|
|
595
585
|
/**
|
|
596
586
|
* Placeholder for end date (defaults to the format prop).
|
|
597
587
|
* @see {@link format}
|
|
598
|
-
* @
|
|
588
|
+
* @deprecated Use `placeholder-end` instead
|
|
589
|
+
* @category Native attributes
|
|
599
590
|
**/
|
|
600
|
-
endPlaceholder
|
|
601
|
-
/**
|
|
591
|
+
endPlaceholder;
|
|
592
|
+
/**
|
|
593
|
+
* Placeholder for end date (defaults to the format prop).
|
|
594
|
+
* @see {@link format}
|
|
595
|
+
* @since v7.25.0
|
|
596
|
+
* @category Native attributes
|
|
597
|
+
**/
|
|
598
|
+
placeholderEnd;
|
|
599
|
+
/** Set the input `autocomplete` attribute. @category Native attributes */
|
|
602
600
|
autocomplete;
|
|
603
|
-
/** Set the input `list` attribute for the first date input. @since v7.6.0 @category
|
|
601
|
+
/** Set the input `list` attribute for the first date input. @since v7.6.0 @category Native attributes */
|
|
604
602
|
list;
|
|
605
|
-
/** Set the input `list` attribute for the second date input. @since v7.6.0 @category
|
|
603
|
+
/** Set the input `list` attribute for the second date input. @since v7.6.0 @category Native attributes */
|
|
606
604
|
listEnd;
|
|
607
|
-
/** Set the HTML pattern prop on the input elements. Make sure it matches the format. @since v7.6.0 @category
|
|
605
|
+
/** Set the HTML pattern prop on the input elements. Make sure it matches the format. @since v7.6.0 @category Native attributes */
|
|
608
606
|
pattern;
|
|
609
|
-
/**
|
|
610
|
-
|
|
607
|
+
/** Set the date picker as required. @category Native attributes */
|
|
608
|
+
required = false;
|
|
609
|
+
/** Set the date picker as readonly. @since v7.6.0 @category Native attributes */
|
|
610
|
+
readonly = false;
|
|
611
|
+
/** Set the date picker as disabled. @since v7.6.0 @category Native attributes */
|
|
612
|
+
disabled = false;
|
|
611
613
|
/**
|
|
612
|
-
* Set
|
|
613
|
-
* By default, you can select an unlimited range.
|
|
614
|
+
* Set the date format of the value.
|
|
614
615
|
*
|
|
615
|
-
*
|
|
616
|
-
*
|
|
616
|
+
* While you can set any date value from the Dayjs documentation,
|
|
617
|
+
* we strongly recommend you pick a simple format that you can also type manually.
|
|
617
618
|
*
|
|
619
|
+
* @since v7.6.0
|
|
620
|
+
* @see {@link https://day.js.org/docs/en/display/format Day.js format documentation.}
|
|
618
621
|
* @category Features
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
rangeLimit;
|
|
622
|
-
/** The calendar grid is shown as default. You can set either `months` or `years` as your first choice. @since v7.6.0 @category Features */
|
|
623
|
-
view = CALENDAR;
|
|
624
|
-
/** Make the calendar open upwards by default. Opens downwards if there is not enough space. @since v7.6.0 @category Features */
|
|
625
|
-
calendarUp = false;
|
|
626
|
-
/** Show weekend numbers to the left of the calendar grid. @since v7.6.0 @category Features */
|
|
627
|
-
weekNumbers = false;
|
|
622
|
+
*/
|
|
623
|
+
format = 'YYYY-MM-DD';
|
|
628
624
|
/** Disable the automatic insertion of separators when typing in the input. @since v7.6.0 @category Features */
|
|
629
625
|
disableTypeAhead = false;
|
|
630
626
|
/** Remove the option to select dates on weekends. @category Features */
|
|
@@ -638,25 +634,72 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
638
634
|
* @category Features
|
|
639
635
|
**/
|
|
640
636
|
disabledDates;
|
|
641
|
-
/** If you use a format with an unknown length, disable the max length. @category Features */
|
|
637
|
+
/** If you use a format with an unknown length, disable the max length. @since 7.11.3 @category Features */
|
|
642
638
|
disableMaxLength = false;
|
|
643
|
-
/**
|
|
644
|
-
|
|
645
|
-
/**
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
639
|
+
/** Allow the selection of a date range. @category Features */
|
|
640
|
+
range = false;
|
|
641
|
+
/**
|
|
642
|
+
* Set a limit on how many days one may select.
|
|
643
|
+
* By default, you can select an unlimited range.
|
|
644
|
+
*
|
|
645
|
+
* @todo Create a range limit function.
|
|
646
|
+
* @see {@link range}
|
|
647
|
+
*
|
|
648
|
+
* @category Features
|
|
649
|
+
* @hide true
|
|
650
|
+
**/
|
|
651
|
+
rangeLimit;
|
|
652
|
+
/** Show weekend numbers to the left of the calendar grid. @since v7.6.0 @category Features */
|
|
653
|
+
weekNumbers = false;
|
|
654
|
+
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 @category Features */
|
|
655
|
+
compact = false;
|
|
656
|
+
/** Make the calendar open upwards by default. Opens downwards if there is not enough space. @since v7.6.0 @category Features */
|
|
657
|
+
calendarUp = false;
|
|
658
|
+
/** The calendar grid is shown as default. You can set either `months` or `years` as your first choice. @since v7.6.0 @category Features */
|
|
659
|
+
view = 'calendar';
|
|
660
|
+
/** Trigger the invalid state without an error message. @since v7.6.0 @category Features */
|
|
652
661
|
invalid = false;
|
|
662
|
+
/** Set an error message for the date picker. Overwrites the helpertext if used at the same time. @since v7.6.0 @category Features */
|
|
663
|
+
error;
|
|
664
|
+
/** Set a custom ID for the calendar. If you use `range`, the end input will use `${pn-id}-end`. @since v7.25.0 @category HTML attributes */
|
|
665
|
+
pnId;
|
|
666
|
+
/**
|
|
667
|
+
* Provide the label via an aria attribute.
|
|
668
|
+
* We strongly recommend you use the `label-from` prop instead.
|
|
669
|
+
* @since v7.25.0
|
|
670
|
+
* @category HTML attributes
|
|
671
|
+
*/
|
|
672
|
+
pnAriaLabel;
|
|
673
|
+
/**
|
|
674
|
+
* Provide the label for the end input via an aria attribute.
|
|
675
|
+
* We strongly recommend you use the `label-to` prop instead.
|
|
676
|
+
* @since v7.25.0
|
|
677
|
+
* @category HTML attributes
|
|
678
|
+
*/
|
|
679
|
+
pnAriaLabelEnd;
|
|
680
|
+
/**
|
|
681
|
+
* Provide the label from another element via its ID.
|
|
682
|
+
* We strongly recommend you use the `label-from` prop instead.
|
|
683
|
+
* @since v7.25.0
|
|
684
|
+
* @category HTML attributes
|
|
685
|
+
*/
|
|
686
|
+
pnAriaLabelledby;
|
|
687
|
+
/**
|
|
688
|
+
* Provide the label for the end input from another element via its ID.
|
|
689
|
+
* We strongly recommend you use the `label-to` prop instead.
|
|
690
|
+
* @since v7.25.0
|
|
691
|
+
* @category HTML attributes
|
|
692
|
+
*/
|
|
693
|
+
pnAriaLabelledbyEnd;
|
|
694
|
+
/** Set a custom ID for the calendar. @since v7.6.0 @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
695
|
+
dateId;
|
|
653
696
|
/**
|
|
654
697
|
* Earliest date possible, this will determine how many years back the date picker will show.
|
|
655
698
|
*
|
|
656
699
|
* Remember to use the same format that you have in the `format` prop.
|
|
657
700
|
* @see {@link format}
|
|
658
701
|
* @example "2024-05-25"
|
|
659
|
-
* @category
|
|
702
|
+
* @category Features
|
|
660
703
|
**/
|
|
661
704
|
minDate = null;
|
|
662
705
|
watchMin() {
|
|
@@ -671,7 +714,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
671
714
|
* Remember to use the same format that you have in the `format` prop.
|
|
672
715
|
* @see {@link format}
|
|
673
716
|
* @example "2024-06-25"
|
|
674
|
-
* @category
|
|
717
|
+
* @category Features
|
|
675
718
|
**/
|
|
676
719
|
maxDate = null;
|
|
677
720
|
watchMax() {
|
|
@@ -715,13 +758,13 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
715
758
|
.forEach((item, index) => this.separatorRegex.exec(item) && this.separators.push({ name: item, index }));
|
|
716
759
|
}
|
|
717
760
|
watchId() {
|
|
718
|
-
this.
|
|
719
|
-
this.
|
|
720
|
-
this.
|
|
721
|
-
this.
|
|
722
|
-
this.idHelper = `${this.
|
|
723
|
-
this.idError = `${this.
|
|
724
|
-
this.idCalendar = `${this.
|
|
761
|
+
this.idStart = this.getId();
|
|
762
|
+
this.idEnd = `${this.getId()}-end`;
|
|
763
|
+
this.idStartButton = `${this.idStart}-from-button`;
|
|
764
|
+
this.idEndButton = `${this.idEnd}-to-button`;
|
|
765
|
+
this.idHelper = `${this.idStart}-helper`;
|
|
766
|
+
this.idError = `${this.idStart}-error`;
|
|
767
|
+
this.idCalendar = `${this.idStart}-calendar`;
|
|
725
768
|
}
|
|
726
769
|
watchView() {
|
|
727
770
|
const data = this.getCurrentDateObject();
|
|
@@ -815,10 +858,18 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
815
858
|
return;
|
|
816
859
|
this.toggleGrid(false);
|
|
817
860
|
}
|
|
861
|
+
connectedCallback() {
|
|
862
|
+
this.mo = new MutationObserver(() => {
|
|
863
|
+
index.forceUpdate(this.hostElement);
|
|
864
|
+
this.handleMessage();
|
|
865
|
+
});
|
|
866
|
+
this.mo.observe(this.hostElement, { childList: true, subtree: true });
|
|
867
|
+
}
|
|
868
|
+
disconnectedCallback() {
|
|
869
|
+
if (this.mo)
|
|
870
|
+
this.mo.disconnect();
|
|
871
|
+
}
|
|
818
872
|
async componentWillLoad() {
|
|
819
|
-
this.watchMin();
|
|
820
|
-
this.watchMax();
|
|
821
|
-
this.watchId();
|
|
822
873
|
this.handleFormat();
|
|
823
874
|
this.handleMessage();
|
|
824
875
|
const valid = validateDate(this.start || this.end, this.format);
|
|
@@ -827,9 +878,29 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
827
878
|
this.setViewDate({ date: data.date || date });
|
|
828
879
|
this.setViewMonth({ month: data.month || month });
|
|
829
880
|
this.setViewYear({ year: data.year || year });
|
|
830
|
-
if (this.language ===
|
|
881
|
+
if (this.language === undefined)
|
|
831
882
|
await index$2.awaitTopbar(this.hostElement);
|
|
832
883
|
}
|
|
884
|
+
getId() {
|
|
885
|
+
return this.pnId || this.dateId || this.id;
|
|
886
|
+
}
|
|
887
|
+
getAriaLabel(end) {
|
|
888
|
+
if (end)
|
|
889
|
+
return !this.labelTo && !this.pnAriaLabelledbyEnd ? this.pnAriaLabelEnd : null;
|
|
890
|
+
return !this.labelFrom && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
|
|
891
|
+
}
|
|
892
|
+
getAriaLabelledby(end) {
|
|
893
|
+
if (end)
|
|
894
|
+
return !this.labelTo && !this.pnAriaLabelEnd ? this.pnAriaLabelledbyEnd : null;
|
|
895
|
+
return !this.labelFrom && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
|
|
896
|
+
}
|
|
897
|
+
getPlaceholder(end) {
|
|
898
|
+
if (this.compact)
|
|
899
|
+
return ' ';
|
|
900
|
+
if (end)
|
|
901
|
+
return this.placeholderEnd || this.endPlaceholder || this.format;
|
|
902
|
+
return this.placeholder || this.format;
|
|
903
|
+
}
|
|
833
904
|
dropdownHandler() {
|
|
834
905
|
if (this.open)
|
|
835
906
|
this.openDropdown(this.calendarElement);
|
|
@@ -861,7 +932,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
861
932
|
}
|
|
862
933
|
toggleGrid(state, selecting) {
|
|
863
934
|
this.open = state ?? !this.open;
|
|
864
|
-
this.
|
|
935
|
+
this.selectingEnd = selecting;
|
|
865
936
|
}
|
|
866
937
|
hasHelperText() {
|
|
867
938
|
return this.helpertext?.length > 0 || this.showHelperSlot;
|
|
@@ -882,6 +953,12 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
882
953
|
const slottedError = this.hostElement.querySelector('[slot=error]')?.textContent;
|
|
883
954
|
this.showErrorSlot = !!slottedError?.length;
|
|
884
955
|
}
|
|
956
|
+
hideHelpertext() {
|
|
957
|
+
return this.hasErrorMessage() || !this.hasHelperText();
|
|
958
|
+
}
|
|
959
|
+
hideError() {
|
|
960
|
+
return !this.hasErrorMessage();
|
|
961
|
+
}
|
|
885
962
|
viewingCalendar() {
|
|
886
963
|
return this.view === CALENDAR;
|
|
887
964
|
}
|
|
@@ -934,8 +1011,8 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
934
1011
|
getCurrentViewDate(data = this.getCurrentDateObject()) {
|
|
935
1012
|
return getReadableDate(data, this.language, 'MMMM YYYY');
|
|
936
1013
|
}
|
|
937
|
-
isSelected(data,
|
|
938
|
-
const value =
|
|
1014
|
+
isSelected(data, end = false) {
|
|
1015
|
+
const value = end ? this.end : this.start;
|
|
939
1016
|
return selectedDate(value, this.getCurrentDateObject(data), this.format, this.viewType());
|
|
940
1017
|
}
|
|
941
1018
|
isToday(data) {
|
|
@@ -1048,24 +1125,24 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
1048
1125
|
}
|
|
1049
1126
|
return value;
|
|
1050
1127
|
}
|
|
1051
|
-
inputHandler(event,
|
|
1052
|
-
const propName =
|
|
1128
|
+
inputHandler(event, end = false) {
|
|
1129
|
+
const propName = end ? 'end' : 'start';
|
|
1053
1130
|
const value = this.disableTypeAhead ? event.target.value : this.handleSeparator(event);
|
|
1054
1131
|
this[propName] = value;
|
|
1055
1132
|
}
|
|
1056
1133
|
setValue(date) {
|
|
1057
1134
|
const value = getReadableDate(this.getCurrentDateObject({ date }), this.language, this.format);
|
|
1058
|
-
if (this.
|
|
1135
|
+
if (this.selectingEnd)
|
|
1059
1136
|
this.end = value;
|
|
1060
1137
|
else
|
|
1061
1138
|
this.start = value;
|
|
1062
1139
|
this.setViewDate({ date });
|
|
1063
|
-
if (!this.range || this.
|
|
1140
|
+
if (!this.range || this.selectingEnd) {
|
|
1064
1141
|
this.toggleGrid(false);
|
|
1065
1142
|
this.focusToggleCalendarButton();
|
|
1066
1143
|
}
|
|
1067
|
-
if (this.range && !this.
|
|
1068
|
-
this.
|
|
1144
|
+
if (this.range && !this.selectingEnd)
|
|
1145
|
+
this.selectingEnd = true;
|
|
1069
1146
|
}
|
|
1070
1147
|
getDayAttributes(dateObject, blank) {
|
|
1071
1148
|
const data = this.getCurrentDateObject(dateObject);
|
|
@@ -1120,7 +1197,7 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
1120
1197
|
/** Focus the button toggling the calendar. Handles the start/from date on its own. */
|
|
1121
1198
|
focusToggleCalendarButton() {
|
|
1122
1199
|
requestAnimationFrame(() => {
|
|
1123
|
-
const id = this.range ? this.
|
|
1200
|
+
const id = this.range ? this.idEndButton : this.idStartButton;
|
|
1124
1201
|
this.hostElement.querySelector(`#${id}`).focus({ preventScroll: true });
|
|
1125
1202
|
});
|
|
1126
1203
|
}
|
|
@@ -1202,37 +1279,39 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
1202
1279
|
renderYearGrid() {
|
|
1203
1280
|
return (index.h("ul", { class: "pn-date-picker-list" }, this.getYearGrid()?.map(year => (index.h("li", { key: year, class: "pn-date-picker-item", "data-item": "year" }, index.h("button", { type: "button", class: "pn-date-picker-button", ...this.getDayAttributes({ year }, false) }, index.h("span", null, year)))))));
|
|
1204
1281
|
}
|
|
1205
|
-
renderLabel(
|
|
1206
|
-
const id =
|
|
1207
|
-
const label =
|
|
1282
|
+
renderLabel(end = false) {
|
|
1283
|
+
const id = end ? this.idEnd : this.idStart;
|
|
1284
|
+
const label = end ? this.labelTo : this.labelFrom;
|
|
1285
|
+
if (!label)
|
|
1286
|
+
return null;
|
|
1208
1287
|
return (index.h("label", { class: "pn-date-picker-label", htmlFor: id, "data-compact": this.compact }, index.h("span", null, label)));
|
|
1209
1288
|
}
|
|
1210
|
-
renderInput({
|
|
1211
|
-
const id =
|
|
1212
|
-
const idButton =
|
|
1213
|
-
const value =
|
|
1214
|
-
const
|
|
1215
|
-
const
|
|
1216
|
-
const editing = this.open ? (this.
|
|
1289
|
+
renderInput({ end = false } = {}) {
|
|
1290
|
+
const id = end ? this.idEnd : this.idStart;
|
|
1291
|
+
const idButton = end ? this.idEndButton : this.idStartButton;
|
|
1292
|
+
const value = end ? this.end : this.start;
|
|
1293
|
+
const list = end ? this.listEnd : this.list;
|
|
1294
|
+
const name = end ? this.nameEnd : this.name;
|
|
1295
|
+
const editing = this.open ? (this.selectingEnd ? end : !end) : false;
|
|
1217
1296
|
const defaultText = this.translate('SELECT_DATE');
|
|
1218
|
-
const textProp = this.range ? (
|
|
1297
|
+
const textProp = this.range ? (end ? 'END_' : 'START_') : '';
|
|
1219
1298
|
const dateText = this.translate(`SELECTED_${textProp}DATE`);
|
|
1220
1299
|
let textButton = defaultText;
|
|
1221
1300
|
if (value) {
|
|
1222
1301
|
textButton += `, ${dateText.replace('{date}', value)}`;
|
|
1223
1302
|
}
|
|
1224
1303
|
const showButton = !(this.disabled || this.readonly);
|
|
1225
|
-
return (index.h("div", { class: "pn-date-picker-container", "data-error": this.hasError() }, !this.compact && this.renderLabel(
|
|
1304
|
+
return (index.h("div", { class: "pn-date-picker-container", "data-error": this.hasError() }, !this.compact && this.renderLabel(end), index.h("div", { class: "pn-date-picker-field" }, index.h("input", { type: "text", id: id, class: "pn-date-picker-input", name: name, placeholder: this.getPlaceholder(end), autocomplete: this.autocomplete, maxlength: this.disableMaxLength ? null : this.format.length, list: list, pattern: this.pattern, value: value, disabled: this.disabled, required: this.required, readonly: this.readonly, "aria-label": this.getAriaLabel(end), "aria-labelledby": this.getAriaLabelledby(end), "aria-describedby": this.ariaDescribedby(), "aria-invalid": this.hasError()?.toString(), "data-active": editing, "data-compact": this.compact, onInput: e => this.inputHandler(e, end) }), this.compact && this.renderLabel(end), showButton && (index.h("pn-button", { class: "pn-date-picker-toggle", buttonId: idButton, icon: calendar, iconOnly: true, appearance: "light", arialabel: textButton, ariaexpanded: this.open.toString(), ariacontrols: this.idCalendar, "data-active": this.open, "data-input": true, small: true, onPnClick: () => this.toggleGrid(null, end), onKeyDown: e => this.handleButtonBlur(e) })))));
|
|
1226
1305
|
}
|
|
1227
1306
|
render() {
|
|
1228
|
-
return (index.h(index.Host, { key: '
|
|
1307
|
+
return (index.h(index.Host, { key: 'dbe09316ddf6365ad119afe9fd01a363aa3cf9bf' }, index.h("div", { key: 'b6aa1c922859c282529ff9e1297aacc79111a0f9', class: "pn-date-picker" }, this.renderInput(), this.range && (index.h("div", { key: '48d050a834a2df16b33759bbe117a5c378dfa069', class: "pn-date-picker-range-icon test" }, index.h("pn-icon", { key: '6b6507409ba5eaf3de232dff28785d9c7c0a85f0', icon: arrow_right.arrow_right }))), this.range && this.renderInput({ end: this.range })), index.h("div", { key: '9a9d31f221aabbf0927bcc8ae602d1330d75b4d3', id: this.idCalendar, class: "pn-date-picker-calendar", role: "dialog", "aria-label": this.translate('CALENDAR_NAVIGATION'), "data-open": this.open, "data-direction": this.openUp ? 'top' : 'bottom', "data-range": this.range, style: { height: '0px' }, ref: el => (this.calendarElement = el), onKeyDown: e => this.handleCalendarTabEsc(e) }, index.h("div", { key: '56137ab966418bda3abd61bbcc12ff004feca5c0', class: "pn-date-picker-wrapper" }, index.h("nav", { key: '67a2fea072a8e4953fa9803e77d0245760b7195a', class: "pn-date-picker-nav", "aria-labelledby": this.idCalendar }, index.h("pn-button", { key: '9d9d0aa471baa6d6183a4b3b920cf8d05737e8a1', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`PREVIOUS_${this.viewType().toUpperCase()}`), icon: arrow_left.arrow_left, iconOnly: true, onPnClick: () => this.setNavView({ minus: true }) }), index.h("pn-button", { key: '57988169fdd38cb05c18c6d4f8e71ded23f97f5f', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(MONTHS) }, index.h("span", { key: '93c98b9aeabdc4b08e59afdaf8655dfe3c440b13', class: "pn-date-picker-month", "data-full": true }, this.translateDateText({ date: 1 }, 'MMMM')), index.h("span", { key: '9c0b0c3378f00755ef84e5e87426c1a9bedb0651', class: "pn-date-picker-month", "data-abbr": true }, this.translateDateText({ date: 1 }, 'MMM'))), index.h("h2", { key: '02d40d1aa03dd69f5b344295713ec9c45431b3e9', hidden: this.viewingCalendar(), class: "pn-date-picker-title" }, this.translate(`SELECT_${this.viewType().toUpperCase()}`)), index.h("pn-button", { key: '4f953719a89967b10c98472b24f732c42cd61e3c', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(YEARS) }, index.h("span", { key: 'a91a0dd940b94d0f71d887508644d6acfa3ef098' }, this.dateViewYear)), index.h("pn-button", { key: '3eabe547992de22014f3e229c9e7e17eab395d56', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`NEXT_${this.viewType().toUpperCase()}`), icon: arrow_right.arrow_right, iconOnly: true, onPnClick: () => this.setNavView({ plus: true }) })), this.viewingYears() && this.renderYearGrid(), this.viewingMonth() && this.renderMonthGrid(), this.viewingCalendar() && this.renderDateGrid(), index.h("aside", { key: '6eaefead16141908688578834b1e6a2ba87e8161', class: "pn-date-picker-chips" }, index.h("slot", { key: '43bcfa9bb50d6dbd912ae8cfee339b642b9363a5', name: "chips" })), index.h("nav", { key: 'b22d7112ba5d3d012f5d2617586bd251547f4ed7', class: "pn-date-picker-bottom", hidden: this.viewingCalendar() }, index.h("pn-button", { key: '41031640dbac5130b3fb9029b36c5e732068c78f', appearance: "light", variant: "outlined", small: true, icon: pn_return, onPnClick: () => this.setView(CALENDAR) }, index.h("span", { key: '08568a439547db8728c3f110c00854d49ec7eb77' }, this.translate('GO_CALENDAR')))))), index.h("p", { key: 'e890351198e9eaa85e9db3bcc55bc8bdd48f3538', id: this.idHelper, class: "pn-date-picker-helpertext", hidden: this.hideHelpertext() }, index.h("span", { key: '0b776595b33ed64cb73b5060d023eb89421ad758' }, this.helpertext), index.h("slot", { key: 'e9ef3797e3baae78dca7efc2313e1b6cf9c7efd7', name: "helpertext" })), index.h("p", { key: 'aa43fb6eaf42251bb7dadab0f724edee0e6d42b2', id: this.idError, class: "pn-date-picker-error", role: "alert", hidden: this.hideError() }, index.h("span", { key: '556bfbb5e5ba697234734eb601445150b23ddcf2' }, this.error), index.h("slot", { key: '21dd12fd2c3f1ac814699f4785ece567136cedd2', name: "error" }))));
|
|
1229
1308
|
}
|
|
1230
1309
|
static get watchers() { return {
|
|
1231
1310
|
"minDate": [{
|
|
1232
|
-
"watchMin":
|
|
1311
|
+
"watchMin": 1
|
|
1233
1312
|
}],
|
|
1234
1313
|
"maxDate": [{
|
|
1235
|
-
"watchMax":
|
|
1314
|
+
"watchMax": 1
|
|
1236
1315
|
}],
|
|
1237
1316
|
"start": [{
|
|
1238
1317
|
"watchValue": 0
|
|
@@ -1243,9 +1322,12 @@ const PnDatePicker = class extends index.Mixin(index$1.animateHeightFactory) {
|
|
|
1243
1322
|
"format": [{
|
|
1244
1323
|
"handleFormat": 0
|
|
1245
1324
|
}],
|
|
1246
|
-
"
|
|
1325
|
+
"dateId": [{
|
|
1247
1326
|
"watchId": 0
|
|
1248
1327
|
}],
|
|
1328
|
+
"pnId": [{
|
|
1329
|
+
"watchId": 1
|
|
1330
|
+
}],
|
|
1249
1331
|
"dateViewYear": [{
|
|
1250
1332
|
"watchView": 0
|
|
1251
1333
|
}],
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
var index = require('./index-
|
|
7
|
+
var index = require('./index-DWu-2oJc.js');
|
|
8
8
|
var index$1 = require('./index.cjs.js');
|
|
9
9
|
var alert_exclamation_circle = require('./alert_exclamation_circle-BiBEJK9P.js');
|
|
10
10
|
var alert_info_circle = require('./alert_info_circle-BaN88M1m.js');
|
|
11
11
|
|
|
12
|
-
const pnFieldsetCss = () => `${index.transformTag("pn-fieldset")}{display:inline-block}${index.transformTag("pn-fieldset")} .pn-fieldset{border:0;padding:0;margin:0;color:#2d2013;display:flex;flex-direction:column;font-size:1em}${index.transformTag("pn-fieldset")} .pn-fieldset-legend{float:left;font-weight:500;line-height:1.4;padding:0}${index.transformTag("pn-fieldset")} .pn-fieldset-
|
|
12
|
+
const pnFieldsetCss = () => `${index.transformTag("pn-fieldset")}{display:inline-block}${index.transformTag("pn-fieldset")} .pn-fieldset{border:0;padding:0;margin:0;color:#2d2013;display:flex;flex-direction:column;font-size:1em}${index.transformTag("pn-fieldset")} .pn-fieldset-legend{float:left;font-weight:500;line-height:1.4;padding:0}${index.transformTag("pn-fieldset")} .pn-fieldset-message{color:#5e554a;font-size:0.875em;font-weight:400;margin:0.25em 0 0 0;display:flex;flex-direction:column;gap:0.25em}${index.transformTag("pn-fieldset")} .pn-fieldset-message[hidden]{display:none}${index.transformTag("pn-fieldset")} .pn-fieldset-error{display:flex;flex-direction:row;flex-wrap:nowrap;gap:0.25em}${index.transformTag("pn-fieldset")} .pn-fieldset-error[hidden]{display:none}${index.transformTag("pn-fieldset")} .pn-fieldset-error>.pn-fieldset-message{color:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset-items{padding:0.75em 0;display:flex;flex-direction:column;gap:0.75em}${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-legend,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-message-wrapper{color:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-legend>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset[aria-invalid=true]>.pn-fieldset-message-wrapper>${index.transformTag("pn-icon")} .pn-icon-svg>path{fill:#a70707}${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-legend,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-helpertext,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message-wrapper{color:#2d2013}${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-legend>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-helpertext>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message>${index.transformTag("pn-icon")} .pn-icon-svg>path,${index.transformTag("pn-fieldset")} .pn-fieldset:disabled>.pn-fieldset-message-wrapper>${index.transformTag("pn-icon")} .pn-icon-svg>path{fill:#2d2013}`;
|
|
13
13
|
|
|
14
14
|
const PnFieldset = class {
|
|
15
15
|
constructor(hostRef) {
|
|
@@ -26,57 +26,63 @@ const PnFieldset = class {
|
|
|
26
26
|
legend;
|
|
27
27
|
/** Text message underneath the legend for more instruction or hints on how to fill in controls correctly. */
|
|
28
28
|
helpertext;
|
|
29
|
-
/** Give the fieldset a
|
|
30
|
-
|
|
29
|
+
/** Give the fieldset a HTML name. @category Native attributes */
|
|
30
|
+
name;
|
|
31
31
|
/**
|
|
32
32
|
* The id of the form you want the fieldset to be part of.
|
|
33
33
|
* If you want the inputs inside to be associated with a specific form, you need to set on those elements directly.
|
|
34
|
+
* @category Native attributes
|
|
34
35
|
*/
|
|
35
36
|
form;
|
|
36
|
-
/**
|
|
37
|
-
name;
|
|
38
|
-
/** Disable all of the inputs inside of the fieldset. */
|
|
37
|
+
/** Disable all of the inputs inside of the fieldset. @category Native attributes */
|
|
39
38
|
disabled = false;
|
|
40
|
-
/** Set the fieldset as `invalid`, will add red error styles. */
|
|
39
|
+
/** Set the fieldset as `invalid`, will add red error styles. @category Features */
|
|
41
40
|
invalid = false;
|
|
42
|
-
/** Error message, applies warning styles and icon. */
|
|
41
|
+
/** Error message, applies warning styles and icon. @category Features */
|
|
43
42
|
error;
|
|
43
|
+
/** Set a custom ID for the fieldset. @since v7.25.0 @category HTML attributes */
|
|
44
|
+
pnId = this.id;
|
|
45
|
+
/** Set a custom ID for the fieldset. @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
46
|
+
fieldsetId = this.id;
|
|
44
47
|
handleId() {
|
|
45
|
-
this.idHelpertext = `${this.
|
|
48
|
+
this.idHelpertext = `${this.getId()}-helpertext`;
|
|
46
49
|
}
|
|
47
|
-
|
|
48
|
-
this.
|
|
50
|
+
connectedCallback() {
|
|
51
|
+
this.mo = new MutationObserver(() => index.forceUpdate(this.hostElement));
|
|
52
|
+
this.mo.observe(this.hostElement, { childList: true, subtree: true });
|
|
49
53
|
}
|
|
50
|
-
|
|
54
|
+
disconnectedCallback() {
|
|
51
55
|
if (this.mo)
|
|
52
56
|
this.mo.disconnect();
|
|
53
|
-
this.mo = new MutationObserver(() => index.forceUpdate(this.hostElement));
|
|
54
|
-
this.mo.observe(this.hostElement.querySelector('.pn-fieldset'), { childList: true, subtree: true });
|
|
55
57
|
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
if (this.form) {
|
|
63
|
-
this.hostElement.querySelector('fieldset')?.setAttribute('form', this.form);
|
|
64
|
-
}
|
|
58
|
+
getId() {
|
|
59
|
+
return this.pnId || this.fieldsetId || this.id;
|
|
60
|
+
}
|
|
61
|
+
hasHelpertext() {
|
|
62
|
+
const helpertextSlot = this.hostElement.querySelector('[slot="helpertext"]');
|
|
63
|
+
return !!this.helpertext || helpertextSlot?.textContent?.trim().length > 0;
|
|
65
64
|
}
|
|
66
65
|
hasError() {
|
|
67
|
-
|
|
66
|
+
const errorSlot = this.hostElement.querySelector('[slot="error"]');
|
|
67
|
+
return !!this.error || errorSlot?.textContent?.trim().length > 0;
|
|
68
|
+
}
|
|
69
|
+
isInvalid() {
|
|
70
|
+
return this.invalid || this.hasError();
|
|
68
71
|
}
|
|
69
|
-
|
|
72
|
+
getIcon() {
|
|
70
73
|
if (this.disabled)
|
|
71
74
|
return alert_info_circle.alert_info_circle;
|
|
72
75
|
return alert_exclamation_circle.alert_exclamation_circle;
|
|
73
76
|
}
|
|
74
77
|
render() {
|
|
75
|
-
return (index.h(index.Host, { key: '
|
|
78
|
+
return (index.h(index.Host, { key: '908a403f3fb8b4779393f4ca0a4f17f518ba53a7' }, index.h("fieldset", { key: '97b321f776944a0d27f1b1096a967b2c9d9c9fcd', id: this.getId(), name: this.name, form: this.form, class: "pn-fieldset", disabled: this.disabled, "aria-describedby": this.hasHelpertext() ? this.idHelpertext : undefined, "aria-invalid": this.isInvalid().toString() }, index.h("legend", { key: 'a230416f33f787624f90977054c6492f1516dba6', class: "pn-fieldset-legend" }, this.legend), index.h("p", { key: '6911c6e63588c36bc0e314d7b3c8b81df2282579', id: this.idHelpertext, class: "pn-fieldset-message", hidden: !this.hasHelpertext() }, index.h("span", { key: '3370e13a7cf93741a4aa76880533b11c320aea03' }, this.helpertext), index.h("slot", { key: '0365489d121f3fcfa1211e3c2dcf2881f849940d', name: "helpertext" })), index.h("div", { key: '23d806e61d39d509ad07f0f68c002a1962332bf4', class: "pn-fieldset-items" }, index.h("slot", { key: 'a2ead121001e5f751f779957fbbb44716e64274c' })), index.h("div", { key: '075c709c13a8363be1b1a0b661e3621419a69333', class: "pn-fieldset-error", role: "alert", hidden: !this.hasError() }, index.h("pn-icon", { key: '0c4e969436033de98814135853e51388862e0812', icon: this.getIcon(), color: "warning" }), index.h("p", { key: 'd94095bee0a7e4fdc3962db9666dd4ffba7dfa50', class: "pn-fieldset-message" }, index.h("span", { key: '0c3808a66242f11afdc1ea5053517e965eeb3a93' }, this.error), index.h("slot", { key: 'ad9604de305ce00ef164cc999562707e923bdd83', name: "error" }))))));
|
|
76
79
|
}
|
|
77
80
|
static get watchers() { return {
|
|
78
81
|
"fieldsetId": [{
|
|
79
82
|
"handleId": 0
|
|
83
|
+
}],
|
|
84
|
+
"pnId": [{
|
|
85
|
+
"handleId": 1
|
|
80
86
|
}]
|
|
81
87
|
}; }
|
|
82
88
|
};
|