@social-mail/social-mail-client 1.8.227 → 1.8.229

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 (35) hide show
  1. package/dist/admin/AdminAppIndex.pack.js +32 -23
  2. package/dist/admin/AdminAppIndex.pack.js.map +1 -1
  3. package/dist/admin/AdminAppIndex.pack.min.js +1 -1
  4. package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
  5. package/dist/common/controls/charts/ChartControl.d.ts +1 -1
  6. package/dist/common/controls/charts/ChartControl.js +3 -3
  7. package/dist/common/controls/charts/ChartControl.js.map +1 -1
  8. package/dist/common/pages/websites/detail/reports/ChartDataBuilder.d.ts +5 -5
  9. package/dist/common/pages/websites/detail/reports/ChartDataBuilder.d.ts.map +1 -1
  10. package/dist/common/pages/websites/detail/reports/ChartDataBuilder.js +19 -10
  11. package/dist/common/pages/websites/detail/reports/ChartDataBuilder.js.map +1 -1
  12. package/dist/common/pages/websites/detail/reports/DailyVisitors.js +1 -1
  13. package/dist/common/pages/websites/detail/reports/DailyVisitors.js.map +1 -1
  14. package/dist/common/pages/websites/detail/reports/DailyVisitorsByCountry.js +3 -3
  15. package/dist/common/pages/websites/detail/reports/DailyVisitorsByCountry.js.map +1 -1
  16. package/dist/common/pages/websites/detail/reports/DailyVisitorsByDevices.js +3 -3
  17. package/dist/common/pages/websites/detail/reports/DailyVisitorsByDevices.js.map +1 -1
  18. package/dist/common/pages/websites/detail/reports/DailyVisitorsBySources.js +3 -3
  19. package/dist/common/pages/websites/detail/reports/DailyVisitorsBySources.js.map +1 -1
  20. package/dist/site-editor-app/SiteEditorApp.pack.js +32 -23
  21. package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
  22. package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
  23. package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/web/AppIndex.pack.js +32 -23
  26. package/dist/web/AppIndex.pack.js.map +1 -1
  27. package/dist/web/AppIndex.pack.min.js +1 -1
  28. package/dist/web/AppIndex.pack.min.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/common/controls/charts/ChartControl.tsx +4 -4
  31. package/src/common/pages/websites/detail/reports/ChartDataBuilder.ts +19 -9
  32. package/src/common/pages/websites/detail/reports/DailyVisitors.tsx +1 -1
  33. package/src/common/pages/websites/detail/reports/DailyVisitorsByCountry.tsx +2 -2
  34. package/src/common/pages/websites/detail/reports/DailyVisitorsByDevices.tsx +2 -2
  35. package/src/common/pages/websites/detail/reports/DailyVisitorsBySources.tsx +2 -2
@@ -43469,7 +43469,7 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl"], func
43469
43469
  yield this.init();
43470
43470
  })));
43471
43471
  const canvas = document.createElement("canvas");
43472
- this.chartCavnas = canvas;
43472
+ this.chartCanvas = canvas;
43473
43473
  this.element.appendChild(canvas);
43474
43474
  }
43475
43475
  renderChart({
@@ -43479,14 +43479,14 @@ System.register(["tslib", "@web-atoms/core/dist/web/controls/AtomControl"], func
43479
43479
  }) {
43480
43480
  var _a;
43481
43481
  (_a = this.chart) === null || _a === void 0 ? void 0 : _a.destroy();
43482
- this.chart = new Chart(this.chartCavnas, {
43482
+ this.chart = new Chart(this.chartCanvas, {
43483
43483
  type,
43484
43484
  data,
43485
43485
  options: {
43486
43486
  plugins: {
43487
43487
  title: {
43488
43488
  display: true,
43489
- title
43489
+ text: title
43490
43490
  }
43491
43491
  }
43492
43492
  }
@@ -44002,7 +44002,7 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
44002
44002
  end
44003
44003
  }, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && x.category === "").toArray();
44004
44004
  this.renderChart({
44005
- title: "Daily Visitors",
44005
+ title: "Daily",
44006
44006
  type: "line",
44007
44007
  data: {
44008
44008
  labels: daily.map(x => x.date.day),
@@ -44043,6 +44043,7 @@ System.register([], function (_export, _context) {
44043
44043
  this.build(items, builder);
44044
44044
  }
44045
44045
  build(items, builder) {
44046
+ var _b;
44046
44047
  const map = this[groupSymbol];
44047
44048
  const {
44048
44049
  labels,
@@ -44050,23 +44051,31 @@ System.register([], function (_export, _context) {
44050
44051
  } = this;
44051
44052
  for (const element of items) {
44052
44053
  const {
44053
- label,
44054
+ x,
44054
44055
  group,
44055
- value
44056
+ y
44056
44057
  } = builder(element);
44057
44058
  let segment = map.get(group);
44058
44059
  if (!segment) {
44059
- segment = {
44060
- label: group,
44061
- data: []
44062
- };
44060
+ segment = new Map();
44063
44061
  map.set(group, segment);
44064
- datasets.push(segment);
44065
44062
  }
44066
- if (!labels.includes(value)) {
44067
- labels.push(value);
44063
+ if (!labels.includes(x)) {
44064
+ labels.push(x);
44065
+ }
44066
+ segment.set(x, y);
44067
+ }
44068
+ labels.sort();
44069
+ for (const [group, segment] of map) {
44070
+ const data = [];
44071
+ const dataset = {
44072
+ label: group,
44073
+ data
44074
+ };
44075
+ datasets.push(dataset);
44076
+ for (const label of labels) {
44077
+ data.push((_b = segment.get(label)) !== null && _b !== void 0 ? _b : 0);
44068
44078
  }
44069
- segment.data.push(value);
44070
44079
  }
44071
44080
  }
44072
44081
  };
@@ -44121,12 +44130,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
44121
44130
  end
44122
44131
  }, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/country/%")).toArray();
44123
44132
  const data = new ChartDataBuilder(daily, x => ({
44124
- label: "Visitors",
44133
+ x: x.date.day,
44125
44134
  group: x.category.split("/").pop(),
44126
- value: x.visitors
44135
+ y: x.visitors
44127
44136
  }));
44128
44137
  this.renderChart({
44129
- title: "Daily Visitors",
44138
+ title: "Countries",
44130
44139
  type: "line",
44131
44140
  data
44132
44141
  });
@@ -44184,12 +44193,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
44184
44193
  end
44185
44194
  }, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/devices/%") && Sql.text.indexOf(Sql.text.right(x.category, Sql.text.length(x.category) - 9), "/") === -1).toArray();
44186
44195
  const data = new ChartDataBuilder(daily, x => ({
44187
- label: "Visitors",
44196
+ x: x.date.day,
44188
44197
  group: x.category.split("/").pop(),
44189
- value: x.visitors
44198
+ y: x.visitors
44190
44199
  }));
44191
44200
  this.renderChart({
44192
- title: "Daily Visitors",
44201
+ title: "Devices",
44193
44202
  type: "line",
44194
44203
  data
44195
44204
  });
@@ -44261,12 +44270,12 @@ System.register(["tslib", "@web-atoms/core/dist/core/InjectProperty", "../../../
44261
44270
  end
44262
44271
  }, p => x => x.siteID === p.siteID && x.date >= p.start && x.date <= p.end && x.duration === "daily" && Sql.text.like(x.category, "/source/%")).toArray();
44263
44272
  const data = new ChartDataBuilder(daily, x => ({
44264
- label: "Visitors",
44273
+ x: x.date.day,
44265
44274
  group: getHost(x.category),
44266
- value: x.visitors
44275
+ y: x.visitors
44267
44276
  }));
44268
44277
  this.renderChart({
44269
- title: "Daily Visitors",
44278
+ title: "Traffic Sources",
44270
44279
  type: "line",
44271
44280
  data
44272
44281
  });