@colijnit/sharedcomponents 257.1.12 → 257.1.13
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 +42 -9
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/send-method-dialog/components/send-method-purchase/send-method-purchase.component.js +35 -7
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +24 -7
- package/fesm2015/colijnit-sharedcomponents.js +57 -12
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +2 -2
- package/lib/components/send-method-dialog/components/send-method-purchase/send-method-purchase.component.d.ts +2 -0
- package/lib/components/send-method-dialog/components/send-method-purchase/style/_layout.scss +5 -0
- package/{main.66c2cd59a0b5f0350335.js → main.973c97608665a9a1bb7b.js} +1 -1
- package/package.json +1 -1
- package/{runtime.76b30f5f3508ad2d8fa0.js → runtime.02acc449826706ac63c8.js} +1 -1
- package/{styles.2159fd8dcc6004f310d1.css → styles.05b2d77e8d8f96afc17c.css} +1 -1
|
@@ -3269,16 +3269,22 @@
|
|
|
3269
3269
|
}
|
|
3270
3270
|
};
|
|
3271
3271
|
SendMethodDialogComponent.prototype._initDefaultSendMethod = function () {
|
|
3272
|
+
var _this = this;
|
|
3273
|
+
if (this.usePurchaseSendMethod) {
|
|
3274
|
+
setTimeout(function () {
|
|
3275
|
+
_this.handleCombinedClick();
|
|
3276
|
+
_this.startUp = false;
|
|
3277
|
+
});
|
|
3278
|
+
return;
|
|
3279
|
+
}
|
|
3272
3280
|
if (this.defaultSendMethod) {
|
|
3273
3281
|
this._selectDefaultSendMethod();
|
|
3274
3282
|
}
|
|
3275
|
-
else {
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
this._selectDefaultSendMethod();
|
|
3279
|
-
}
|
|
3280
|
-
this.startUp = false;
|
|
3283
|
+
else if (this.visibleMethods && this.visibleMethods.length >= 1) {
|
|
3284
|
+
this.defaultSendMethod = this.visibleMethods[0];
|
|
3285
|
+
this._selectDefaultSendMethod();
|
|
3281
3286
|
}
|
|
3287
|
+
this.startUp = false;
|
|
3282
3288
|
};
|
|
3283
3289
|
SendMethodDialogComponent.prototype._selectDefaultSendMethod = function () {
|
|
3284
3290
|
var _this = this;
|
|
@@ -3292,6 +3298,18 @@
|
|
|
3292
3298
|
};
|
|
3293
3299
|
SendMethodDialogComponent.prototype._prepareVisibleMethods = function () {
|
|
3294
3300
|
var _this = this;
|
|
3301
|
+
if (this.usePurchaseSendMethod) {
|
|
3302
|
+
this.sendMethods = []; // Hide all standard methods
|
|
3303
|
+
this.showFax = false;
|
|
3304
|
+
this.showPrint = false;
|
|
3305
|
+
this.showEmail = false;
|
|
3306
|
+
this.showEdi = false;
|
|
3307
|
+
this.showEmailTemplate = false;
|
|
3308
|
+
this.showSms = false;
|
|
3309
|
+
this.showWebservice = false;
|
|
3310
|
+
this.showPdf = false;
|
|
3311
|
+
return;
|
|
3312
|
+
}
|
|
3295
3313
|
if (this.visibleMethods && this.visibleMethods.length > 0) {
|
|
3296
3314
|
this.sendMethods = this.sendMethods.filter(function (sm) { return _this.visibleMethods.find(function (vm) { return vm === sm.code; }); });
|
|
3297
3315
|
}
|
|
@@ -4753,15 +4771,30 @@
|
|
|
4753
4771
|
};
|
|
4754
4772
|
SendMethodPurchaseComponent.prototype.ngOnInit = function () {
|
|
4755
4773
|
};
|
|
4774
|
+
SendMethodPurchaseComponent.prototype.handleDefaultPrinterUserChange = function (checked) {
|
|
4775
|
+
this.sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForUser = checked;
|
|
4776
|
+
this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
|
|
4777
|
+
};
|
|
4778
|
+
SendMethodPurchaseComponent.prototype.handleDefaultPrinterAllUsersChange = function (checked) {
|
|
4779
|
+
this.sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForAllUsers = checked;
|
|
4780
|
+
this.sendMethodService.reportingDocumentPrintSignDocBaseRequestChanged.next(this.sendMethodService.reportingDocumentPrintSignDocBaseRequest);
|
|
4781
|
+
};
|
|
4756
4782
|
SendMethodPurchaseComponent.prototype.updatePurchaseMethod = function () {
|
|
4757
|
-
var
|
|
4783
|
+
var _this = this;
|
|
4784
|
+
var _a, _b, _c;
|
|
4785
|
+
var selectedPrintLayout = this.printLayouts.find(function (l) { var _a; return l.reportId === ((_a = _this.sendMethodService.reportingDocumentPrintSignDocBaseRequest) === null || _a === void 0 ? void 0 : _a.reportId); });
|
|
4786
|
+
var selectedEmailLayout = this.emailLayouts.find(function (l) { var _a; return l.reportId === ((_a = _this.sendMethodService.reportingDocumentEmailSignDocBaseRequest) === null || _a === void 0 ? void 0 : _a.reportId); });
|
|
4758
4787
|
var selectedMethod = {
|
|
4759
4788
|
useDefaultLayout: this.useDefaultLayout,
|
|
4760
4789
|
useDefaultShippingMethods: this.useDefaultShippingMethods,
|
|
4761
4790
|
overruledEmail: this.overruledEmail,
|
|
4762
4791
|
overruledEdi: this.overruledEdi,
|
|
4763
4792
|
overruledPrint: this.overruledPrint,
|
|
4764
|
-
printerName: ((_a = this.sendMethodService.reportingDocumentPrintSignDocBaseRequest) === null || _a === void 0 ? void 0 : _a.printerName) || this.defaultPrinterName
|
|
4793
|
+
printerName: ((_a = this.sendMethodService.reportingDocumentPrintSignDocBaseRequest) === null || _a === void 0 ? void 0 : _a.printerName) || this.defaultPrinterName,
|
|
4794
|
+
reportIdForPrinting: selectedPrintLayout,
|
|
4795
|
+
reportIdForEmail: selectedEmailLayout,
|
|
4796
|
+
saveDefaultPrinterForUser: ((_b = this.sendMethodService.reportingDocumentPrintSignDocBaseRequest) === null || _b === void 0 ? void 0 : _b.saveDefaultPrinterForUser) || false,
|
|
4797
|
+
saveDefaultPrinterForAllUsers: ((_c = this.sendMethodService.reportingDocumentPrintSignDocBaseRequest) === null || _c === void 0 ? void 0 : _c.saveDefaultPrinterForAllUsers) || false
|
|
4765
4798
|
};
|
|
4766
4799
|
this.purchaseMethodChanged.emit(selectedMethod);
|
|
4767
4800
|
};
|
|
@@ -4770,7 +4803,7 @@
|
|
|
4770
4803
|
SendMethodPurchaseComponent.decorators = [
|
|
4771
4804
|
{ type: i0.Component, args: [{
|
|
4772
4805
|
selector: 'co-send-method-purchase',
|
|
4773
|
-
template: "\n <span class=\"send-methods-label\" [textContent]=\"'SETTINGS' | sharedLocalize\"></span>\n <div class=\"save-dialog-contents\">\n <div class=\"use-default-wrapper\">\n <co-input-checkbox\n [(model)]=\"useDefaultLayout\"\n [label]=\"'RELATION_LAYOUTS' | sharedLocalize\">\n </co-input-checkbox>\n <div class=\"info\" [textContent]=\"'RELATION_LAYOUTS_MESSAGE' | sharedLocalize\"></div>\n </div>\n <div class=\"override-selections-wrapper\">\n <div class=\"layout-selections\">\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentPrintSignDocBaseRequest\"\n (requestChange)=\"showFilePreview.emit()\"\n (loadDefaultPrinterName)=\"loadDefaultPrinterName.emit($event)\"\n [layouts]=\"printLayouts\"\n [label]=\"'PRINTER_LAYOUT'\"\n [useDefault]=\"useDefaultLayout\">\n </co-layout-selection>\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentEmailSignDocBaseRequest\"\n (requestChange)=\"showFilePreview.emit()\"\n [layouts]=\"emailLayouts\"\n [label]=\"'EMAIL_LAYOUT'\"\n [useDefault]=\"useDefaultLayout\">\n </co-layout-selection>\n </div>\n <co-printer-selection [defaultPrinterName]=\"defaultPrinterName\" [printers]=\"printerList\"></co-printer-selection>\n </div>\n </div>\n <div class=\"override-methods-wrapper\">\n <span class=\"send-methods-label\" [textContent]=\"'SHIPPING_METHOD_SETTINGS' | sharedLocalize\"></span>\n <div class=\"use-default-wrapper\">\n <co-input-checkbox\n [(model)]=\"useDefaultShippingMethods\"\n [label]=\"'SHIPPING_METHOD_STANDARD_SETTINGS' | sharedLocalize\">\n </co-input-checkbox>\n </div>\n <div class=\"shipping-methods\" *ngIf=\"!useDefaultShippingMethods\">\n <co-list-of-values\n [displayField]=\"'description'\"\n [(model)]=\"overruledEmail\"\n [label]=\"'OVERRULE_VIA_EMAIL' | sharedLocalize\"\n [collection]=\"overruleOptions\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-list-of-values>\n <co-list-of-values\n [displayField]=\"'description'\"\n [(model)]=\"overruledEdi\"\n [label]=\"'OVERRULE_VIA_EDI' | sharedLocalize\"\n [collection]=\"overruleOptions\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-list-of-values>\n <co-list-of-values\n [displayField]=\"'description'\"\n [(model)]=\"overruledPrint\"\n [label]=\"'OVERRULE_VIA_PRINT' | sharedLocalize\"\n [collection]=\"overruleOptions\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-list-of-values>\n </div>\n </div>\n ",
|
|
4806
|
+
template: "\n <span class=\"send-methods-label\" [textContent]=\"'SETTINGS' | sharedLocalize\"></span>\n <div class=\"save-dialog-contents\">\n <div class=\"use-default-wrapper\">\n <co-input-checkbox\n [(model)]=\"useDefaultLayout\"\n [label]=\"'RELATION_LAYOUTS' | sharedLocalize\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-input-checkbox>\n <div class=\"info\" [textContent]=\"'RELATION_LAYOUTS_MESSAGE' | sharedLocalize\"></div>\n </div>\n <div class=\"override-selections-wrapper\">\n <div class=\"layout-selections\">\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentPrintSignDocBaseRequest\"\n (requestChange)=\"showFilePreview.emit(); updatePurchaseMethod()\"\n (loadDefaultPrinterName)=\"loadDefaultPrinterName.emit($event)\"\n [layouts]=\"printLayouts\"\n [label]=\"'PRINTER_LAYOUT'\"\n [useDefault]=\"useDefaultLayout\">\n </co-layout-selection>\n <co-layout-selection\n [(request)]=\"sendMethodService.reportingDocumentEmailSignDocBaseRequest\"\n (requestChange)=\"showFilePreview.emit(); updatePurchaseMethod()\"\n [layouts]=\"emailLayouts\"\n [label]=\"'EMAIL_LAYOUT'\"\n [useDefault]=\"useDefaultLayout\">\n </co-layout-selection>\n </div>\n <co-printer-selection [defaultPrinterName]=\"defaultPrinterName\" [printers]=\"printerList\"></co-printer-selection>\n <div class=\"additional-checks\">\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForUser\"\n [label]=\"'Koppeling onthouden'\"\n (modelChange)=\"handleDefaultPrinterUserChange($event); updatePurchaseMethod()\">\n </co-input-checkbox>\n <co-input-checkbox\n [model]=\"sendMethodService.reportingDocumentPrintSignDocBaseRequest.saveDefaultPrinterForAllUsers\"\n [label]=\"'Alle gebruikers'\"\n (modelChange)=\"handleDefaultPrinterUserChange($event); updatePurchaseMethod()\">\n </co-input-checkbox>\n </div>\n </div>\n </div>\n <div class=\"override-methods-wrapper\">\n <span class=\"send-methods-label\" [textContent]=\"'SHIPPING_METHOD_SETTINGS' | sharedLocalize\"></span>\n <div class=\"use-default-wrapper\">\n <co-input-checkbox\n [(model)]=\"useDefaultShippingMethods\"\n [label]=\"'SHIPPING_METHOD_STANDARD_SETTINGS' | sharedLocalize\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-input-checkbox>\n </div>\n <div class=\"shipping-methods\" *ngIf=\"!useDefaultShippingMethods\">\n <co-list-of-values\n [displayField]=\"'description'\"\n [(model)]=\"overruledEmail\"\n [label]=\"'OVERRULE_VIA_EMAIL' | sharedLocalize\"\n [collection]=\"overruleOptions\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-list-of-values>\n <co-list-of-values\n [displayField]=\"'description'\"\n [(model)]=\"overruledEdi\"\n [label]=\"'OVERRULE_VIA_EDI' | sharedLocalize\"\n [collection]=\"overruleOptions\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-list-of-values>\n <co-list-of-values\n [displayField]=\"'description'\"\n [(model)]=\"overruledPrint\"\n [label]=\"'OVERRULE_VIA_PRINT' | sharedLocalize\"\n [collection]=\"overruleOptions\"\n (modelChange)=\"updatePurchaseMethod()\">\n </co-list-of-values>\n </div>\n </div>\n ",
|
|
4774
4807
|
encapsulation: i0.ViewEncapsulation.None
|
|
4775
4808
|
},] }
|
|
4776
4809
|
];
|