@postnord/pn-marketweb-components 4.3.6 → 4.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/{convert-9361e443.js → convert-aa209554.js} +27 -17
- package/cjs/convert-aa209554.js.map +1 -0
- package/cjs/pn-find-price.cjs.entry.js +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js +1 -1
- package/cjs/pn-teaser-card.cjs.entry.js.map +1 -1
- package/collection/components/cards/pn-teaser-card/pn-teaser-card.css +2 -2
- package/components/convert.js +26 -16
- package/components/convert.js.map +1 -1
- package/components/pn-teaser-card.js +1 -1
- package/components/pn-teaser-card.js.map +1 -1
- package/esm/{convert-ecca01b6.js → convert-a9a18794.js} +27 -17
- package/esm/convert-a9a18794.js.map +1 -0
- package/esm/pn-find-price.entry.js +1 -1
- package/esm/pn-find-service-and-price.entry.js +1 -1
- package/esm/pn-product-pricelist.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js.map +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/p-00e6bb4b.js +2 -0
- package/pn-market-web-components/p-00e6bb4b.js.map +1 -0
- package/pn-market-web-components/{p-c4059cc1.entry.js → p-181e40ee.entry.js} +2 -2
- package/pn-market-web-components/{p-6d263c6e.entry.js → p-96d81eb2.entry.js} +2 -2
- package/pn-market-web-components/p-96d81eb2.entry.js.map +1 -0
- package/pn-market-web-components/{p-f8ccc718.entry.js → p-a0d7154f.entry.js} +2 -2
- package/pn-market-web-components/{p-413afe7c.entry.js → p-c18154a4.entry.js} +2 -2
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/cem.json +12220 -0
- package/umd/modules/@postnord/web-components/cjs/{index-CfUQZtlH.js → index-DWu-2oJc.js} +144 -85
- package/umd/modules/@postnord/web-components/cjs/{index-CNdVg5VI.js → index-vOySuOUW.js} +1 -1
- package/umd/modules/@postnord/web-components/cjs/index.cjs.js +18 -16
- package/umd/modules/@postnord/web-components/cjs/loader.cjs.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-accordion-row.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-accordion.cjs.entry.js +5 -4
- package/umd/modules/@postnord/web-components/cjs/pn-action-menu.cjs.entry.js +6 -6
- package/umd/modules/@postnord/web-components/cjs/pn-button-dropdown.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-button_2.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-card.cjs.entry.js +4 -4
- package/umd/modules/@postnord/web-components/cjs/pn-checkbox.cjs.entry.js +63 -21
- package/umd/modules/@postnord/web-components/cjs/pn-choice-chip.cjs.entry.js +38 -18
- package/umd/modules/@postnord/web-components/cjs/pn-counter.cjs.entry.js +71 -37
- package/umd/modules/@postnord/web-components/cjs/pn-date-picker.cjs.entry.js +185 -103
- package/umd/modules/@postnord/web-components/cjs/pn-fieldset.cjs.entry.js +33 -27
- package/umd/modules/@postnord/web-components/cjs/pn-file-upload.cjs.entry.js +73 -42
- package/umd/modules/@postnord/web-components/cjs/pn-footer.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-header.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-icon_2.cjs.entry.js +8 -10
- package/umd/modules/@postnord/web-components/cjs/pn-illustration.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-input.cjs.entry.js +122 -89
- package/umd/modules/@postnord/web-components/cjs/pn-modal.cjs.entry.js +24 -12
- package/umd/modules/@postnord/web-components/cjs/pn-multiselect.cjs.entry.js +136 -52
- package/umd/modules/@postnord/web-components/cjs/pn-ocr-search.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-dropdown-item.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav-item.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-page-nav.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-pagination.cjs.entry.js +4 -4
- package/umd/modules/@postnord/web-components/cjs/pn-progress-bar.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator-step.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-progress-indicator.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-progress-stepper.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-radio-button.cjs.entry.js +61 -20
- package/umd/modules/@postnord/web-components/cjs/pn-range.cjs.entry.js +88 -43
- package/umd/modules/@postnord/web-components/cjs/pn-read-only-button.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-search-field.cjs.entry.js +42 -25
- package/umd/modules/@postnord/web-components/cjs/pn-segment.cjs.entry.js +16 -11
- package/umd/modules/@postnord/web-components/cjs/pn-segmented-control.cjs.entry.js +21 -21
- package/umd/modules/@postnord/web-components/cjs/pn-select.cjs.entry.js +90 -35
- package/umd/modules/@postnord/web-components/cjs/pn-tab.cjs.entry.js +15 -10
- package/umd/modules/@postnord/web-components/cjs/pn-table.cjs.entry.js +1 -1
- package/umd/modules/@postnord/web-components/cjs/pn-tablist.cjs.entry.js +5 -4
- package/umd/modules/@postnord/web-components/cjs/pn-text-link.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-textarea.cjs.entry.js +88 -34
- package/umd/modules/@postnord/web-components/cjs/pn-tile.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/pn-toast.cjs.entry.js +5 -5
- package/umd/modules/@postnord/web-components/cjs/pn-toggle-switch.cjs.entry.js +56 -20
- package/umd/modules/@postnord/web-components/cjs/pn-tooltip.cjs.entry.js +2 -2
- package/umd/modules/@postnord/web-components/cjs/pn-wizard.cjs.entry.js +71 -49
- package/umd/modules/@postnord/web-components/cjs/pn-zipcode-search.cjs.entry.js +3 -3
- package/umd/modules/@postnord/web-components/cjs/postnord-web-components.cjs.js +3 -3
- package/umd/modules/@postnord/web-components/collection/collection-manifest.json +4 -1
- package/umd/modules/@postnord/web-components/collection/components/buttons/pn-action-menu/pn-action-menu.css +1 -10
- package/umd/modules/@postnord/web-components/collection/components/content/pn-accordion/pn-accordion.js +5 -4
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.css +13 -9
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-icon/pn-icon.js +12 -14
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.css +6 -2
- package/umd/modules/@postnord/web-components/collection/components/design-tokens/pn-illustration/pn-illustration.js +7 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.css +4 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-modal/pn-modal.js +71 -13
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-bar/pn-progress-bar.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator-step/pn-progress-indicator-step.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-indicator/pn-progress-indicator.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-progress-stepper/pn-progress-stepper.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-spinner/pn-spinner.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-toast/pn-toast.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-tooltip/pn-tooltip.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.css +5 -5
- package/umd/modules/@postnord/web-components/collection/components/feedback/pn-wizard/pn-wizard.js +70 -45
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.css +3 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-checkbox/pn-checkbox.js +213 -52
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-choice-chip/pn-choice-chip.js +128 -68
- package/umd/modules/@postnord/web-components/collection/components/input/pn-counter/pn-counter.js +305 -154
- package/umd/modules/@postnord/web-components/collection/components/input/pn-date-picker/pn-date-picker.js +562 -275
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.css +21 -16
- package/umd/modules/@postnord/web-components/collection/components/input/pn-fieldset/pn-fieldset.js +114 -54
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.css +37 -50
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/pn-file-upload.js +159 -97
- package/umd/modules/@postnord/web-components/collection/components/input/pn-file-upload/translation.js +7 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-input/pn-input.js +415 -264
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.css +13 -24
- package/umd/modules/@postnord/web-components/collection/components/input/pn-multiselect/pn-multiselect.js +316 -131
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.css +3 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-radio-button/pn-radio-button.js +223 -63
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.css +3 -0
- package/umd/modules/@postnord/web-components/collection/components/input/pn-range/pn-range.js +357 -191
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.css +6 -9
- package/umd/modules/@postnord/web-components/collection/components/input/pn-search-field/pn-search-field.js +177 -90
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.css +1 -1
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/pn-segmented-control.js +24 -24
- package/umd/modules/@postnord/web-components/collection/components/input/pn-segmented-control/segment/pn-segment.js +84 -37
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.css +18 -14
- package/umd/modules/@postnord/web-components/collection/components/input/pn-select/pn-select.js +237 -90
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.css +6 -5
- package/umd/modules/@postnord/web-components/collection/components/input/pn-textarea/pn-textarea.js +255 -115
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.css +5 -3
- package/umd/modules/@postnord/web-components/collection/components/input/pn-toggle-switch/pn-toggle-switch.js +216 -68
- package/umd/modules/@postnord/web-components/collection/components/layout/pn-header/pn-header.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.css +2 -2
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-card/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-footer/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/dropdown-item/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/item/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-page-nav/menu/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-pagination/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/pn-tablist.js +4 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.css +3 -3
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tablist/tab/pn-tab.js +11 -6
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-text-link/pn-text-link.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/navigation/pn-tile/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-ocr-search/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/collection/components/web-components/pn-zipcode-search/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/collection/globals/helpers.js +16 -14
- package/umd/modules/@postnord/web-components/components/helpers.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-accordion.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-action-menu.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-card.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-checkbox.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-choice-chip.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-counter.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-date-picker.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-fieldset.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-file-upload.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-footer.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-header.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-icon2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-illustration2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-input2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-modal.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-multiselect.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-ocr-search.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-dropdown-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav-item.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-page-nav.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-pagination.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-bar2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator-step.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-indicator.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-progress-stepper2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-radio-button.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-range.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-search-field2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segment.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-segmented-control.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-select2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-spinner2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tab.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tablist.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-text-link2.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-textarea.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tile.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-toast.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-toggle-switch.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-tooltip.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-wizard.js +1 -1
- package/umd/modules/@postnord/web-components/components/pn-zipcode-search.js +1 -1
- package/umd/modules/@postnord/web-components/esm/{index-CosyroON.js → index-DyhO6xPY.js} +1 -1
- package/umd/modules/@postnord/web-components/esm/{index-CAEP792y.js → index-XKg-ydzH.js} +144 -85
- package/umd/modules/@postnord/web-components/esm/index.js +19 -17
- package/umd/modules/@postnord/web-components/esm/loader.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-accordion-row.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-accordion.entry.js +5 -4
- package/umd/modules/@postnord/web-components/esm/pn-action-menu.entry.js +6 -6
- package/umd/modules/@postnord/web-components/esm/pn-button-dropdown.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-button_2.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-card.entry.js +4 -4
- package/umd/modules/@postnord/web-components/esm/pn-checkbox.entry.js +63 -21
- package/umd/modules/@postnord/web-components/esm/pn-choice-chip.entry.js +38 -18
- package/umd/modules/@postnord/web-components/esm/pn-counter.entry.js +71 -37
- package/umd/modules/@postnord/web-components/esm/pn-date-picker.entry.js +185 -103
- package/umd/modules/@postnord/web-components/esm/pn-fieldset.entry.js +33 -27
- package/umd/modules/@postnord/web-components/esm/pn-file-upload.entry.js +73 -42
- package/umd/modules/@postnord/web-components/esm/pn-footer.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-header.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-icon_2.entry.js +8 -10
- package/umd/modules/@postnord/web-components/esm/pn-illustration.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-input.entry.js +122 -89
- package/umd/modules/@postnord/web-components/esm/pn-modal.entry.js +24 -12
- package/umd/modules/@postnord/web-components/esm/pn-multiselect.entry.js +137 -53
- package/umd/modules/@postnord/web-components/esm/pn-ocr-search.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-dropdown-item.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-page-nav-item.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-page-nav.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-pagination.entry.js +4 -4
- package/umd/modules/@postnord/web-components/esm/pn-progress-bar.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator-step.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-progress-indicator.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-progress-stepper.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-radio-button.entry.js +61 -20
- package/umd/modules/@postnord/web-components/esm/pn-range.entry.js +88 -43
- package/umd/modules/@postnord/web-components/esm/pn-read-only-button.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-search-field.entry.js +42 -25
- package/umd/modules/@postnord/web-components/esm/pn-segment.entry.js +16 -11
- package/umd/modules/@postnord/web-components/esm/pn-segmented-control.entry.js +21 -21
- package/umd/modules/@postnord/web-components/esm/pn-select.entry.js +90 -35
- package/umd/modules/@postnord/web-components/esm/pn-tab.entry.js +15 -10
- package/umd/modules/@postnord/web-components/esm/pn-table.entry.js +1 -1
- package/umd/modules/@postnord/web-components/esm/pn-tablist.entry.js +5 -4
- package/umd/modules/@postnord/web-components/esm/pn-text-link.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-textarea.entry.js +88 -34
- package/umd/modules/@postnord/web-components/esm/pn-tile.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/pn-toast.entry.js +5 -5
- package/umd/modules/@postnord/web-components/esm/pn-toggle-switch.entry.js +56 -20
- package/umd/modules/@postnord/web-components/esm/pn-tooltip.entry.js +2 -2
- package/umd/modules/@postnord/web-components/esm/pn-wizard.entry.js +71 -49
- package/umd/modules/@postnord/web-components/esm/pn-zipcode-search.entry.js +3 -3
- package/umd/modules/@postnord/web-components/esm/postnord-web-components.js +4 -4
- package/umd/modules/@postnord/web-components/hydrate/index.js +1715 -940
- package/umd/modules/@postnord/web-components/hydrate/index.mjs +1715 -940
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-gnu/rollup.linux-x64-gnu.node +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@rollup/rollup-linux-x64-musl/rollup.linux-x64-musl.node +0 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.cjs +3 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/index.js +3 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/cli/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/compiler/stencil.js +3312 -561
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/connector.html +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/dev-server/server-process.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-data/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/app-globals/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/index.js +246 -179
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/patch-browser.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/client/shadow-css.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/index.js +245 -180
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/hydrate/runner.js +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-core/index.d.ts +1 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-ext-modules.d.ts +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-private.d.ts +49 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-compiler.d.ts +51 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-docs.d.ts +26 -0
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/stencil-public-runtime.d.ts +23 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/index.js +238 -169
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/internal/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.cjs +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.d.ts +12 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/index.js +59 -22
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/mock-doc/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/package.json +10 -10
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/index.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/screenshot/pixel-match.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/460.node-fetch.js +3 -3
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/autoprefixer.js +2 -2
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/glob.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/graceful-fs.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/index.js +32 -32
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/node-fetch.js +4 -4
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/package.json +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/prompts.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/sys/node/worker.js +1 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/index.js +33 -1
- package/umd/modules/@postnord/web-components/node_modules/@stencil/core/testing/package.json +1 -1
- package/umd/modules/@postnord/web-components/package.json +16 -16
- package/umd/modules/@postnord/web-components/postnord-web-components/index.esm.js +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-ea50ecd2.entry.js → p-020ee3f4.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-060b6ad2.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0bf70d44.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1ec52623.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-27c71f60.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-292a7591.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3d2cac86.entry.js → p-3709c995.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3db02038.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-2f4ad4a4.entry.js → p-4b9fb0fc.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-506a801d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-518651ad.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-54917d9f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-56ade97b.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-64207923.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-665af57e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6d85c967.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-6e407015.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-01ac1c67.entry.js → p-720b8b90.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-7aea3de5.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-7b6ae520.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-83d02093.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-88344f8d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-3c96cb61.entry.js → p-895acf7f.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8cedf2e0.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-91c6a8cf.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-98a37be9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9a6c90e4.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9d2ee77a.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-9d56fb64.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-BlM_xfdt.js → p-BWAVaTWQ.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-XKg-ydzH.js +6 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a1f92f19.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-a31d93db.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-aa15469e.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-db2b7e5d.entry.js → p-b45e58df.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b72f9866.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-b0710b87.entry.js → p-b7a2e5b0.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c09179d6.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-38e44ed0.entry.js → p-ce2c2395.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d228b929.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d71054df.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d81b4ede.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e11b4af5.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/{p-c4c4c75b.entry.js → p-e5574624.entry.js} +1 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e6ad75f9.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e6cd4c7f.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ede550f0.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ef00ef4d.entry.js +5 -0
- package/umd/modules/@postnord/web-components/postnord-web-components/postnord-web-components.esm.js +1 -1
- package/umd/modules/@postnord/web-components/types/components/buttons/pn-action-menu/pn-action-menu.d.ts +111 -0
- package/umd/modules/@postnord/web-components/types/components/content/pn-accordion/pn-accordion.d.ts +2 -2
- package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-icon/pn-icon.d.ts +5 -7
- package/umd/modules/@postnord/web-components/types/components/design-tokens/pn-illustration/pn-illustration.d.ts +8 -2
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-modal/pn-modal.d.ts +17 -6
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-toast/pn-toast.d.ts +100 -0
- package/umd/modules/@postnord/web-components/types/components/feedback/pn-wizard/pn-wizard.d.ts +6 -1
- package/umd/modules/@postnord/web-components/types/components/input/pn-checkbox/pn-checkbox.d.ts +124 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-choice-chip/pn-choice-chip.d.ts +31 -15
- package/umd/modules/@postnord/web-components/types/components/input/pn-counter/pn-counter.d.ts +51 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-date-picker/pn-date-picker.d.ts +338 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-fieldset/pn-fieldset.d.ts +24 -15
- package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/pn-file-upload.d.ts +36 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-file-upload/translation.d.ts +7 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-input/pn-input.d.ts +89 -66
- package/umd/modules/@postnord/web-components/types/components/input/pn-multiselect/pn-multiselect.d.ts +265 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-radio-button/pn-radio-button.d.ts +124 -0
- package/umd/modules/@postnord/web-components/types/components/input/pn-range/pn-range.d.ts +73 -42
- package/umd/modules/@postnord/web-components/types/components/input/pn-search-field/pn-search-field.d.ts +32 -21
- package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/pn-segmented-control.d.ts +19 -18
- package/umd/modules/@postnord/web-components/types/components/input/pn-segmented-control/segment/pn-segment.d.ts +12 -9
- package/umd/modules/@postnord/web-components/types/components/input/pn-select/pn-select.d.ts +51 -31
- package/umd/modules/@postnord/web-components/types/components/input/pn-textarea/pn-textarea.d.ts +58 -27
- package/umd/modules/@postnord/web-components/types/components/input/pn-toggle-switch/pn-toggle-switch.d.ts +36 -14
- package/umd/modules/@postnord/web-components/types/components.d.ts +1851 -511
- package/umd/modules/@postnord/web-components/types/globals/mixins/index.d.ts +21 -0
- package/umd/modules/@postnord/web-components/types/stencil-public-runtime.d.ts +23 -2
- package/umd/modules/@postnord/web-components/vscode-data.json +218 -38
- package/umd/pn-marketweb-salesforce-header.js +1 -1
- package/cjs/convert-9361e443.js.map +0 -1
- package/esm/convert-ecca01b6.js.map +0 -1
- package/pn-market-web-components/p-63ff7fa2.js +0 -2
- package/pn-market-web-components/p-63ff7fa2.js.map +0 -1
- package/pn-market-web-components/p-6d263c6e.entry.js.map +0 -1
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0dd15cc3.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0e94a4dd.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-0ed2ee53.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-109ba1fc.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-153311c8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-1a3c49ba.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2610f8ab.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-267c323e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a364778.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2a682ff9.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-2cce8a9f.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-306ec758.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3d459401.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-3deb5a9e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-41c09d4d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-484dfaa4.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-50116c0d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-502b8430.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-5b7c1333.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-67f55491.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-838c17b9.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-849d48c6.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-89aaa3c8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-8b2b6f5d.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-93db2b9e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-97ffc4b3.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-CAEP792y.js +0 -6
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b3c4e3e8.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-b8c4423b.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-ba59528f.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c0ae367c.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-c843ae5e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d1e27524.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d214e930.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-d7091312.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e3fb693e.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-e83de0b1.entry.js +0 -5
- package/umd/modules/@postnord/web-components/postnord-web-components/p-edc28eee.entry.js +0 -5
- /package/pn-market-web-components/{p-c4059cc1.entry.js.map → p-181e40ee.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-f8ccc718.entry.js.map → p-a0d7154f.entry.js.map} +0 -0
- /package/pn-market-web-components/{p-413afe7c.entry.js.map → p-c18154a4.entry.js.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Built with Stencil
|
|
3
3
|
* By PostNord.
|
|
4
4
|
*/
|
|
5
|
-
import { h, Host, Mixin } from "@stencil/core";
|
|
5
|
+
import { h, Host, Mixin, forceUpdate, } from "@stencil/core";
|
|
6
6
|
import { awaitTopbar, uuidv4, en, getTotalHeightOffset, getMenuWidth } from "../../../index";
|
|
7
7
|
import { animateHeightFactory } from "../../../globals/mixins/index";
|
|
8
8
|
import { translations } from "./translations";
|
|
@@ -27,13 +27,14 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
27
27
|
super();
|
|
28
28
|
}
|
|
29
29
|
id = `pn-date-picker-${uuidv4()}`;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
idStart = `${this.id}-from`;
|
|
31
|
+
idEnd = `${this.id}-to`;
|
|
32
|
+
idStartButton = `${this.id}-from-button`;
|
|
33
|
+
idEndButton = `${this.id}-to-button`;
|
|
34
34
|
idHelper = `${this.id}-helper`;
|
|
35
35
|
idError = `${this.id}-error`;
|
|
36
36
|
idCalendar = `${this.id}-calendar`;
|
|
37
|
+
mo;
|
|
37
38
|
calendarElement;
|
|
38
39
|
today = getToday();
|
|
39
40
|
separators = [];
|
|
@@ -43,7 +44,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
43
44
|
hostElement;
|
|
44
45
|
open = false;
|
|
45
46
|
openUp = false;
|
|
46
|
-
|
|
47
|
+
selectingEnd = false;
|
|
47
48
|
grid;
|
|
48
49
|
viewYearStart = null;
|
|
49
50
|
dateViewYear;
|
|
@@ -57,72 +58,67 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
57
58
|
labelTo;
|
|
58
59
|
/** Provide a helpertext for the date input. */
|
|
59
60
|
helpertext;
|
|
60
|
-
/**
|
|
61
|
+
/** Manually set language; this will be inherited from the topbar. */
|
|
62
|
+
language = undefined;
|
|
63
|
+
/** Set a predefined value for the from date (input value). @see {@link format} @category Native attributes */
|
|
61
64
|
start = '';
|
|
62
65
|
/**
|
|
63
|
-
* Set a predefined value for the from date.
|
|
66
|
+
* Set a predefined value for the from date. (input value end)
|
|
64
67
|
*
|
|
65
68
|
* @see {@link range}
|
|
66
69
|
* @see {@link format}
|
|
70
|
+
* @category Native attributes
|
|
67
71
|
*/
|
|
68
72
|
end = '';
|
|
69
|
-
/**
|
|
70
|
-
* Set the date format of the value.
|
|
71
|
-
*
|
|
72
|
-
* While you can set any date value from the Dayjs documentation,
|
|
73
|
-
* we strongly recommend you pick a simple format that you can also type manually.
|
|
74
|
-
*
|
|
75
|
-
* @since v7.6.0
|
|
76
|
-
* @see {@link https://day.js.org/docs/en/display/format Day.js format documentation.}
|
|
77
|
-
*/
|
|
78
|
-
format = 'YYYY-MM-DD';
|
|
79
|
-
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 */
|
|
80
|
-
compact = false;
|
|
81
|
-
/** Manually set language; this will be inherited from the topbar. */
|
|
82
|
-
language = null;
|
|
83
|
-
/** Set a custom ID for the calendar. @since v7.6.0 @category HTML attributes */
|
|
84
|
-
dateId = this.id;
|
|
85
|
-
/** HTML input name @since v7.6.0 @category HTML attributes */
|
|
73
|
+
/** HTML input name @since v7.6.0 @category Native attributes*/
|
|
86
74
|
name;
|
|
75
|
+
/** HTML input name @since v7.25.0 @category Native attributes */
|
|
76
|
+
nameEnd;
|
|
87
77
|
/**
|
|
88
78
|
* Placeholder for the input field (defaults to the format prop).
|
|
89
79
|
* @see {@link format}
|
|
90
|
-
* @category
|
|
80
|
+
* @category Native attributes
|
|
91
81
|
**/
|
|
92
|
-
placeholder
|
|
82
|
+
placeholder;
|
|
93
83
|
/**
|
|
94
84
|
* Placeholder for end date (defaults to the format prop).
|
|
95
85
|
* @see {@link format}
|
|
96
|
-
* @
|
|
86
|
+
* @deprecated Use `placeholder-end` instead
|
|
87
|
+
* @category Native attributes
|
|
88
|
+
**/
|
|
89
|
+
endPlaceholder;
|
|
90
|
+
/**
|
|
91
|
+
* Placeholder for end date (defaults to the format prop).
|
|
92
|
+
* @see {@link format}
|
|
93
|
+
* @since v7.25.0
|
|
94
|
+
* @category Native attributes
|
|
97
95
|
**/
|
|
98
|
-
|
|
99
|
-
/** Set the input `autocomplete` attribute. @category
|
|
96
|
+
placeholderEnd;
|
|
97
|
+
/** Set the input `autocomplete` attribute. @category Native attributes */
|
|
100
98
|
autocomplete;
|
|
101
|
-
/** Set the input `list` attribute for the first date input. @since v7.6.0 @category
|
|
99
|
+
/** Set the input `list` attribute for the first date input. @since v7.6.0 @category Native attributes */
|
|
102
100
|
list;
|
|
103
|
-
/** Set the input `list` attribute for the second date input. @since v7.6.0 @category
|
|
101
|
+
/** Set the input `list` attribute for the second date input. @since v7.6.0 @category Native attributes */
|
|
104
102
|
listEnd;
|
|
105
|
-
/** Set the HTML pattern prop on the input elements. Make sure it matches the format. @since v7.6.0 @category
|
|
103
|
+
/** Set the HTML pattern prop on the input elements. Make sure it matches the format. @since v7.6.0 @category Native attributes */
|
|
106
104
|
pattern;
|
|
107
|
-
/**
|
|
108
|
-
|
|
105
|
+
/** Set the date picker as required. @category Native attributes */
|
|
106
|
+
required = false;
|
|
107
|
+
/** Set the date picker as readonly. @since v7.6.0 @category Native attributes */
|
|
108
|
+
readonly = false;
|
|
109
|
+
/** Set the date picker as disabled. @since v7.6.0 @category Native attributes */
|
|
110
|
+
disabled = false;
|
|
109
111
|
/**
|
|
110
|
-
* Set
|
|
111
|
-
* By default, you can select an unlimited range.
|
|
112
|
+
* Set the date format of the value.
|
|
112
113
|
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
114
|
+
* While you can set any date value from the Dayjs documentation,
|
|
115
|
+
* we strongly recommend you pick a simple format that you can also type manually.
|
|
115
116
|
*
|
|
117
|
+
* @since v7.6.0
|
|
118
|
+
* @see {@link https://day.js.org/docs/en/display/format Day.js format documentation.}
|
|
116
119
|
* @category Features
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
rangeLimit;
|
|
120
|
-
/** The calendar grid is shown as default. You can set either `months` or `years` as your first choice. @since v7.6.0 @category Features */
|
|
121
|
-
view = CALENDAR;
|
|
122
|
-
/** Make the calendar open upwards by default. Opens downwards if there is not enough space. @since v7.6.0 @category Features */
|
|
123
|
-
calendarUp = false;
|
|
124
|
-
/** Show weekend numbers to the left of the calendar grid. @since v7.6.0 @category Features */
|
|
125
|
-
weekNumbers = false;
|
|
120
|
+
*/
|
|
121
|
+
format = 'YYYY-MM-DD';
|
|
126
122
|
/** Disable the automatic insertion of separators when typing in the input. @since v7.6.0 @category Features */
|
|
127
123
|
disableTypeAhead = false;
|
|
128
124
|
/** Remove the option to select dates on weekends. @category Features */
|
|
@@ -136,25 +132,72 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
136
132
|
* @category Features
|
|
137
133
|
**/
|
|
138
134
|
disabledDates;
|
|
139
|
-
/** If you use a format with an unknown length, disable the max length. @category Features */
|
|
135
|
+
/** If you use a format with an unknown length, disable the max length. @since 7.11.3 @category Features */
|
|
140
136
|
disableMaxLength = false;
|
|
141
|
-
/**
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
137
|
+
/** Allow the selection of a date range. @category Features */
|
|
138
|
+
range = false;
|
|
139
|
+
/**
|
|
140
|
+
* Set a limit on how many days one may select.
|
|
141
|
+
* By default, you can select an unlimited range.
|
|
142
|
+
*
|
|
143
|
+
* @todo Create a range limit function.
|
|
144
|
+
* @see {@link range}
|
|
145
|
+
*
|
|
146
|
+
* @category Features
|
|
147
|
+
* @hide true
|
|
148
|
+
**/
|
|
149
|
+
rangeLimit;
|
|
150
|
+
/** Show weekend numbers to the left of the calendar grid. @since v7.6.0 @category Features */
|
|
151
|
+
weekNumbers = false;
|
|
152
|
+
/** Set the date picker label as compact. If used, the `placeholder` will no longer be displayed. @since v7.21.0 @category Features */
|
|
153
|
+
compact = false;
|
|
154
|
+
/** Make the calendar open upwards by default. Opens downwards if there is not enough space. @since v7.6.0 @category Features */
|
|
155
|
+
calendarUp = false;
|
|
156
|
+
/** The calendar grid is shown as default. You can set either `months` or `years` as your first choice. @since v7.6.0 @category Features */
|
|
157
|
+
view = 'calendar';
|
|
158
|
+
/** Trigger the invalid state without an error message. @since v7.6.0 @category Features */
|
|
150
159
|
invalid = false;
|
|
160
|
+
/** Set an error message for the date picker. Overwrites the helpertext if used at the same time. @since v7.6.0 @category Features */
|
|
161
|
+
error;
|
|
162
|
+
/** 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 */
|
|
163
|
+
pnId;
|
|
164
|
+
/**
|
|
165
|
+
* Provide the label via an aria attribute.
|
|
166
|
+
* We strongly recommend you use the `label-from` prop instead.
|
|
167
|
+
* @since v7.25.0
|
|
168
|
+
* @category HTML attributes
|
|
169
|
+
*/
|
|
170
|
+
pnAriaLabel;
|
|
171
|
+
/**
|
|
172
|
+
* Provide the label for the end input via an aria attribute.
|
|
173
|
+
* We strongly recommend you use the `label-to` prop instead.
|
|
174
|
+
* @since v7.25.0
|
|
175
|
+
* @category HTML attributes
|
|
176
|
+
*/
|
|
177
|
+
pnAriaLabelEnd;
|
|
178
|
+
/**
|
|
179
|
+
* Provide the label from another element via its ID.
|
|
180
|
+
* We strongly recommend you use the `label-from` prop instead.
|
|
181
|
+
* @since v7.25.0
|
|
182
|
+
* @category HTML attributes
|
|
183
|
+
*/
|
|
184
|
+
pnAriaLabelledby;
|
|
185
|
+
/**
|
|
186
|
+
* Provide the label for the end input from another element via its ID.
|
|
187
|
+
* We strongly recommend you use the `label-to` prop instead.
|
|
188
|
+
* @since v7.25.0
|
|
189
|
+
* @category HTML attributes
|
|
190
|
+
*/
|
|
191
|
+
pnAriaLabelledbyEnd;
|
|
192
|
+
/** Set a custom ID for the calendar. @since v7.6.0 @deprecated Use `pn-id` instead. @category HTML attributes */
|
|
193
|
+
dateId;
|
|
151
194
|
/**
|
|
152
195
|
* Earliest date possible, this will determine how many years back the date picker will show.
|
|
153
196
|
*
|
|
154
197
|
* Remember to use the same format that you have in the `format` prop.
|
|
155
198
|
* @see {@link format}
|
|
156
199
|
* @example "2024-05-25"
|
|
157
|
-
* @category
|
|
200
|
+
* @category Features
|
|
158
201
|
**/
|
|
159
202
|
minDate = null;
|
|
160
203
|
watchMin() {
|
|
@@ -169,7 +212,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
169
212
|
* Remember to use the same format that you have in the `format` prop.
|
|
170
213
|
* @see {@link format}
|
|
171
214
|
* @example "2024-06-25"
|
|
172
|
-
* @category
|
|
215
|
+
* @category Features
|
|
173
216
|
**/
|
|
174
217
|
maxDate = null;
|
|
175
218
|
watchMax() {
|
|
@@ -213,13 +256,13 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
213
256
|
.forEach((item, index) => this.separatorRegex.exec(item) && this.separators.push({ name: item, index }));
|
|
214
257
|
}
|
|
215
258
|
watchId() {
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
this.idHelper = `${this.
|
|
221
|
-
this.idError = `${this.
|
|
222
|
-
this.idCalendar = `${this.
|
|
259
|
+
this.idStart = this.getId();
|
|
260
|
+
this.idEnd = `${this.getId()}-end`;
|
|
261
|
+
this.idStartButton = `${this.idStart}-from-button`;
|
|
262
|
+
this.idEndButton = `${this.idEnd}-to-button`;
|
|
263
|
+
this.idHelper = `${this.idStart}-helper`;
|
|
264
|
+
this.idError = `${this.idStart}-error`;
|
|
265
|
+
this.idCalendar = `${this.idStart}-calendar`;
|
|
223
266
|
}
|
|
224
267
|
watchView() {
|
|
225
268
|
const data = this.getCurrentDateObject();
|
|
@@ -313,10 +356,18 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
313
356
|
return;
|
|
314
357
|
this.toggleGrid(false);
|
|
315
358
|
}
|
|
359
|
+
connectedCallback() {
|
|
360
|
+
this.mo = new MutationObserver(() => {
|
|
361
|
+
forceUpdate(this.hostElement);
|
|
362
|
+
this.handleMessage();
|
|
363
|
+
});
|
|
364
|
+
this.mo.observe(this.hostElement, { childList: true, subtree: true });
|
|
365
|
+
}
|
|
366
|
+
disconnectedCallback() {
|
|
367
|
+
if (this.mo)
|
|
368
|
+
this.mo.disconnect();
|
|
369
|
+
}
|
|
316
370
|
async componentWillLoad() {
|
|
317
|
-
this.watchMin();
|
|
318
|
-
this.watchMax();
|
|
319
|
-
this.watchId();
|
|
320
371
|
this.handleFormat();
|
|
321
372
|
this.handleMessage();
|
|
322
373
|
const valid = validateDate(this.start || this.end, this.format);
|
|
@@ -325,9 +376,29 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
325
376
|
this.setViewDate({ date: data.date || date });
|
|
326
377
|
this.setViewMonth({ month: data.month || month });
|
|
327
378
|
this.setViewYear({ year: data.year || year });
|
|
328
|
-
if (this.language ===
|
|
379
|
+
if (this.language === undefined)
|
|
329
380
|
await awaitTopbar(this.hostElement);
|
|
330
381
|
}
|
|
382
|
+
getId() {
|
|
383
|
+
return this.pnId || this.dateId || this.id;
|
|
384
|
+
}
|
|
385
|
+
getAriaLabel(end) {
|
|
386
|
+
if (end)
|
|
387
|
+
return !this.labelTo && !this.pnAriaLabelledbyEnd ? this.pnAriaLabelEnd : null;
|
|
388
|
+
return !this.labelFrom && !this.pnAriaLabelledby ? this.pnAriaLabel : null;
|
|
389
|
+
}
|
|
390
|
+
getAriaLabelledby(end) {
|
|
391
|
+
if (end)
|
|
392
|
+
return !this.labelTo && !this.pnAriaLabelEnd ? this.pnAriaLabelledbyEnd : null;
|
|
393
|
+
return !this.labelFrom && !this.pnAriaLabel ? this.pnAriaLabelledby : null;
|
|
394
|
+
}
|
|
395
|
+
getPlaceholder(end) {
|
|
396
|
+
if (this.compact)
|
|
397
|
+
return ' ';
|
|
398
|
+
if (end)
|
|
399
|
+
return this.placeholderEnd || this.endPlaceholder || this.format;
|
|
400
|
+
return this.placeholder || this.format;
|
|
401
|
+
}
|
|
331
402
|
dropdownHandler() {
|
|
332
403
|
if (this.open)
|
|
333
404
|
this.openDropdown(this.calendarElement);
|
|
@@ -359,7 +430,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
359
430
|
}
|
|
360
431
|
toggleGrid(state, selecting) {
|
|
361
432
|
this.open = state ?? !this.open;
|
|
362
|
-
this.
|
|
433
|
+
this.selectingEnd = selecting;
|
|
363
434
|
}
|
|
364
435
|
hasHelperText() {
|
|
365
436
|
return this.helpertext?.length > 0 || this.showHelperSlot;
|
|
@@ -380,6 +451,12 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
380
451
|
const slottedError = this.hostElement.querySelector('[slot=error]')?.textContent;
|
|
381
452
|
this.showErrorSlot = !!slottedError?.length;
|
|
382
453
|
}
|
|
454
|
+
hideHelpertext() {
|
|
455
|
+
return this.hasErrorMessage() || !this.hasHelperText();
|
|
456
|
+
}
|
|
457
|
+
hideError() {
|
|
458
|
+
return !this.hasErrorMessage();
|
|
459
|
+
}
|
|
383
460
|
viewingCalendar() {
|
|
384
461
|
return this.view === CALENDAR;
|
|
385
462
|
}
|
|
@@ -432,8 +509,8 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
432
509
|
getCurrentViewDate(data = this.getCurrentDateObject()) {
|
|
433
510
|
return getReadableDate(data, this.language, 'MMMM YYYY');
|
|
434
511
|
}
|
|
435
|
-
isSelected(data,
|
|
436
|
-
const value =
|
|
512
|
+
isSelected(data, end = false) {
|
|
513
|
+
const value = end ? this.end : this.start;
|
|
437
514
|
return selectedDate(value, this.getCurrentDateObject(data), this.format, this.viewType());
|
|
438
515
|
}
|
|
439
516
|
isToday(data) {
|
|
@@ -546,24 +623,24 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
546
623
|
}
|
|
547
624
|
return value;
|
|
548
625
|
}
|
|
549
|
-
inputHandler(event,
|
|
550
|
-
const propName =
|
|
626
|
+
inputHandler(event, end = false) {
|
|
627
|
+
const propName = end ? 'end' : 'start';
|
|
551
628
|
const value = this.disableTypeAhead ? event.target.value : this.handleSeparator(event);
|
|
552
629
|
this[propName] = value;
|
|
553
630
|
}
|
|
554
631
|
setValue(date) {
|
|
555
632
|
const value = getReadableDate(this.getCurrentDateObject({ date }), this.language, this.format);
|
|
556
|
-
if (this.
|
|
633
|
+
if (this.selectingEnd)
|
|
557
634
|
this.end = value;
|
|
558
635
|
else
|
|
559
636
|
this.start = value;
|
|
560
637
|
this.setViewDate({ date });
|
|
561
|
-
if (!this.range || this.
|
|
638
|
+
if (!this.range || this.selectingEnd) {
|
|
562
639
|
this.toggleGrid(false);
|
|
563
640
|
this.focusToggleCalendarButton();
|
|
564
641
|
}
|
|
565
|
-
if (this.range && !this.
|
|
566
|
-
this.
|
|
642
|
+
if (this.range && !this.selectingEnd)
|
|
643
|
+
this.selectingEnd = true;
|
|
567
644
|
}
|
|
568
645
|
getDayAttributes(dateObject, blank) {
|
|
569
646
|
const data = this.getCurrentDateObject(dateObject);
|
|
@@ -618,7 +695,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
618
695
|
/** Focus the button toggling the calendar. Handles the start/from date on its own. */
|
|
619
696
|
focusToggleCalendarButton() {
|
|
620
697
|
requestAnimationFrame(() => {
|
|
621
|
-
const id = this.range ? this.
|
|
698
|
+
const id = this.range ? this.idEndButton : this.idStartButton;
|
|
622
699
|
this.hostElement.querySelector(`#${id}`).focus({ preventScroll: true });
|
|
623
700
|
});
|
|
624
701
|
}
|
|
@@ -700,30 +777,32 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
700
777
|
renderYearGrid() {
|
|
701
778
|
return (h("ul", { class: "pn-date-picker-list" }, this.getYearGrid()?.map(year => (h("li", { key: year, class: "pn-date-picker-item", "data-item": "year" }, h("button", { type: "button", class: "pn-date-picker-button", ...this.getDayAttributes({ year }, false) }, h("span", null, year)))))));
|
|
702
779
|
}
|
|
703
|
-
renderLabel(
|
|
704
|
-
const id =
|
|
705
|
-
const label =
|
|
780
|
+
renderLabel(end = false) {
|
|
781
|
+
const id = end ? this.idEnd : this.idStart;
|
|
782
|
+
const label = end ? this.labelTo : this.labelFrom;
|
|
783
|
+
if (!label)
|
|
784
|
+
return null;
|
|
706
785
|
return (h("label", { class: "pn-date-picker-label", htmlFor: id, "data-compact": this.compact }, h("span", null, label)));
|
|
707
786
|
}
|
|
708
|
-
renderInput({
|
|
709
|
-
const id =
|
|
710
|
-
const idButton =
|
|
711
|
-
const value =
|
|
712
|
-
const
|
|
713
|
-
const
|
|
714
|
-
const editing = this.open ? (this.
|
|
787
|
+
renderInput({ end = false } = {}) {
|
|
788
|
+
const id = end ? this.idEnd : this.idStart;
|
|
789
|
+
const idButton = end ? this.idEndButton : this.idStartButton;
|
|
790
|
+
const value = end ? this.end : this.start;
|
|
791
|
+
const list = end ? this.listEnd : this.list;
|
|
792
|
+
const name = end ? this.nameEnd : this.name;
|
|
793
|
+
const editing = this.open ? (this.selectingEnd ? end : !end) : false;
|
|
715
794
|
const defaultText = this.translate('SELECT_DATE');
|
|
716
|
-
const textProp = this.range ? (
|
|
795
|
+
const textProp = this.range ? (end ? 'END_' : 'START_') : '';
|
|
717
796
|
const dateText = this.translate(`SELECTED_${textProp}DATE`);
|
|
718
797
|
let textButton = defaultText;
|
|
719
798
|
if (value) {
|
|
720
799
|
textButton += `, ${dateText.replace('{date}', value)}`;
|
|
721
800
|
}
|
|
722
801
|
const showButton = !(this.disabled || this.readonly);
|
|
723
|
-
return (h("div", { class: "pn-date-picker-container", "data-error": this.hasError() }, !this.compact && this.renderLabel(
|
|
802
|
+
return (h("div", { class: "pn-date-picker-container", "data-error": this.hasError() }, !this.compact && this.renderLabel(end), h("div", { class: "pn-date-picker-field" }, 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 && (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) })))));
|
|
724
803
|
}
|
|
725
804
|
render() {
|
|
726
|
-
return (h(Host, { key: '
|
|
805
|
+
return (h(Host, { key: 'dbe09316ddf6365ad119afe9fd01a363aa3cf9bf' }, h("div", { key: 'b6aa1c922859c282529ff9e1297aacc79111a0f9', class: "pn-date-picker" }, this.renderInput(), this.range && (h("div", { key: '48d050a834a2df16b33759bbe117a5c378dfa069', class: "pn-date-picker-range-icon test" }, h("pn-icon", { key: '6b6507409ba5eaf3de232dff28785d9c7c0a85f0', icon: arrow_right }))), this.range && this.renderInput({ end: this.range })), 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) }, h("div", { key: '56137ab966418bda3abd61bbcc12ff004feca5c0', class: "pn-date-picker-wrapper" }, h("nav", { key: '67a2fea072a8e4953fa9803e77d0245760b7195a', class: "pn-date-picker-nav", "aria-labelledby": this.idCalendar }, h("pn-button", { key: '9d9d0aa471baa6d6183a4b3b920cf8d05737e8a1', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`PREVIOUS_${this.viewType().toUpperCase()}`), icon: arrow_left, iconOnly: true, onPnClick: () => this.setNavView({ minus: true }) }), h("pn-button", { key: '57988169fdd38cb05c18c6d4f8e71ded23f97f5f', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(MONTHS) }, h("span", { key: '93c98b9aeabdc4b08e59afdaf8655dfe3c440b13', class: "pn-date-picker-month", "data-full": true }, this.translateDateText({ date: 1 }, 'MMMM')), h("span", { key: '9c0b0c3378f00755ef84e5e87426c1a9bedb0651', class: "pn-date-picker-month", "data-abbr": true }, this.translateDateText({ date: 1 }, 'MMM'))), h("h2", { key: '02d40d1aa03dd69f5b344295713ec9c45431b3e9', hidden: this.viewingCalendar(), class: "pn-date-picker-title" }, this.translate(`SELECT_${this.viewType().toUpperCase()}`)), h("pn-button", { key: '4f953719a89967b10c98472b24f732c42cd61e3c', hidden: !this.viewingCalendar(), small: true, appearance: "light", onPnClick: () => this.setView(YEARS) }, h("span", { key: 'a91a0dd940b94d0f71d887508644d6acfa3ef098' }, this.dateViewYear)), h("pn-button", { key: '3eabe547992de22014f3e229c9e7e17eab395d56', hidden: this.viewingMonth(), small: true, appearance: "light", arialabel: this.translate(`NEXT_${this.viewType().toUpperCase()}`), icon: arrow_right, iconOnly: true, onPnClick: () => this.setNavView({ plus: true }) })), this.viewingYears() && this.renderYearGrid(), this.viewingMonth() && this.renderMonthGrid(), this.viewingCalendar() && this.renderDateGrid(), h("aside", { key: '6eaefead16141908688578834b1e6a2ba87e8161', class: "pn-date-picker-chips" }, h("slot", { key: '43bcfa9bb50d6dbd912ae8cfee339b642b9363a5', name: "chips" })), h("nav", { key: 'b22d7112ba5d3d012f5d2617586bd251547f4ed7', class: "pn-date-picker-bottom", hidden: this.viewingCalendar() }, h("pn-button", { key: '41031640dbac5130b3fb9029b36c5e732068c78f', appearance: "light", variant: "outlined", small: true, icon: pn_return, onPnClick: () => this.setView(CALENDAR) }, h("span", { key: '08568a439547db8728c3f110c00854d49ec7eb77' }, this.translate('GO_CALENDAR')))))), h("p", { key: 'e890351198e9eaa85e9db3bcc55bc8bdd48f3538', id: this.idHelper, class: "pn-date-picker-helpertext", hidden: this.hideHelpertext() }, h("span", { key: '0b776595b33ed64cb73b5060d023eb89421ad758' }, this.helpertext), h("slot", { key: 'e9ef3797e3baae78dca7efc2313e1b6cf9c7efd7', name: "helpertext" })), h("p", { key: 'aa43fb6eaf42251bb7dadab0f724edee0e6d42b2', id: this.idError, class: "pn-date-picker-error", role: "alert", hidden: this.hideError() }, h("span", { key: '556bfbb5e5ba697234734eb601445150b23ddcf2' }, this.error), h("slot", { key: '21dd12fd2c3f1ac814699f4785ece567136cedd2', name: "error" }))));
|
|
727
806
|
}
|
|
728
807
|
static get is() { return "pn-date-picker"; }
|
|
729
808
|
static get originalStyleUrls() {
|
|
@@ -746,8 +825,8 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
746
825
|
"resolved": "string",
|
|
747
826
|
"references": {}
|
|
748
827
|
},
|
|
749
|
-
"required":
|
|
750
|
-
"optional":
|
|
828
|
+
"required": false,
|
|
829
|
+
"optional": true,
|
|
751
830
|
"docs": {
|
|
752
831
|
"tags": [],
|
|
753
832
|
"text": "Set a label for the from date."
|
|
@@ -798,6 +877,33 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
798
877
|
"reflect": false,
|
|
799
878
|
"attribute": "helpertext"
|
|
800
879
|
},
|
|
880
|
+
"language": {
|
|
881
|
+
"type": "string",
|
|
882
|
+
"mutable": false,
|
|
883
|
+
"complexType": {
|
|
884
|
+
"original": "PnLanguages",
|
|
885
|
+
"resolved": "\"\" | \"da\" | \"en\" | \"fi\" | \"no\" | \"sv\"",
|
|
886
|
+
"references": {
|
|
887
|
+
"PnLanguages": {
|
|
888
|
+
"location": "import",
|
|
889
|
+
"path": "@/index",
|
|
890
|
+
"id": "src/index.ts::PnLanguages",
|
|
891
|
+
"referenceLocation": "PnLanguages"
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
"required": false,
|
|
896
|
+
"optional": true,
|
|
897
|
+
"docs": {
|
|
898
|
+
"tags": [],
|
|
899
|
+
"text": "Manually set language; this will be inherited from the topbar."
|
|
900
|
+
},
|
|
901
|
+
"getter": false,
|
|
902
|
+
"setter": false,
|
|
903
|
+
"reflect": false,
|
|
904
|
+
"attribute": "language",
|
|
905
|
+
"defaultValue": "undefined"
|
|
906
|
+
},
|
|
801
907
|
"start": {
|
|
802
908
|
"type": "string",
|
|
803
909
|
"mutable": true,
|
|
@@ -812,8 +918,11 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
812
918
|
"tags": [{
|
|
813
919
|
"name": "see",
|
|
814
920
|
"text": "{@link format }"
|
|
921
|
+
}, {
|
|
922
|
+
"name": "category",
|
|
923
|
+
"text": "Native attributes"
|
|
815
924
|
}],
|
|
816
|
-
"text": "Set a predefined value for the from date."
|
|
925
|
+
"text": "Set a predefined value for the from date (input value)."
|
|
817
926
|
},
|
|
818
927
|
"getter": false,
|
|
819
928
|
"setter": false,
|
|
@@ -838,8 +947,11 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
838
947
|
}, {
|
|
839
948
|
"name": "see",
|
|
840
949
|
"text": "{@link format }"
|
|
950
|
+
}, {
|
|
951
|
+
"name": "category",
|
|
952
|
+
"text": "Native attributes"
|
|
841
953
|
}],
|
|
842
|
-
"text": "Set a predefined value for the from date."
|
|
954
|
+
"text": "Set a predefined value for the from date. (input value end)"
|
|
843
955
|
},
|
|
844
956
|
"getter": false,
|
|
845
957
|
"setter": false,
|
|
@@ -847,7 +959,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
847
959
|
"attribute": "end",
|
|
848
960
|
"defaultValue": "''"
|
|
849
961
|
},
|
|
850
|
-
"
|
|
962
|
+
"name": {
|
|
851
963
|
"type": "string",
|
|
852
964
|
"mutable": false,
|
|
853
965
|
"complexType": {
|
|
@@ -856,74 +968,23 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
856
968
|
"references": {}
|
|
857
969
|
},
|
|
858
970
|
"required": false,
|
|
859
|
-
"optional":
|
|
971
|
+
"optional": true,
|
|
860
972
|
"docs": {
|
|
861
973
|
"tags": [{
|
|
862
974
|
"name": "since",
|
|
863
975
|
"text": "v7.6.0"
|
|
864
976
|
}, {
|
|
865
|
-
"name": "
|
|
866
|
-
"text": "
|
|
867
|
-
}],
|
|
868
|
-
"text": "Set the date format of the value.\n\nWhile you can set any date value from the Dayjs documentation,\nwe strongly recommend you pick a simple format that you can also type manually."
|
|
869
|
-
},
|
|
870
|
-
"getter": false,
|
|
871
|
-
"setter": false,
|
|
872
|
-
"reflect": false,
|
|
873
|
-
"attribute": "format",
|
|
874
|
-
"defaultValue": "'YYYY-MM-DD'"
|
|
875
|
-
},
|
|
876
|
-
"compact": {
|
|
877
|
-
"type": "boolean",
|
|
878
|
-
"mutable": false,
|
|
879
|
-
"complexType": {
|
|
880
|
-
"original": "boolean",
|
|
881
|
-
"resolved": "boolean",
|
|
882
|
-
"references": {}
|
|
883
|
-
},
|
|
884
|
-
"required": false,
|
|
885
|
-
"optional": true,
|
|
886
|
-
"docs": {
|
|
887
|
-
"tags": [{
|
|
888
|
-
"name": "since",
|
|
889
|
-
"text": "v7.21.0"
|
|
977
|
+
"name": "category",
|
|
978
|
+
"text": "Native attributes"
|
|
890
979
|
}],
|
|
891
|
-
"text": "
|
|
892
|
-
},
|
|
893
|
-
"getter": false,
|
|
894
|
-
"setter": false,
|
|
895
|
-
"reflect": false,
|
|
896
|
-
"attribute": "compact",
|
|
897
|
-
"defaultValue": "false"
|
|
898
|
-
},
|
|
899
|
-
"language": {
|
|
900
|
-
"type": "string",
|
|
901
|
-
"mutable": false,
|
|
902
|
-
"complexType": {
|
|
903
|
-
"original": "PnLanguages",
|
|
904
|
-
"resolved": "\"\" | \"da\" | \"en\" | \"fi\" | \"no\" | \"sv\"",
|
|
905
|
-
"references": {
|
|
906
|
-
"PnLanguages": {
|
|
907
|
-
"location": "import",
|
|
908
|
-
"path": "@/index",
|
|
909
|
-
"id": "src/index.ts::PnLanguages",
|
|
910
|
-
"referenceLocation": "PnLanguages"
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
},
|
|
914
|
-
"required": false,
|
|
915
|
-
"optional": true,
|
|
916
|
-
"docs": {
|
|
917
|
-
"tags": [],
|
|
918
|
-
"text": "Manually set language; this will be inherited from the topbar."
|
|
980
|
+
"text": "HTML input name"
|
|
919
981
|
},
|
|
920
982
|
"getter": false,
|
|
921
983
|
"setter": false,
|
|
922
984
|
"reflect": false,
|
|
923
|
-
"attribute": "
|
|
924
|
-
"defaultValue": "null"
|
|
985
|
+
"attribute": "name"
|
|
925
986
|
},
|
|
926
|
-
"
|
|
987
|
+
"nameEnd": {
|
|
927
988
|
"type": "string",
|
|
928
989
|
"mutable": false,
|
|
929
990
|
"complexType": {
|
|
@@ -932,24 +993,23 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
932
993
|
"references": {}
|
|
933
994
|
},
|
|
934
995
|
"required": false,
|
|
935
|
-
"optional":
|
|
996
|
+
"optional": true,
|
|
936
997
|
"docs": {
|
|
937
998
|
"tags": [{
|
|
938
999
|
"name": "since",
|
|
939
|
-
"text": "v7.
|
|
1000
|
+
"text": "v7.25.0"
|
|
940
1001
|
}, {
|
|
941
1002
|
"name": "category",
|
|
942
|
-
"text": "
|
|
1003
|
+
"text": "Native attributes"
|
|
943
1004
|
}],
|
|
944
|
-
"text": "
|
|
1005
|
+
"text": "HTML input name"
|
|
945
1006
|
},
|
|
946
1007
|
"getter": false,
|
|
947
1008
|
"setter": false,
|
|
948
1009
|
"reflect": false,
|
|
949
|
-
"attribute": "
|
|
950
|
-
"defaultValue": "this.id"
|
|
1010
|
+
"attribute": "name-end"
|
|
951
1011
|
},
|
|
952
|
-
"
|
|
1012
|
+
"placeholder": {
|
|
953
1013
|
"type": "string",
|
|
954
1014
|
"mutable": false,
|
|
955
1015
|
"complexType": {
|
|
@@ -961,20 +1021,20 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
961
1021
|
"optional": true,
|
|
962
1022
|
"docs": {
|
|
963
1023
|
"tags": [{
|
|
964
|
-
"name": "
|
|
965
|
-
"text": "
|
|
1024
|
+
"name": "see",
|
|
1025
|
+
"text": "{@link format }"
|
|
966
1026
|
}, {
|
|
967
1027
|
"name": "category",
|
|
968
|
-
"text": "
|
|
1028
|
+
"text": "Native attributes"
|
|
969
1029
|
}],
|
|
970
|
-
"text": "
|
|
1030
|
+
"text": "Placeholder for the input field (defaults to the format prop)."
|
|
971
1031
|
},
|
|
972
1032
|
"getter": false,
|
|
973
1033
|
"setter": false,
|
|
974
1034
|
"reflect": false,
|
|
975
|
-
"attribute": "
|
|
1035
|
+
"attribute": "placeholder"
|
|
976
1036
|
},
|
|
977
|
-
"
|
|
1037
|
+
"endPlaceholder": {
|
|
978
1038
|
"type": "string",
|
|
979
1039
|
"mutable": false,
|
|
980
1040
|
"complexType": {
|
|
@@ -988,19 +1048,21 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
988
1048
|
"tags": [{
|
|
989
1049
|
"name": "see",
|
|
990
1050
|
"text": "{@link format }"
|
|
1051
|
+
}, {
|
|
1052
|
+
"name": "deprecated",
|
|
1053
|
+
"text": "Use `placeholder-end` instead"
|
|
991
1054
|
}, {
|
|
992
1055
|
"name": "category",
|
|
993
|
-
"text": "
|
|
1056
|
+
"text": "Native attributes"
|
|
994
1057
|
}],
|
|
995
|
-
"text": "Placeholder for
|
|
1058
|
+
"text": "Placeholder for end date (defaults to the format prop)."
|
|
996
1059
|
},
|
|
997
1060
|
"getter": false,
|
|
998
1061
|
"setter": false,
|
|
999
1062
|
"reflect": false,
|
|
1000
|
-
"attribute": "placeholder"
|
|
1001
|
-
"defaultValue": "this.format"
|
|
1063
|
+
"attribute": "end-placeholder"
|
|
1002
1064
|
},
|
|
1003
|
-
"
|
|
1065
|
+
"placeholderEnd": {
|
|
1004
1066
|
"type": "string",
|
|
1005
1067
|
"mutable": false,
|
|
1006
1068
|
"complexType": {
|
|
@@ -1014,17 +1076,19 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1014
1076
|
"tags": [{
|
|
1015
1077
|
"name": "see",
|
|
1016
1078
|
"text": "{@link format }"
|
|
1079
|
+
}, {
|
|
1080
|
+
"name": "since",
|
|
1081
|
+
"text": "v7.25.0"
|
|
1017
1082
|
}, {
|
|
1018
1083
|
"name": "category",
|
|
1019
|
-
"text": "
|
|
1084
|
+
"text": "Native attributes"
|
|
1020
1085
|
}],
|
|
1021
1086
|
"text": "Placeholder for end date (defaults to the format prop)."
|
|
1022
1087
|
},
|
|
1023
1088
|
"getter": false,
|
|
1024
1089
|
"setter": false,
|
|
1025
1090
|
"reflect": false,
|
|
1026
|
-
"attribute": "end
|
|
1027
|
-
"defaultValue": "this.format"
|
|
1091
|
+
"attribute": "placeholder-end"
|
|
1028
1092
|
},
|
|
1029
1093
|
"autocomplete": {
|
|
1030
1094
|
"type": "string",
|
|
@@ -1039,7 +1103,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1039
1103
|
"docs": {
|
|
1040
1104
|
"tags": [{
|
|
1041
1105
|
"name": "category",
|
|
1042
|
-
"text": "
|
|
1106
|
+
"text": "Native attributes"
|
|
1043
1107
|
}],
|
|
1044
1108
|
"text": "Set the input `autocomplete` attribute."
|
|
1045
1109
|
},
|
|
@@ -1064,7 +1128,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1064
1128
|
"text": "v7.6.0"
|
|
1065
1129
|
}, {
|
|
1066
1130
|
"name": "category",
|
|
1067
|
-
"text": "
|
|
1131
|
+
"text": "Native attributes"
|
|
1068
1132
|
}],
|
|
1069
1133
|
"text": "Set the input `list` attribute for the first date input."
|
|
1070
1134
|
},
|
|
@@ -1089,7 +1153,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1089
1153
|
"text": "v7.6.0"
|
|
1090
1154
|
}, {
|
|
1091
1155
|
"name": "category",
|
|
1092
|
-
"text": "
|
|
1156
|
+
"text": "Native attributes"
|
|
1093
1157
|
}],
|
|
1094
1158
|
"text": "Set the input `list` attribute for the second date input."
|
|
1095
1159
|
},
|
|
@@ -1114,7 +1178,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1114
1178
|
"text": "v7.6.0"
|
|
1115
1179
|
}, {
|
|
1116
1180
|
"name": "category",
|
|
1117
|
-
"text": "
|
|
1181
|
+
"text": "Native attributes"
|
|
1118
1182
|
}],
|
|
1119
1183
|
"text": "Set the HTML pattern prop on the input elements. Make sure it matches the format."
|
|
1120
1184
|
},
|
|
@@ -1123,7 +1187,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1123
1187
|
"reflect": false,
|
|
1124
1188
|
"attribute": "pattern"
|
|
1125
1189
|
},
|
|
1126
|
-
"
|
|
1190
|
+
"required": {
|
|
1127
1191
|
"type": "boolean",
|
|
1128
1192
|
"mutable": false,
|
|
1129
1193
|
"complexType": {
|
|
@@ -1136,83 +1200,45 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1136
1200
|
"docs": {
|
|
1137
1201
|
"tags": [{
|
|
1138
1202
|
"name": "category",
|
|
1139
|
-
"text": "
|
|
1203
|
+
"text": "Native attributes"
|
|
1140
1204
|
}],
|
|
1141
|
-
"text": "
|
|
1205
|
+
"text": "Set the date picker as required."
|
|
1142
1206
|
},
|
|
1143
1207
|
"getter": false,
|
|
1144
1208
|
"setter": false,
|
|
1145
1209
|
"reflect": false,
|
|
1146
|
-
"attribute": "
|
|
1210
|
+
"attribute": "required",
|
|
1147
1211
|
"defaultValue": "false"
|
|
1148
1212
|
},
|
|
1149
|
-
"
|
|
1150
|
-
"type": "
|
|
1213
|
+
"readonly": {
|
|
1214
|
+
"type": "boolean",
|
|
1151
1215
|
"mutable": false,
|
|
1152
1216
|
"complexType": {
|
|
1153
|
-
"original": "
|
|
1154
|
-
"resolved": "
|
|
1217
|
+
"original": "boolean",
|
|
1218
|
+
"resolved": "boolean",
|
|
1155
1219
|
"references": {}
|
|
1156
1220
|
},
|
|
1157
1221
|
"required": false,
|
|
1158
|
-
"optional":
|
|
1222
|
+
"optional": false,
|
|
1159
1223
|
"docs": {
|
|
1160
1224
|
"tags": [{
|
|
1161
|
-
"name": "
|
|
1162
|
-
"text": "
|
|
1163
|
-
}, {
|
|
1164
|
-
"name": "see",
|
|
1165
|
-
"text": "{@link range }"
|
|
1225
|
+
"name": "since",
|
|
1226
|
+
"text": "v7.6.0"
|
|
1166
1227
|
}, {
|
|
1167
1228
|
"name": "category",
|
|
1168
|
-
"text": "
|
|
1169
|
-
}, {
|
|
1170
|
-
"name": "hide",
|
|
1171
|
-
"text": "true"
|
|
1229
|
+
"text": "Native attributes"
|
|
1172
1230
|
}],
|
|
1173
|
-
"text": "Set
|
|
1231
|
+
"text": "Set the date picker as readonly."
|
|
1174
1232
|
},
|
|
1175
1233
|
"getter": false,
|
|
1176
1234
|
"setter": false,
|
|
1177
1235
|
"reflect": false,
|
|
1178
|
-
"attribute": "
|
|
1236
|
+
"attribute": "readonly",
|
|
1237
|
+
"defaultValue": "false"
|
|
1179
1238
|
},
|
|
1180
|
-
"
|
|
1181
|
-
"type": "
|
|
1182
|
-
"mutable":
|
|
1183
|
-
"complexType": {
|
|
1184
|
-
"original": "CalendarView",
|
|
1185
|
-
"resolved": "\"calendar\" | \"months\" | \"years\"",
|
|
1186
|
-
"references": {
|
|
1187
|
-
"CalendarView": {
|
|
1188
|
-
"location": "import",
|
|
1189
|
-
"path": "@/globals/date",
|
|
1190
|
-
"id": "src/globals/date/index.ts::CalendarView",
|
|
1191
|
-
"referenceLocation": "CalendarView"
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
},
|
|
1195
|
-
"required": false,
|
|
1196
|
-
"optional": false,
|
|
1197
|
-
"docs": {
|
|
1198
|
-
"tags": [{
|
|
1199
|
-
"name": "since",
|
|
1200
|
-
"text": "v7.6.0"
|
|
1201
|
-
}, {
|
|
1202
|
-
"name": "category",
|
|
1203
|
-
"text": "Features"
|
|
1204
|
-
}],
|
|
1205
|
-
"text": "The calendar grid is shown as default. You can set either `months` or `years` as your first choice."
|
|
1206
|
-
},
|
|
1207
|
-
"getter": false,
|
|
1208
|
-
"setter": false,
|
|
1209
|
-
"reflect": false,
|
|
1210
|
-
"attribute": "view",
|
|
1211
|
-
"defaultValue": "CALENDAR"
|
|
1212
|
-
},
|
|
1213
|
-
"calendarUp": {
|
|
1214
|
-
"type": "boolean",
|
|
1215
|
-
"mutable": false,
|
|
1239
|
+
"disabled": {
|
|
1240
|
+
"type": "boolean",
|
|
1241
|
+
"mutable": false,
|
|
1216
1242
|
"complexType": {
|
|
1217
1243
|
"original": "boolean",
|
|
1218
1244
|
"resolved": "boolean",
|
|
@@ -1226,22 +1252,22 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1226
1252
|
"text": "v7.6.0"
|
|
1227
1253
|
}, {
|
|
1228
1254
|
"name": "category",
|
|
1229
|
-
"text": "
|
|
1255
|
+
"text": "Native attributes"
|
|
1230
1256
|
}],
|
|
1231
|
-
"text": "
|
|
1257
|
+
"text": "Set the date picker as disabled."
|
|
1232
1258
|
},
|
|
1233
1259
|
"getter": false,
|
|
1234
1260
|
"setter": false,
|
|
1235
1261
|
"reflect": false,
|
|
1236
|
-
"attribute": "
|
|
1262
|
+
"attribute": "disabled",
|
|
1237
1263
|
"defaultValue": "false"
|
|
1238
1264
|
},
|
|
1239
|
-
"
|
|
1240
|
-
"type": "
|
|
1265
|
+
"format": {
|
|
1266
|
+
"type": "string",
|
|
1241
1267
|
"mutable": false,
|
|
1242
1268
|
"complexType": {
|
|
1243
|
-
"original": "
|
|
1244
|
-
"resolved": "
|
|
1269
|
+
"original": "string",
|
|
1270
|
+
"resolved": "string",
|
|
1245
1271
|
"references": {}
|
|
1246
1272
|
},
|
|
1247
1273
|
"required": false,
|
|
@@ -1250,17 +1276,20 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1250
1276
|
"tags": [{
|
|
1251
1277
|
"name": "since",
|
|
1252
1278
|
"text": "v7.6.0"
|
|
1279
|
+
}, {
|
|
1280
|
+
"name": "see",
|
|
1281
|
+
"text": "{@link https://day.js.org/docs/en/display/format Day.js format documentation.}"
|
|
1253
1282
|
}, {
|
|
1254
1283
|
"name": "category",
|
|
1255
1284
|
"text": "Features"
|
|
1256
1285
|
}],
|
|
1257
|
-
"text": "
|
|
1286
|
+
"text": "Set the date format of the value.\n\nWhile you can set any date value from the Dayjs documentation,\nwe strongly recommend you pick a simple format that you can also type manually."
|
|
1258
1287
|
},
|
|
1259
1288
|
"getter": false,
|
|
1260
1289
|
"setter": false,
|
|
1261
1290
|
"reflect": false,
|
|
1262
|
-
"attribute": "
|
|
1263
|
-
"defaultValue": "
|
|
1291
|
+
"attribute": "format",
|
|
1292
|
+
"defaultValue": "'YYYY-MM-DD'"
|
|
1264
1293
|
},
|
|
1265
1294
|
"disableTypeAhead": {
|
|
1266
1295
|
"type": "boolean",
|
|
@@ -1351,6 +1380,9 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1351
1380
|
"optional": true,
|
|
1352
1381
|
"docs": {
|
|
1353
1382
|
"tags": [{
|
|
1383
|
+
"name": "since",
|
|
1384
|
+
"text": "7.11.3"
|
|
1385
|
+
}, {
|
|
1354
1386
|
"name": "category",
|
|
1355
1387
|
"text": "Features"
|
|
1356
1388
|
}],
|
|
@@ -1362,7 +1394,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1362
1394
|
"attribute": "disable-max-length",
|
|
1363
1395
|
"defaultValue": "false"
|
|
1364
1396
|
},
|
|
1365
|
-
"
|
|
1397
|
+
"range": {
|
|
1366
1398
|
"type": "boolean",
|
|
1367
1399
|
"mutable": false,
|
|
1368
1400
|
"complexType": {
|
|
@@ -1375,17 +1407,48 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1375
1407
|
"docs": {
|
|
1376
1408
|
"tags": [{
|
|
1377
1409
|
"name": "category",
|
|
1378
|
-
"text": "
|
|
1410
|
+
"text": "Features"
|
|
1379
1411
|
}],
|
|
1380
|
-
"text": "
|
|
1412
|
+
"text": "Allow the selection of a date range."
|
|
1381
1413
|
},
|
|
1382
1414
|
"getter": false,
|
|
1383
1415
|
"setter": false,
|
|
1384
1416
|
"reflect": false,
|
|
1385
|
-
"attribute": "
|
|
1417
|
+
"attribute": "range",
|
|
1386
1418
|
"defaultValue": "false"
|
|
1387
1419
|
},
|
|
1388
|
-
"
|
|
1420
|
+
"rangeLimit": {
|
|
1421
|
+
"type": "number",
|
|
1422
|
+
"mutable": false,
|
|
1423
|
+
"complexType": {
|
|
1424
|
+
"original": "number",
|
|
1425
|
+
"resolved": "number",
|
|
1426
|
+
"references": {}
|
|
1427
|
+
},
|
|
1428
|
+
"required": false,
|
|
1429
|
+
"optional": true,
|
|
1430
|
+
"docs": {
|
|
1431
|
+
"tags": [{
|
|
1432
|
+
"name": "todo",
|
|
1433
|
+
"text": "Create a range limit function."
|
|
1434
|
+
}, {
|
|
1435
|
+
"name": "see",
|
|
1436
|
+
"text": "{@link range }"
|
|
1437
|
+
}, {
|
|
1438
|
+
"name": "category",
|
|
1439
|
+
"text": "Features"
|
|
1440
|
+
}, {
|
|
1441
|
+
"name": "hide",
|
|
1442
|
+
"text": "true"
|
|
1443
|
+
}],
|
|
1444
|
+
"text": "Set a limit on how many days one may select.\nBy default, you can select an unlimited range."
|
|
1445
|
+
},
|
|
1446
|
+
"getter": false,
|
|
1447
|
+
"setter": false,
|
|
1448
|
+
"reflect": false,
|
|
1449
|
+
"attribute": "range-limit"
|
|
1450
|
+
},
|
|
1451
|
+
"weekNumbers": {
|
|
1389
1452
|
"type": "boolean",
|
|
1390
1453
|
"mutable": false,
|
|
1391
1454
|
"complexType": {
|
|
@@ -1401,17 +1464,43 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1401
1464
|
"text": "v7.6.0"
|
|
1402
1465
|
}, {
|
|
1403
1466
|
"name": "category",
|
|
1404
|
-
"text": "
|
|
1467
|
+
"text": "Features"
|
|
1405
1468
|
}],
|
|
1406
|
-
"text": "
|
|
1469
|
+
"text": "Show weekend numbers to the left of the calendar grid."
|
|
1407
1470
|
},
|
|
1408
1471
|
"getter": false,
|
|
1409
1472
|
"setter": false,
|
|
1410
1473
|
"reflect": false,
|
|
1411
|
-
"attribute": "
|
|
1474
|
+
"attribute": "week-numbers",
|
|
1412
1475
|
"defaultValue": "false"
|
|
1413
1476
|
},
|
|
1414
|
-
"
|
|
1477
|
+
"compact": {
|
|
1478
|
+
"type": "boolean",
|
|
1479
|
+
"mutable": false,
|
|
1480
|
+
"complexType": {
|
|
1481
|
+
"original": "boolean",
|
|
1482
|
+
"resolved": "boolean",
|
|
1483
|
+
"references": {}
|
|
1484
|
+
},
|
|
1485
|
+
"required": false,
|
|
1486
|
+
"optional": true,
|
|
1487
|
+
"docs": {
|
|
1488
|
+
"tags": [{
|
|
1489
|
+
"name": "since",
|
|
1490
|
+
"text": "v7.21.0"
|
|
1491
|
+
}, {
|
|
1492
|
+
"name": "category",
|
|
1493
|
+
"text": "Features"
|
|
1494
|
+
}],
|
|
1495
|
+
"text": "Set the date picker label as compact. If used, the `placeholder` will no longer be displayed."
|
|
1496
|
+
},
|
|
1497
|
+
"getter": false,
|
|
1498
|
+
"setter": false,
|
|
1499
|
+
"reflect": false,
|
|
1500
|
+
"attribute": "compact",
|
|
1501
|
+
"defaultValue": "false"
|
|
1502
|
+
},
|
|
1503
|
+
"calendarUp": {
|
|
1415
1504
|
"type": "boolean",
|
|
1416
1505
|
"mutable": false,
|
|
1417
1506
|
"complexType": {
|
|
@@ -1427,40 +1516,48 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1427
1516
|
"text": "v7.6.0"
|
|
1428
1517
|
}, {
|
|
1429
1518
|
"name": "category",
|
|
1430
|
-
"text": "
|
|
1519
|
+
"text": "Features"
|
|
1431
1520
|
}],
|
|
1432
|
-
"text": "
|
|
1521
|
+
"text": "Make the calendar open upwards by default. Opens downwards if there is not enough space."
|
|
1433
1522
|
},
|
|
1434
1523
|
"getter": false,
|
|
1435
1524
|
"setter": false,
|
|
1436
1525
|
"reflect": false,
|
|
1437
|
-
"attribute": "
|
|
1526
|
+
"attribute": "calendar-up",
|
|
1438
1527
|
"defaultValue": "false"
|
|
1439
1528
|
},
|
|
1440
|
-
"
|
|
1529
|
+
"view": {
|
|
1441
1530
|
"type": "string",
|
|
1442
|
-
"mutable":
|
|
1531
|
+
"mutable": true,
|
|
1443
1532
|
"complexType": {
|
|
1444
|
-
"original": "
|
|
1445
|
-
"resolved": "
|
|
1446
|
-
"references": {
|
|
1533
|
+
"original": "CalendarView",
|
|
1534
|
+
"resolved": "\"calendar\" | \"months\" | \"years\"",
|
|
1535
|
+
"references": {
|
|
1536
|
+
"CalendarView": {
|
|
1537
|
+
"location": "import",
|
|
1538
|
+
"path": "@/globals/date",
|
|
1539
|
+
"id": "src/globals/date/index.ts::CalendarView",
|
|
1540
|
+
"referenceLocation": "CalendarView"
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1447
1543
|
},
|
|
1448
1544
|
"required": false,
|
|
1449
|
-
"optional":
|
|
1545
|
+
"optional": false,
|
|
1450
1546
|
"docs": {
|
|
1451
1547
|
"tags": [{
|
|
1452
1548
|
"name": "since",
|
|
1453
1549
|
"text": "v7.6.0"
|
|
1454
1550
|
}, {
|
|
1455
1551
|
"name": "category",
|
|
1456
|
-
"text": "
|
|
1552
|
+
"text": "Features"
|
|
1457
1553
|
}],
|
|
1458
|
-
"text": "
|
|
1554
|
+
"text": "The calendar grid is shown as default. You can set either `months` or `years` as your first choice."
|
|
1459
1555
|
},
|
|
1460
1556
|
"getter": false,
|
|
1461
1557
|
"setter": false,
|
|
1462
1558
|
"reflect": false,
|
|
1463
|
-
"attribute": "
|
|
1559
|
+
"attribute": "view",
|
|
1560
|
+
"defaultValue": "'calendar'"
|
|
1464
1561
|
},
|
|
1465
1562
|
"invalid": {
|
|
1466
1563
|
"type": "boolean",
|
|
@@ -1478,7 +1575,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1478
1575
|
"text": "v7.6.0"
|
|
1479
1576
|
}, {
|
|
1480
1577
|
"name": "category",
|
|
1481
|
-
"text": "
|
|
1578
|
+
"text": "Features"
|
|
1482
1579
|
}],
|
|
1483
1580
|
"text": "Trigger the invalid state without an error message."
|
|
1484
1581
|
},
|
|
@@ -1488,6 +1585,184 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1488
1585
|
"attribute": "invalid",
|
|
1489
1586
|
"defaultValue": "false"
|
|
1490
1587
|
},
|
|
1588
|
+
"error": {
|
|
1589
|
+
"type": "string",
|
|
1590
|
+
"mutable": false,
|
|
1591
|
+
"complexType": {
|
|
1592
|
+
"original": "string",
|
|
1593
|
+
"resolved": "string",
|
|
1594
|
+
"references": {}
|
|
1595
|
+
},
|
|
1596
|
+
"required": false,
|
|
1597
|
+
"optional": true,
|
|
1598
|
+
"docs": {
|
|
1599
|
+
"tags": [{
|
|
1600
|
+
"name": "since",
|
|
1601
|
+
"text": "v7.6.0"
|
|
1602
|
+
}, {
|
|
1603
|
+
"name": "category",
|
|
1604
|
+
"text": "Features"
|
|
1605
|
+
}],
|
|
1606
|
+
"text": "Set an error message for the date picker. Overwrites the helpertext if used at the same time."
|
|
1607
|
+
},
|
|
1608
|
+
"getter": false,
|
|
1609
|
+
"setter": false,
|
|
1610
|
+
"reflect": false,
|
|
1611
|
+
"attribute": "error"
|
|
1612
|
+
},
|
|
1613
|
+
"pnId": {
|
|
1614
|
+
"type": "string",
|
|
1615
|
+
"mutable": false,
|
|
1616
|
+
"complexType": {
|
|
1617
|
+
"original": "string",
|
|
1618
|
+
"resolved": "string",
|
|
1619
|
+
"references": {}
|
|
1620
|
+
},
|
|
1621
|
+
"required": false,
|
|
1622
|
+
"optional": true,
|
|
1623
|
+
"docs": {
|
|
1624
|
+
"tags": [{
|
|
1625
|
+
"name": "since",
|
|
1626
|
+
"text": "v7.25.0"
|
|
1627
|
+
}, {
|
|
1628
|
+
"name": "category",
|
|
1629
|
+
"text": "HTML attributes"
|
|
1630
|
+
}],
|
|
1631
|
+
"text": "Set a custom ID for the calendar. If you use `range`, the end input will use `${pn-id}-end`."
|
|
1632
|
+
},
|
|
1633
|
+
"getter": false,
|
|
1634
|
+
"setter": false,
|
|
1635
|
+
"reflect": false,
|
|
1636
|
+
"attribute": "pn-id"
|
|
1637
|
+
},
|
|
1638
|
+
"pnAriaLabel": {
|
|
1639
|
+
"type": "string",
|
|
1640
|
+
"mutable": false,
|
|
1641
|
+
"complexType": {
|
|
1642
|
+
"original": "string",
|
|
1643
|
+
"resolved": "string",
|
|
1644
|
+
"references": {}
|
|
1645
|
+
},
|
|
1646
|
+
"required": false,
|
|
1647
|
+
"optional": true,
|
|
1648
|
+
"docs": {
|
|
1649
|
+
"tags": [{
|
|
1650
|
+
"name": "since",
|
|
1651
|
+
"text": "v7.25.0"
|
|
1652
|
+
}, {
|
|
1653
|
+
"name": "category",
|
|
1654
|
+
"text": "HTML attributes"
|
|
1655
|
+
}],
|
|
1656
|
+
"text": "Provide the label via an aria attribute.\nWe strongly recommend you use the `label-from` prop instead."
|
|
1657
|
+
},
|
|
1658
|
+
"getter": false,
|
|
1659
|
+
"setter": false,
|
|
1660
|
+
"reflect": false,
|
|
1661
|
+
"attribute": "pn-aria-label"
|
|
1662
|
+
},
|
|
1663
|
+
"pnAriaLabelEnd": {
|
|
1664
|
+
"type": "string",
|
|
1665
|
+
"mutable": false,
|
|
1666
|
+
"complexType": {
|
|
1667
|
+
"original": "string",
|
|
1668
|
+
"resolved": "string",
|
|
1669
|
+
"references": {}
|
|
1670
|
+
},
|
|
1671
|
+
"required": false,
|
|
1672
|
+
"optional": true,
|
|
1673
|
+
"docs": {
|
|
1674
|
+
"tags": [{
|
|
1675
|
+
"name": "since",
|
|
1676
|
+
"text": "v7.25.0"
|
|
1677
|
+
}, {
|
|
1678
|
+
"name": "category",
|
|
1679
|
+
"text": "HTML attributes"
|
|
1680
|
+
}],
|
|
1681
|
+
"text": "Provide the label for the end input via an aria attribute.\nWe strongly recommend you use the `label-to` prop instead."
|
|
1682
|
+
},
|
|
1683
|
+
"getter": false,
|
|
1684
|
+
"setter": false,
|
|
1685
|
+
"reflect": false,
|
|
1686
|
+
"attribute": "pn-aria-label-end"
|
|
1687
|
+
},
|
|
1688
|
+
"pnAriaLabelledby": {
|
|
1689
|
+
"type": "string",
|
|
1690
|
+
"mutable": false,
|
|
1691
|
+
"complexType": {
|
|
1692
|
+
"original": "string",
|
|
1693
|
+
"resolved": "string",
|
|
1694
|
+
"references": {}
|
|
1695
|
+
},
|
|
1696
|
+
"required": false,
|
|
1697
|
+
"optional": true,
|
|
1698
|
+
"docs": {
|
|
1699
|
+
"tags": [{
|
|
1700
|
+
"name": "since",
|
|
1701
|
+
"text": "v7.25.0"
|
|
1702
|
+
}, {
|
|
1703
|
+
"name": "category",
|
|
1704
|
+
"text": "HTML attributes"
|
|
1705
|
+
}],
|
|
1706
|
+
"text": "Provide the label from another element via its ID.\nWe strongly recommend you use the `label-from` prop instead."
|
|
1707
|
+
},
|
|
1708
|
+
"getter": false,
|
|
1709
|
+
"setter": false,
|
|
1710
|
+
"reflect": false,
|
|
1711
|
+
"attribute": "pn-aria-labelledby"
|
|
1712
|
+
},
|
|
1713
|
+
"pnAriaLabelledbyEnd": {
|
|
1714
|
+
"type": "string",
|
|
1715
|
+
"mutable": false,
|
|
1716
|
+
"complexType": {
|
|
1717
|
+
"original": "string",
|
|
1718
|
+
"resolved": "string",
|
|
1719
|
+
"references": {}
|
|
1720
|
+
},
|
|
1721
|
+
"required": false,
|
|
1722
|
+
"optional": true,
|
|
1723
|
+
"docs": {
|
|
1724
|
+
"tags": [{
|
|
1725
|
+
"name": "since",
|
|
1726
|
+
"text": "v7.25.0"
|
|
1727
|
+
}, {
|
|
1728
|
+
"name": "category",
|
|
1729
|
+
"text": "HTML attributes"
|
|
1730
|
+
}],
|
|
1731
|
+
"text": "Provide the label for the end input from another element via its ID.\nWe strongly recommend you use the `label-to` prop instead."
|
|
1732
|
+
},
|
|
1733
|
+
"getter": false,
|
|
1734
|
+
"setter": false,
|
|
1735
|
+
"reflect": false,
|
|
1736
|
+
"attribute": "pn-aria-labelledby-end"
|
|
1737
|
+
},
|
|
1738
|
+
"dateId": {
|
|
1739
|
+
"type": "string",
|
|
1740
|
+
"mutable": false,
|
|
1741
|
+
"complexType": {
|
|
1742
|
+
"original": "string",
|
|
1743
|
+
"resolved": "string",
|
|
1744
|
+
"references": {}
|
|
1745
|
+
},
|
|
1746
|
+
"required": false,
|
|
1747
|
+
"optional": true,
|
|
1748
|
+
"docs": {
|
|
1749
|
+
"tags": [{
|
|
1750
|
+
"name": "since",
|
|
1751
|
+
"text": "v7.6.0"
|
|
1752
|
+
}, {
|
|
1753
|
+
"name": "deprecated",
|
|
1754
|
+
"text": "Use `pn-id` instead."
|
|
1755
|
+
}, {
|
|
1756
|
+
"name": "category",
|
|
1757
|
+
"text": "HTML attributes"
|
|
1758
|
+
}],
|
|
1759
|
+
"text": "Set a custom ID for the calendar."
|
|
1760
|
+
},
|
|
1761
|
+
"getter": false,
|
|
1762
|
+
"setter": false,
|
|
1763
|
+
"reflect": false,
|
|
1764
|
+
"attribute": "date-id"
|
|
1765
|
+
},
|
|
1491
1766
|
"minDate": {
|
|
1492
1767
|
"type": "string",
|
|
1493
1768
|
"mutable": true,
|
|
@@ -1507,7 +1782,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1507
1782
|
"text": "\"2024-05-25\""
|
|
1508
1783
|
}, {
|
|
1509
1784
|
"name": "category",
|
|
1510
|
-
"text": "
|
|
1785
|
+
"text": "Features"
|
|
1511
1786
|
}],
|
|
1512
1787
|
"text": "Earliest date possible, this will determine how many years back the date picker will show.\n\nRemember to use the same format that you have in the `format` prop."
|
|
1513
1788
|
},
|
|
@@ -1536,7 +1811,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1536
1811
|
"text": "\"2024-06-25\""
|
|
1537
1812
|
}, {
|
|
1538
1813
|
"name": "category",
|
|
1539
|
-
"text": "
|
|
1814
|
+
"text": "Features"
|
|
1540
1815
|
}],
|
|
1541
1816
|
"text": "Latest date possible, this will determine how many years forward the date picker will show.\n\nRemember to use the same format that you have in the `format` prop."
|
|
1542
1817
|
},
|
|
@@ -1552,7 +1827,7 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1552
1827
|
return {
|
|
1553
1828
|
"open": {},
|
|
1554
1829
|
"openUp": {},
|
|
1555
|
-
"
|
|
1830
|
+
"selectingEnd": {},
|
|
1556
1831
|
"grid": {},
|
|
1557
1832
|
"viewYearStart": {},
|
|
1558
1833
|
"dateViewYear": {},
|
|
@@ -1680,10 +1955,16 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1680
1955
|
static get watchers() {
|
|
1681
1956
|
return [{
|
|
1682
1957
|
"propName": "minDate",
|
|
1683
|
-
"methodName": "watchMin"
|
|
1958
|
+
"methodName": "watchMin",
|
|
1959
|
+
"handlerOptions": {
|
|
1960
|
+
"immediate": true
|
|
1961
|
+
}
|
|
1684
1962
|
}, {
|
|
1685
1963
|
"propName": "maxDate",
|
|
1686
|
-
"methodName": "watchMax"
|
|
1964
|
+
"methodName": "watchMax",
|
|
1965
|
+
"handlerOptions": {
|
|
1966
|
+
"immediate": true
|
|
1967
|
+
}
|
|
1687
1968
|
}, {
|
|
1688
1969
|
"propName": "start",
|
|
1689
1970
|
"methodName": "watchValue"
|
|
@@ -1694,8 +1975,14 @@ export class PnDatePicker extends Mixin(animateHeightFactory) {
|
|
|
1694
1975
|
"propName": "format",
|
|
1695
1976
|
"methodName": "handleFormat"
|
|
1696
1977
|
}, {
|
|
1697
|
-
"propName": "
|
|
1978
|
+
"propName": "dateId",
|
|
1698
1979
|
"methodName": "watchId"
|
|
1980
|
+
}, {
|
|
1981
|
+
"propName": "pnId",
|
|
1982
|
+
"methodName": "watchId",
|
|
1983
|
+
"handlerOptions": {
|
|
1984
|
+
"immediate": true
|
|
1985
|
+
}
|
|
1699
1986
|
}, {
|
|
1700
1987
|
"propName": "dateViewYear",
|
|
1701
1988
|
"methodName": "watchView"
|