@colijnit/sharedcomponents 1.0.39 → 1.0.41
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/bundles/colijnit-sharedcomponents.umd.js +598 -486
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +44 -41
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +45 -42
- package/esm2015/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.js +9 -11
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +4 -2
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +22 -39
- package/esm2015/lib/components/statusbar/statusbar-popup.component.js +29 -0
- package/esm2015/lib/components/statusbar/statusbar.component.js +33 -34
- package/esm2015/lib/components/statusbar/statusbar.module.js +14 -10
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +20 -3
- package/esm2015/lib/components/stock/stock-information/stock-information.component.js +3 -2
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +4 -8
- package/esm2015/lib/components/stock/stock.component.js +17 -2
- package/esm2015/lib/components/stock/stock.module.js +6 -2
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.component.js +23 -0
- package/esm2015/lib/components/stock-statusbar/stock-statusbar.module.js +19 -0
- package/esm2015/lib/service/shared-connector.service.js +17 -1
- package/esm2015/lib/service/stock.service.js +6 -1
- package/fesm2015/colijnit-sharedcomponents.js +522 -419
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/screen-config-generator/style/_layout.scss +65 -0
- package/lib/components/screen-config-generator/style/_material-definition.scss +0 -0
- package/lib/components/screen-config-generator/style/_theme.scss +4 -0
- package/lib/components/screen-config-generator/style/material.scss +4 -0
- package/lib/components/send-method-dialog/components/printer-selection/printer-selection.component.d.ts +1 -1
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +2 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +4 -7
- package/lib/components/statusbar/statusbar-popup.component.d.ts +7 -0
- package/lib/components/statusbar/statusbar.component.d.ts +9 -8
- package/lib/components/statusbar/style/_layout.scss +12 -28
- package/lib/components/statusbar/style/_theme.scss +5 -6
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +3 -0
- package/lib/components/stock/stock-information/stock-information.component.d.ts +1 -2
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +1 -2
- package/lib/components/stock/stock.component.d.ts +8 -2
- package/lib/components/stock-statusbar/stock-statusbar.component.d.ts +4 -0
- package/lib/components/stock-statusbar/stock-statusbar.module.d.ts +2 -0
- package/lib/components/stock-statusbar/style/_layout.scss +25 -0
- package/lib/components/stock-statusbar/style/_material-definition.scss +0 -0
- package/lib/components/stock-statusbar/style/_theme.scss +0 -0
- package/lib/components/stock-statusbar/style/material.scss +4 -0
- package/lib/service/shared-connector.service.d.ts +1 -0
- package/lib/service/stock.service.d.ts +1 -0
- package/package.json +14 -10
- package/3rdpartylicenses.txt +0 -1198
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.87c7441f408aa46a818e.js +0 -1
- package/polyfills.4a44032b137d291298c3.js +0 -1
- package/runtime.8aac21847ed3d3829cca.js +0 -1
- package/styles.24f196f586ef43bbe450.css +0 -110
|
@@ -730,13 +730,13 @@
|
|
|
730
730
|
},] }
|
|
731
731
|
];
|
|
732
732
|
|
|
733
|
-
exports["
|
|
733
|
+
exports["ɵbr"] = void 0;
|
|
734
734
|
(function (LanguageCode) {
|
|
735
735
|
LanguageCode["Dutch"] = "nl-NL";
|
|
736
736
|
LanguageCode["English"] = "en-GB";
|
|
737
737
|
LanguageCode["German"] = "de-DE";
|
|
738
738
|
LanguageCode["French"] = "fr-FR";
|
|
739
|
-
})(exports["
|
|
739
|
+
})(exports["ɵbr"] || (exports["ɵbr"] = {}));
|
|
740
740
|
|
|
741
741
|
// Static utility functions holder related to strings.
|
|
742
742
|
var StringUtils = /** @class */ (function () {
|
|
@@ -850,7 +850,7 @@
|
|
|
850
850
|
DictionaryService.prototype.setDictionary = function (language) {
|
|
851
851
|
return __awaiter(this, void 0, void 0, function () {
|
|
852
852
|
return __generator(this, function (_a) {
|
|
853
|
-
this._language = language || exports["
|
|
853
|
+
this._language = language || exports["ɵbr"].Dutch;
|
|
854
854
|
this._loadDictionary();
|
|
855
855
|
return [2 /*return*/];
|
|
856
856
|
});
|
|
@@ -883,7 +883,7 @@
|
|
|
883
883
|
return key || "";
|
|
884
884
|
}
|
|
885
885
|
if (this.language === undefined) {
|
|
886
|
-
this._language = exports["
|
|
886
|
+
this._language = exports["ɵbr"].Dutch;
|
|
887
887
|
this._loadDictionary();
|
|
888
888
|
}
|
|
889
889
|
var text = this._dictionaries.get(this.language)[key];
|
|
@@ -1109,6 +1109,25 @@
|
|
|
1109
1109
|
});
|
|
1110
1110
|
});
|
|
1111
1111
|
};
|
|
1112
|
+
SharedConnectorService.prototype.getArtStockStatus = function (goodId, branchNo, requestedAmount, warehouseId) {
|
|
1113
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1114
|
+
var _this = this;
|
|
1115
|
+
return __generator(this, function (_a) {
|
|
1116
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1117
|
+
return _this.articleConnector.getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId).then(function (result) {
|
|
1118
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1119
|
+
if (result.resultObject) {
|
|
1120
|
+
resolve(result.resultObject);
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
else {
|
|
1124
|
+
reject(result.validationMessagesAsString);
|
|
1125
|
+
}
|
|
1126
|
+
});
|
|
1127
|
+
})];
|
|
1128
|
+
});
|
|
1129
|
+
});
|
|
1130
|
+
};
|
|
1112
1131
|
SharedConnectorService.prototype.getStockManagementWarehouses = function () {
|
|
1113
1132
|
return __awaiter(this, void 0, void 0, function () {
|
|
1114
1133
|
var _this = this;
|
|
@@ -1386,6 +1405,16 @@
|
|
|
1386
1405
|
});
|
|
1387
1406
|
});
|
|
1388
1407
|
};
|
|
1408
|
+
StockService.prototype.getArtStockStatus = function (goodId, branchNo, requestedAmount, warehouseId) {
|
|
1409
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1410
|
+
return __generator(this, function (_a) {
|
|
1411
|
+
switch (_a.label) {
|
|
1412
|
+
case 0: return [4 /*yield*/, this._sharedService.getArtStockStatus(goodId, branchNo, requestedAmount, warehouseId)];
|
|
1413
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
});
|
|
1417
|
+
};
|
|
1389
1418
|
// public async getStockStickerTemplates(data: StockStickersPrintLayouts): Promise<StockStickersPrintLayouts[]> {
|
|
1390
1419
|
// return await this._sharedService.getStockStickerTemplates(data);
|
|
1391
1420
|
// }
|
|
@@ -1486,6 +1515,10 @@
|
|
|
1486
1515
|
StockComponent.prototype.ngOnDestroy = function () {
|
|
1487
1516
|
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
1488
1517
|
};
|
|
1518
|
+
StockComponent.prototype.ngOnInit = function () {
|
|
1519
|
+
this.getArtStockStatus();
|
|
1520
|
+
this.getStockManagementWarehouses();
|
|
1521
|
+
};
|
|
1489
1522
|
StockComponent.prototype.handleStockTransferClick = function (event) {
|
|
1490
1523
|
this.stockTransferArticleDetails = event;
|
|
1491
1524
|
this.showStockTransfer = !this.showStockTransfer;
|
|
@@ -1521,6 +1554,27 @@
|
|
|
1521
1554
|
});
|
|
1522
1555
|
});
|
|
1523
1556
|
};
|
|
1557
|
+
StockComponent.prototype.getArtStockStatus = function () {
|
|
1558
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1559
|
+
var _a;
|
|
1560
|
+
return __generator(this, function (_b) {
|
|
1561
|
+
switch (_b.label) {
|
|
1562
|
+
case 0:
|
|
1563
|
+
_a = this;
|
|
1564
|
+
return [4 /*yield*/, this.stockService.getArtStockStatus(this.articleExtended.goodId)];
|
|
1565
|
+
case 1:
|
|
1566
|
+
_a.articleStockState = _b.sent();
|
|
1567
|
+
return [2 /*return*/];
|
|
1568
|
+
}
|
|
1569
|
+
});
|
|
1570
|
+
});
|
|
1571
|
+
};
|
|
1572
|
+
StockComponent.prototype.getStockManagementWarehouses = function () {
|
|
1573
|
+
var _this = this;
|
|
1574
|
+
this.stockService.getStockManagementWarehouses().then(function (warehouses) {
|
|
1575
|
+
_this.warehouses = warehouses;
|
|
1576
|
+
});
|
|
1577
|
+
};
|
|
1524
1578
|
StockComponent.prototype._handleSettingsLoaded = function (loaded) {
|
|
1525
1579
|
return __awaiter(this, void 0, void 0, function () {
|
|
1526
1580
|
return __generator(this, function (_a) {
|
|
@@ -1562,7 +1616,7 @@
|
|
|
1562
1616
|
StockComponent.decorators = [
|
|
1563
1617
|
{ type: i0.Component, args: [{
|
|
1564
1618
|
selector: "co-stock",
|
|
1565
|
-
template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [
|
|
1619
|
+
template: "\n <div class=\"stock-info-container\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStockState]=\"articleStockState\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n >\n </co-stock-information>\n <hr>\n <co-stock-tabs [stockInformation]=\"stockInformation\"\n [article]=\"articleExtended\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (sendMethodDialogClicked)=\"handleSendMethodClick($event)\"\n [warehouses]=\"warehouses\"\n ></co-stock-tabs>\n\n <co-dialog *ngIf=\"showStockTransfer\">\n <co-stock-transfer (handleClick)=\"backToStock()\"\n class=\"stock-transfer-dialog\"\n [article]=\"stockTransferArticle\"\n [articleToTransfer]=\"stockTransferArticleDetails\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [articleWarehouse]=\"articleWarehouse\"\n [allWarehouses]=\"allWarehouses\"\n >\n </co-stock-transfer>\n </co-dialog>\n\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\">\n\n </co-send-method-dialog>\n </div>\n ",
|
|
1566
1620
|
encapsulation: i0.ViewEncapsulation.None
|
|
1567
1621
|
},] }
|
|
1568
1622
|
];
|
|
@@ -1591,14 +1645,14 @@
|
|
|
1591
1645
|
StockInformationComponent.decorators = [
|
|
1592
1646
|
{ type: i0.Component, args: [{
|
|
1593
1647
|
selector: "co-stock-information",
|
|
1594
|
-
template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"allTechnicalStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_AVAILABLE'\"></label>\n <span [textContent]=\"allAvailableStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_LATER_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n </div>\n ",
|
|
1648
|
+
template: "\n <div class=\"stock-info\" *ngIf=\"article\">\n <div class=\"stock-info-row\" >\n <div class=\"stock-info-row-image\">\n <div class=\"stock-image\">\n <co-image class=\"stock-image\" [source]=\"article.imageData\"></co-image>\n </div>\n </div>\n <div class=\"stock-good-info\">\n <div>\n <span [textContent]=\"article.description\"></span>\n </div>\n <div>\n <span [textContent]=\"article.articleNumber\"></span>\n </div>\n </div>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'STOCK_STATUS'\"></label>\n <span [textContent]=\"article.stockStatus\"></span>\n <co-stock-statusbar [value]=\"articleStockState\"></co-stock-statusbar>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_IN_STOCK'\"></label>\n <span [textContent]=\"allTechnicalStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_AVAILABLE'\"></label>\n <span [textContent]=\"allAvailableStockInformation\"></span>\n </div>\n <div class=\"stock-status\">\n <label [textContent]=\"'AMOUNT_LATER_AVAILABLE'\"></label>\n <span [textContent]=\"\"></span>\n </div>\n </div>\n ",
|
|
1595
1649
|
encapsulation: i0.ViewEncapsulation.None
|
|
1596
1650
|
},] }
|
|
1597
1651
|
];
|
|
1598
1652
|
StockInformationComponent.ctorParameters = function () { return []; };
|
|
1599
1653
|
StockInformationComponent.propDecorators = {
|
|
1600
1654
|
article: [{ type: i0.Input }],
|
|
1601
|
-
|
|
1655
|
+
articleStockState: [{ type: i0.Input }],
|
|
1602
1656
|
allAvailableStockInformation: [{ type: i0.Input }],
|
|
1603
1657
|
allTechnicalStockInformation: [{ type: i0.Input }]
|
|
1604
1658
|
};
|
|
@@ -1683,7 +1737,7 @@
|
|
|
1683
1737
|
]; };
|
|
1684
1738
|
|
|
1685
1739
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1686
|
-
exports["
|
|
1740
|
+
exports["ɵbl"] = void 0;
|
|
1687
1741
|
(function (Icon) {
|
|
1688
1742
|
Icon["AngleLeftSolid"] = "angle_left_solid";
|
|
1689
1743
|
Icon["AngleRightSolid"] = "angle_right_solid";
|
|
@@ -1709,13 +1763,13 @@
|
|
|
1709
1763
|
Icon["PrintSolid"] = "print_solid";
|
|
1710
1764
|
Icon["SignatureField"] = "signature_field";
|
|
1711
1765
|
Icon["Xml"] = "xml";
|
|
1712
|
-
})(exports["
|
|
1766
|
+
})(exports["ɵbl"] || (exports["ɵbl"] = {}));
|
|
1713
1767
|
|
|
1714
1768
|
var StockInformationGridComponent = /** @class */ (function () {
|
|
1715
1769
|
function StockInformationGridComponent(iconCacheService, _stockService) {
|
|
1716
1770
|
this.iconCacheService = iconCacheService;
|
|
1717
1771
|
this._stockService = _stockService;
|
|
1718
|
-
this.icons = exports["
|
|
1772
|
+
this.icons = exports["ɵbl"];
|
|
1719
1773
|
this.transferIconClicked = new i0.EventEmitter();
|
|
1720
1774
|
this.historyClicked = new i0.EventEmitter();
|
|
1721
1775
|
this.cancelButtonClicked = new i0.EventEmitter();
|
|
@@ -2162,24 +2216,23 @@
|
|
|
2162
2216
|
}());
|
|
2163
2217
|
|
|
2164
2218
|
var sendMethodsWithIcon = [
|
|
2165
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Fax, "Fax", exports["
|
|
2166
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Print, "Print", exports["
|
|
2167
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Email, "Email", exports["
|
|
2168
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Edi, "Edi", exports["
|
|
2169
|
-
new SendMethod(sendMethodType_enum.SendMethodType.EmailTemplate, "Email template", exports["
|
|
2170
|
-
new SendMethod(sendMethodType_enum.SendMethodType.Sms, "Sms", exports["
|
|
2171
|
-
new SendMethod(sendMethodType_enum.SendMethodType.WebService, "Webservice", exports["
|
|
2219
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Fax, "Fax", exports["ɵbl"].PrintRegular),
|
|
2220
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Print, "Print", exports["ɵbl"].PrintSolid),
|
|
2221
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Email, "Email", exports["ɵbl"].AtSolid),
|
|
2222
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Edi, "Edi", exports["ɵbl"].FileExportSolid),
|
|
2223
|
+
new SendMethod(sendMethodType_enum.SendMethodType.EmailTemplate, "Email template", exports["ɵbl"].EnvelopeRegular),
|
|
2224
|
+
new SendMethod(sendMethodType_enum.SendMethodType.Sms, "Sms", exports["ɵbl"].MessageSmsSolid),
|
|
2225
|
+
new SendMethod(sendMethodType_enum.SendMethodType.WebService, "Webservice", exports["ɵbl"].PrintRegular)
|
|
2172
2226
|
];
|
|
2173
2227
|
var SendMethodDialogComponent = /** @class */ (function () {
|
|
2174
|
-
function SendMethodDialogComponent(iconCacheService,
|
|
2228
|
+
function SendMethodDialogComponent(iconCacheService, _changeDetector, _sharedService, _sendMethodService) {
|
|
2175
2229
|
var _this = this;
|
|
2176
2230
|
this.iconCacheService = iconCacheService;
|
|
2177
|
-
this._optionsService = _optionsService;
|
|
2178
|
-
this._dictionary = _dictionary;
|
|
2179
2231
|
this._changeDetector = _changeDetector;
|
|
2180
2232
|
this._sharedService = _sharedService;
|
|
2181
2233
|
this._sendMethodService = _sendMethodService;
|
|
2182
|
-
this.icons = exports["
|
|
2234
|
+
this.icons = exports["ɵbl"];
|
|
2235
|
+
this.printerList = [];
|
|
2183
2236
|
this.emailLayouts = [];
|
|
2184
2237
|
this.printLayouts = [];
|
|
2185
2238
|
this.emailAddresses = [];
|
|
@@ -2203,7 +2256,7 @@
|
|
|
2203
2256
|
this.showEmailTemplate = true;
|
|
2204
2257
|
this.showWebservice = true;
|
|
2205
2258
|
this._subscriptions = [];
|
|
2206
|
-
this._subscriptions.push(this.
|
|
2259
|
+
this._subscriptions.push(this._sendMethodService.reportingDocumentPrintBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentPrintRequestChange.next(value); }), this._sendMethodService.reportingDocumentEmailBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentEmailRequestChange.next(value); }), this._sendMethodService.reportingDocumentPdfBaseRequestChanged.subscribe(function (value) { return _this.reportingDocumentPdfRequestChange.next(value); }));
|
|
2207
2260
|
}
|
|
2208
2261
|
SendMethodDialogComponent.prototype.showClass = function () {
|
|
2209
2262
|
return true;
|
|
@@ -2218,7 +2271,7 @@
|
|
|
2218
2271
|
if (this.reportingDocumentPdfRequest) {
|
|
2219
2272
|
this._sendMethodService.reportingDocumentPdfBaseRequest = this.reportingDocumentPdfRequest;
|
|
2220
2273
|
}
|
|
2221
|
-
this.
|
|
2274
|
+
this._initDefaultSendMethod();
|
|
2222
2275
|
this._prepareVisibleMethods();
|
|
2223
2276
|
};
|
|
2224
2277
|
SendMethodDialogComponent.prototype.ngOnDestroy = function () {
|
|
@@ -2252,21 +2305,28 @@
|
|
|
2252
2305
|
this.navigationItems.nativeElement.scrollLeft = this.webServiceItems.nativeElement.offsetLeft - this.navigationItems.nativeElement.offsetLeft;
|
|
2253
2306
|
}
|
|
2254
2307
|
};
|
|
2255
|
-
SendMethodDialogComponent.prototype.
|
|
2256
|
-
var _this = this;
|
|
2308
|
+
SendMethodDialogComponent.prototype._initDefaultSendMethod = function () {
|
|
2257
2309
|
if (this.defaultSendMethod) {
|
|
2258
|
-
|
|
2259
|
-
if (sendMethod_1) {
|
|
2260
|
-
setTimeout(function () {
|
|
2261
|
-
_this.handleSendMethodClick(sendMethod_1);
|
|
2262
|
-
_this.startUp = false;
|
|
2263
|
-
});
|
|
2264
|
-
}
|
|
2310
|
+
this._selectDefaultSendMethod();
|
|
2265
2311
|
}
|
|
2266
2312
|
else {
|
|
2313
|
+
if (this.visibleMethods && this.visibleMethods.length === 1) {
|
|
2314
|
+
this.defaultSendMethod = this.visibleMethods[0];
|
|
2315
|
+
this._selectDefaultSendMethod();
|
|
2316
|
+
}
|
|
2267
2317
|
this.startUp = false;
|
|
2268
2318
|
}
|
|
2269
2319
|
};
|
|
2320
|
+
SendMethodDialogComponent.prototype._selectDefaultSendMethod = function () {
|
|
2321
|
+
var _this = this;
|
|
2322
|
+
var sendMethod = this.sendMethods.find(function (sm) { return sm.code === _this.defaultSendMethod; });
|
|
2323
|
+
if (sendMethod) {
|
|
2324
|
+
setTimeout(function () {
|
|
2325
|
+
_this.handleSendMethodClick(sendMethod);
|
|
2326
|
+
_this.startUp = false;
|
|
2327
|
+
});
|
|
2328
|
+
}
|
|
2329
|
+
};
|
|
2270
2330
|
SendMethodDialogComponent.prototype._prepareVisibleMethods = function () {
|
|
2271
2331
|
var _this = this;
|
|
2272
2332
|
if (this.visibleMethods && this.visibleMethods.length > 0) {
|
|
@@ -2280,49 +2340,12 @@
|
|
|
2280
2340
|
this.showSms = this.sendMethods.find(function (sm) { return sm.code === sendMethodType_enum.SendMethodType.Sms; }) !== undefined;
|
|
2281
2341
|
this.showWebservice = this.sendMethods.find(function (sm) { return sm.code === sendMethodType_enum.SendMethodType.WebService; }) !== undefined;
|
|
2282
2342
|
};
|
|
2283
|
-
SendMethodDialogComponent.prototype._handleSettingsLoaded = function (loaded) {
|
|
2284
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2285
|
-
return __generator(this, function (_a) {
|
|
2286
|
-
switch (_a.label) {
|
|
2287
|
-
case 0:
|
|
2288
|
-
if (!loaded) return [3 /*break*/, 2];
|
|
2289
|
-
return [4 /*yield*/, this._initConnection().then()];
|
|
2290
|
-
case 1:
|
|
2291
|
-
_a.sent();
|
|
2292
|
-
this.upAndLoaded = true;
|
|
2293
|
-
_a.label = 2;
|
|
2294
|
-
case 2: return [2 /*return*/];
|
|
2295
|
-
}
|
|
2296
|
-
});
|
|
2297
|
-
});
|
|
2298
|
-
};
|
|
2299
|
-
SendMethodDialogComponent.prototype._initConnection = function () {
|
|
2300
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2301
|
-
var _this = this;
|
|
2302
|
-
return __generator(this, function (_a) {
|
|
2303
|
-
switch (_a.label) {
|
|
2304
|
-
case 0:
|
|
2305
|
-
// await this._connector.connect(this._optionsService.options);
|
|
2306
|
-
if (this._optionsService.options.url) {
|
|
2307
|
-
this._dictionary.rootUrl = this._optionsService.options.url.replace('/ajaxservice', '');
|
|
2308
|
-
}
|
|
2309
|
-
return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
|
|
2310
|
-
case 1:
|
|
2311
|
-
_a.sent();
|
|
2312
|
-
setTimeout(function () {
|
|
2313
|
-
_this._changeDetector.detectChanges();
|
|
2314
|
-
});
|
|
2315
|
-
return [2 /*return*/];
|
|
2316
|
-
}
|
|
2317
|
-
});
|
|
2318
|
-
});
|
|
2319
|
-
};
|
|
2320
2343
|
return SendMethodDialogComponent;
|
|
2321
2344
|
}());
|
|
2322
2345
|
SendMethodDialogComponent.decorators = [
|
|
2323
2346
|
{ type: i0.Component, args: [{
|
|
2324
2347
|
selector: 'co-send-method-dialog',
|
|
2325
|
-
template: "\n <co-dialog id=\"sendOptionsDialog\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"closeClick.emit($event)\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"headerTitle\"></div>\n </ng-template>\n <div class=\"dialog-content-wrapper\">\n <div class=\"send-methods-wrapper\">\n <div class=\"send-button-wrapper\" *ngFor=\"let sendMethod of sendMethods; let index = index\"\n [class.selected]=\"activeSendMethod ? sendMethod.code === activeSendMethod.code : index === 0\"\n (click)=\"handleSendMethodClick(sendMethod)\">\n <co-icon class=\"custom-button-icon\" [iconData]=\"iconCacheService.getIcon(sendMethod.icon)\"></co-icon>\n <div class=\"custom-button-title\" [textContent]=\"sendMethod.description\"></div>\n </div>\n </div>\n <div #navigationItems class=\"send-method-navigation-wrapper\" [class.smooth-scrolling]=\"!startUp\">\n <div #faxItems class=\"send-method-navigation-content co-small-scrollbar\">\n\n </div>\n <div #printItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showPrint\">\n <co-send-method-printer\n [layouts]=\"printLayouts\"\n ></co-send-method-printer>\n </div>\n <div #emailItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmail\">\n <co-send-method-email\n [emailAddresses]=\"emailAddresses\"\n [layouts]=\"emailLayouts\"\n ></co-send-method-email>\n </div>\n <div #ediItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEdi\">\n\n </div>\n <div #emailTemplateItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmailTemplate\">\n\n </div>\n <div #smsItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showSms\">\n\n </div>\n <div #webServiceItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showWebservice\">\n\n </div>\n </div>\n </div>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'Ok'\" (click)=\"okClick.emit(activeSendMethod ? activeSendMethod.code : '0')\"></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
|
|
2348
|
+
template: "\n <co-dialog id=\"sendOptionsDialog\" [headerTemplate]=\"headerTemplate\" [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"closeClick.emit($event)\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title\" [textContent]=\"headerTitle\"></div>\n </ng-template>\n <div class=\"dialog-content-wrapper\">\n <div class=\"send-methods-wrapper\">\n <div class=\"send-button-wrapper\" *ngFor=\"let sendMethod of sendMethods; let index = index\"\n [class.selected]=\"activeSendMethod ? sendMethod.code === activeSendMethod.code : index === 0\"\n (click)=\"handleSendMethodClick(sendMethod)\">\n <co-icon class=\"custom-button-icon\" [iconData]=\"iconCacheService.getIcon(sendMethod.icon)\"></co-icon>\n <div class=\"custom-button-title\" [textContent]=\"sendMethod.description\"></div>\n </div>\n </div>\n <div #navigationItems class=\"send-method-navigation-wrapper\" [class.smooth-scrolling]=\"!startUp\">\n <div #faxItems class=\"send-method-navigation-content co-small-scrollbar\">\n\n </div>\n <div #printItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showPrint\">\n <co-send-method-printer\n [printerList]=\"printerList\"\n [layouts]=\"printLayouts\"\n ></co-send-method-printer>\n </div>\n <div #emailItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmail\">\n <co-send-method-email\n [emailAddresses]=\"emailAddresses\"\n [layouts]=\"emailLayouts\"\n ></co-send-method-email>\n </div>\n <div #ediItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEdi\">\n\n </div>\n <div #emailTemplateItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showEmailTemplate\">\n\n </div>\n <div #smsItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showSms\">\n\n </div>\n <div #webServiceItems class=\"send-method-navigation-content co-small-scrollbar\" *ngIf=\"showWebservice\">\n\n </div>\n </div>\n </div>\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button [label]=\"'Ok'\" (click)=\"okClick.emit(activeSendMethod ? activeSendMethod.code : '0')\"></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
|
|
2326
2349
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2327
2350
|
animations: [
|
|
2328
2351
|
animations.trigger('slideInOut', [
|
|
@@ -2335,8 +2358,6 @@
|
|
|
2335
2358
|
];
|
|
2336
2359
|
SendMethodDialogComponent.ctorParameters = function () { return [
|
|
2337
2360
|
{ type: IconCacheService },
|
|
2338
|
-
{ type: OptionsService },
|
|
2339
|
-
{ type: DictionaryService },
|
|
2340
2361
|
{ type: i0.ChangeDetectorRef },
|
|
2341
2362
|
{ type: SharedService },
|
|
2342
2363
|
{ type: SendMethodService }
|
|
@@ -2350,6 +2371,7 @@
|
|
|
2350
2371
|
emailTemplateItems: [{ type: i0.ViewChild, args: ['emailTemplateItems', { read: i0.ElementRef },] }],
|
|
2351
2372
|
smsItems: [{ type: i0.ViewChild, args: ['smsItems', { read: i0.ElementRef },] }],
|
|
2352
2373
|
webServiceItems: [{ type: i0.ViewChild, args: ['webServiceItems', { read: i0.ElementRef },] }],
|
|
2374
|
+
printerList: [{ type: i0.Input }],
|
|
2353
2375
|
reportingDocumentPrintRequest: [{ type: i0.Input }],
|
|
2354
2376
|
reportingDocumentEmailRequest: [{ type: i0.Input }],
|
|
2355
2377
|
reportingDocumentPdfRequest: [{ type: i0.Input }],
|
|
@@ -2513,6 +2535,7 @@
|
|
|
2513
2535
|
var SendMethodPrinterComponent = /** @class */ (function () {
|
|
2514
2536
|
function SendMethodPrinterComponent(sendMethodService) {
|
|
2515
2537
|
this.sendMethodService = sendMethodService;
|
|
2538
|
+
this.printerList = [];
|
|
2516
2539
|
this.layouts = [];
|
|
2517
2540
|
}
|
|
2518
2541
|
SendMethodPrinterComponent.prototype.showClass = function () {
|
|
@@ -2531,7 +2554,7 @@
|
|
|
2531
2554
|
SendMethodPrinterComponent.decorators = [
|
|
2532
2555
|
{ type: i0.Component, args: [{
|
|
2533
2556
|
selector: 'co-send-method-printer',
|
|
2534
|
-
template: "\n <co-printer-selection></co-printer-selection>\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentPrintBaseRequest\"\n [layouts]=\"layouts\"\n ></co-layout-selection>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForUser\"\n [label]=\"'Koppeling onthouden'\"\n (modelChange)=\"handleDefaultPrinterUserChange($event)\"\n ></co-input-checkbox>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForAllUsers\"\n [label]=\"'Alle gebruikers'\"\n (modelChange)=\"handleDefaultPrinterAllUsersChange($event)\"\n ></co-input-checkbox>\n ",
|
|
2557
|
+
template: "\n <co-printer-selection [printers]=\"printerList\"></co-printer-selection>\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentPrintBaseRequest\"\n [layouts]=\"layouts\"\n ></co-layout-selection>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForUser\"\n [label]=\"'Koppeling onthouden'\"\n (modelChange)=\"handleDefaultPrinterUserChange($event)\"\n ></co-input-checkbox>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintBaseRequest.saveDefaultPrinterForAllUsers\"\n [label]=\"'Alle gebruikers'\"\n (modelChange)=\"handleDefaultPrinterAllUsersChange($event)\"\n ></co-input-checkbox>\n ",
|
|
2535
2558
|
encapsulation: i0.ViewEncapsulation.None
|
|
2536
2559
|
},] }
|
|
2537
2560
|
];
|
|
@@ -2539,6 +2562,7 @@
|
|
|
2539
2562
|
{ type: SendMethodService }
|
|
2540
2563
|
]; };
|
|
2541
2564
|
SendMethodPrinterComponent.propDecorators = {
|
|
2565
|
+
printerList: [{ type: i0.Input }],
|
|
2542
2566
|
layouts: [{ type: i0.Input }],
|
|
2543
2567
|
showClass: [{ type: i0.HostBinding, args: ['class.co-send-method-printer',] }]
|
|
2544
2568
|
};
|
|
@@ -2548,7 +2572,7 @@
|
|
|
2548
2572
|
this.sendMethodService = sendMethodService;
|
|
2549
2573
|
this.iconService = iconService;
|
|
2550
2574
|
this._service = _service;
|
|
2551
|
-
this.icons = exports["
|
|
2575
|
+
this.icons = exports["ɵbl"];
|
|
2552
2576
|
this.printers = [];
|
|
2553
2577
|
this.showPrinterList = false;
|
|
2554
2578
|
}
|
|
@@ -2556,17 +2580,13 @@
|
|
|
2556
2580
|
return true;
|
|
2557
2581
|
};
|
|
2558
2582
|
PrinterSelectionComponent.prototype.ngOnInit = function () {
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
if (defaultPrinter) {
|
|
2565
|
-
_this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = defaultPrinter.name;
|
|
2566
|
-
_this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(_this.sendMethodService.reportingDocumentPrintBaseRequest);
|
|
2567
|
-
}
|
|
2583
|
+
if (!this.sendMethodService.reportingDocumentPrintBaseRequest.printerName && this.printers && this.printers.length > 0) {
|
|
2584
|
+
var defaultPrinter = this.printers.find(function (p) { return p.isDefault; });
|
|
2585
|
+
if (defaultPrinter) {
|
|
2586
|
+
this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = defaultPrinter.name;
|
|
2587
|
+
this.sendMethodService.reportingDocumentPrintBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintBaseRequest);
|
|
2568
2588
|
}
|
|
2569
|
-
}
|
|
2589
|
+
}
|
|
2570
2590
|
};
|
|
2571
2591
|
PrinterSelectionComponent.prototype.handlePrinterClicked = function (printer) {
|
|
2572
2592
|
this.sendMethodService.reportingDocumentPrintBaseRequest.printerName = printer.name;
|
|
@@ -2596,6 +2616,7 @@
|
|
|
2596
2616
|
{ type: SharedService }
|
|
2597
2617
|
]; };
|
|
2598
2618
|
PrinterSelectionComponent.propDecorators = {
|
|
2619
|
+
printers: [{ type: i0.Input }],
|
|
2599
2620
|
showClass: [{ type: i0.HostBinding, args: ['class.co-printer-selection',] }]
|
|
2600
2621
|
};
|
|
2601
2622
|
|
|
@@ -2750,7 +2771,7 @@
|
|
|
2750
2771
|
function OrderTabComponent(iconCacheService, _stockService) {
|
|
2751
2772
|
this.iconCacheService = iconCacheService;
|
|
2752
2773
|
this._stockService = _stockService;
|
|
2753
|
-
this.icons = exports["
|
|
2774
|
+
this.icons = exports["ɵbl"];
|
|
2754
2775
|
this.locationClicked = new i0.EventEmitter();
|
|
2755
2776
|
this.transferIconClicked = new i0.EventEmitter();
|
|
2756
2777
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
@@ -2785,18 +2806,18 @@
|
|
|
2785
2806
|
var StockTabsComponent = /** @class */ (function () {
|
|
2786
2807
|
function StockTabsComponent(_stockService) {
|
|
2787
2808
|
this._stockService = _stockService;
|
|
2788
|
-
this.icons = exports["
|
|
2809
|
+
this.icons = exports["ɵbl"];
|
|
2789
2810
|
this.transferIconClicked = new i0.EventEmitter();
|
|
2790
2811
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
2791
2812
|
this.tabs = [
|
|
2792
2813
|
{ title: 'Overzicht', active: true },
|
|
2793
|
-
{ title: 'Voorraaddetails', active: false
|
|
2814
|
+
{ title: 'Voorraaddetails', active: false },
|
|
2794
2815
|
{ title: 'In order', active: false, clickHandler: this.getInOrderData.bind(this) },
|
|
2795
2816
|
{ title: 'In bestelling', active: false, clickHandler: this.getOrderData.bind(this) },
|
|
2796
2817
|
{ title: 'Historie', active: false },
|
|
2797
2818
|
];
|
|
2798
2819
|
this.historyTabs = [
|
|
2799
|
-
{ title: 'Voorraad', active:
|
|
2820
|
+
{ title: 'Voorraad', active: true, clickHandler: this.getStockHistory.bind(this) },
|
|
2800
2821
|
{ title: 'Order voorraad', active: false, clickHandler: this.getOrderSupplyStockHistory.bind(this) },
|
|
2801
2822
|
{ title: 'Order commissie', active: false, clickHandler: this.getOrderCommissionStockHistory.bind(this) },
|
|
2802
2823
|
{ title: 'Bestelling', active: false, clickHandler: this.getOrderStockHistory.bind(this) },
|
|
@@ -2928,12 +2949,6 @@
|
|
|
2928
2949
|
});
|
|
2929
2950
|
});
|
|
2930
2951
|
};
|
|
2931
|
-
StockTabsComponent.prototype.getStockManagementWarehouses = function () {
|
|
2932
|
-
var _this = this;
|
|
2933
|
-
this._stockService.getStockManagementWarehouses().then(function (warehouses) {
|
|
2934
|
-
_this.warehouses = warehouses;
|
|
2935
|
-
});
|
|
2936
|
-
};
|
|
2937
2952
|
StockTabsComponent.prototype.getOrderData = function () {
|
|
2938
2953
|
return __awaiter(this, void 0, void 0, function () {
|
|
2939
2954
|
var orderData, _a;
|
|
@@ -2969,13 +2984,14 @@
|
|
|
2969
2984
|
StockTabsComponent.propDecorators = {
|
|
2970
2985
|
stockInformation: [{ type: i0.Input }],
|
|
2971
2986
|
article: [{ type: i0.Input }],
|
|
2987
|
+
warehouses: [{ type: i0.Input }],
|
|
2972
2988
|
transferIconClicked: [{ type: i0.Output }],
|
|
2973
2989
|
sendMethodDialogClicked: [{ type: i0.Output }]
|
|
2974
2990
|
};
|
|
2975
2991
|
|
|
2976
2992
|
var StockHistoryTabsComponent = /** @class */ (function () {
|
|
2977
2993
|
function StockHistoryTabsComponent() {
|
|
2978
|
-
this.icons = exports["
|
|
2994
|
+
this.icons = exports["ɵbl"];
|
|
2979
2995
|
this.selectedTab = 0;
|
|
2980
2996
|
}
|
|
2981
2997
|
return StockHistoryTabsComponent;
|
|
@@ -2996,7 +3012,7 @@
|
|
|
2996
3012
|
function OrderStockTabComponent(iconCacheService, _stockService) {
|
|
2997
3013
|
this.iconCacheService = iconCacheService;
|
|
2998
3014
|
this._stockService = _stockService;
|
|
2999
|
-
this.icons = exports["
|
|
3015
|
+
this.icons = exports["ɵbl"];
|
|
3000
3016
|
}
|
|
3001
3017
|
return OrderStockTabComponent;
|
|
3002
3018
|
}());
|
|
@@ -3020,10 +3036,9 @@
|
|
|
3020
3036
|
this.iconCacheService = iconCacheService;
|
|
3021
3037
|
this._stockService = _stockService;
|
|
3022
3038
|
this._changeDetector = _changeDetector;
|
|
3023
|
-
this.icons = exports["
|
|
3039
|
+
this.icons = exports["ɵbl"];
|
|
3024
3040
|
this.transferIconClicked = new i0.EventEmitter();
|
|
3025
3041
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
3026
|
-
this.selectedWarehouse = 0;
|
|
3027
3042
|
this.dataWareHouseFields = { text: "warehouseDescription", value: "warehouseNo" };
|
|
3028
3043
|
this.dataLocationFields = { text: "locationNo", value: "locationNo" };
|
|
3029
3044
|
this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
|
|
@@ -3054,6 +3069,9 @@
|
|
|
3054
3069
|
_this.stockLocations = locations;
|
|
3055
3070
|
});
|
|
3056
3071
|
};
|
|
3072
|
+
StockLocationComponent.prototype.locationChanged = function (event) {
|
|
3073
|
+
this.selectedLocation = event;
|
|
3074
|
+
};
|
|
3057
3075
|
StockLocationComponent.prototype.amountInStockChanged = function (data) {
|
|
3058
3076
|
this.selectedArticleDetailsData.amountInStock = data;
|
|
3059
3077
|
};
|
|
@@ -3063,12 +3081,36 @@
|
|
|
3063
3081
|
StockLocationComponent.prototype.handleStockTransferClick = function (event) {
|
|
3064
3082
|
this.transferIconClicked.emit(event);
|
|
3065
3083
|
};
|
|
3084
|
+
StockLocationComponent.prototype.onOkClickSendLocations = function () {
|
|
3085
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3086
|
+
var _this = this;
|
|
3087
|
+
return __generator(this, function (_a) {
|
|
3088
|
+
switch (_a.label) {
|
|
3089
|
+
case 0:
|
|
3090
|
+
this.selectedArticleDetailsData.selected = true;
|
|
3091
|
+
this.selectedArticleDetailsData.goodId = this.article.goodId;
|
|
3092
|
+
this.selectedArticleDetailsData.entryDate = new Date();
|
|
3093
|
+
this.selectedArticleDetailsData.warehouseNo = this.selectedWarehouse;
|
|
3094
|
+
this.selectedArticleDetailsData.locationNo = this.selectedLocation;
|
|
3095
|
+
return [4 /*yield*/, this._stockService.updateArticleDetails(this.selectedArticleDetailsData)];
|
|
3096
|
+
case 1:
|
|
3097
|
+
_a.sent();
|
|
3098
|
+
return [4 /*yield*/, this._stockService.getArticleDetails(this.articleDetailsInformation).then(function (details) {
|
|
3099
|
+
_this.articleDetails = details;
|
|
3100
|
+
})];
|
|
3101
|
+
case 2:
|
|
3102
|
+
_a.sent();
|
|
3103
|
+
return [2 /*return*/];
|
|
3104
|
+
}
|
|
3105
|
+
});
|
|
3106
|
+
});
|
|
3107
|
+
};
|
|
3066
3108
|
return StockLocationComponent;
|
|
3067
3109
|
}());
|
|
3068
3110
|
StockLocationComponent.decorators = [
|
|
3069
3111
|
{ type: i0.Component, args: [{
|
|
3070
3112
|
selector: "co-stock-location",
|
|
3071
|
-
template: "\n <div class=\"stock-grid\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-right-group\">\n <co-drop-down-list [(model)]=\"selectedWarehouse\"\n [collection]=\"dataWareHouseCode\"\n [fields]=\"dataWareHouseFields\"\n [placeholder]=\"'WAREHOUSE'\"\n (modelChange)=\"onSelectWarehouse($event)\"\n [required]=\"true\"\n ></co-drop-down-list>\n </div>\n </div>\n\n <co-simple-grid [data]=\"articleDetails\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n [showAdd]=\"true\"\n [
|
|
3113
|
+
template: "\n <div class=\"stock-grid\">\n <div class=\"stock-location-group\">\n <div class=\"stock-location-right-group\">\n <co-drop-down-list [(model)]=\"selectedWarehouse\"\n [collection]=\"dataWareHouseCode\"\n [fields]=\"dataWareHouseFields\"\n [placeholder]=\"'WAREHOUSE'\"\n (modelChange)=\"onSelectWarehouse($event)\"\n [required]=\"true\"\n ></co-drop-down-list>\n </div>\n </div>\n\n <co-simple-grid [data]=\"articleDetails\"\n class=\"simple-grid\"\n [rowsPerPage]=\"20\"\n [showAdd]=\"true\"\n [inlineEdit]=\"true\"\n (dblClickRow)=\"lockSelectedRow($event)\"\n [rightToolbar]=\"true\"\n [showToolbar]=\"true\"\n (keydown.enter)=\"onOkClickSendLocations()\"\n >\n <co-simple-grid-column [headerText]=\"'LOCATION'\" [field]=\"'locationNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-drop-down-list [(model)]=\"row.locationNo\"\n [collection]=\"stockLocations\"\n [fields]=\"dataLocationFields\"\n [placeholder]=\"'LOCATION'\"\n (click)=\"onLocationDropdownClick()\"\n [required]=\"true\"\n (modelChange)=\"locationChanged($event)\"\n ></co-drop-down-list>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleDetails\" [headerText]=\"'BATCH'\" [field]=\"'batchNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.batchNo\"\n [placeholder]=\"'BATCH'\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleDetails\" [headerText]=\"'SERIAL_NO'\" [field]=\"'serialNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.serialNo\"\n [placeholder]=\"'SERIAL_NO'\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STOCK'\" [field]=\"'amountInStock'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [(model)]=\"row.amountInStock\"\n [label]=\"'STOCK'\"\n (modelChange)=\"amountInStockChanged($event)\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED'\" [field]=\"'stockAssigned'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.stockAssigned\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK'\" [field]=\"'amountInStockFree'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.amountInStockFree\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA'\" [field]=\"'currency'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.currency\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE'\" [field]=\"'purchasePrice'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.purchasePrice\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIER_NUMBER'\" [field]=\"'supplierNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row.supplierNo\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'TRANSFER'\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"\n (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'STICKER'\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"\n (click)=\"openSendMethodDialog(row)\"></co-icon>\n </ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
3072
3114
|
encapsulation: i0.ViewEncapsulation.None
|
|
3073
3115
|
},] }
|
|
3074
3116
|
];
|
|
@@ -3090,7 +3132,7 @@
|
|
|
3090
3132
|
function StockHistoryComponent(iconCacheService, _stockService) {
|
|
3091
3133
|
this.iconCacheService = iconCacheService;
|
|
3092
3134
|
this._stockService = _stockService;
|
|
3093
|
-
this.icons = exports["
|
|
3135
|
+
this.icons = exports["ɵbl"];
|
|
3094
3136
|
}
|
|
3095
3137
|
return StockHistoryComponent;
|
|
3096
3138
|
}());
|
|
@@ -3167,7 +3209,7 @@
|
|
|
3167
3209
|
var OrderSupplyStockHistoryComponent = /** @class */ (function () {
|
|
3168
3210
|
function OrderSupplyStockHistoryComponent(iconCacheService) {
|
|
3169
3211
|
this.iconCacheService = iconCacheService;
|
|
3170
|
-
this.icons = exports["
|
|
3212
|
+
this.icons = exports["ɵbl"];
|
|
3171
3213
|
}
|
|
3172
3214
|
return OrderSupplyStockHistoryComponent;
|
|
3173
3215
|
}());
|
|
@@ -3188,7 +3230,7 @@
|
|
|
3188
3230
|
var OrderCommissionStockHistoryComponent = /** @class */ (function () {
|
|
3189
3231
|
function OrderCommissionStockHistoryComponent(iconCacheService) {
|
|
3190
3232
|
this.iconCacheService = iconCacheService;
|
|
3191
|
-
this.icons = exports["
|
|
3233
|
+
this.icons = exports["ɵbl"];
|
|
3192
3234
|
}
|
|
3193
3235
|
return OrderCommissionStockHistoryComponent;
|
|
3194
3236
|
}());
|
|
@@ -3209,7 +3251,7 @@
|
|
|
3209
3251
|
var OrderStockHistoryComponent = /** @class */ (function () {
|
|
3210
3252
|
function OrderStockHistoryComponent(iconCacheService) {
|
|
3211
3253
|
this.iconCacheService = iconCacheService;
|
|
3212
|
-
this.icons = exports["
|
|
3254
|
+
this.icons = exports["ɵbl"];
|
|
3213
3255
|
}
|
|
3214
3256
|
return OrderStockHistoryComponent;
|
|
3215
3257
|
}());
|
|
@@ -3230,7 +3272,7 @@
|
|
|
3230
3272
|
var AllocationStockHistoryComponent = /** @class */ (function () {
|
|
3231
3273
|
function AllocationStockHistoryComponent(iconCacheService) {
|
|
3232
3274
|
this.iconCacheService = iconCacheService;
|
|
3233
|
-
this.icons = exports["
|
|
3275
|
+
this.icons = exports["ɵbl"];
|
|
3234
3276
|
}
|
|
3235
3277
|
return AllocationStockHistoryComponent;
|
|
3236
3278
|
}());
|
|
@@ -3248,20 +3290,404 @@
|
|
|
3248
3290
|
allocationStockHistory: [{ type: i0.Input }]
|
|
3249
3291
|
};
|
|
3250
3292
|
|
|
3251
|
-
var
|
|
3252
|
-
|
|
3293
|
+
var GaugeColor;
|
|
3294
|
+
(function (GaugeColor) {
|
|
3295
|
+
GaugeColor["Lowest"] = "#E0E0E0";
|
|
3296
|
+
GaugeColor["Low"] = "#fff7b8";
|
|
3297
|
+
GaugeColor["MediumLow"] = "#ffe367";
|
|
3298
|
+
GaugeColor["MediumHigh"] = "#ffc15b";
|
|
3299
|
+
GaugeColor["High"] = "#F88952";
|
|
3300
|
+
GaugeColor["Highest"] = "#5FDCB3";
|
|
3301
|
+
})(GaugeColor || (GaugeColor = {}));
|
|
3302
|
+
|
|
3303
|
+
var CoCircularGaugeComponent = /** @class */ (function () {
|
|
3304
|
+
function CoCircularGaugeComponent() {
|
|
3305
|
+
this._color = GaugeColor.Low;
|
|
3306
|
+
this.majorTicks = {
|
|
3307
|
+
height: 0,
|
|
3308
|
+
};
|
|
3309
|
+
this.minorTicks = {
|
|
3310
|
+
height: 0
|
|
3311
|
+
};
|
|
3312
|
+
this.labelStyle = {
|
|
3313
|
+
position: 'Inside', useRangeColor: true,
|
|
3314
|
+
font: { size: '0px', fontFamily: 'inherit' }
|
|
3315
|
+
};
|
|
3316
|
+
this.lineStyle = {
|
|
3317
|
+
width: 0
|
|
3318
|
+
};
|
|
3319
|
+
this.ranges = [
|
|
3320
|
+
{
|
|
3321
|
+
start: 1, end: 100,
|
|
3322
|
+
radius: '13px',
|
|
3323
|
+
startWidth: 3, endWidth: 3,
|
|
3324
|
+
color: '#E0E0E0',
|
|
3325
|
+
roundedCornerRadius: 0
|
|
3326
|
+
},
|
|
3327
|
+
];
|
|
3253
3328
|
}
|
|
3254
|
-
|
|
3329
|
+
Object.defineProperty(CoCircularGaugeComponent.prototype, "value", {
|
|
3330
|
+
get: function () {
|
|
3331
|
+
return this._value;
|
|
3332
|
+
},
|
|
3333
|
+
set: function (value) {
|
|
3334
|
+
this._value = value;
|
|
3335
|
+
this._setColor();
|
|
3336
|
+
},
|
|
3337
|
+
enumerable: false,
|
|
3338
|
+
configurable: true
|
|
3339
|
+
});
|
|
3340
|
+
Object.defineProperty(CoCircularGaugeComponent.prototype, "color", {
|
|
3341
|
+
get: function () {
|
|
3342
|
+
return this._color;
|
|
3343
|
+
},
|
|
3344
|
+
enumerable: false,
|
|
3345
|
+
configurable: true
|
|
3346
|
+
});
|
|
3347
|
+
CoCircularGaugeComponent.prototype.showClass = function () {
|
|
3348
|
+
return true;
|
|
3349
|
+
};
|
|
3350
|
+
CoCircularGaugeComponent.prototype.getAxes = function () {
|
|
3351
|
+
return [{
|
|
3352
|
+
minimum: 0,
|
|
3353
|
+
maximum: 100,
|
|
3354
|
+
radius: '15px',
|
|
3355
|
+
startAngle: 1,
|
|
3356
|
+
endAngle: 360,
|
|
3357
|
+
majorTicks: this.majorTicks,
|
|
3358
|
+
minorTicks: this.minorTicks,
|
|
3359
|
+
labelStyle: this.labelStyle,
|
|
3360
|
+
lineStyle: this.lineStyle,
|
|
3361
|
+
ranges: this.ranges,
|
|
3362
|
+
pointers: this.getPointers(),
|
|
3363
|
+
annotations: this.getAnnotations(),
|
|
3364
|
+
}];
|
|
3365
|
+
};
|
|
3366
|
+
CoCircularGaugeComponent.prototype.getPointers = function () {
|
|
3367
|
+
if (this.value) {
|
|
3368
|
+
return [{
|
|
3369
|
+
roundedCornerRadius: 0,
|
|
3370
|
+
value: this.value,
|
|
3371
|
+
type: 'RangeBar',
|
|
3372
|
+
radius: '13px',
|
|
3373
|
+
color: this.color,
|
|
3374
|
+
border: {
|
|
3375
|
+
width: 0
|
|
3376
|
+
},
|
|
3377
|
+
animation: {
|
|
3378
|
+
enable: false
|
|
3379
|
+
},
|
|
3380
|
+
pointerWidth: 3
|
|
3381
|
+
}];
|
|
3382
|
+
}
|
|
3383
|
+
};
|
|
3384
|
+
;
|
|
3385
|
+
CoCircularGaugeComponent.prototype.getAnnotations = function () {
|
|
3386
|
+
if (this.value !== undefined) {
|
|
3387
|
+
var label = this.value ? this.value + "%" : "0%";
|
|
3388
|
+
return [{
|
|
3389
|
+
content: '<div class="annotation" style="width:20px;height:20px;">' +
|
|
3390
|
+
'<div class="annotation-label">' + label + '</div></div>',
|
|
3391
|
+
zIndex: '10',
|
|
3392
|
+
}];
|
|
3393
|
+
}
|
|
3394
|
+
};
|
|
3395
|
+
CoCircularGaugeComponent.prototype._setColor = function () {
|
|
3396
|
+
if (this.value <= 0) {
|
|
3397
|
+
this._color = GaugeColor.Lowest;
|
|
3398
|
+
}
|
|
3399
|
+
else if (this.value >= 1 && this.value < 25) {
|
|
3400
|
+
this._color = GaugeColor.Low;
|
|
3401
|
+
}
|
|
3402
|
+
else if (this.value >= 25 && this.value < 50) {
|
|
3403
|
+
this._color = GaugeColor.MediumLow;
|
|
3404
|
+
}
|
|
3405
|
+
else if (this.value >= 50 && this.value < 75) {
|
|
3406
|
+
this._color = GaugeColor.MediumHigh;
|
|
3407
|
+
}
|
|
3408
|
+
else if (this.value >= 75 && this.value < 100) {
|
|
3409
|
+
this._color = GaugeColor.High;
|
|
3410
|
+
}
|
|
3411
|
+
else if (this.value >= 100) {
|
|
3412
|
+
this._color = GaugeColor.Highest;
|
|
3413
|
+
}
|
|
3414
|
+
};
|
|
3415
|
+
return CoCircularGaugeComponent;
|
|
3255
3416
|
}());
|
|
3256
|
-
|
|
3257
|
-
{ type: i0.
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3417
|
+
CoCircularGaugeComponent.decorators = [
|
|
3418
|
+
{ type: i0.Component, args: [{
|
|
3419
|
+
selector: "co-circular-gauge",
|
|
3420
|
+
template: "\n <div class=\"circular-gauge-wrapper\">\n <ejs-circulargauge\n class=\"circular-gauge\"\n [width]=\"'100%'\"\n [axes]=\"getAxes()\">\n </ejs-circulargauge>\n </div>\n ",
|
|
3421
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
3422
|
+
},] }
|
|
3423
|
+
];
|
|
3424
|
+
CoCircularGaugeComponent.propDecorators = {
|
|
3425
|
+
circulargauge: [{ type: i0.ViewChild, args: ['circulargauge',] }],
|
|
3426
|
+
value: [{ type: i0.Input }],
|
|
3427
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-circular-gauge",] }]
|
|
3428
|
+
};
|
|
3429
|
+
|
|
3430
|
+
var CoCircularGaugeModule = /** @class */ (function () {
|
|
3431
|
+
function CoCircularGaugeModule() {
|
|
3432
|
+
}
|
|
3433
|
+
return CoCircularGaugeModule;
|
|
3434
|
+
}());
|
|
3435
|
+
CoCircularGaugeModule.decorators = [
|
|
3436
|
+
{ type: i0.NgModule, args: [{
|
|
3437
|
+
imports: [
|
|
3438
|
+
common.CommonModule,
|
|
3439
|
+
ej2AngularCirculargauge.CircularGaugeModule
|
|
3440
|
+
],
|
|
3441
|
+
declarations: [
|
|
3442
|
+
CoCircularGaugeComponent
|
|
3443
|
+
],
|
|
3444
|
+
exports: [
|
|
3445
|
+
CoCircularGaugeComponent
|
|
3446
|
+
]
|
|
3447
|
+
},] }
|
|
3448
|
+
];
|
|
3449
|
+
|
|
3450
|
+
var CoLinearGaugeComponent = /** @class */ (function () {
|
|
3451
|
+
function CoLinearGaugeComponent() {
|
|
3452
|
+
this.color = GaugeColor.Low;
|
|
3453
|
+
}
|
|
3454
|
+
Object.defineProperty(CoLinearGaugeComponent.prototype, "value", {
|
|
3455
|
+
get: function () {
|
|
3456
|
+
return this._value;
|
|
3457
|
+
},
|
|
3458
|
+
set: function (value) {
|
|
3459
|
+
this._value = value;
|
|
3460
|
+
this._setColor();
|
|
3461
|
+
},
|
|
3462
|
+
enumerable: false,
|
|
3463
|
+
configurable: true
|
|
3464
|
+
});
|
|
3465
|
+
CoLinearGaugeComponent.prototype.showClass = function () {
|
|
3466
|
+
return true;
|
|
3467
|
+
};
|
|
3468
|
+
CoLinearGaugeComponent.prototype.getStyle = function () {
|
|
3469
|
+
return "linear-gradient(90deg, " + this.color + " 0 " + this.value + "%, white " + this.value + "% 100%";
|
|
3470
|
+
};
|
|
3471
|
+
CoLinearGaugeComponent.prototype._setColor = function () {
|
|
3472
|
+
if (this.value <= 0) {
|
|
3473
|
+
this.color = GaugeColor.Lowest;
|
|
3474
|
+
}
|
|
3475
|
+
else if (this.value >= 1 && this.value < 25) {
|
|
3476
|
+
this.color = GaugeColor.Low;
|
|
3477
|
+
}
|
|
3478
|
+
else if (this.value >= 25 && this.value < 50) {
|
|
3479
|
+
this.color = GaugeColor.MediumLow;
|
|
3480
|
+
}
|
|
3481
|
+
else if (this.value >= 50 && this.value < 75) {
|
|
3482
|
+
this.color = GaugeColor.MediumHigh;
|
|
3483
|
+
}
|
|
3484
|
+
else if (this.value >= 75 && this.value < 100) {
|
|
3485
|
+
this.color = GaugeColor.High;
|
|
3486
|
+
}
|
|
3487
|
+
else if (this.value >= 100) {
|
|
3488
|
+
this.color = GaugeColor.Highest;
|
|
3489
|
+
}
|
|
3490
|
+
};
|
|
3491
|
+
return CoLinearGaugeComponent;
|
|
3492
|
+
}());
|
|
3493
|
+
CoLinearGaugeComponent.decorators = [
|
|
3494
|
+
{ type: i0.Component, args: [{
|
|
3495
|
+
selector: "co-linear-gauge",
|
|
3496
|
+
template: "\n <div class=\"linear-gauge\"\n [style.background]=\"getStyle()\"\n [style.border-color]=\"color\"\n [textContent]=\"count ? count : ''\"\n ></div>\n ",
|
|
3497
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
3498
|
+
},] }
|
|
3499
|
+
];
|
|
3500
|
+
CoLinearGaugeComponent.propDecorators = {
|
|
3501
|
+
value: [{ type: i0.Input }],
|
|
3502
|
+
count: [{ type: i0.Input }],
|
|
3503
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-linear-gauge",] }]
|
|
3504
|
+
};
|
|
3505
|
+
|
|
3506
|
+
var CoLinearGaugeModule = /** @class */ (function () {
|
|
3507
|
+
function CoLinearGaugeModule() {
|
|
3508
|
+
}
|
|
3509
|
+
return CoLinearGaugeModule;
|
|
3510
|
+
}());
|
|
3511
|
+
CoLinearGaugeModule.decorators = [
|
|
3512
|
+
{ type: i0.NgModule, args: [{
|
|
3513
|
+
imports: [
|
|
3514
|
+
common.CommonModule,
|
|
3515
|
+
],
|
|
3516
|
+
declarations: [
|
|
3517
|
+
CoLinearGaugeComponent
|
|
3518
|
+
],
|
|
3519
|
+
exports: [
|
|
3520
|
+
CoLinearGaugeComponent
|
|
3521
|
+
]
|
|
3522
|
+
},] }
|
|
3523
|
+
];
|
|
3524
|
+
|
|
3525
|
+
var StatusbarPopupComponent = /** @class */ (function () {
|
|
3526
|
+
function StatusbarPopupComponent() {
|
|
3527
|
+
this.statusbarData = [];
|
|
3528
|
+
this.showClass = true;
|
|
3529
|
+
}
|
|
3530
|
+
return StatusbarPopupComponent;
|
|
3531
|
+
}());
|
|
3532
|
+
StatusbarPopupComponent.decorators = [
|
|
3533
|
+
{ type: i0.Component, args: [{
|
|
3534
|
+
selector: "co-statusbar-popup",
|
|
3535
|
+
template: "\n <div class=\"co-statusbar-popup-wrapper\" [overlay]=\"parentForOverlay\">\n <div class=\"status-descriptions\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status-description\">\n <co-circular-gauge [value]=\"data.percentage\"></co-circular-gauge>\n <span [textContent]=\"data.label\"></span>\n </div>\n </div>\n </div>\n ",
|
|
3536
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
3537
|
+
},] }
|
|
3538
|
+
];
|
|
3539
|
+
StatusbarPopupComponent.propDecorators = {
|
|
3540
|
+
statusbarData: [{ type: i0.Input }],
|
|
3541
|
+
parentForOverlay: [{ type: i0.Input }],
|
|
3542
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-statusbar-popup",] }]
|
|
3543
|
+
};
|
|
3544
|
+
|
|
3545
|
+
var StatusbarComponent = /** @class */ (function () {
|
|
3546
|
+
function StatusbarComponent(_elementRef, _overlayService) {
|
|
3547
|
+
this._elementRef = _elementRef;
|
|
3548
|
+
this._overlayService = _overlayService;
|
|
3549
|
+
this.statusbarClick = new i0.EventEmitter();
|
|
3550
|
+
this.popupShowing = false;
|
|
3551
|
+
}
|
|
3552
|
+
Object.defineProperty(StatusbarComponent.prototype, "statusbarData", {
|
|
3553
|
+
get: function () {
|
|
3554
|
+
return this._statusbarData;
|
|
3555
|
+
},
|
|
3556
|
+
set: function (value) {
|
|
3557
|
+
this._statusbarData = value;
|
|
3558
|
+
this.adjustTooHighPercentages();
|
|
3559
|
+
},
|
|
3560
|
+
enumerable: false,
|
|
3561
|
+
configurable: true
|
|
3562
|
+
});
|
|
3563
|
+
StatusbarComponent.prototype.showClass = function () {
|
|
3564
|
+
return true;
|
|
3565
|
+
};
|
|
3566
|
+
StatusbarComponent.prototype.handleClick = function (event) {
|
|
3567
|
+
this.handleShowPopup(event);
|
|
3568
|
+
};
|
|
3569
|
+
StatusbarComponent.prototype.handleShowPopup = function (event) {
|
|
3570
|
+
if (this.popupShowing) {
|
|
3571
|
+
return;
|
|
3572
|
+
}
|
|
3573
|
+
event.preventDefault();
|
|
3574
|
+
event.stopPropagation();
|
|
3575
|
+
this._overlayService.createComponent(StatusbarPopupComponent, { parentForOverlay: this._elementRef, statusbarData: this.statusbarData });
|
|
3576
|
+
this.popupShowing = true;
|
|
3577
|
+
};
|
|
3578
|
+
StatusbarComponent.prototype.handleHidePopup = function () {
|
|
3579
|
+
this._overlayService.removeComponent();
|
|
3580
|
+
this.popupShowing = false;
|
|
3581
|
+
};
|
|
3582
|
+
StatusbarComponent.prototype.adjustTooHighPercentages = function () {
|
|
3583
|
+
this._statusbarData.forEach(function (data) { return data.percentage > 100 ? data.percentage = 100 : false; });
|
|
3584
|
+
};
|
|
3585
|
+
return StatusbarComponent;
|
|
3586
|
+
}());
|
|
3587
|
+
StatusbarComponent.decorators = [
|
|
3588
|
+
{ type: i0.Component, args: [{
|
|
3589
|
+
selector: "co-statusbar",
|
|
3590
|
+
template: "\n <div class=\"co-statusbar-wrapper\" *ngIf=\"statusbarData\" [clickOutside]=\"popupShowing\"\n (clickOutside)=\"handleHidePopup()\">\n <div class=\"statuses\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status\">\n <co-linear-gauge [class.focused-status]=\"focusedStatusIndex !== undefined && focusedStatusIndex === index\"\n [value]=\"data.percentage\" [count]=\"data.count ? data.count : undefined\"></co-linear-gauge>\n </div>\n </div>\n </div>\n ",
|
|
3591
|
+
providers: [
|
|
3592
|
+
corecomponents_v12.OverlayService
|
|
3593
|
+
],
|
|
3594
|
+
animations: [
|
|
3595
|
+
animations.trigger("showHidePopup", [
|
|
3596
|
+
animations.state("void", animations.style({ opacity: 0 })),
|
|
3597
|
+
animations.state("*", animations.style({ opacity: 1 })),
|
|
3598
|
+
animations.transition("void <=> *", animations.animate("250ms ease-in-out")),
|
|
3599
|
+
])
|
|
3600
|
+
],
|
|
3601
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
3602
|
+
},] }
|
|
3603
|
+
];
|
|
3604
|
+
StatusbarComponent.ctorParameters = function () { return [
|
|
3605
|
+
{ type: i0.ElementRef },
|
|
3606
|
+
{ type: corecomponents_v12.OverlayService }
|
|
3607
|
+
]; };
|
|
3608
|
+
StatusbarComponent.propDecorators = {
|
|
3609
|
+
statusbarData: [{ type: i0.Input }],
|
|
3610
|
+
focusedStatusIndex: [{ type: i0.Input }],
|
|
3611
|
+
statusbarClick: [{ type: i0.Output }],
|
|
3612
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-statusbar",] }],
|
|
3613
|
+
handleClick: [{ type: i0.HostListener, args: ["click", ["$event"],] }]
|
|
3614
|
+
};
|
|
3615
|
+
|
|
3616
|
+
var StatusbarModule = /** @class */ (function () {
|
|
3617
|
+
function StatusbarModule() {
|
|
3618
|
+
}
|
|
3619
|
+
return StatusbarModule;
|
|
3620
|
+
}());
|
|
3621
|
+
StatusbarModule.decorators = [
|
|
3622
|
+
{ type: i0.NgModule, args: [{
|
|
3623
|
+
imports: [
|
|
3624
|
+
common.CommonModule,
|
|
3625
|
+
CoCircularGaugeModule,
|
|
3626
|
+
CoLinearGaugeModule,
|
|
3627
|
+
corecomponents_v12.ClickoutsideModule,
|
|
3628
|
+
corecomponents_v12.OverlayModule
|
|
3629
|
+
],
|
|
3630
|
+
declarations: [
|
|
3631
|
+
StatusbarComponent,
|
|
3632
|
+
StatusbarPopupComponent
|
|
3633
|
+
],
|
|
3634
|
+
exports: [
|
|
3635
|
+
StatusbarComponent,
|
|
3636
|
+
StatusbarPopupComponent
|
|
3637
|
+
]
|
|
3638
|
+
},] }
|
|
3639
|
+
];
|
|
3640
|
+
|
|
3641
|
+
var StockStatusbarComponent = /** @class */ (function () {
|
|
3642
|
+
function StockStatusbarComponent() {
|
|
3643
|
+
}
|
|
3644
|
+
return StockStatusbarComponent;
|
|
3645
|
+
}());
|
|
3646
|
+
StockStatusbarComponent.decorators = [
|
|
3647
|
+
{ type: i0.Component, args: [{
|
|
3648
|
+
selector: "co-stock-statusbar",
|
|
3649
|
+
template: "\n <div class=\"status-bar\">\n <div class=\"status-bar-block\" [ngClass]=\"{'red': value === 0, 'orange': value === 1, 'green': value === 2}\"></div>\n <div class=\"status-bar-block\" [ngClass]=\"{'orange': value === 1, 'green': value === 2}\"></div>\n <div class=\"status-bar-block\" [ngClass]=\"{'green': value === 2}\"></div>\n </div>\n ",
|
|
3650
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
3651
|
+
},] }
|
|
3652
|
+
];
|
|
3653
|
+
StockStatusbarComponent.ctorParameters = function () { return []; };
|
|
3654
|
+
StockStatusbarComponent.propDecorators = {
|
|
3655
|
+
value: [{ type: i0.Input }]
|
|
3656
|
+
};
|
|
3657
|
+
|
|
3658
|
+
var StockStatusbarModule = /** @class */ (function () {
|
|
3659
|
+
function StockStatusbarModule() {
|
|
3660
|
+
}
|
|
3661
|
+
return StockStatusbarModule;
|
|
3662
|
+
}());
|
|
3663
|
+
StockStatusbarModule.decorators = [
|
|
3664
|
+
{ type: i0.NgModule, args: [{
|
|
3665
|
+
imports: [
|
|
3666
|
+
common.CommonModule,
|
|
3667
|
+
],
|
|
3668
|
+
declarations: [
|
|
3669
|
+
StockStatusbarComponent
|
|
3670
|
+
],
|
|
3671
|
+
exports: [
|
|
3672
|
+
StockStatusbarComponent
|
|
3673
|
+
]
|
|
3674
|
+
},] }
|
|
3675
|
+
];
|
|
3676
|
+
|
|
3677
|
+
var StockModule = /** @class */ (function () {
|
|
3678
|
+
function StockModule() {
|
|
3679
|
+
}
|
|
3680
|
+
return StockModule;
|
|
3681
|
+
}());
|
|
3682
|
+
StockModule.decorators = [
|
|
3683
|
+
{ type: i0.NgModule, args: [{
|
|
3684
|
+
imports: [
|
|
3685
|
+
corecomponents_v12.InputComboBoxModule,
|
|
3686
|
+
corecomponents_v12.CoGridModule,
|
|
3687
|
+
corecomponents_v12.ButtonModule,
|
|
3688
|
+
common.CommonModule,
|
|
3689
|
+
corecomponents_v12.InputRadioButtonModule,
|
|
3690
|
+
corecomponents_v12.DropDownModule,
|
|
3265
3691
|
corecomponents_v12.SimpleGridModule,
|
|
3266
3692
|
corecomponents_v12.ImageModule,
|
|
3267
3693
|
corecomponents_v12.InputTextModule,
|
|
@@ -3271,7 +3697,9 @@
|
|
|
3271
3697
|
corecomponents_v12.CoDialogWizardModule,
|
|
3272
3698
|
corecomponents_v12.InputTextareaModule,
|
|
3273
3699
|
TabBarModule,
|
|
3274
|
-
corecomponents_v12.CoDialogModule
|
|
3700
|
+
corecomponents_v12.CoDialogModule,
|
|
3701
|
+
StatusbarModule,
|
|
3702
|
+
StockStatusbarModule
|
|
3275
3703
|
],
|
|
3276
3704
|
declarations: [
|
|
3277
3705
|
StockComponent,
|
|
@@ -3335,7 +3763,7 @@
|
|
|
3335
3763
|
var KeyPadComponent = /** @class */ (function () {
|
|
3336
3764
|
function KeyPadComponent(iconCacheService) {
|
|
3337
3765
|
this.iconCacheService = iconCacheService;
|
|
3338
|
-
this.icons = exports["
|
|
3766
|
+
this.icons = exports["ɵbl"];
|
|
3339
3767
|
this.showValue = true;
|
|
3340
3768
|
this.emitModelChangeOnEnter = true;
|
|
3341
3769
|
this.modelChange = new i0.EventEmitter();
|
|
@@ -3526,7 +3954,7 @@
|
|
|
3526
3954
|
var LayoutSwitcherComponent = /** @class */ (function () {
|
|
3527
3955
|
function LayoutSwitcherComponent(iconCacheService) {
|
|
3528
3956
|
this.iconCacheService = iconCacheService;
|
|
3529
|
-
this.icon = exports["
|
|
3957
|
+
this.icon = exports["ɵbl"];
|
|
3530
3958
|
this.layoutItems = [];
|
|
3531
3959
|
this.layoutSwitchEmit = new i0.EventEmitter();
|
|
3532
3960
|
this.showMaskSidebar = false;
|
|
@@ -3605,325 +4033,6 @@
|
|
|
3605
4033
|
},] }
|
|
3606
4034
|
];
|
|
3607
4035
|
|
|
3608
|
-
var GaugeColor;
|
|
3609
|
-
(function (GaugeColor) {
|
|
3610
|
-
GaugeColor["Lowest"] = "#E0E0E0";
|
|
3611
|
-
GaugeColor["Low"] = "#fff7b8";
|
|
3612
|
-
GaugeColor["MediumLow"] = "#ffe367";
|
|
3613
|
-
GaugeColor["MediumHigh"] = "#ffc15b";
|
|
3614
|
-
GaugeColor["High"] = "#F88952";
|
|
3615
|
-
GaugeColor["Highest"] = "#5FDCB3";
|
|
3616
|
-
})(GaugeColor || (GaugeColor = {}));
|
|
3617
|
-
|
|
3618
|
-
var CoCircularGaugeComponent = /** @class */ (function () {
|
|
3619
|
-
function CoCircularGaugeComponent() {
|
|
3620
|
-
this._color = GaugeColor.Low;
|
|
3621
|
-
this.majorTicks = {
|
|
3622
|
-
height: 0,
|
|
3623
|
-
};
|
|
3624
|
-
this.minorTicks = {
|
|
3625
|
-
height: 0
|
|
3626
|
-
};
|
|
3627
|
-
this.labelStyle = {
|
|
3628
|
-
position: 'Inside', useRangeColor: true,
|
|
3629
|
-
font: { size: '0px', fontFamily: 'inherit' }
|
|
3630
|
-
};
|
|
3631
|
-
this.lineStyle = {
|
|
3632
|
-
width: 0
|
|
3633
|
-
};
|
|
3634
|
-
this.ranges = [
|
|
3635
|
-
{
|
|
3636
|
-
start: 1, end: 100,
|
|
3637
|
-
radius: '13px',
|
|
3638
|
-
startWidth: 3, endWidth: 3,
|
|
3639
|
-
color: '#E0E0E0',
|
|
3640
|
-
roundedCornerRadius: 0
|
|
3641
|
-
},
|
|
3642
|
-
];
|
|
3643
|
-
}
|
|
3644
|
-
Object.defineProperty(CoCircularGaugeComponent.prototype, "value", {
|
|
3645
|
-
get: function () {
|
|
3646
|
-
return this._value;
|
|
3647
|
-
},
|
|
3648
|
-
set: function (value) {
|
|
3649
|
-
this._value = value;
|
|
3650
|
-
this._setColor();
|
|
3651
|
-
},
|
|
3652
|
-
enumerable: false,
|
|
3653
|
-
configurable: true
|
|
3654
|
-
});
|
|
3655
|
-
Object.defineProperty(CoCircularGaugeComponent.prototype, "color", {
|
|
3656
|
-
get: function () {
|
|
3657
|
-
return this._color;
|
|
3658
|
-
},
|
|
3659
|
-
enumerable: false,
|
|
3660
|
-
configurable: true
|
|
3661
|
-
});
|
|
3662
|
-
CoCircularGaugeComponent.prototype.showClass = function () {
|
|
3663
|
-
return true;
|
|
3664
|
-
};
|
|
3665
|
-
CoCircularGaugeComponent.prototype.getAxes = function () {
|
|
3666
|
-
return [{
|
|
3667
|
-
minimum: 0,
|
|
3668
|
-
maximum: 100,
|
|
3669
|
-
radius: '15px',
|
|
3670
|
-
startAngle: 1,
|
|
3671
|
-
endAngle: 360,
|
|
3672
|
-
majorTicks: this.majorTicks,
|
|
3673
|
-
minorTicks: this.minorTicks,
|
|
3674
|
-
labelStyle: this.labelStyle,
|
|
3675
|
-
lineStyle: this.lineStyle,
|
|
3676
|
-
ranges: this.ranges,
|
|
3677
|
-
pointers: this.getPointers(),
|
|
3678
|
-
annotations: this.getAnnotations(),
|
|
3679
|
-
}];
|
|
3680
|
-
};
|
|
3681
|
-
CoCircularGaugeComponent.prototype.getPointers = function () {
|
|
3682
|
-
if (this.value) {
|
|
3683
|
-
return [{
|
|
3684
|
-
roundedCornerRadius: 0,
|
|
3685
|
-
value: this.value,
|
|
3686
|
-
type: 'RangeBar',
|
|
3687
|
-
radius: '13px',
|
|
3688
|
-
color: this.color,
|
|
3689
|
-
border: {
|
|
3690
|
-
width: 0
|
|
3691
|
-
},
|
|
3692
|
-
animation: {
|
|
3693
|
-
enable: false
|
|
3694
|
-
},
|
|
3695
|
-
pointerWidth: 3
|
|
3696
|
-
}];
|
|
3697
|
-
}
|
|
3698
|
-
};
|
|
3699
|
-
;
|
|
3700
|
-
CoCircularGaugeComponent.prototype.getAnnotations = function () {
|
|
3701
|
-
if (this.value !== undefined) {
|
|
3702
|
-
var label = this.value ? this.value + "%" : "0%";
|
|
3703
|
-
return [{
|
|
3704
|
-
content: '<div class="annotation" style="width:20px;height:20px;">' +
|
|
3705
|
-
'<div class="annotation-label">' + label + '</div></div>',
|
|
3706
|
-
zIndex: '10',
|
|
3707
|
-
}];
|
|
3708
|
-
}
|
|
3709
|
-
};
|
|
3710
|
-
CoCircularGaugeComponent.prototype._setColor = function () {
|
|
3711
|
-
if (this.value <= 0) {
|
|
3712
|
-
this._color = GaugeColor.Lowest;
|
|
3713
|
-
}
|
|
3714
|
-
else if (this.value >= 1 && this.value < 25) {
|
|
3715
|
-
this._color = GaugeColor.Low;
|
|
3716
|
-
}
|
|
3717
|
-
else if (this.value >= 25 && this.value < 50) {
|
|
3718
|
-
this._color = GaugeColor.MediumLow;
|
|
3719
|
-
}
|
|
3720
|
-
else if (this.value >= 50 && this.value < 75) {
|
|
3721
|
-
this._color = GaugeColor.MediumHigh;
|
|
3722
|
-
}
|
|
3723
|
-
else if (this.value >= 75 && this.value < 100) {
|
|
3724
|
-
this._color = GaugeColor.High;
|
|
3725
|
-
}
|
|
3726
|
-
else if (this.value >= 100) {
|
|
3727
|
-
this._color = GaugeColor.Highest;
|
|
3728
|
-
}
|
|
3729
|
-
};
|
|
3730
|
-
return CoCircularGaugeComponent;
|
|
3731
|
-
}());
|
|
3732
|
-
CoCircularGaugeComponent.decorators = [
|
|
3733
|
-
{ type: i0.Component, args: [{
|
|
3734
|
-
selector: "co-circular-gauge",
|
|
3735
|
-
template: "\n <div class=\"circular-gauge-wrapper\">\n <ejs-circulargauge\n class=\"circular-gauge\"\n [width]=\"'100%'\"\n [axes]=\"getAxes()\">\n </ejs-circulargauge>\n </div>\n ",
|
|
3736
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
3737
|
-
},] }
|
|
3738
|
-
];
|
|
3739
|
-
CoCircularGaugeComponent.propDecorators = {
|
|
3740
|
-
circulargauge: [{ type: i0.ViewChild, args: ['circulargauge',] }],
|
|
3741
|
-
value: [{ type: i0.Input }],
|
|
3742
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-circular-gauge",] }]
|
|
3743
|
-
};
|
|
3744
|
-
|
|
3745
|
-
var CoCircularGaugeModule = /** @class */ (function () {
|
|
3746
|
-
function CoCircularGaugeModule() {
|
|
3747
|
-
}
|
|
3748
|
-
return CoCircularGaugeModule;
|
|
3749
|
-
}());
|
|
3750
|
-
CoCircularGaugeModule.decorators = [
|
|
3751
|
-
{ type: i0.NgModule, args: [{
|
|
3752
|
-
imports: [
|
|
3753
|
-
common.CommonModule,
|
|
3754
|
-
ej2AngularCirculargauge.CircularGaugeModule
|
|
3755
|
-
],
|
|
3756
|
-
declarations: [
|
|
3757
|
-
CoCircularGaugeComponent
|
|
3758
|
-
],
|
|
3759
|
-
exports: [
|
|
3760
|
-
CoCircularGaugeComponent
|
|
3761
|
-
]
|
|
3762
|
-
},] }
|
|
3763
|
-
];
|
|
3764
|
-
|
|
3765
|
-
var CoLinearGaugeComponent = /** @class */ (function () {
|
|
3766
|
-
function CoLinearGaugeComponent() {
|
|
3767
|
-
this.color = GaugeColor.Low;
|
|
3768
|
-
}
|
|
3769
|
-
Object.defineProperty(CoLinearGaugeComponent.prototype, "value", {
|
|
3770
|
-
get: function () {
|
|
3771
|
-
return this._value;
|
|
3772
|
-
},
|
|
3773
|
-
set: function (value) {
|
|
3774
|
-
this._value = value;
|
|
3775
|
-
this._setColor();
|
|
3776
|
-
},
|
|
3777
|
-
enumerable: false,
|
|
3778
|
-
configurable: true
|
|
3779
|
-
});
|
|
3780
|
-
CoLinearGaugeComponent.prototype.showClass = function () {
|
|
3781
|
-
return true;
|
|
3782
|
-
};
|
|
3783
|
-
CoLinearGaugeComponent.prototype.getStyle = function () {
|
|
3784
|
-
return "linear-gradient(90deg, " + this.color + " 0 " + this.value + "%, white " + this.value + "% 100%";
|
|
3785
|
-
};
|
|
3786
|
-
CoLinearGaugeComponent.prototype._setColor = function () {
|
|
3787
|
-
if (this.value <= 0) {
|
|
3788
|
-
this.color = GaugeColor.Lowest;
|
|
3789
|
-
}
|
|
3790
|
-
else if (this.value >= 1 && this.value < 25) {
|
|
3791
|
-
this.color = GaugeColor.Low;
|
|
3792
|
-
}
|
|
3793
|
-
else if (this.value >= 25 && this.value < 50) {
|
|
3794
|
-
this.color = GaugeColor.MediumLow;
|
|
3795
|
-
}
|
|
3796
|
-
else if (this.value >= 50 && this.value < 75) {
|
|
3797
|
-
this.color = GaugeColor.MediumHigh;
|
|
3798
|
-
}
|
|
3799
|
-
else if (this.value >= 75 && this.value < 100) {
|
|
3800
|
-
this.color = GaugeColor.High;
|
|
3801
|
-
}
|
|
3802
|
-
else if (this.value >= 100) {
|
|
3803
|
-
this.color = GaugeColor.Highest;
|
|
3804
|
-
}
|
|
3805
|
-
};
|
|
3806
|
-
return CoLinearGaugeComponent;
|
|
3807
|
-
}());
|
|
3808
|
-
CoLinearGaugeComponent.decorators = [
|
|
3809
|
-
{ type: i0.Component, args: [{
|
|
3810
|
-
selector: "co-linear-gauge",
|
|
3811
|
-
template: "\n <div class=\"linear-gauge\"\n [style.background]=\"getStyle()\"\n [style.border-color]=\"color\"\n [textContent]=\"count ? count : ''\"\n ></div>\n ",
|
|
3812
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
3813
|
-
},] }
|
|
3814
|
-
];
|
|
3815
|
-
CoLinearGaugeComponent.propDecorators = {
|
|
3816
|
-
value: [{ type: i0.Input }],
|
|
3817
|
-
count: [{ type: i0.Input }],
|
|
3818
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-linear-gauge",] }]
|
|
3819
|
-
};
|
|
3820
|
-
|
|
3821
|
-
var CoLinearGaugeModule = /** @class */ (function () {
|
|
3822
|
-
function CoLinearGaugeModule() {
|
|
3823
|
-
}
|
|
3824
|
-
return CoLinearGaugeModule;
|
|
3825
|
-
}());
|
|
3826
|
-
CoLinearGaugeModule.decorators = [
|
|
3827
|
-
{ type: i0.NgModule, args: [{
|
|
3828
|
-
imports: [
|
|
3829
|
-
common.CommonModule,
|
|
3830
|
-
],
|
|
3831
|
-
declarations: [
|
|
3832
|
-
CoLinearGaugeComponent
|
|
3833
|
-
],
|
|
3834
|
-
exports: [
|
|
3835
|
-
CoLinearGaugeComponent
|
|
3836
|
-
]
|
|
3837
|
-
},] }
|
|
3838
|
-
];
|
|
3839
|
-
|
|
3840
|
-
var StatusbarComponent = /** @class */ (function () {
|
|
3841
|
-
function StatusbarComponent() {
|
|
3842
|
-
this.statusbarClick = new i0.EventEmitter();
|
|
3843
|
-
this.showPopup = false;
|
|
3844
|
-
this.popupClass = 'dropdown';
|
|
3845
|
-
}
|
|
3846
|
-
Object.defineProperty(StatusbarComponent.prototype, "statusbarData", {
|
|
3847
|
-
get: function () {
|
|
3848
|
-
return this._statusbarData;
|
|
3849
|
-
},
|
|
3850
|
-
set: function (value) {
|
|
3851
|
-
this._statusbarData = value;
|
|
3852
|
-
this.adjustTooHighPercentages();
|
|
3853
|
-
},
|
|
3854
|
-
enumerable: false,
|
|
3855
|
-
configurable: true
|
|
3856
|
-
});
|
|
3857
|
-
StatusbarComponent.prototype.showClass = function () {
|
|
3858
|
-
return true;
|
|
3859
|
-
};
|
|
3860
|
-
StatusbarComponent.prototype.onStatusbarClick = function (event) {
|
|
3861
|
-
this.showPopup = !this.showPopup;
|
|
3862
|
-
if (this.showPopup) {
|
|
3863
|
-
this._mouseY = event.screenY;
|
|
3864
|
-
this._windowHeight = window.innerHeight;
|
|
3865
|
-
this.setPopupClass();
|
|
3866
|
-
}
|
|
3867
|
-
};
|
|
3868
|
-
StatusbarComponent.prototype.setPopupClass = function () {
|
|
3869
|
-
var popupHeight = this.statusbarData.length * 30;
|
|
3870
|
-
var dropdownInScreen = (this._mouseY + popupHeight) <= this._windowHeight;
|
|
3871
|
-
if (dropdownInScreen) {
|
|
3872
|
-
this.popupClass = 'dropdown';
|
|
3873
|
-
}
|
|
3874
|
-
else {
|
|
3875
|
-
this.popupClass = 'dropup';
|
|
3876
|
-
}
|
|
3877
|
-
};
|
|
3878
|
-
StatusbarComponent.prototype.adjustTooHighPercentages = function () {
|
|
3879
|
-
this._statusbarData.forEach(function (data) { return data.percentage > 100 ? data.percentage = 100 : false; });
|
|
3880
|
-
};
|
|
3881
|
-
return StatusbarComponent;
|
|
3882
|
-
}());
|
|
3883
|
-
StatusbarComponent.decorators = [
|
|
3884
|
-
{ type: i0.Component, args: [{
|
|
3885
|
-
selector: "co-statusbar",
|
|
3886
|
-
template: "\n <div class=\"co-statusbar-wrapper\"\n *ngIf=\"statusbarData\"\n (click)=\"onStatusbarClick($event)\">\n <div class=\"statuses\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status\">\n <co-linear-gauge [class.focused-status]=\"focusedStatusIndex !== undefined && focusedStatusIndex === index\"\n [value]=\"data.percentage\" [count]=\"data.count ? data.count : undefined\"></co-linear-gauge>\n </div>\n </div>\n <div class=status-description-popup *ngIf=\"showPopup\" @showHidePopup [ngClass]=\"popupClass\" clickOutside (clickOutside)=\"showPopup=false\">\n <div class=\"status-descriptions\">\n <div *ngFor=\"let data of statusbarData; let index = index\" class=\"status-description\">\n <co-circular-gauge [value]=\"data.percentage\"></co-circular-gauge>\n <span [textContent]=\"data.label\"></span>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
3887
|
-
animations: [
|
|
3888
|
-
animations.trigger("showHidePopup", [
|
|
3889
|
-
animations.state("void", animations.style({ opacity: 0 })),
|
|
3890
|
-
animations.state("*", animations.style({ opacity: 1 })),
|
|
3891
|
-
animations.transition("void <=> *", animations.animate("250ms ease-in-out")),
|
|
3892
|
-
])
|
|
3893
|
-
],
|
|
3894
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
3895
|
-
},] }
|
|
3896
|
-
];
|
|
3897
|
-
StatusbarComponent.ctorParameters = function () { return []; };
|
|
3898
|
-
StatusbarComponent.propDecorators = {
|
|
3899
|
-
statusbarData: [{ type: i0.Input }],
|
|
3900
|
-
focusedStatusIndex: [{ type: i0.Input }],
|
|
3901
|
-
statusbarClick: [{ type: i0.Output }],
|
|
3902
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-statusbar",] }]
|
|
3903
|
-
};
|
|
3904
|
-
|
|
3905
|
-
var StatusbarModule = /** @class */ (function () {
|
|
3906
|
-
function StatusbarModule() {
|
|
3907
|
-
}
|
|
3908
|
-
return StatusbarModule;
|
|
3909
|
-
}());
|
|
3910
|
-
StatusbarModule.decorators = [
|
|
3911
|
-
{ type: i0.NgModule, args: [{
|
|
3912
|
-
imports: [
|
|
3913
|
-
common.CommonModule,
|
|
3914
|
-
CoCircularGaugeModule,
|
|
3915
|
-
CoLinearGaugeModule,
|
|
3916
|
-
corecomponents_v12.ClickoutsideModule
|
|
3917
|
-
],
|
|
3918
|
-
declarations: [
|
|
3919
|
-
StatusbarComponent
|
|
3920
|
-
],
|
|
3921
|
-
exports: [
|
|
3922
|
-
StatusbarComponent
|
|
3923
|
-
]
|
|
3924
|
-
},] }
|
|
3925
|
-
];
|
|
3926
|
-
|
|
3927
4036
|
var DatePlanningComponent = /** @class */ (function () {
|
|
3928
4037
|
function DatePlanningComponent(_changeDetector, renderer) {
|
|
3929
4038
|
this._changeDetector = _changeDetector;
|
|
@@ -4110,7 +4219,7 @@
|
|
|
4110
4219
|
this.iconCacheService = iconCacheService;
|
|
4111
4220
|
this.selectedDate = new Date();
|
|
4112
4221
|
this.selectedDateChange = new i0.EventEmitter();
|
|
4113
|
-
this.icons = exports["
|
|
4222
|
+
this.icons = exports["ɵbl"];
|
|
4114
4223
|
this.showMonthYearSelect = false;
|
|
4115
4224
|
this.expanded = false;
|
|
4116
4225
|
}
|
|
@@ -4671,7 +4780,7 @@
|
|
|
4671
4780
|
},] }
|
|
4672
4781
|
];
|
|
4673
4782
|
CalendarViewComponent.ctorParameters = function () { return [
|
|
4674
|
-
{ type: exports["
|
|
4783
|
+
{ type: exports["ɵbr"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
|
|
4675
4784
|
]; };
|
|
4676
4785
|
CalendarViewComponent.propDecorators = {
|
|
4677
4786
|
view: [{ type: i0.Input }],
|
|
@@ -4759,7 +4868,7 @@
|
|
|
4759
4868
|
CalendarUtils.Locale = undefined;
|
|
4760
4869
|
CalendarUtils.Now = new Date();
|
|
4761
4870
|
CalendarUtils.ctorParameters = function () { return [
|
|
4762
|
-
{ type: exports["
|
|
4871
|
+
{ type: exports["ɵbr"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] }
|
|
4763
4872
|
]; };
|
|
4764
4873
|
|
|
4765
4874
|
var AgendaEvent = /** @class */ (function () {
|
|
@@ -4816,7 +4925,7 @@
|
|
|
4816
4925
|
this._renderer = _renderer;
|
|
4817
4926
|
this._ngZone = _ngZone;
|
|
4818
4927
|
this.iconCacheService = iconCacheService;
|
|
4819
|
-
this.icons = exports["
|
|
4928
|
+
this.icons = exports["ɵbl"];
|
|
4820
4929
|
this.viewTypes = CalendarView;
|
|
4821
4930
|
this.scrollbarWidth = 15;
|
|
4822
4931
|
this.view = CalendarView.WeekSelectView;
|
|
@@ -4992,7 +5101,7 @@
|
|
|
4992
5101
|
},] }
|
|
4993
5102
|
];
|
|
4994
5103
|
AgendaHeaderComponent.ctorParameters = function () { return [
|
|
4995
|
-
{ type: exports["
|
|
5104
|
+
{ type: exports["ɵbr"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
|
|
4996
5105
|
{ type: i0.ElementRef },
|
|
4997
5106
|
{ type: i0.Renderer2 },
|
|
4998
5107
|
{ type: i0.NgZone },
|
|
@@ -5092,7 +5201,7 @@
|
|
|
5092
5201
|
{ type: i0.Directive }
|
|
5093
5202
|
];
|
|
5094
5203
|
AgendaBaseViewComponent.ctorParameters = function () { return [
|
|
5095
|
-
{ type: exports["
|
|
5204
|
+
{ type: exports["ɵbr"], decorators: [{ type: i0.Inject, args: [i0.LOCALE_ID,] }] },
|
|
5096
5205
|
{ type: IconCacheService }
|
|
5097
5206
|
]; };
|
|
5098
5207
|
AgendaBaseViewComponent.propDecorators = {
|
|
@@ -5208,7 +5317,7 @@
|
|
|
5208
5317
|
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
5209
5318
|
_this.view = CalendarView.WeekSelectView;
|
|
5210
5319
|
_this.week = NULL_WEEK;
|
|
5211
|
-
_this.icons = exports["
|
|
5320
|
+
_this.icons = exports["ɵbl"];
|
|
5212
5321
|
return _this;
|
|
5213
5322
|
}
|
|
5214
5323
|
AgendaWeekSelectViewComponent.prototype.prepareViewData = function () {
|
|
@@ -5453,7 +5562,7 @@
|
|
|
5453
5562
|
this._elementRef = _elementRef;
|
|
5454
5563
|
this._renderer = _renderer;
|
|
5455
5564
|
this.iconCacheService = iconCacheService;
|
|
5456
|
-
this.icons = exports["
|
|
5565
|
+
this.icons = exports["ɵbl"];
|
|
5457
5566
|
this.event = NULL_AGENDA_EVENT;
|
|
5458
5567
|
this.eventChecked = new i0.EventEmitter();
|
|
5459
5568
|
}
|
|
@@ -5622,7 +5731,7 @@
|
|
|
5622
5731
|
var AgendaSelectEventComponent = /** @class */ (function () {
|
|
5623
5732
|
function AgendaSelectEventComponent(iconCacheService) {
|
|
5624
5733
|
this.iconCacheService = iconCacheService;
|
|
5625
|
-
this.icons = exports["
|
|
5734
|
+
this.icons = exports["ɵbl"];
|
|
5626
5735
|
this.event = NULL_AGENDA_EVENT;
|
|
5627
5736
|
this.eventChecked = new i0.EventEmitter();
|
|
5628
5737
|
}
|
|
@@ -5718,38 +5827,41 @@
|
|
|
5718
5827
|
exports.sendMethodsWithIcon = sendMethodsWithIcon;
|
|
5719
5828
|
exports["ɵa"] = SignatureComponent;
|
|
5720
5829
|
exports["ɵb"] = SignaturesComponent;
|
|
5721
|
-
exports["ɵba"] =
|
|
5722
|
-
exports["ɵbb"] =
|
|
5723
|
-
exports["ɵbc"] =
|
|
5724
|
-
exports["ɵbd"] =
|
|
5725
|
-
exports["ɵbe"] =
|
|
5726
|
-
exports["ɵbf"] =
|
|
5727
|
-
exports["ɵbg"] =
|
|
5728
|
-
exports["ɵbh"] =
|
|
5729
|
-
exports["
|
|
5730
|
-
exports["
|
|
5731
|
-
exports["
|
|
5732
|
-
exports["ɵbm"] =
|
|
5733
|
-
exports["ɵbn"] =
|
|
5734
|
-
exports["
|
|
5735
|
-
exports["
|
|
5736
|
-
exports["
|
|
5737
|
-
exports["ɵbs"] =
|
|
5738
|
-
exports["ɵbt"] =
|
|
5739
|
-
exports["ɵbu"] =
|
|
5740
|
-
exports["ɵbv"] =
|
|
5741
|
-
exports["ɵbw"] =
|
|
5742
|
-
exports["ɵbx"] =
|
|
5743
|
-
exports["ɵby"] =
|
|
5744
|
-
exports["ɵbz"] =
|
|
5830
|
+
exports["ɵba"] = OrderTabComponent;
|
|
5831
|
+
exports["ɵbb"] = StockTabsComponent;
|
|
5832
|
+
exports["ɵbc"] = StockHistoryTabsComponent;
|
|
5833
|
+
exports["ɵbd"] = OrderStockTabComponent;
|
|
5834
|
+
exports["ɵbe"] = StockLocationComponent;
|
|
5835
|
+
exports["ɵbf"] = StockHistoryComponent;
|
|
5836
|
+
exports["ɵbg"] = OrderSupplyStockHistoryComponent;
|
|
5837
|
+
exports["ɵbh"] = OrderCommissionStockHistoryComponent;
|
|
5838
|
+
exports["ɵbi"] = OrderStockHistoryComponent;
|
|
5839
|
+
exports["ɵbj"] = AllocationStockHistoryComponent;
|
|
5840
|
+
exports["ɵbk"] = SendMethod;
|
|
5841
|
+
exports["ɵbm"] = CalendarAllYearsComponent;
|
|
5842
|
+
exports["ɵbn"] = CalendarAllMonthsComponent;
|
|
5843
|
+
exports["ɵbo"] = CalendarHeaderComponent;
|
|
5844
|
+
exports["ɵbp"] = CalendarComponent;
|
|
5845
|
+
exports["ɵbq"] = CalendarViewComponent;
|
|
5846
|
+
exports["ɵbs"] = AgendaHeaderComponent;
|
|
5847
|
+
exports["ɵbt"] = AgendaViewComponent;
|
|
5848
|
+
exports["ɵbu"] = AgendaMonthViewComponent;
|
|
5849
|
+
exports["ɵbv"] = AgendaBaseViewComponent;
|
|
5850
|
+
exports["ɵbw"] = AgendaDayViewComponent;
|
|
5851
|
+
exports["ɵbx"] = AgendaWeekViewComponent;
|
|
5852
|
+
exports["ɵby"] = AgendaWeekSelectViewComponent;
|
|
5853
|
+
exports["ɵbz"] = AgendaHourViewComponent;
|
|
5745
5854
|
exports["ɵc"] = StockService;
|
|
5746
|
-
exports["ɵca"] =
|
|
5747
|
-
exports["ɵcb"] =
|
|
5748
|
-
exports["ɵcc"] =
|
|
5749
|
-
exports["ɵcd"] =
|
|
5750
|
-
exports["ɵce"] =
|
|
5751
|
-
exports["ɵcf"] =
|
|
5752
|
-
exports["ɵcg"] =
|
|
5855
|
+
exports["ɵca"] = AgendaHourCellComponent;
|
|
5856
|
+
exports["ɵcb"] = AgendaHourViewLabelsComponent;
|
|
5857
|
+
exports["ɵcc"] = AgendaHalfHourCellComponent;
|
|
5858
|
+
exports["ɵcd"] = AgendaEventsComponent;
|
|
5859
|
+
exports["ɵce"] = AgendaEventComponent;
|
|
5860
|
+
exports["ɵcf"] = ViewSelectComponent;
|
|
5861
|
+
exports["ɵcg"] = AgendaSelectEventComponent;
|
|
5862
|
+
exports["ɵch"] = MASTER_PIPES;
|
|
5863
|
+
exports["ɵci"] = ArrayNumberPipe;
|
|
5864
|
+
exports["ɵcj"] = UCfirstPipe;
|
|
5753
5865
|
exports["ɵd"] = SharedConnectorService;
|
|
5754
5866
|
exports["ɵe"] = OptionsService;
|
|
5755
5867
|
exports["ɵf"] = DictionaryService;
|
|
@@ -5765,14 +5877,14 @@
|
|
|
5765
5877
|
exports["ɵp"] = SendMethodPrinterComponent;
|
|
5766
5878
|
exports["ɵq"] = TabBarModule;
|
|
5767
5879
|
exports["ɵr"] = TabBarComponent;
|
|
5768
|
-
exports["ɵs"] =
|
|
5769
|
-
exports["ɵt"] =
|
|
5770
|
-
exports["ɵu"] =
|
|
5771
|
-
exports["ɵv"] =
|
|
5772
|
-
exports["ɵw"] =
|
|
5773
|
-
exports["ɵx"] =
|
|
5774
|
-
exports["ɵy"] =
|
|
5775
|
-
exports["ɵz"] =
|
|
5880
|
+
exports["ɵs"] = StatusbarPopupComponent;
|
|
5881
|
+
exports["ɵt"] = StockStatusbarModule;
|
|
5882
|
+
exports["ɵu"] = StockStatusbarComponent;
|
|
5883
|
+
exports["ɵv"] = StockInformationComponent;
|
|
5884
|
+
exports["ɵw"] = StockInformationGridComponent;
|
|
5885
|
+
exports["ɵx"] = StockTransferComponent;
|
|
5886
|
+
exports["ɵy"] = StockChangeAmountComponent;
|
|
5887
|
+
exports["ɵz"] = StockTabComponent;
|
|
5776
5888
|
|
|
5777
5889
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
5778
5890
|
|