@licklist/design 0.71.5-dev.8 → 0.71.5-dev.9

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAKjG,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE;QACT,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,eAAO,MAAM,gCAAgC,SACrC,MAAM,kBACI,cAAc,WACrB,MAAM,sBA8IhB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/events/event-statistic-modal/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kEAAkE,CAAA;AAKjG,eAAO,MAAM,gBAAgB;;;;CAI5B,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE;QACT,aAAa,EAAE,MAAM,CAAA;QACrB,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF,CAAA;AAED,eAAO,MAAM,gCAAgC,SACrC,MAAM,kBACI,cAAc,WACrB,MAAM,sBA+IhB,CAAA"}
@@ -49,8 +49,9 @@ var convertEventStatisticToTableData = function(date, eventStatistic, eventId) {
49
49
  return eventStatistic === null || eventStatistic === void 0 ? void 0 : eventStatistic.productCategorySummary[day];
50
50
  }).flat().sort(function(prev, next) {
51
51
  return prev.categoryName === next.categoryName ? 0 : prev.categoryName > next.categoryName ? 1 : -1;
52
- }).filter(function(item) {
53
- return item.eventId === Number(eventId);
52
+ })// use statistic only for event or for override this event
53
+ .filter(function(item) {
54
+ return item.eventId === Number(eventId) || (item === null || item === void 0 ? void 0 : item.originalEventId) === Number(eventId);
54
55
  }).forEach(function(param, _, selfCategory) {
55
56
  var totalPerCategory = param.totalPerCategory, _param_productsSummary = param.productsSummary, productsSummary = _param_productsSummary === void 0 ? [] : _param_productsSummary, categoryName = param.categoryName, eventId = param.eventId;
56
57
  var quantity = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.71.5-dev.8",
3
+ "version": "0.71.5-dev.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -42,7 +42,7 @@
42
42
  ]
43
43
  },
44
44
  "peerDependencies": {
45
- "@licklist/core": "0.31.2-dev.2",
45
+ "@licklist/core": "0.31.2-dev.3",
46
46
  "@licklist/eslint-config": "0.5.6",
47
47
  "@licklist/plugins": "0.35.0-dev.0",
48
48
  "lodash": "4.17.21",
@@ -61,7 +61,7 @@
61
61
  "@dnd-kit/utilities": "2.0.0",
62
62
  "@fortawesome/fontawesome-svg-core": "1.2.34",
63
63
  "@fortawesome/free-solid-svg-icons": "5.15.2",
64
- "@licklist/core": "0.31.2-dev.2",
64
+ "@licklist/core": "0.31.2-dev.3",
65
65
  "@licklist/eslint-config": "0.5.6",
66
66
  "@licklist/plugins": "0.35.0-dev.0",
67
67
  "@mantine/core": "6.0.22",
@@ -58,7 +58,8 @@ export const convertEventStatisticToTableData = (
58
58
  ? 1
59
59
  : -1,
60
60
  )
61
- .filter((item) => item.eventId === Number(eventId))
61
+ // use statistic only for event or for override this event
62
+ .filter((item) => item.eventId === Number(eventId) || item?.originalEventId === Number(eventId))
62
63
  .forEach(
63
64
  (
64
65
  { totalPerCategory, productsSummary = [], categoryName, eventId },
package/yarn.lock CHANGED
@@ -2494,6 +2494,34 @@ __metadata:
2494
2494
  languageName: node
2495
2495
  linkType: hard
2496
2496
 
2497
+ "@licklist/core@npm:0.31.2-dev.3":
2498
+ version: 0.31.2-dev.3
2499
+ resolution: "@licklist/core@npm:0.31.2-dev.3"
2500
+ dependencies:
2501
+ "@sentry/browser": "npm:6.2.0"
2502
+ axios: "npm:0.26.0"
2503
+ i18next: "npm:19.4.5"
2504
+ luxon: "npm:3.5.0"
2505
+ react: "npm:17.0.2"
2506
+ react-dom: "npm:17.0.2"
2507
+ react-i18next: "npm:11.8.8"
2508
+ react-intl: "npm:6.6.8"
2509
+ uuid: "npm:9.0.0"
2510
+ wait-for-expect: "npm:3.0.2"
2511
+ zustand: "npm:3.7.2"
2512
+ peerDependencies:
2513
+ "@licklist/eslint-config": 0.5.6
2514
+ axios: 0.26.0
2515
+ luxon: 3.5.0
2516
+ react: 17.0.2
2517
+ react-dom: 17.0.2
2518
+ react-i18next: 11.8.8
2519
+ react-intl: 6.6.8
2520
+ zustand: 3.7.2
2521
+ checksum: 10c0/3f13396e233ccacbf6eca73d04cdaa23f78075ae8a92d17438a0b88d8dead9e4060d400e20d57fe83a32b97775f2eaaba3c0c6676b2b82dbd9df355f916d52a1
2522
+ languageName: node
2523
+ linkType: hard
2524
+
2497
2525
  "@licklist/design@workspace:.":
2498
2526
  version: 0.0.0-use.local
2499
2527
  resolution: "@licklist/design@workspace:."
@@ -2505,7 +2533,7 @@ __metadata:
2505
2533
  "@dnd-kit/utilities": "npm:2.0.0"
2506
2534
  "@fortawesome/fontawesome-svg-core": "npm:1.2.34"
2507
2535
  "@fortawesome/free-solid-svg-icons": "npm:5.15.2"
2508
- "@licklist/core": "npm:0.31.2-dev.2"
2536
+ "@licklist/core": "npm:0.31.2-dev.3"
2509
2537
  "@licklist/eslint-config": "npm:0.5.6"
2510
2538
  "@licklist/plugins": "npm:0.35.0-dev.0"
2511
2539
  "@mantine/core": "npm:6.0.22"
@@ -2636,7 +2664,7 @@ __metadata:
2636
2664
  vite-plugin-svgr: "npm:4.2.0"
2637
2665
  vite-tsconfig-paths: "npm:5.0.1"
2638
2666
  peerDependencies:
2639
- "@licklist/core": 0.31.2-dev.2
2667
+ "@licklist/core": 0.31.2-dev.3
2640
2668
  "@licklist/eslint-config": 0.5.6
2641
2669
  "@licklist/plugins": 0.35.0-dev.0
2642
2670
  lodash: 4.17.21