@postnord/pn-marketweb-components 2.0.120 → 2.0.121

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 (70) hide show
  1. package/cjs/_commonjsHelpers-206db00d.js +37 -0
  2. package/cjs/convert-b219d02d.js +1826 -0
  3. package/cjs/loader.cjs.js +1 -1
  4. package/cjs/pn-chart.cjs.entry.js +21919 -0
  5. package/cjs/pn-charts-card.cjs.entry.js +21 -0
  6. package/cjs/pn-find-price.cjs.entry.js +2 -1
  7. package/cjs/pn-find-service-and-price.cjs.entry.js +2 -1
  8. package/cjs/pn-market-web-components.cjs.js +1 -1
  9. package/cjs/pn-product-pricelist.cjs.entry.js +2 -1
  10. package/collection/collection-manifest.json +2 -0
  11. package/collection/components/charts/pn-chart/pn-chart-helper.js +52 -0
  12. package/collection/components/charts/pn-chart/pn-chart.css +26 -0
  13. package/collection/components/charts/pn-chart/pn-chart.js +94 -0
  14. package/collection/components/charts/pn-chart/pn-chart.stories.js +0 -0
  15. package/collection/components/charts/pn-chart/types.js +1 -0
  16. package/collection/components/charts/pn-charts-card/pn-charts-card.css +106 -0
  17. package/collection/components/charts/pn-charts-card/pn-charts-card.js +156 -0
  18. package/collection/components/charts/pn-charts-card/pn-charts-card.stories.js +75 -0
  19. package/custom-elements/index.d.ts +12 -0
  20. package/custom-elements/index.js +21963 -17
  21. package/esm/_commonjsHelpers-27f122dd.js +32 -0
  22. package/esm/{convert-ae809f9c.js → convert-f6377d13.js} +2 -16
  23. package/esm/loader.js +1 -1
  24. package/esm/pn-chart.entry.js +21915 -0
  25. package/esm/pn-charts-card.entry.js +17 -0
  26. package/esm/pn-find-price.entry.js +2 -1
  27. package/esm/pn-find-service-and-price.entry.js +2 -1
  28. package/esm/pn-market-web-components.js +1 -1
  29. package/esm/pn-product-pricelist.entry.js +2 -1
  30. package/esm-es5/_commonjsHelpers-27f122dd.js +1 -0
  31. package/esm-es5/{convert-ae809f9c.js → convert-f6377d13.js} +2 -2
  32. package/esm-es5/loader.js +1 -1
  33. package/esm-es5/pn-chart.entry.js +16 -0
  34. package/esm-es5/pn-charts-card.entry.js +1 -0
  35. package/esm-es5/pn-find-price.entry.js +1 -1
  36. package/esm-es5/pn-find-service-and-price.entry.js +1 -1
  37. package/esm-es5/pn-market-web-components.js +1 -1
  38. package/esm-es5/pn-product-pricelist.entry.js +1 -1
  39. package/package.json +3 -1
  40. package/pn-market-web-components/p-1751415f.entry.js +16 -0
  41. package/pn-market-web-components/p-35fcd76c.system.entry.js +1 -0
  42. package/pn-market-web-components/p-3c0d63fb.system.entry.js +1 -0
  43. package/pn-market-web-components/p-67887512.system.js +1 -1
  44. package/pn-market-web-components/p-736e5b84.system.entry.js +1 -0
  45. package/pn-market-web-components/p-77557da8.entry.js +1 -0
  46. package/pn-market-web-components/p-814af281.js +1 -0
  47. package/pn-market-web-components/{p-0ea97ca0.system.js → p-8766fa86.system.js} +2 -2
  48. package/pn-market-web-components/p-8e4d292f.entry.js +1 -0
  49. package/pn-market-web-components/p-aab2e28f.entry.js +1 -0
  50. package/pn-market-web-components/p-b97cb315.system.entry.js +16 -0
  51. package/pn-market-web-components/p-bfe239ca.js +13 -0
  52. package/pn-market-web-components/p-d3a0ed9b.system.entry.js +1 -0
  53. package/pn-market-web-components/p-effbbf45.entry.js +1 -0
  54. package/pn-market-web-components/p-fe1f76a3.system.js +1 -0
  55. package/pn-market-web-components/pn-market-web-components.esm.js +1 -1
  56. package/types/components/charts/pn-chart/pn-chart-helper.d.ts +46 -0
  57. package/types/components/charts/pn-chart/pn-chart.d.ts +17 -0
  58. package/types/components/charts/pn-chart/types.d.ts +7 -0
  59. package/types/components/charts/pn-charts-card/pn-charts-card.d.ts +12 -0
  60. package/types/components.d.ts +46 -0
  61. package/umd/pn-marketweb-init.js +41 -37
  62. package/umd/pn-marketweb-salesforce.js +2 -2
  63. package/cjs/convert-362ef5e6.js +0 -1840
  64. package/pn-market-web-components/p-513e3c62.entry.js +0 -1
  65. package/pn-market-web-components/p-774b7a9f.entry.js +0 -1
  66. package/pn-market-web-components/p-8144bcbc.system.entry.js +0 -1
  67. package/pn-market-web-components/p-9adc3940.js +0 -13
  68. package/pn-market-web-components/p-b32a8507.entry.js +0 -1
  69. package/pn-market-web-components/p-bc22baf1.system.entry.js +0 -1
  70. package/pn-market-web-components/p-fecc53bb.system.entry.js +0 -1
@@ -0,0 +1,75 @@
1
+ import readme from './readme.md';
2
+
3
+ export default {
4
+ title: 'Charts/Charts Card',
5
+ parameters: {
6
+ notes: readme,
7
+ layout: 'fullscreen',
8
+ },
9
+ };
10
+
11
+ const TemplateChartsCardOne = ({ ...args }) => {
12
+ return `
13
+ <pn-breakpoints></pn-breakpoints>
14
+ <div style="width:100%; display:flex; flex-direction:row; gap:16px;">
15
+ <div class="onethirdwidth" style="width:33%; padding:16px 0;">
16
+ <pn-charts-card
17
+ header="${args.header}"
18
+ highlight="${args.highlight}"
19
+ preamble="${args.preamble}"
20
+ label="${args.label}"
21
+ source="${args.source}"
22
+ source-url="${args.sourceUrl}"
23
+ open-in-new-window="${args.openInNewWindow}"
24
+ data-chart-color="blue"
25
+ >
26
+ <pn-chart data-chart-type="doughnut" slot="chart" labels='["XSmall", "Small", "Medium"]' data-sets='[{ "label": "# of packages in billions", "backgroundColor": ["#E0F8FF", "#8EDDF9", "#00A0D6"], "data": [50, 100, 500] }]'></pn-chart>
27
+
28
+ </pn-charts-card>
29
+ </div>
30
+
31
+ <div class="onethirdwidth" style="width:33%; padding:16px 0;">
32
+ <pn-charts-card
33
+ header="${args.header}"
34
+ highlight="${args.highlight}"
35
+ preamble="${args.preamble}"
36
+ label="${args.label}"
37
+ source="${args.source}"
38
+ source-url="${args.sourceUrl}"
39
+ open-in-new-window="${args.openInNewWindow}"
40
+ data-chart-color="green"
41
+ >
42
+ <pn-chart data-chart-type="bar" slot="chart" labels='["Large", "XLarge", "XXLarge"]' data-sets='[{ "label": "# of packages in billions", "backgroundColor": ["#E0F8FF", "#8EDDF9", "#00A0D6"], "data": [250, 100, 50] }]'></pn-chart>
43
+
44
+ </pn-charts-card>
45
+ </div>
46
+
47
+ <div class="onethirdwidth" style="width:33%; padding:16px 0;">
48
+ <pn-charts-card
49
+ header="${args.header}"
50
+ highlight="${args.highlight}"
51
+ preamble="${args.preamble}"
52
+ label="${args.label}"
53
+ source="${args.source}"
54
+ source-url="${args.sourceUrl}"
55
+ open-in-new-window="${args.openInNewWindow}"
56
+ >
57
+ <pn-chart data-chart-type="line" slot="chart" labels='["Jan", "Feb", "Mars"]' data-sets='[{ "label": "# of packages in billions", "backgroundColor": ["#E0F8FF", "#8EDDF9", "#00A0D6"], "data": [300, 600, 50] }, { "label": "c02 emission", "borderColor":"green", "fill":true, "backgroundColor": ["#E0F8FF", "#8EDDF9", "#00A0D6"], "data": [20, 50, 90] }]'></pn-chart>
58
+ </pn-charts-card>
59
+ </div>
60
+ </div>
61
+
62
+ `;
63
+ };
64
+
65
+ export const ChartsCard = TemplateChartsCardOne.bind({});
66
+
67
+ ChartsCard.args = {
68
+ header: 'The e-commerce grows in all areas',
69
+ highlight: '10%',
70
+ preamble: 'In Q3 we have seen a big growth in e-com.',
71
+ label: 'Stats taken from',
72
+ source: 'E-commerce in Europe 2021',
73
+ sourceUrl: '/',
74
+ openInNewWindow: false,
75
+ };
@@ -20,6 +20,18 @@ export const PnBreakpoints: {
20
20
  new (): PnBreakpoints;
21
21
  };
22
22
 
23
+ interface PnChart extends Components.PnChart, HTMLElement {}
24
+ export const PnChart: {
25
+ prototype: PnChart;
26
+ new (): PnChart;
27
+ };
28
+
29
+ interface PnChartsCard extends Components.PnChartsCard, HTMLElement {}
30
+ export const PnChartsCard: {
31
+ prototype: PnChartsCard;
32
+ new (): PnChartsCard;
33
+ };
34
+
23
35
  interface PnChoiceButton extends Components.PnChoiceButton, HTMLElement {}
24
36
  export const PnChoiceButton: {
25
37
  prototype: PnChoiceButton;