@postnord/pn-marketweb-components 2.0.3-beta6 → 2.0.4

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.
Files changed (108) hide show
  1. package/cjs/{pn-find-price-store-345037e9.js → data-42342802.js} +0 -23
  2. package/cjs/data-e77c1ada.js +41 -0
  3. package/cjs/loader.cjs.js +1 -1
  4. package/cjs/pn-find-price-result.cjs.entry.js +7 -3
  5. package/cjs/{pn-product-pricelist-store-86310b5a.js → pn-find-price-store-6aab7fd0.js} +7 -2
  6. package/cjs/pn-find-price.cjs.entry.js +10 -9
  7. package/cjs/pn-find-service-and-price-result.cjs.entry.js +14 -13
  8. package/cjs/pn-language-selector_9.cjs.entry.js +1 -1
  9. package/cjs/pn-market-web-components.cjs.js +1 -1
  10. package/cjs/pn-product-card_3.cjs.entry.js +1 -1
  11. package/cjs/pn-product-pricelist-result.cjs.entry.js +58 -17
  12. package/cjs/pn-product-pricelist.cjs.entry.js +46 -61
  13. package/cjs/{pn-product-tile_3.cjs.entry.js → pn-product-tile-info_2.cjs.entry.js} +0 -13
  14. package/cjs/pn-product-tile.cjs.entry.js +19 -0
  15. package/collection/components/layout-components/pn-marketweb-siteheader/pn-marketweb-siteheader-search.css +3 -0
  16. package/collection/components/widgets/pn-find-price/pn-find-price-result.js +14 -10
  17. package/collection/components/widgets/pn-find-price/pn-find-price.css +1 -1
  18. package/collection/components/widgets/pn-find-service-and-price/pn-find-service-and-price-result.js +14 -15
  19. package/collection/components/widgets/pn-product-card/pn-product-card-price.js +19 -2
  20. package/collection/components/widgets/pn-product-pricelist/data.js +8 -1
  21. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-result.js +93 -24
  22. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist-translations.js +30 -14
  23. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.css +4 -3
  24. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.js +5 -5
  25. package/collection/components/widgets/pn-product-pricelist/pn-product-pricelist.stories.js +4 -4
  26. package/custom-elements/index.js +120 -70
  27. package/esm/data-108a2820.js +37 -0
  28. package/esm/{pn-find-price-store-cb8e4714.js → data-2fa1e9cb.js} +1 -23
  29. package/esm/loader.js +1 -1
  30. package/esm/pn-find-price-result.entry.js +7 -3
  31. package/esm/{pn-product-pricelist-store-2c336043.js → pn-find-price-store-3301df0a.js} +7 -2
  32. package/esm/pn-find-price.entry.js +3 -2
  33. package/esm/pn-find-service-and-price-result.entry.js +14 -13
  34. package/esm/pn-language-selector_9.entry.js +1 -1
  35. package/esm/pn-market-web-components.js +1 -1
  36. package/esm/pn-product-card_3.entry.js +1 -1
  37. package/esm/pn-product-pricelist-result.entry.js +56 -15
  38. package/esm/pn-product-pricelist.entry.js +36 -51
  39. package/esm/pn-product-tile-info_2.entry.js +31 -0
  40. package/esm/{pn-product-tile_3.entry.js → pn-product-tile.entry.js} +1 -29
  41. package/esm-es5/data-108a2820.js +1 -0
  42. package/esm-es5/data-2fa1e9cb.js +1 -0
  43. package/esm-es5/loader.js +1 -1
  44. package/esm-es5/pn-find-price-result.entry.js +1 -1
  45. package/esm-es5/pn-find-price-store-3301df0a.js +1 -0
  46. package/esm-es5/pn-find-price.entry.js +1 -1
  47. package/esm-es5/pn-find-service-and-price-result.entry.js +1 -1
  48. package/esm-es5/pn-language-selector_9.entry.js +1 -1
  49. package/esm-es5/pn-market-web-components.js +1 -1
  50. package/esm-es5/pn-product-card_3.entry.js +1 -1
  51. package/esm-es5/pn-product-pricelist-result.entry.js +1 -1
  52. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  53. package/esm-es5/pn-product-tile-info_2.entry.js +1 -0
  54. package/esm-es5/{pn-product-tile_3.entry.js → pn-product-tile.entry.js} +1 -1
  55. package/package.json +1 -1
  56. package/pn-market-web-components/{p-d55dbea8.system.entry.js → p-01a615ef.system.entry.js} +1 -1
  57. package/pn-market-web-components/p-0a49c688.system.entry.js +1 -0
  58. package/pn-market-web-components/p-1ecf47ed.entry.js +1 -0
  59. package/pn-market-web-components/p-218200c0.system.entry.js +1 -0
  60. package/pn-market-web-components/p-290d5824.system.entry.js +1 -0
  61. package/pn-market-web-components/p-3971ddb9.system.js +1 -0
  62. package/pn-market-web-components/p-4e9a272d.js +1 -0
  63. package/pn-market-web-components/{p-d58e3078.entry.js → p-51fc5bc4.entry.js} +1 -1
  64. package/pn-market-web-components/p-5d587499.js +1 -0
  65. package/pn-market-web-components/p-61dbe832.entry.js +1 -0
  66. package/pn-market-web-components/p-67887512.system.js +1 -1
  67. package/pn-market-web-components/p-6f556e76.system.entry.js +1 -0
  68. package/pn-market-web-components/p-72c39bf1.js +1 -0
  69. package/pn-market-web-components/p-8117b79e.system.entry.js +1 -0
  70. package/pn-market-web-components/p-893a20df.system.entry.js +1 -0
  71. package/pn-market-web-components/p-8e146205.entry.js +1 -0
  72. package/pn-market-web-components/p-a597a036.entry.js +1 -0
  73. package/pn-market-web-components/p-a921d3fd.system.entry.js +1 -0
  74. package/pn-market-web-components/p-bdd0fc97.system.js +1 -0
  75. package/pn-market-web-components/p-bf7cc19d.system.js +1 -0
  76. package/pn-market-web-components/p-d0155ddf.entry.js +1 -0
  77. package/pn-market-web-components/p-d428dc82.entry.js +1 -0
  78. package/pn-market-web-components/{p-3120f5c4.entry.js → p-dc869f2f.entry.js} +1 -1
  79. package/pn-market-web-components/{p-83baf538.system.entry.js → p-e89a9e79.system.entry.js} +1 -1
  80. package/pn-market-web-components/p-eb600482.entry.js +1 -0
  81. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  82. package/types/components/widgets/pn-find-price/pn-find-price-result.d.ts +4 -3
  83. package/types/components/widgets/pn-find-price/pn-find-price-types.d.ts +2 -2
  84. package/types/components/widgets/pn-find-price/pn-find-price.d.ts +2 -2
  85. package/types/components/widgets/pn-product-card/pn-product-card-price.d.ts +1 -0
  86. package/types/components/widgets/pn-product-pricelist/pn-product-pricelist-result.d.ts +2 -0
  87. package/types/components/widgets/pn-product-pricelist/pn-product-pricelist-translations.d.ts +26 -10
  88. package/types/components.d.ts +12 -6
  89. package/types/globals/shared/productprice/product-price-types.d.ts +5 -2
  90. package/umd/pn-marketweb-inject.js +0 -2
  91. package/esm-es5/pn-find-price-store-cb8e4714.js +0 -1
  92. package/esm-es5/pn-product-pricelist-store-2c336043.js +0 -1
  93. package/pn-market-web-components/p-045a349a.entry.js +0 -1
  94. package/pn-market-web-components/p-10b95894.entry.js +0 -1
  95. package/pn-market-web-components/p-20c72142.entry.js +0 -1
  96. package/pn-market-web-components/p-43dd4b37.system.js +0 -1
  97. package/pn-market-web-components/p-7b93d570.system.entry.js +0 -1
  98. package/pn-market-web-components/p-86b271f4.entry.js +0 -1
  99. package/pn-market-web-components/p-9e8c5793.system.entry.js +0 -1
  100. package/pn-market-web-components/p-a5bc1695.system.js +0 -1
  101. package/pn-market-web-components/p-adc8d9ab.js +0 -1
  102. package/pn-market-web-components/p-ae2bd55f.js +0 -1
  103. package/pn-market-web-components/p-aeb26d10.system.entry.js +0 -1
  104. package/pn-market-web-components/p-af800e0e.system.entry.js +0 -1
  105. package/pn-market-web-components/p-c90b8645.system.entry.js +0 -1
  106. package/pn-market-web-components/p-d46d9b6e.system.entry.js +0 -1
  107. package/pn-market-web-components/p-e056d2c6.entry.js +0 -1
  108. package/pn-market-web-components/p-f1c06bc8.entry.js +0 -1
@@ -3,48 +3,65 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-e3e27c79.js');
6
+ const data = require('./data-e77c1ada.js');
6
7
  const convert = require('./convert-362ef5e6.js');
7
- const pnProductPricelistStore = require('./pn-product-pricelist-store-86310b5a.js');
8
+ const pnFindPriceStore = require('./pn-find-price-store-6aab7fd0.js');
8
9
  require('./index-28bbc937.js');
9
10
 
10
11
  const translations = {
11
12
  'sv': {
12
- 'maxweightlabel': 'Maxvikt',
13
+ 'componentheading': 'Våra priser och villkor för inrikesförsändelser för dig som direktbetalande kund?',
14
+ 'deliveryscopeheading': 'Endast leveranser inom Sverige',
15
+ 'resultlistheading': 'Några bra alternativ för dig',
13
16
  'weightlabel': 'Vikt',
17
+ 'maxweightlabel': 'Maxvikt',
14
18
  'maxmeasurementlabel': 'Maxvolym',
15
- 'sizeheading': 'Hur mycket väger det?',
16
- 'senddirectcta': 'Köp frakt via Skicka Direkt',
17
- 'stampshopcta': 'Köp frimärken via vår webshop',
19
+ 'senddirectcta': 'Köp online',
20
+ 'stampshopcta': 'Köp frimärken',
21
+ 'message': '*Vid köp hos valfritt ombud',
22
+ 'servicePointHeader': 'Eller hitta närmaste serviceställe',
23
+ 'servicePointLink': 'Sök serviceställe eller brevlåda'
18
24
  },
19
25
  'en': {
20
- 'maxweightlabel': 'Max weight',
26
+ 'componentheading': 'Our prices and terms and conditions for domestic shipments for you as a direct paying customer',
27
+ 'deliveryscopeheading': 'Deliveries within Sweden only',
28
+ 'resultlistheading': 'Some suitable options for you',
21
29
  'weightlabel': 'Weight',
30
+ 'maxweightlabel': 'Max weight',
22
31
  'maxmeasurementlabel': 'Maximum measurement',
23
- 'sizeheading': 'How much does it weigh?',
24
- 'senddirectcta': 'Buy shipping in Send Direct',
25
- 'stampshopcta': 'Order home stamps from the webshop',
32
+ 'senddirectcta': 'Buy Online',
33
+ 'stampshopcta': 'Buy Stamps',
34
+ 'message': 'When buying from any agent',
35
+ 'servicePointHeader': 'Or find nearest service point',
36
+ 'servicePointLink': 'Search letter-box or service point'
26
37
  },
27
38
  'da': {
28
- 'maxweightlabel': 'Max vægt',
39
+ 'componentheading': 'Vad vill du skicka?',
40
+ 'deliveryscopeheading': 'Kun leveringer indenfor Sverige',
41
+ 'resultlistheading': 'Some suitable options for you',
29
42
  'weightlabel': 'Vægt',
43
+ 'maxweightlabel': 'Max vægt',
30
44
  'maxmeasurementlabel': 'Maks. Volumen',
31
- 'sizeheading': 'How much does it weigh?',
32
45
  'senddirectcta': 'Buy shipping in Send Direct',
33
46
  'stampshopcta': 'Order home stamps from the webshop',
34
47
  },
35
48
  'no': {
36
- 'maxweightlabel': 'Maks vekt',
49
+ 'componentheading': 'Vad vill du skicka?',
50
+ 'deliveryscopeheading': 'Kun leveranser innen Sverige',
51
+ 'resultlistheading': 'Some suitable options for you',
37
52
  'weightlabel': 'Vekt',
53
+ 'maxweightlabel': 'Maks vekt',
38
54
  'maxmeasurementlabel': 'Maks volum',
39
- 'sizeheading': 'How much does it weigh?',
40
55
  'senddirectcta': 'Buy shipping in Send Direct',
41
56
  'stampshopcta': 'Order home stamps from the webshop',
42
57
  },
43
58
  'fi': {
59
+ 'componentheading': 'Vad vill du skicka?',
60
+ 'deliveryscopeheading': 'Toimitukset vain Ruotsin sisällä',
61
+ 'resultlistheading': 'Some suitable options for you',
62
+ 'weightlabel': 'Paino',
44
63
  'maxweightlabel': 'Max paino',
45
- 'weightlabel': 'Piano',
46
64
  'maxmeasurementlabel': 'Max äänenvoimakkuus',
47
- 'sizeheading': 'How much does it weigh?',
48
65
  'senddirectcta': 'Buy shipping in Send Direct',
49
66
  'stampshopcta': 'Order home stamps from the webshop',
50
67
  }
@@ -64,44 +81,12 @@ const markets = {
64
81
  }
65
82
  };
66
83
 
67
- const weights = {
68
- "letter": [
69
- { name: "50g", abbreviation: 'g', value: 50 },
70
- { name: "100g", abbreviation: 'g', value: 100 },
71
- { name: "250g", abbreviation: 'g', value: 250 },
72
- { name: "500g", abbreviation: 'g', value: 500 },
73
- { name: "1kg", abbreviation: 'kg', value: 1 },
74
- { name: "2kg", abbreviation: 'kg', value: 2 },
75
- ],
76
- "parcel": [
77
- { name: "1kg", abbreviation: 'kg', value: 1 },
78
- { name: "2kg", abbreviation: 'kg', value: 2 },
79
- { name: "3kg", abbreviation: 'kg', value: 3 },
80
- { name: "4kg", abbreviation: 'kg', value: 4 },
81
- { name: "5kg", abbreviation: 'kg', value: 5 },
82
- { name: "6kg", abbreviation: 'kg', value: 6 },
83
- { name: "7Kg", abbreviation: 'kg', value: 7 },
84
- { name: "8kg", abbreviation: 'kg', value: 8 },
85
- { name: "9kg", abbreviation: 'kg', value: 9 },
86
- { name: "10kg", abbreviation: 'kg', value: 10 },
87
- { name: "11kg", abbreviation: 'kg', value: 11 },
88
- { name: "12kg", abbreviation: 'kg', value: 12 },
89
- { name: "13kg", abbreviation: 'kg', value: 13 },
90
- { name: "14kg", abbreviation: 'kg', value: 14 },
91
- { name: "15kg", abbreviation: 'kg', value: 15 },
92
- { name: "16kg", abbreviation: 'kg', value: 16 },
93
- { name: "17kg", abbreviation: 'kg', value: 17 },
94
- { name: "18kg", abbreviation: 'kg', value: 18 },
95
- { name: "20kg", abbreviation: 'kg', value: 20 },
96
- ]
97
- };
98
-
99
- const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection{max-width:50em;margin:0 auto 1em}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1em}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
84
+ const pnProductPricelistCss = "pn-product-pricelist pn-spinner{margin:1em auto}pn-product-pricelist h2,pn-product-pricelist .heading{text-align:center;font-size:1.5em;line-height:1.1;font-weight:bold;margin-bottom:1rem}pn-product-pricelist .content,pn-product-pricelist .weightselection,pn-product-pricelist .resultlist{max-width:50em;margin:0 auto 1.6rem}pn-product-pricelist .weightoption{display:-ms-flexbox;display:flex;gap:1.6rem}pn-product-pricelist .weightoption-input{width:5em;position:relative;display:none}pn-product-pricelist .weightoption-input input::-webkit-outer-spin-button,pn-product-pricelist .weightoption-input input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}pn-product-pricelist .weightoption-input-abbreviation{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);right:1.2em;margin-top:1.55rem;font-weight:500}pn-product-pricelist .weightoption-range{-ms-flex-positive:1;flex-grow:1;-ms-flex-item-align:end;align-self:flex-end;position:relative;top:0.5em}pn-product-pricelist .weightoption-range input{width:calc(100% - 1.5em)}pn-product-pricelist .weightoption-range datalist{width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;font-size:0.75em}pn-product-pricelist .resultlist:not([data-list-count=\"0\"]){margin-top:2em}";
100
85
 
101
86
  let PnFindProductPricelist = class {
102
87
  constructor(hostRef) {
103
88
  index.registerInstance(this, hostRef);
104
- this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-se-findprice.xlsx";
89
+ this.source = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
105
90
  this.language = "sv";
106
91
  this.market = "se";
107
92
  this.productid = "";
@@ -119,10 +104,10 @@ let PnFindProductPricelist = class {
119
104
  }
120
105
  setState() {
121
106
  if (this.market) {
122
- pnProductPricelistStore.state.market = markets[this.market];
107
+ pnFindPriceStore.state.market = markets[this.market];
123
108
  }
124
109
  if (this.language && translations[this.language]) {
125
- pnProductPricelistStore.state.i18n = translations[this.language];
110
+ pnFindPriceStore.state.i18n = translations[this.language];
126
111
  }
127
112
  }
128
113
  async getDataSource() {
@@ -155,11 +140,11 @@ let PnFindProductPricelist = class {
155
140
  return;
156
141
  }
157
142
  this.postagetype.value = productIdItems[0].what;
158
- if (!weights[this.postagetype.value] || weights[this.postagetype.value].length === 0) {
143
+ if (!data.weights[this.postagetype.value] || data.weights[this.postagetype.value].length === 0) {
159
144
  return;
160
145
  }
161
146
  if (this.weightvalue === 0) {
162
- this.weight = weights[this.postagetype.value][0];
147
+ this.weight = data.weights[this.postagetype.value][0];
163
148
  this.weightvalue = this.weight.value;
164
149
  }
165
150
  // For letters we use grams. Otherwise we use KG
@@ -180,11 +165,11 @@ let PnFindProductPricelist = class {
180
165
  this.gotData = this.filteredItems.length > 0;
181
166
  }
182
167
  render() {
183
- return (index.h(index.Host, null, index.h("div", { class: "content" }, index.h("slot", null)), this.loading ? (index.h("pn-spinner", null)) : null, (this.postagetype.value && weights[this.postagetype.value]) ? (index.h("div", { class: "weightselection" }, (pnProductPricelistStore.state.i18n.sizeheading) ? (index.h("div", { class: "heading" }, pnProductPricelistStore.state.i18n.sizeheading)) : null, index.h("div", { class: "weightoption" }, index.h("div", { class: "weightoption-input" }, index.h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: pnProductPricelistStore.state.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
168
+ return (index.h(index.Host, null, index.h("div", { class: "content" }, index.h("slot", null)), this.loading ? (index.h("pn-spinner", null)) : null, (this.postagetype.value && data.weights[this.postagetype.value]) ? (index.h("div", { class: "weightselection" }, index.h("div", { class: "weightoption" }, index.h("div", { class: "weightoption-input" }, index.h("pn-input", { inputid: "weightvalue", name: "weightvalue", type: "number", label: pnFindPriceStore.state.i18n.weightlabel, value: this.weightvalue, onChange: (e) => {
184
169
  if (e && e.target && e.target.value) {
185
170
  const weightNum = parseInt(e.target.value, 10);
186
171
  if (!isNaN(weightNum)) {
187
- let matchingWeights = weights[this.postagetype.value].filter((x) => {
172
+ let matchingWeights = data.weights[this.postagetype.value].filter((x) => {
188
173
  let weightInGrams = (x.abbreviation === "kg") ? x.value * 1000 : x.value;
189
174
  return weightInGrams >= weightNum;
190
175
  });
@@ -194,19 +179,19 @@ let PnFindProductPricelist = class {
194
179
  }
195
180
  }
196
181
  }
197
- } }), index.h("span", { class: "weightoption-input-abbreviation" }, this.weight.abbreviation)), index.h("div", { class: "weightoption-range" }, index.h("input", { type: "range", id: "weightrange", name: "weightrange", list: "weightlist", value: (!this.weight.value) ? 0 : weights[this.postagetype.value].findIndex((x) => x.value === this.weightvalue), onChange: (e) => {
182
+ } }), index.h("span", { class: "weightoption-input-abbreviation" }, this.weight.abbreviation)), index.h("div", { class: "weightoption-range" }, index.h("input", { type: "range", id: "weightrange", name: "weightrange", list: "weightlist", value: (!this.weight.value) ? 0 : data.weights[this.postagetype.value].findIndex((x) => x.value === this.weightvalue), onChange: (e) => {
198
183
  const value = e.target.value;
199
- this.weight = weights[this.postagetype.value][value];
184
+ this.weight = data.weights[this.postagetype.value][value];
200
185
  this.weightvalue = this.weight.value;
201
186
  }, min: "0",
202
187
  // max={ weights[this.postagetype.value][weights[this.postagetype.value].length - 1].value }
203
- max: weights[this.postagetype.value].length - 1 }), index.h("datalist", { id: "weightlist" }, weights[this.postagetype.value].map((weight, weightindex) => {
188
+ max: data.weights[this.postagetype.value].length - 1 }), index.h("datalist", { id: "weightlist" }, data.weights[this.postagetype.value].map((weight, weightindex) => {
204
189
  let labelText = weight.name;
205
- if (weights[this.postagetype.value].length > 6) {
206
- labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === weights[this.postagetype.value].length - 1) ? weight.name : '';
190
+ if (data.weights[this.postagetype.value].length > 6) {
191
+ labelText = (weightindex % 5 === 0 || weightindex === 0 || weightindex === data.weights[this.postagetype.value].length - 1) ? weight.name : '';
207
192
  }
208
193
  return (index.h("option", Object.assign({ value: weightindex }, (labelText ? { label: labelText } : {}))));
209
- })))))) : null, index.h("div", { class: "resultlist", "data-list-count": this.filteredItems.length }, this.filteredItems.map((item) => (index.h("div", null, index.h("pn-product-pricelist-result", { item: item })))))));
194
+ })))))) : null, index.h("div", { class: "resultlist", "data-list-count": this.filteredItems.length }, this.filteredItems.map((item) => (index.h("div", null, index.h("pn-find-price-result", { item: item })))))));
210
195
  }
211
196
  static get watchers() { return {
212
197
  "market": ["setState"],
@@ -4,18 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-e3e27c79.js');
6
6
 
7
- const pnProductTileCss = "pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-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);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-tile .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";
8
-
9
- let PnProductTile = class {
10
- constructor(hostRef) {
11
- index.registerInstance(this, hostRef);
12
- }
13
- render() {
14
- return (index.h(index.Host, null, index.h("slot", { name: "illustration" }), index.h("div", { class: "tilecontent" }, index.h("div", { class: "details" }, index.h("slot", { name: "content" }), index.h("div", { class: "info" }, index.h("slot", null)), index.h("slot", { name: "note" })), index.h("slot", { name: "price" }))));
15
- }
16
- };
17
- PnProductTile.style = pnProductTileCss;
18
-
19
7
  const pnProductTileInfoCss = "pn-product-tile-info{-ms-flex-item-align:center;align-self:center}";
20
8
 
21
9
  let PnProductTileInfo = class {
@@ -44,6 +32,5 @@ let PnProductTilePrice = class {
44
32
  };
45
33
  PnProductTilePrice.style = pnProductTilePriceCss;
46
34
 
47
- exports.pn_product_tile = PnProductTile;
48
35
  exports.pn_product_tile_info = PnProductTileInfo;
49
36
  exports.pn_product_tile_price = PnProductTilePrice;
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-e3e27c79.js');
6
+
7
+ const pnProductTileCss = "pn-product-tile{margin-bottom:1em;border:0.1rem solid #D3CECB;outline:none;background:white;-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);display:-ms-flexbox;display:flex;padding:1.5em;word-break:break-word;text-decoration:none;border-radius:0.8rem}pn-product-tile [slot=content] h3{display:-ms-flexbox;display:flex;width:100%;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:0.5em}pn-product-tile>pn-illustration{min-width:8rem;width:8rem;height:8rem;margin-right:3rem;-ms-flex-item-align:center;align-self:center}pn-product-tile .tilecontent{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}pn-product-tile .details{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;justify-content:space-between;width:100%}pn-product-tile .info{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-positive:1;flex-grow:1;max-width:66.6666666667%;-ms-flex-flow:wrap;flex-flow:wrap}pn-product-tile .info>*{min-width:6em;margin:0.2em 1em 0.2em 0}";
8
+
9
+ let PnProductTile = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ }
13
+ render() {
14
+ return (index.h(index.Host, null, index.h("slot", { name: "illustration" }), index.h("div", { class: "tilecontent" }, index.h("div", { class: "details" }, index.h("slot", { name: "content" }), index.h("div", { class: "info" }, index.h("slot", null)), index.h("slot", { name: "note" })), index.h("slot", { name: "price" }))));
15
+ }
16
+ };
17
+ PnProductTile.style = pnProductTileCss;
18
+
19
+ exports.pn_product_tile = PnProductTile;
@@ -6,6 +6,9 @@
6
6
  display: block;
7
7
  }
8
8
  }
9
+ .siteheader-search pn-search-field > .input-container button {
10
+ background: #FFFFFF;
11
+ }
9
12
  .siteheader-search pn-search-field.button-icon pn-button,
10
13
  .siteheader-search pn-button {
11
14
  display: inline-flex;
@@ -8,8 +8,10 @@ export class PnfindPriceResult {
8
8
  this.description = [];
9
9
  this.showMeasurement = false;
10
10
  this.weightText = "";
11
+ this.linkId = '';
11
12
  }
12
13
  componentWillLoad() {
14
+ console.log(this.item);
13
15
  this.composeItems();
14
16
  }
15
17
  composeItems() {
@@ -23,9 +25,10 @@ export class PnfindPriceResult {
23
25
  this.description = this.item.description.split("#bullet").filter(x => x !== "");
24
26
  }
25
27
  this.showMeasurement = (this.item.maxmått !== null) || (this.item.rulle !== null);
28
+ this.linkId = `${this.item.id}-${this.item.name.toLocaleLowerCase().replace(/[^a-zA-Z0-9]/g, '')}`;
26
29
  }
27
30
  render() {
28
- return (h(Host, null, h("pn-product-card", null,
31
+ return (h(Host, null, h("pn-product-card", { "data-productid": this.item.id },
29
32
  h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }),
30
33
  h("div", { slot: "title" },
31
34
  h("h2", null,
@@ -51,8 +54,8 @@ export class PnfindPriceResult {
51
54
  this.Usp3 ? (h("span", null, this.Usp3)) : null)) : null,
52
55
  this.showMeasurement ? (h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle })) : null,
53
56
  h("div", { slot: "cardprice" },
54
- this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: sendDirectUrl, service: this.item.name + "-portal" })) : null,
55
- this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state.market.currency, url: stampShopUrl, service: this.item.name + "-eshop" })) : null))));
57
+ this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: sendDirectUrl, linkid: this.linkId + '-portal' })) : null,
58
+ this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state.market.currency, url: stampShopUrl, linkid: this.linkId + '-stampshop' })) : null))));
56
59
  }
57
60
  static get is() { return "pn-find-price-result"; }
58
61
  static get originalStyleUrls() { return {
@@ -66,10 +69,10 @@ export class PnfindPriceResult {
66
69
  "type": "unknown",
67
70
  "mutable": true,
68
71
  "complexType": {
69
- "original": "ProductPriceItm",
70
- "resolved": "ProductPriceItm",
72
+ "original": "ProductPriceItem",
73
+ "resolved": "ProductPriceItem",
71
74
  "references": {
72
- "ProductPriceItm": {
75
+ "ProductPriceItem": {
73
76
  "location": "import",
74
77
  "path": "./pn-find-price-types"
75
78
  }
@@ -87,10 +90,10 @@ export class PnfindPriceResult {
87
90
  "type": "unknown",
88
91
  "mutable": false,
89
92
  "complexType": {
90
- "original": "ProductPriceItm[]",
91
- "resolved": "ProductPriceItm[]",
93
+ "original": "ProductPriceItem[]",
94
+ "resolved": "ProductPriceItem[]",
92
95
  "references": {
93
- "ProductPriceItm": {
96
+ "ProductPriceItem": {
94
97
  "location": "import",
95
98
  "path": "./pn-find-price-types"
96
99
  }
@@ -191,7 +194,8 @@ export class PnfindPriceResult {
191
194
  }
192
195
  }; }
193
196
  static get states() { return {
194
- "weightText": {}
197
+ "weightText": {},
198
+ "linkId": {}
195
199
  }; }
196
200
  static get watchers() { return [{
197
201
  "propName": "item",
@@ -71,7 +71,7 @@ pn-find-price .weightoption-content pn-choice-button ::before {
71
71
  font-weight: lighter;
72
72
  }
73
73
  pn-find-price .resultlist {
74
- margin: 3em 0;
74
+ margin: 3.2rem 0;
75
75
  }
76
76
  pn-find-price .servicePoint {
77
77
  text-align: center;
@@ -10,22 +10,23 @@ export class PnfindServiceAndPriceResult {
10
10
  this.composeItems();
11
11
  }
12
12
  composeItems() {
13
- this.shownitems = [];
14
- if (this.item.pricestamps) {
15
- this.shownitems.push(Object.assign(Object.assign({}, this.item), { priceagent: null, pricesenddirect: null }));
16
- }
17
- if (this.item.priceagent) {
18
- this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, pricesenddirect: null }));
19
- }
20
- if (this.item.pricesenddirect) {
21
- this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, priceagent: null }));
22
- }
13
+ this.shownitems = [this.item];
14
+ // this.shownitems = [];
15
+ // if (this.item.pricestamps) {
16
+ // this.shownitems.push({...this.item, priceagent: null, pricesenddirect: null});
17
+ // }
18
+ // if (this.item.priceagent) {
19
+ // this.shownitems.push({...this.item, pricestamps: null, pricesenddirect: null});
20
+ // }
21
+ // if (this.item.pricesenddirect) {
22
+ // this.shownitems.push({...this.item, pricestamps: null, priceagent: null});
23
+ // }
23
24
  // Parcels are always in KG. Letter KG must be converted from grams
24
- this.weightText = (this.item.what === "parcel") ? this.item.maxweight + 'kg' :
25
- (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight / 1000) + " kg" : this.item.maxweight + " g";
25
+ // this.weightText = (this.item.what === "parcel") ? this.item.maxweight + 'kg' :
26
+ // (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight/1000) + " kg" : this.item.maxweight + " g";
26
27
  }
27
28
  render() {
28
- return (h(Host, null, this.shownitems.map((item) => (h("pn-product-tile", null,
29
+ return (h(Host, null, this.shownitems.map((item) => (h("pn-product-card", null,
29
30
  h("pn-illustration", { slot: "illustration", illustration: item.illustration }),
30
31
  h("div", { slot: "content" },
31
32
  h("div", { class: "content" },
@@ -33,9 +34,7 @@ export class PnfindServiceAndPriceResult {
33
34
  (item.description) ? (h("div", { class: "description" }, item.description)) : null,
34
35
  (item.info) ? (h("div", { class: "description" }, item.info)) : null)),
35
36
  item.maxweight ? (h("pn-product-tile-info", { label: state.i18n.maxweightlabel, text: this.weightText })) : null,
36
- item.maximummeasurements ? (h("pn-product-tile-info", { label: state.i18n.maxmeasurementlabel, text: item.maximummeasurements })) : null,
37
37
  item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.stampshopcta, amount: item.pricestamps + '', currency: state.market.currency })) : null,
38
- item.priceagent ? (h("pn-product-tile-price", { slot: "price", label: "", amount: item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null,
39
38
  item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null,
40
39
  item.note ? (h("small", { slot: "note" },
41
40
  h("p", null, item.note))) : null)))));
@@ -4,12 +4,12 @@ export class PnProductCardPrice {
4
4
  if (!this.amount) {
5
5
  return;
6
6
  }
7
- return (this.url) ? (h(Host, null,
7
+ return (this.url) ? (h(Host, { id: this.linkid },
8
8
  h("div", { class: "price" },
9
9
  (this.amount) ? (h("span", null, this.amount)) : null,
10
10
  (this.currency) ? (h("span", null, " " + this.currency)) : null),
11
11
  (this.note) ? (h("p", null, this.note)) : null,
12
- (this.label) ? (h("pn-button", { small: "true", icon: "open-in-new", appearance: "light", href: this.url, target: "_blank", id: this.service.split(" ").join("-").toLocaleLowerCase() }, this.label)) : null)) : (h(Host, null,
12
+ (this.label) ? (h("pn-button", { small: "true", icon: "open-in-new", appearance: "light", href: this.url, target: "_blank" }, this.label)) : null)) : (h(Host, null,
13
13
  h("div", { class: "price" },
14
14
  (this.amount) ? (h("span", null, this.amount)) : null,
15
15
  (this.currency) ? (h("span", null, this.currency)) : null)));
@@ -123,6 +123,23 @@ export class PnProductCardPrice {
123
123
  },
124
124
  "attribute": "service",
125
125
  "reflect": false
126
+ },
127
+ "linkid": {
128
+ "type": "string",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "string",
132
+ "resolved": "string",
133
+ "references": {}
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": ""
140
+ },
141
+ "attribute": "linkid",
142
+ "reflect": false
126
143
  }
127
144
  }; }
128
145
  }
@@ -48,6 +48,13 @@ const weights = {
48
48
  ]
49
49
  };
50
50
 
51
+ const fileLocation = "https://com-integration.postnord.com/globalassets/global/prices/sv-findprice-1-PN.xlsx";
51
52
 
53
+ const servicePointUrl = "https://www.postnord.se/vara-verktyg/sok-brevlada-eller-servicestalle";
52
54
 
53
- export { postagetypes, weights, deliveryscopes};
55
+ const sendDirectUrl = "https://portal.postnord.com/skickadirekt/";
56
+
57
+ const stampShopUrl = "https://shop.postnord.se/ebutik/default.aspx";
58
+
59
+
60
+ export { postagetypes, weights, deliveryscopes, servicePointUrl, sendDirectUrl, stampShopUrl};
@@ -1,44 +1,79 @@
1
1
  import { Component, h, Prop, Host, State, Watch } from "@stencil/core";
2
2
  import { state } from "./pn-product-pricelist-store";
3
+ import { sendDirectUrl, stampShopUrl } from "./data.js";
3
4
  export class PnFindProductPricelistResult {
4
5
  constructor() {
5
6
  this.item = null;
7
+ this.description = [];
6
8
  this.shownitems = [];
9
+ this.showMeasurement = false;
7
10
  this.weightText = "";
8
11
  }
9
12
  componentWillLoad() {
10
13
  this.composeItems();
11
14
  }
12
15
  composeItems() {
13
- this.shownitems = [];
14
- if (this.item.pricestamps) {
15
- this.shownitems.push(Object.assign(Object.assign({}, this.item), { priceagent: null, pricesenddirect: null }));
16
- }
17
- if (this.item.priceagent) {
18
- this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, pricesenddirect: null }));
19
- }
20
- if (this.item.pricesenddirect) {
21
- this.shownitems.push(Object.assign(Object.assign({}, this.item), { pricestamps: null, priceagent: null }));
16
+ if (this.item.description) {
17
+ this.description = this.item.description.split("#bullet").filter(x => x !== "");
22
18
  }
23
- // Parcels are always in KG. Letter KG must be converted from grams
24
- this.weightText = (this.item.what === "parcel") ? this.item.maxweight + 'kg' :
25
- (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight / 1000) + " kg" : this.item.maxweight + " g";
19
+ this.showMeasurement = (this.item.maxmått !== null) || (this.item.rulle !== null);
20
+ this.shownitems = [this.item];
21
+ // if (this.item.pricestamps) {
22
+ // this.shownitems.push({...this.item, priceagent: null, pricesenddirect: null});
23
+ // }
24
+ // if (this.item.priceagent) {
25
+ // this.shownitems.push({...this.item, pricestamps: null, pricesenddirect: null});
26
+ // }
27
+ // if (this.item.pricesenddirect) {
28
+ // this.shownitems.push({...this.item, pricestamps: null, priceagent: null});
29
+ // }
30
+ // // Parcels are always in KG. Letter KG must be converted from grams
31
+ // this.weightText = (this.item.what === "parcel") ? this.item.maxweight + 'kg' :
32
+ // (this.item.what === "letter" && this.item.maxweight > 999) ? Math.round(this.item.maxweight/1000) + " kg" : this.item.maxweight + " g";
26
33
  }
27
34
  render() {
28
- return (h(Host, null, this.shownitems.map((item) => (h("pn-product-tile", null,
29
- h("pn-illustration", { slot: "illustration", illustration: item.illustration }),
35
+ return (h(Host, null, this.shownitems.map((item) => (h("pn-product-card", { "data-productid": item.id },
36
+ h("pn-illustration", { slot: "illustration", illustration: this.item.illustration }),
37
+ h("div", { slot: "title" },
38
+ h("h2", null,
39
+ item.name,
40
+ " "),
41
+ (this.item.highestrankusp) ?
42
+ (this.item.highestrankusp === "Billigast") ?
43
+ (h("span", { slot: "Billigast" },
44
+ this.item.highestrankusp,
45
+ h("pn-icon", { symbol: "box-label", small: "false", color: "green700" })))
46
+ : (h("span", { slot: "Snabbast" },
47
+ this.item.highestrankusp,
48
+ h("pn-icon", { symbol: "bolt", small: "false", color: "blue700" }))) : null),
30
49
  h("div", { slot: "content" },
31
50
  h("div", { class: "content" },
32
- h("h3", null, item.name),
33
- (item.description) ? (h("div", { class: "description" }, item.description)) : null,
34
- (item.info) ? (h("div", { class: "description" }, item.info)) : null)),
35
- item.maxweight ? (h("pn-product-tile-info", { label: state.i18n.maxweightlabel, text: this.weightText })) : null,
36
- item.maximummeasurements ? (h("pn-product-tile-info", { label: state.i18n.maxmeasurementlabel, text: item.maximummeasurements })) : null,
37
- item.pricestamps ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.stampshopcta, amount: item.pricestamps + '', currency: state.market.currency })) : null,
38
- item.priceagent ? (h("pn-product-tile-price", { slot: "price", label: "", amount: item.priceagent + '', currency: state.market.currency, url: "https://shop.postnord.se/ebutik/default.aspx" })) : null,
39
- item.pricesenddirect ? (h("pn-product-tile-price", { slot: "price", label: state.i18n.senddirectcta, amount: item.pricesenddirect + '', currency: state.market.currency, url: "https://portal.postnord.com/skickadirekt/" })) : null,
40
- item.note ? (h("small", { slot: "note" },
41
- h("p", null, item.note))) : null)))));
51
+ (this.item.description) ? (h("div", { class: "description" }, this.description.map((desc) => (h("li", null, desc))))) : null,
52
+ (this.item.info) ? (h("div", { class: "description" }, this.item.info)) : null)),
53
+ this.item.note ? (h("small", { slot: "note" },
54
+ h("p", null, this.item.note))) : null,
55
+ this.item.additionalusp ? (h("div", { slot: "additionalUSP" })) : null,
56
+ this.showMeasurement ? (h("pn-product-card-info", { paket: this.item.maxmått, rulle: this.item.rulle })) : null,
57
+ h("div", { slot: "cardprice" },
58
+ this.item.pricesenddirect ? (h("pn-product-card-price", { slot: "sendDirectPrice", label: state.i18n.senddirectcta, amount: this.item.pricesenddirect + '', currency: state.market.currency, url: sendDirectUrl, service: this.item.name + "-portal" })) : null,
59
+ this.item.pricestamps ? (h("pn-product-card-price", { slot: "stampPrice", label: state.i18n.stampshopcta, amount: this.item.pricestamps + '', currency: state.market.currency, url: stampShopUrl, service: this.item.name + "-eshop" })) : null))
60
+ // <pn-product-tile>
61
+ // <pn-illustration slot="illustration" illustration={ item.illustration }></pn-illustration>
62
+ // <div slot="content">
63
+ // <div class="content">
64
+ // <h3>{item.name}</h3>
65
+ // {(item.description) ? (<div class="description">{item.description}</div>) : null}
66
+ // {(item.info) ? (<div class="description">{item.info}</div>) : null}
67
+ // </div>
68
+ // </div>
69
+ // { item.maxweight ? (<pn-product-tile-info label={state.i18n.maxweightlabel} text={this.weightText}></pn-product-tile-info>) : null }
70
+ // {/* { item.maximummeasurements ? (<pn-product-tile-info label={state.i18n.maxmeasurementlabel} text={item.maximummeasurements}></pn-product-tile-info>) : null } */}
71
+ // { item.pricestamps ? (<pn-product-tile-price slot="price" label={state.i18n.stampshopcta} amount={item.pricestamps+''} currency={ state.market.currency }></pn-product-tile-price>) : null }
72
+ // {/* { item.priceagent ? (<pn-product-tile-price slot="price" label="" amount={item.priceagent+''} currency={ state.market.currency } url="https://shop.postnord.se/ebutik/default.aspx"></pn-product-tile-price>) : null } */}
73
+ // { item.pricesenddirect ? (<pn-product-tile-price slot="price" label={state.i18n.senddirectcta} amount={item.pricesenddirect+''} currency={ state.market.currency } url="https://portal.postnord.com/skickadirekt/"></pn-product-tile-price>) : null }
74
+ // { item.note ? (<small slot="note"><p>{item.note}</p></small>) : null }
75
+ // </pn-product-tile>
76
+ ))));
42
77
  }
43
78
  static get is() { return "pn-product-pricelist-result"; }
44
79
  static get originalStyleUrls() { return {
@@ -69,6 +104,22 @@ export class PnFindProductPricelistResult {
69
104
  },
70
105
  "defaultValue": "null"
71
106
  },
107
+ "description": {
108
+ "type": "unknown",
109
+ "mutable": false,
110
+ "complexType": {
111
+ "original": "string[]",
112
+ "resolved": "string[]",
113
+ "references": {}
114
+ },
115
+ "required": false,
116
+ "optional": true,
117
+ "docs": {
118
+ "tags": [],
119
+ "text": ""
120
+ },
121
+ "defaultValue": "[]"
122
+ },
72
123
  "shownitems": {
73
124
  "type": "unknown",
74
125
  "mutable": false,
@@ -89,6 +140,24 @@ export class PnFindProductPricelistResult {
89
140
  "text": ""
90
141
  },
91
142
  "defaultValue": "[]"
143
+ },
144
+ "showMeasurement": {
145
+ "type": "boolean",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "boolean",
149
+ "resolved": "boolean",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": true,
154
+ "docs": {
155
+ "tags": [],
156
+ "text": ""
157
+ },
158
+ "attribute": "show-measurement",
159
+ "reflect": false,
160
+ "defaultValue": "false"
92
161
  }
93
162
  }; }
94
163
  static get states() { return {