@postnord/pn-marketweb-components 1.0.50 → 2.0.0
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-5d2abef7.js → index-28bbc937.js} +1 -1
- package/cjs/{index-b6e46a26.js → index-e3e27c79.js} +3 -0
- package/cjs/loader.cjs.js +2 -2
- package/cjs/pn-bonus-progressbar-level.cjs.entry.js +1 -1
- package/cjs/pn-bonus-progressbar.cjs.entry.js +1 -1
- package/cjs/pn-choice-button.cjs.entry.js +1 -1
- package/cjs/pn-filter-checkbox.cjs.entry.js +1 -1
- package/cjs/pn-find-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-price-store-d1977b2e.js → pn-find-price-store-c6cb51c1.js} +1 -1
- package/cjs/pn-find-price.cjs.entry.js +3 -3
- package/cjs/pn-find-service-and-price-result.cjs.entry.js +3 -3
- package/cjs/{pn-find-service-and-price-store-2d7dd8e3.js → pn-find-service-and-price-store-16a7936c.js} +1 -1
- package/cjs/pn-find-service-and-price.cjs.entry.js +3 -3
- package/cjs/pn-language-selector_9.cjs.entry.js +3 -3
- package/cjs/pn-mainnav-link.cjs.entry.js +3 -3
- package/cjs/{pn-mainnav-store-bbe3a1cf.js → pn-mainnav-store-61a75ea0.js} +1 -1
- package/cjs/pn-market-web-components.cjs.js +2 -2
- package/cjs/pn-marketweb-search.cjs.entry.js +103 -0
- package/cjs/pn-marketweb-sitefooter.cjs.entry.js +1 -1
- package/cjs/pn-marketweb-siteheader.cjs.entry.js +1 -1
- package/cjs/pn-pex-pricefinder.cjs.entry.js +1 -1
- package/cjs/pn-product-card_3.cjs.entry.js +1 -1
- package/cjs/pn-product-pricelist-result.cjs.entry.js +3 -3
- package/cjs/{pn-product-pricelist-store-c88813f7.js → pn-product-pricelist-store-86310b5a.js} +1 -1
- package/cjs/pn-product-pricelist.cjs.entry.js +3 -3
- package/cjs/pn-product-tile_3.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector-option.cjs.entry.js +1 -1
- package/cjs/pn-profile-selector.cjs.entry.js +1 -1
- package/cjs/pn-sidenav-level.cjs.entry.js +3 -3
- package/cjs/pn-sidenav-link.cjs.entry.js +3 -3
- package/cjs/{pn-sidenav-store-a753d3d7.js → pn-sidenav-store-d9bd9e00.js} +1 -1
- package/cjs/pn-sidenav.cjs.entry.js +3 -3
- package/cjs/pn-site-footer_2.cjs.entry.js +1 -1
- package/collection/collection-manifest.json +1 -1
- package/collection/components/input/{pn-filter-search/search-field.stories.js → pn-marketweb-search/marketweb-search-field.stories.js} +15 -3
- package/collection/components/input/{pn-filter-search/pn-filter-search.css → pn-marketweb-search/pn-marketweb-search.css} +4 -2
- package/collection/components/input/{pn-filter-search/pn-filter-search.js → pn-marketweb-search/pn-marketweb-search.js} +65 -7
- package/custom-elements/index.d.ts +6 -6
- package/custom-elements/index.js +102 -68
- package/esm/{index-02847864.js → index-5397620b.js} +4 -1
- package/esm/{index-1978107a.js → index-7b21ecff.js} +1 -1
- package/esm/loader.js +2 -2
- package/esm/pn-bonus-progressbar-level.entry.js +1 -1
- package/esm/pn-bonus-progressbar.entry.js +1 -1
- package/esm/pn-choice-button.entry.js +1 -1
- 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-b2f18af4.js → pn-find-price-store-c857dbc4.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-27464d58.js → pn-find-service-and-price-store-65df46a0.js} +1 -1
- package/esm/pn-find-service-and-price.entry.js +3 -3
- package/esm/pn-language-selector_9.entry.js +3 -3
- package/esm/pn-mainnav-link.entry.js +3 -3
- package/esm/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
- package/esm/pn-market-web-components.js +2 -2
- package/esm/pn-marketweb-search.entry.js +99 -0
- package/esm/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm/pn-marketweb-siteheader.entry.js +1 -1
- package/esm/pn-pex-pricefinder.entry.js +1 -1
- package/esm/pn-product-card_3.entry.js +1 -1
- package/esm/pn-product-pricelist-result.entry.js +3 -3
- package/esm/{pn-product-pricelist-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
- package/esm/pn-product-pricelist.entry.js +3 -3
- package/esm/pn-product-tile_3.entry.js +1 -1
- package/esm/pn-profile-selector-option.entry.js +1 -1
- package/esm/pn-profile-selector.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-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
- package/esm/pn-sidenav.entry.js +3 -3
- package/esm/pn-site-footer_2.entry.js +1 -1
- package/esm-es5/{index-02847864.js → index-5397620b.js} +1 -1
- package/esm-es5/{index-1978107a.js → index-7b21ecff.js} +1 -1
- package/esm-es5/loader.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-choice-button.entry.js +1 -1
- 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-b2f18af4.js → pn-find-price-store-c857dbc4.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-27464d58.js → pn-find-service-and-price-store-65df46a0.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-mainnav-link.entry.js +1 -1
- package/esm-es5/{pn-mainnav-store-5d39e63a.js → pn-mainnav-store-28571e54.js} +1 -1
- package/esm-es5/pn-market-web-components.js +1 -1
- package/esm-es5/pn-marketweb-search.entry.js +1 -0
- package/esm-es5/pn-marketweb-sitefooter.entry.js +1 -1
- package/esm-es5/pn-marketweb-siteheader.entry.js +1 -1
- package/esm-es5/pn-pex-pricefinder.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-store-df8749ef.js → pn-product-pricelist-store-2c336043.js} +1 -1
- package/esm-es5/pn-product-pricelist.entry.js +1 -1
- package/esm-es5/pn-product-tile_3.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-sidenav-level.entry.js +1 -1
- package/esm-es5/pn-sidenav-link.entry.js +1 -1
- package/esm-es5/{pn-sidenav-store-d4bd09c8.js → pn-sidenav-store-50b186d6.js} +1 -1
- package/esm-es5/pn-sidenav.entry.js +1 -1
- package/esm-es5/pn-site-footer_2.entry.js +1 -1
- package/package.json +1 -1
- package/pn-market-web-components/{p-0f17a915.system.entry.js → p-01fbbbbc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-3163e45b.system.js → p-02ea55ad.system.js} +1 -1
- package/pn-market-web-components/{p-2f899d96.js → p-0cacf9fb.js} +1 -1
- package/pn-market-web-components/{p-ebc83f89.entry.js → p-0cff4955.entry.js} +1 -1
- package/pn-market-web-components/{p-1663fe37.entry.js → p-0fe71e75.entry.js} +1 -1
- package/pn-market-web-components/{p-b99c5d79.entry.js → p-10b95894.entry.js} +1 -1
- package/pn-market-web-components/{p-0e4a8305.system.entry.js → p-13eb4c66.system.entry.js} +1 -1
- package/pn-market-web-components/{p-ad2c41d8.entry.js → p-15112837.entry.js} +1 -1
- package/pn-market-web-components/{p-89907168.system.entry.js → p-1ce871c5.system.entry.js} +1 -1
- package/pn-market-web-components/p-2239befa.system.entry.js +1 -0
- package/pn-market-web-components/{p-75654937.entry.js → p-227e1d46.entry.js} +1 -1
- package/pn-market-web-components/{p-3e3fed19.system.entry.js → p-2718b89a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-0a95c2b9.system.entry.js → p-2870b0c5.system.entry.js} +1 -1
- package/pn-market-web-components/p-36654f2a.system.js +1 -0
- package/pn-market-web-components/{p-b7b78fb0.system.entry.js → p-38c4be82.system.entry.js} +1 -1
- package/pn-market-web-components/{p-b6769599.entry.js → p-3ddbc14c.entry.js} +1 -1
- package/pn-market-web-components/{p-8bb99125.system.entry.js → p-401b57b1.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f2ca2961.entry.js → p-40264b65.entry.js} +1 -1
- package/pn-market-web-components/{p-c932f5f5.entry.js → p-51df9292.entry.js} +1 -1
- package/pn-market-web-components/{p-c089e9b5.system.entry.js → p-57cc0679.system.entry.js} +1 -1
- package/pn-market-web-components/p-58e8d7d5.js +1 -0
- package/pn-market-web-components/{p-b0a2b362.entry.js → p-5c41acb2.entry.js} +1 -1
- package/pn-market-web-components/{p-8a3c3674.system.entry.js → p-625fb7fb.system.entry.js} +1 -1
- package/pn-market-web-components/p-67887512.system.js +1 -0
- package/pn-market-web-components/p-6b505c69.entry.js +1 -0
- package/pn-market-web-components/{p-d944756c.system.js → p-6fab218d.system.js} +1 -1
- package/pn-market-web-components/{p-465baa55.entry.js → p-715d1ef7.entry.js} +1 -1
- package/pn-market-web-components/{p-bb69b9ff.entry.js → p-774b7a9f.entry.js} +1 -1
- package/pn-market-web-components/{p-b14d20bd.system.entry.js → p-7b93d570.system.entry.js} +1 -1
- package/pn-market-web-components/{p-bc4da3dd.entry.js → p-7d75ea68.entry.js} +1 -1
- package/pn-market-web-components/{p-ec78fe82.system.entry.js → p-8144bcbc.system.entry.js} +1 -1
- package/pn-market-web-components/{p-27168bcc.entry.js → p-81d764a0.entry.js} +1 -1
- package/pn-market-web-components/{p-aa625cb0.system.js → p-825b8fb8.system.js} +1 -1
- package/pn-market-web-components/{p-271f42e8.js → p-84699999.js} +1 -1
- package/pn-market-web-components/{p-5629de79.entry.js → p-86b271f4.entry.js} +1 -1
- package/pn-market-web-components/p-86f06e26.js +1 -0
- package/pn-market-web-components/{p-547a9203.system.entry.js → p-885bc8d7.system.entry.js} +1 -1
- package/pn-market-web-components/{p-90c11ea0.system.entry.js → p-89ef9dad.system.entry.js} +1 -1
- package/pn-market-web-components/p-a5bc1695.system.js +1 -0
- package/pn-market-web-components/{p-b5fbf807.system.js → p-a5f75560.system.js} +1 -1
- package/pn-market-web-components/{p-fed64b11.entry.js → p-adc639c8.entry.js} +1 -1
- package/pn-market-web-components/{p-aa59101e.system.js → p-add7d76c.system.js} +1 -1
- package/pn-market-web-components/{p-99d6a75c.js → p-ae2bd55f.js} +1 -1
- package/pn-market-web-components/{p-c74ee774.system.entry.js → p-aeb26d10.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d71027bc.entry.js → p-b4f0228c.entry.js} +1 -1
- package/pn-market-web-components/{p-5ff39f75.system.entry.js → p-b82f45b9.system.entry.js} +1 -1
- package/pn-market-web-components/p-bb626ab4.js +1 -0
- package/pn-market-web-components/{p-5cb8ae86.entry.js → p-c0c52dc6.entry.js} +1 -1
- package/pn-market-web-components/{p-415b6c13.entry.js → p-c240b614.entry.js} +1 -1
- package/pn-market-web-components/{p-3bef52c8.system.entry.js → p-c418bb48.system.entry.js} +1 -1
- package/pn-market-web-components/{p-6926ecdf.entry.js → p-c7c3361a.entry.js} +1 -1
- package/pn-market-web-components/{p-07733b06.system.entry.js → p-d46d9b6e.system.entry.js} +1 -1
- package/pn-market-web-components/{p-15a18941.system.entry.js → p-d7776336.system.entry.js} +1 -1
- package/pn-market-web-components/{p-f2307b30.entry.js → p-e056d2c6.entry.js} +1 -1
- package/pn-market-web-components/{p-0c1d92ed.entry.js → p-e474b831.entry.js} +1 -1
- package/pn-market-web-components/{p-6855204a.entry.js → p-f0a468ef.entry.js} +1 -1
- package/pn-market-web-components/{p-9ae0afa8.js → p-f20380fb.js} +1 -1
- package/pn-market-web-components/{p-df87670c.system.entry.js → p-f4cb2104.system.entry.js} +1 -1
- package/pn-market-web-components/{p-d30c5783.system.entry.js → p-f5f1287a.system.entry.js} +1 -1
- package/pn-market-web-components/{p-7a14e808.entry.js → p-f774e2cc.entry.js} +1 -1
- package/pn-market-web-components/{p-cf058789.system.entry.js → p-f7b013a7.system.entry.js} +1 -1
- package/pn-market-web-components/{p-8f309dad.system.entry.js → p-fc1083d2.system.entry.js} +1 -1
- package/pn-market-web-components/{p-1662a0e9.system.entry.js → p-fc41fcf6.system.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-filter-search/pn-filter-search.d.ts → pn-marketweb-search/pn-marketweb-search.d.ts} +9 -1
- package/types/components.d.ts +67 -65
- package/cjs/pn-filter-search.cjs.entry.js +0 -69
- package/esm/pn-filter-search.entry.js +0 -65
- package/esm-es5/pn-filter-search.entry.js +0 -1
- package/pn-market-web-components/p-0065e309.system.js +0 -1
- package/pn-market-web-components/p-9d2ff751.system.entry.js +0 -1
- package/pn-market-web-components/p-a110366f.entry.js +0 -1
- package/pn-market-web-components/p-af1ac826.js +0 -1
- package/pn-market-web-components/p-b429c99d.system.js +0 -1
- package/pn-market-web-components/p-dde0c959.js +0 -1
- package/pn-market-web-components/p-e1a8308e.system.js +0 -1
- package/pn-market-web-components/p-e422ad85.js +0 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-e3e27c79.js');
|
|
6
6
|
|
|
7
7
|
const pnSiteFooterCss = "pn-site-footer{display:block;line-height:1.5}pn-site-footer a{color:#005D92}pn-site-footer a:hover{color:#0D234B;text-decoration:underline}pn-site-footer h3{font-size:2.4rem;margin-bottom:0.5rem;line-height:1.2}pn-site-footer p{font-size:1.6rem}pn-site-footer ul.social-media{display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row}pn-site-footer ul.social-media li{margin-right:1.6rem}pn-site-footer>svg{display:block}pn-site-footer>div{background:#F3F2F2}.pn-sitefooter-top{display:-ms-flexbox;display:flex}.pn-sitefooter-cols{-ms-flex-item-align:center;align-self:center;-ms-flex-pack:center;justify-content:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap;margin:0 auto;max-width:90em}.pn-sitefooter-bottom [slot=bottom]{max-width:90em;margin:0 auto;padding:1.6rem 0;display:-ms-flexbox;display:flex;-ms-flex-flow:row;flex-flow:row;-ms-flex-pack:center;justify-content:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-top:1px solid #D3CECB;border-bottom:1px solid #D3CECB}.pn-sitefooter-bottom [slot=bottom] span,.pn-sitefooter-bottom [slot=bottom] a{line-height:2;margin:0 1.6rem;text-decoration:none}.pn-sitefooter-bottom [slot=bottom] li{line-height:2em;margin:0 1.6rem}.pn-sitefooter-logo{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:center;justify-content:center;padding:3rem}.pn-sitefooter-logo svg{display:block;width:13.3rem;height:2.6rem}";
|
|
8
8
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"./components/input/pn-bonus-progressbar/pn-bonus-progressbar.js",
|
|
5
5
|
"./components/input/pn-choice-button/pn-choice-button.js",
|
|
6
6
|
"./components/input/pn-filter-checkbox/pn-filter-checkbox.js",
|
|
7
|
-
"./components/input/pn-
|
|
7
|
+
"./components/input/pn-marketweb-search/pn-marketweb-search.js",
|
|
8
8
|
"./components/layout-components/pn-marketweb-sitefooter/pn-marketweb-sitefooter.js",
|
|
9
9
|
"./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-login.js",
|
|
10
10
|
"./components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.js",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import readme from "./readme.md";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
|
-
title: "input/
|
|
4
|
+
title: "input/Market web search field",
|
|
5
5
|
parameters: {
|
|
6
6
|
notes: readme,
|
|
7
7
|
layout: 'centered'
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
|
|
11
11
|
const Template = ({ ...args }) => {
|
|
12
12
|
return `
|
|
13
|
-
<pn-
|
|
13
|
+
<pn-marketweb-search
|
|
14
14
|
label="${args.label}"
|
|
15
15
|
name="${args.name}"
|
|
16
16
|
inputid="${args.inputid}"
|
|
@@ -20,7 +20,19 @@ const Template = ({ ...args }) => {
|
|
|
20
20
|
disabled=${args.disabled}
|
|
21
21
|
loading=${args.loading}
|
|
22
22
|
light="${args.light}"
|
|
23
|
-
|
|
23
|
+
list="listexample"
|
|
24
|
+
></pn-marketweb-search>
|
|
25
|
+
<datalist id="listexample">
|
|
26
|
+
<option>Autocomplete example</option>
|
|
27
|
+
<option>More autocomplete examples</option>
|
|
28
|
+
</datalist>
|
|
29
|
+
<script>
|
|
30
|
+
// window.setTimeout(function() {
|
|
31
|
+
// const newOpt = document.createElement("option");
|
|
32
|
+
// newOpt.innerHTML = "new item";
|
|
33
|
+
// document.getElementById("listexample").appendChild(newOpt);
|
|
34
|
+
// }, 500);
|
|
35
|
+
</script>
|
|
24
36
|
`;
|
|
25
37
|
};
|
|
26
38
|
export const Primary = Template.bind({});
|
|
@@ -75,19 +75,21 @@
|
|
|
75
75
|
border: none;
|
|
76
76
|
color: #005D92;
|
|
77
77
|
padding: 0.3rem;
|
|
78
|
+
margin: 0;
|
|
79
|
+
font-size: 0.875em;
|
|
78
80
|
border-radius: 50%;
|
|
79
81
|
outline: none;
|
|
80
82
|
transition: border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;
|
|
81
83
|
border: 0.1rem solid transparent;
|
|
84
|
+
-webkit-tap-highlight-color: transparent;
|
|
82
85
|
}
|
|
83
86
|
:host > .input-container button.clear, :host > .input-container button.search {
|
|
84
87
|
cursor: pointer;
|
|
85
88
|
}
|
|
86
89
|
:host > .input-container button:focus {
|
|
87
90
|
box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;
|
|
88
|
-
background: #8EDDF9;
|
|
89
91
|
}
|
|
90
|
-
:host > .input-container button:hover {
|
|
92
|
+
:host > .input-container button:hover, :host > .input-container button:focus {
|
|
91
93
|
background: #E0F8FF;
|
|
92
94
|
}
|
|
93
95
|
:host > .input-container button:active {
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Component, Prop, h, Host, Event, Element, Listen } from "@stencil/core";
|
|
2
|
-
export class
|
|
1
|
+
import { Component, Prop, h, Host, Event, Element, Listen, State } from "@stencil/core";
|
|
2
|
+
export class PnMarketwebSearch {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.disabled = false;
|
|
5
5
|
this.placeholder = null;
|
|
6
6
|
this.inputid = null;
|
|
7
7
|
this.name = null;
|
|
8
8
|
this.autocomplete = null;
|
|
9
|
+
this.list = null;
|
|
9
10
|
this.value = null;
|
|
10
11
|
/** Label for the button */
|
|
11
12
|
this.label = null;
|
|
@@ -15,6 +16,9 @@ export class PnFilterSearch {
|
|
|
15
16
|
this.button = '';
|
|
16
17
|
/** Light instead of dark search button */
|
|
17
18
|
this.light = false;
|
|
19
|
+
this.suggestionObserver = null;
|
|
20
|
+
this.hasClonedInput = false;
|
|
21
|
+
this.listSuggestion = [];
|
|
18
22
|
}
|
|
19
23
|
inputHandler() {
|
|
20
24
|
this.update.emit(this.value);
|
|
@@ -46,10 +50,37 @@ export class PnFilterSearch {
|
|
|
46
50
|
classNames += `button-${this.button} `;
|
|
47
51
|
return classNames;
|
|
48
52
|
}
|
|
53
|
+
componentWillRender() {
|
|
54
|
+
this.cloneListContent();
|
|
55
|
+
this.autocompleteEventBinding();
|
|
56
|
+
}
|
|
57
|
+
onSuggestionUpdate() {
|
|
58
|
+
this.cloneListContent();
|
|
59
|
+
}
|
|
60
|
+
autocompleteEventBinding() {
|
|
61
|
+
if (this.suggestionObserver !== null || !this.list || (!this.hostElement) || !document.getElementById(this.list)) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const targetNode = document.getElementById(this.list);
|
|
65
|
+
this.suggestionObserver = new MutationObserver(this.onSuggestionUpdate.bind(this));
|
|
66
|
+
this.suggestionObserver.observe(targetNode, { attributes: true, childList: true, subtree: true });
|
|
67
|
+
}
|
|
68
|
+
cloneListContent() {
|
|
69
|
+
if (!this.list || (!this.hostElement) || !document.getElementById(this.list)) {
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
const options = [...document.getElementById(this.list).querySelectorAll('option')];
|
|
73
|
+
this.listSuggestion = options.map((item) => {
|
|
74
|
+
if (item.hasAttribute('value')) {
|
|
75
|
+
return item.getAttribute('value');
|
|
76
|
+
}
|
|
77
|
+
return item.innerText;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
49
80
|
render() {
|
|
50
81
|
return (h(Host, { class: this.getClassNames() },
|
|
51
82
|
h("div", { class: "input-container" },
|
|
52
|
-
h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }),
|
|
83
|
+
h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, list: this.list, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }),
|
|
53
84
|
h("div", { class: "button-container" },
|
|
54
85
|
(this.button === 'none' || this.button === 'icon-inline') &&
|
|
55
86
|
h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" },
|
|
@@ -59,15 +90,19 @@ export class PnFilterSearch {
|
|
|
59
90
|
h("pn-icon", { symbol: "close-small", color: "blue700" })),
|
|
60
91
|
this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))),
|
|
61
92
|
(this.button !== 'none' && this.button !== 'icon-inline') &&
|
|
62
|
-
h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label)
|
|
93
|
+
h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label),
|
|
94
|
+
(this.list) &&
|
|
95
|
+
h("datalist", { id: this.list }, this.listSuggestion.map((item) => {
|
|
96
|
+
return (h("option", null, item));
|
|
97
|
+
}))));
|
|
63
98
|
}
|
|
64
|
-
static get is() { return "pn-
|
|
99
|
+
static get is() { return "pn-marketweb-search"; }
|
|
65
100
|
static get encapsulation() { return "shadow"; }
|
|
66
101
|
static get originalStyleUrls() { return {
|
|
67
|
-
"$": ["pn-
|
|
102
|
+
"$": ["pn-marketweb-search.scss"]
|
|
68
103
|
}; }
|
|
69
104
|
static get styleUrls() { return {
|
|
70
|
-
"$": ["pn-
|
|
105
|
+
"$": ["pn-marketweb-search.css"]
|
|
71
106
|
}; }
|
|
72
107
|
static get properties() { return {
|
|
73
108
|
"disabled": {
|
|
@@ -160,6 +195,24 @@ export class PnFilterSearch {
|
|
|
160
195
|
"reflect": false,
|
|
161
196
|
"defaultValue": "null"
|
|
162
197
|
},
|
|
198
|
+
"list": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "string",
|
|
203
|
+
"resolved": "string",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": false,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": ""
|
|
211
|
+
},
|
|
212
|
+
"attribute": "list",
|
|
213
|
+
"reflect": false,
|
|
214
|
+
"defaultValue": "null"
|
|
215
|
+
},
|
|
163
216
|
"value": {
|
|
164
217
|
"type": "string",
|
|
165
218
|
"mutable": false,
|
|
@@ -251,6 +304,11 @@ export class PnFilterSearch {
|
|
|
251
304
|
"defaultValue": "false"
|
|
252
305
|
}
|
|
253
306
|
}; }
|
|
307
|
+
static get states() { return {
|
|
308
|
+
"suggestionObserver": {},
|
|
309
|
+
"hasClonedInput": {},
|
|
310
|
+
"listSuggestion": {}
|
|
311
|
+
}; }
|
|
254
312
|
static get events() { return [{
|
|
255
313
|
"method": "search",
|
|
256
314
|
"name": "search",
|
|
@@ -26,12 +26,6 @@ export const PnFilterCheckbox: {
|
|
|
26
26
|
new (): PnFilterCheckbox;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
interface PnFilterSearch extends Components.PnFilterSearch, HTMLElement {}
|
|
30
|
-
export const PnFilterSearch: {
|
|
31
|
-
prototype: PnFilterSearch;
|
|
32
|
-
new (): PnFilterSearch;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
29
|
interface PnFindPrice extends Components.PnFindPrice, HTMLElement {}
|
|
36
30
|
export const PnFindPrice: {
|
|
37
31
|
prototype: PnFindPrice;
|
|
@@ -92,6 +86,12 @@ export const PnMainnavList: {
|
|
|
92
86
|
new (): PnMainnavList;
|
|
93
87
|
};
|
|
94
88
|
|
|
89
|
+
interface PnMarketwebSearch extends Components.PnMarketwebSearch, HTMLElement {}
|
|
90
|
+
export const PnMarketwebSearch: {
|
|
91
|
+
prototype: PnMarketwebSearch;
|
|
92
|
+
new (): PnMarketwebSearch;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
95
|
interface PnMarketwebSitefooter extends Components.PnMarketwebSitefooter, HTMLElement {}
|
|
96
96
|
export const PnMarketwebSitefooter: {
|
|
97
97
|
prototype: PnMarketwebSitefooter;
|
package/custom-elements/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLElement, h, Host,
|
|
1
|
+
import { HTMLElement, h, Host, getRenderingRef, forceUpdate, createEvent, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
3
|
|
|
4
4
|
const pnBonusProgressbarCss = "pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-top-percentage{margin-left:auto;padding:0.5em}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";
|
|
@@ -217,70 +217,6 @@ let PnFilterCheckbox$1 = class extends HTMLElement {
|
|
|
217
217
|
static get style() { return pnFilterCheckboxCss; }
|
|
218
218
|
};
|
|
219
219
|
|
|
220
|
-
const pnFilterSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;border:none;color:#005D92;padding:0.3rem;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;background:#8EDDF9}:host>.input-container button:hover{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host.searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host.searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none input,:host.button-icon-inline input{padding-right:3.3em}:host.button-none pn-spinner,:host.button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host.button-none button.search,:host.button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.loading button,:host.button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-none.loading pn-spinner,:host.button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
|
|
221
|
-
|
|
222
|
-
let PnFilterSearch$1 = class extends HTMLElement {
|
|
223
|
-
constructor() {
|
|
224
|
-
super();
|
|
225
|
-
this.__registerHost();
|
|
226
|
-
this.__attachShadow();
|
|
227
|
-
this.search = createEvent(this, "search", 7);
|
|
228
|
-
this.update = createEvent(this, "update", 7);
|
|
229
|
-
this.disabled = false;
|
|
230
|
-
this.placeholder = null;
|
|
231
|
-
this.inputid = null;
|
|
232
|
-
this.name = null;
|
|
233
|
-
this.autocomplete = null;
|
|
234
|
-
this.value = null;
|
|
235
|
-
/** Label for the button */
|
|
236
|
-
this.label = null;
|
|
237
|
-
/** Loading animation */
|
|
238
|
-
this.loading = false;
|
|
239
|
-
/** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
|
|
240
|
-
this.button = '';
|
|
241
|
-
/** Light instead of dark search button */
|
|
242
|
-
this.light = false;
|
|
243
|
-
}
|
|
244
|
-
inputHandler() {
|
|
245
|
-
this.update.emit(this.value);
|
|
246
|
-
}
|
|
247
|
-
emitSearch(e) {
|
|
248
|
-
if (e.type === 'click' ||
|
|
249
|
-
(e.type === 'keydown' && e.key === 'Enter')) {
|
|
250
|
-
// We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
|
|
251
|
-
e.preventDefault();
|
|
252
|
-
this.search.emit(this.value);
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
setVal(e) {
|
|
256
|
-
this.value = e.target.value;
|
|
257
|
-
}
|
|
258
|
-
clearInput() {
|
|
259
|
-
this.value = '';
|
|
260
|
-
this.update.emit(this.value);
|
|
261
|
-
this.hostElement.querySelector('input').focus();
|
|
262
|
-
}
|
|
263
|
-
getClassNames() {
|
|
264
|
-
let classNames = '';
|
|
265
|
-
const buttonTypes = ['none', 'icon', 'icon-inline'];
|
|
266
|
-
if (this.value)
|
|
267
|
-
classNames += 'searching ';
|
|
268
|
-
if (this.loading)
|
|
269
|
-
classNames += 'loading ';
|
|
270
|
-
if (buttonTypes.includes(this.button))
|
|
271
|
-
classNames += `button-${this.button} `;
|
|
272
|
-
return classNames;
|
|
273
|
-
}
|
|
274
|
-
render() {
|
|
275
|
-
return (h(Host, { class: this.getClassNames() }, h("div", { class: "input-container" }, h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
|
|
276
|
-
h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
|
|
277
|
-
h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
|
|
278
|
-
h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label)));
|
|
279
|
-
}
|
|
280
|
-
get hostElement() { return this; }
|
|
281
|
-
static get style() { return pnFilterSearchCss; }
|
|
282
|
-
};
|
|
283
|
-
|
|
284
220
|
const translations$9 = {
|
|
285
221
|
'sv': {
|
|
286
222
|
'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
|
|
@@ -3269,6 +3205,104 @@ let PnMainnavList$1 = class extends HTMLElement {
|
|
|
3269
3205
|
static get style() { return pnMainnavListCss; }
|
|
3270
3206
|
};
|
|
3271
3207
|
|
|
3208
|
+
const pnMarketwebSearchCss = ":host{display:-ms-inline-flexbox;display:inline-flex}:host>pn-button{margin-left:0.35em}:host>pn-button button .pn-button-bg{-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, left 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, left 0.2s, transform 0.2s, -webkit-box-shadow 0.1s, -webkit-transform 0.2s}:host>pn-button[data-loading=true] .pn-button-bg{left:0;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, -webkit-box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s;transition:width 0.2s cubic-bezier(0.7, 0, 0.3, 1) 0.2s, background 0.1s, box-shadow 0.1s, -webkit-box-shadow 0.1s}:host>pn-button[data-loading=true] pn-spinner{left:0.75em}:host input{padding:0.75em;min-height:3em;font-size:1em;height:100%;font-weight:500;-webkit-font-smoothing:antialiased;outline:none;border-radius:3em;border:0.1rem solid #5E554A;-webkit-transition:border 0.15s, -webkit-box-shadow 0.15s;transition:border 0.15s, -webkit-box-shadow 0.15s;transition:box-shadow 0.15s, border 0.15s;transition:box-shadow 0.15s, border 0.15s, -webkit-box-shadow 0.15s;color:#000000;width:100%}:host input::-webkit-search-cancel-button{display:none}:host input::-webkit-input-placeholder{color:#969087;font-weight:normal}:host input::-moz-placeholder{color:#969087;font-weight:normal}:host input:-ms-input-placeholder{color:#969087;font-weight:normal}:host input::-ms-input-placeholder{color:#969087;font-weight:normal}:host input::placeholder{color:#969087;font-weight:normal}:host input:focus{border:0.1rem solid #005D92;-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host input:hover{border:0.1rem solid #00A0D6}:host input:disabled{background:#F3F2F2;border:none}:host>.input-container{width:100%;position:relative}:host>.input-container .button-container{position:absolute;top:0;right:0;background:transparent;width:3em;height:100%;overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}:host>.input-container button{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);background:none;border:none;color:#005D92;padding:0.3rem;margin:0;font-size:0.875em;border-radius:50%;outline:none;-webkit-transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s;transition:border 0.1s, background 0.2s, box-shadow 0.1s, transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, opacity 0.2s, -webkit-box-shadow 0.1s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;border:0.1rem solid transparent;-webkit-tap-highlight-color:transparent}:host>.input-container button.clear,:host>.input-container button.search{cursor:pointer}:host>.input-container button:focus{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}:host>.input-container button:hover,:host>.input-container button:focus{background:#E0F8FF}:host>.input-container button:active{background:#005D92}:host>.input-container button:active pn-icon svg,:host>.input-container button:active pn-icon svg path{fill:white}:host.searching button.search{-webkit-transform:translate(150%, -50%);transform:translate(150%, -50%)}:host.searching button.clear{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none input,:host.button-icon-inline input{padding-right:3.3em}:host.button-none pn-spinner,:host.button-icon-inline pn-spinner{position:absolute;left:50%;top:50%;-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%);-webkit-transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:-webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s;transition:transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s, -webkit-transform cubic-bezier(0.7, 0, 0.3, 1) 0.2s}:host.button-none button.search,:host.button-icon-inline button.search{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.loading button,:host.button-icon-inline.loading button{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-none.loading pn-spinner,:host.button-icon-inline.loading pn-spinner{-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}:host.button-none.searching button.search{-webkit-transform:translate(100%, -50%);transform:translate(100%, -50%)}:host.button-icon>pn-button[data-loading=true] .pn-button-bg{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}";
|
|
3209
|
+
|
|
3210
|
+
let PnMarketwebSearch$1 = class extends HTMLElement {
|
|
3211
|
+
constructor() {
|
|
3212
|
+
super();
|
|
3213
|
+
this.__registerHost();
|
|
3214
|
+
this.__attachShadow();
|
|
3215
|
+
this.search = createEvent(this, "search", 7);
|
|
3216
|
+
this.update = createEvent(this, "update", 7);
|
|
3217
|
+
this.disabled = false;
|
|
3218
|
+
this.placeholder = null;
|
|
3219
|
+
this.inputid = null;
|
|
3220
|
+
this.name = null;
|
|
3221
|
+
this.autocomplete = null;
|
|
3222
|
+
this.list = null;
|
|
3223
|
+
this.value = null;
|
|
3224
|
+
/** Label for the button */
|
|
3225
|
+
this.label = null;
|
|
3226
|
+
/** Loading animation */
|
|
3227
|
+
this.loading = false;
|
|
3228
|
+
/** Button type, options are 'none' for no button, 'icon' for a labelless button with just a search icon and 'icon-inline' for a search button inside of the search field (this last option disables the clear field button) */
|
|
3229
|
+
this.button = '';
|
|
3230
|
+
/** Light instead of dark search button */
|
|
3231
|
+
this.light = false;
|
|
3232
|
+
this.suggestionObserver = null;
|
|
3233
|
+
this.hasClonedInput = false;
|
|
3234
|
+
this.listSuggestion = [];
|
|
3235
|
+
}
|
|
3236
|
+
inputHandler() {
|
|
3237
|
+
this.update.emit(this.value);
|
|
3238
|
+
}
|
|
3239
|
+
emitSearch(e) {
|
|
3240
|
+
if (e.type === 'click' ||
|
|
3241
|
+
(e.type === 'keydown' && e.key === 'Enter')) {
|
|
3242
|
+
// We prevent the native search event since it's not supported in IE and FF, then we emit our own instead
|
|
3243
|
+
e.preventDefault();
|
|
3244
|
+
this.search.emit(this.value);
|
|
3245
|
+
}
|
|
3246
|
+
}
|
|
3247
|
+
setVal(e) {
|
|
3248
|
+
this.value = e.target.value;
|
|
3249
|
+
}
|
|
3250
|
+
clearInput() {
|
|
3251
|
+
this.value = '';
|
|
3252
|
+
this.update.emit(this.value);
|
|
3253
|
+
this.hostElement.querySelector('input').focus();
|
|
3254
|
+
}
|
|
3255
|
+
getClassNames() {
|
|
3256
|
+
let classNames = '';
|
|
3257
|
+
const buttonTypes = ['none', 'icon', 'icon-inline'];
|
|
3258
|
+
if (this.value)
|
|
3259
|
+
classNames += 'searching ';
|
|
3260
|
+
if (this.loading)
|
|
3261
|
+
classNames += 'loading ';
|
|
3262
|
+
if (buttonTypes.includes(this.button))
|
|
3263
|
+
classNames += `button-${this.button} `;
|
|
3264
|
+
return classNames;
|
|
3265
|
+
}
|
|
3266
|
+
componentWillRender() {
|
|
3267
|
+
this.cloneListContent();
|
|
3268
|
+
this.autocompleteEventBinding();
|
|
3269
|
+
}
|
|
3270
|
+
onSuggestionUpdate() {
|
|
3271
|
+
this.cloneListContent();
|
|
3272
|
+
}
|
|
3273
|
+
autocompleteEventBinding() {
|
|
3274
|
+
if (this.suggestionObserver !== null || !this.list || (!this.hostElement) || !document.getElementById(this.list)) {
|
|
3275
|
+
return;
|
|
3276
|
+
}
|
|
3277
|
+
const targetNode = document.getElementById(this.list);
|
|
3278
|
+
this.suggestionObserver = new MutationObserver(this.onSuggestionUpdate.bind(this));
|
|
3279
|
+
this.suggestionObserver.observe(targetNode, { attributes: true, childList: true, subtree: true });
|
|
3280
|
+
}
|
|
3281
|
+
cloneListContent() {
|
|
3282
|
+
if (!this.list || (!this.hostElement) || !document.getElementById(this.list)) {
|
|
3283
|
+
return;
|
|
3284
|
+
}
|
|
3285
|
+
const options = [...document.getElementById(this.list).querySelectorAll('option')];
|
|
3286
|
+
this.listSuggestion = options.map((item) => {
|
|
3287
|
+
if (item.hasAttribute('value')) {
|
|
3288
|
+
return item.getAttribute('value');
|
|
3289
|
+
}
|
|
3290
|
+
return item.innerText;
|
|
3291
|
+
});
|
|
3292
|
+
}
|
|
3293
|
+
render() {
|
|
3294
|
+
return (h(Host, { class: this.getClassNames() }, h("div", { class: "input-container" }, h("input", { type: "search", value: this.value, id: this.inputid, name: this.name, placeholder: this.placeholder, disabled: this.disabled, autocomplete: this.autocomplete, list: this.list, onKeyDown: (e) => this.emitSearch(e), onInput: (e) => this.setVal(e) }), h("div", { class: "button-container" }, (this.button === 'none' || this.button === 'icon-inline') &&
|
|
3295
|
+
h("button", { class: "search", tabindex: this.button === 'icon-inline' ? '0' : '-1', onClick: (e) => this.emitSearch(e), "aria-label": "search", title: "search" }, h("pn-icon", { symbol: "search", color: "blue700" })), (this.button !== 'icon-inline') &&
|
|
3296
|
+
h("button", { class: "clear", "aria-label": "clear", title: "clear search field", tabindex: this.value && (!this.loading || this.button !== 'none') ? '0' : '-1', onClick: () => this.clearInput() }, h("pn-icon", { symbol: "close-small", color: "blue700" })), this.button === 'none' || this.button === 'icon-inline' && h("pn-spinner", null))), (this.button !== 'none' && this.button !== 'icon-inline') &&
|
|
3297
|
+
h("pn-button", { onClick: (e) => this.emitSearch(e), loading: this.loading, icon: "search", appearance: this.light ? 'light' : 'dark', "icon-only": this.button === 'icon' }, this.label), (this.list) &&
|
|
3298
|
+
h("datalist", { id: this.list }, this.listSuggestion.map((item) => {
|
|
3299
|
+
return (h("option", null, item));
|
|
3300
|
+
}))));
|
|
3301
|
+
}
|
|
3302
|
+
get hostElement() { return this; }
|
|
3303
|
+
static get style() { return pnMarketwebSearchCss; }
|
|
3304
|
+
};
|
|
3305
|
+
|
|
3272
3306
|
const translations$5 = {
|
|
3273
3307
|
'sv': {
|
|
3274
3308
|
"searchlabel": "Sök",
|
|
@@ -5339,7 +5373,6 @@ const PnBonusProgressbar = /*@__PURE__*/proxyCustomElement(PnBonusProgressbar$1,
|
|
|
5339
5373
|
const PnBonusProgressbarLevel = /*@__PURE__*/proxyCustomElement(PnBonusProgressbarLevel$1, [0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]);
|
|
5340
5374
|
const PnChoiceButton = /*@__PURE__*/proxyCustomElement(PnChoiceButton$1, [4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
|
|
5341
5375
|
const PnFilterCheckbox = /*@__PURE__*/proxyCustomElement(PnFilterCheckbox$1, [1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]);
|
|
5342
|
-
const PnFilterSearch = /*@__PURE__*/proxyCustomElement(PnFilterSearch$1, [1,"pn-filter-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4]},[[0,"input","inputHandler"]]]);
|
|
5343
5376
|
const PnFindPrice = /*@__PURE__*/proxyCustomElement(PnfindPrice, [0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]);
|
|
5344
5377
|
const PnFindPriceResult = /*@__PURE__*/proxyCustomElement(PnfindPriceResult, [0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"weightText":[32]}]);
|
|
5345
5378
|
const PnFindServiceAndPrice = /*@__PURE__*/proxyCustomElement(PnfindServiceAndPrice, [0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]);
|
|
@@ -5350,6 +5383,7 @@ const PnMainnav = /*@__PURE__*/proxyCustomElement(PnMainnav$1, [4,"pn-mainnav",{
|
|
|
5350
5383
|
const PnMainnavLevel = /*@__PURE__*/proxyCustomElement(PnMainnavLevel$1, [4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}]);
|
|
5351
5384
|
const PnMainnavLink = /*@__PURE__*/proxyCustomElement(PnMainnavLink$1, [4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]);
|
|
5352
5385
|
const PnMainnavList = /*@__PURE__*/proxyCustomElement(PnMainnavList$1, [4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}]);
|
|
5386
|
+
const PnMarketwebSearch = /*@__PURE__*/proxyCustomElement(PnMarketwebSearch$1, [1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]);
|
|
5353
5387
|
const PnMarketwebSitefooter = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$2, [0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]);
|
|
5354
5388
|
const PnMarketwebSiteheader = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheader$1, [4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]);
|
|
5355
5389
|
const PnMarketwebSiteheaderLogin = /*@__PURE__*/proxyCustomElement(PnMarketwebSiteheaderLogin$1, [0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"loginManager":[32],"loggedIn":[32],"toggleButtonText":[32],"username":[32]}]);
|
|
@@ -5379,7 +5413,6 @@ const defineCustomElements = (opts) => {
|
|
|
5379
5413
|
PnBonusProgressbarLevel,
|
|
5380
5414
|
PnChoiceButton,
|
|
5381
5415
|
PnFilterCheckbox,
|
|
5382
|
-
PnFilterSearch,
|
|
5383
5416
|
PnFindPrice,
|
|
5384
5417
|
PnFindPriceResult,
|
|
5385
5418
|
PnFindServiceAndPrice,
|
|
@@ -5390,6 +5423,7 @@ const defineCustomElements = (opts) => {
|
|
|
5390
5423
|
PnMainnavLevel,
|
|
5391
5424
|
PnMainnavLink,
|
|
5392
5425
|
PnMainnavList,
|
|
5426
|
+
PnMarketwebSearch,
|
|
5393
5427
|
PnMarketwebSitefooter,
|
|
5394
5428
|
PnMarketwebSiteheader,
|
|
5395
5429
|
PnMarketwebSiteheaderLogin,
|
|
@@ -5420,4 +5454,4 @@ const defineCustomElements = (opts) => {
|
|
|
5420
5454
|
}
|
|
5421
5455
|
};
|
|
5422
5456
|
|
|
5423
|
-
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnFilterCheckbox,
|
|
5457
|
+
export { PnBonusProgressbar, PnBonusProgressbarLevel, PnChoiceButton, PnFilterCheckbox, PnFindPrice, PnFindPriceResult, PnFindServiceAndPrice, PnFindServiceAndPriceResult, PnLanguageSelector, PnLanguageSelectorOption, PnMainnav, PnMainnavLevel, PnMainnavLink, PnMainnavList, PnMarketwebSearch, PnMarketwebSitefooter, PnMarketwebSiteheader, PnMarketwebSiteheaderLogin, PnMarketwebSiteheaderSearch, PnPexPricefinder, PnProductCard, PnProductCardInfo, PnProductCardPrice, PnProductPricelist, PnProductPricelistResult, PnProductTile, PnProductTileInfo, PnProductTilePrice, PnProfileSelector, PnProfileSelectorOption, PnSidenav, PnSidenavLevel, PnSidenavLink, PnSiteFooter, PnSiteFooterCol, PnSiteSelector, PnSiteSelectorItem, defineCustomElements };
|
|
@@ -1102,6 +1102,9 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
|
1102
1102
|
promise = safeCall(instance, 'componentWillLoad');
|
|
1103
1103
|
}
|
|
1104
1104
|
}
|
|
1105
|
+
{
|
|
1106
|
+
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
|
|
1107
|
+
}
|
|
1105
1108
|
endSchedule();
|
|
1106
1109
|
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
1107
1110
|
};
|
|
@@ -1855,4 +1858,4 @@ const flush = () => {
|
|
|
1855
1858
|
const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
|
|
1856
1859
|
const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
|
|
1857
1860
|
|
|
1858
|
-
export { H, NAMESPACE as N, Host as a, bootstrapLazy as b,
|
|
1861
|
+
export { H, NAMESPACE as N, Host as a, bootstrapLazy as b, getRenderingRef as c, doc as d, createEvent as e, forceUpdate as f, getElement as g, h, promiseResolve as p, registerInstance as r, win as w };
|
package/esm/loader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-5397620b.js';
|
|
2
2
|
|
|
3
3
|
/*
|
|
4
4
|
Stencil Client Patch Esm v2.14.0 | MIT Licensed | https://stenciljs.com
|
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["pn-marketweb-siteheader",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-marketweb-sitefooter",[[0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-filter-checkbox",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-
|
|
13
|
+
return bootstrapLazy([["pn-marketweb-siteheader",[[4,"pn-marketweb-siteheader",{"market":[1537],"language":[1537],"environment":[1537],"token":[1],"endpoint":[1],"hideSiteSelector":[1540,"hide-site-selector"],"hideLanguageSelector":[1540,"hide-language-selector"],"hideSearch":[1540,"hide-search"],"hideLogin":[1540,"hide-login"],"AutocompleteEndpoint":[1,"autocomplete-endpoint"],"sessionForward":[4,"session-forward"],"cache":[4],"spaMode":[4,"spa-mode"],"i18n":[32],"gotData":[32],"fetchingData":[32],"homePageLink":[32],"menuItems":[32],"siteDefinition":[32],"search":[32],"siteSelector":[32],"languageSelector":[32],"languageOptions":[32],"loginDialog":[32],"minimizeSearch":[32],"loggedIn":[32],"loginManager":[32]},[[0,"setLanguage","onLanguageSelectorChange"],[0,"loginStateChange","onLoginStateChange"],[9,"resize","handleResize"]]]]],["pn-find-price",[[0,"pn-find-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"weight":[32],"weightvalue":[32],"sourceData":[32],"sizecategory":[32]}]]],["pn-find-service-and-price",[[0,"pn-find-service-and-price",{"source":[1],"language":[1025],"market":[1025],"filteredItems":[32],"postagetype":[32],"weight":[32],"weightvalue":[32],"deliveryscope":[32],"sourceData":[32]}]]],["pn-product-pricelist",[[4,"pn-product-pricelist",{"source":[1],"language":[1025],"market":[1025],"productid":[1],"filteredItems":[32],"sourceData":[32],"gotData":[32],"loading":[32],"postagetype":[32],"weight":[32],"weightvalue":[32]}]]],["pn-marketweb-sitefooter",[[0,"pn-marketweb-sitefooter",{"market":[1537],"language":[1537],"environment":[1537],"endpoint":[1],"cache":[4],"siteDefinition":[32],"footerContent":[32],"i18n":[32],"gotData":[32],"fetchingData":[32]}]]],["pn-bonus-progressbar",[[4,"pn-bonus-progressbar",{"icon":[1],"heading":[1],"theme":[513],"bonuspercentage":[1],"currency":[513],"value":[1538],"min":[1538],"max":[1538],"valuepercentage":[32],"progresspercentage":[32],"levelValues":[32],"currentLevelAdjustedValue":[32]}]]],["pn-filter-checkbox",[[1,"pn-filter-checkbox",{"value":[520],"name":[1],"checkboxid":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-marketweb-search",[[1,"pn-marketweb-search",{"disabled":[4],"placeholder":[1],"inputid":[1],"name":[1],"autocomplete":[1],"list":[1],"value":[1],"label":[1],"loading":[4],"button":[1],"light":[4],"suggestionObserver":[32],"hasClonedInput":[32],"listSuggestion":[32]},[[0,"input","inputHandler"]]]]],["pn-pex-pricefinder",[[0,"pn-pex-pricefinder",{"language":[1],"currency":[1],"apiUrl":[1,"api-url"],"i18n":[32],"fromzip":[32],"tozip":[32],"weight":[32],"when":[32],"response":[32]},[[0,"language","setLanguage"]]]]],["pn-profile-selector",[[4,"pn-profile-selector",{"language":[1537],"returnUrl":[1,"return-url"],"i18n":[32],"isLoading":[32],"numberOfProfiles":[32]}]]],["pn-profile-selector-option",[[0,"pn-profile-selector-option",{"name":[1],"identifier":[1],"url":[1]}]]],["pn-sidenav",[[4,"pn-sidenav",{"language":[1],"navLabel":[1,"nav-label"],"i18n":[32]},[[0,"language","setLanguage"],[0,"openSubMenuLevelChange","onOpenSubMenuLevelChange"]]]]],["pn-sidenav-level",[[4,"pn-sidenav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"alignment":[32]}]]],["pn-sidenav-link",[[4,"pn-sidenav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"icon":[1],"current":[4],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-find-price-result",[[0,"pn-find-price-result",{"item":[1040],"shownitems":[16],"Usp1":[1,"usp-1"],"Usp2":[1,"usp-2"],"Usp3":[1,"usp-3"],"description":[16],"weightText":[32]}]]],["pn-find-service-and-price-result",[[0,"pn-find-service-and-price-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-product-pricelist-result",[[0,"pn-product-pricelist-result",{"item":[1040],"shownitems":[16],"weightText":[32]}]]],["pn-bonus-progressbar-level",[[0,"pn-bonus-progressbar-level",{"current":[516],"value":[1538],"bonuspercentage":[1537],"visualpercentage":[1538],"percentage":[32],"max":[32],"min":[32],"currency":[32]}]]],["pn-site-footer_2",[[4,"pn-site-footer",{"url":[1],"linktitle":[1]}],[4,"pn-site-footer-col"]]],["pn-choice-button",[[4,"pn-choice-button",{"value":[520],"name":[1],"choiceid":[1],"type":[1],"disabled":[4],"checked":[4],"indeterminate":[1028]},[[0,"change","handlechange"]]]]],["pn-mainnav-link",[[4,"pn-mainnav-link",{"name":[1],"href":[1],"target":[1],"linkid":[1],"levelId":[32],"open":[32],"hasChildren":[32]}]]],["pn-product-card_3",[[4,"pn-product-card"],[0,"pn-product-card-info",{"rulle":[1],"paket":[1],"label":[1],"text":[1]}],[0,"pn-product-card-price",{"label":[1],"amount":[1],"currency":[1],"note":[1],"url":[1],"service":[1]}]]],["pn-language-selector_9",[[4,"pn-mainnav-level",{"level":[32],"levelId":[32],"isOpen":[32],"parentName":[32],"parentHref":[32],"parentLinkId":[32],"listCount":[32],"alignment":[32]}],[4,"pn-language-selector",{"value":[1537],"selectedLanguageName":[32],"options":[32],"i18n":[32]}],[0,"pn-language-selector-option",{"name":[1],"code":[1],"url":[1],"selected":[4],"currentLanguage":[1,"current-language"]}],[4,"pn-mainnav",{"market":[1],"language":[1],"navigationId":[1,"navigation-id"],"openMenu":[1028,"open-menu"],"navLabel":[1,"nav-label"]},[[0,"language","setLanguage"],[0,"market","setMarket"],[0,"menuLanguageChange","onLanguageChange"],[0,"setmenuopenstate","setMenuOpenState"],[0,"openMenuLevelChange","onOpenMenuLevelChange"]]],[4,"pn-mainnav-list",{"heading":[1],"linkCount":[32]}],[0,"pn-marketweb-siteheader-login",{"endpoint":[1],"token":[1],"i18n":[8,"i-1-8n"],"emitEvents":[4,"emit-events"],"loginDialog":[1040],"loginManager":[32],"loggedIn":[32],"toggleButtonText":[32],"username":[32]}],[0,"pn-marketweb-siteheader-search",{"i18n":[8,"i-1-8n"],"showOnlyLink":[1028,"show-only-link"],"hideSearch":[1028,"hide-search"],"search":[1040],"primary":[4],"autoCompleteOptions":[32]}],[4,"pn-site-selector",{"buttontext":[1537],"heading":[1537],"language":[1537],"i18n":[32]}],[0,"pn-site-selector-item",{"url":[1],"heading":[1],"description":[1],"newwindow":[4]}]]],["pn-product-tile_3",[[4,"pn-product-tile"],[0,"pn-product-tile-info",{"label":[1],"text":[1],"icon":[1]}],[0,"pn-product-tile-price",{"label":[1],"amount":[1],"currency":[1],"url":[1]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
|
|
2
2
|
|
|
3
3
|
const pnBonusProgressbarLevelCss = "pn-bonus-progressbar-level{position:absolute;width:0.1rem;left:50%}pn-bonus-progressbar-level::after{content:\"\";width:0.1rem;position:absolute;left:0;border-left:1px dashed #9B1C2E;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);height:3rem}pn-bonus-progressbar-level:not([current]):nth-child(even)::after{height:7rem;margin-top:0.6rem}.progressbar-level-percentage{font-size:0.75em;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:-3.2rem}[current]>.progressbar-level-percentage{display:none}pn-bonus-progressbar-level:not([current]):nth-child(even) .progressbar-level-percentage{top:-4.8rem}.progressbar-level-value{font-size:0.75em;white-space:nowrap;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:2.3rem}[current]>.progressbar-level-value{top:-3.2rem}pn-bonus-progressbar-level:not([current]):nth-child(even) .progressbar-level-value{top:4.2rem}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
|
|
2
2
|
|
|
3
3
|
const pnBonusProgressbarCss = "pn-bonus-progressbar{width:100%}.bonusprogressbar-top{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.bonusprogressbar-top-icon{border-radius:100%;height:5rem;width:5rem;padding:1rem;display:-ms-inline-flexbox;display:inline-flex;margin-right:1em;margin-left:0.5em;background-color:#E0F8FF}[theme=red] .bonusprogressbar-top-icon{background-color:#FBC2C1}.bonusprogressbar-top-icon pn-icon svg{width:100%;height:100%}.bonusprogressbar-top-percentage{margin-left:auto;padding:0.5em}.bonusprogressbar-wrapper{position:relative;display:-ms-flexbox;display:flex;min-height:5em;-ms-flex-align:center;align-items:center}.bonusprogressbar-currentlevel{position:absolute}.bonusprogressbar-progress[value]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:1.7rem;border:0.1rem solid #00A0D6;border-radius:1.7rem;padding:0;margin:0;overflow:hidden}[theme=red] .bonusprogressbar-progress[value]{border-color:#F06365}.bonusprogressbar-progress[value]::-webkit-progress-bar{border:0;border-radius:1.7rem;margin:0;padding:0;background:#E0F8FF}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-bar{background:#FDEFEE}.bonusprogressbar-progress[value]::-webkit-progress-value{margin:0;padding:0;border-radius:1.7rem;background:#00A0D6}[theme=red] .bonusprogressbar-progress[value]::-webkit-progress-value{background:#F06365}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
|
|
2
2
|
|
|
3
3
|
const pnChoiceButtonCss = "pn-choice-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;display:inline-block;background:#fff;position:relative;margin:0.2em 0.4em}pn-choice-button input{opacity:0;position:absolute;top:0;left:0;pointer-events:none;margin:0;width:100%;height:100%}pn-choice-button label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0.4rem 0.8rem;border:0.1rem solid #D3CECB;color:#005D92;font-weight:500;border-radius:0.8rem;text-align:center;cursor:pointer;-webkit-transition:background 0.2s, -webkit-box-shadow 0.1s;transition:background 0.2s, -webkit-box-shadow 0.1s;transition:box-shadow 0.1s, background 0.2s;transition:box-shadow 0.1s, background 0.2s, -webkit-box-shadow 0.1s}pn-choice-button label pn-illustration{display:inline-block;width:3rem;height:3rem;margin-right:0.9rem}pn-choice-button>input:checked+label.pn-choice-button{background:#E0F8FF;color:#005D92;border-color:#005D92;-webkit-box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13);box-shadow:0px 0.6px 1.8px rgba(0, 0, 0, 0.1), 0px 3.2px 7.2px rgba(0, 0, 0, 0.13)}pn-choice-button>input:indeterminate+label.pn-choice-button{background:#FFFFFF;color:#005D92}pn-choice-button>input:hover+label.pn-choice-button{background:#E0F8FF}pn-choice-button>input:focus+label.pn-choice-button,pn-choice-button>input:active+label.pn-choice-button{-webkit-box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92;box-shadow:0 0 0 0.2rem #fff, 0 0 0 0.4rem #005D92}pn-choice-button>input:active+label.pn-choice-button{background:#8EDDF9}pn-choice-button>input:disabled+label.pn-choice-button{background-color:#D3CECB}pn-choice-button>input:checked+label.pn-choice-button:hover{background:#8EDDF9}pn-choice-button>input:checked+label.pn-choice-button:active{background:#8EDDF9;border:0.1rem solid #00A0D6}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-5397620b.js';
|
|
2
2
|
|
|
3
3
|
const pnFilterCheckboxCss = ":host{display:inline-block;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host input{opacity:0;position:absolute}:host input[type=checkbox]+label.pn-checkbox{width:1.5em;min-width:1.5em;height:1.5em;min-height:1.5em;background:#fff;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;position:relative;border:0.1rem solid #969087;cursor:pointer;border-radius:0.4rem;cursor:pointer;-webkit-transition-duration:220ms;transition-duration:220ms;-webkit-transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);transition-timing-function:cubic-bezier(0.79, 0.14, 0.15, 0.86);-webkit-transition-property:border, background, -webkit-box-shadow;transition-property:border, background, -webkit-box-shadow;transition-property:border, background, box-shadow;transition-property:border, background, box-shadow, -webkit-box-shadow}:host input[type=checkbox]+label.pn-checkbox svg{width:80%;fill:none}:host input[type=checkbox]+label.pn-checkbox svg polyline{stroke:#FFF;-webkit-transform-origin:0 0;transform-origin:0 0;stroke-linecap:round;stroke-dasharray:23;stroke-dashoffset:23;-webkit-transition-delay:none;transition-delay:none;-webkit-transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86);transition:stroke-dashoffset 180ms cubic-bezier(0.79, 0.14, 0.15, 0.86)}:host input[type=checkbox]:hover+label.pn-checkbox{border:0.1rem solid #005D92;background:#E0F8FF}:host input[type=checkbox]:checked+label.pn-checkbox,:host input[type=checkbox]:indeterminate+label.pn-checkbox{background:#005D92;border:0.1rem solid #005D92}:host input[type=checkbox]:checked+label.pn-checkbox svg polyline,:host input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline{-webkit-transition-delay:220ms;transition-delay:220ms}:host input[type=checkbox]:checked+label.pn-checkbox svg polyline.checkmark-path{stroke-dashoffset:0}:host input[type=checkbox]:indeterminate+label.pn-checkbox svg polyline.indeterminate-path{stroke-dashoffset:0}:host input[type=checkbox]:focus+label.pn-checkbox,:host input[type=checkbox]:active+label.pn-checkbox{-webkit-box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92;box-shadow:0 0 0 0.1rem white, 0 0 0 0.3rem #005D92}:host input[type=checkbox]:disabled+label.pn-checkbox{background-color:#D3CECB;border:0.1rem solid #969087;cursor:not-allowed}:host input[type=checkbox]:disabled+label.pn-checkbox svg polyline{stroke:#969087}:host input[type=checkbox]:disabled:checked+label.pn-checkbox{border:0.1rem solid transparent}:host input[type=checkbox]:disabled:active+label.pn-checkbox{-webkit-box-shadow:none;box-shadow:none}";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, a as Host } from './index-
|
|
2
|
-
import { s as state } from './pn-find-price-store-
|
|
3
|
-
import './index-
|
|
1
|
+
import { r as registerInstance, h, a as Host } from './index-5397620b.js';
|
|
2
|
+
import { s as state } from './pn-find-price-store-c857dbc4.js';
|
|
3
|
+
import './index-7b21ecff.js';
|
|
4
4
|
|
|
5
5
|
const pnFindPriceResultCss = "pn-find-price-result .test{margin:3em 0}.resultcontent{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}";
|
|
6
6
|
|