marketplacepos 2.4.7 → 2.4.8
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.
- package/Marketplace/common.js +238 -0
- package/Marketplace/common.js.map +1 -0
- package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js +9551 -0
- package/Marketplace/default-node_modules_angular_forms_fesm2020_forms_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js +797 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_paginator_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_slide-toggle_mjs.js +669 -0
- package/Marketplace/default-node_modules_angular_material_fesm2020_slide-toggle_mjs.js.map +1 -0
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js +4632 -0
- package/Marketplace/default-node_modules_ng-select_ng-select_fesm2020_ng-select-ng-select_mjs.js.map +1 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js +6841 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-node_modules_angular_material_fesm2020_date-e7a231.js.map +1 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-src_app_services_biggerPicture_service_ts-s-b16afe.js +3316 -0
- package/Marketplace/default-src_app_menu_nav-tab_nav-tab_component_ts-src_app_services_biggerPicture_service_ts-s-b16afe.js.map +1 -0
- package/Marketplace/default-src_app_model_enums_FilterType_enum_ts-src_app_sharing-module_table_table_component_ts.js +6219 -0
- package/Marketplace/default-src_app_model_enums_FilterType_enum_ts-src_app_sharing-module_table_table_component_ts.js.map +1 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js +19965 -0
- package/Marketplace/default-src_app_sharing-module_datepicker_datepicker_component_ts.js.map +1 -0
- package/Marketplace/index.html +23 -22
- package/Marketplace/main.js +622 -0
- package/Marketplace/main.js.map +1 -0
- package/Marketplace/polyfills.js +3398 -0
- package/Marketplace/polyfills.js.map +1 -0
- package/Marketplace/runtime.js +346 -0
- package/Marketplace/runtime.js.map +1 -0
- package/Marketplace/scripts.js +9 -0
- package/Marketplace/scripts.js.map +1 -0
- package/Marketplace/src_app_login_login_module_ts.js +651 -0
- package/Marketplace/src_app_login_login_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_ReportOrder_order_order_module_ts.js +872 -0
- package/Marketplace/src_app_menu_ReportOrder_order_order_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_ReportOrder_product-statistic_product-statistic_module_ts.js +422 -0
- package/Marketplace/src_app_menu_ReportOrder_product-statistic_product-statistic_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js +283 -0
- package/Marketplace/src_app_menu_ReportOrder_report_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js +9605 -0
- package/Marketplace/src_app_menu_channels_channels_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js +1547 -0
- package/Marketplace/src_app_menu_inventory_inventory_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js +245 -0
- package/Marketplace/src_app_menu_logistic_logistic_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_menu_module_ts.js +40326 -0
- package/Marketplace/src_app_menu_menu_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_notification_notification_module_ts.js +285 -0
- package/Marketplace/src_app_menu_notification_notification_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js +1817 -0
- package/Marketplace/src_app_menu_object-log_logs_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_orders_orders_module_ts.js +4867 -0
- package/Marketplace/src_app_menu_orders_orders_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js +1885 -0
- package/Marketplace/src_app_menu_price_price_module_ts.js.map +1 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js +2692 -0
- package/Marketplace/src_app_menu_products_product_module_ts.js.map +1 -0
- package/Marketplace/styles.css +16565 -0
- package/Marketplace/styles.css.map +1 -0
- package/Marketplace/vendor.js +71624 -0
- package/Marketplace/vendor.js.map +1 -0
- package/package.json +1 -1
- package/Marketplace/162.607e0d0557cd1e06.js +0 -1
- package/Marketplace/174.981a3e729681507b.js +0 -1
- package/Marketplace/180.bfed0f08b5cdbbde.js +0 -1
- package/Marketplace/25.5e00713dbd080b64.js +0 -1
- package/Marketplace/32.9c83cc1dfc19e37d.js +0 -1
- package/Marketplace/360.4fa1f449dc516500.js +0 -1
- package/Marketplace/369.22148155f90d64b2.js +0 -1
- package/Marketplace/397.727785281e7927cb.js +0 -1
- package/Marketplace/3rdpartylicenses.txt +0 -568
- package/Marketplace/455.fc7663306b753727.js +0 -1
- package/Marketplace/463.7140b32660c473a4.js +0 -1
- package/Marketplace/512.96a1a3c8c51a8727.js +0 -1
- package/Marketplace/516.f335756d88de781a.js +0 -1
- package/Marketplace/585.9e916b668a91cc94.js +0 -1
- package/Marketplace/6.fc79ecc0c0a33462.js +0 -1
- package/Marketplace/616.fb179a9605c3e98c.js +0 -1
- package/Marketplace/716.65e3e9a36c3e8be6.js +0 -1
- package/Marketplace/717.c3d108362a36e597.js +0 -1
- package/Marketplace/739.82b92600f9519019.js +0 -1
- package/Marketplace/785.e0040d021febffb1.js +0 -1
- package/Marketplace/796.d34bd45b5a924fca.js +0 -1
- package/Marketplace/832.6082371d3ebb95a0.js +0 -1
- package/Marketplace/874.6ae77583afef7f90.js +0 -1
- package/Marketplace/common.3f5874655db24424.js +0 -1
- package/Marketplace/main.195197d9958646d1.js +0 -1
- package/Marketplace/polyfills.8d85b0533e3f867a.js +0 -1
- package/Marketplace/runtime.d61181a09cffdcb7.js +0 -1
- package/Marketplace/scripts.09af772bfa77d50d.js +0 -1
- package/Marketplace/styles.dff58ae3c0783953.css +0 -20
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
(self["webpackChunkpos_marketplace"] = self["webpackChunkpos_marketplace"] || []).push([["src_app_menu_ReportOrder_report_module_ts"],{
|
|
3
|
+
|
|
4
|
+
/***/ 7074:
|
|
5
|
+
/*!************************************************************!*\
|
|
6
|
+
!*** ./src/app/menu/ReportOrder/report-order.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 */ "ReportOrderComponent": () => (/* binding */ ReportOrderComponent)
|
|
13
|
+
/* harmony export */ });
|
|
14
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
15
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/router */ 124);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class ReportOrderComponent {
|
|
19
|
+
constructor() { }
|
|
20
|
+
}
|
|
21
|
+
ReportOrderComponent.ɵfac = function ReportOrderComponent_Factory(t) { return new (t || ReportOrderComponent)(); };
|
|
22
|
+
ReportOrderComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵdefineComponent"]({ type: ReportOrderComponent, selectors: [["app-report"]], decls: 1, vars: 0, template: function ReportOrderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_0__["ɵɵelement"](0, "router-outlet");
|
|
24
|
+
} }, dependencies: [_angular_router__WEBPACK_IMPORTED_MODULE_1__.RouterOutlet], styles: ["ul[_ngcontent-%COMP%] > li.dropdown-item[_ngcontent-%COMP%] {\n font-size: 0.6875rem !important;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInJlcG9ydC1vcmRlci5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNJLCtCQUFBO0FBQ0oiLCJmaWxlIjoicmVwb3J0LW9yZGVyLmNvbXBvbmVudC5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsidWwgPiBsaS5kcm9wZG93bi1pdGVtIHtcclxuICAgIGZvbnQtc2l6ZTogLjY4NzVyZW0gIWltcG9ydGFudDtcclxufSJdfQ== */"] });
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
/***/ }),
|
|
28
|
+
|
|
29
|
+
/***/ 1159:
|
|
30
|
+
/*!***********************************************************!*\
|
|
31
|
+
!*** ./src/app/menu/ReportOrder/report-routing.module.ts ***!
|
|
32
|
+
\***********************************************************/
|
|
33
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
34
|
+
|
|
35
|
+
__webpack_require__.r(__webpack_exports__);
|
|
36
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
37
|
+
/* harmony export */ "ReportRoutingModule": () => (/* binding */ ReportRoutingModule)
|
|
38
|
+
/* harmony export */ });
|
|
39
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
40
|
+
/* harmony import */ var _report_order_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./report-order.component */ 7074);
|
|
41
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/router */ 124);
|
|
42
|
+
/* harmony import */ var src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! src/app/services/auth.guard */ 8063);
|
|
43
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
const routes = [
|
|
51
|
+
{
|
|
52
|
+
path: "",
|
|
53
|
+
component: _report_order_component__WEBPACK_IMPORTED_MODULE_0__.ReportOrderComponent,
|
|
54
|
+
children: [
|
|
55
|
+
{
|
|
56
|
+
path: "",
|
|
57
|
+
redirectTo: "order",
|
|
58
|
+
pathMatch: "full",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: "order",
|
|
62
|
+
loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_menu_ReportOrder_order_order_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./order/order.module */ 1480)).then(m => m.OrderModule),
|
|
63
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
path: "product-statistic",
|
|
67
|
+
loadChildren: () => __webpack_require__.e(/*! import() */ "src_app_menu_ReportOrder_product-statistic_product-statistic_module_ts").then(__webpack_require__.bind(__webpack_require__, /*! ./product-statistic/product-statistic.module */ 2649)).then(m => m.ProductStatisticModule),
|
|
68
|
+
canActivate: [src_app_services_auth_guard__WEBPACK_IMPORTED_MODULE_1__.AuthGuard],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
];
|
|
73
|
+
class ReportRoutingModule {
|
|
74
|
+
}
|
|
75
|
+
ReportRoutingModule.ɵfac = function ReportRoutingModule_Factory(t) { return new (t || ReportRoutingModule)(); };
|
|
76
|
+
ReportRoutingModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineNgModule"]({ type: ReportRoutingModule });
|
|
77
|
+
ReportRoutingModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule,
|
|
78
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule.forChild(routes)] });
|
|
79
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_2__["ɵɵsetNgModuleScope"](ReportRoutingModule, { imports: [_angular_common__WEBPACK_IMPORTED_MODULE_3__.CommonModule, _angular_router__WEBPACK_IMPORTED_MODULE_4__.RouterModule] }); })();
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/***/ }),
|
|
83
|
+
|
|
84
|
+
/***/ 6670:
|
|
85
|
+
/*!***************************************************!*\
|
|
86
|
+
!*** ./src/app/menu/ReportOrder/report.module.ts ***!
|
|
87
|
+
\***************************************************/
|
|
88
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
89
|
+
|
|
90
|
+
__webpack_require__.r(__webpack_exports__);
|
|
91
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
92
|
+
/* harmony export */ "ReportModule": () => (/* binding */ ReportModule)
|
|
93
|
+
/* harmony export */ });
|
|
94
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
95
|
+
/* harmony import */ var _report_order_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./report-order.component */ 7074);
|
|
96
|
+
/* harmony import */ var _nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../nav-tab/nav-tab.component */ 7398);
|
|
97
|
+
/* harmony import */ var _report_routing_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./report-routing.module */ 1159);
|
|
98
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
99
|
+
/* harmony import */ var _main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../main-panel/main-panel.component */ 7481);
|
|
100
|
+
/* harmony import */ var src_app_sharing_module_datepicker_range_datepicker_range_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/sharing-module/datepicker-range/datepicker-range.component */ 5171);
|
|
101
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/router */ 124);
|
|
102
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class ReportModule {
|
|
113
|
+
}
|
|
114
|
+
ReportModule.ɵfac = function ReportModule_Factory(t) { return new (t || ReportModule)(); };
|
|
115
|
+
ReportModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineNgModule"]({ type: ReportModule });
|
|
116
|
+
ReportModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵdefineInjector"]({ imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule,
|
|
117
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_1__.NavTabModule,
|
|
118
|
+
_report_routing_module__WEBPACK_IMPORTED_MODULE_2__.ReportRoutingModule,
|
|
119
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
|
|
120
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__.MainPanelModule,
|
|
121
|
+
src_app_sharing_module_datepicker_range_datepicker_range_component__WEBPACK_IMPORTED_MODULE_4__.DatepickerRangeModule,
|
|
122
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule] });
|
|
123
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_5__["ɵɵsetNgModuleScope"](ReportModule, { declarations: [_report_order_component__WEBPACK_IMPORTED_MODULE_0__.ReportOrderComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_6__.CommonModule,
|
|
124
|
+
_nav_tab_nav_tab_component__WEBPACK_IMPORTED_MODULE_1__.NavTabModule,
|
|
125
|
+
_report_routing_module__WEBPACK_IMPORTED_MODULE_2__.ReportRoutingModule,
|
|
126
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_7__.FormsModule,
|
|
127
|
+
_main_panel_main_panel_component__WEBPACK_IMPORTED_MODULE_3__.MainPanelModule,
|
|
128
|
+
src_app_sharing_module_datepicker_range_datepicker_range_component__WEBPACK_IMPORTED_MODULE_4__.DatepickerRangeModule,
|
|
129
|
+
_angular_router__WEBPACK_IMPORTED_MODULE_8__.RouterModule] }); })();
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
/***/ }),
|
|
133
|
+
|
|
134
|
+
/***/ 5171:
|
|
135
|
+
/*!*******************************************************************************!*\
|
|
136
|
+
!*** ./src/app/sharing-module/datepicker-range/datepicker-range.component.ts ***!
|
|
137
|
+
\*******************************************************************************/
|
|
138
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
139
|
+
|
|
140
|
+
__webpack_require__.r(__webpack_exports__);
|
|
141
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
142
|
+
/* harmony export */ "DatepickerRangeComponent": () => (/* binding */ DatepickerRangeComponent),
|
|
143
|
+
/* harmony export */ "DatepickerRangeModule": () => (/* binding */ DatepickerRangeModule),
|
|
144
|
+
/* harmony export */ "MY_FORMATS": () => (/* binding */ MY_FORMATS)
|
|
145
|
+
/* harmony export */ });
|
|
146
|
+
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @angular/common */ 4666);
|
|
147
|
+
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ 2560);
|
|
148
|
+
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/forms */ 2508);
|
|
149
|
+
/* harmony import */ var _angular_material_moment_adapter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/material-moment-adapter */ 7118);
|
|
150
|
+
/* harmony import */ var _angular_material_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @angular/material/button */ 4522);
|
|
151
|
+
/* harmony import */ var _angular_material_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/material/core */ 9121);
|
|
152
|
+
/* harmony import */ var _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @angular/material/datepicker */ 2298);
|
|
153
|
+
/* harmony import */ var _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @angular/material/form-field */ 5074);
|
|
154
|
+
/* harmony import */ var _angular_material_input__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @angular/material/input */ 8562);
|
|
155
|
+
/* harmony import */ var _datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../datepicker/datepicker.component */ 5585);
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
function DatepickerRangeComponent_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
172
|
+
const _r3 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
|
|
173
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerStart"](0);
|
|
174
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](1, "mat-date-range-picker-actions")(2, "button", 7);
|
|
175
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](3, "Cancel");
|
|
176
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
|
177
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](4, "button", 8);
|
|
178
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("click", function DatepickerRangeComponent_ng_container_7_Template_button_click_4_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r3); const ctx_r2 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵnextContext"](); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](ctx_r2.onSelectDate()); });
|
|
179
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtext"](5, "Search");
|
|
180
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
181
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementContainerEnd"]();
|
|
182
|
+
} }
|
|
183
|
+
const MY_FORMATS = {
|
|
184
|
+
parse: {
|
|
185
|
+
dateInput: "DD MMM YYYY",
|
|
186
|
+
},
|
|
187
|
+
display: {
|
|
188
|
+
dateInput: "DD MMM YYYY",
|
|
189
|
+
monthYearLabel: "MMM YYYY",
|
|
190
|
+
dateA11yLabel: "LL",
|
|
191
|
+
monthYearA11yLabel: "MMMM YYYY",
|
|
192
|
+
},
|
|
193
|
+
};
|
|
194
|
+
class DatepickerRangeComponent {
|
|
195
|
+
constructor() {
|
|
196
|
+
this.disabled = false;
|
|
197
|
+
this.widthClass = "w-100";
|
|
198
|
+
this.showButtonConfirm = false;
|
|
199
|
+
this.dateChange = new _angular_core__WEBPACK_IMPORTED_MODULE_1__.EventEmitter();
|
|
200
|
+
}
|
|
201
|
+
fromDateChange(momentValue) {
|
|
202
|
+
let date = momentValue?.toDate();
|
|
203
|
+
this.from = date;
|
|
204
|
+
}
|
|
205
|
+
toDateChange(momentValue) {
|
|
206
|
+
if (momentValue) {
|
|
207
|
+
let date = momentValue.toDate();
|
|
208
|
+
this.to = date;
|
|
209
|
+
if (!this.showButtonConfirm) {
|
|
210
|
+
this.emitDateChange();
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
emitDateChange() {
|
|
215
|
+
this.dateChange.emit({
|
|
216
|
+
from: this.from,
|
|
217
|
+
to: this.to,
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
onSelectDate() {
|
|
221
|
+
this.emitDateChange();
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
DatepickerRangeComponent.ɵfac = function DatepickerRangeComponent_Factory(t) { return new (t || DatepickerRangeComponent)(); };
|
|
225
|
+
DatepickerRangeComponent.ɵcmp = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineComponent"]({ type: DatepickerRangeComponent, selectors: [["app-datepicker-range"]], inputs: { placeholder: "placeholder", displayToggle: "displayToggle", date: "date", disabled: "disabled", minDate: "minDate", widthClass: "widthClass", showButtonConfirm: "showButtonConfirm", from: "from", to: "to" }, outputs: { dateChange: "dateChange" }, features: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵProvidersFeature"]([
|
|
226
|
+
{
|
|
227
|
+
provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_2__.DateAdapter,
|
|
228
|
+
useClass: _angular_material_moment_adapter__WEBPACK_IMPORTED_MODULE_3__.MomentDateAdapter,
|
|
229
|
+
deps: [_angular_material_core__WEBPACK_IMPORTED_MODULE_2__.MAT_DATE_LOCALE],
|
|
230
|
+
},
|
|
231
|
+
{ provide: _angular_material_core__WEBPACK_IMPORTED_MODULE_2__.MAT_DATE_FORMATS, useValue: MY_FORMATS },
|
|
232
|
+
])], decls: 8, vars: 8, consts: [["appearance", "outline"], ["id", "dates", 3, "min", "rangePicker"], ["matStartDate", "", "placeholder", "Start date", 3, "value", "dateChange", "click"], ["matEndDate", "", "placeholder", "End date", 3, "value", "dateChange", "click"], ["matPrefix", "", 3, "for"], ["picker", ""], [4, "ngIf"], ["mat-button", "", "matDateRangePickerCancel", ""], ["mat-raised-button", "", "color", "primary", "matDateRangePickerApply", "", 3, "click"]], template: function DatepickerRangeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
233
|
+
const _r4 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵgetCurrentView"]();
|
|
234
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](0, "mat-form-field", 0)(1, "mat-date-range-input", 1)(2, "input", 2);
|
|
235
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateChange", function DatepickerRangeComponent_Template_input_dateChange_2_listener($event) { return ctx.fromDateChange($event.value); })("click", function DatepickerRangeComponent_Template_input_click_2_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](6); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](_r0.open()); });
|
|
236
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]();
|
|
237
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](3, "input", 3);
|
|
238
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵlistener"]("dateChange", function DatepickerRangeComponent_Template_input_dateChange_3_listener($event) { return ctx.toDateChange($event.value); })("click", function DatepickerRangeComponent_Template_input_click_3_listener() { _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵrestoreView"](_r4); const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](6); return _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵresetView"](_r0.open()); });
|
|
239
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
240
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelement"](4, "mat-datepicker-toggle", 4);
|
|
241
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementStart"](5, "mat-date-range-picker", null, 5);
|
|
242
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵtemplate"](7, DatepickerRangeComponent_ng_container_7_Template, 6, 0, "ng-container", 6);
|
|
243
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵelementEnd"]()();
|
|
244
|
+
} if (rf & 2) {
|
|
245
|
+
const _r0 = _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵreference"](6);
|
|
246
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵclassMap"](ctx.widthClass);
|
|
247
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
|
|
248
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("min", ctx.minDate)("rangePicker", _r0);
|
|
249
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
|
|
250
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx.from);
|
|
251
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
|
|
252
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("value", ctx.to);
|
|
253
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](1);
|
|
254
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("for", _r0);
|
|
255
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵadvance"](3);
|
|
256
|
+
_angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵproperty"]("ngIf", ctx.showButtonConfirm);
|
|
257
|
+
} }, dependencies: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.NgIf, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDatepickerToggle, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDateRangeInput, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatStartDate, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatEndDate, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDateRangePicker, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDatepickerActions, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDatepickerCancel, _angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDatepickerApply, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__.MatFormField, _angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__.MatPrefix, _angular_material_button__WEBPACK_IMPORTED_MODULE_7__.MatButton], styles: ["mat-date-range-input[_ngcontent-%COMP%] {\n font-size: 0.875rem;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImRhdGVwaWNrZXItcmFuZ2UuY29tcG9uZW50LnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDSSxtQkFBQTtBQUNKIiwiZmlsZSI6ImRhdGVwaWNrZXItcmFuZ2UuY29tcG9uZW50LnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyJtYXQtZGF0ZS1yYW5nZS1pbnB1dCB7XHJcbiAgICBmb250LXNpemU6IDAuODc1cmVtO1xyXG59Il19 */"] });
|
|
258
|
+
class DatepickerRangeModule {
|
|
259
|
+
}
|
|
260
|
+
DatepickerRangeModule.ɵfac = function DatepickerRangeModule_Factory(t) { return new (t || DatepickerRangeModule)(); };
|
|
261
|
+
DatepickerRangeModule.ɵmod = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineNgModule"]({ type: DatepickerRangeModule });
|
|
262
|
+
DatepickerRangeModule.ɵinj = /*@__PURE__*/ _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵdefineInjector"]({ providers: [_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDatepickerModule], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule,
|
|
263
|
+
_angular_material_core__WEBPACK_IMPORTED_MODULE_2__.MatNativeDateModule,
|
|
264
|
+
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDatepickerModule,
|
|
265
|
+
_angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__.MatFormFieldModule,
|
|
266
|
+
_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_0__.DatepickerModule,
|
|
267
|
+
_angular_material_input__WEBPACK_IMPORTED_MODULE_8__.MatInputModule,
|
|
268
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormsModule,
|
|
269
|
+
_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.MatButtonModule] });
|
|
270
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && _angular_core__WEBPACK_IMPORTED_MODULE_1__["ɵɵsetNgModuleScope"](DatepickerRangeModule, { declarations: [DatepickerRangeComponent], imports: [_angular_common__WEBPACK_IMPORTED_MODULE_4__.CommonModule,
|
|
271
|
+
_angular_material_core__WEBPACK_IMPORTED_MODULE_2__.MatNativeDateModule,
|
|
272
|
+
_angular_material_datepicker__WEBPACK_IMPORTED_MODULE_5__.MatDatepickerModule,
|
|
273
|
+
_angular_material_form_field__WEBPACK_IMPORTED_MODULE_6__.MatFormFieldModule,
|
|
274
|
+
_datepicker_datepicker_component__WEBPACK_IMPORTED_MODULE_0__.DatepickerModule,
|
|
275
|
+
_angular_material_input__WEBPACK_IMPORTED_MODULE_8__.MatInputModule,
|
|
276
|
+
_angular_forms__WEBPACK_IMPORTED_MODULE_9__.FormsModule,
|
|
277
|
+
_angular_material_button__WEBPACK_IMPORTED_MODULE_7__.MatButtonModule], exports: [DatepickerRangeComponent] }); })();
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
/***/ })
|
|
281
|
+
|
|
282
|
+
}]);
|
|
283
|
+
//# sourceMappingURL=src_app_menu_ReportOrder_report_module_ts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"src_app_menu_ReportOrder_report_module_ts.js","mappings":"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","sources":["./src/app/menu/ReportOrder/report-order.component.ts","./src/app/menu/ReportOrder/report-order.component.html","./src/app/menu/ReportOrder/report-routing.module.ts","./src/app/menu/ReportOrder/report.module.ts","./src/app/sharing-module/datepicker-range/datepicker-range.component.ts","./src/app/sharing-module/datepicker-range/datepicker-range.component.html"],"sourcesContent":["import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'app-report',\r\n templateUrl: './report-order.component.html',\r\n styleUrls: ['./report-order.component.scss']\r\n})\r\nexport class ReportOrderComponent {\r\n\r\n constructor() { }\r\n\r\n}\r\n","<router-outlet></router-outlet>","import { NgModule } from \"@angular/core\";\r\nimport { CommonModule } from \"@angular/common\";\r\nimport { ReportOrderComponent } from \"./report-order.component\";\r\nimport { RouterModule, Routes } from \"@angular/router\";\r\nimport { SalesOrderComponent } from \"./order/sales-order/sales-order.component\";\r\nimport { AuthGuard } from \"src/app/services/auth.guard\";\r\n\r\nconst routes: Routes = [\r\n {\r\n path: \"\",\r\n component: ReportOrderComponent,\r\n children: [\r\n {\r\n path: \"\",\r\n redirectTo: \"order\",\r\n pathMatch: \"full\",\r\n },\r\n {\r\n path: \"order\",\r\n loadChildren: () => import('./order/order.module').then(m => m.OrderModule),\r\n canActivate: [AuthGuard],\r\n },\r\n {\r\n path: \"product-statistic\",\r\n loadChildren: () => import('./product-statistic/product-statistic.module').then(m => m.ProductStatisticModule),\r\n canActivate: [AuthGuard],\r\n },\r\n ],\r\n },\r\n];\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n RouterModule.forChild(routes)\r\n ]\r\n})\r\nexport class ReportRoutingModule {}\r\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { ReportOrderComponent } from './report-order.component';\r\nimport { NavTabModule } from '../nav-tab/nav-tab.component';\r\nimport { ReportRoutingModule } from './report-routing.module';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MainPanelModule } from '../main-panel/main-panel.component';\r\nimport { DatepickerRangeModule } from 'src/app/sharing-module/datepicker-range/datepicker-range.component';\r\nimport { RouterModule } from '@angular/router';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n NavTabModule,\r\n ReportRoutingModule,\r\n FormsModule,\r\n MainPanelModule,\r\n DatepickerRangeModule,\r\n RouterModule\r\n ],\r\n declarations: [\r\n ReportOrderComponent\r\n ],\r\n schemas: [NO_ERRORS_SCHEMA]\r\n})\r\nexport class ReportModule { }\r\n","import { CommonModule } from \"@angular/common\";\r\nimport {\r\n Component,\r\n EventEmitter,\r\n Input,\r\n NgModule,\r\n Output,\r\n} from \"@angular/core\";\r\nimport { FormsModule } from \"@angular/forms\";\r\nimport { MomentDateAdapter } from \"@angular/material-moment-adapter\";\r\nimport { MatButtonModule } from \"@angular/material/button\";\r\n\r\nimport {\r\n DateAdapter,\r\n MatNativeDateModule,\r\n MAT_DATE_FORMATS,\r\n MAT_DATE_LOCALE,\r\n} from \"@angular/material/core\";\r\nimport { MatDatepickerModule } from \"@angular/material/datepicker\";\r\nimport { MatFormFieldModule } from \"@angular/material/form-field\";\r\nimport { MatInputModule } from \"@angular/material/input\";\r\nimport * as _moment from \"moment\";\r\nimport { defaultFormat as _rollupMoment } from \"moment\";\r\nimport { DatepickerModule } from \"../datepicker/datepicker.component\";\r\n\r\nexport const MY_FORMATS = {\r\n parse: {\r\n dateInput: \"DD MMM YYYY\",\r\n },\r\n display: {\r\n dateInput: \"DD MMM YYYY\",\r\n monthYearLabel: \"MMM YYYY\",\r\n dateA11yLabel: \"LL\",\r\n monthYearA11yLabel: \"MMMM YYYY\",\r\n },\r\n};\r\n@Component({\r\n selector: \"app-datepicker-range\",\r\n templateUrl: \"./datepicker-range.component.html\",\r\n styleUrls: [\"./datepicker-range.component.scss\"],\r\n providers: [\r\n {\r\n provide: DateAdapter,\r\n useClass: MomentDateAdapter,\r\n deps: [MAT_DATE_LOCALE],\r\n },\r\n { provide: MAT_DATE_FORMATS, useValue: MY_FORMATS },\r\n ],\r\n})\r\nexport class DatepickerRangeComponent {\r\n @Input() placeholder: string;\r\n @Input() displayToggle: boolean;\r\n @Input() date: string;\r\n @Input() disabled = false;\r\n @Input() minDate: Date;\r\n @Input() widthClass = \"w-100\";\r\n @Input() showButtonConfirm: boolean = false;\r\n\r\n @Output() dateChange: EventEmitter<{ from: Date; to: Date }> =\r\n new EventEmitter<{ from: Date; to: Date }>();\r\n\r\n @Input() from: Date;\r\n @Input() to: Date;\r\n\r\n fromDateChange(momentValue: _moment.Moment): void {\r\n let date = momentValue?.toDate();\r\n this.from = date;\r\n }\r\n\r\n toDateChange(momentValue: _moment.Moment): void {\r\n if (momentValue) {\r\n let date = momentValue.toDate();\r\n this.to = date;\r\n \r\n if (!this.showButtonConfirm) {\r\n this.emitDateChange();\r\n }\r\n }\r\n }\r\n\r\n private emitDateChange() {\r\n this.dateChange.emit({\r\n from: this.from,\r\n to: this.to,\r\n });\r\n }\r\n\r\n public onSelectDate() {\r\n this.emitDateChange();\r\n }\r\n}\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n MatNativeDateModule,\r\n MatDatepickerModule,\r\n MatFormFieldModule,\r\n DatepickerModule,\r\n MatInputModule,\r\n FormsModule,\r\n MatButtonModule,\r\n ],\r\n providers: [MatDatepickerModule],\r\n declarations: [DatepickerRangeComponent],\r\n exports: [DatepickerRangeComponent],\r\n})\r\nexport class DatepickerRangeModule {}\r\n","<mat-form-field appearance=\"outline\" [class]=\"widthClass\">\r\n <mat-date-range-input [min]=\"minDate\" id=\"dates\" [rangePicker]=\"picker\">\r\n <input [value]=\"from\" (dateChange)=\"fromDateChange($event.value)\" matStartDate placeholder=\"Start date\"\r\n (click)=\"picker.open()\">\r\n <input [value]=\"to\" (dateChange)=\"toDateChange($event.value)\" matEndDate placeholder=\"End date\"\r\n (click)=\"picker.open()\">\r\n </mat-date-range-input>\r\n <mat-datepicker-toggle matPrefix [for]=\"picker\"></mat-datepicker-toggle>\r\n <mat-date-range-picker #picker>\r\n <ng-container *ngIf=\"showButtonConfirm\">\r\n <mat-date-range-picker-actions>\r\n <button mat-button matDateRangePickerCancel>Cancel</button>\r\n <button mat-raised-button color=\"primary\" matDateRangePickerApply\r\n (click)=\"onSelectDate()\">Search</button>\r\n </mat-date-range-picker-actions>\r\n </ng-container>\r\n </mat-date-range-picker>\r\n</mat-form-field>"],"names":[],"sourceRoot":"webpack:///"}
|