marketplacepos 2.2.9 → 2.3.2

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 (75) hide show
  1. package/Marketplace/1.b49e619a73fb2a86.js +1 -0
  2. package/Marketplace/115.44f051b23469a3a3.js +1 -0
  3. package/Marketplace/22.3829c474fb5bad35.js +1 -0
  4. package/Marketplace/285.17f6cbef78acd327.js +1 -0
  5. package/Marketplace/3rdpartylicenses.txt +517 -0
  6. package/Marketplace/46.3815daacf4a89802.js +1 -0
  7. package/Marketplace/466.fd29b7965d5e28a4.js +1 -0
  8. package/Marketplace/472.8a5a65585a8eae0d.js +1 -0
  9. package/Marketplace/512.eddb4675a9016de6.js +1 -0
  10. package/Marketplace/518.c5dbfdd31a6ddcfc.js +1 -0
  11. package/Marketplace/585.c93552ac67f4550c.js +1 -0
  12. package/Marketplace/6.fc79ecc0c0a33462.js +1 -0
  13. package/Marketplace/61.6bf2570c9c03e65d.js +1 -0
  14. package/Marketplace/616.507588c0a5d7b9e1.js +1 -0
  15. package/Marketplace/717.62ca448a74adc1c2.js +1 -0
  16. package/Marketplace/739.82b92600f9519019.js +1 -0
  17. package/Marketplace/763.698000c82516136b.js +1 -0
  18. package/Marketplace/767.0ce42314dea8dfea.js +1 -0
  19. package/Marketplace/796.3be8ad424aad7864.js +1 -0
  20. package/Marketplace/common.34d3e7dcd2b85c7a.js +1 -0
  21. package/Marketplace/index.html +22 -23
  22. package/Marketplace/main.efbf88d695aa7333.js +1 -0
  23. package/Marketplace/polyfills.8d85b0533e3f867a.js +1 -0
  24. package/Marketplace/runtime.483da6b9bc6293f4.js +1 -0
  25. package/Marketplace/scripts.512baec01df5d79f.js +1 -0
  26. package/Marketplace/styles.44d414097ff92971.css +39 -0
  27. package/package.json +1 -1
  28. package/Marketplace/common.js +0 -46
  29. package/Marketplace/common.js.map +0 -1
  30. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js +0 -9551
  31. package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +0 -1
  32. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +0 -797
  33. package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +0 -1
  34. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +0 -4632
  35. package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +0 -1
  36. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +0 -6836
  37. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +0 -1
  38. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js +0 -722
  39. package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_slid-566c11.js.map +0 -1
  40. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +0 -19951
  41. package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +0 -1
  42. package/Marketplace/main.js +0 -617
  43. package/Marketplace/main.js.map +0 -1
  44. package/Marketplace/polyfills.js +0 -3398
  45. package/Marketplace/polyfills.js.map +0 -1
  46. package/Marketplace/runtime.js +0 -346
  47. package/Marketplace/runtime.js.map +0 -1
  48. package/Marketplace/scripts.js +0 -2634
  49. package/Marketplace/scripts.js.map +0 -1
  50. package/Marketplace/src_app_login_login_module_ts.js +0 -538
  51. package/Marketplace/src_app_login_login_module_ts.js.map +0 -1
  52. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +0 -1060
  53. package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +0 -1
  54. package/Marketplace/src_app_menu_channels_channels_module_ts.js +0 -9710
  55. package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +0 -1
  56. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +0 -1069
  57. package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +0 -1
  58. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +0 -232
  59. package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +0 -1
  60. package/Marketplace/src_app_menu_menu_module_ts.js +0 -38973
  61. package/Marketplace/src_app_menu_menu_module_ts.js.map +0 -1
  62. package/Marketplace/src_app_menu_notification_notification_module_ts.js +0 -192
  63. package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +0 -1
  64. package/Marketplace/src_app_menu_object-log_logs_module_ts.js +0 -1997
  65. package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +0 -1
  66. package/Marketplace/src_app_menu_orders_orders_module_ts.js +0 -2449
  67. package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +0 -1
  68. package/Marketplace/src_app_menu_price_price_module_ts.js +0 -1713
  69. package/Marketplace/src_app_menu_price_price_module_ts.js.map +0 -1
  70. package/Marketplace/src_app_menu_products_product_module_ts.js +0 -2196
  71. package/Marketplace/src_app_menu_products_product_module_ts.js.map +0 -1
  72. package/Marketplace/styles.css +0 -30612
  73. package/Marketplace/styles.css.map +0 -1
  74. package/Marketplace/vendor.js +0 -71753
  75. package/Marketplace/vendor.js.map +0 -1
@@ -1,1997 +0,0 @@
1
- "use strict";
2
- (self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_object-log_logs_module_ts"],{
3
-
4
- /***/ 968:
5
- /*!******************************************************************!*\
6
- !*** ./src/app/menu/object-log/error-log/error-log.component.ts ***!
7
- \******************************************************************/
8
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
9
-
10
- __webpack_require__.r(__webpack_exports__);
11
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
12
- /* harmony export */ "ErrorLogComponent": () => (/* binding */ ErrorLogComponent)
13
- /* harmony export */ });
14
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
15
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
16
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 124);
17
- /* harmony import */ var src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/RawLog.service */ 911);
18
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666);
19
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508);
20
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
21
- /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/paginator */ 6060);
22
- /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
23
- /* harmony import */ var _sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharing-module/datepicker/datepicker.component */ 5585);
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
- const _c0 = function () { return ["/menu/log/order/detail"]; };
35
- const _c1 = function (a0) { return { ID: a0 }; };
36
- function ErrorLogComponent_tr_43_Template(rf, ctx) { if (rf & 1) {
37
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr", 16)(1, "td")(2, "a", 17);
38
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
39
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](4, "date");
40
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
41
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "td");
42
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
43
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
44
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "td");
45
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8);
46
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
47
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "td");
48
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10);
49
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
50
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "td");
51
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](12);
52
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
53
- } if (rf & 2) {
54
- const item_r1 = ctx.$implicit;
55
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
56
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction0"](10, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](11, _c1, item_r1.ID));
57
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
58
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind2"](4, 7, item_r1.Created, "dd MMM yyyy HH:mm"), " ");
59
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
60
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.MarketTypeString);
61
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
62
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.POSActionTypeString);
63
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
64
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.Number);
65
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
66
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.ResponseCode);
67
- } }
68
- class ErrorLogComponent {
69
- constructor(http, url, _RawLogService) {
70
- this.http = http;
71
- this.url = url;
72
- this._RawLogService = _RawLogService;
73
- this.Result = Array();
74
- this.filter = {
75
- RowCount: 20,
76
- Number: '',
77
- PageNumber: 1,
78
- ActionType: '',
79
- ChannelID: '',
80
- StatusCodeList: [],
81
- From: '',
82
- To: ''
83
- };
84
- this.Load();
85
- }
86
- ngOnInit() {
87
- this.maxDate = new Date();
88
- }
89
- Load() {
90
- this.url.queryParamMap.subscribe(query => {
91
- let params = query['params'];
92
- this.filter.From = params['From'];
93
- this.filter.To = params['To'];
94
- this.filter.ChannelID = params['ChannelID'];
95
- this.filter.ActionType = params['ActionType'];
96
- this.http.post('/api/OrdersLoader/GetErrorLog', this.filter).subscribe(result => {
97
- this.filter = result.Filter;
98
- this.Channel = result.Options.Channel;
99
- this.ActionTypeList = result.Options.ActionTypeList;
100
- this.Get();
101
- });
102
- });
103
- }
104
- Get($event) {
105
- this.filter.Number = $event;
106
- this.filter.StatusCodeList = [400, 401, 403, 429, 500, 503];
107
- this.http.post('/api/Orders/GetErrorLog', this.filter).subscribe(result => {
108
- this._RawLogService.Data = result.hits;
109
- this.Result = Array();
110
- for (let hits of result.hits) {
111
- let source = {
112
- ID: hits._id,
113
- Created: hits._source["@timestamp_received"],
114
- MarketTypeString: hits._source.log.type,
115
- POSActionTypeString: hits._source.message,
116
- Number: hits._source.log.number,
117
- ResponseCode: hits._source.log.responseCode
118
- };
119
- this.Result.push(source);
120
- }
121
- this.paginationTotal = result.total.value;
122
- this.paginationPageSize = this.filter.RowCount > this.paginationTotal ? this.paginationTotal : this.filter.RowCount;
123
- });
124
- }
125
- //Change page
126
- changePage(pageEvent) {
127
- this.filter.PageNumber = pageEvent.pageIndex + 1;
128
- this.Get();
129
- }
130
- //Function: getDayDiff() will get the difference between two dates
131
- //Source: https://www.geeksforgeeks.org/how-to-calculate-the-number-of-days-between-two-dates-in-javascript/
132
- getDayDiff(dateStart, dateEnd) {
133
- var timeDiff = dateEnd.getTime() - dateStart.getTime();
134
- var dayDiff = timeDiff / (1000 * 60 * 60 * 24);
135
- return dayDiff;
136
- }
137
- }
138
- ErrorLogComponent.ɵfac = function ErrorLogComponent_Factory(t) { return new (t || ErrorLogComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__.RawLogService)); };
139
- ErrorLogComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: ErrorLogComponent, selectors: [["app-error-log"]], decls: 45, vars: 16, consts: [["searchBoxPlaceHolder", "Invoice Number..", 3, "Title", "text", "textChange", "onSubmit"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange"], ["bindLabel", "Value", "name", "ActionType", "bindValue", "Key", "placeholder", "Action Type", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange"], ["name", "From", 3, "date", "dateChange"], ["name", "To", 3, "date", "dateChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "RowCount", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], ["class", "over-due", 4, "ngFor", "ngForOf"], [3, "length", "pageSize", "pageIndex", "page"], [1, "over-due"], [3, "routerLink", "queryParams"]], template: function ErrorLogComponent_Template(rf, ctx) { if (rf & 1) {
140
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mainpanel", 0);
141
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("textChange", function ErrorLogComponent_Template_mainpanel_textChange_0_listener($event) { return ctx.Number = $event; })("onSubmit", function ErrorLogComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
142
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
143
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Channel");
144
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
145
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "ng-select", 2);
146
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ErrorLogComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.filter.ChannelID = $event; });
147
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
148
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div")(8, "h6");
149
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Action");
150
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
151
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "ng-select", 3);
152
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ErrorLogComponent_Template_ng_select_ngModelChange_10_listener($event) { return ctx.filter.ActionType = $event; });
153
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
154
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div")(12, "h6");
155
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "From/To");
156
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
157
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "datepicker", 4);
158
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("dateChange", function ErrorLogComponent_Template_datepicker_dateChange_14_listener($event) { return ctx.filter.From = $event; });
159
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
160
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "datepicker", 5);
161
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("dateChange", function ErrorLogComponent_Template_datepicker_dateChange_15_listener($event) { return ctx.filter.To = $event; });
162
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
163
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "div")(17, "h6");
164
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18, "Page Number");
165
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
166
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "input", 6);
167
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ErrorLogComponent_Template_input_ngModelChange_19_listener($event) { return ctx.filter.PageNumber = $event; });
168
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
169
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "div")(21, "h6");
170
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "Page Size");
171
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
172
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "input", 7);
173
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function ErrorLogComponent_Template_input_ngModelChange_23_listener($event) { return ctx.filter.RowCount = $event; });
174
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
175
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "content")(25, "div", 8)(26, "div", 9)(27, "div", 10)(28, "div", 11)(29, "table", 12)(30, "thead")(31, "tr", 13)(32, "th");
176
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](33, "Date");
177
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
178
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](34, "th");
179
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](35, "Channel");
180
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
181
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](36, "th");
182
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](37, "Actions");
183
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
184
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](38, "th");
185
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](39, "Number");
186
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
187
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](40, "th");
188
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](41, "Code");
189
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
190
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](42, "tbody");
191
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](43, ErrorLogComponent_tr_43_Template, 13, 13, "tr", 14);
192
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
193
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](44, "mat-paginator", 15);
194
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("page", function ErrorLogComponent_Template_mat_paginator_page_44_listener($event) { return ctx.changePage($event); });
195
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()()();
196
- } if (rf & 2) {
197
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("Title", "Error Log")("text", ctx.Number);
198
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
199
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("clearable", true)("items", ctx.Channel)("ngModel", ctx.filter.ChannelID);
200
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
201
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("clearable", true)("items", ctx.ActionTypeList)("ngModel", ctx.filter.ActionType);
202
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
203
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("date", ctx.filter.From);
204
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
205
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("date", ctx.filter.To);
206
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
207
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
208
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
209
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.filter.RowCount);
210
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](20);
211
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.Result);
212
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
213
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("length", ctx.paginationTotal)("pageSize", ctx.paginationPageSize)("pageIndex", (ctx.filter == null ? null : ctx.filter.PageNumber) == 0 ? 0 : (ctx.filter == null ? null : ctx.filter.PageNumber) - 1);
214
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgModel, _angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLinkWithHref, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__.MainPanelComponent, _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__.MatPaginator, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__.NgSelectComponent, _sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_3__.DatepickerComponent, _angular_common__WEBPACK_IMPORTED_MODULE_6__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJlcnJvci1sb2cuY29tcG9uZW50LnNjc3MifQ== */"] });
215
-
216
-
217
- /***/ }),
218
-
219
- /***/ 2374:
220
- /*!**************************************************************************!*\
221
- !*** ./src/app/menu/object-log/exception-log/exception-log.component.ts ***!
222
- \**************************************************************************/
223
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
224
-
225
- __webpack_require__.r(__webpack_exports__);
226
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
227
- /* harmony export */ "ExceptionLogComponent": () => (/* binding */ ExceptionLogComponent)
228
- /* harmony export */ });
229
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
230
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
231
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666);
232
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
233
- /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/material/paginator */ 6060);
234
-
235
-
236
-
237
-
238
-
239
- function ExceptionLogComponent_tr_19_img_2_Template(rf, ctx) { if (rf & 1) {
240
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 12);
241
- } }
242
- function ExceptionLogComponent_tr_19_img_3_Template(rf, ctx) { if (rf & 1) {
243
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](0, "img", 13);
244
- } }
245
- function ExceptionLogComponent_tr_19_Template(rf, ctx) { if (rf & 1) {
246
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "tr")(1, "td");
247
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](2, ExceptionLogComponent_tr_19_img_2_Template, 1, 0, "img", 9);
248
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](3, ExceptionLogComponent_tr_19_img_3_Template, 1, 0, "img", 10);
249
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
250
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "td");
251
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](5);
252
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
253
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](6, "td");
254
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](7);
255
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
256
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](8, "td")(9, "div", 11);
257
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](10);
258
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
259
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](11, "div");
260
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](12);
261
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
262
- } if (rf & 2) {
263
- const item_r1 = ctx.$implicit;
264
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
265
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", item_r1.TypeID == 1);
266
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
267
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", item_r1.TypeID == 0);
268
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
269
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r1.Date);
270
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
271
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r1.Number);
272
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
273
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r1.message);
274
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](2);
275
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](item_r1.stackTrace);
276
- } }
277
- class ExceptionLogComponent {
278
- constructor(http) {
279
- this.http = http;
280
- this.Result = Array();
281
- this.filter = {
282
- RowCount: 50,
283
- PageNumber: 1
284
- };
285
- this.Load();
286
- }
287
- ngOnInit() {
288
- }
289
- Load() {
290
- this.http.post('/api/Orders/GetExceptionList', this.filter).subscribe(result => {
291
- this.Result = Array();
292
- for (let hits of result.hits) {
293
- let source = {
294
- TypeID: hits._source.error.type == 'Shopee' ? 0 : 1,
295
- Number: hits._source.error.number,
296
- Date: hits._source["@timestamp_received"],
297
- stackTrace: hits._source.error.stackTrace,
298
- message: hits._source.message
299
- };
300
- this.Result.push(source);
301
- }
302
- this.paginationTotal = result.total.value;
303
- this.paginationPageSize = this.filter.RowCount > this.paginationTotal ? this.paginationTotal : this.filter.RowCount;
304
- });
305
- }
306
- //Change page
307
- changePage(pageEvent) {
308
- this.filter.PageNumber = pageEvent.pageIndex + 1;
309
- this.Load();
310
- }
311
- }
312
- ExceptionLogComponent.ɵfac = function ExceptionLogComponent_Factory(t) { return new (t || ExceptionLogComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
313
- ExceptionLogComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: ExceptionLogComponent, selectors: [["app-exception-log"]], decls: 21, vars: 5, consts: [["searchBoxPlaceHolder", "Enter Number...", "hideSearchBox", "true", "hideSearchDropdown", "true", 3, "Title"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "length", "pageSize", "pageIndex", "page"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png", 4, "ngIf"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png", 4, "ngIf"], [1, "fw-bold"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png"]], template: function ExceptionLogComponent_Template(rf, ctx) { if (rf & 1) {
314
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mainpanel", 0);
315
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelement"](1, "filters");
316
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](2, "content")(3, "div", 1)(4, "div", 2)(5, "div", 3)(6, "div", 4)(7, "table", 5)(8, "thead")(9, "tr", 6)(10, "th");
317
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "Channel");
318
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
319
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "th");
320
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](13, "Date");
321
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
322
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](14, "th");
323
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](15, "Number");
324
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
325
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](16, "th");
326
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Exception");
327
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
328
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "tbody");
329
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](19, ExceptionLogComponent_tr_19_Template, 13, 6, "tr", 7);
330
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
331
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](20, "mat-paginator", 8);
332
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("page", function ExceptionLogComponent_Template_mat_paginator_page_20_listener($event) { return ctx.changePage($event); });
333
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()()()();
334
- } if (rf & 2) {
335
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("Title", "Exception Log");
336
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](19);
337
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngForOf", ctx.Result);
338
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](1);
339
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("length", ctx.paginationTotal)("pageSize", ctx.paginationPageSize)("pageIndex", (ctx.filter == null ? null : ctx.filter.PageNumber) == 0 ? 0 : (ctx.filter == null ? null : ctx.filter.PageNumber) - 1);
340
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_3__.NgIf, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_material_paginator__WEBPACK_IMPORTED_MODULE_4__.MatPaginator], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJleGNlcHRpb24tbG9nLmNvbXBvbmVudC5zY3NzIn0= */"] });
341
-
342
-
343
- /***/ }),
344
-
345
- /***/ 3669:
346
- /*!**********************************************************************************************!*\
347
- !*** ./src/app/menu/object-log/inventory-log/inventory-detail/inventory-detail.component.ts ***!
348
- \**********************************************************************************************/
349
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
350
-
351
- __webpack_require__.r(__webpack_exports__);
352
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
353
- /* harmony export */ "InventoryDetailComponent": () => (/* binding */ InventoryDetailComponent)
354
- /* harmony export */ });
355
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
356
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124);
357
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../services/http.service */ 6858);
358
- /* harmony import */ var src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/RawLog.service */ 911);
359
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
360
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../main-panel/main-panel.component */ 7481);
361
-
362
-
363
-
364
-
365
-
366
-
367
- function InventoryDetailComponent_div_7_Template(rf, ctx) { if (rf & 1) {
368
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 10)(1, "div", 7)(2, "div", 8)(3, "h5");
369
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "General");
370
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
371
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 9)(6, "div", 3)(7, "div", 6)(8, "div", 12)(9, "label");
372
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "Date");
373
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
374
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "span");
375
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13);
376
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](14, "date");
377
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
378
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "div", 6)(16, "div", 12)(17, "label");
379
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18, "SKU");
380
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
381
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](19, "div")(20, "span");
382
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](21);
383
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
384
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](22, "div", 6)(23, "div", 12)(24, "label");
385
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](25, "Channel");
386
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
387
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](26, "div")(27, "span");
388
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](28);
389
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
390
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](29, "div", 6)(30, "div", 12)(31, "label");
391
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](32, "Response Code");
392
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
393
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](33, "div")(34, "span");
394
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](35);
395
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()()();
396
- } if (rf & 2) {
397
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
398
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](13);
399
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](14, 4, ctx_r0.data.Created, "dd MMM yyyy"));
400
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
401
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data.Sku);
402
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
403
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data.ChannelName);
404
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
405
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data.ResponseCode);
406
- } }
407
- class InventoryDetailComponent {
408
- constructor(route, http, _RawLogService) {
409
- this.route = route;
410
- this.http = http;
411
- this._RawLogService = _RawLogService;
412
- this.data = {
413
- Created: '',
414
- Sku: '',
415
- ChannelName: '',
416
- ResponseCode: ''
417
- };
418
- this.route.queryParams.subscribe(params => {
419
- this.ID = params['ID'];
420
- this.Load();
421
- });
422
- }
423
- ngOnInit() {
424
- }
425
- Load() {
426
- var req = {
427
- ID: this.ID
428
- };
429
- this.http.post('/api/Inventory/GetInventoryLogDeatil', req).subscribe(result => {
430
- this.data.Created = result.hits[0]._source["@timestamp_received"];
431
- this.data.Sku = result.hits[0]._source.log.sku;
432
- this.data.ChannelName = result.hits[0]._source.log.channelName;
433
- this.data.ResponseCode = result.hits[0]._source.log.responseCode;
434
- this.request = JSON.parse(result.hits[0]._source.log.request);
435
- this.response = result.hits[0]._source.log.response;
436
- });
437
- }
438
- }
439
- InventoryDetailComponent.ɵfac = function InventoryDetailComponent_Factory(t) { return new (t || InventoryDetailComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__.RawLogService)); };
440
- InventoryDetailComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: InventoryDetailComponent, selectors: [["app-inventory-detail"]], decls: 30, vars: 9, consts: [[3, "Title", "pageData", "hideSearchBox", "hideSearchDropdown"], ["role", "button", "routerLink", "/menu/log/inventory", 1, "btn", "btn-secondary", "btn-fill", "btn-lg", "me-3"], [1, "container-fluid", "mt-3"], [1, "row"], ["class", "col-sm-12", 4, "ngIf"], [1, "row", "mt-2"], [1, "col-sm-6"], [1, "card"], [1, "card-header"], [1, "card-body"], [1, "col-sm-12"], [1, "form-group"], [1, "info-label-group"]], template: function InventoryDetailComponent_Template(rf, ctx) { if (rf & 1) {
441
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0)(1, "actions")(2, "a", 1);
442
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3, "Back");
443
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
444
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](4, "content")(5, "div", 2)(6, "div", 3);
445
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](7, InventoryDetailComponent_div_7_Template, 36, 7, "div", 4);
446
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
447
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "div", 5)(9, "div", 6)(10, "div", 7)(11, "div", 8)(12, "h5");
448
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Request");
449
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
450
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "div", 9)(15, "div", 10)(16, "div", 11)(17, "pre");
451
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18);
452
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](19, "json");
453
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()();
454
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](20, "div", 6)(21, "div", 7)(22, "div", 8)(23, "h5");
455
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](24, "Response");
456
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
457
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "div", 9)(26, "div", 10)(27, "div", 11)(28, "pre");
458
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](29);
459
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()()()()();
460
- } if (rf & 2) {
461
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "Inventory Detail")("pageData", "Inventory Detail ")("hideSearchBox", true)("hideSearchDropdown", true);
462
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
463
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.data);
464
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](11);
465
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind1"](19, 7, ctx.request));
466
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](11);
467
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx.response);
468
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterLinkWithHref, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__.MainPanelComponent, _angular_common__WEBPACK_IMPORTED_MODULE_5__.JsonPipe, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbnZlbnRvcnktZGV0YWlsLmNvbXBvbmVudC5zY3NzIn0= */"] });
469
-
470
-
471
- /***/ }),
472
-
473
- /***/ 5921:
474
- /*!**************************************************************************!*\
475
- !*** ./src/app/menu/object-log/inventory-log/inventory-log.component.ts ***!
476
- \**************************************************************************/
477
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
478
-
479
- __webpack_require__.r(__webpack_exports__);
480
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
481
- /* harmony export */ "InventoryLogComponent": () => (/* binding */ InventoryLogComponent)
482
- /* harmony export */ });
483
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
484
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
485
- /* harmony import */ var src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/RawLog.service */ 911);
486
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
487
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/forms */ 2508);
488
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/router */ 124);
489
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
490
- /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/paginator */ 6060);
491
- /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
492
- /* harmony import */ var _sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharing-module/datepicker/datepicker.component */ 5585);
493
-
494
-
495
-
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
- const _c0 = function () { return ["/menu/log/inventory/detail"]; };
504
- const _c1 = function (a0) { return { ID: a0 }; };
505
- function InventoryLogComponent_tr_39_Template(rf, ctx) { if (rf & 1) {
506
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr")(1, "td")(2, "a", 15);
507
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
508
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](4, "date");
509
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
510
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "td");
511
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
512
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
513
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "td");
514
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8);
515
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
516
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "td");
517
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10);
518
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
519
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "td");
520
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](12);
521
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
522
- } if (rf & 2) {
523
- const item_r1 = ctx.$implicit;
524
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
525
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction0"](10, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](11, _c1, item_r1.ID));
526
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
527
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind2"](4, 7, item_r1.Created, "dd MMM yyyy HH:mm"), " ");
528
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
529
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.channelName);
530
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
531
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.Sku);
532
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
533
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.Stock);
534
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
535
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.ResponseCode);
536
- } }
537
- class InventoryLogComponent {
538
- constructor(http, _RawLogService) {
539
- this.http = http;
540
- this._RawLogService = _RawLogService;
541
- this.Result = Array();
542
- this.filter = {
543
- PageNumber: 0,
544
- RowCount: 20,
545
- Sku: null,
546
- ChannelID: '',
547
- StatusCode: '',
548
- From: '',
549
- To: ''
550
- };
551
- this.Load();
552
- }
553
- ngOnInit() {
554
- }
555
- Load() {
556
- this.http.post('/api/OrdersLoader/Get', {}).subscribe(result => {
557
- this.filter = result.Filter;
558
- this.Channel = result.Options.Channel;
559
- this.ActionTypeList = result.Options.ActionTypeList;
560
- this.Get();
561
- });
562
- }
563
- Get($event) {
564
- if ($event != undefined) {
565
- this.filter.Sku = $event;
566
- }
567
- this.http.post('api/Inventory/GetLog', this.filter).subscribe(result => {
568
- this._RawLogService.Data = result.hits;
569
- this.Result = Array();
570
- for (let hits of result.hits) {
571
- let source = {
572
- ID: hits._source.log.id,
573
- Created: hits._source["@timestamp_received"],
574
- channelName: hits._source.log.channelName,
575
- Sku: hits._source.log.sku,
576
- Stock: hits._source.log.stock,
577
- ResponseCode: hits._source.log.responseCode
578
- };
579
- this.Result.push(source);
580
- }
581
- this.paginationTotal = result.total.value;
582
- this.paginationPageSize = this.filter.RowCount > this.paginationTotal ? this.paginationTotal : this.filter.RowCount;
583
- this.paginationTotal = result.total.value;
584
- this.paginationPageSize = this.filter.RowCount > this.paginationTotal ? this.paginationTotal : this.filter.RowCount;
585
- });
586
- }
587
- //Change page
588
- changePage(pageEvent) {
589
- this.filter.PageNumber = pageEvent.pageIndex + 1;
590
- this.Get();
591
- }
592
- }
593
- InventoryLogComponent.ɵfac = function InventoryLogComponent_Factory(t) { return new (t || InventoryLogComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__.RawLogService)); };
594
- InventoryLogComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: InventoryLogComponent, selectors: [["app-inventory-log"]], decls: 41, vars: 13, consts: [["searchBoxPlaceHolder", "Enter SKU...", 3, "Title", "text", "textChange", "onSubmit"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange"], ["name", "From", 3, "date", "dateChange"], ["name", "To", 3, "date", "dateChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "RowCount", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt=3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "length", "pageSize", "pageIndex", "page"], [3, "routerLink", "queryParams"]], template: function InventoryLogComponent_Template(rf, ctx) { if (rf & 1) {
595
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mainpanel", 0);
596
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("textChange", function InventoryLogComponent_Template_mainpanel_textChange_0_listener($event) { return ctx.filter.Sku = $event; })("onSubmit", function InventoryLogComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
597
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
598
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Channel");
599
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
600
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "ng-select", 2);
601
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryLogComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.filter.ChannelID = $event; });
602
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
603
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div")(8, "h6");
604
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "From/To");
605
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
606
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "datepicker", 3);
607
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("dateChange", function InventoryLogComponent_Template_datepicker_dateChange_10_listener($event) { return ctx.filter.From = $event; });
608
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
609
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "datepicker", 4);
610
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("dateChange", function InventoryLogComponent_Template_datepicker_dateChange_11_listener($event) { return ctx.filter.To = $event; });
611
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
612
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](12, "div")(13, "h6");
613
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](14, "Page Number");
614
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
615
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "input", 5);
616
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryLogComponent_Template_input_ngModelChange_15_listener($event) { return ctx.filter.PageNumber = $event; });
617
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
618
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "div")(17, "h6");
619
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18, "Page Size");
620
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
621
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "input", 6);
622
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function InventoryLogComponent_Template_input_ngModelChange_19_listener($event) { return ctx.filter.RowCount = $event; });
623
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
624
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "content")(21, "div", 7)(22, "div", 8)(23, "div", 9)(24, "div", 10)(25, "table", 11)(26, "thead")(27, "tr", 12)(28, "th");
625
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](29, "Created");
626
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
627
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](30, "th");
628
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](31, "Channel");
629
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
630
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](32, "th");
631
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](33, "SKU");
632
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
633
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](34, "th");
634
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](35, "Stock");
635
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
636
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](36, "th");
637
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](37, "Response code");
638
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
639
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](38, "tbody");
640
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](39, InventoryLogComponent_tr_39_Template, 13, 13, "tr", 13);
641
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
642
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](40, "mat-paginator", 14);
643
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("page", function InventoryLogComponent_Template_mat_paginator_page_40_listener($event) { return ctx.changePage($event); });
644
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()()();
645
- } if (rf & 2) {
646
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("Title", "Inventory Log")("text", ctx.filter.Sku);
647
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
648
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("clearable", true)("items", ctx.Channel)("ngModel", ctx.filter.ChannelID);
649
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
650
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("date", ctx.filter.From);
651
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
652
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("date", ctx.filter.To);
653
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
654
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
655
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
656
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.filter.RowCount);
657
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](20);
658
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.Result);
659
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
660
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("length", ctx.paginationTotal)("pageSize", ctx.paginationPageSize)("pageIndex", (ctx.filter == null ? null : ctx.filter.PageNumber) == 0 ? 0 : (ctx.filter == null ? null : ctx.filter.PageNumber) - 1);
661
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_6__.NgModel, _angular_router__WEBPACK_IMPORTED_MODULE_7__.RouterLinkWithHref, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__.MainPanelComponent, _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__.MatPaginator, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__.NgSelectComponent, _sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_3__.DatepickerComponent, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbnZlbnRvcnktbG9nLmNvbXBvbmVudC5zY3NzIn0= */"] });
662
-
663
-
664
- /***/ }),
665
-
666
- /***/ 1841:
667
- /*!********************************************************!*\
668
- !*** ./src/app/menu/object-log/logs-routing.module.ts ***!
669
- \********************************************************/
670
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
671
-
672
- __webpack_require__.r(__webpack_exports__);
673
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
674
- /* harmony export */ "LogsRoutingModule": () => (/* binding */ LogsRoutingModule)
675
- /* harmony export */ });
676
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! @angular/common */ 4666);
677
- /* harmony import */ var _logs_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./logs.component */ 211);
678
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! @angular/router */ 124);
679
- /* harmony import */ var _error_log_error_log_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./error-log/error-log.component */ 968);
680
- /* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
681
- /* harmony import */ var _order_order_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./order/order.component */ 5879);
682
- /* harmony import */ var _inventory_log_inventory_log_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./inventory-log/inventory-log.component */ 5921);
683
- /* harmony import */ var _raw_log_raw_log_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./raw-log/raw-log.component */ 4759);
684
- /* harmony import */ var _raw_log_raw_detail_raw_detail_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./raw-log/raw-detail/raw-detail.component */ 1133);
685
- /* harmony import */ var _inventory_log_inventory_detail_inventory_detail_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inventory-log/inventory-detail/inventory-detail.component */ 3669);
686
- /* harmony import */ var _order_detail_orderdetail_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./order/detail/orderdetail.component */ 5481);
687
- /* harmony import */ var _exception_log_exception_log_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./exception-log/exception-log.component */ 2374);
688
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @angular/core */ 2560);
689
-
690
-
691
-
692
-
693
-
694
-
695
-
696
-
697
-
698
-
699
-
700
-
701
-
702
-
703
- const routes = [
704
- {
705
- path: "",
706
- component: _logs_component__WEBPACK_IMPORTED_MODULE_0__.LogsComponent,
707
- children: [
708
- {
709
- path: "",
710
- redirectTo: "order",
711
- pathMatch: "full",
712
- },
713
- {
714
- path: "order",
715
- component: _order_order_component__WEBPACK_IMPORTED_MODULE_3__.OrderComponent,
716
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
717
- data: { title: "Orders Log" },
718
- },
719
- {
720
- path: "inventory",
721
- component: _inventory_log_inventory_log_component__WEBPACK_IMPORTED_MODULE_4__.InventoryLogComponent,
722
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
723
- data: { title: "Inventory Log" },
724
- },
725
- {
726
- path: "rawlog",
727
- component: _raw_log_raw_log_component__WEBPACK_IMPORTED_MODULE_5__.RawLogComponent,
728
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
729
- data: { title: "Raw Log" },
730
- },
731
- {
732
- path: "rawlog/detail",
733
- component: _raw_log_raw_detail_raw_detail_component__WEBPACK_IMPORTED_MODULE_6__.RawDetailComponent,
734
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
735
- data: { title: "Raw Log Detail" },
736
- },
737
- {
738
- path: "errorlog",
739
- component: _error_log_error_log_component__WEBPACK_IMPORTED_MODULE_1__.ErrorLogComponent,
740
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
741
- data: { title: "Error Log" },
742
- },
743
- {
744
- path: "inventory/detail",
745
- component: _inventory_log_inventory_detail_inventory_detail_component__WEBPACK_IMPORTED_MODULE_7__.InventoryDetailComponent,
746
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
747
- data: { title: "Inventory Details" },
748
- },
749
- {
750
- path: "order/detail",
751
- component: _order_detail_orderdetail_component__WEBPACK_IMPORTED_MODULE_8__.OrderdetailComponent,
752
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
753
- data: { title: "Order Details" },
754
- },
755
- {
756
- path: "exception",
757
- component: _exception_log_exception_log_component__WEBPACK_IMPORTED_MODULE_9__.ExceptionLogComponent,
758
- canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_2__.AuthGuard],
759
- data: { title: "Exception Log" },
760
- },
761
- ],
762
- },
763
- ];
764
- class LogsRoutingModule {
765
- }
766
- LogsRoutingModule.ɵfac = function LogsRoutingModule_Factory(t) { return new (t || LogsRoutingModule)(); };
767
- LogsRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineNgModule"]({ type: LogsRoutingModule });
768
- LogsRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.CommonModule,
769
- _angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule.forChild(routes)] });
770
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_10__["ɵɵsetNgModuleScope"](LogsRoutingModule, { imports: [_angular_common__WEBPACK_IMPORTED_MODULE_11__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_12__.RouterModule] }); })();
771
-
772
-
773
- /***/ }),
774
-
775
- /***/ 211:
776
- /*!***************************************************!*\
777
- !*** ./src/app/menu/object-log/logs.component.ts ***!
778
- \***************************************************/
779
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
780
-
781
- __webpack_require__.r(__webpack_exports__);
782
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
783
- /* harmony export */ "LogsComponent": () => (/* binding */ LogsComponent)
784
- /* harmony export */ });
785
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
786
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ 124);
787
- /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
788
-
789
-
790
-
791
- class LogsComponent {
792
- constructor() {
793
- this.ObjectlogTabs = [
794
- { Title: 'Sync Orders', Url: '/menu/log/order' },
795
- { Title: 'Inventory Log ', Url: '/menu/log/inventory' },
796
- { Title: 'Marketplace Webhook ', Url: '/menu/log/rawlog' },
797
- { Title: 'Application Exception ', Url: '/menu/log/exception' }
798
- ];
799
- }
800
- ngOnInit() {
801
- }
802
- }
803
- LogsComponent.ɵfac = function LogsComponent_Factory(t) { return new (t || LogsComponent)(); };
804
- LogsComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: LogsComponent, selectors: [["app-logs"]], decls: 5, vars: 1, consts: [[1, "navbar", "page-nav", "navbar-default", "py-0", "navbar-expand-lg"], [1, "container-fluid"], [3, "Tabs"]], template: function LogsComponent_Template(rf, ctx) { if (rf & 1) {
805
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "nav", 0)(1, "div", 1)(2, "div");
806
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](3, "nav-tab", 2);
807
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()()();
808
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "router-outlet");
809
- } if (rf & 2) {
810
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
811
- _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("Tabs", ctx.ObjectlogTabs);
812
- } }, dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_2__.RouterOutlet, _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_0__.NavTabComponent], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJsb2dzLmNvbXBvbmVudC5zY3NzIn0= */"] });
813
-
814
-
815
- /***/ }),
816
-
817
- /***/ 6274:
818
- /*!************************************************!*\
819
- !*** ./src/app/menu/object-log/logs.module.ts ***!
820
- \************************************************/
821
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
822
-
823
- __webpack_require__.r(__webpack_exports__);
824
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
825
- /* harmony export */ "LogsModule": () => (/* binding */ LogsModule)
826
- /* harmony export */ });
827
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! @angular/common */ 4666);
828
- /* harmony import */ var _logs_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./logs.component */ 211);
829
- /* harmony import */ var _logs_routing_module__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./logs-routing.module */ 1841);
830
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! @angular/forms */ 2508);
831
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! @angular/router */ 124);
832
- /* harmony import */ var _order_order_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./order/order.component */ 5879);
833
- /* harmony import */ var _inventory_log_inventory_log_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./inventory-log/inventory-log.component */ 5921);
834
- /* harmony import */ var _raw_log_raw_log_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./raw-log/raw-log.component */ 4759);
835
- /* harmony import */ var _raw_log_raw_detail_raw_detail_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./raw-log/raw-detail/raw-detail.component */ 1133);
836
- /* harmony import */ var _error_log_error_log_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./error-log/error-log.component */ 968);
837
- /* harmony import */ var _inventory_log_inventory_detail_inventory_detail_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./inventory-log/inventory-detail/inventory-detail.component */ 3669);
838
- /* harmony import */ var _order_detail_orderdetail_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./order/detail/orderdetail.component */ 5481);
839
- /* harmony import */ var _exception_log_exception_log_component__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./exception-log/exception-log.component */ 2374);
840
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
841
- /* harmony import */ var _angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! @angular/cdk/clipboard */ 6079);
842
- /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! @angular/material/paginator */ 6060);
843
- /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
844
- /* harmony import */ var src_app_sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! src/app/sharing-module/datepicker/datepicker.component */ 5585);
845
- /* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
846
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! @angular/core */ 2560);
847
-
848
-
849
-
850
-
851
-
852
-
853
-
854
-
855
-
856
-
857
-
858
-
859
-
860
-
861
-
862
-
863
-
864
-
865
-
866
-
867
- class LogsModule {
868
- }
869
- LogsModule.ɵfac = function LogsModule_Factory(t) { return new (t || LogsModule)(); };
870
- LogsModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineNgModule"]({ type: LogsModule });
871
- LogsModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.CommonModule,
872
- _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormsModule,
873
- _angular_forms__WEBPACK_IMPORTED_MODULE_15__.ReactiveFormsModule,
874
- _logs_routing_module__WEBPACK_IMPORTED_MODULE_1__.LogsRoutingModule,
875
- _angular_router__WEBPACK_IMPORTED_MODULE_16__.RouterModule,
876
- _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_10__.MainPanelModule,
877
- _angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_17__.ClipboardModule,
878
- _angular_material_paginator__WEBPACK_IMPORTED_MODULE_18__.MatPaginatorModule,
879
- _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__.NgSelectModule,
880
- src_app_sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_11__.DatepickerModule,
881
- _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_12__.NavTabModule] });
882
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_13__["ɵɵsetNgModuleScope"](LogsModule, { declarations: [_logs_component__WEBPACK_IMPORTED_MODULE_0__.LogsComponent,
883
- _order_order_component__WEBPACK_IMPORTED_MODULE_2__.OrderComponent,
884
- _inventory_log_inventory_log_component__WEBPACK_IMPORTED_MODULE_3__.InventoryLogComponent,
885
- _raw_log_raw_log_component__WEBPACK_IMPORTED_MODULE_4__.RawLogComponent,
886
- _raw_log_raw_detail_raw_detail_component__WEBPACK_IMPORTED_MODULE_5__.RawDetailComponent,
887
- _error_log_error_log_component__WEBPACK_IMPORTED_MODULE_6__.ErrorLogComponent,
888
- _inventory_log_inventory_detail_inventory_detail_component__WEBPACK_IMPORTED_MODULE_7__.InventoryDetailComponent,
889
- _order_detail_orderdetail_component__WEBPACK_IMPORTED_MODULE_8__.OrderdetailComponent,
890
- _exception_log_exception_log_component__WEBPACK_IMPORTED_MODULE_9__.ExceptionLogComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_14__.CommonModule,
891
- _angular_forms__WEBPACK_IMPORTED_MODULE_15__.FormsModule,
892
- _angular_forms__WEBPACK_IMPORTED_MODULE_15__.ReactiveFormsModule,
893
- _logs_routing_module__WEBPACK_IMPORTED_MODULE_1__.LogsRoutingModule,
894
- _angular_router__WEBPACK_IMPORTED_MODULE_16__.RouterModule,
895
- _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_10__.MainPanelModule,
896
- _angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_17__.ClipboardModule,
897
- _angular_material_paginator__WEBPACK_IMPORTED_MODULE_18__.MatPaginatorModule,
898
- _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_19__.NgSelectModule,
899
- src_app_sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_11__.DatepickerModule,
900
- _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_12__.NavTabModule] }); })();
901
-
902
-
903
- /***/ }),
904
-
905
- /***/ 5481:
906
- /*!***********************************************************************!*\
907
- !*** ./src/app/menu/object-log/order/detail/orderdetail.component.ts ***!
908
- \***********************************************************************/
909
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
910
-
911
- __webpack_require__.r(__webpack_exports__);
912
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
913
- /* harmony export */ "OrderdetailComponent": () => (/* binding */ OrderdetailComponent)
914
- /* harmony export */ });
915
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
916
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ 124);
917
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../services/http.service */ 6858);
918
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
919
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../main-panel/main-panel.component */ 7481);
920
-
921
-
922
-
923
-
924
-
925
- function OrderdetailComponent_a_70_Template(rf, ctx) { if (rf & 1) {
926
- const _r2 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵgetCurrentView"]();
927
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "a", 14);
928
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵlistener"]("click", function OrderdetailComponent_a_70_Template_a_click_0_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵrestoreView"](_r2); const ctx_r1 = _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵresetView"](ctx_r1.Retry()); });
929
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](1, "Retry");
930
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
931
- } }
932
- class OrderdetailComponent {
933
- constructor(route, http) {
934
- this.route = route;
935
- this.http = http;
936
- this.ProcessDuration = 0;
937
- this.request = '';
938
- this.response = '';
939
- this.route.queryParams.subscribe(params => {
940
- this.ID = params['ID'];
941
- this.Load();
942
- });
943
- }
944
- ngOnInit() {
945
- }
946
- //Function: Retry() will try to push the failed order to the server again
947
- //the button will only be visible if the response code isn't 200 or 201
948
- Retry() {
949
- var req = {
950
- ID: this.ID
951
- };
952
- this.http.post('/api/Orders/Retry', req).subscribe(result => {
953
- alert(JSON.stringify(result));
954
- });
955
- }
956
- Load() {
957
- var req = {
958
- ID: this.ID
959
- };
960
- this.http.post('/api/Orders/GetDetail', req).subscribe(result => {
961
- for (let i of result.hits) {
962
- this.Number = i._source.log.number;
963
- this.MarketTypeString = i._source.log.type;
964
- this.ResponseCode = i._source.log.responseCode;
965
- this.POSActionTypeString = i._source.message;
966
- this.ProcessDuration = 0;
967
- this.Created = i._source["@timestamp_received"];
968
- this.request = JSON.parse(i._source.log.request);
969
- this.response = JSON.parse(i._source.log.response);
970
- this.shopId = i._source.shopId;
971
- }
972
- });
973
- }
974
- }
975
- OrderdetailComponent.ɵfac = function OrderdetailComponent_Factory(t) { return new (t || OrderdetailComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_3__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService)); };
976
- OrderdetailComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineComponent"]({ type: OrderdetailComponent, selectors: [["app-orderdetail"]], decls: 82, vars: 20, consts: [[3, "Title", "pageData", "hideSearchBox", "hideSearchDropdown"], ["role", "button", "routerLink", "/menu/log/order", 1, "btn", "btn-secondary", "btn-fill", "btn-lg", "me-3"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-sm-12"], [1, "card"], [1, "card-header"], [1, "card-body"], [1, "col-sm-6"], [1, "info-label-group"], [1, "row", "mt-2"], [1, "form-group"], [1, "float-right"], ["role", "button", "class", "btn btn-success btn-fill btn-lg me-3", 3, "click", 4, "ngIf"], ["role", "button", 1, "btn", "btn-success", "btn-fill", "btn-lg", "me-3", 3, "click"]], template: function OrderdetailComponent_Template(rf, ctx) { if (rf & 1) {
977
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](0, "mainpanel", 0)(1, "actions")(2, "a", 1);
978
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](3, "Back");
979
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
980
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](4, "content")(5, "div", 2)(6, "div", 3)(7, "div", 4)(8, "div", 5)(9, "div", 6)(10, "h5");
981
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](11, "General");
982
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
983
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](12, "div", 7)(13, "div", 3)(14, "div", 8)(15, "div", 9)(16, "label");
984
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](17, "Date");
985
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
986
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](18, "div")(19, "span");
987
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](20);
988
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](21, "date");
989
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
990
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](22, "div", 8)(23, "div", 9)(24, "label");
991
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](25, "Number");
992
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
993
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](26, "div")(27, "span");
994
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](28);
995
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
996
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](29, "div", 8)(30, "div", 9)(31, "label");
997
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](32, "Type");
998
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
999
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](33, "div")(34, "span");
1000
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](35);
1001
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
1002
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](36, "div", 8)(37, "div", 9)(38, "label");
1003
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](39, "Response Code");
1004
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1005
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](40, "div")(41, "span");
1006
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](42);
1007
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
1008
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](43, "div", 8)(44, "div", 9)(45, "label");
1009
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](46, "ShopID");
1010
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1011
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](47, "div")(48, "span");
1012
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](49);
1013
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
1014
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](50, "div", 8)(51, "div", 9)(52, "label");
1015
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](53, "Action");
1016
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]();
1017
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](54, "div")(55, "span");
1018
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](56);
1019
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()()()()()();
1020
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](57, "div", 10)(58, "div", 8)(59, "div", 5)(60, "div", 6)(61, "h5");
1021
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](62, "Request");
1022
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1023
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](63, "div", 7)(64, "div", 4)(65, "div", 11)(66, "pre");
1024
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](67);
1025
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](68, "json");
1026
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()();
1027
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](69, "actions", 12);
1028
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtemplate"](70, OrderdetailComponent_a_70_Template, 2, 0, "a", 13);
1029
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()();
1030
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](71, "div", 8)(72, "div", 5)(73, "div", 6)(74, "h5");
1031
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](75, "Response");
1032
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()();
1033
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementStart"](76, "div", 7)(77, "div", 4)(78, "div", 11)(79, "pre");
1034
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtext"](80);
1035
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipe"](81, "json");
1036
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵelementEnd"]()()()()()()()()()();
1037
- } if (rf & 2) {
1038
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("Title", "Order #" + ctx.Number)("pageData", "Orders Detail ")("hideSearchBox", true)("hideSearchDropdown", true);
1039
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](20);
1040
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind2"](21, 13, ctx.Created, "dd MMM yyyy HH:mm:ss"));
1041
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](8);
1042
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.Number);
1043
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
1044
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.MarketTypeString);
1045
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
1046
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.ResponseCode);
1047
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
1048
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.shopId);
1049
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](7);
1050
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](ctx.POSActionTypeString);
1051
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](11);
1052
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](68, 16, ctx.request));
1053
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](3);
1054
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵproperty"]("ngIf", ctx.ResponseCode != "200" && ctx.ResponseCode != "201");
1055
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵadvance"](10);
1056
- _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵpipeBind1"](81, 18, ctx.response));
1057
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_3__.RouterLinkWithHref, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_1__.MainPanelComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.JsonPipe, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJvcmRlcmRldGFpbC5jb21wb25lbnQuc2NzcyJ9 */"] });
1058
-
1059
-
1060
- /***/ }),
1061
-
1062
- /***/ 5879:
1063
- /*!**********************************************************!*\
1064
- !*** ./src/app/menu/object-log/order/order.component.ts ***!
1065
- \**********************************************************/
1066
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1067
-
1068
- __webpack_require__.r(__webpack_exports__);
1069
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1070
- /* harmony export */ "OrderComponent": () => (/* binding */ OrderComponent)
1071
- /* harmony export */ });
1072
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/core */ 2560);
1073
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
1074
- /* harmony import */ var src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/RawLog.service */ 911);
1075
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 124);
1076
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666);
1077
- /* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508);
1078
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
1079
- /* harmony import */ var _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/paginator */ 6060);
1080
- /* harmony import */ var _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @ng-select/ng-select */ 3054);
1081
- /* harmony import */ var _sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../sharing-module/datepicker/datepicker.component */ 5585);
1082
-
1083
-
1084
-
1085
-
1086
-
1087
-
1088
-
1089
-
1090
-
1091
-
1092
- const _c0 = function () { return ["/menu/log/order/detail"]; };
1093
- const _c1 = function (a0) { return { ID: a0 }; };
1094
- const _c2 = function (a0, a1) { return { "bg-warning": a0, "bg-success": a1 }; };
1095
- function OrderComponent_tr_47_Template(rf, ctx) { if (rf & 1) {
1096
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "tr")(1, "td")(2, "a", 17);
1097
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](3);
1098
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipe"](4, "date");
1099
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
1100
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](5, "td");
1101
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](6);
1102
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1103
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "td");
1104
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](8);
1105
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1106
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](9, "td");
1107
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](10);
1108
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1109
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "td")(12, "span", 18);
1110
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13);
1111
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
1112
- } if (rf & 2) {
1113
- const item_r1 = ctx.$implicit;
1114
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
1115
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction0"](11, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction1"](12, _c1, item_r1.ID));
1116
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
1117
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpipeBind2"](4, 8, item_r1.Created, "dd MMM yyyy HH:mm"), " ");
1118
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](3);
1119
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.MarketTypeString);
1120
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
1121
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.POSActionTypeString);
1122
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
1123
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.Number);
1124
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](2);
1125
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngClass", _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵpureFunction2"](14, _c2, item_r1.ResponseCode !== 200, item_r1.ResponseCode === 200));
1126
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
1127
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtextInterpolate"](item_r1.ResponseCode);
1128
- } }
1129
- class OrderComponent {
1130
- constructor(http, _RawLogService, route) {
1131
- this.http = http;
1132
- this._RawLogService = _RawLogService;
1133
- this.route = route;
1134
- this.Result = Array();
1135
- this.filter = {
1136
- RowCount: 20,
1137
- Number: '',
1138
- PageNumber: 1,
1139
- ActionType: '',
1140
- ChannelID: '',
1141
- StatusCode: '',
1142
- From: '',
1143
- To: ''
1144
- };
1145
- }
1146
- ngOnInit() {
1147
- this.route.queryParams.subscribe(params => {
1148
- this.responseCode = params['responseCode'];
1149
- if (this.responseCode != undefined) {
1150
- this.Load(params);
1151
- }
1152
- else {
1153
- this.Load();
1154
- }
1155
- });
1156
- }
1157
- Load(param = {}) {
1158
- this.http.post('/api/OrdersLoader/Get', param).subscribe(result => {
1159
- this.filter = result.Filter;
1160
- this.Channel = result.Options.Channel;
1161
- this.ActionTypeList = result.Options.ActionTypeList;
1162
- this.Get();
1163
- });
1164
- }
1165
- Get($event) {
1166
- this.filter.Number = $event;
1167
- this.http.post('/api/Orders/Get', this.filter).subscribe(result => {
1168
- this._RawLogService.Data = result.hits;
1169
- this.Result = Array();
1170
- for (let hits of result.hits) {
1171
- let source = {
1172
- ID: hits._id,
1173
- Created: hits._source["@timestamp_received"],
1174
- shopId: hits._source.shopId,
1175
- MarketTypeString: hits._source.log.type,
1176
- POSActionTypeString: hits._source.message,
1177
- Number: hits._source.log.number,
1178
- ResponseCode: hits._source.log.responseCode
1179
- };
1180
- this.Result.push(source);
1181
- }
1182
- this.paginationTotal = result.total.value;
1183
- this.paginationPageSize = this.filter.RowCount > this.paginationTotal ? this.paginationTotal : this.filter.RowCount;
1184
- });
1185
- }
1186
- //Change page
1187
- changePage(pageEvent) {
1188
- this.filter.PageNumber = pageEvent.pageIndex + 1;
1189
- this.Get();
1190
- }
1191
- }
1192
- OrderComponent.ɵfac = function OrderComponent_Factory(t) { return new (t || OrderComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__.RawLogService), _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_5__.ActivatedRoute)); };
1193
- OrderComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵdefineComponent"]({ type: OrderComponent, selectors: [["app-order"]], decls: 49, vars: 17, consts: [["searchBoxPlaceHolder", "Invoice Number..", 3, "Title", "text", "textChange", "onSubmit"], ["container", ""], ["bindLabel", "Name", "name", "channelid", "bindValue", "ID", "placeholder", "Select Channel", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange"], ["bindLabel", "Value", "name", "ActionType", "bindValue", "Key", "placeholder", "Action Type", 1, "center-text", 3, "clearable", "items", "ngModel", "ngModelChange"], ["name", "From", 3, "date", "dateChange"], ["name", "To", 3, "date", "dateChange"], ["type", "text", "name", "StatusCode", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "PageNumber", 1, "w-100", 3, "ngModel", "ngModelChange"], ["type", "number", "name", "RowCount", 1, "w-100", 3, "ngModel", "ngModelChange"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table-responsive"], [1, "table", "table-hover"], [1, "table-light"], [4, "ngFor", "ngForOf"], [3, "length", "pageSize", "pageIndex", "page"], [3, "routerLink", "queryParams"], [1, "text-white", "p-1", "rounded", "response-desc", 3, "ngClass"]], template: function OrderComponent_Template(rf, ctx) { if (rf & 1) {
1194
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](0, "mainpanel", 0);
1195
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("textChange", function OrderComponent_Template_mainpanel_textChange_0_listener($event) { return ctx.Number = $event; })("onSubmit", function OrderComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
1196
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](1, "filters")(2, "div", 1)(3, "div")(4, "h6");
1197
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](5, "Channel");
1198
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1199
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](6, "ng-select", 2);
1200
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function OrderComponent_Template_ng_select_ngModelChange_6_listener($event) { return ctx.filter.ChannelID = $event; });
1201
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
1202
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](7, "div")(8, "h6");
1203
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](9, "Action");
1204
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1205
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](10, "ng-select", 3);
1206
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function OrderComponent_Template_ng_select_ngModelChange_10_listener($event) { return ctx.filter.ActionType = $event; });
1207
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
1208
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](11, "div")(12, "h6");
1209
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](13, "From/To");
1210
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1211
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](14, "datepicker", 4);
1212
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("dateChange", function OrderComponent_Template_datepicker_dateChange_14_listener($event) { return ctx.filter.From = $event; });
1213
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1214
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](15, "datepicker", 5);
1215
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("dateChange", function OrderComponent_Template_datepicker_dateChange_15_listener($event) { return ctx.filter.To = $event; });
1216
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
1217
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](16, "div")(17, "h6");
1218
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](18, "Response Code");
1219
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1220
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](19, "input", 6);
1221
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function OrderComponent_Template_input_ngModelChange_19_listener($event) { return ctx.filter.StatusCode = $event; });
1222
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
1223
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](20, "div")(21, "h6");
1224
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](22, "Page Number");
1225
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1226
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](23, "input", 7);
1227
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function OrderComponent_Template_input_ngModelChange_23_listener($event) { return ctx.filter.PageNumber = $event; });
1228
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
1229
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](24, "div")(25, "h6");
1230
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](26, "Page Size");
1231
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1232
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](27, "input", 8);
1233
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("ngModelChange", function OrderComponent_Template_input_ngModelChange_27_listener($event) { return ctx.filter.RowCount = $event; });
1234
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()();
1235
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](28, "content")(29, "div", 9)(30, "div", 10)(31, "div", 11)(32, "div", 12)(33, "table", 13)(34, "thead")(35, "tr", 14)(36, "th");
1236
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](37, "Date");
1237
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1238
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](38, "th");
1239
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](39, "Channel");
1240
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1241
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](40, "th");
1242
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](41, "Actions");
1243
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1244
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](42, "th");
1245
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](43, "Number");
1246
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]();
1247
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](44, "th");
1248
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtext"](45, "Code");
1249
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()();
1250
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](46, "tbody");
1251
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵtemplate"](47, OrderComponent_tr_47_Template, 14, 17, "tr", 15);
1252
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()();
1253
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementStart"](48, "mat-paginator", 16);
1254
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵlistener"]("page", function OrderComponent_Template_mat_paginator_page_48_listener($event) { return ctx.changePage($event); });
1255
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵelementEnd"]()()()()()()();
1256
- } if (rf & 2) {
1257
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("Title", "Order Log")("text", ctx.Number);
1258
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](6);
1259
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("clearable", true)("items", ctx.Channel)("ngModel", ctx.filter.ChannelID);
1260
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
1261
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("clearable", true)("items", ctx.ActionTypeList)("ngModel", ctx.filter.ActionType);
1262
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
1263
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("date", ctx.filter.From);
1264
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
1265
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("date", ctx.filter.To);
1266
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
1267
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.filter.StatusCode);
1268
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
1269
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.filter.PageNumber);
1270
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](4);
1271
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngModel", ctx.filter.RowCount);
1272
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](20);
1273
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("ngForOf", ctx.Result);
1274
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵadvance"](1);
1275
- _angular_core__WEBPACK_IMPORTED_MODULE_4__["ɵɵproperty"]("length", ctx.paginationTotal)("pageSize", ctx.paginationPageSize)("pageIndex", (ctx.filter == null ? null : ctx.filter.PageNumber) == 0 ? 0 : (ctx.filter == null ? null : ctx.filter.PageNumber) - 1);
1276
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.NgClass, _angular_common__WEBPACK_IMPORTED_MODULE_6__.NgForOf, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.DefaultValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NumberValueAccessor, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgControlStatus, _angular_forms__WEBPACK_IMPORTED_MODULE_7__.NgModel, _angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLinkWithHref, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__.MainPanelComponent, _angular_material_paginator__WEBPACK_IMPORTED_MODULE_8__.MatPaginator, _ng_select_ng_select__WEBPACK_IMPORTED_MODULE_9__.NgSelectComponent, _sharing_module_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_3__.DatepickerComponent, _angular_common__WEBPACK_IMPORTED_MODULE_6__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJvcmRlci5jb21wb25lbnQuc2NzcyJ9 */"] });
1277
-
1278
-
1279
- /***/ }),
1280
-
1281
- /***/ 1133:
1282
- /*!****************************************************************************!*\
1283
- !*** ./src/app/menu/object-log/raw-log/raw-detail/raw-detail.component.ts ***!
1284
- \****************************************************************************/
1285
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1286
-
1287
- __webpack_require__.r(__webpack_exports__);
1288
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1289
- /* harmony export */ "RawDetailComponent": () => (/* binding */ RawDetailComponent)
1290
- /* harmony export */ });
1291
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
1292
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124);
1293
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../services/http.service */ 6858);
1294
- /* harmony import */ var src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/RawLog.service */ 911);
1295
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/common */ 4666);
1296
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../main-panel/main-panel.component */ 7481);
1297
- /* harmony import */ var _angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/cdk/clipboard */ 6079);
1298
-
1299
-
1300
-
1301
-
1302
-
1303
-
1304
-
1305
- function RawDetailComponent_div_4_img_19_Template(rf, ctx) { if (rf & 1) {
1306
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "img", 21);
1307
- } }
1308
- function RawDetailComponent_div_4_img_20_Template(rf, ctx) { if (rf & 1) {
1309
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](0, "img", 22);
1310
- } }
1311
- function RawDetailComponent_div_4_Template(rf, ctx) { if (rf & 1) {
1312
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 4)(1, "div", 5)(2, "div", 6)(3, "h5");
1313
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](4, "General");
1314
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1315
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "div", 7)(6, "div", 2)(7, "div", 8)(8, "div", 9)(9, "label");
1316
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10, "Date");
1317
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1318
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "div")(12, "span");
1319
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13);
1320
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](14, "date");
1321
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
1322
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](15, "div", 10)(16, "div", 9)(17, "label");
1323
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](18, "Market Place Type");
1324
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1325
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](19, RawDetailComponent_div_4_img_19_Template, 1, 0, "img", 11);
1326
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](20, RawDetailComponent_div_4_img_20_Template, 1, 0, "img", 12);
1327
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](21, "a", 13)(22, "span", 14);
1328
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](23);
1329
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1330
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelement"](24, "br");
1331
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](25, "small", 15);
1332
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](26);
1333
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
1334
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](27, "div", 10)(28, "div", 9)(29, "label");
1335
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](30, "Number");
1336
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1337
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](31, "div")(32, "span");
1338
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](33);
1339
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
1340
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](34, "div", 8)(35, "div", 9)(36, "label");
1341
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](37, "Process Type");
1342
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1343
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](38, "div")(39, "span");
1344
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](40);
1345
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
1346
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](41, "div", 4)(42, "div", 9)(43, "label");
1347
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](44, "Authorization Header");
1348
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1349
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](45, "div")(46, "span");
1350
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](47);
1351
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
1352
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](48, "div", 16)(49, "div", 5)(50, "div", 17)(51, "div", 18)(52, "h3");
1353
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](53, "Request");
1354
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1355
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](54, "div", 19)(55, "button", 20);
1356
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](56, "Copy to clipboard");
1357
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
1358
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](57, "div", 7);
1359
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](58);
1360
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()()()();
1361
- } if (rf & 2) {
1362
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
1363
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](13);
1364
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](14, 11, ctx_r0.data.Created, "dd MMM yyyy HH:mm:ss"));
1365
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](6);
1366
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.data.TypeID == 1);
1367
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
1368
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx_r0.data.TypeID == 0);
1369
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
1370
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpropertyInterpolate"]("href", ctx_r0.data.ShopLink, _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵsanitizeUrl"]);
1371
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1372
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data.ShopName);
1373
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
1374
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data.ShopLink);
1375
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
1376
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data._source.log.number);
1377
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
1378
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data._source.log.processType);
1379
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](7);
1380
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](ctx_r0.data._source.log.authorizationHeader);
1381
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](8);
1382
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("cdkCopyToClipboard", ctx_r0.data._source.log.request);
1383
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
1384
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", ctx_r0.data._source.log.request, " ");
1385
- } }
1386
- class RawDetailComponent {
1387
- constructor(route, http, _RawLogService) {
1388
- this.route = route;
1389
- this.http = http;
1390
- this._RawLogService = _RawLogService;
1391
- this.route.queryParams.subscribe(params => {
1392
- let channels = JSON.parse(localStorage.getItem("channel"));
1393
- this.ID = params['ID'];
1394
- this.data = this._RawLogService.Fill(this.ID);
1395
- this.data.Created = this.data._source["@timestamp_received"];
1396
- if (channels.length > 0) {
1397
- const channel = channels.find(x => x.ShopID == this.data._source.shopId);
1398
- if (channel) {
1399
- this.data.TypeID = channel.TypeID;
1400
- this.data.ShopName = channel.Name;
1401
- this.data.ShopLink = channel.URL;
1402
- }
1403
- else {
1404
- this.data.TypeID = null;
1405
- this.data.ShopName = null;
1406
- this.data.ShopLink = null;
1407
- }
1408
- }
1409
- });
1410
- }
1411
- ngOnInit() {
1412
- }
1413
- }
1414
- RawDetailComponent.ɵfac = function RawDetailComponent_Factory(t) { return new (t || RawDetailComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_angular_router__WEBPACK_IMPORTED_MODULE_4__.ActivatedRoute), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__.RawLogService)); };
1415
- RawDetailComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: RawDetailComponent, selectors: [["app-raw-detail"]], decls: 5, vars: 4, consts: [[3, "Title", "hideSearchBox", "hideSearchDropdown"], [1, "container-fluid", "mt-2"], [1, "row"], ["class", "col-sm-12", 4, "ngIf"], [1, "col-sm-12"], [1, "card"], [1, "card-header"], [1, "card-body"], [1, "col-sm-2"], [1, "info-label-group"], [1, "col-sm-4"], ["class", "me-2", "src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png", 4, "ngIf"], ["class", "me-2", "src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png", 4, "ngIf"], ["target", "_blank", 3, "href"], [1, "fw-bold"], [1, "text-dark"], [1, "col-sm-12", "mt-2"], [1, "card-header", "d-lg-flex"], [1, "me-auto"], [1, "d-sm-block", "mt-2"], [3, "cdkCopyToClipboard"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png", 1, "me-2"], ["src", "https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png", 1, "me-2"]], template: function RawDetailComponent_Template(rf, ctx) { if (rf & 1) {
1416
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0)(1, "content")(2, "div", 1)(3, "div", 2);
1417
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](4, RawDetailComponent_div_4_Template, 59, 14, "div", 3);
1418
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()();
1419
- } if (rf & 2) {
1420
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "Request Raw Log Detail")("hideSearchBox", true)("hideSearchDropdown", true);
1421
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](4);
1422
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.data);
1423
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_5__.NgIf, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__.MainPanelComponent, _angular_cdk_clipboard__WEBPACK_IMPORTED_MODULE_6__.CdkCopyToClipboard, _angular_common__WEBPACK_IMPORTED_MODULE_5__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJyYXctZGV0YWlsLmNvbXBvbmVudC5zY3NzIn0= */"] });
1424
-
1425
-
1426
- /***/ }),
1427
-
1428
- /***/ 4759:
1429
- /*!**************************************************************!*\
1430
- !*** ./src/app/menu/object-log/raw-log/raw-log.component.ts ***!
1431
- \**************************************************************/
1432
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1433
-
1434
- __webpack_require__.r(__webpack_exports__);
1435
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1436
- /* harmony export */ "RawLogComponent": () => (/* binding */ RawLogComponent)
1437
- /* harmony export */ });
1438
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/core */ 2560);
1439
- /* harmony import */ var _services_http_service__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../services/http.service */ 6858);
1440
- /* harmony import */ var src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/RawLog.service */ 911);
1441
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
1442
- /* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/router */ 124);
1443
- /* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../main-panel/main-panel.component */ 7481);
1444
-
1445
-
1446
-
1447
-
1448
-
1449
-
1450
- const _c0 = function () { return ["/menu/log/rawlog/detail"]; };
1451
- const _c1 = function (a0) { return { ID: a0 }; };
1452
- function RawLogComponent_div_2_tr_17_Template(rf, ctx) { if (rf & 1) {
1453
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "tr")(1, "td")(2, "a", 9);
1454
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](3);
1455
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipe"](4, "date");
1456
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1457
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](5, "td");
1458
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](6);
1459
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1460
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](7, "td");
1461
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](8);
1462
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1463
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](9, "td");
1464
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](10);
1465
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1466
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](11, "td");
1467
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](12);
1468
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1469
- } if (rf & 2) {
1470
- const rawlog_r2 = ctx.$implicit;
1471
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1472
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("routerLink", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction0"](10, _c0))("queryParams", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpureFunction1"](11, _c1, rawlog_r2.id));
1473
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](1);
1474
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate1"](" ", _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵpipeBind2"](4, 7, rawlog_r2.Created, "dd MMM yyyy HH:mm"), " ");
1475
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](3);
1476
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rawlog_r2.number);
1477
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1478
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rawlog_r2.type);
1479
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1480
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rawlog_r2.message);
1481
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1482
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtextInterpolate"](rawlog_r2.processTypeString);
1483
- } }
1484
- function RawLogComponent_div_2_Template(rf, ctx) { if (rf & 1) {
1485
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "div", 2)(1, "div", 3)(2, "div", 4)(3, "table", 5)(4, "thead", 6)(5, "tr")(6, "th", 7);
1486
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](7, "Date");
1487
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1488
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](8, "th");
1489
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](9, "Number");
1490
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1491
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](10, "th");
1492
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](11, "Type");
1493
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1494
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](12, "th");
1495
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](13, "Status");
1496
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]();
1497
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](14, "th");
1498
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtext"](15, "Process");
1499
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()();
1500
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](16, "tbody");
1501
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](17, RawLogComponent_div_2_tr_17_Template, 13, 13, "tr", 8);
1502
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()()()()();
1503
- } if (rf & 2) {
1504
- const ctx_r0 = _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵnextContext"]();
1505
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](17);
1506
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngForOf", ctx_r0.Result);
1507
- } }
1508
- class RawLogComponent {
1509
- constructor(http, _RawLogService) {
1510
- this.http = http;
1511
- this._RawLogService = _RawLogService;
1512
- this.Result = Array();
1513
- this.list = [];
1514
- this.filter = {};
1515
- this.Types = [
1516
- { Key: 0, Value: "Shopee" },
1517
- { Key: 1, Value: "Tokopedia" }
1518
- ];
1519
- this.filter = {
1520
- Number: '',
1521
- PageNumber: 1,
1522
- RowCount: 20,
1523
- ChannelID: '',
1524
- Status: ''
1525
- };
1526
- }
1527
- ngOnInit() {
1528
- }
1529
- Get($event) {
1530
- if ($event != undefined) {
1531
- let temp = [];
1532
- temp.push($event);
1533
- this.http.post('api/Orders/GetRawLog', temp).subscribe((response) => {
1534
- this._RawLogService.Data = response.hits;
1535
- this.Result = Array();
1536
- for (let hits of response.hits) {
1537
- let source = {};
1538
- if (hits._source.error) {
1539
- source = {
1540
- id: hits._id,
1541
- message: hits._source.message,
1542
- processTypeString: hits._source.error.processType,
1543
- type: hits._source.error.type,
1544
- number: hits._source.error.number,
1545
- Created: hits._source["@timestamp_received"]
1546
- };
1547
- }
1548
- else {
1549
- source = {
1550
- id: hits._id,
1551
- message: hits._source.message,
1552
- processTypeString: hits._source.log.processType,
1553
- type: hits._source.log.type,
1554
- number: hits._source.log.number,
1555
- Created: hits._source["@timestamp_received"]
1556
- };
1557
- }
1558
- this.Result.push(source);
1559
- }
1560
- });
1561
- }
1562
- }
1563
- }
1564
- RawLogComponent.ɵfac = function RawLogComponent_Factory(t) { return new (t || RawLogComponent)(_angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](_services_http_service__WEBPACK_IMPORTED_MODULE_0__.HttpService), _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdirectiveInject"](src_app_services_RawLog_service__WEBPACK_IMPORTED_MODULE_1__.RawLogService)); };
1565
- RawLogComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵdefineComponent"]({ type: RawLogComponent, selectors: [["app-raw-log"]], decls: 3, vars: 3, consts: [["searchBoxPlaceHolder", "Invoice Number..", "hideSearchDropdown", "true", 3, "Title", "text", "textChange", "onSubmit"], ["class", "container-fluid mt-3", 4, "ngIf"], [1, "container-fluid", "mt-3"], [1, "row"], [1, "col-md-12"], [1, "table"], [1, "thead-light"], [2, "width", "200px"], [4, "ngFor", "ngForOf"], [3, "routerLink", "queryParams"]], template: function RawLogComponent_Template(rf, ctx) { if (rf & 1) {
1566
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](0, "mainpanel", 0);
1567
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵlistener"]("textChange", function RawLogComponent_Template_mainpanel_textChange_0_listener($event) { return ctx.filter.Number = $event; })("onSubmit", function RawLogComponent_Template_mainpanel_onSubmit_0_listener($event) { return ctx.Get($event); });
1568
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementStart"](1, "content");
1569
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵtemplate"](2, RawLogComponent_div_2_Template, 18, 1, "div", 1);
1570
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵelementEnd"]()();
1571
- } if (rf & 2) {
1572
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("Title", "Raw Log")("text", ctx.filter.Number);
1573
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵadvance"](2);
1574
- _angular_core__WEBPACK_IMPORTED_MODULE_3__["ɵɵproperty"]("ngIf", ctx.Result.length > 0);
1575
- } }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgForOf, _angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_router__WEBPACK_IMPORTED_MODULE_5__.RouterLinkWithHref, _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_2__.MainPanelComponent, _angular_common__WEBPACK_IMPORTED_MODULE_4__.DatePipe], styles: ["\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJyYXctbG9nLmNvbXBvbmVudC5zY3NzIn0= */"] });
1576
-
1577
-
1578
- /***/ }),
1579
-
1580
- /***/ 911:
1581
- /*!********************************************!*\
1582
- !*** ./src/app/services/RawLog.service.ts ***!
1583
- \********************************************/
1584
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
1585
-
1586
- __webpack_require__.r(__webpack_exports__);
1587
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1588
- /* harmony export */ "RawLogService": () => (/* binding */ RawLogService)
1589
- /* harmony export */ });
1590
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
1591
-
1592
- class RawLogService {
1593
- constructor() { }
1594
- /**
1595
- *
1596
- */
1597
- get Data() {
1598
- return this._Data;
1599
- }
1600
- /**
1601
- *
1602
- */
1603
- set Data(rawLogs) {
1604
- this._Data = rawLogs;
1605
- }
1606
- /**
1607
- *
1608
- */
1609
- Fill(id) {
1610
- return this._Data.find((x) => x._id == id);
1611
- }
1612
- }
1613
- RawLogService.ɵfac = function RawLogService_Factory(t) { return new (t || RawLogService)(); };
1614
- RawLogService.ɵprov = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({ token: RawLogService, factory: RawLogService.ɵfac, providedIn: 'root' });
1615
-
1616
-
1617
- /***/ }),
1618
-
1619
- /***/ 6079:
1620
- /*!**********************************************************!*\
1621
- !*** ./node_modules/@angular/cdk/fesm2020/clipboard.mjs ***!
1622
- \**********************************************************/
1623
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
1624
-
1625
- __webpack_require__.r(__webpack_exports__);
1626
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1627
- /* harmony export */ "CDK_COPY_TO_CLIPBOARD_CONFIG": () => (/* binding */ CDK_COPY_TO_CLIPBOARD_CONFIG),
1628
- /* harmony export */ "CdkCopyToClipboard": () => (/* binding */ CdkCopyToClipboard),
1629
- /* harmony export */ "Clipboard": () => (/* binding */ Clipboard),
1630
- /* harmony export */ "ClipboardModule": () => (/* binding */ ClipboardModule),
1631
- /* harmony export */ "PendingCopy": () => (/* binding */ PendingCopy)
1632
- /* harmony export */ });
1633
- /* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ 4666);
1634
- /* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
1635
-
1636
-
1637
-
1638
- /**
1639
- * @license
1640
- * Copyright Google LLC All Rights Reserved.
1641
- *
1642
- * Use of this source code is governed by an MIT-style license that can be
1643
- * found in the LICENSE file at https://angular.io/license
1644
- */
1645
-
1646
- /**
1647
- * A pending copy-to-clipboard operation.
1648
- *
1649
- * The implementation of copying text to the clipboard modifies the DOM and
1650
- * forces a relayout. This relayout can take too long if the string is large,
1651
- * causing the execCommand('copy') to happen too long after the user clicked.
1652
- * This results in the browser refusing to copy. This object lets the
1653
- * relayout happen in a separate tick from copying by providing a copy function
1654
- * that can be called later.
1655
- *
1656
- * Destroy must be called when no longer in use, regardless of whether `copy` is
1657
- * called.
1658
- */
1659
-
1660
- class PendingCopy {
1661
- constructor(text, _document) {
1662
- this._document = _document;
1663
-
1664
- const textarea = this._textarea = this._document.createElement('textarea');
1665
-
1666
- const styles = textarea.style; // Hide the element for display and accessibility. Set a fixed position so the page layout
1667
- // isn't affected. We use `fixed` with `top: 0`, because focus is moved into the textarea
1668
- // for a split second and if it's off-screen, some browsers will attempt to scroll it into view.
1669
-
1670
- styles.position = 'fixed';
1671
- styles.top = styles.opacity = '0';
1672
- styles.left = '-999em';
1673
- textarea.setAttribute('aria-hidden', 'true');
1674
- textarea.value = text;
1675
-
1676
- this._document.body.appendChild(textarea);
1677
- }
1678
- /** Finishes copying the text. */
1679
-
1680
-
1681
- copy() {
1682
- const textarea = this._textarea;
1683
- let successful = false;
1684
-
1685
- try {
1686
- // Older browsers could throw if copy is not supported.
1687
- if (textarea) {
1688
- const currentFocus = this._document.activeElement;
1689
- textarea.select();
1690
- textarea.setSelectionRange(0, textarea.value.length);
1691
- successful = this._document.execCommand('copy');
1692
-
1693
- if (currentFocus) {
1694
- currentFocus.focus();
1695
- }
1696
- }
1697
- } catch {// Discard error.
1698
- // Initial setting of {@code successful} will represent failure here.
1699
- }
1700
-
1701
- return successful;
1702
- }
1703
- /** Cleans up DOM changes used to perform the copy operation. */
1704
-
1705
-
1706
- destroy() {
1707
- const textarea = this._textarea;
1708
-
1709
- if (textarea) {
1710
- textarea.remove();
1711
- this._textarea = undefined;
1712
- }
1713
- }
1714
-
1715
- }
1716
- /**
1717
- * @license
1718
- * Copyright Google LLC All Rights Reserved.
1719
- *
1720
- * Use of this source code is governed by an MIT-style license that can be
1721
- * found in the LICENSE file at https://angular.io/license
1722
- */
1723
-
1724
- /**
1725
- * A service for copying text to the clipboard.
1726
- */
1727
-
1728
-
1729
- class Clipboard {
1730
- constructor(document) {
1731
- this._document = document;
1732
- }
1733
- /**
1734
- * Copies the provided text into the user's clipboard.
1735
- *
1736
- * @param text The string to copy.
1737
- * @returns Whether the operation was successful.
1738
- */
1739
-
1740
-
1741
- copy(text) {
1742
- const pendingCopy = this.beginCopy(text);
1743
- const successful = pendingCopy.copy();
1744
- pendingCopy.destroy();
1745
- return successful;
1746
- }
1747
- /**
1748
- * Prepares a string to be copied later. This is useful for large strings
1749
- * which take too long to successfully render and be copied in the same tick.
1750
- *
1751
- * The caller must call `destroy` on the returned `PendingCopy`.
1752
- *
1753
- * @param text The string to copy.
1754
- * @returns the pending copy operation.
1755
- */
1756
-
1757
-
1758
- beginCopy(text) {
1759
- return new PendingCopy(text, this._document);
1760
- }
1761
-
1762
- }
1763
-
1764
- Clipboard.ɵfac = function Clipboard_Factory(t) {
1765
- return new (t || Clipboard)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵinject"](_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT));
1766
- };
1767
-
1768
- Clipboard.ɵprov = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjectable"]({
1769
- token: Clipboard,
1770
- factory: Clipboard.ɵfac,
1771
- providedIn: 'root'
1772
- });
1773
-
1774
- (function () {
1775
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](Clipboard, [{
1776
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Injectable,
1777
- args: [{
1778
- providedIn: 'root'
1779
- }]
1780
- }], function () {
1781
- return [{
1782
- type: undefined,
1783
- decorators: [{
1784
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
1785
- args: [_angular_common__WEBPACK_IMPORTED_MODULE_1__.DOCUMENT]
1786
- }]
1787
- }];
1788
- }, null);
1789
- })();
1790
- /**
1791
- * @license
1792
- * Copyright Google LLC All Rights Reserved.
1793
- *
1794
- * Use of this source code is governed by an MIT-style license that can be
1795
- * found in the LICENSE file at https://angular.io/license
1796
- */
1797
-
1798
- /** Injection token that can be used to provide the default options to `CdkCopyToClipboard`. */
1799
-
1800
-
1801
- const CDK_COPY_TO_CLIPBOARD_CONFIG = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.InjectionToken('CDK_COPY_TO_CLIPBOARD_CONFIG');
1802
- /**
1803
- * Provides behavior for a button that when clicked copies content into user's
1804
- * clipboard.
1805
- */
1806
-
1807
- class CdkCopyToClipboard {
1808
- constructor(_clipboard, _ngZone, config) {
1809
- this._clipboard = _clipboard;
1810
- this._ngZone = _ngZone;
1811
- /** Content to be copied. */
1812
-
1813
- this.text = '';
1814
- /**
1815
- * How many times to attempt to copy the text. This may be necessary for longer text, because
1816
- * the browser needs time to fill an intermediate textarea element and copy the content.
1817
- */
1818
-
1819
- this.attempts = 1;
1820
- /**
1821
- * Emits when some text is copied to the clipboard. The
1822
- * emitted value indicates whether copying was successful.
1823
- */
1824
-
1825
- this.copied = new _angular_core__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
1826
- /** Copies that are currently being attempted. */
1827
-
1828
- this._pending = new Set();
1829
-
1830
- if (config && config.attempts != null) {
1831
- this.attempts = config.attempts;
1832
- }
1833
- }
1834
- /** Copies the current text to the clipboard. */
1835
-
1836
-
1837
- copy(attempts = this.attempts) {
1838
- if (attempts > 1) {
1839
- let remainingAttempts = attempts;
1840
-
1841
- const pending = this._clipboard.beginCopy(this.text);
1842
-
1843
- this._pending.add(pending);
1844
-
1845
- const attempt = () => {
1846
- const successful = pending.copy();
1847
-
1848
- if (!successful && --remainingAttempts && !this._destroyed) {
1849
- // We use 1 for the timeout since it's more predictable when flushing in unit tests.
1850
- this._currentTimeout = this._ngZone.runOutsideAngular(() => setTimeout(attempt, 1));
1851
- } else {
1852
- this._currentTimeout = null;
1853
-
1854
- this._pending.delete(pending);
1855
-
1856
- pending.destroy();
1857
- this.copied.emit(successful);
1858
- }
1859
- };
1860
-
1861
- attempt();
1862
- } else {
1863
- this.copied.emit(this._clipboard.copy(this.text));
1864
- }
1865
- }
1866
-
1867
- ngOnDestroy() {
1868
- if (this._currentTimeout) {
1869
- clearTimeout(this._currentTimeout);
1870
- }
1871
-
1872
- this._pending.forEach(copy => copy.destroy());
1873
-
1874
- this._pending.clear();
1875
-
1876
- this._destroyed = true;
1877
- }
1878
-
1879
- }
1880
-
1881
- CdkCopyToClipboard.ɵfac = function CdkCopyToClipboard_Factory(t) {
1882
- return new (t || CdkCopyToClipboard)(_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](Clipboard), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](_angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone), _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdirectiveInject"](CDK_COPY_TO_CLIPBOARD_CONFIG, 8));
1883
- };
1884
-
1885
- CdkCopyToClipboard.ɵdir = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineDirective"]({
1886
- type: CdkCopyToClipboard,
1887
- selectors: [["", "cdkCopyToClipboard", ""]],
1888
- hostBindings: function CdkCopyToClipboard_HostBindings(rf, ctx) {
1889
- if (rf & 1) {
1890
- _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵlistener"]("click", function CdkCopyToClipboard_click_HostBindingHandler() {
1891
- return ctx.copy();
1892
- });
1893
- }
1894
- },
1895
- inputs: {
1896
- text: ["cdkCopyToClipboard", "text"],
1897
- attempts: ["cdkCopyToClipboardAttempts", "attempts"]
1898
- },
1899
- outputs: {
1900
- copied: "cdkCopyToClipboardCopied"
1901
- }
1902
- });
1903
-
1904
- (function () {
1905
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](CdkCopyToClipboard, [{
1906
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Directive,
1907
- args: [{
1908
- selector: '[cdkCopyToClipboard]',
1909
- host: {
1910
- '(click)': 'copy()'
1911
- }
1912
- }]
1913
- }], function () {
1914
- return [{
1915
- type: Clipboard
1916
- }, {
1917
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgZone
1918
- }, {
1919
- type: undefined,
1920
- decorators: [{
1921
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Optional
1922
- }, {
1923
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Inject,
1924
- args: [CDK_COPY_TO_CLIPBOARD_CONFIG]
1925
- }]
1926
- }];
1927
- }, {
1928
- text: [{
1929
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
1930
- args: ['cdkCopyToClipboard']
1931
- }],
1932
- attempts: [{
1933
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Input,
1934
- args: ['cdkCopyToClipboardAttempts']
1935
- }],
1936
- copied: [{
1937
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.Output,
1938
- args: ['cdkCopyToClipboardCopied']
1939
- }]
1940
- });
1941
- })();
1942
- /**
1943
- * @license
1944
- * Copyright Google LLC All Rights Reserved.
1945
- *
1946
- * Use of this source code is governed by an MIT-style license that can be
1947
- * found in the LICENSE file at https://angular.io/license
1948
- */
1949
-
1950
-
1951
- class ClipboardModule {}
1952
-
1953
- ClipboardModule.ɵfac = function ClipboardModule_Factory(t) {
1954
- return new (t || ClipboardModule)();
1955
- };
1956
-
1957
- ClipboardModule.ɵmod = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineNgModule"]({
1958
- type: ClipboardModule
1959
- });
1960
- ClipboardModule.ɵinj = /* @__PURE__ */_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineInjector"]({});
1961
-
1962
- (function () {
1963
- (typeof ngDevMode === "undefined" || ngDevMode) && _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵsetClassMetadata"](ClipboardModule, [{
1964
- type: _angular_core__WEBPACK_IMPORTED_MODULE_0__.NgModule,
1965
- args: [{
1966
- declarations: [CdkCopyToClipboard],
1967
- exports: [CdkCopyToClipboard]
1968
- }]
1969
- }], null, null);
1970
- })();
1971
- /**
1972
- * @license
1973
- * Copyright Google LLC All Rights Reserved.
1974
- *
1975
- * Use of this source code is governed by an MIT-style license that can be
1976
- * found in the LICENSE file at https://angular.io/license
1977
- */
1978
-
1979
- /**
1980
- * @license
1981
- * Copyright Google LLC All Rights Reserved.
1982
- *
1983
- * Use of this source code is governed by an MIT-style license that can be
1984
- * found in the LICENSE file at https://angular.io/license
1985
- */
1986
-
1987
- /**
1988
- * Generated bundle index. Do not edit.
1989
- */
1990
-
1991
-
1992
-
1993
-
1994
- /***/ })
1995
-
1996
- }]);
1997
- //# sourceMappingURL=src_app_menu_object-log_logs_module_ts.js.map