awing-library 2.1.2-stable.24 → 2.1.2-stable.26

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.
@@ -46,6 +46,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.decodePassword = exports.encodePassword = exports.convertToExportData = exports.convertEventData = void 0;
47
47
  var Helpers_1 = require("../../../../../Utils/Helpers");
48
48
  var lodash_1 = __importStar(require("lodash"));
49
+ var moment_1 = require("moment");
49
50
  var Utils_1 = require("../Utils");
50
51
  var convertEventData = function (data) { return data.map(function (el) {
51
52
  return el.analyticEventSummaries.map(function (x, index, events) { return ({
@@ -75,7 +76,12 @@ function convertToExportData(data, places) {
75
76
  var rowData = [
76
77
  place ? place.name : analytic === null || analytic === void 0 ? void 0 : analytic.placeId,
77
78
  analytic === null || analytic === void 0 ? void 0 : analytic.macAddress,
78
- (0, Helpers_1.dateTimeToString)((0, Helpers_1.convertTimestampToDateTime)(analytic.createdDate), 'DD/MM/YYYY, HH'),
79
+ (0, moment_1.unix)(Number(analytic.createdDate)).format('DD/MM/YYYY, HH:mm:ss')
80
+ // dateTimeToString(
81
+ // moment.unix(Number(analytic.createdDate)).startOf("D").toDate(),
82
+ // // convertTimestampToDateTime(analytic.createdDate!),
83
+ // 'DD/MM/YYYY, HH'
84
+ // ),
79
85
  ];
80
86
  rowData.push(el.viewNumber.toString(), el.eventLabel);
81
87
  columns.forEach(function (c, idx) {
@@ -45,10 +45,7 @@ function TablePaginationActions(props) {
45
45
  exports.TablePaginationActions = TablePaginationActions;
46
46
  var Pagination = function (props) {
47
47
  var t = (0, react_i18next_1.useTranslation)(undefined, { i18n: i18n_1.default }).t;
48
- return ((0, jsx_runtime_1.jsx)("table", { style: { float: "right" }, children: (0, jsx_runtime_1.jsx)("tbody", { children: (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(TablePagination_1.default, __assign({ style: { border: 0 }, colSpan: 3, labelDisplayedRows: function (_a) {
49
- var from = _a.from, to = _a.to, count = _a.count;
50
- return "".concat(from, "-").concat(to, " ").concat(i18n_1.default.t('Paging.DisplayedRow'), " ").concat(count);
51
- }, labelRowsPerPage: i18n_1.default.t('Paging.RowPerPage'), slotProps: {
48
+ return ((0, jsx_runtime_1.jsx)("table", { style: { float: "right" }, children: (0, jsx_runtime_1.jsx)("tbody", { children: (0, jsx_runtime_1.jsx)("tr", { children: (0, jsx_runtime_1.jsx)(TablePagination_1.default, __assign({ style: { border: 0 }, colSpan: 3, labelRowsPerPage: i18n_1.default.t('Paging.RowPerPage'), slotProps: {
52
49
  select: {
53
50
  inputProps: { 'aria-label': i18n_1.default.t('Paging.RowPerPage') },
54
51
  native: true,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Common": {
3
3
  "Engagement": "Engagement",
4
- "Spot": "Tempat",
4
+ "Spot": "Spot",
5
5
  "DateRangePickerLabel": "Tanggal",
6
6
  "NotNegative": "Nilai tidak boleh negatif!",
7
7
  "Existed": "{0} sudah ada!",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Common": {
3
3
  "Engagement": "Engagement",
4
- "Spot": "स्थान",
4
+ "Spot": "Spot",
5
5
  "DateRangePickerLabel": "तारीख",
6
6
  "NotNegative": "ऋणात्मक मान नहीं!",
7
7
  "Existed": "{0} पहले से मौजूद है!",
@@ -254,7 +254,7 @@
254
254
  "Engagement": "Engagement",
255
255
  "EngagementPerSpot": "Engagement / Spot",
256
256
  "Egr": "सगाई दर",
257
- "Spot": "स्थान",
257
+ "Spot": "Spot",
258
258
  "ClickToCopy": "कॉपी करने के लिए क्लिक करें",
259
259
  "Copied": "कॉपी किया गया",
260
260
  "Create": "अभियान बनाएं",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Common": {
3
3
  "Engagement": "Engagement",
4
- "Spot": "スポット",
4
+ "Spot": "Spot",
5
5
  "DateRangePickerLabel": "日付",
6
6
  "NotNegative": "負の値は許可されていません!",
7
7
  "Existed": "{0} は既に存在しています!",
@@ -254,7 +254,7 @@
254
254
  "Engagement": "Engagement",
255
255
  "EngagementPerSpot": "Engagement / Spot",
256
256
  "Egr": "エンゲージメント率",
257
- "Spot": "スポット",
257
+ "Spot": "Spot",
258
258
  "ClickToCopy": "クリックでコピー",
259
259
  "Copied": "コピーしました",
260
260
  "Create": "キャンペーン作成",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Common": {
3
3
  "Engagement": "Engagement",
4
- "Spot": "ຈຸດ",
4
+ "Spot": "Spot",
5
5
  "DateRangePickerLabel": "ວັນທີ",
6
6
  "NotNegative": "ຄ່າລົບບໍ່ໄດ້ຮັບອະນຸຍາດ!",
7
7
  "Existed": "{0} ມີຢູ່ແລ້ວ!",
@@ -254,7 +254,7 @@
254
254
  "Engagement": "Engagement",
255
255
  "EngagementPerSpot": "Engagement / Spot",
256
256
  "Egr": "ອັດຕາການມີສ່ວນຮ່ວມ",
257
- "Spot": "ຈຸດ",
257
+ "Spot": "Spot",
258
258
  "ClickToCopy": "ຄລິກເພື່ອສຳເນົາ",
259
259
  "Copied": "ສຳເນົາສຳເລັດແລ້ວ",
260
260
  "Create": "ສ້າງແຄມເປນ",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Common": {
3
3
  "Engagement": "Engagement",
4
- "Spot": "Lugar",
4
+ "Spot": "Spot",
5
5
  "DateRangePickerLabel": "Petsa",
6
6
  "NotNegative": "Hindi maaaring negatibo ang halaga!",
7
7
  "Existed": "{0} ay umiiral na!",
@@ -254,7 +254,7 @@
254
254
  "Engagement": "Engagement",
255
255
  "EngagementPerSpot": "Engagement / Spot",
256
256
  "Egr": "Antas ng Pakikilahok",
257
- "Spot": "Lugar",
257
+ "Spot": "Spot",
258
258
  "ClickToCopy": "I-click upang kopyahin",
259
259
  "Copied": "Nakopya",
260
260
  "Create": "Lumikha ng kampanya",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "Common": {
3
3
  "Engagement": "Engagement",
4
- "Spot": "จุด",
4
+ "Spot": "Spot",
5
5
  "DateRangePickerLabel": "วันที่",
6
6
  "NotNegative": "ต้องไม่เป็นค่าลบ!",
7
7
  "Existed": "{0} มีอยู่แล้ว!",
@@ -254,7 +254,7 @@
254
254
  "Engagement": "Engagement",
255
255
  "EngagementPerSpot": "Engagement / Spot",
256
256
  "Egr": "อัตราการมีส่วนร่วม",
257
- "Spot": "จุด",
257
+ "Spot": "Spot",
258
258
  "ClickToCopy": "คลิกเพื่อคัดลอก",
259
259
  "Copied": "คัดลอกแล้ว",
260
260
  "Create": "สร้างแคมเปญ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-stable.24",
3
+ "version": "2.1.2-stable.26",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",