@colijnit/sharedcomponents 1.0.18 → 1.0.20
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 +560 -83
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +9 -7
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +10 -8
- package/esm2015/lib/assets/dictionary/text.properties.js +11 -0
- package/esm2015/lib/components/layout-switcher/layout-switcher.component.js +74 -0
- package/esm2015/lib/components/layout-switcher/layout-switcher.module.js +21 -0
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +87 -17
- package/esm2015/lib/components/stock/stock.component.js +17 -4
- package/esm2015/lib/components/stock/stock.module.js +3 -3
- package/esm2015/lib/enum/icon.enum.js +4 -1
- package/esm2015/lib/enum/language-code.enum.js +8 -0
- package/esm2015/lib/model/icon-svg.js +4 -1
- package/esm2015/lib/service/dictionary.service.js +76 -0
- package/esm2015/lib/service/options.service.js +71 -0
- package/esm2015/lib/service/shared-connector.service.js +262 -0
- package/esm2015/lib/service/shared.service.js +30 -0
- package/esm2015/lib/service/stock.service.js +21 -26
- package/esm2015/lib/utils/string-utils.js +64 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/colijnit-sharedcomponents.js +462 -58
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/assets/dictionary/text.properties.d.ts +3 -0
- package/lib/components/layout-switcher/layout-switcher.component.d.ts +16 -0
- package/lib/components/layout-switcher/layout-switcher.module.d.ts +2 -0
- package/lib/components/layout-switcher/style/_layout.scss +96 -0
- package/lib/components/layout-switcher/style/_material-definition.scss +16 -0
- package/lib/components/layout-switcher/style/_theme.scss +6 -0
- package/lib/components/layout-switcher/style/material.scss +5 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +23 -6
- package/lib/components/send-method-dialog/style/_layout.scss +5 -0
- package/lib/components/stock/stock.component.d.ts +5 -1
- package/lib/enum/icon.enum.d.ts +3 -0
- package/lib/enum/language-code.enum.d.ts +6 -0
- package/lib/service/dictionary.service.d.ts +21 -0
- package/lib/service/options.service.d.ts +13 -0
- package/lib/service/{ione-connector-adapter.service.d.ts → shared-connector.service.d.ts} +5 -5
- package/lib/service/shared.service.d.ts +8 -0
- package/lib/service/stock.service.d.ts +2 -5
- package/lib/utils/string-utils.d.ts +22 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/esm2015/lib/service/ione-connector-adapter.service.js +0 -265
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/report/printer.bo'), require('@colijnit/articleapi/build/utils/function/not-nill.function'), require('@colijnit/articleapi/build/utils/object-utils'), require('@colijnit/articleapi/build/enum/yes-no-db-type.enum'), require('@colijnit/articleapi/build/enum/true-false-db-type.enum'), require('@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/articleapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/articleapi/build/utils/date-utils'), require('@colijnit/articleapi/build/utils/number-utils'), require('@colijnit/articleapi/build/utils/function/is-nill.function'), require('@colijnit/articleapi/build/factory/decorators/map-property.decorator'), require('@colijnit/articleapi/build/factory/decorators/boolean.decorator'), require('@colijnit/articleapi/build/factory/decorators/json.decorator'), require('@colijnit/articleapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/report/printer.bo', '@colijnit/articleapi/build/utils/function/not-nill.function', '@colijnit/articleapi/build/utils/object-utils', '@colijnit/articleapi/build/enum/yes-no-db-type.enum', '@colijnit/articleapi/build/enum/true-false-db-type.enum', '@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/articleapi/build/enum/db-boolean-value-type.enum', '@colijnit/articleapi/build/utils/date-utils', '@colijnit/articleapi/build/utils/number-utils', '@colijnit/articleapi/build/utils/function/is-nill.function', '@colijnit/articleapi/build/factory/decorators/map-property.decorator', '@colijnit/articleapi/build/factory/decorators/boolean.decorator', '@colijnit/articleapi/build/factory/decorators/json.decorator', '@colijnit/articleapi/build/factory/decorators/complex-array.decorator', '@colijnit/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.printer_bo, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.
|
|
5
|
-
})(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, printer_bo, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/sharedapi/build/model/report/printer.bo'), require('@colijnit/articleapi/build/utils/function/not-nill.function'), require('@colijnit/articleapi/build/utils/object-utils'), require('@colijnit/articleapi/build/enum/yes-no-db-type.enum'), require('@colijnit/articleapi/build/enum/true-false-db-type.enum'), require('@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum'), require('@colijnit/articleapi/build/enum/db-boolean-value-type.enum'), require('@colijnit/articleapi/build/utils/date-utils'), require('@colijnit/articleapi/build/utils/number-utils'), require('@colijnit/articleapi/build/utils/function/is-nill.function'), require('@colijnit/articleapi/build/factory/decorators/map-property.decorator'), require('@colijnit/articleapi/build/factory/decorators/boolean.decorator'), require('@colijnit/articleapi/build/factory/decorators/json.decorator'), require('@colijnit/articleapi/build/factory/decorators/complex-array.decorator'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), require('@colijnit/articleapi/build/model/article-stock-management'), require('@colijnit/articleapi/build/model/article-transaction')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/sharedapi/build/model/report/printer.bo', '@colijnit/articleapi/build/utils/function/not-nill.function', '@colijnit/articleapi/build/utils/object-utils', '@colijnit/articleapi/build/enum/yes-no-db-type.enum', '@colijnit/articleapi/build/enum/true-false-db-type.enum', '@colijnit/articleapi/build/enum/one-zero-bool-db-type.enum', '@colijnit/articleapi/build/enum/db-boolean-value-type.enum', '@colijnit/articleapi/build/utils/date-utils', '@colijnit/articleapi/build/utils/number-utils', '@colijnit/articleapi/build/utils/function/is-nill.function', '@colijnit/articleapi/build/factory/decorators/map-property.decorator', '@colijnit/articleapi/build/factory/decorators/boolean.decorator', '@colijnit/articleapi/build/factory/decorators/json.decorator', '@colijnit/articleapi/build/factory/decorators/complex-array.decorator', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/sharedapi/build/model/report/stock-stickers-print-layouts.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-transaction.bo', 'rxjs', '@colijnit/articleapi/build/model/get-stock-history-request', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@colijnit/articleapi/build/model/article-stock-management', '@colijnit/articleapi/build/model/article-transaction'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.printStockStickers, global.articles, global.sharedapi, global.printer_bo, global.notNill_function, global.objectUtils, global.yesNoDbType_enum, global.trueFalseDbType_enum, global.oneZeroBoolDbType_enum, global.dbBooleanValueType_enum, global.dateUtils, global.numberUtils, global.isNill_function, global.mapProperty_decorator, global.boolean_decorator, global.json_decorator, global.complexArray_decorator, global.articleStock_bo, global.stockHistory_bo, global.stockStickersPrintLayouts_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.getStockHistoryRequest, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement, global.articleTransaction));
|
|
5
|
+
})(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, printStockStickers, articles, sharedapi, printer_bo, notNill_function, objectUtils, yesNoDbType_enum, trueFalseDbType_enum, oneZeroBoolDbType_enum, dbBooleanValueType_enum, dateUtils, numberUtils, isNill_function, mapProperty_decorator, boolean_decorator, json_decorator, complexArray_decorator, articleStock_bo, stockHistory_bo, stockStickersPrintLayouts_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, getStockHistoryRequest, articleStock, corecomponents_v12, i1, articleStockManagement, articleTransaction) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1408,32 +1408,284 @@
|
|
|
1408
1408
|
return BusinessObjectFactory;
|
|
1409
1409
|
}());
|
|
1410
1410
|
|
|
1411
|
-
var
|
|
1412
|
-
|
|
1413
|
-
|
|
1411
|
+
var LanguageCode;
|
|
1412
|
+
(function (LanguageCode) {
|
|
1413
|
+
LanguageCode["Dutch"] = "nl-NL";
|
|
1414
|
+
LanguageCode["English"] = "en-GB";
|
|
1415
|
+
LanguageCode["German"] = "de-DE";
|
|
1416
|
+
LanguageCode["French"] = "fr-FR";
|
|
1417
|
+
})(LanguageCode || (LanguageCode = {}));
|
|
1418
|
+
|
|
1419
|
+
// Static utility functions holder related to strings.
|
|
1420
|
+
var StringUtils = /** @class */ (function () {
|
|
1421
|
+
function StringUtils() {
|
|
1422
|
+
}
|
|
1423
|
+
/**
|
|
1424
|
+
* Returns a new string where given placeholder in given source string are replaced by given replacement texts.
|
|
1425
|
+
*
|
|
1426
|
+
* Example usage:
|
|
1427
|
+
*
|
|
1428
|
+
* source = "ABCDABCD"
|
|
1429
|
+
* placeholder = "BC"
|
|
1430
|
+
* replacementTexts = "Z", "Z" (REST arguments)
|
|
1431
|
+
* OUTPUT = "AZDAZD"
|
|
1432
|
+
*
|
|
1433
|
+
* @param {string} source
|
|
1434
|
+
* @param {string} placeholder
|
|
1435
|
+
* @param {string} replacementTexts If only one is given, this function replaces all placeholders with that single replacementText.
|
|
1436
|
+
* If more are given, placeholders without a corresponding replacementText will remain their original placeholder characters.
|
|
1437
|
+
*/
|
|
1438
|
+
StringUtils.ReplaceOccurrencesIn = function (source, placeholder) {
|
|
1439
|
+
var replacementTexts = [];
|
|
1440
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1441
|
+
replacementTexts[_i - 2] = arguments[_i];
|
|
1442
|
+
}
|
|
1443
|
+
// parameter guards
|
|
1444
|
+
if (!(source)) {
|
|
1445
|
+
return undefined;
|
|
1446
|
+
}
|
|
1447
|
+
if (!placeholder || replacementTexts.length === 0) {
|
|
1448
|
+
return source;
|
|
1449
|
+
}
|
|
1450
|
+
var outString = source;
|
|
1451
|
+
// one replacementText means replace for all
|
|
1452
|
+
if (replacementTexts.length === 1) {
|
|
1453
|
+
// "g" is the g flag to replace globally
|
|
1454
|
+
outString = outString.replace(placeholder, replacementTexts[0]);
|
|
1455
|
+
}
|
|
1456
|
+
else {
|
|
1457
|
+
// replace occurence i by replacementTexts[i], one at a time in loop (there might be a faster way..)
|
|
1458
|
+
for (var i = 0, len = replacementTexts.length; i < len; i++) {
|
|
1459
|
+
outString = outString.replace(placeholder, replacementTexts[i]);
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
return outString;
|
|
1463
|
+
};
|
|
1464
|
+
// Returns the given argument as a string. Returns given defaultValue if conversion of argument to string was impossible.
|
|
1465
|
+
StringUtils.ParseString = function (arg, defaultValue) {
|
|
1466
|
+
if (defaultValue === void 0) { defaultValue = ""; }
|
|
1467
|
+
if (!StringUtils.IsString(arg)) {
|
|
1468
|
+
if (arg && typeof arg.toString === "function") {
|
|
1469
|
+
arg = arg.toString();
|
|
1470
|
+
}
|
|
1471
|
+
else {
|
|
1472
|
+
arg = defaultValue;
|
|
1473
|
+
}
|
|
1474
|
+
}
|
|
1475
|
+
return arg;
|
|
1476
|
+
};
|
|
1477
|
+
StringUtils.IsString = function (str) {
|
|
1478
|
+
return typeof str === 'string';
|
|
1479
|
+
};
|
|
1480
|
+
// Returns whether given str is a string and has a length > 0.
|
|
1481
|
+
StringUtils.IsStringWithLength = function (str) {
|
|
1482
|
+
return str && StringUtils.IsString(str) && str.length > 0;
|
|
1483
|
+
};
|
|
1484
|
+
// Returns given string, escaped for use as string literal in regular expressions.
|
|
1485
|
+
StringUtils._escapeRegExp = function (str) {
|
|
1486
|
+
return str; // .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^$\|]/g, "\\$&");
|
|
1487
|
+
};
|
|
1488
|
+
return StringUtils;
|
|
1489
|
+
}());
|
|
1490
|
+
|
|
1491
|
+
var Dictionary = /** @class */ (function () {
|
|
1492
|
+
function Dictionary() {
|
|
1493
|
+
this.strings = {
|
|
1494
|
+
"nl": {},
|
|
1495
|
+
"de": {},
|
|
1496
|
+
"fr": {},
|
|
1497
|
+
"en": {},
|
|
1498
|
+
};
|
|
1414
1499
|
}
|
|
1415
|
-
|
|
1500
|
+
return Dictionary;
|
|
1501
|
+
}());
|
|
1502
|
+
|
|
1503
|
+
// The localization service, providing peers with text translation functionality.
|
|
1504
|
+
var DictionaryService = /** @class */ (function () {
|
|
1505
|
+
function DictionaryService() {
|
|
1506
|
+
this.dictionaryUrl = "js/browser/res/dictionary/";
|
|
1507
|
+
// private _dictionaryPromise: Map<LanguageCode, Promise<{ [key: string]: string }>> = new Map<LanguageCode, Promise<{ [key: string]: string }>>();
|
|
1508
|
+
this._dictionaries = new Map();
|
|
1509
|
+
// Some dictionary values have one or more '|~' texts in them, meant to be replaced with client-side given texts.
|
|
1510
|
+
this._placeholder = "|~";
|
|
1511
|
+
}
|
|
1512
|
+
Object.defineProperty(DictionaryService.prototype, "language", {
|
|
1513
|
+
get: function () {
|
|
1514
|
+
return this._language;
|
|
1515
|
+
},
|
|
1516
|
+
enumerable: false,
|
|
1517
|
+
configurable: true
|
|
1518
|
+
});
|
|
1519
|
+
Object.defineProperty(DictionaryService.prototype, "rootUrl", {
|
|
1520
|
+
set: function (value) {
|
|
1521
|
+
this._rootUrl = value;
|
|
1522
|
+
this._dictBasePath = this._rootUrl + "/" + this.dictionaryUrl;
|
|
1523
|
+
},
|
|
1524
|
+
enumerable: false,
|
|
1525
|
+
configurable: true
|
|
1526
|
+
});
|
|
1527
|
+
// Loads the dictionary for given language in memory.
|
|
1528
|
+
DictionaryService.prototype.setDictionary = function (language) {
|
|
1416
1529
|
return __awaiter(this, void 0, void 0, function () {
|
|
1417
1530
|
return __generator(this, function (_a) {
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1531
|
+
this._language = language || LanguageCode.Dutch;
|
|
1532
|
+
this._loadDictionary();
|
|
1533
|
+
return [2 /*return*/];
|
|
1534
|
+
});
|
|
1535
|
+
});
|
|
1536
|
+
};
|
|
1537
|
+
DictionaryService.prototype._loadDictionary = function () {
|
|
1538
|
+
if (!this._dictionaries.has(this._language)) {
|
|
1539
|
+
var dictionary = new Dictionary();
|
|
1540
|
+
// eslint-disable-next-line no-magic-numbers
|
|
1541
|
+
if (dictionary.strings[this._language.substr(0, 2).toLowerCase()] !== undefined) {
|
|
1542
|
+
// eslint-disable-next-line no-magic-numbers
|
|
1543
|
+
this._dictionaries.set(this._language, dictionary.strings[this._language.substr(0, 2).toLowerCase()]);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
};
|
|
1547
|
+
/**
|
|
1548
|
+
* Returns the localized text for the given dictionary key.
|
|
1549
|
+
* @param {string} key
|
|
1550
|
+
* @param {boolean} [upperCaseFirst = true] False for first letter lowercase, true for first letter uppercase for returned dict val
|
|
1551
|
+
* @param {string[]} replacementTexts Rest params for replacement of '|~' in returned dict value
|
|
1552
|
+
* @returns {string} The translated text for given dictionary key
|
|
1553
|
+
*/
|
|
1554
|
+
DictionaryService.prototype.get = function (key, upperCaseFirst) {
|
|
1555
|
+
if (upperCaseFirst === void 0) { upperCaseFirst = true; }
|
|
1556
|
+
var replacementTexts = [];
|
|
1557
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1558
|
+
replacementTexts[_i - 2] = arguments[_i];
|
|
1559
|
+
}
|
|
1560
|
+
if (!StringUtils.IsStringWithLength(key)) {
|
|
1561
|
+
return key || "";
|
|
1562
|
+
}
|
|
1563
|
+
if (this.language === undefined) {
|
|
1564
|
+
this._language = LanguageCode.Dutch;
|
|
1565
|
+
this._loadDictionary();
|
|
1566
|
+
}
|
|
1567
|
+
var text = this._dictionaries.get(this.language)[key];
|
|
1568
|
+
text = StringUtils.IsStringWithLength(text) ? text : key;
|
|
1569
|
+
if (upperCaseFirst) {
|
|
1570
|
+
text = text.charAt(0).toUpperCase() + text.slice(1);
|
|
1571
|
+
}
|
|
1572
|
+
else {
|
|
1573
|
+
text = text.charAt(0).toLowerCase() + text.slice(1);
|
|
1574
|
+
}
|
|
1575
|
+
if (replacementTexts.length > 0) {
|
|
1576
|
+
text = StringUtils.ReplaceOccurrencesIn.apply(StringUtils, __spreadArray([text, this._placeholder], __read(replacementTexts)));
|
|
1577
|
+
}
|
|
1578
|
+
return text;
|
|
1579
|
+
};
|
|
1580
|
+
return DictionaryService;
|
|
1581
|
+
}());
|
|
1582
|
+
DictionaryService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function DictionaryService_Factory() { return new DictionaryService(); }, token: DictionaryService, providedIn: "root" });
|
|
1583
|
+
DictionaryService.decorators = [
|
|
1584
|
+
{ type: i0.Injectable, args: [{
|
|
1585
|
+
providedIn: "root"
|
|
1586
|
+
},] }
|
|
1587
|
+
];
|
|
1588
|
+
DictionaryService.ctorParameters = function () { return []; };
|
|
1589
|
+
|
|
1590
|
+
var OptionsService = /** @class */ (function () {
|
|
1591
|
+
function OptionsService(_dictionary) {
|
|
1592
|
+
this._dictionary = _dictionary;
|
|
1593
|
+
this.optionsInitialized = new rxjs.BehaviorSubject(false);
|
|
1594
|
+
this.optionsLoaded = new rxjs.BehaviorSubject(false);
|
|
1595
|
+
}
|
|
1596
|
+
Object.defineProperty(OptionsService.prototype, "options", {
|
|
1597
|
+
get: function () {
|
|
1598
|
+
return this._options;
|
|
1599
|
+
},
|
|
1600
|
+
set: function (value) {
|
|
1601
|
+
this._options = value;
|
|
1602
|
+
},
|
|
1603
|
+
enumerable: false,
|
|
1604
|
+
configurable: true
|
|
1605
|
+
});
|
|
1606
|
+
OptionsService.prototype.createSettingsFromObject = function (obj) {
|
|
1607
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1608
|
+
return __generator(this, function (_a) {
|
|
1609
|
+
this.options = new Object();
|
|
1610
|
+
if (obj.hasOwnProperty("url")) {
|
|
1611
|
+
this.options.url = obj["url"];
|
|
1612
|
+
}
|
|
1613
|
+
if (obj.hasOwnProperty("schema")) {
|
|
1614
|
+
this.options.schema = obj["schema"];
|
|
1615
|
+
}
|
|
1616
|
+
if (obj.hasOwnProperty("version")) {
|
|
1617
|
+
this.options.version = obj["version"];
|
|
1618
|
+
}
|
|
1619
|
+
if (obj.hasOwnProperty("languageCode")) {
|
|
1620
|
+
this.options.languageCode = obj["languageCode"];
|
|
1621
|
+
}
|
|
1622
|
+
else {
|
|
1623
|
+
this.options.languageCode = "NL";
|
|
1624
|
+
}
|
|
1625
|
+
if (obj.hasOwnProperty("username")) {
|
|
1626
|
+
this.options.username = obj["username"];
|
|
1423
1627
|
}
|
|
1628
|
+
if (obj.hasOwnProperty("password")) {
|
|
1629
|
+
this.options.password = obj["password"];
|
|
1630
|
+
}
|
|
1631
|
+
if (obj.hasOwnProperty("session")) {
|
|
1632
|
+
this.options.session = obj["session"];
|
|
1633
|
+
}
|
|
1634
|
+
if (obj.hasOwnProperty("useLoginEncryption")) {
|
|
1635
|
+
this.options.useLoginEncryption = obj["useLoginEncryption"];
|
|
1636
|
+
}
|
|
1637
|
+
this.optionsLoaded.next(true);
|
|
1424
1638
|
return [2 /*return*/];
|
|
1425
1639
|
});
|
|
1426
1640
|
});
|
|
1427
1641
|
};
|
|
1428
|
-
|
|
1642
|
+
OptionsService.prototype.initialize = function (options) {
|
|
1643
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1644
|
+
return __generator(this, function (_a) {
|
|
1645
|
+
switch (_a.label) {
|
|
1646
|
+
case 0:
|
|
1647
|
+
if (!options) return [3 /*break*/, 3];
|
|
1648
|
+
return [4 /*yield*/, this.createSettingsFromObject(options)];
|
|
1649
|
+
case 1:
|
|
1650
|
+
_a.sent();
|
|
1651
|
+
return [4 /*yield*/, this._dictionary.setDictionary(this.options.languageCode)];
|
|
1652
|
+
case 2:
|
|
1653
|
+
_a.sent();
|
|
1654
|
+
this.optionsInitialized.next(true);
|
|
1655
|
+
_a.label = 3;
|
|
1656
|
+
case 3: return [2 /*return*/];
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
});
|
|
1660
|
+
};
|
|
1661
|
+
return OptionsService;
|
|
1662
|
+
}());
|
|
1663
|
+
OptionsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function OptionsService_Factory() { return new OptionsService(i0__namespace.ɵɵinject(DictionaryService)); }, token: OptionsService, providedIn: "root" });
|
|
1664
|
+
OptionsService.decorators = [
|
|
1665
|
+
{ type: i0.Injectable, args: [{
|
|
1666
|
+
providedIn: "root"
|
|
1667
|
+
},] }
|
|
1668
|
+
];
|
|
1669
|
+
OptionsService.ctorParameters = function () { return [
|
|
1670
|
+
{ type: DictionaryService }
|
|
1671
|
+
]; };
|
|
1672
|
+
|
|
1673
|
+
var SharedConnectorService = /** @class */ (function () {
|
|
1674
|
+
function SharedConnectorService(_optionsService) {
|
|
1675
|
+
this._optionsService = _optionsService;
|
|
1676
|
+
this._boFactory = new BusinessObjectFactory();
|
|
1677
|
+
}
|
|
1678
|
+
SharedConnectorService.prototype.connect = function () {
|
|
1429
1679
|
return __awaiter(this, void 0, void 0, function () {
|
|
1430
1680
|
return __generator(this, function (_a) {
|
|
1431
|
-
this.
|
|
1681
|
+
this.connector = new articles.Articles(this._optionsService.options);
|
|
1682
|
+
this.sharedConnector = new sharedapi.Sharedapi(this._optionsService.options);
|
|
1683
|
+
this._optionsService.options.session = this.connector.session && this.sharedConnector.session;
|
|
1432
1684
|
return [2 /*return*/];
|
|
1433
1685
|
});
|
|
1434
1686
|
});
|
|
1435
1687
|
};
|
|
1436
|
-
|
|
1688
|
+
SharedConnectorService.prototype.getAllPrinters = function (showAll) {
|
|
1437
1689
|
if (showAll === void 0) { showAll = true; }
|
|
1438
1690
|
return __awaiter(this, void 0, void 0, function () {
|
|
1439
1691
|
var _this = this;
|
|
@@ -1453,7 +1705,7 @@
|
|
|
1453
1705
|
});
|
|
1454
1706
|
});
|
|
1455
1707
|
};
|
|
1456
|
-
|
|
1708
|
+
SharedConnectorService.prototype.getPrintStockStickers = function (request) {
|
|
1457
1709
|
return __awaiter(this, void 0, void 0, function () {
|
|
1458
1710
|
var _this = this;
|
|
1459
1711
|
return __generator(this, function (_a) {
|
|
@@ -1485,7 +1737,7 @@
|
|
|
1485
1737
|
// })
|
|
1486
1738
|
// })
|
|
1487
1739
|
// }
|
|
1488
|
-
|
|
1740
|
+
SharedConnectorService.prototype.getArticleFullObject = function (goodId) {
|
|
1489
1741
|
return __awaiter(this, void 0, void 0, function () {
|
|
1490
1742
|
var _this = this;
|
|
1491
1743
|
return __generator(this, function (_a) {
|
|
@@ -1503,7 +1755,7 @@
|
|
|
1503
1755
|
});
|
|
1504
1756
|
});
|
|
1505
1757
|
};
|
|
1506
|
-
|
|
1758
|
+
SharedConnectorService.prototype.getStockHistory = function (request) {
|
|
1507
1759
|
return __awaiter(this, void 0, void 0, function () {
|
|
1508
1760
|
var _this = this;
|
|
1509
1761
|
return __generator(this, function (_a) {
|
|
@@ -1522,7 +1774,7 @@
|
|
|
1522
1774
|
});
|
|
1523
1775
|
});
|
|
1524
1776
|
};
|
|
1525
|
-
|
|
1777
|
+
SharedConnectorService.prototype.getStockInformation = function (data) {
|
|
1526
1778
|
return __awaiter(this, void 0, void 0, function () {
|
|
1527
1779
|
var _this = this;
|
|
1528
1780
|
return __generator(this, function (_a) {
|
|
@@ -1541,7 +1793,7 @@
|
|
|
1541
1793
|
});
|
|
1542
1794
|
});
|
|
1543
1795
|
};
|
|
1544
|
-
|
|
1796
|
+
SharedConnectorService.prototype.getStockManagementWarehouses = function () {
|
|
1545
1797
|
return __awaiter(this, void 0, void 0, function () {
|
|
1546
1798
|
var _this = this;
|
|
1547
1799
|
return __generator(this, function (_a) {
|
|
@@ -1560,7 +1812,7 @@
|
|
|
1560
1812
|
});
|
|
1561
1813
|
});
|
|
1562
1814
|
};
|
|
1563
|
-
|
|
1815
|
+
SharedConnectorService.prototype.getStockManagementLocations = function (warehouseNo) {
|
|
1564
1816
|
return __awaiter(this, void 0, void 0, function () {
|
|
1565
1817
|
var _this = this;
|
|
1566
1818
|
return __generator(this, function (_a) {
|
|
@@ -1579,7 +1831,7 @@
|
|
|
1579
1831
|
});
|
|
1580
1832
|
});
|
|
1581
1833
|
};
|
|
1582
|
-
|
|
1834
|
+
SharedConnectorService.prototype.getArticleDetails = function (data) {
|
|
1583
1835
|
return __awaiter(this, void 0, void 0, function () {
|
|
1584
1836
|
var _this = this;
|
|
1585
1837
|
return __generator(this, function (_a) {
|
|
@@ -1598,7 +1850,7 @@
|
|
|
1598
1850
|
});
|
|
1599
1851
|
});
|
|
1600
1852
|
};
|
|
1601
|
-
|
|
1853
|
+
SharedConnectorService.prototype.updateArticleDetails = function (data) {
|
|
1602
1854
|
return __awaiter(this, void 0, void 0, function () {
|
|
1603
1855
|
var _this = this;
|
|
1604
1856
|
return __generator(this, function (_a) {
|
|
@@ -1624,7 +1876,7 @@
|
|
|
1624
1876
|
});
|
|
1625
1877
|
});
|
|
1626
1878
|
};
|
|
1627
|
-
|
|
1879
|
+
SharedConnectorService.prototype.lockArticleDetails = function (data) {
|
|
1628
1880
|
return __awaiter(this, void 0, void 0, function () {
|
|
1629
1881
|
var _this = this;
|
|
1630
1882
|
return __generator(this, function (_a) {
|
|
@@ -1650,7 +1902,7 @@
|
|
|
1650
1902
|
});
|
|
1651
1903
|
});
|
|
1652
1904
|
};
|
|
1653
|
-
|
|
1905
|
+
SharedConnectorService.prototype.getStockStatus = function () {
|
|
1654
1906
|
return __awaiter(this, void 0, void 0, function () {
|
|
1655
1907
|
var _this = this;
|
|
1656
1908
|
return __generator(this, function (_a) {
|
|
@@ -1669,7 +1921,7 @@
|
|
|
1669
1921
|
});
|
|
1670
1922
|
});
|
|
1671
1923
|
};
|
|
1672
|
-
|
|
1924
|
+
SharedConnectorService.prototype.getStockStickerTemplates = function (data) {
|
|
1673
1925
|
return __awaiter(this, void 0, void 0, function () {
|
|
1674
1926
|
var _this = this;
|
|
1675
1927
|
return __generator(this, function (_a) {
|
|
@@ -1688,7 +1940,7 @@
|
|
|
1688
1940
|
});
|
|
1689
1941
|
});
|
|
1690
1942
|
};
|
|
1691
|
-
|
|
1943
|
+
SharedConnectorService.prototype.getArticleTransaction = function (data) {
|
|
1692
1944
|
return __awaiter(this, void 0, void 0, function () {
|
|
1693
1945
|
var _this = this;
|
|
1694
1946
|
return __generator(this, function (_a) {
|
|
@@ -1707,32 +1959,64 @@
|
|
|
1707
1959
|
});
|
|
1708
1960
|
});
|
|
1709
1961
|
};
|
|
1710
|
-
|
|
1962
|
+
SharedConnectorService.prototype.commit = function () {
|
|
1711
1963
|
return this.connector.commit();
|
|
1712
1964
|
};
|
|
1713
|
-
return
|
|
1965
|
+
return SharedConnectorService;
|
|
1714
1966
|
}());
|
|
1715
|
-
|
|
1716
|
-
|
|
1967
|
+
SharedConnectorService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedConnectorService_Factory() { return new SharedConnectorService(i0__namespace.ɵɵinject(OptionsService)); }, token: SharedConnectorService, providedIn: "root" });
|
|
1968
|
+
SharedConnectorService.decorators = [
|
|
1717
1969
|
{ type: i0.Injectable, args: [{
|
|
1718
1970
|
providedIn: "root"
|
|
1719
1971
|
},] }
|
|
1720
1972
|
];
|
|
1721
|
-
|
|
1973
|
+
SharedConnectorService.ctorParameters = function () { return [
|
|
1974
|
+
{ type: OptionsService }
|
|
1975
|
+
]; };
|
|
1722
1976
|
|
|
1723
|
-
var
|
|
1724
|
-
function
|
|
1725
|
-
this.
|
|
1726
|
-
this.
|
|
1977
|
+
var SharedService = /** @class */ (function () {
|
|
1978
|
+
function SharedService(options, connector) {
|
|
1979
|
+
this.options = options;
|
|
1980
|
+
this.connector = connector;
|
|
1727
1981
|
}
|
|
1728
|
-
|
|
1729
|
-
this
|
|
1982
|
+
SharedService.prototype.init = function (options) {
|
|
1983
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1984
|
+
return __generator(this, function (_a) {
|
|
1985
|
+
switch (_a.label) {
|
|
1986
|
+
case 0: return [4 /*yield*/, this.options.initialize(options)];
|
|
1987
|
+
case 1:
|
|
1988
|
+
_a.sent();
|
|
1989
|
+
this.connector.connect();
|
|
1990
|
+
return [2 /*return*/];
|
|
1991
|
+
}
|
|
1992
|
+
});
|
|
1993
|
+
});
|
|
1730
1994
|
};
|
|
1995
|
+
return SharedService;
|
|
1996
|
+
}());
|
|
1997
|
+
SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
1998
|
+
SharedService.decorators = [
|
|
1999
|
+
{ type: i0.Injectable, args: [{
|
|
2000
|
+
providedIn: "root"
|
|
2001
|
+
},] }
|
|
2002
|
+
];
|
|
2003
|
+
SharedService.ctorParameters = function () { return [
|
|
2004
|
+
{ type: OptionsService },
|
|
2005
|
+
{ type: SharedConnectorService }
|
|
2006
|
+
]; };
|
|
2007
|
+
|
|
2008
|
+
var StockService = /** @class */ (function (_super) {
|
|
2009
|
+
__extends(StockService, _super);
|
|
2010
|
+
function StockService() {
|
|
2011
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
2012
|
+
_this.printSticker = new printStockStickers.PrintStockStickers();
|
|
2013
|
+
return _this;
|
|
2014
|
+
}
|
|
1731
2015
|
StockService.prototype.getPrintStockStickers = function (data) {
|
|
1732
2016
|
return __awaiter(this, void 0, void 0, function () {
|
|
1733
2017
|
return __generator(this, function (_a) {
|
|
1734
2018
|
switch (_a.label) {
|
|
1735
|
-
case 0: return [4 /*yield*/, this.
|
|
2019
|
+
case 0: return [4 /*yield*/, this.connector.getPrintStockStickers(data)];
|
|
1736
2020
|
case 1:
|
|
1737
2021
|
_a.sent();
|
|
1738
2022
|
return [2 /*return*/];
|
|
@@ -1745,7 +2029,7 @@
|
|
|
1745
2029
|
return __awaiter(this, void 0, void 0, function () {
|
|
1746
2030
|
return __generator(this, function (_a) {
|
|
1747
2031
|
switch (_a.label) {
|
|
1748
|
-
case 0: return [4 /*yield*/, this.
|
|
2032
|
+
case 0: return [4 /*yield*/, this.connector.getAllPrinters(showAll)];
|
|
1749
2033
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1750
2034
|
}
|
|
1751
2035
|
});
|
|
@@ -1755,7 +2039,7 @@
|
|
|
1755
2039
|
return __awaiter(this, void 0, void 0, function () {
|
|
1756
2040
|
return __generator(this, function (_a) {
|
|
1757
2041
|
switch (_a.label) {
|
|
1758
|
-
case 0: return [4 /*yield*/, this.
|
|
2042
|
+
case 0: return [4 /*yield*/, this.connector.getStockHistory(data)];
|
|
1759
2043
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1760
2044
|
}
|
|
1761
2045
|
});
|
|
@@ -1765,7 +2049,7 @@
|
|
|
1765
2049
|
return __awaiter(this, void 0, void 0, function () {
|
|
1766
2050
|
return __generator(this, function (_a) {
|
|
1767
2051
|
switch (_a.label) {
|
|
1768
|
-
case 0: return [4 /*yield*/, this.
|
|
2052
|
+
case 0: return [4 /*yield*/, this.connector.getStockInformation(data)];
|
|
1769
2053
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1770
2054
|
}
|
|
1771
2055
|
});
|
|
@@ -1778,7 +2062,7 @@
|
|
|
1778
2062
|
return __awaiter(this, void 0, void 0, function () {
|
|
1779
2063
|
return __generator(this, function (_a) {
|
|
1780
2064
|
switch (_a.label) {
|
|
1781
|
-
case 0: return [4 /*yield*/, this.
|
|
2065
|
+
case 0: return [4 /*yield*/, this.connector.getArticleDetails(data)];
|
|
1782
2066
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1783
2067
|
}
|
|
1784
2068
|
});
|
|
@@ -1788,7 +2072,7 @@
|
|
|
1788
2072
|
return __awaiter(this, void 0, void 0, function () {
|
|
1789
2073
|
return __generator(this, function (_a) {
|
|
1790
2074
|
switch (_a.label) {
|
|
1791
|
-
case 0: return [4 /*yield*/, this.
|
|
2075
|
+
case 0: return [4 /*yield*/, this.connector.updateArticleDetails(data)];
|
|
1792
2076
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1793
2077
|
}
|
|
1794
2078
|
});
|
|
@@ -1798,7 +2082,7 @@
|
|
|
1798
2082
|
return __awaiter(this, void 0, void 0, function () {
|
|
1799
2083
|
return __generator(this, function (_a) {
|
|
1800
2084
|
switch (_a.label) {
|
|
1801
|
-
case 0: return [4 /*yield*/, this.
|
|
2085
|
+
case 0: return [4 /*yield*/, this.connector.getStockStatus()];
|
|
1802
2086
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1803
2087
|
}
|
|
1804
2088
|
});
|
|
@@ -1808,7 +2092,7 @@
|
|
|
1808
2092
|
return __awaiter(this, void 0, void 0, function () {
|
|
1809
2093
|
return __generator(this, function (_a) {
|
|
1810
2094
|
switch (_a.label) {
|
|
1811
|
-
case 0: return [4 /*yield*/, this.
|
|
2095
|
+
case 0: return [4 /*yield*/, this.connector.getStockStickerTemplates(data)];
|
|
1812
2096
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1813
2097
|
}
|
|
1814
2098
|
});
|
|
@@ -1818,7 +2102,7 @@
|
|
|
1818
2102
|
return __awaiter(this, void 0, void 0, function () {
|
|
1819
2103
|
return __generator(this, function (_a) {
|
|
1820
2104
|
switch (_a.label) {
|
|
1821
|
-
case 0: return [4 /*yield*/, this.
|
|
2105
|
+
case 0: return [4 /*yield*/, this.connector.getStockManagementWarehouses()];
|
|
1822
2106
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1823
2107
|
}
|
|
1824
2108
|
});
|
|
@@ -1828,7 +2112,7 @@
|
|
|
1828
2112
|
return __awaiter(this, void 0, void 0, function () {
|
|
1829
2113
|
return __generator(this, function (_a) {
|
|
1830
2114
|
switch (_a.label) {
|
|
1831
|
-
case 0: return [4 /*yield*/, this.
|
|
2115
|
+
case 0: return [4 /*yield*/, this.connector.getStockManagementLocations(warehouseNo)];
|
|
1832
2116
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1833
2117
|
}
|
|
1834
2118
|
});
|
|
@@ -1838,7 +2122,7 @@
|
|
|
1838
2122
|
return __awaiter(this, void 0, void 0, function () {
|
|
1839
2123
|
return __generator(this, function (_a) {
|
|
1840
2124
|
switch (_a.label) {
|
|
1841
|
-
case 0: return [4 /*yield*/, this.
|
|
2125
|
+
case 0: return [4 /*yield*/, this.connector.getArticleTransaction(data)];
|
|
1842
2126
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1843
2127
|
}
|
|
1844
2128
|
});
|
|
@@ -1848,40 +2132,48 @@
|
|
|
1848
2132
|
return __awaiter(this, void 0, void 0, function () {
|
|
1849
2133
|
return __generator(this, function (_a) {
|
|
1850
2134
|
switch (_a.label) {
|
|
1851
|
-
case 0: return [4 /*yield*/, this.
|
|
2135
|
+
case 0: return [4 /*yield*/, this.connector.lockArticleDetails(data)];
|
|
1852
2136
|
case 1: return [2 /*return*/, _a.sent()];
|
|
1853
2137
|
}
|
|
1854
2138
|
});
|
|
1855
2139
|
});
|
|
1856
2140
|
};
|
|
1857
2141
|
StockService.prototype.commit = function () {
|
|
1858
|
-
return this.
|
|
2142
|
+
return this.connector.commit();
|
|
1859
2143
|
};
|
|
1860
2144
|
return StockService;
|
|
1861
|
-
}());
|
|
1862
|
-
StockService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0__namespace.ɵɵinject(
|
|
2145
|
+
}(SharedService));
|
|
2146
|
+
StockService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function StockService_Factory() { return new StockService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: StockService, providedIn: "root" });
|
|
1863
2147
|
StockService.decorators = [
|
|
1864
2148
|
{ type: i0.Injectable, args: [{
|
|
1865
2149
|
providedIn: 'root',
|
|
1866
2150
|
},] }
|
|
1867
|
-
];
|
|
1868
|
-
StockService.ctorParameters = function () { return [
|
|
1869
|
-
{ type: IoneConnectorAdapterService }
|
|
1870
|
-
]; };
|
|
2151
|
+
];
|
|
1871
2152
|
|
|
1872
2153
|
var StockComponent = /** @class */ (function () {
|
|
1873
|
-
function StockComponent(stockService) {
|
|
2154
|
+
function StockComponent(stockService, _optionsService) {
|
|
1874
2155
|
this.stockService = stockService;
|
|
2156
|
+
this._optionsService = _optionsService;
|
|
1875
2157
|
this.handleStickerClicked = new i0.EventEmitter();
|
|
1876
2158
|
this.showStockInformationGrid = true;
|
|
1877
2159
|
this.showStockLocation = false;
|
|
1878
2160
|
this.showStockTransfer = false;
|
|
1879
2161
|
this.allAvailableStock = 0;
|
|
1880
2162
|
this.allTechnicalStock = 0;
|
|
2163
|
+
this._publicOptions = true;
|
|
1881
2164
|
}
|
|
1882
2165
|
Object.defineProperty(StockComponent.prototype, "options", {
|
|
1883
2166
|
set: function (value) {
|
|
1884
|
-
|
|
2167
|
+
if (value) {
|
|
2168
|
+
if (typeof value === "string") {
|
|
2169
|
+
this._options = JSON.parse(value);
|
|
2170
|
+
}
|
|
2171
|
+
else {
|
|
2172
|
+
this._options = value;
|
|
2173
|
+
}
|
|
2174
|
+
this._publicOptions = true;
|
|
2175
|
+
this._optionsService.initialize(this._options).then();
|
|
2176
|
+
}
|
|
1885
2177
|
},
|
|
1886
2178
|
enumerable: false,
|
|
1887
2179
|
configurable: true
|
|
@@ -1961,7 +2253,8 @@
|
|
|
1961
2253
|
},] }
|
|
1962
2254
|
];
|
|
1963
2255
|
StockComponent.ctorParameters = function () { return [
|
|
1964
|
-
{ type: StockService }
|
|
2256
|
+
{ type: StockService },
|
|
2257
|
+
{ type: OptionsService }
|
|
1965
2258
|
]; };
|
|
1966
2259
|
StockComponent.propDecorators = {
|
|
1967
2260
|
stock: [{ type: i0.ViewChild, args: [StockComponent,] }],
|
|
@@ -1995,8 +2288,11 @@
|
|
|
1995
2288
|
|
|
1996
2289
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
1997
2290
|
var IconSvg = {
|
|
2291
|
+
"angle_left_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z\"/></svg>",
|
|
2292
|
+
"angle_right_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 320 512\"><path fill=\"#183153\" d=\"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z\"/></svg>",
|
|
1998
2293
|
"arrow_fat_right": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><polygon points=\"37.5 25 25.2 12.7 25.2 20.35 12.5 20.35 12.5 29.66 25.2 29.66 25.2 37.3 37.5 25\" fill=\"#484f60\"/></svg>",
|
|
1999
2294
|
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
2295
|
+
"bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
|
|
2000
2296
|
"delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
|
|
2001
2297
|
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
2002
2298
|
"email": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M31.79,38.45A17.82,17.82,0,0,1,23.86,40,13.09,13.09,0,0,1,10.41,26.42C10.41,17.63,16.83,10,26.53,10c7.63,0,13.06,5.21,13.06,12.46,0,6.33-3.53,10.3-8.19,10.3a3.42,3.42,0,0,1-3.71-3.32h-.08A6.5,6.5,0,0,1,22,32.76c-2.75,0-4.82-2.11-4.82-5.65a9.85,9.85,0,0,1,10.13-10,12.89,12.89,0,0,1,5.13,1l-1.3,8c-.43,2.54-.13,3.71,1.08,3.75,1.85.09,4.18-2.28,4.18-7.28,0-5.65-3.62-10-10.3-10S13.73,17.76,13.73,26c0,7.25,4.57,11.3,11,11.3A14.81,14.81,0,0,0,31,36ZM28,20.65a5.34,5.34,0,0,0-1.33-.18c-2.85,0-5.09,2.81-5.09,6.12,0,1.64.73,2.68,2.16,2.68,1.59,0,3.27-2,3.66-4.53Z\" fill=\"#484f60\"/></svg>",
|
|
@@ -2060,8 +2356,11 @@
|
|
|
2060
2356
|
/** AUTO GENERATED FILE. DO NOT CHANGE.. OR YOU WILL SUFFER THE CONSEQUENCES OF YOUR ACTIONS **/
|
|
2061
2357
|
var Icon;
|
|
2062
2358
|
(function (Icon) {
|
|
2359
|
+
Icon["AngleLeftSolid"] = "angle_left_solid";
|
|
2360
|
+
Icon["AngleRightSolid"] = "angle_right_solid";
|
|
2063
2361
|
Icon["ArrowFatRight"] = "arrow_fat_right";
|
|
2064
2362
|
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
2363
|
+
Icon["BringForwardRegular"] = "bring_forward_regular";
|
|
2065
2364
|
Icon["DeleteLeftRegular"] = "delete_left_regular";
|
|
2066
2365
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
2067
2366
|
Icon["Email"] = "email";
|
|
@@ -2389,45 +2688,86 @@
|
|
|
2389
2688
|
})(SendOption || (SendOption = {}));
|
|
2390
2689
|
|
|
2391
2690
|
var SendMethodDialogComponent = /** @class */ (function () {
|
|
2392
|
-
function SendMethodDialogComponent(iconCacheService, stockService) {
|
|
2691
|
+
function SendMethodDialogComponent(iconCacheService, stockService, _optionsService, _dictionary, _changeDetector) {
|
|
2692
|
+
var _this = this;
|
|
2393
2693
|
this.iconCacheService = iconCacheService;
|
|
2394
2694
|
this.stockService = stockService;
|
|
2695
|
+
this._optionsService = _optionsService;
|
|
2696
|
+
this._dictionary = _dictionary;
|
|
2697
|
+
this._changeDetector = _changeDetector;
|
|
2395
2698
|
this.icons = Icon;
|
|
2396
2699
|
this.sendOption = SendOption;
|
|
2700
|
+
this.showEmailOption = true;
|
|
2701
|
+
this.showPrintOption = true;
|
|
2702
|
+
this.showPdfOption = true;
|
|
2703
|
+
this.showXmlOption = true;
|
|
2397
2704
|
this.sendOptions = [
|
|
2398
2705
|
{ option: SendOption.Email,
|
|
2399
|
-
iconName: this.icons.Email
|
|
2706
|
+
iconName: this.icons.Email,
|
|
2707
|
+
show: this.showEmailOption,
|
|
2708
|
+
},
|
|
2400
2709
|
{ option: SendOption.Print,
|
|
2401
|
-
iconName: this.icons.Print
|
|
2710
|
+
iconName: this.icons.Print,
|
|
2711
|
+
show: this.showPrintOption,
|
|
2712
|
+
},
|
|
2402
2713
|
{ option: SendOption.Pdf,
|
|
2403
|
-
iconName: this.icons.Pdf
|
|
2714
|
+
iconName: this.icons.Pdf,
|
|
2715
|
+
show: this.showPdfOption,
|
|
2716
|
+
},
|
|
2404
2717
|
{ option: SendOption.Xml,
|
|
2405
|
-
iconName: this.icons.Xml
|
|
2718
|
+
iconName: this.icons.Xml,
|
|
2719
|
+
show: this.showXmlOption,
|
|
2720
|
+
}
|
|
2406
2721
|
];
|
|
2407
2722
|
this.activeSendOption = SendOption.Email;
|
|
2408
2723
|
this.showStandardPrinterOptions = false;
|
|
2409
2724
|
this.showPrinterSelections = false;
|
|
2410
2725
|
this.showExitButton = true;
|
|
2411
2726
|
this.printTemplatesField = { text: "name", value: "reportId" };
|
|
2727
|
+
this.upAndLoaded = false;
|
|
2412
2728
|
this.emails = ['lars.vdv@colijn-it.nl', 'david@colijn-it.nl', 'ruben@colijn-it.nl'];
|
|
2413
2729
|
this.models = [false, false, true];
|
|
2414
2730
|
this.layouts = ['Layout 1', 'Layout 2', 'Layout 3'];
|
|
2415
2731
|
this.showDialog = false;
|
|
2416
2732
|
this.startSignatureClicked = new i0.EventEmitter();
|
|
2417
2733
|
this.printButtonClicked = new i0.EventEmitter();
|
|
2734
|
+
this._subscriptions = [];
|
|
2735
|
+
this._publicOptions = true;
|
|
2736
|
+
this._subscriptions.push(this._optionsService.optionsLoaded.subscribe(function (loaded) { return _this._handleSettingsLoaded(loaded); }));
|
|
2418
2737
|
}
|
|
2419
2738
|
Object.defineProperty(SendMethodDialogComponent.prototype, "options", {
|
|
2739
|
+
get: function () {
|
|
2740
|
+
return this._options;
|
|
2741
|
+
},
|
|
2420
2742
|
set: function (value) {
|
|
2421
|
-
|
|
2743
|
+
if (value) {
|
|
2744
|
+
if (typeof value === "string") {
|
|
2745
|
+
this._options = JSON.parse(value);
|
|
2746
|
+
}
|
|
2747
|
+
else {
|
|
2748
|
+
this._options = value;
|
|
2749
|
+
}
|
|
2750
|
+
this._publicOptions = true;
|
|
2751
|
+
this._optionsService.initialize(this._options).then();
|
|
2752
|
+
}
|
|
2422
2753
|
},
|
|
2423
2754
|
enumerable: false,
|
|
2424
2755
|
configurable: true
|
|
2425
2756
|
});
|
|
2757
|
+
Object.defineProperty(SendMethodDialogComponent.prototype, "articleData", {
|
|
2758
|
+
set: function (data) {
|
|
2759
|
+
this.stockService.printSticker.goodId = data.goodId;
|
|
2760
|
+
this.stockService.printSticker.warehouse = data.warehouseNo;
|
|
2761
|
+
},
|
|
2762
|
+
enumerable: false,
|
|
2763
|
+
configurable: true
|
|
2764
|
+
});
|
|
2765
|
+
;
|
|
2426
2766
|
SendMethodDialogComponent.prototype.showClass = function () {
|
|
2427
2767
|
return true;
|
|
2428
2768
|
};
|
|
2429
|
-
SendMethodDialogComponent.prototype.
|
|
2430
|
-
this.
|
|
2769
|
+
SendMethodDialogComponent.prototype.ngOnDestroy = function () {
|
|
2770
|
+
this._subscriptions.forEach(function (subscription) { return subscription.unsubscribe(); });
|
|
2431
2771
|
};
|
|
2432
2772
|
SendMethodDialogComponent.prototype.getPrinters = function () {
|
|
2433
2773
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2446,7 +2786,11 @@
|
|
|
2446
2786
|
this.startSignatureClicked.emit();
|
|
2447
2787
|
};
|
|
2448
2788
|
SendMethodDialogComponent.prototype.handlePrintClicked = function () {
|
|
2449
|
-
this.printButtonClicked.emit();
|
|
2789
|
+
// this.printButtonClicked.emit();
|
|
2790
|
+
console.log(this.stockService.printSticker);
|
|
2791
|
+
if (this.stockService.printSticker.printerName) {
|
|
2792
|
+
this.stockService.getPrintStockStickers(this.stockService.printSticker);
|
|
2793
|
+
}
|
|
2450
2794
|
};
|
|
2451
2795
|
SendMethodDialogComponent.prototype.togglePrinterSelection = function () {
|
|
2452
2796
|
this.getPrinters();
|
|
@@ -2466,9 +2810,48 @@
|
|
|
2466
2810
|
};
|
|
2467
2811
|
SendMethodDialogComponent.prototype.getPrintTemplates = function () {
|
|
2468
2812
|
var _this = this;
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2813
|
+
if (!this.printTemplates) {
|
|
2814
|
+
var data = new stockStickersPrintLayouts_bo.StockStickersPrintLayoutsBo();
|
|
2815
|
+
this.stockService.getStockStickerTemplates(data).then(function (templates) {
|
|
2816
|
+
_this.printTemplates = templates;
|
|
2817
|
+
});
|
|
2818
|
+
}
|
|
2819
|
+
};
|
|
2820
|
+
SendMethodDialogComponent.prototype._handleSettingsLoaded = function (loaded) {
|
|
2821
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2822
|
+
return __generator(this, function (_a) {
|
|
2823
|
+
switch (_a.label) {
|
|
2824
|
+
case 0:
|
|
2825
|
+
if (!loaded) return [3 /*break*/, 2];
|
|
2826
|
+
return [4 /*yield*/, this._initConnection().then()];
|
|
2827
|
+
case 1:
|
|
2828
|
+
_a.sent();
|
|
2829
|
+
this.upAndLoaded = true;
|
|
2830
|
+
_a.label = 2;
|
|
2831
|
+
case 2: return [2 /*return*/];
|
|
2832
|
+
}
|
|
2833
|
+
});
|
|
2834
|
+
});
|
|
2835
|
+
};
|
|
2836
|
+
SendMethodDialogComponent.prototype._initConnection = function () {
|
|
2837
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2838
|
+
var _this = this;
|
|
2839
|
+
return __generator(this, function (_a) {
|
|
2840
|
+
switch (_a.label) {
|
|
2841
|
+
case 0:
|
|
2842
|
+
// await this._connector.connect(this._optionsService.options);
|
|
2843
|
+
if (this._optionsService.options.url) {
|
|
2844
|
+
this._dictionary.rootUrl = this._optionsService.options.url.replace("/ajaxservice", "");
|
|
2845
|
+
}
|
|
2846
|
+
return [4 /*yield*/, this._dictionary.setDictionary(this._optionsService.options.languageCode)];
|
|
2847
|
+
case 1:
|
|
2848
|
+
_a.sent();
|
|
2849
|
+
setTimeout(function () {
|
|
2850
|
+
_this._changeDetector.detectChanges();
|
|
2851
|
+
});
|
|
2852
|
+
return [2 /*return*/];
|
|
2853
|
+
}
|
|
2854
|
+
});
|
|
2472
2855
|
});
|
|
2473
2856
|
};
|
|
2474
2857
|
return SendMethodDialogComponent;
|
|
@@ -2476,7 +2859,7 @@
|
|
|
2476
2859
|
SendMethodDialogComponent.decorators = [
|
|
2477
2860
|
{ type: i0.Component, args: [{
|
|
2478
2861
|
selector: "ione-send-method-dialog",
|
|
2479
|
-
template: "\n <div class=\"send-method-dialog-wrapper\">\n <co-dialog-wizard id=\"sendOptionsDialog\" *ngIf=\"showDialog\" [showCloseIcon]=\"showExitButton\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"headerTitle\"></span>\n </ng-container>\n <div class=\"dialog-content-wrapper\">\n <div class=\"main-content-container\" *ngIf=\"!showPrinterSelections\">\n <div class=\"send-options-wrapper\">\n <div class=\"custom-button-wrapper\" *ngFor=\"let sendOption of sendOptions\"\n [class.selected-option]=\"sendOption.option === activeSendOption\"\n (click)=\"activeSendOption = sendOption.option\">\n <co-icon [iconData]=\"iconCacheService.getIcon(sendOption.iconName)\"></co-icon>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf\">\n <div class=\"emails-container\" *ngIf=\"activeSendOption === sendOption.Email\">\n <co-input-checkbox\n *ngFor=\"let email, let index of emails\"\n [name]=\"email\"\n [(model)]=\"models[index]\"\n [label]=\"email\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"layouts\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"signature-button-wrapper\">\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Print\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"stockService.printSticker.reportId\"\n [collection]=\"printTemplates\"\n [fields]=\"printTemplatesField\"\n
|
|
2862
|
+
template: "\n <div class=\"send-method-dialog-wrapper\">\n <co-dialog-wizard id=\"sendOptionsDialog\" *ngIf=\"showDialog\" [showCloseIcon]=\"showExitButton\" (closeClick)=\"closeDialogClick()\">\n <ng-container header>\n <span [textContent]=\"headerTitle\"></span>\n </ng-container>\n <div class=\"dialog-content-wrapper\">\n <div class=\"main-content-container\" *ngIf=\"!showPrinterSelections\">\n <div class=\"send-options-wrapper\">\n <div class=\"custom-button-wrapper\" *ngFor=\"let sendOption of sendOptions\"\n [class.selected-option]=\"sendOption.option === activeSendOption\"\n (click)=\"activeSendOption = sendOption.option\">\n <co-icon [iconData]=\"iconCacheService.getIcon(sendOption.iconName)\"></co-icon>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Email || activeSendOption === sendOption.Pdf\">\n <div class=\"emails-container\" *ngIf=\"activeSendOption === sendOption.Email\">\n <co-input-checkbox\n *ngFor=\"let email, let index of emails\"\n [name]=\"email\"\n [(model)]=\"models[index]\"\n [label]=\"email\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"selectedLayout\"\n [collection]=\"layouts\"\n [forceReadonly]=\"true\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"signature-button-wrapper\">\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n\n <div class=\"email-option-content\" *ngIf=\"activeSendOption === sendOption.Print\" (click)=\"getPrintTemplates()\">\n <div class=\"lov-wrapper\">\n <co-input-combo-box\n [(model)]=\"stockService.printSticker.reportId\"\n [collection]=\"printTemplates\"\n [fields]=\"printTemplatesField\"\n placeholder=\"Layout\"\n ></co-input-combo-box>\n </div>\n\n <div class=\"lov-wrapper clickable\" (click)=\"togglePrinterSelection()\">\n <div class=\"selected-printer-wrapper\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\" *ngIf=\"printerList\">\n <span class=\"printer-name\" [textContent]=\"defaultPrinter\"></span>\n <span class=\"printer-status\" [textContent]=\"defaultPrinter.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n\n <div class=\"standard-printer-wrapper\">\n <div class=\"standard-printer-link\" (click)=\"showStandardPrinterOptions = !showStandardPrinterOptions\">\n <co-icon class=\"arrow-icon\" [iconData]=\"iconCacheService.getIcon(icons.ArrowFatRight)\"></co-icon>\n <span class=\"standard-printer-message\" [textContent]=\"'Standaard printer voor lay-out instellen'\"></span>\n </div>\n\n <div class=\"standard-printer-selections\" *ngIf=\"showStandardPrinterOptions\">\n <co-input-checkbox\n [(model)]=\"models[0]\"\n [label]=\"'Per gebruiker instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n <co-input-checkbox\n [(model)]=\"models[1]\"\n [label]=\"'Voor alle gebruikers instellen'\"\n [cssClass]=\"'input-checkbox-wrapper'\"\n ></co-input-checkbox>\n </div>\n </div>\n\n <div class=\"print-footer-wrapper\">\n <div class=\"input-number-wrapper\">\n <co-input-number-picker class=\"number-picker\"\n [step]=\"1\" [(model)]=\"stockService.printSticker.amount\" [min]=\"1\"\n [ngModelOptions]=\"{debounce: 1}\">\n </co-input-number-picker>\n </div>\n <div class=\"custom-button-wrapper print-button\" (click)=\"handlePrintClicked()\">\n <span [textContent]=\"'Print'\"></span>\n </div>\n <div class=\"custom-button-wrapper signature-button\" (click)=\"handleSignatureStart()\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.SignatureField)\"></co-icon>\n </div>\n </div>\n </div>\n </div>\n\n <div class=\"printer-content-container\" @slideInOut *ngIf=\"showPrinterSelections\">\n <div class=\"selected-printer-wrapper selection clickable\" *ngFor=\"let printers of printerList\" (click)=\"onPrinterClicked(printers)\">\n <div class=\"printer-option-list-item\">\n <co-icon class=\"printer-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"></co-icon>\n <div class=\"printer-details\">\n <span class=\"printer-name\" [textContent]=\"printers.name\"></span>\n <span class=\"printer-status\" [textContent]=\"printers.acceptingJobs\"></span>\n </div>\n </div>\n <co-icon class=\"select-printer-arrow\" *ngIf=\"!showPrinterSelections\"\n [iconData]=\"iconCacheService.getIcon(icons.ArrowPointRight)\"></co-icon>\n </div>\n </div>\n </div>\n </co-dialog-wizard>\n </div>\n ",
|
|
2480
2863
|
encapsulation: i0.ViewEncapsulation.None,
|
|
2481
2864
|
animations: [
|
|
2482
2865
|
animations.trigger('slideInOut', [
|
|
@@ -2489,9 +2872,16 @@
|
|
|
2489
2872
|
];
|
|
2490
2873
|
SendMethodDialogComponent.ctorParameters = function () { return [
|
|
2491
2874
|
{ type: IconCacheService },
|
|
2492
|
-
{ type: StockService }
|
|
2875
|
+
{ type: StockService },
|
|
2876
|
+
{ type: OptionsService },
|
|
2877
|
+
{ type: DictionaryService },
|
|
2878
|
+
{ type: i0.ChangeDetectorRef }
|
|
2493
2879
|
]; };
|
|
2494
2880
|
SendMethodDialogComponent.propDecorators = {
|
|
2881
|
+
showEmailOption: [{ type: i0.Input }],
|
|
2882
|
+
showPrintOption: [{ type: i0.Input }],
|
|
2883
|
+
showPdfOption: [{ type: i0.Input }],
|
|
2884
|
+
showXmlOption: [{ type: i0.Input }],
|
|
2495
2885
|
options: [{ type: i0.Input }],
|
|
2496
2886
|
showDialog: [{ type: i0.Input }],
|
|
2497
2887
|
headerTitle: [{ type: i0.Input }],
|
|
@@ -2618,7 +3008,7 @@
|
|
|
2618
3008
|
],
|
|
2619
3009
|
providers: [
|
|
2620
3010
|
StockService,
|
|
2621
|
-
|
|
3011
|
+
SharedConnectorService
|
|
2622
3012
|
]
|
|
2623
3013
|
},] }
|
|
2624
3014
|
];
|
|
@@ -2846,6 +3236,88 @@
|
|
|
2846
3236
|
},] }
|
|
2847
3237
|
];
|
|
2848
3238
|
|
|
3239
|
+
var LayoutSwitcherComponent = /** @class */ (function () {
|
|
3240
|
+
function LayoutSwitcherComponent(iconCacheService) {
|
|
3241
|
+
this.iconCacheService = iconCacheService;
|
|
3242
|
+
this.icon = Icon;
|
|
3243
|
+
this.layoutItems = [];
|
|
3244
|
+
this.layoutSwitchEmit = new i0.EventEmitter();
|
|
3245
|
+
this.showMaskSidebar = false;
|
|
3246
|
+
this._activeIndex = 0;
|
|
3247
|
+
}
|
|
3248
|
+
LayoutSwitcherComponent.prototype.showClass = function () {
|
|
3249
|
+
return true;
|
|
3250
|
+
};
|
|
3251
|
+
Object.defineProperty(LayoutSwitcherComponent.prototype, "activeIndex", {
|
|
3252
|
+
get: function () {
|
|
3253
|
+
return this._activeIndex;
|
|
3254
|
+
},
|
|
3255
|
+
set: function (index) {
|
|
3256
|
+
this._activeIndex = index;
|
|
3257
|
+
this.toggleMaskSidebar();
|
|
3258
|
+
this.layoutSwitchEmit.emit(this.layoutItems[index]);
|
|
3259
|
+
},
|
|
3260
|
+
enumerable: false,
|
|
3261
|
+
configurable: true
|
|
3262
|
+
});
|
|
3263
|
+
LayoutSwitcherComponent.prototype.toggleMaskSidebar = function () {
|
|
3264
|
+
this.showMaskSidebar = !this.showMaskSidebar;
|
|
3265
|
+
};
|
|
3266
|
+
return LayoutSwitcherComponent;
|
|
3267
|
+
}());
|
|
3268
|
+
LayoutSwitcherComponent.decorators = [
|
|
3269
|
+
{ type: i0.Component, args: [{
|
|
3270
|
+
selector: "layout-switcher",
|
|
3271
|
+
template: "\n <div class=\"mask-wrapper\" [class.mask-wrapper-active]='showMaskSidebar' @showHideSidebar>\n <div class=\"icon-wrapper\" (click)=\"toggleMaskSidebar()\">\n <co-icon class=\"icon-mask\" [iconData]=\"iconCacheService.getIcon(icon.BringForwardRegular)\" [@positionIcon]=\"showMaskSidebar\"></co-icon>\n\n <co-icon class='icon-mask-sidebar-handle' [@positionHandle]='showMaskSidebar' [iconData]=\"showMaskSidebar ? iconCacheService.getIcon(this.icon.AngleLeftSolid) : iconCacheService.getIcon(this.icon.AngleRightSolid)\"></co-icon>\n </div>\n\n <div class=\"mask-content\" *ngIf=\"showMaskSidebar\" @showHideSidebar>\n <span *ngFor='let item of this.layoutItems' [class.active]=\"this.activeIndex === this.layoutItems.indexOf(item)\" [textContent]=\"item\" (click)='activeIndex = this.layoutItems.indexOf(item)' ></span>\n </div>\n </div>\n\n ",
|
|
3272
|
+
animations: [
|
|
3273
|
+
animations.trigger("showHideSidebar", [
|
|
3274
|
+
animations.state("void", animations.style({ "width": "0" })),
|
|
3275
|
+
animations.state("*", animations.style({ "width": "*" })),
|
|
3276
|
+
animations.transition("void <=> *", animations.animate(200))
|
|
3277
|
+
]),
|
|
3278
|
+
animations.trigger("positionIcon", [
|
|
3279
|
+
animations.state("true", animations.style({ "left": "70px" })),
|
|
3280
|
+
animations.state("false", animations.style({ "left": "10px" })),
|
|
3281
|
+
animations.transition("true <=> false", animations.animate(200))
|
|
3282
|
+
]),
|
|
3283
|
+
animations.trigger("positionHandle", [
|
|
3284
|
+
animations.state("true", animations.style({ "left": "15px" })),
|
|
3285
|
+
animations.state("false", animations.style({ "left": "75px" })),
|
|
3286
|
+
animations.transition("true <=> false", animations.animate(200))
|
|
3287
|
+
])
|
|
3288
|
+
],
|
|
3289
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
3290
|
+
},] }
|
|
3291
|
+
];
|
|
3292
|
+
LayoutSwitcherComponent.ctorParameters = function () { return [
|
|
3293
|
+
{ type: IconCacheService }
|
|
3294
|
+
]; };
|
|
3295
|
+
LayoutSwitcherComponent.propDecorators = {
|
|
3296
|
+
showClass: [{ type: i0.HostBinding, args: ['class.layout-switcher',] }],
|
|
3297
|
+
layoutItems: [{ type: i0.Input }],
|
|
3298
|
+
layoutSwitchEmit: [{ type: i0.Output }]
|
|
3299
|
+
};
|
|
3300
|
+
|
|
3301
|
+
var LayoutSwitcherModule = /** @class */ (function () {
|
|
3302
|
+
function LayoutSwitcherModule() {
|
|
3303
|
+
}
|
|
3304
|
+
return LayoutSwitcherModule;
|
|
3305
|
+
}());
|
|
3306
|
+
LayoutSwitcherModule.decorators = [
|
|
3307
|
+
{ type: i0.NgModule, args: [{
|
|
3308
|
+
imports: [
|
|
3309
|
+
common.CommonModule,
|
|
3310
|
+
corecomponents_v12.IconModule
|
|
3311
|
+
],
|
|
3312
|
+
declarations: [
|
|
3313
|
+
LayoutSwitcherComponent,
|
|
3314
|
+
],
|
|
3315
|
+
exports: [
|
|
3316
|
+
LayoutSwitcherComponent
|
|
3317
|
+
]
|
|
3318
|
+
},] }
|
|
3319
|
+
];
|
|
3320
|
+
|
|
2849
3321
|
/*
|
|
2850
3322
|
* Public API Surface of sharedcomponents
|
|
2851
3323
|
*/
|
|
@@ -2858,20 +3330,25 @@
|
|
|
2858
3330
|
exports.DocsignModule = DocsignModule;
|
|
2859
3331
|
exports.KeyPadComponent = KeyPadComponent;
|
|
2860
3332
|
exports.KeyPadModule = KeyPadModule;
|
|
3333
|
+
exports.LayoutSwitcherComponent = LayoutSwitcherComponent;
|
|
3334
|
+
exports.LayoutSwitcherModule = LayoutSwitcherModule;
|
|
2861
3335
|
exports.SendMethodDialogComponent = SendMethodDialogComponent;
|
|
2862
3336
|
exports.SendMethodDialogModule = SendMethodDialogModule;
|
|
3337
|
+
exports.SharedService = SharedService;
|
|
2863
3338
|
exports.StockComponent = StockComponent;
|
|
2864
3339
|
exports.StockModule = StockModule;
|
|
2865
3340
|
exports["ɵa"] = SignatureComponent;
|
|
2866
3341
|
exports["ɵb"] = SignaturesComponent;
|
|
2867
3342
|
exports["ɵc"] = StockService;
|
|
2868
|
-
exports["ɵd"] =
|
|
2869
|
-
exports["ɵe"] =
|
|
2870
|
-
exports["ɵf"] =
|
|
2871
|
-
exports["ɵg"] =
|
|
2872
|
-
exports["ɵh"] =
|
|
2873
|
-
exports["ɵi"] =
|
|
2874
|
-
exports["ɵj"] =
|
|
3343
|
+
exports["ɵd"] = OptionsService;
|
|
3344
|
+
exports["ɵe"] = DictionaryService;
|
|
3345
|
+
exports["ɵf"] = SharedConnectorService;
|
|
3346
|
+
exports["ɵg"] = IconCacheService;
|
|
3347
|
+
exports["ɵh"] = StockInformationComponent;
|
|
3348
|
+
exports["ɵi"] = StockInformationGridComponent;
|
|
3349
|
+
exports["ɵj"] = StockLocationComponent;
|
|
3350
|
+
exports["ɵk"] = StockTransferComponent;
|
|
3351
|
+
exports["ɵl"] = StockChangeAmountComponent;
|
|
2875
3352
|
|
|
2876
3353
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2877
3354
|
|