@postnord/pn-marketweb-components 2.4.16 → 2.4.18
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/index-4199ff85.js +12 -4
- package/cjs/index-e4882728.js +72 -0
- package/cjs/loader.cjs.js +1 -1
- package/cjs/pn-date-and-time.cjs.entry.js +150 -0
- package/cjs/pn-dropdown-choice-adds-row.cjs.entry.js +254 -0
- package/cjs/pn-market-web-components.cjs.js +1 -1
- package/cjs/pn-multi-formfield.cjs.entry.js +2 -70
- package/collection/collection-manifest.json +2 -0
- package/collection/components/input/pn-date-and-time/pn-date-and-time.css +23 -0
- package/collection/components/input/pn-date-and-time/pn-date-and-time.js +349 -0
- package/collection/components/input/pn-date-and-time/pn-date-and-time.stories.js +39 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.css +58 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.js +508 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.stories.js +43 -0
- package/collection/components/input/pn-dropdown-choice-adds-row/types.js +1 -0
- package/components/index.d.ts +2 -0
- package/components/index.js +2 -0
- package/components/index3.js +61 -178
- package/{esm/index-7f77b0ba.js → components/index4.js} +1 -1
- package/components/pn-date-and-time.d.ts +11 -0
- package/components/pn-date-and-time.js +186 -0
- package/components/pn-dropdown-choice-adds-row.d.ts +11 -0
- package/components/pn-dropdown-choice-adds-row.js +292 -0
- package/components/pn-find-price-result2.js +1 -1
- package/components/pn-find-service-and-price-result2.js +1 -1
- package/components/pn-mainnav-store.js +1 -1
- package/components/pn-marketweb-siteheader-login-linklist2.js +1 -1
- package/components/pn-marketweb-siteheader-search2.js +1 -1
- package/components/pn-multi-formfield.js +1 -69
- package/components/pn-product-pricelist-result.js +1 -1
- package/components/pn-profile-modal-store.js +1 -1
- package/components/pn-proxio-findprice.js +1 -1
- package/components/pn-sidenav-store.js +1 -1
- package/esm/index-8976f360.js +70 -0
- package/esm/index-b71e0f8e.js +187 -0
- package/esm/{index-c118284d.js → index-ee44c065.js} +13 -5
- package/esm/loader.js +3 -3
- package/esm/pn-animated-tile.entry.js +1 -1
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/pn-breakpoints.entry.js +1 -1
- package/esm/pn-chart.entry.js +1 -1
- package/esm/pn-charts-card.entry.js +1 -1
- package/esm/pn-choice-button.entry.js +1 -1
- package/esm/pn-customernumber-selector-option.entry.js +1 -1
- package/esm/pn-customernumber-selector.entry.js +1 -1
- package/esm/pn-date-and-time.entry.js +146 -0
- package/esm/pn-dropdown-choice-adds-row.entry.js +250 -0
- package/esm/pn-filter-checkbox.entry.js +1 -1
- package/esm/pn-find-price-result.entry.js +3 -3
- package/esm/{pn-find-price-store-e13b6651.js → pn-find-price-store-5810a2b9.js} +1 -1
- package/esm/pn-find-price.entry.js +3 -3
- package/esm/pn-find-service-and-price-result.entry.js +3 -3
- package/esm/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-0b1b3ab7.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-language-selector_9.entry.js +4 -4
- package/esm/pn-line-shape.entry.js +1 -1
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-8c221c2f.js} +1 -1
- package/esm/pn-market-web-components.js +3 -3
- package/esm/pn-marketweb-input.entry.js +1 -1
- package/esm/pn-marketweb-search.entry.js +1 -1
- package/esm/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm/pn-marketweb-siteheader-login-button_5.entry.js +3 -3
- package/esm/pn-marketweb-siteheader-login-linklist.entry.js +3 -3
- package/esm/{pn-marketweb-siteheader-store-9df5290d.js → pn-marketweb-siteheader-store-cea5016e.js} +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +3 -3
- package/esm/pn-multi-formfield.entry.js +2 -70
- package/esm/pn-parcel-tracker.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-play-on-scroll.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +2 -2
- package/esm/pn-product-pricelist.entry.js +3 -3
- package/esm/pn-product-tile-info_2.entry.js +1 -1
- package/esm/pn-product-tile.entry.js +1 -1
- package/esm/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm/pn-profile-modal-profile.entry.js +3 -3
- package/esm/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-e08316b5.js} +1 -1
- package/esm/pn-profile-modal-type.entry.js +3 -3
- package/esm/pn-profile-modal.entry.js +3 -3
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.entry.js +1 -1
- package/esm/pn-proxio-findprice-result.entry.js +1 -1
- package/esm/pn-proxio-findprice.entry.js +2 -2
- package/esm/pn-proxio-pricegroup.entry.js +1 -1
- package/esm/pn-proxio-productcard_4.entry.js +1 -1
- package/esm/pn-quick-cta.entry.js +1 -1
- package/esm/pn-quote-card.entry.js +1 -1
- package/esm/pn-scroll_2.entry.js +1 -1
- package/esm/pn-share-item.entry.js +1 -1
- package/esm/pn-share.entry.js +1 -1
- package/esm/pn-sidenav-level.entry.js +3 -3
- package/esm/pn-sidenav-link.entry.js +3 -3
- package/esm/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-9530b0da.js} +1 -1
- package/esm/pn-sidenav-togglebutton.entry.js +3 -3
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_3.entry.js +1 -1
- package/esm/pn-spotlight.entry.js +1 -1
- package/esm/pn-stats-info-data.entry.js +1 -1
- package/esm/pn-stats-info.entry.js +1 -1
- package/esm/pn-teaser-card.entry.js +1 -1
- package/esm/pn-titletag.entry.js +1 -1
- package/esm-es5/index-8976f360.js +1 -0
- package/esm-es5/{index-7f77b0ba.js → index-b71e0f8e.js} +1 -1
- package/esm-es5/{index-c118284d.js → index-ee44c065.js} +1 -1
- package/esm-es5/loader.js +1 -1
- package/esm-es5/pn-animated-tile.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm-es5/pn-bonus-progressbar.entry.js +1 -1
- package/esm-es5/pn-breakpoints.entry.js +1 -1
- package/esm-es5/pn-chart.entry.js +1 -1
- package/esm-es5/pn-charts-card.entry.js +1 -1
- package/esm-es5/pn-choice-button.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector-option.entry.js +1 -1
- package/esm-es5/pn-customernumber-selector.entry.js +1 -1
- package/esm-es5/pn-date-and-time.entry.js +1 -0
- package/esm-es5/pn-dropdown-choice-adds-row.entry.js +1 -0
- package/esm-es5/pn-filter-checkbox.entry.js +1 -1
- package/esm-es5/pn-find-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-price-store-e13b6651.js → pn-find-price-store-5810a2b9.js} +1 -1
- package/esm-es5/pn-find-price.entry.js +1 -1
- package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
- package/esm-es5/{pn-find-service-and-price-store-f09ca219.js → pn-find-service-and-price-store-0b1b3ab7.js} +1 -1
- package/esm-es5/pn-find-service-and-price.entry.js +1 -1
- package/esm-es5/pn-language-selector_9.entry.js +1 -1
- package/esm-es5/pn-line-shape.entry.js +1 -1
- package/esm-es5/pn-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-5d91f523.js → pn-mainnav-store-8c221c2f.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-input.entry.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -1
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-button_5.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-login-linklist.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader-store-cea5016e.js +1 -0
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-multi-formfield.entry.js +1 -1
- package/esm-es5/pn-parcel-tracker.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.entry.js +1 -1
- package/esm-es5/pn-play-on-scroll.entry.js +1 -1
- package/esm-es5/pn-product-card_3.entry.js +1 -1
- package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile-info_2.entry.js +1 -1
- package/esm-es5/pn-product-tile.entry.js +1 -1
- package/esm-es5/pn-profile-modal-customernumber.entry.js +1 -1
- package/esm-es5/pn-profile-modal-profile.entry.js +1 -1
- package/esm-es5/{pn-profile-modal-store-81f53310.js → pn-profile-modal-store-e08316b5.js} +1 -1
- package/esm-es5/pn-profile-modal-type.entry.js +1 -1
- package/esm-es5/pn-profile-modal.entry.js +1 -1
- package/esm-es5/pn-profile-selector-option.entry.js +1 -1
- package/esm-es5/pn-profile-selector.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice-result.entry.js +1 -1
- package/esm-es5/pn-proxio-findprice.entry.js +1 -1
- package/esm-es5/pn-proxio-pricegroup.entry.js +1 -1
- package/esm-es5/pn-proxio-productcard_4.entry.js +1 -1
- package/esm-es5/pn-quick-cta.entry.js +1 -1
- package/esm-es5/pn-quote-card.entry.js +1 -1
- package/esm-es5/pn-scroll_2.entry.js +1 -1
- package/esm-es5/pn-share-item.entry.js +1 -1
- package/esm-es5/pn-share.entry.js +1 -1
- package/esm-es5/pn-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-94be19c8.js → pn-sidenav-store-9530b0da.js} +1 -1
- package/esm-es5/pn-sidenav-togglebutton.entry.js +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_3.entry.js +1 -1
- package/esm-es5/pn-spotlight.entry.js +1 -1
- package/esm-es5/pn-stats-info-data.entry.js +1 -1
- package/esm-es5/pn-stats-info.entry.js +1 -1
- package/esm-es5/pn-teaser-card.entry.js +1 -1
- package/esm-es5/pn-titletag.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-dbd7837e.entry.js → p-00287dc7.entry.js} +1 -1
- package/pn-market-web-components/{p-c1d9a064.entry.js → p-01a37a82.entry.js} +1 -1
- package/pn-market-web-components/{p-f7cb2ef9.system.entry.js → p-0739fdcf.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8cefd900.system.entry.js → p-0ae0b140.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3afc3173.entry.js → p-0be5cbf5.entry.js} +1 -1
- package/pn-market-web-components/{p-ffe18938.system.entry.js → p-0c1a0814.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ad836c55.system.js → p-0d0e9547.system.js} +1 -1
- package/pn-market-web-components/{p-6eabccbc.system.entry.js → p-1135350f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-545a40a7.system.entry.js → p-153b4454.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9a1c267d.entry.js → p-169ccf69.entry.js} +1 -1
- package/pn-market-web-components/{p-b0102ff6.entry.js → p-16fedd71.entry.js} +1 -1
- package/pn-market-web-components/p-196b2316.system.entry.js +1 -0
- package/pn-market-web-components/{p-87d904e0.entry.js → p-1a8d7eb8.entry.js} +1 -1
- package/pn-market-web-components/{p-44c05fba.entry.js → p-1afc6f8f.entry.js} +1 -1
- package/pn-market-web-components/{p-589a9a4c.system.entry.js → p-1b4a75b3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-beefd9f7.entry.js → p-1bd7e641.entry.js} +1 -1
- package/pn-market-web-components/{p-ac62dc33.entry.js → p-1bf35bf0.entry.js} +1 -1
- package/pn-market-web-components/{p-b890f3f9.system.entry.js → p-1dc6c4ac.system.entry.js} +1 -1
- package/pn-market-web-components/p-2156e251.entry.js +1 -0
- package/pn-market-web-components/{p-c5643358.system.entry.js → p-21bf0e64.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e8dad7fe.entry.js → p-220140a0.entry.js} +1 -1
- package/pn-market-web-components/{p-b35ab163.entry.js → p-267fc52b.entry.js} +1 -1
- package/pn-market-web-components/{p-d5ae9797.entry.js → p-2744b30a.entry.js} +1 -1
- package/pn-market-web-components/{p-ef721555.system.entry.js → p-28912c0c.system.entry.js} +1 -1
- package/pn-market-web-components/p-296637c0.system.js +1 -0
- package/pn-market-web-components/{p-6b46c15c.entry.js → p-2cc52ba6.entry.js} +1 -1
- package/pn-market-web-components/{p-4ef54288.entry.js → p-2ee328d2.entry.js} +1 -1
- package/pn-market-web-components/{p-8d041ecf.system.entry.js → p-37abc8d3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-396b254a.system.js → p-38183dee.system.js} +1 -1
- package/pn-market-web-components/{p-78543a18.system.entry.js → p-38c861d5.system.entry.js} +1 -1
- package/pn-market-web-components/p-3a897643.system.entry.js +1 -0
- package/pn-market-web-components/{p-49f60496.entry.js → p-3aef506c.entry.js} +1 -1
- package/pn-market-web-components/{p-3a0d8f2e.entry.js → p-3ba2a479.entry.js} +1 -1
- package/pn-market-web-components/{p-29d0ec91.system.entry.js → p-3bc31e82.system.entry.js} +1 -1
- package/pn-market-web-components/{p-c5031e21.system.entry.js → p-3c38a67e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-02632961.system.entry.js → p-3e5d59f2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-47d717a3.entry.js → p-3f2bc920.entry.js} +1 -1
- package/pn-market-web-components/{p-5d67f772.system.entry.js → p-3fab06aa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8f32fa2b.system.entry.js → p-41f5086b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3a450371.system.js → p-420c307b.system.js} +1 -1
- package/pn-market-web-components/{p-15e680a8.entry.js → p-436857a8.entry.js} +1 -1
- package/pn-market-web-components/{p-2145d5e0.system.entry.js → p-4529f4b7.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2bd40797.system.entry.js → p-46a4dbdd.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8079dfd5.system.entry.js → p-47576a14.system.entry.js} +1 -1
- package/pn-market-web-components/{p-5a506356.system.entry.js → p-4b71d79d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e4961116.system.entry.js → p-4bd36d2c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1646c170.system.entry.js → p-4d2d81b8.system.entry.js} +1 -1
- package/pn-market-web-components/p-4e3d7a56.js +1 -0
- package/pn-market-web-components/p-4e7d4e69.entry.js +1 -0
- package/pn-market-web-components/{p-6b5ff47f.entry.js → p-4f1df02c.entry.js} +1 -1
- package/pn-market-web-components/{p-7d992089.entry.js → p-4f2bdae2.entry.js} +1 -1
- package/pn-market-web-components/{p-6525a912.entry.js → p-4fbea675.entry.js} +1 -1
- package/pn-market-web-components/{p-156fedd7.entry.js → p-5032302f.entry.js} +1 -1
- package/pn-market-web-components/{p-874db3bd.entry.js → p-5427a6ba.entry.js} +1 -1
- package/pn-market-web-components/{p-5e768b73.entry.js → p-56ac01d0.entry.js} +1 -1
- package/pn-market-web-components/{p-73ee3141.entry.js → p-57957809.entry.js} +1 -1
- package/pn-market-web-components/{p-7c1b31e8.js → p-57d37022.js} +1 -1
- package/pn-market-web-components/{p-c668f453.entry.js → p-59d44719.entry.js} +1 -1
- package/pn-market-web-components/{p-833bab34.entry.js → p-5afd892a.entry.js} +1 -1
- package/pn-market-web-components/{p-1d50340b.system.entry.js → p-612adfb3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-658f6ff7.system.entry.js → p-62bceebe.system.entry.js} +1 -1
- package/pn-market-web-components/{p-853e6559.system.entry.js → p-62de103d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-386d72ea.entry.js → p-6e11edfe.entry.js} +1 -1
- package/pn-market-web-components/p-6f2e839c.js +1 -0
- package/pn-market-web-components/{p-6d050c3a.system.entry.js → p-6fe471aa.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fca11f16.system.entry.js → p-70cc4002.system.entry.js} +1 -1
- package/pn-market-web-components/{p-14af3f96.system.entry.js → p-70ef1b2d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-939b5792.system.entry.js → p-7364721d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1fb4eae4.system.entry.js → p-738c179b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9010c32a.system.entry.js → p-759a2b20.system.entry.js} +1 -1
- package/pn-market-web-components/p-76ce7256.entry.js +1 -0
- package/pn-market-web-components/{p-abfed655.system.entry.js → p-7877ce39.system.entry.js} +1 -1
- package/pn-market-web-components/{p-68324e6f.system.entry.js → p-793bb22f.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ed81a6d6.system.entry.js → p-794af3d3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e2abebd7.entry.js → p-7a33e360.entry.js} +1 -1
- package/pn-market-web-components/{p-34c0b146.entry.js → p-7bf30d19.entry.js} +1 -1
- package/pn-market-web-components/{p-494aa2d2.entry.js → p-7c1e5042.entry.js} +1 -1
- package/pn-market-web-components/{p-c761dd91.system.entry.js → p-7e99f631.system.entry.js} +1 -1
- package/pn-market-web-components/{p-a5faec68.system.js → p-7ffa5533.system.js} +1 -1
- package/pn-market-web-components/{p-aaa94bee.system.entry.js → p-81608e33.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8ca063a9.system.entry.js → p-81902554.system.entry.js} +1 -1
- package/pn-market-web-components/{p-34f2fb92.entry.js → p-83f39020.entry.js} +1 -1
- package/pn-market-web-components/{p-d6ee168b.system.entry.js → p-85ce2d47.system.entry.js} +1 -1
- package/pn-market-web-components/{p-e7f43cc2.entry.js → p-8aec3e9e.entry.js} +1 -1
- package/pn-market-web-components/{p-71895c6f.entry.js → p-8cc12089.entry.js} +1 -1
- package/pn-market-web-components/{p-463e2743.system.entry.js → p-8e9abd24.system.entry.js} +1 -1
- package/pn-market-web-components/{p-507f8886.entry.js → p-8e9e0c04.entry.js} +1 -1
- package/pn-market-web-components/{p-2e507907.system.entry.js → p-9482937b.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0159804c.system.entry.js → p-96729f36.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0fbcacf3.system.entry.js → p-969d310d.system.entry.js} +1 -1
- package/pn-market-web-components/{p-82db879c.entry.js → p-9d517155.entry.js} +1 -1
- package/pn-market-web-components/{p-d702aede.entry.js → p-9e47435e.entry.js} +1 -1
- package/pn-market-web-components/{p-37d26cef.entry.js → p-a400365f.entry.js} +1 -1
- package/pn-market-web-components/{p-e4fbd06c.entry.js → p-a4fcfc3c.entry.js} +1 -1
- package/pn-market-web-components/{p-a1a58fe4.js → p-a7d52aee.js} +1 -1
- package/pn-market-web-components/{p-4d561de4.system.entry.js → p-a8aff7ab.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9f0f1dd8.system.entry.js → p-ad7a00b6.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0f1115aa.entry.js → p-af1be0d9.entry.js} +1 -1
- package/pn-market-web-components/{p-8ebe7b15.system.entry.js → p-b28cf3a3.system.entry.js} +1 -1
- package/pn-market-web-components/{p-9ed7a18f.entry.js → p-b3831534.entry.js} +1 -1
- package/pn-market-web-components/{p-d34c9be2.system.js → p-ba06f541.system.js} +1 -1
- package/pn-market-web-components/{p-c576ac3e.system.entry.js → p-bbcd8889.system.entry.js} +1 -1
- package/pn-market-web-components/{p-fe0d832d.system.entry.js → p-bed03b9c.system.entry.js} +1 -1
- package/pn-market-web-components/{p-dc598ef8.entry.js → p-c02fc405.entry.js} +1 -1
- package/pn-market-web-components/p-c0961278.system.entry.js +1 -0
- package/pn-market-web-components/{p-864fe276.entry.js → p-c2415b38.entry.js} +1 -1
- package/pn-market-web-components/{p-773b59c0.entry.js → p-c86c624a.entry.js} +1 -1
- package/pn-market-web-components/{p-7dff99ed.entry.js → p-c954c090.entry.js} +1 -1
- package/pn-market-web-components/{p-8fee0115.system.entry.js → p-ca04e415.system.entry.js} +1 -1
- package/pn-market-web-components/{p-2a5cd298.entry.js → p-cde2fce7.entry.js} +1 -1
- package/pn-market-web-components/{p-c1565c47.entry.js → p-ce1805f0.entry.js} +1 -1
- package/pn-market-web-components/{p-e0e45eb0.system.entry.js → p-d1150166.system.entry.js} +1 -1
- package/pn-market-web-components/{p-bdd1ec55.entry.js → p-d2ba5b69.entry.js} +1 -1
- package/pn-market-web-components/{p-e737c51d.system.entry.js → p-d2ebaf52.system.entry.js} +1 -1
- package/pn-market-web-components/{p-17fb8d9e.entry.js → p-d3511e86.entry.js} +1 -1
- package/pn-market-web-components/p-d8e0d7e7.js +1 -0
- package/pn-market-web-components/{p-1545fb34.entry.js → p-e00b1afa.entry.js} +1 -1
- package/pn-market-web-components/{p-752616b7.system.entry.js → p-e247fdf4.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1590ae58.system.entry.js → p-e2613cc5.system.entry.js} +1 -1
- package/pn-market-web-components/p-e3a65e18.js +1 -0
- package/pn-market-web-components/{p-9f95b3c9.system.entry.js → p-e47abff1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-441249d9.system.js → p-e5d994ff.system.js} +1 -1
- package/pn-market-web-components/p-e5d9f268.entry.js +1 -0
- package/pn-market-web-components/{p-48c74c53.entry.js → p-e6e7e18a.entry.js} +1 -1
- package/pn-market-web-components/{p-548b62a8.system.entry.js → p-e8b144ff.system.entry.js} +1 -1
- package/pn-market-web-components/{p-4b2e76e9.entry.js → p-eab25822.entry.js} +1 -1
- package/pn-market-web-components/{p-38f135fd.entry.js → p-f0078106.entry.js} +1 -1
- package/pn-market-web-components/{p-13d2d138.system.js → p-f074da8f.system.js} +1 -1
- package/pn-market-web-components/{p-c5727e83.js → p-f1962610.js} +1 -1
- package/pn-market-web-components/{p-f453732e.entry.js → p-f45f034b.entry.js} +1 -1
- package/pn-market-web-components/{p-6f1d6a1a.system.js → p-f4adb442.system.js} +1 -1
- package/pn-market-web-components/p-f5eddbe2.js +1 -0
- package/pn-market-web-components/{p-a8671fc6.system.entry.js → p-f7165a26.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1a9b2a0e.system.entry.js → p-f9b8baf0.system.entry.js} +1 -1
- package/pn-market-web-components/p-fcdb7381.system.js +1 -0
- package/pn-market-web-components/{p-8666d14d.js → p-fdb1905d.js} +1 -1
- package/pn-market-web-components/{p-d70e685c.entry.js → p-fec3dc66.entry.js} +1 -1
- package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
- package/pn-market-web-components/pn-market-web-components.js +1 -1
- package/types/components/input/pn-date-and-time/pn-date-and-time.d.ts +45 -0
- package/types/components/input/pn-dropdown-choice-adds-row/pn-dropdown-choice-adds-row.d.ts +43 -0
- package/types/components/input/pn-dropdown-choice-adds-row/types.d.ts +18 -0
- package/types/components.d.ts +79 -0
- package/esm-es5/pn-marketweb-siteheader-store-9df5290d.js +0 -1
- package/pn-market-web-components/p-3d8925bd.entry.js +0 -1
- package/pn-market-web-components/p-44f58f15.js +0 -1
- package/pn-market-web-components/p-54544560.system.entry.js +0 -1
- package/pn-market-web-components/p-5a6761da.js +0 -1
- package/pn-market-web-components/p-a799fee1.entry.js +0 -1
- package/pn-market-web-components/p-c0db1ffd.js +0 -1
- package/pn-market-web-components/p-d295ef71.system.js +0 -1
- package/pn-market-web-components/p-ecaad0c1.js +0 -1
package/components/index3.js
CHANGED
|
@@ -1,187 +1,70 @@
|
|
|
1
|
-
import { getRenderingRef, forceUpdate } from '@stencil/core/internal/client';
|
|
2
|
-
|
|
3
|
-
const appendToMap = (map, propName, value) => {
|
|
4
|
-
const items = map.get(propName);
|
|
5
|
-
if (!items) {
|
|
6
|
-
map.set(propName, [value]);
|
|
7
|
-
}
|
|
8
|
-
else if (!items.includes(value)) {
|
|
9
|
-
items.push(value);
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
const debounce = (fn, ms) => {
|
|
13
|
-
let timeoutId;
|
|
14
|
-
return (...args) => {
|
|
15
|
-
if (timeoutId) {
|
|
16
|
-
clearTimeout(timeoutId);
|
|
17
|
-
}
|
|
18
|
-
timeoutId = setTimeout(() => {
|
|
19
|
-
timeoutId = 0;
|
|
20
|
-
fn(...args);
|
|
21
|
-
}, ms);
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
|
|
25
1
|
/**
|
|
26
|
-
*
|
|
27
|
-
* The
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
2
|
+
* Returns a function, that, as long as it continues to be invoked, will not
|
|
3
|
+
* be triggered. The function will be called after it stops being called for
|
|
4
|
+
* N milliseconds. If `immediate` is passed, trigger the function on the
|
|
5
|
+
* leading edge, instead of the trailing. The function also has a property 'clear'
|
|
6
|
+
* that is a function which will clear the timer to prevent previously scheduled executions.
|
|
31
7
|
*
|
|
32
|
-
*
|
|
8
|
+
* @source underscore.js
|
|
9
|
+
* @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
|
|
10
|
+
* @param {Function} function to wrap
|
|
11
|
+
* @param {Number} timeout in ms (`100`)
|
|
12
|
+
* @param {Boolean} whether to execute at the beginning (`false`)
|
|
13
|
+
* @api public
|
|
33
14
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
15
|
+
function debounce(func, wait, immediate){
|
|
16
|
+
var timeout, args, context, timestamp, result;
|
|
17
|
+
if (null == wait) wait = 100;
|
|
18
|
+
|
|
19
|
+
function later() {
|
|
20
|
+
var last = Date.now() - timestamp;
|
|
21
|
+
|
|
22
|
+
if (last < wait && last >= 0) {
|
|
23
|
+
timeout = setTimeout(later, wait - last);
|
|
24
|
+
} else {
|
|
25
|
+
timeout = null;
|
|
26
|
+
if (!immediate) {
|
|
27
|
+
result = func.apply(context, args);
|
|
28
|
+
context = args = null;
|
|
29
|
+
}
|
|
38
30
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
}
|
|
32
|
+
var debounced = function(){
|
|
33
|
+
context = this;
|
|
34
|
+
args = arguments;
|
|
35
|
+
timestamp = Date.now();
|
|
36
|
+
var callNow = immediate && !timeout;
|
|
37
|
+
if (!timeout) timeout = setTimeout(later, wait);
|
|
38
|
+
if (callNow) {
|
|
39
|
+
result = func.apply(context, args);
|
|
40
|
+
context = args = null;
|
|
45
41
|
}
|
|
46
|
-
const elmsToUpdate = new Map();
|
|
47
|
-
return {
|
|
48
|
-
dispose: () => elmsToUpdate.clear(),
|
|
49
|
-
get: (propName) => {
|
|
50
|
-
const elm = getRenderingRef();
|
|
51
|
-
if (elm) {
|
|
52
|
-
appendToMap(elmsToUpdate, propName, elm);
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
set: (propName) => {
|
|
56
|
-
const elements = elmsToUpdate.get(propName);
|
|
57
|
-
if (elements) {
|
|
58
|
-
elmsToUpdate.set(propName, elements.filter(forceUpdate));
|
|
59
|
-
}
|
|
60
|
-
cleanupElements(elmsToUpdate);
|
|
61
|
-
},
|
|
62
|
-
reset: () => {
|
|
63
|
-
elmsToUpdate.forEach((elms) => elms.forEach(forceUpdate));
|
|
64
|
-
cleanupElements(elmsToUpdate);
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
42
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
const reset = () => {
|
|
78
|
-
states = new Map(Object.entries(defaultState !== null && defaultState !== void 0 ? defaultState : {}));
|
|
79
|
-
handlers.reset.forEach((cb) => cb());
|
|
80
|
-
};
|
|
81
|
-
const dispose = () => {
|
|
82
|
-
// Call first dispose as resetting the state would
|
|
83
|
-
// cause less updates ;)
|
|
84
|
-
handlers.dispose.forEach((cb) => cb());
|
|
85
|
-
reset();
|
|
86
|
-
};
|
|
87
|
-
const get = (propName) => {
|
|
88
|
-
handlers.get.forEach((cb) => cb(propName));
|
|
89
|
-
return states.get(propName);
|
|
90
|
-
};
|
|
91
|
-
const set = (propName, value) => {
|
|
92
|
-
const oldValue = states.get(propName);
|
|
93
|
-
if (shouldUpdate(value, oldValue, propName)) {
|
|
94
|
-
states.set(propName, value);
|
|
95
|
-
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const state = (typeof Proxy === 'undefined'
|
|
99
|
-
? {}
|
|
100
|
-
: new Proxy(defaultState, {
|
|
101
|
-
get(_, propName) {
|
|
102
|
-
return get(propName);
|
|
103
|
-
},
|
|
104
|
-
ownKeys(_) {
|
|
105
|
-
return Array.from(states.keys());
|
|
106
|
-
},
|
|
107
|
-
getOwnPropertyDescriptor() {
|
|
108
|
-
return {
|
|
109
|
-
enumerable: true,
|
|
110
|
-
configurable: true,
|
|
111
|
-
};
|
|
112
|
-
},
|
|
113
|
-
has(_, propName) {
|
|
114
|
-
return states.has(propName);
|
|
115
|
-
},
|
|
116
|
-
set(_, propName, value) {
|
|
117
|
-
set(propName, value);
|
|
118
|
-
return true;
|
|
119
|
-
},
|
|
120
|
-
}));
|
|
121
|
-
const on = (eventName, callback) => {
|
|
122
|
-
handlers[eventName].push(callback);
|
|
123
|
-
return () => {
|
|
124
|
-
removeFromArray(handlers[eventName], callback);
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
const onChange = (propName, cb) => {
|
|
128
|
-
const unSet = on('set', (key, newValue) => {
|
|
129
|
-
if (key === propName) {
|
|
130
|
-
cb(newValue);
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
const unReset = on('reset', () => cb(defaultState[propName]));
|
|
134
|
-
return () => {
|
|
135
|
-
unSet();
|
|
136
|
-
unReset();
|
|
137
|
-
};
|
|
138
|
-
};
|
|
139
|
-
const use = (...subscriptions) => {
|
|
140
|
-
const unsubs = subscriptions.reduce((unsubs, subscription) => {
|
|
141
|
-
if (subscription.set) {
|
|
142
|
-
unsubs.push(on('set', subscription.set));
|
|
143
|
-
}
|
|
144
|
-
if (subscription.get) {
|
|
145
|
-
unsubs.push(on('get', subscription.get));
|
|
146
|
-
}
|
|
147
|
-
if (subscription.reset) {
|
|
148
|
-
unsubs.push(on('reset', subscription.reset));
|
|
149
|
-
}
|
|
150
|
-
if (subscription.dispose) {
|
|
151
|
-
unsubs.push(on('dispose', subscription.dispose));
|
|
152
|
-
}
|
|
153
|
-
return unsubs;
|
|
154
|
-
}, []);
|
|
155
|
-
return () => unsubs.forEach((unsub) => unsub());
|
|
156
|
-
};
|
|
157
|
-
const forceUpdate = (key) => {
|
|
158
|
-
const oldValue = states.get(key);
|
|
159
|
-
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
160
|
-
};
|
|
161
|
-
return {
|
|
162
|
-
state,
|
|
163
|
-
get,
|
|
164
|
-
set,
|
|
165
|
-
on,
|
|
166
|
-
onChange,
|
|
167
|
-
use,
|
|
168
|
-
dispose,
|
|
169
|
-
reset,
|
|
170
|
-
forceUpdate,
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
const removeFromArray = (array, item) => {
|
|
174
|
-
const index = array.indexOf(item);
|
|
175
|
-
if (index >= 0) {
|
|
176
|
-
array[index] = array[array.length - 1];
|
|
177
|
-
array.length--;
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
debounced.clear = function() {
|
|
47
|
+
if (timeout) {
|
|
48
|
+
clearTimeout(timeout);
|
|
49
|
+
timeout = null;
|
|
178
50
|
}
|
|
179
|
-
};
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
debounced.flush = function() {
|
|
54
|
+
if (timeout) {
|
|
55
|
+
result = func.apply(context, args);
|
|
56
|
+
context = args = null;
|
|
57
|
+
|
|
58
|
+
clearTimeout(timeout);
|
|
59
|
+
timeout = null;
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
return debounced;
|
|
64
|
+
}
|
|
65
|
+
// Adds compatibility for ES modules
|
|
66
|
+
debounce.debounce = debounce;
|
|
180
67
|
|
|
181
|
-
|
|
182
|
-
const map = createObservableMap(defaultState, shouldUpdate);
|
|
183
|
-
map.use(stencilSubscription());
|
|
184
|
-
return map;
|
|
185
|
-
};
|
|
68
|
+
var debounce_1 = debounce;
|
|
186
69
|
|
|
187
|
-
export {
|
|
70
|
+
export { debounce_1 as d };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PnDateAndTime extends Components.PnDateAndTime, HTMLElement {}
|
|
4
|
+
export const PnDateAndTime: {
|
|
5
|
+
prototype: PnDateAndTime;
|
|
6
|
+
new (): PnDateAndTime;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const pnDateAndTimeCss = "pn-date-and-time label{color:#5E554A;font-size:1.4rem}pn-date-and-time .time-separator{margin-top:auto;margin-bottom:auto}pn-date-and-time .date-and-time-group{margin-bottom:1rem}pn-date-and-time .date-and-time-row{display:-ms-flexbox;display:flex;gap:1rem}pn-date-and-time .helper-text{margin-top:0.2rem;color:#5E554A;display:block}pn-date-and-time .error-message{color:#a70707}";
|
|
4
|
+
|
|
5
|
+
const PnDateAndTime$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.dateandtimerange = createEvent(this, "dateandtimerange", 7);
|
|
10
|
+
this.pnDatePicker = null;
|
|
11
|
+
this.pnTimeFromHourDropdown = null;
|
|
12
|
+
this.pnTimeFromMinuteDropdown = null;
|
|
13
|
+
this.pnTimeToHourDropdown = null;
|
|
14
|
+
this.pnTimeToMinuteDropdown = null;
|
|
15
|
+
this.languageCode = null;
|
|
16
|
+
this.dateAndTimeLabel = '';
|
|
17
|
+
this.dateDaysFromToday = 0;
|
|
18
|
+
this.validTimeRangeMinutes = 0;
|
|
19
|
+
this.errorMessage = '';
|
|
20
|
+
this.dateHelperText = '';
|
|
21
|
+
this.timeHelperText = '';
|
|
22
|
+
this.disableWeekends = false;
|
|
23
|
+
this.datePlacehodler = '';
|
|
24
|
+
this.language = null;
|
|
25
|
+
this.hourArr = null;
|
|
26
|
+
this.minuteArr = null;
|
|
27
|
+
this.formValue = null;
|
|
28
|
+
this.invalidTimespan = false;
|
|
29
|
+
this.selectedDate = null;
|
|
30
|
+
this.selectedFromHour = null;
|
|
31
|
+
this.selectedFromMin = null;
|
|
32
|
+
this.selectedToHour = null;
|
|
33
|
+
this.selectedToMin = null;
|
|
34
|
+
this.firstValidDateString = '';
|
|
35
|
+
this.lastValidDateString = '';
|
|
36
|
+
}
|
|
37
|
+
componentWillLoad() {
|
|
38
|
+
this.setInitialValues();
|
|
39
|
+
}
|
|
40
|
+
componentDidLoad() {
|
|
41
|
+
this.setDefaultHiddenValue();
|
|
42
|
+
this.addEventHandlers();
|
|
43
|
+
}
|
|
44
|
+
async setInitialValues() {
|
|
45
|
+
this.setLangugaeCode();
|
|
46
|
+
this.setFirstValidDate();
|
|
47
|
+
this.hourArr = this.getNumbersAsStringArr(6, 22, 1);
|
|
48
|
+
this.minuteArr = this.getNumbersAsStringArr(0, 50, 10);
|
|
49
|
+
}
|
|
50
|
+
setFirstValidDate() {
|
|
51
|
+
var _a;
|
|
52
|
+
const date = new Date();
|
|
53
|
+
date.setDate((_a = date.getDate() + this.dateDaysFromToday) !== null && _a !== void 0 ? _a : 0);
|
|
54
|
+
const year = date.getFullYear();
|
|
55
|
+
const month = (date.getMonth() + 1).toString().padStart(2, '0');
|
|
56
|
+
const day = date.getDate().toString().padStart(2, '0');
|
|
57
|
+
const endYear = year + 2;
|
|
58
|
+
this.firstValidDateString = `${year.toString()}-${month}-${day}`;
|
|
59
|
+
this.lastValidDateString = `${endYear.toString()}-${month}-${day}`;
|
|
60
|
+
}
|
|
61
|
+
setLangugaeCode() {
|
|
62
|
+
if (typeof this.languageCode === 'string' && this.languageCode.trim() === '') {
|
|
63
|
+
this.language = document.querySelector('html').lang;
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
this.language = this.languageCode;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
setDefaultHiddenValue() {
|
|
70
|
+
this.selectedFromHour = parseInt(this.hourArr[8]);
|
|
71
|
+
this.selectedFromMin = 0;
|
|
72
|
+
this.selectedToHour = parseInt(this.hourArr[12]);
|
|
73
|
+
this.selectedToMin = 0;
|
|
74
|
+
this.updateHiddenValue();
|
|
75
|
+
}
|
|
76
|
+
addEventHandlers() {
|
|
77
|
+
this.pnDatePicker.addEventListener('dateselection', this.handleChange.bind(this));
|
|
78
|
+
this.pnTimeFromHourDropdown.addEventListener('selectchange', this.handleChange.bind(this));
|
|
79
|
+
this.pnTimeFromMinuteDropdown.addEventListener('selectchange', this.handleChange.bind(this));
|
|
80
|
+
this.pnTimeToHourDropdown.addEventListener('selectchange', this.handleChange.bind(this));
|
|
81
|
+
this.pnTimeToMinuteDropdown.addEventListener('selectchange', this.handleChange.bind(this));
|
|
82
|
+
}
|
|
83
|
+
handleChange(e) {
|
|
84
|
+
const target = e.target;
|
|
85
|
+
if (target === this.pnDatePicker) {
|
|
86
|
+
this.selectedDate = e.detail;
|
|
87
|
+
}
|
|
88
|
+
if (target === this.pnTimeFromHourDropdown || target === this.pnTimeFromMinuteDropdown || target === this.pnTimeToHourDropdown || target === this.pnTimeToMinuteDropdown) {
|
|
89
|
+
this.handleTimeChange();
|
|
90
|
+
}
|
|
91
|
+
this.updateHiddenValue();
|
|
92
|
+
}
|
|
93
|
+
handleTimeChange() {
|
|
94
|
+
var _a, _b, _c, _d;
|
|
95
|
+
const fromHourString = (_a = this.pnTimeFromHourDropdown.querySelector('.current-selection .pn-option-content')) === null || _a === void 0 ? void 0 : _a.textContent;
|
|
96
|
+
const fromMinString = (_b = this.pnTimeFromMinuteDropdown.querySelector('.current-selection .pn-option-content')) === null || _b === void 0 ? void 0 : _b.textContent;
|
|
97
|
+
const toHourString = (_c = this.pnTimeToHourDropdown.querySelector('.current-selection .pn-option-content')) === null || _c === void 0 ? void 0 : _c.textContent;
|
|
98
|
+
const toMinString = (_d = this.pnTimeToMinuteDropdown.querySelector('.current-selection .pn-option-content')) === null || _d === void 0 ? void 0 : _d.textContent;
|
|
99
|
+
this.selectedFromHour = parseInt(fromHourString);
|
|
100
|
+
this.selectedFromMin = parseInt(fromMinString);
|
|
101
|
+
this.selectedToHour = parseInt(toHourString);
|
|
102
|
+
this.selectedToMin = parseInt(toMinString);
|
|
103
|
+
}
|
|
104
|
+
updateHiddenValue() {
|
|
105
|
+
const date = new Date();
|
|
106
|
+
const dateFrom = new Date(date.getFullYear(), date.getMonth(), date.getDate(), this.selectedFromHour, this.selectedFromMin, 0, 0);
|
|
107
|
+
const dateTo = new Date(date.getFullYear(), date.getMonth(), date.getDate(), this.selectedToHour, this.selectedToMin, 0, 0);
|
|
108
|
+
this.validateTimeRange(dateFrom.getTime(), dateTo.getTime());
|
|
109
|
+
if (this.invalidTimespan || !this.selectedDate) {
|
|
110
|
+
this.formValue = '';
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
const fromMin = this.selectedFromMin.toString().padStart(2, '0');
|
|
114
|
+
const toMin = this.selectedToMin.toString().padStart(2, '0');
|
|
115
|
+
this.formValue = `${this.selectedDate}, ${this.selectedFromHour}:${fromMin}-${this.selectedToHour}:${toMin}`;
|
|
116
|
+
}
|
|
117
|
+
this.dateandtimerange.emit(this.formValue);
|
|
118
|
+
}
|
|
119
|
+
validateTimeRange(from, to) {
|
|
120
|
+
let differenceValue = (to - from) / 1000;
|
|
121
|
+
differenceValue /= 60;
|
|
122
|
+
this.invalidTimespan = differenceValue < this.validTimeRangeMinutes ? true : false;
|
|
123
|
+
}
|
|
124
|
+
getNumbersAsStringArr(start, stop, step) {
|
|
125
|
+
const arr = Array.from({ length: (stop - start) / step + 1 }, (_, index) => start + index * step);
|
|
126
|
+
const result = [];
|
|
127
|
+
arr.forEach(item => {
|
|
128
|
+
const itemAsString = item.toString().padStart(2, '0');
|
|
129
|
+
result.push(itemAsString);
|
|
130
|
+
});
|
|
131
|
+
return result;
|
|
132
|
+
}
|
|
133
|
+
removePnOptionSelected() {
|
|
134
|
+
const selectOptions = this.hostElement.querySelectorAll('pn-option');
|
|
135
|
+
selectOptions.forEach(elm => {
|
|
136
|
+
elm.removeAttribute('selected');
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
render() {
|
|
140
|
+
var _a, _b, _c, _d;
|
|
141
|
+
return (h(Host, null, h("div", { class: "date-and-time-group" }, this.dateAndTimeLabel ? (h("div", { class: "date-and-time-row" }, h("label", null, this.dateAndTimeLabel))) : null, h("div", { class: "date-and-time-row" }, h("pn-date-picker", { ref: el => (this.pnDatePicker = el), range: "false", "disable-weekends": this.disableWeekends, "min-date": this.firstValidDateString, "max-date": this.lastValidDateString, language: this.language, placeholder: this.datePlacehodler })), this.dateHelperText ? h("small", { class: "date-and-time-row helper-text" }, this.dateHelperText) : null), h("div", { class: "date-and-time-group" }, h("div", { class: "date-and-time-row" }, h("pn-select", { ref: el => (this.pnTimeFromHourDropdown = el), name: "date-and-time-from-houre", placeholder: this.hourArr[8], class: "date-and-time-dropdown--time", invalid: this.invalidTimespan }, (_a = this.hourArr) === null || _a === void 0 ? void 0 : _a.map((hour) => (h("pn-option", null, hour)))), h("pn-select", { ref: el => (this.pnTimeFromMinuteDropdown = el), name: "date-and-time-from-minute", placeholder: this.minuteArr[0], class: "date-and-time-dropdown--time", invalid: this.invalidTimespan }, (_b = this.minuteArr) === null || _b === void 0 ? void 0 : _b.map((minute) => (h("pn-option", null, minute)))), h("div", { class: "time-separator" }, h("span", null, "-")), h("pn-select", { ref: el => (this.pnTimeToHourDropdown = el), name: "date-and-time-to-hour", placeholder: this.hourArr[12], class: "date-and-time-dropdown--time", invalid: this.invalidTimespan }, (_c = this.hourArr) === null || _c === void 0 ? void 0 : _c.map((hour) => (h("pn-option", null, hour)))), h("pn-select", { ref: el => (this.pnTimeToMinuteDropdown = el), name: "date-and-time-to-minute", placeholder: this.minuteArr[0], class: "date-and-time-dropdown--time", invalid: this.invalidTimespan }, (_d = this.minuteArr) === null || _d === void 0 ? void 0 : _d.map((minute) => (h("pn-option", null, minute))))), this.timeHelperText ? h("small", { class: "date-and-time-row helper-text" }, this.timeHelperText) : null, this.invalidTimespan && this.errorMessage ? (h("small", { class: "date-and-time-row error-message" }, h("pn-icon", { symbol: "alert-info-circle", small: "false", color: "warning" }), this.errorMessage)) : null)));
|
|
142
|
+
}
|
|
143
|
+
get hostElement() { return this; }
|
|
144
|
+
static get style() { return pnDateAndTimeCss; }
|
|
145
|
+
}, [0, "pn-date-and-time", {
|
|
146
|
+
"languageCode": [1, "language-code"],
|
|
147
|
+
"dateAndTimeLabel": [1, "date-and-time-label"],
|
|
148
|
+
"dateDaysFromToday": [2, "date-days-from-today"],
|
|
149
|
+
"validTimeRangeMinutes": [2, "valid-time-range-minutes"],
|
|
150
|
+
"errorMessage": [1, "error-message"],
|
|
151
|
+
"dateHelperText": [1, "date-helper-text"],
|
|
152
|
+
"timeHelperText": [1, "time-helper-text"],
|
|
153
|
+
"disableWeekends": [4, "disable-weekends"],
|
|
154
|
+
"datePlacehodler": [1, "date-placehodler"],
|
|
155
|
+
"language": [32],
|
|
156
|
+
"hourArr": [32],
|
|
157
|
+
"minuteArr": [32],
|
|
158
|
+
"formValue": [32],
|
|
159
|
+
"invalidTimespan": [32],
|
|
160
|
+
"selectedDate": [32],
|
|
161
|
+
"selectedFromHour": [32],
|
|
162
|
+
"selectedFromMin": [32],
|
|
163
|
+
"selectedToHour": [32],
|
|
164
|
+
"selectedToMin": [32],
|
|
165
|
+
"firstValidDateString": [32],
|
|
166
|
+
"lastValidDateString": [32]
|
|
167
|
+
}]);
|
|
168
|
+
function defineCustomElement$1() {
|
|
169
|
+
if (typeof customElements === "undefined") {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
const components = ["pn-date-and-time"];
|
|
173
|
+
components.forEach(tagName => { switch (tagName) {
|
|
174
|
+
case "pn-date-and-time":
|
|
175
|
+
if (!customElements.get(tagName)) {
|
|
176
|
+
customElements.define(tagName, PnDateAndTime$1);
|
|
177
|
+
}
|
|
178
|
+
break;
|
|
179
|
+
} });
|
|
180
|
+
}
|
|
181
|
+
defineCustomElement$1();
|
|
182
|
+
|
|
183
|
+
const PnDateAndTime = PnDateAndTime$1;
|
|
184
|
+
const defineCustomElement = defineCustomElement$1;
|
|
185
|
+
|
|
186
|
+
export { PnDateAndTime, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface PnDropdownChoiceAddsRow extends Components.PnDropdownChoiceAddsRow, HTMLElement {}
|
|
4
|
+
export const PnDropdownChoiceAddsRow: {
|
|
5
|
+
prototype: PnDropdownChoiceAddsRow;
|
|
6
|
+
new (): PnDropdownChoiceAddsRow;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|