@colijnit/transaction 261.20.0 → 261.20.1
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.
|
@@ -241,6 +241,7 @@ import { BatchTransactionSendingRequest } from '@colijnit/transactionapi/build/m
|
|
|
241
241
|
import { ChangeHeadersTransactionsDefinitiveRequest } from '@colijnit/transactionapi/build/model/change-headers-transactions-definitive-request';
|
|
242
242
|
import { LayoutCode as LayoutCode$1 } from '@colijnit/mainapi/build/enum/layout-code.enum';
|
|
243
243
|
import { PriorityType } from '@colijnit/mainapi/build/enum/priority-type.enum';
|
|
244
|
+
import { ChangeHeaderDropshipmentInfoRequest } from '@colijnit/transactionapi/build/model/change-header-dropshipment-info-request';
|
|
244
245
|
import { ChangeHeaderScoringChanceRequest } from '@colijnit/transactionapi/build/model/change-header-scoring-chance-request';
|
|
245
246
|
import { ChangeHeaderRetailStadiumRequest } from '@colijnit/transactionapi/build/model/change-header-retail-stadium-request';
|
|
246
247
|
import { ChangeHeaderExpectedScoringDateRequest } from '@colijnit/transactionapi/build/model/change-header-expected-scoring-date-request';
|
|
@@ -329,8 +330,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
329
330
|
class Version {
|
|
330
331
|
name = "@colijnit/transaction";
|
|
331
332
|
description = "Colijn IT transaction package";
|
|
332
|
-
symVer = "261.20.
|
|
333
|
-
publishDate = "
|
|
333
|
+
symVer = "261.20.1";
|
|
334
|
+
publishDate = "26/01/2026, 15:50:15";
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -5671,6 +5672,16 @@ class TransactionConnectorAdapterService {
|
|
|
5671
5672
|
return null;
|
|
5672
5673
|
}
|
|
5673
5674
|
}
|
|
5675
|
+
async changeHeaderDropshipmentInfo(request) {
|
|
5676
|
+
const response = await this.connector.changeHeaderDropshipmentInfo(request);
|
|
5677
|
+
if (response && response.validationResult && response.validationResult.success) {
|
|
5678
|
+
return response.resultObject;
|
|
5679
|
+
}
|
|
5680
|
+
else {
|
|
5681
|
+
this._handleExceptionFromResponse(response);
|
|
5682
|
+
return null;
|
|
5683
|
+
}
|
|
5684
|
+
}
|
|
5674
5685
|
async pdfPosReceipt(pdfPosReceiptRequest) {
|
|
5675
5686
|
const response = await this.connector.pdfPosReceipt(pdfPosReceiptRequest);
|
|
5676
5687
|
if (response && response.validationResult && response.validationResult.success) {
|
|
@@ -8380,6 +8391,9 @@ class TransactionConnectorService {
|
|
|
8380
8391
|
async insertNewDropshipmentInfo(request) {
|
|
8381
8392
|
return this._adapterService.functionCall(this._adapterService.insertNewDropshipmentInfo, [request]);
|
|
8382
8393
|
}
|
|
8394
|
+
async changeHeaderDropshipmentInfo(request) {
|
|
8395
|
+
return this._adapterService.functionCall(this._adapterService.changeHeaderDropshipmentInfo, [request]);
|
|
8396
|
+
}
|
|
8383
8397
|
async pdfPosReceipt(pdfPosReceiptRequest) {
|
|
8384
8398
|
return this._adapterService.functionCall(this._adapterService.pdfPosReceipt, [pdfPosReceiptRequest]);
|
|
8385
8399
|
}
|
|
@@ -11690,6 +11704,9 @@ class TransactionService extends PendingReasonService {
|
|
|
11690
11704
|
async insertNewDropshipmentInfo(request) {
|
|
11691
11705
|
return await this.connector.insertNewDropshipmentInfo(request);
|
|
11692
11706
|
}
|
|
11707
|
+
async changeHeaderDropshipmentInfo(request) {
|
|
11708
|
+
return await this.connector.changeHeaderDropshipmentInfo(request);
|
|
11709
|
+
}
|
|
11693
11710
|
async pdfPosReceipt(pdfPosReceiptRequest) {
|
|
11694
11711
|
return await this.connector.pdfPosReceipt(pdfPosReceiptRequest);
|
|
11695
11712
|
}
|
|
@@ -56996,6 +57013,7 @@ class AvatarComponent {
|
|
|
56996
57013
|
get relation() {
|
|
56997
57014
|
return this._relation;
|
|
56998
57015
|
}
|
|
57016
|
+
showBranchNr = false;
|
|
56999
57017
|
showClass() {
|
|
57000
57018
|
return true;
|
|
57001
57019
|
}
|
|
@@ -57077,7 +57095,7 @@ class AvatarComponent {
|
|
|
57077
57095
|
}
|
|
57078
57096
|
_setRelationInitials() {
|
|
57079
57097
|
if (this.relation) {
|
|
57080
|
-
this.initials = this.relation.displayInitials;
|
|
57098
|
+
this.initials = this.showBranchNr ? this.relation.relationNr.slice(0, 3) : this.relation.displayInitials;
|
|
57081
57099
|
}
|
|
57082
57100
|
}
|
|
57083
57101
|
async _getImageContent(docId) {
|
|
@@ -57104,32 +57122,32 @@ class AvatarComponent {
|
|
|
57104
57122
|
this._changeDetector.detectChanges();
|
|
57105
57123
|
}
|
|
57106
57124
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AvatarComponent, deps: [{ token: TransactionService }, { token: TransactionConnectorService }, { token: i1$1.ColorSequenceService }, { token: TransactionRelationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
57107
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AvatarComponent, isStandalone: false, selector: "co-avatar", inputs: { image: "image", relationId: "relationId", relation: "relation" }, host: { properties: { "class.co-avatar": "this.showClass", "style.background-color": "this.backgroundColor" } }, providers: [{
|
|
57125
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: AvatarComponent, isStandalone: false, selector: "co-avatar", inputs: { image: "image", relationId: "relationId", relation: "relation", showBranchNr: "showBranchNr" }, host: { properties: { "class.co-avatar": "this.showClass", "style.background-color": "this.backgroundColor" } }, providers: [{
|
|
57108
57126
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
57109
57127
|
useExisting: forwardRef(() => AvatarComponent)
|
|
57110
57128
|
}
|
|
57111
|
-
], ngImport: i0, template: `
|
|
57112
|
-
@if (imageSrc) {
|
|
57113
|
-
<co-image-display [model]="imageSrc"></co-image-display>
|
|
57114
|
-
} @else {
|
|
57115
|
-
<svg viewBox="0 0 30 30">
|
|
57116
|
-
<text x="50%" y="50%" dominant-baseline="central" text-anchor="middle">{{ initials }}</text>
|
|
57117
|
-
</svg>
|
|
57118
|
-
}
|
|
57129
|
+
], ngImport: i0, template: `
|
|
57130
|
+
@if (imageSrc) {
|
|
57131
|
+
<co-image-display [model]="imageSrc"></co-image-display>
|
|
57132
|
+
} @else {
|
|
57133
|
+
<svg viewBox="0 0 30 30">
|
|
57134
|
+
<text x="50%" y="50%" dominant-baseline="central" text-anchor="middle">{{ initials }}</text>
|
|
57135
|
+
</svg>
|
|
57136
|
+
}
|
|
57119
57137
|
`, isInline: true, dependencies: [{ kind: "component", type: ImageDisplayComponent, selector: "co-image-display", inputs: ["model", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
57120
57138
|
}
|
|
57121
57139
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
57122
57140
|
type: Component,
|
|
57123
57141
|
args: [{
|
|
57124
57142
|
selector: "co-avatar",
|
|
57125
|
-
template: `
|
|
57126
|
-
@if (imageSrc) {
|
|
57127
|
-
<co-image-display [model]="imageSrc"></co-image-display>
|
|
57128
|
-
} @else {
|
|
57129
|
-
<svg viewBox="0 0 30 30">
|
|
57130
|
-
<text x="50%" y="50%" dominant-baseline="central" text-anchor="middle">{{ initials }}</text>
|
|
57131
|
-
</svg>
|
|
57132
|
-
}
|
|
57143
|
+
template: `
|
|
57144
|
+
@if (imageSrc) {
|
|
57145
|
+
<co-image-display [model]="imageSrc"></co-image-display>
|
|
57146
|
+
} @else {
|
|
57147
|
+
<svg viewBox="0 0 30 30">
|
|
57148
|
+
<text x="50%" y="50%" dominant-baseline="central" text-anchor="middle">{{ initials }}</text>
|
|
57149
|
+
</svg>
|
|
57150
|
+
}
|
|
57133
57151
|
`,
|
|
57134
57152
|
providers: [{
|
|
57135
57153
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
@@ -57146,6 +57164,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
57146
57164
|
type: Input
|
|
57147
57165
|
}], relation: [{
|
|
57148
57166
|
type: Input
|
|
57167
|
+
}], showBranchNr: [{
|
|
57168
|
+
type: Input
|
|
57149
57169
|
}], showClass: [{
|
|
57150
57170
|
type: HostBinding,
|
|
57151
57171
|
args: ["class.co-avatar"]
|
|
@@ -58057,7 +58077,7 @@ class TransactionSearchPurchaseOrderTileComponent extends TransactionSearchTileB
|
|
|
58057
58077
|
</div>
|
|
58058
58078
|
</div>
|
|
58059
58079
|
</div>
|
|
58060
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
58080
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
58061
58081
|
}
|
|
58062
58082
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchPurchaseOrderTileComponent, decorators: [{
|
|
58063
58083
|
type: Component,
|
|
@@ -58292,7 +58312,7 @@ class TransactionSearchSalesOrderTileComponent extends TransactionSearchTileBase
|
|
|
58292
58312
|
</div>
|
|
58293
58313
|
</div>
|
|
58294
58314
|
</div>
|
|
58295
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
58315
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
58296
58316
|
}
|
|
58297
58317
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchSalesOrderTileComponent, decorators: [{
|
|
58298
58318
|
type: Component,
|
|
@@ -60457,7 +60477,7 @@ class TransactionSearchSalesQuotationTileComponent extends TransactionSearchTile
|
|
|
60457
60477
|
</div>
|
|
60458
60478
|
</div>
|
|
60459
60479
|
</div>
|
|
60460
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
60480
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
60461
60481
|
}
|
|
60462
60482
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchSalesQuotationTileComponent, decorators: [{
|
|
60463
60483
|
type: Component,
|
|
@@ -60654,7 +60674,7 @@ class TransactionSearchPosOrderTileComponent extends TransactionSearchTileBaseCo
|
|
|
60654
60674
|
</div>
|
|
60655
60675
|
</div>
|
|
60656
60676
|
</div>
|
|
60657
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
60677
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }], encapsulation: i0.ViewEncapsulation.None });
|
|
60658
60678
|
}
|
|
60659
60679
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchPosOrderTileComponent, decorators: [{
|
|
60660
60680
|
type: Component,
|
|
@@ -61414,7 +61434,7 @@ class TransactionSearchInterBranchOrderTileComponent extends TransactionSearchTi
|
|
|
61414
61434
|
</div>
|
|
61415
61435
|
</div>
|
|
61416
61436
|
</div>
|
|
61417
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
61437
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: TransactionStatusbarComponent, selector: "co-transaction-statusbar", inputs: ["configNames", "transaction"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "pipe", type: i2.CurrencyPipe, name: "currency" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
61418
61438
|
}
|
|
61419
61439
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchInterBranchOrderTileComponent, decorators: [{
|
|
61420
61440
|
type: Component,
|
|
@@ -70454,33 +70474,51 @@ class DropShipmentComponent {
|
|
|
70454
70474
|
showClass() {
|
|
70455
70475
|
return true;
|
|
70456
70476
|
}
|
|
70477
|
+
transUuid;
|
|
70457
70478
|
showDropShipmentDialog = false;
|
|
70458
70479
|
dropShipmentInfo = new DropshipmentInfo();
|
|
70459
70480
|
allDropShipmentAddresses = [];
|
|
70460
70481
|
existingDropShipmentAddresses = [];
|
|
70461
70482
|
searchTerm = '';
|
|
70483
|
+
showDisconnectButton = false;
|
|
70484
|
+
editMode = false;
|
|
70462
70485
|
icons = Icon;
|
|
70463
70486
|
constructor(iconCacheService, transactionService, _dialogService) {
|
|
70464
70487
|
this.iconCacheService = iconCacheService;
|
|
70465
70488
|
this.transactionService = transactionService;
|
|
70466
70489
|
this._dialogService = _dialogService;
|
|
70467
70490
|
}
|
|
70468
|
-
|
|
70469
|
-
|
|
70470
|
-
this.existingDropShipmentAddresses = this.allDropShipmentAddresses;
|
|
70471
|
-
}
|
|
70472
|
-
openDropShipmentDialog() {
|
|
70473
|
-
this.showDropShipmentDialog = true;
|
|
70491
|
+
ngOnInit() {
|
|
70492
|
+
void this._getAddresses();
|
|
70474
70493
|
}
|
|
70475
70494
|
saveDropShipment() {
|
|
70476
70495
|
this.dropShipmentInfo.relationId = this.transactionService.relation.relationId;
|
|
70477
70496
|
this.transactionService.insertNewDropshipmentInfo(this.dropShipmentInfo).then(result => {
|
|
70478
70497
|
if (result !== null) {
|
|
70479
|
-
this.
|
|
70480
|
-
|
|
70498
|
+
this._getAddresses().then(() => {
|
|
70499
|
+
const foundAddress = this.existingDropShipmentAddresses.find(address => address.dropshipmentName === this.dropShipmentInfo.dropshipmentName &&
|
|
70500
|
+
address.postalCode === this.dropShipmentInfo.postalCode &&
|
|
70501
|
+
address.streetName === this.dropShipmentInfo.streetName &&
|
|
70502
|
+
address.city === this.dropShipmentInfo.city &&
|
|
70503
|
+
address.countryCode === this.dropShipmentInfo.countryCode &&
|
|
70504
|
+
address.relationId === this.dropShipmentInfo.relationId &&
|
|
70505
|
+
Number(address.number) === Number(this.dropShipmentInfo.number));
|
|
70506
|
+
const newAddressId = foundAddress?.id;
|
|
70507
|
+
const request = new ChangeHeaderDropshipmentInfoRequest();
|
|
70508
|
+
request.transactionUuid = this.transUuid;
|
|
70509
|
+
request.newDropshipmentInfoId = newAddressId;
|
|
70510
|
+
void this.transactionService.changeHeaderDropshipmentInfo(request);
|
|
70511
|
+
});
|
|
70512
|
+
this.editMode = false;
|
|
70481
70513
|
}
|
|
70482
70514
|
});
|
|
70483
70515
|
}
|
|
70516
|
+
closeDropShipment() {
|
|
70517
|
+
this.dropShipmentInfo = new DropshipmentInfo();
|
|
70518
|
+
this.showDropShipmentDialog = false;
|
|
70519
|
+
this.showDisconnectButton = false;
|
|
70520
|
+
this.editMode = false;
|
|
70521
|
+
}
|
|
70484
70522
|
handleSearch(searchTerm) {
|
|
70485
70523
|
this.searchTerm = searchTerm.toLowerCase();
|
|
70486
70524
|
if (!this.searchTerm) {
|
|
@@ -70489,6 +70527,28 @@ class DropShipmentComponent {
|
|
|
70489
70527
|
}
|
|
70490
70528
|
this.existingDropShipmentAddresses = this.allDropShipmentAddresses.filter(address => this._objectContainsTerm(address, this.searchTerm));
|
|
70491
70529
|
}
|
|
70530
|
+
selectAddress(selectedAddress) {
|
|
70531
|
+
this.dropShipmentInfo = selectedAddress;
|
|
70532
|
+
const request = new ChangeHeaderDropshipmentInfoRequest();
|
|
70533
|
+
request.transactionUuid = this.transUuid;
|
|
70534
|
+
request.newDropshipmentInfoId = selectedAddress.id;
|
|
70535
|
+
this.transactionService.changeHeaderDropshipmentInfo(request).then(() => this.showDisconnectButton = true);
|
|
70536
|
+
}
|
|
70537
|
+
removeDropShipment() {
|
|
70538
|
+
this.dropShipmentInfo = new DropshipmentInfo();
|
|
70539
|
+
const request = new ChangeHeaderDropshipmentInfoRequest();
|
|
70540
|
+
request.transactionUuid = this.transUuid;
|
|
70541
|
+
request.newDropshipmentInfoId = null;
|
|
70542
|
+
this.transactionService.changeHeaderDropshipmentInfo(request).then(() => this.showDisconnectButton = false);
|
|
70543
|
+
}
|
|
70544
|
+
addNewAddress() {
|
|
70545
|
+
this.dropShipmentInfo = new DropshipmentInfo();
|
|
70546
|
+
this.editMode = true;
|
|
70547
|
+
}
|
|
70548
|
+
cancelAddingNewAddress() {
|
|
70549
|
+
this.dropShipmentInfo = new DropshipmentInfo();
|
|
70550
|
+
this.editMode = false;
|
|
70551
|
+
}
|
|
70492
70552
|
_objectContainsTerm(address, term) {
|
|
70493
70553
|
const fieldsToSearch = [
|
|
70494
70554
|
address.dropshipmentName,
|
|
@@ -70506,260 +70566,352 @@ class DropShipmentComponent {
|
|
|
70506
70566
|
.filter(v => !!v)
|
|
70507
70567
|
.some(v => v.toLowerCase().includes(term));
|
|
70508
70568
|
}
|
|
70569
|
+
async _getAddresses() {
|
|
70570
|
+
this.allDropShipmentAddresses = await this.transactionService.getDropshipmentInfosByRelationId(this.transactionService.relation.relationId);
|
|
70571
|
+
this.existingDropShipmentAddresses = this.allDropShipmentAddresses;
|
|
70572
|
+
}
|
|
70509
70573
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DropShipmentComponent, deps: [{ token: IconCacheService }, { token: TransactionService }, { token: TransactionDialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
70510
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DropShipmentComponent, isStandalone: false, selector: "co-drop-shipment", host: { properties: { "class.co-drop-shipment": "this.showClass" } }, ngImport: i0, template: `
|
|
70511
|
-
|
|
70512
|
-
|
|
70513
|
-
|
|
70514
|
-
|
|
70515
|
-
</div>
|
|
70516
|
-
</div>
|
|
70517
|
-
|
|
70518
|
-
@if (showDropShipmentDialog) {
|
|
70519
|
-
<co-dialog
|
|
70520
|
-
class="drop-shipment-dialog"
|
|
70521
|
-
[headerTemplate]="templateHeader"
|
|
70522
|
-
[footerTemplate]="templateFooter"
|
|
70523
|
-
(closeClick)="showDropShipmentDialog = false">
|
|
70524
|
-
<section class="add-new-address-form">
|
|
70525
|
-
<h4 class="section-title" [textContent]="'ADD_NEW_ADDRESS' | localize"></h4>
|
|
70526
|
-
<co-form class="drop-shipment-form">
|
|
70527
|
-
<co-input-text
|
|
70528
|
-
class="drop-shipment-form-item"
|
|
70529
|
-
[(model)]="dropShipmentInfo.dropshipmentName"
|
|
70530
|
-
[placeholder]="'NAME' | localize">
|
|
70531
|
-
</co-input-text>
|
|
70532
|
-
<co-input-text
|
|
70533
|
-
class="drop-shipment-form-item"
|
|
70534
|
-
[(model)]="dropShipmentInfo.dropshipmentContactPerson"
|
|
70535
|
-
[placeholder]="'WORKFLOW_CATEGORY_CONTACTPERSON_EMPLOYEE' | localize">
|
|
70536
|
-
</co-input-text>
|
|
70537
|
-
<co-input-text
|
|
70538
|
-
class="drop-shipment-form-item"
|
|
70539
|
-
[(model)]="dropShipmentInfo.dropshipmentEmailAddress"
|
|
70540
|
-
[placeholder]="'SEND_ACTION_EMAIL' | localize">
|
|
70541
|
-
</co-input-text>
|
|
70542
|
-
<co-input-text
|
|
70543
|
-
class="drop-shipment-form-item"
|
|
70544
|
-
[(model)]="dropShipmentInfo.dropshipmentPhoneNumber"
|
|
70545
|
-
[placeholder]="'PHONE_NUMBER' | localize">
|
|
70546
|
-
</co-input-text>
|
|
70547
|
-
<co-input-text
|
|
70548
|
-
class="drop-shipment-form-item smaller"
|
|
70549
|
-
[(model)]="dropShipmentInfo.postalCode"
|
|
70550
|
-
[placeholder]="'POSTAL_CODE' | localize"
|
|
70551
|
-
[required]="true">
|
|
70552
|
-
</co-input-text>
|
|
70553
|
-
<co-input-text
|
|
70554
|
-
class="drop-shipment-form-item smaller"
|
|
70555
|
-
[(model)]="dropShipmentInfo.number"
|
|
70556
|
-
[placeholder]="'HOUSE_NO' | localize"
|
|
70557
|
-
[type]="'number'"
|
|
70558
|
-
[required]="true">
|
|
70559
|
-
</co-input-text>
|
|
70560
|
-
<co-input-text
|
|
70561
|
-
class="drop-shipment-form-item smaller"
|
|
70562
|
-
[(model)]="dropShipmentInfo.addition"
|
|
70563
|
-
[placeholder]="'HOUSE_NO_ADDITION' | localize">
|
|
70564
|
-
</co-input-text>
|
|
70565
|
-
<co-input-text
|
|
70566
|
-
class="drop-shipment-form-item"
|
|
70567
|
-
[(model)]="dropShipmentInfo.streetName"
|
|
70568
|
-
[placeholder]="'STREET' | localize"
|
|
70569
|
-
[required]="true">
|
|
70570
|
-
</co-input-text>
|
|
70571
|
-
<co-input-text
|
|
70572
|
-
class="drop-shipment-form-item"
|
|
70573
|
-
[(model)]="dropShipmentInfo.city"
|
|
70574
|
-
[placeholder]="'CITY' | localize"
|
|
70575
|
-
[required]="true">
|
|
70576
|
-
</co-input-text>
|
|
70577
|
-
<co-input-text
|
|
70578
|
-
class="drop-shipment-form-item"
|
|
70579
|
-
[(model)]="dropShipmentInfo.countryCode"
|
|
70580
|
-
[placeholder]="'COUNTRY_CODE' | localize"
|
|
70581
|
-
[required]="true">
|
|
70582
|
-
</co-input-text>
|
|
70583
|
-
</co-form>
|
|
70584
|
-
</section>
|
|
70585
|
-
<section class="existing-addresses">
|
|
70586
|
-
<h4 class="section-title" [textContent]="'ALL_ADDRESSES' | localize"></h4>
|
|
70587
|
-
@if (existingDropShipmentAddresses.length === 0) {
|
|
70588
|
-
<div [textContent]="'MESSAGE_NO_ADDRESSES' | localize"></div>
|
|
70589
|
-
}
|
|
70590
|
-
@if (existingDropShipmentAddresses.length > 5) {
|
|
70591
|
-
<div class="search-input">
|
|
70592
|
-
<co-input-search
|
|
70593
|
-
[(model)]="searchTerm"
|
|
70594
|
-
[placeholder]="'SEARCH_AVAILABLE' | localize"
|
|
70595
|
-
(modelChange)="handleSearch($event)">
|
|
70596
|
-
</co-input-search>
|
|
70597
|
-
</div>
|
|
70598
|
-
}
|
|
70599
|
-
@for (address of existingDropShipmentAddresses; track address) {
|
|
70600
|
-
<div class="existing-address">
|
|
70601
|
-
<strong [textContent]="address.dropshipmentName"></strong>
|
|
70602
|
-
<div [textContent]="address.streetName"></div>
|
|
70603
|
-
<div [textContent]="address.postalCode"></div>
|
|
70604
|
-
<div [textContent]="address.city"></div>
|
|
70605
|
-
</div>
|
|
70606
|
-
}
|
|
70607
|
-
</section>
|
|
70608
|
-
<ng-template #templateHeader>
|
|
70609
|
-
<div class="co-dialog-header-title-icon">
|
|
70610
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.DeliveryTruckFast)"></co-icon>
|
|
70611
|
-
<div class="co-dialog-header-title" [textContent]="'DROPSHIPMENT_INFO' | localize"></div>
|
|
70612
|
-
</div>
|
|
70613
|
-
</ng-template>
|
|
70614
|
-
<ng-template #templateFooter>
|
|
70615
|
-
<div class="co-dialog-footer-button-wrapper">
|
|
70616
|
-
<co-button
|
|
70617
|
-
class="save-button"
|
|
70618
|
-
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
70619
|
-
(click)="saveDropShipment()">
|
|
70620
|
-
</co-button>
|
|
70621
|
-
<co-button
|
|
70622
|
-
class="close-button"
|
|
70623
|
-
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
70624
|
-
(click)="showDropShipmentDialog = false">
|
|
70625
|
-
</co-button>
|
|
70574
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DropShipmentComponent, isStandalone: false, selector: "co-drop-shipment", inputs: { transUuid: "transUuid" }, host: { properties: { "class.co-drop-shipment": "this.showClass" } }, ngImport: i0, template: `
|
|
70575
|
+
<div class="default-data-row">
|
|
70576
|
+
<div class="new-drop-shipment-link">
|
|
70577
|
+
<icon class="drop-shipment-icon" [icon]="icons.ArrowPointRight"></icon>
|
|
70578
|
+
<div [textContent]="'DROPSHIPMENT_INFO' | localize" (click)="showDropShipmentDialog = true"></div>
|
|
70626
70579
|
</div>
|
|
70627
|
-
|
|
70628
|
-
|
|
70629
|
-
|
|
70630
|
-
|
|
70580
|
+
</div>
|
|
70581
|
+
|
|
70582
|
+
@if (showDropShipmentDialog) {
|
|
70583
|
+
<co-dialog
|
|
70584
|
+
class="drop-shipment-dialog"
|
|
70585
|
+
[headerTemplate]="templateHeader"
|
|
70586
|
+
[footerTemplate]="templateFooter"
|
|
70587
|
+
(closeClick)="closeDropShipment()">
|
|
70588
|
+
<section class="add-new-address-form">
|
|
70589
|
+
<h4 class="section-title" [textContent]="'DROPSHIPPING_ADDRESS_CURRENT_ORDER' | localize"></h4>
|
|
70590
|
+
<co-form class="drop-shipment-form">
|
|
70591
|
+
<co-input-text
|
|
70592
|
+
class="drop-shipment-form-item"
|
|
70593
|
+
[(model)]="dropShipmentInfo.dropshipmentName"
|
|
70594
|
+
[readonly]="!editMode"
|
|
70595
|
+
[placeholder]="'NAME' | localize">
|
|
70596
|
+
</co-input-text>
|
|
70597
|
+
<co-input-text
|
|
70598
|
+
class="drop-shipment-form-item"
|
|
70599
|
+
[(model)]="dropShipmentInfo.dropshipmentContactPerson"
|
|
70600
|
+
[readonly]="!editMode"
|
|
70601
|
+
[placeholder]="'WORKFLOW_CATEGORY_CONTACTPERSON_EMPLOYEE' | localize">
|
|
70602
|
+
</co-input-text>
|
|
70603
|
+
<co-input-text
|
|
70604
|
+
class="drop-shipment-form-item"
|
|
70605
|
+
[(model)]="dropShipmentInfo.dropshipmentEmailAddress"
|
|
70606
|
+
[readonly]="!editMode"
|
|
70607
|
+
[placeholder]="'SEND_ACTION_EMAIL' | localize">
|
|
70608
|
+
</co-input-text>
|
|
70609
|
+
<co-input-text
|
|
70610
|
+
class="drop-shipment-form-item"
|
|
70611
|
+
[(model)]="dropShipmentInfo.dropshipmentPhoneNumber"
|
|
70612
|
+
[readonly]="!editMode"
|
|
70613
|
+
[placeholder]="'PHONE_NUMBER' | localize">
|
|
70614
|
+
</co-input-text>
|
|
70615
|
+
<co-input-text
|
|
70616
|
+
class="drop-shipment-form-item smaller"
|
|
70617
|
+
[(model)]="dropShipmentInfo.postalCode"
|
|
70618
|
+
[readonly]="!editMode"
|
|
70619
|
+
[placeholder]="'POSTAL_CODE' | localize"
|
|
70620
|
+
[required]="true">
|
|
70621
|
+
</co-input-text>
|
|
70622
|
+
<co-input-text
|
|
70623
|
+
class="drop-shipment-form-item smaller"
|
|
70624
|
+
[(model)]="dropShipmentInfo.number"
|
|
70625
|
+
[readonly]="!editMode"
|
|
70626
|
+
[placeholder]="'HOUSE_NO' | localize"
|
|
70627
|
+
[type]="'number'"
|
|
70628
|
+
[required]="true">
|
|
70629
|
+
</co-input-text>
|
|
70630
|
+
<co-input-text
|
|
70631
|
+
class="drop-shipment-form-item smaller"
|
|
70632
|
+
[(model)]="dropShipmentInfo.addition"
|
|
70633
|
+
[readonly]="!editMode"
|
|
70634
|
+
[placeholder]="'HOUSE_NO_ADDITION' | localize">
|
|
70635
|
+
</co-input-text>
|
|
70636
|
+
<co-input-text
|
|
70637
|
+
class="drop-shipment-form-item"
|
|
70638
|
+
[(model)]="dropShipmentInfo.streetName"
|
|
70639
|
+
[readonly]="!editMode"
|
|
70640
|
+
[placeholder]="'STREET' | localize"
|
|
70641
|
+
[required]="true">
|
|
70642
|
+
</co-input-text>
|
|
70643
|
+
<co-input-text
|
|
70644
|
+
class="drop-shipment-form-item"
|
|
70645
|
+
[(model)]="dropShipmentInfo.city"
|
|
70646
|
+
[readonly]="!editMode"
|
|
70647
|
+
[placeholder]="'CITY' | localize"
|
|
70648
|
+
[required]="true">
|
|
70649
|
+
</co-input-text>
|
|
70650
|
+
<co-input-text
|
|
70651
|
+
class="drop-shipment-form-item"
|
|
70652
|
+
[(model)]="dropShipmentInfo.countryCode"
|
|
70653
|
+
[readonly]="!editMode"
|
|
70654
|
+
[placeholder]="'COUNTRY_CODE' | localize"
|
|
70655
|
+
[required]="true">
|
|
70656
|
+
</co-input-text>
|
|
70657
|
+
</co-form>
|
|
70658
|
+
<div class="form-actions">
|
|
70659
|
+
@if (editMode) {
|
|
70660
|
+
<co-button
|
|
70661
|
+
class="save-button remove-entry"
|
|
70662
|
+
[label]="'CANCEL' | localize"
|
|
70663
|
+
(click)="cancelAddingNewAddress()">
|
|
70664
|
+
</co-button>
|
|
70665
|
+
<co-button
|
|
70666
|
+
class="save-button remove-entry"
|
|
70667
|
+
[label]="'SAVE' | localize"
|
|
70668
|
+
(click)="saveDropShipment()">
|
|
70669
|
+
</co-button>
|
|
70670
|
+
}
|
|
70671
|
+
@if (showDisconnectButton && !editMode) {
|
|
70672
|
+
<co-button
|
|
70673
|
+
class="save-button remove-entry"
|
|
70674
|
+
[label]="'NO_DROPSHIPPING' | localize"
|
|
70675
|
+
(click)="removeDropShipment()">
|
|
70676
|
+
</co-button>
|
|
70677
|
+
}
|
|
70678
|
+
</div>
|
|
70679
|
+
</section>
|
|
70680
|
+
|
|
70681
|
+
<section class="existing-addresses">
|
|
70682
|
+
<h4 class="section-title" [textContent]="'HISTORIC_ADDRESSES' | localize"></h4>
|
|
70683
|
+
@if (existingDropShipmentAddresses.length === 0) {
|
|
70684
|
+
<div [textContent]="'MESSAGE_NO_ADDRESSES' | localize"></div>
|
|
70685
|
+
}
|
|
70686
|
+
@if (!editMode) {
|
|
70687
|
+
<co-button
|
|
70688
|
+
class="save-button add-entry"
|
|
70689
|
+
[label]="'ADD_NEW_ADDRESS' | localize"
|
|
70690
|
+
(click)="addNewAddress()">
|
|
70691
|
+
</co-button>
|
|
70692
|
+
}
|
|
70693
|
+
@if (existingDropShipmentAddresses.length > 5) {
|
|
70694
|
+
<div class="search-input">
|
|
70695
|
+
<co-input-search
|
|
70696
|
+
[(model)]="searchTerm"
|
|
70697
|
+
[placeholder]="'SEARCH_AVAILABLE' | localize"
|
|
70698
|
+
(modelChange)="handleSearch($event)">
|
|
70699
|
+
</co-input-search>
|
|
70700
|
+
</div>
|
|
70701
|
+
}
|
|
70702
|
+
@for (address of existingDropShipmentAddresses; track address) {
|
|
70703
|
+
<div
|
|
70704
|
+
class="existing-address"
|
|
70705
|
+
[class.active]="dropShipmentInfo === address"
|
|
70706
|
+
(click)="selectAddress(address)">
|
|
70707
|
+
<strong [textContent]="address.dropshipmentName"></strong>
|
|
70708
|
+
<div [textContent]="address.streetName"></div>
|
|
70709
|
+
<div [textContent]="address.postalCode"></div>
|
|
70710
|
+
<div [textContent]="address.city"></div>
|
|
70711
|
+
</div>
|
|
70712
|
+
}
|
|
70713
|
+
</section>
|
|
70714
|
+
|
|
70715
|
+
<ng-template #templateHeader>
|
|
70716
|
+
<div class="co-dialog-header-title-icon">
|
|
70717
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.DeliveryTruckFast)"></co-icon>
|
|
70718
|
+
<div class="co-dialog-header-title" [textContent]="'DROPSHIPMENT_INFO' | localize"></div>
|
|
70719
|
+
</div>
|
|
70720
|
+
</ng-template>
|
|
70721
|
+
<ng-template #templateFooter>
|
|
70722
|
+
<div class="co-dialog-footer-button-wrapper">
|
|
70723
|
+
<co-button
|
|
70724
|
+
class="save-button"
|
|
70725
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
70726
|
+
(click)="closeDropShipment()">
|
|
70727
|
+
</co-button>
|
|
70728
|
+
<co-button
|
|
70729
|
+
class="close-button"
|
|
70730
|
+
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
70731
|
+
(click)="closeDropShipment()">
|
|
70732
|
+
</co-button>
|
|
70733
|
+
</div>
|
|
70734
|
+
</ng-template>
|
|
70735
|
+
</co-dialog>
|
|
70736
|
+
}
|
|
70737
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: IconComponent, selector: "icon", inputs: ["icon"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "component", type: i1$1.InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "component", type: i1$1.InputSearchComponent, selector: "co-input-search", inputs: ["placeholder", "handleKeydown", "useLeftIcon", "useRightIcon", "leftIconData", "rightIconData", "centerLabel"], outputs: ["search", "isFocused", "leftIconClick", "rightIconClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
70631
70738
|
}
|
|
70632
70739
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DropShipmentComponent, decorators: [{
|
|
70633
70740
|
type: Component,
|
|
70634
70741
|
args: [{
|
|
70635
70742
|
selector: 'co-drop-shipment',
|
|
70636
70743
|
template: `
|
|
70637
|
-
|
|
70638
|
-
|
|
70639
|
-
|
|
70640
|
-
|
|
70641
|
-
</div>
|
|
70642
|
-
</div>
|
|
70643
|
-
|
|
70644
|
-
@if (showDropShipmentDialog) {
|
|
70645
|
-
<co-dialog
|
|
70646
|
-
class="drop-shipment-dialog"
|
|
70647
|
-
[headerTemplate]="templateHeader"
|
|
70648
|
-
[footerTemplate]="templateFooter"
|
|
70649
|
-
(closeClick)="showDropShipmentDialog = false">
|
|
70650
|
-
<section class="add-new-address-form">
|
|
70651
|
-
<h4 class="section-title" [textContent]="'ADD_NEW_ADDRESS' | localize"></h4>
|
|
70652
|
-
<co-form class="drop-shipment-form">
|
|
70653
|
-
<co-input-text
|
|
70654
|
-
class="drop-shipment-form-item"
|
|
70655
|
-
[(model)]="dropShipmentInfo.dropshipmentName"
|
|
70656
|
-
[placeholder]="'NAME' | localize">
|
|
70657
|
-
</co-input-text>
|
|
70658
|
-
<co-input-text
|
|
70659
|
-
class="drop-shipment-form-item"
|
|
70660
|
-
[(model)]="dropShipmentInfo.dropshipmentContactPerson"
|
|
70661
|
-
[placeholder]="'WORKFLOW_CATEGORY_CONTACTPERSON_EMPLOYEE' | localize">
|
|
70662
|
-
</co-input-text>
|
|
70663
|
-
<co-input-text
|
|
70664
|
-
class="drop-shipment-form-item"
|
|
70665
|
-
[(model)]="dropShipmentInfo.dropshipmentEmailAddress"
|
|
70666
|
-
[placeholder]="'SEND_ACTION_EMAIL' | localize">
|
|
70667
|
-
</co-input-text>
|
|
70668
|
-
<co-input-text
|
|
70669
|
-
class="drop-shipment-form-item"
|
|
70670
|
-
[(model)]="dropShipmentInfo.dropshipmentPhoneNumber"
|
|
70671
|
-
[placeholder]="'PHONE_NUMBER' | localize">
|
|
70672
|
-
</co-input-text>
|
|
70673
|
-
<co-input-text
|
|
70674
|
-
class="drop-shipment-form-item smaller"
|
|
70675
|
-
[(model)]="dropShipmentInfo.postalCode"
|
|
70676
|
-
[placeholder]="'POSTAL_CODE' | localize"
|
|
70677
|
-
[required]="true">
|
|
70678
|
-
</co-input-text>
|
|
70679
|
-
<co-input-text
|
|
70680
|
-
class="drop-shipment-form-item smaller"
|
|
70681
|
-
[(model)]="dropShipmentInfo.number"
|
|
70682
|
-
[placeholder]="'HOUSE_NO' | localize"
|
|
70683
|
-
[type]="'number'"
|
|
70684
|
-
[required]="true">
|
|
70685
|
-
</co-input-text>
|
|
70686
|
-
<co-input-text
|
|
70687
|
-
class="drop-shipment-form-item smaller"
|
|
70688
|
-
[(model)]="dropShipmentInfo.addition"
|
|
70689
|
-
[placeholder]="'HOUSE_NO_ADDITION' | localize">
|
|
70690
|
-
</co-input-text>
|
|
70691
|
-
<co-input-text
|
|
70692
|
-
class="drop-shipment-form-item"
|
|
70693
|
-
[(model)]="dropShipmentInfo.streetName"
|
|
70694
|
-
[placeholder]="'STREET' | localize"
|
|
70695
|
-
[required]="true">
|
|
70696
|
-
</co-input-text>
|
|
70697
|
-
<co-input-text
|
|
70698
|
-
class="drop-shipment-form-item"
|
|
70699
|
-
[(model)]="dropShipmentInfo.city"
|
|
70700
|
-
[placeholder]="'CITY' | localize"
|
|
70701
|
-
[required]="true">
|
|
70702
|
-
</co-input-text>
|
|
70703
|
-
<co-input-text
|
|
70704
|
-
class="drop-shipment-form-item"
|
|
70705
|
-
[(model)]="dropShipmentInfo.countryCode"
|
|
70706
|
-
[placeholder]="'COUNTRY_CODE' | localize"
|
|
70707
|
-
[required]="true">
|
|
70708
|
-
</co-input-text>
|
|
70709
|
-
</co-form>
|
|
70710
|
-
</section>
|
|
70711
|
-
<section class="existing-addresses">
|
|
70712
|
-
<h4 class="section-title" [textContent]="'ALL_ADDRESSES' | localize"></h4>
|
|
70713
|
-
@if (existingDropShipmentAddresses.length === 0) {
|
|
70714
|
-
<div [textContent]="'MESSAGE_NO_ADDRESSES' | localize"></div>
|
|
70715
|
-
}
|
|
70716
|
-
@if (existingDropShipmentAddresses.length > 5) {
|
|
70717
|
-
<div class="search-input">
|
|
70718
|
-
<co-input-search
|
|
70719
|
-
[(model)]="searchTerm"
|
|
70720
|
-
[placeholder]="'SEARCH_AVAILABLE' | localize"
|
|
70721
|
-
(modelChange)="handleSearch($event)">
|
|
70722
|
-
</co-input-search>
|
|
70723
|
-
</div>
|
|
70724
|
-
}
|
|
70725
|
-
@for (address of existingDropShipmentAddresses; track address) {
|
|
70726
|
-
<div class="existing-address">
|
|
70727
|
-
<strong [textContent]="address.dropshipmentName"></strong>
|
|
70728
|
-
<div [textContent]="address.streetName"></div>
|
|
70729
|
-
<div [textContent]="address.postalCode"></div>
|
|
70730
|
-
<div [textContent]="address.city"></div>
|
|
70731
|
-
</div>
|
|
70732
|
-
}
|
|
70733
|
-
</section>
|
|
70734
|
-
<ng-template #templateHeader>
|
|
70735
|
-
<div class="co-dialog-header-title-icon">
|
|
70736
|
-
<co-icon [iconData]="iconCacheService.getIcon(icons.DeliveryTruckFast)"></co-icon>
|
|
70737
|
-
<div class="co-dialog-header-title" [textContent]="'DROPSHIPMENT_INFO' | localize"></div>
|
|
70738
|
-
</div>
|
|
70739
|
-
</ng-template>
|
|
70740
|
-
<ng-template #templateFooter>
|
|
70741
|
-
<div class="co-dialog-footer-button-wrapper">
|
|
70742
|
-
<co-button
|
|
70743
|
-
class="save-button"
|
|
70744
|
-
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
70745
|
-
(click)="saveDropShipment()">
|
|
70746
|
-
</co-button>
|
|
70747
|
-
<co-button
|
|
70748
|
-
class="close-button"
|
|
70749
|
-
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
70750
|
-
(click)="showDropShipmentDialog = false">
|
|
70751
|
-
</co-button>
|
|
70744
|
+
<div class="default-data-row">
|
|
70745
|
+
<div class="new-drop-shipment-link">
|
|
70746
|
+
<icon class="drop-shipment-icon" [icon]="icons.ArrowPointRight"></icon>
|
|
70747
|
+
<div [textContent]="'DROPSHIPMENT_INFO' | localize" (click)="showDropShipmentDialog = true"></div>
|
|
70752
70748
|
</div>
|
|
70753
|
-
|
|
70754
|
-
|
|
70755
|
-
|
|
70756
|
-
|
|
70749
|
+
</div>
|
|
70750
|
+
|
|
70751
|
+
@if (showDropShipmentDialog) {
|
|
70752
|
+
<co-dialog
|
|
70753
|
+
class="drop-shipment-dialog"
|
|
70754
|
+
[headerTemplate]="templateHeader"
|
|
70755
|
+
[footerTemplate]="templateFooter"
|
|
70756
|
+
(closeClick)="closeDropShipment()">
|
|
70757
|
+
<section class="add-new-address-form">
|
|
70758
|
+
<h4 class="section-title" [textContent]="'DROPSHIPPING_ADDRESS_CURRENT_ORDER' | localize"></h4>
|
|
70759
|
+
<co-form class="drop-shipment-form">
|
|
70760
|
+
<co-input-text
|
|
70761
|
+
class="drop-shipment-form-item"
|
|
70762
|
+
[(model)]="dropShipmentInfo.dropshipmentName"
|
|
70763
|
+
[readonly]="!editMode"
|
|
70764
|
+
[placeholder]="'NAME' | localize">
|
|
70765
|
+
</co-input-text>
|
|
70766
|
+
<co-input-text
|
|
70767
|
+
class="drop-shipment-form-item"
|
|
70768
|
+
[(model)]="dropShipmentInfo.dropshipmentContactPerson"
|
|
70769
|
+
[readonly]="!editMode"
|
|
70770
|
+
[placeholder]="'WORKFLOW_CATEGORY_CONTACTPERSON_EMPLOYEE' | localize">
|
|
70771
|
+
</co-input-text>
|
|
70772
|
+
<co-input-text
|
|
70773
|
+
class="drop-shipment-form-item"
|
|
70774
|
+
[(model)]="dropShipmentInfo.dropshipmentEmailAddress"
|
|
70775
|
+
[readonly]="!editMode"
|
|
70776
|
+
[placeholder]="'SEND_ACTION_EMAIL' | localize">
|
|
70777
|
+
</co-input-text>
|
|
70778
|
+
<co-input-text
|
|
70779
|
+
class="drop-shipment-form-item"
|
|
70780
|
+
[(model)]="dropShipmentInfo.dropshipmentPhoneNumber"
|
|
70781
|
+
[readonly]="!editMode"
|
|
70782
|
+
[placeholder]="'PHONE_NUMBER' | localize">
|
|
70783
|
+
</co-input-text>
|
|
70784
|
+
<co-input-text
|
|
70785
|
+
class="drop-shipment-form-item smaller"
|
|
70786
|
+
[(model)]="dropShipmentInfo.postalCode"
|
|
70787
|
+
[readonly]="!editMode"
|
|
70788
|
+
[placeholder]="'POSTAL_CODE' | localize"
|
|
70789
|
+
[required]="true">
|
|
70790
|
+
</co-input-text>
|
|
70791
|
+
<co-input-text
|
|
70792
|
+
class="drop-shipment-form-item smaller"
|
|
70793
|
+
[(model)]="dropShipmentInfo.number"
|
|
70794
|
+
[readonly]="!editMode"
|
|
70795
|
+
[placeholder]="'HOUSE_NO' | localize"
|
|
70796
|
+
[type]="'number'"
|
|
70797
|
+
[required]="true">
|
|
70798
|
+
</co-input-text>
|
|
70799
|
+
<co-input-text
|
|
70800
|
+
class="drop-shipment-form-item smaller"
|
|
70801
|
+
[(model)]="dropShipmentInfo.addition"
|
|
70802
|
+
[readonly]="!editMode"
|
|
70803
|
+
[placeholder]="'HOUSE_NO_ADDITION' | localize">
|
|
70804
|
+
</co-input-text>
|
|
70805
|
+
<co-input-text
|
|
70806
|
+
class="drop-shipment-form-item"
|
|
70807
|
+
[(model)]="dropShipmentInfo.streetName"
|
|
70808
|
+
[readonly]="!editMode"
|
|
70809
|
+
[placeholder]="'STREET' | localize"
|
|
70810
|
+
[required]="true">
|
|
70811
|
+
</co-input-text>
|
|
70812
|
+
<co-input-text
|
|
70813
|
+
class="drop-shipment-form-item"
|
|
70814
|
+
[(model)]="dropShipmentInfo.city"
|
|
70815
|
+
[readonly]="!editMode"
|
|
70816
|
+
[placeholder]="'CITY' | localize"
|
|
70817
|
+
[required]="true">
|
|
70818
|
+
</co-input-text>
|
|
70819
|
+
<co-input-text
|
|
70820
|
+
class="drop-shipment-form-item"
|
|
70821
|
+
[(model)]="dropShipmentInfo.countryCode"
|
|
70822
|
+
[readonly]="!editMode"
|
|
70823
|
+
[placeholder]="'COUNTRY_CODE' | localize"
|
|
70824
|
+
[required]="true">
|
|
70825
|
+
</co-input-text>
|
|
70826
|
+
</co-form>
|
|
70827
|
+
<div class="form-actions">
|
|
70828
|
+
@if (editMode) {
|
|
70829
|
+
<co-button
|
|
70830
|
+
class="save-button remove-entry"
|
|
70831
|
+
[label]="'CANCEL' | localize"
|
|
70832
|
+
(click)="cancelAddingNewAddress()">
|
|
70833
|
+
</co-button>
|
|
70834
|
+
<co-button
|
|
70835
|
+
class="save-button remove-entry"
|
|
70836
|
+
[label]="'SAVE' | localize"
|
|
70837
|
+
(click)="saveDropShipment()">
|
|
70838
|
+
</co-button>
|
|
70839
|
+
}
|
|
70840
|
+
@if (showDisconnectButton && !editMode) {
|
|
70841
|
+
<co-button
|
|
70842
|
+
class="save-button remove-entry"
|
|
70843
|
+
[label]="'NO_DROPSHIPPING' | localize"
|
|
70844
|
+
(click)="removeDropShipment()">
|
|
70845
|
+
</co-button>
|
|
70846
|
+
}
|
|
70847
|
+
</div>
|
|
70848
|
+
</section>
|
|
70849
|
+
|
|
70850
|
+
<section class="existing-addresses">
|
|
70851
|
+
<h4 class="section-title" [textContent]="'HISTORIC_ADDRESSES' | localize"></h4>
|
|
70852
|
+
@if (existingDropShipmentAddresses.length === 0) {
|
|
70853
|
+
<div [textContent]="'MESSAGE_NO_ADDRESSES' | localize"></div>
|
|
70854
|
+
}
|
|
70855
|
+
@if (!editMode) {
|
|
70856
|
+
<co-button
|
|
70857
|
+
class="save-button add-entry"
|
|
70858
|
+
[label]="'ADD_NEW_ADDRESS' | localize"
|
|
70859
|
+
(click)="addNewAddress()">
|
|
70860
|
+
</co-button>
|
|
70861
|
+
}
|
|
70862
|
+
@if (existingDropShipmentAddresses.length > 5) {
|
|
70863
|
+
<div class="search-input">
|
|
70864
|
+
<co-input-search
|
|
70865
|
+
[(model)]="searchTerm"
|
|
70866
|
+
[placeholder]="'SEARCH_AVAILABLE' | localize"
|
|
70867
|
+
(modelChange)="handleSearch($event)">
|
|
70868
|
+
</co-input-search>
|
|
70869
|
+
</div>
|
|
70870
|
+
}
|
|
70871
|
+
@for (address of existingDropShipmentAddresses; track address) {
|
|
70872
|
+
<div
|
|
70873
|
+
class="existing-address"
|
|
70874
|
+
[class.active]="dropShipmentInfo === address"
|
|
70875
|
+
(click)="selectAddress(address)">
|
|
70876
|
+
<strong [textContent]="address.dropshipmentName"></strong>
|
|
70877
|
+
<div [textContent]="address.streetName"></div>
|
|
70878
|
+
<div [textContent]="address.postalCode"></div>
|
|
70879
|
+
<div [textContent]="address.city"></div>
|
|
70880
|
+
</div>
|
|
70881
|
+
}
|
|
70882
|
+
</section>
|
|
70883
|
+
|
|
70884
|
+
<ng-template #templateHeader>
|
|
70885
|
+
<div class="co-dialog-header-title-icon">
|
|
70886
|
+
<co-icon [iconData]="iconCacheService.getIcon(icons.DeliveryTruckFast)"></co-icon>
|
|
70887
|
+
<div class="co-dialog-header-title" [textContent]="'DROPSHIPMENT_INFO' | localize"></div>
|
|
70888
|
+
</div>
|
|
70889
|
+
</ng-template>
|
|
70890
|
+
<ng-template #templateFooter>
|
|
70891
|
+
<div class="co-dialog-footer-button-wrapper">
|
|
70892
|
+
<co-button
|
|
70893
|
+
class="save-button"
|
|
70894
|
+
[iconData]="iconCacheService.getIcon(icons.CheckDuotone)"
|
|
70895
|
+
(click)="closeDropShipment()">
|
|
70896
|
+
</co-button>
|
|
70897
|
+
<co-button
|
|
70898
|
+
class="close-button"
|
|
70899
|
+
[iconData]="iconCacheService.getIcon(icons.Crossskinny)"
|
|
70900
|
+
(click)="closeDropShipment()">
|
|
70901
|
+
</co-button>
|
|
70902
|
+
</div>
|
|
70903
|
+
</ng-template>
|
|
70904
|
+
</co-dialog>
|
|
70905
|
+
}
|
|
70906
|
+
`,
|
|
70757
70907
|
encapsulation: ViewEncapsulation.None,
|
|
70758
70908
|
standalone: false
|
|
70759
70909
|
}]
|
|
70760
70910
|
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionService }, { type: TransactionDialogService }], propDecorators: { showClass: [{
|
|
70761
70911
|
type: HostBinding,
|
|
70762
70912
|
args: ['class.co-drop-shipment']
|
|
70913
|
+
}], transUuid: [{
|
|
70914
|
+
type: Input
|
|
70763
70915
|
}] } });
|
|
70764
70916
|
|
|
70765
70917
|
class TransactionHeaderPopupRelationComponent extends TransactionHeaderPopupBaseComponent {
|
|
@@ -71159,7 +71311,7 @@ class TransactionHeaderPopupRelationComponent extends TransactionHeaderPopupBase
|
|
|
71159
71311
|
(selectedNawNrChange)="setIndexDeliveryAddress($event)"
|
|
71160
71312
|
(selectedLocalHashChange)="setLocalHashDeliveryAddress($event)"
|
|
71161
71313
|
></co-relation-addresses>
|
|
71162
|
-
<co-drop-shipment></co-drop-shipment>
|
|
71314
|
+
<co-drop-shipment [transUuid]="transactionInfo.uuid"></co-drop-shipment>
|
|
71163
71315
|
<co-relation-contact-details
|
|
71164
71316
|
[configNames]="configNames?.contactDetails"
|
|
71165
71317
|
[readonly]="readonly || forceReadonly"
|
|
@@ -71215,7 +71367,7 @@ class TransactionHeaderPopupRelationComponent extends TransactionHeaderPopupBase
|
|
|
71215
71367
|
}
|
|
71216
71368
|
</co-form>
|
|
71217
71369
|
</div>
|
|
71218
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: RelationTypeComponent, selector: "co-relation-type", inputs: ["readonly", "relation"], outputs: ["relationChange"] }, { kind: "component", type: CustomerGroupsComponent, selector: "relation-customer-groups", inputs: ["readonly", "required", "model"], outputs: ["modelChange"] }, { kind: "component", type: RelationGeneralComponent, selector: "co-relation-general", inputs: ["relationType", "configNames", "readonly", "relationKind", "service", "contactPerson"], outputs: ["contactPersonChangeEvent", "contactPersonInfoOpenEvent"] }, { kind: "component", type: RelationAddressesComponent, selector: "co-relation-addresses", inputs: ["readonly", "addresses", "showOnlyActive", "type", "selectedNawNr", "selectedLocalHash", "noSaveOnAddAddress"], outputs: ["selectedNawNrChange", "selectedLocalHashChange"] }, { kind: "component", type: DropShipmentComponent, selector: "co-drop-shipment" }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: RelationPreferencesComponent, selector: "co-relation-preferences", inputs: ["readonly"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "directive", type: i1$1.TooltipDirective, selector: "[tooltip]", inputs: ["tooltip"] }, { kind: "component", type: i1$1.InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: RelationContactDetailsComponent, selector: "co-relation-contact-details", inputs: ["configNames", "readonly", "showPhone", "showInviteForAccount", "relationKind"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], animations: [
|
|
71370
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: RelationTypeComponent, selector: "co-relation-type", inputs: ["readonly", "relation"], outputs: ["relationChange"] }, { kind: "component", type: CustomerGroupsComponent, selector: "relation-customer-groups", inputs: ["readonly", "required", "model"], outputs: ["modelChange"] }, { kind: "component", type: RelationGeneralComponent, selector: "co-relation-general", inputs: ["relationType", "configNames", "readonly", "relationKind", "service", "contactPerson"], outputs: ["contactPersonChangeEvent", "contactPersonInfoOpenEvent"] }, { kind: "component", type: RelationAddressesComponent, selector: "co-relation-addresses", inputs: ["readonly", "addresses", "showOnlyActive", "type", "selectedNawNr", "selectedLocalHash", "noSaveOnAddAddress"], outputs: ["selectedNawNrChange", "selectedLocalHashChange"] }, { kind: "component", type: DropShipmentComponent, selector: "co-drop-shipment", inputs: ["transUuid"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: RelationPreferencesComponent, selector: "co-relation-preferences", inputs: ["readonly"] }, { kind: "component", type: i1$1.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { kind: "directive", type: i1$1.TooltipDirective, selector: "[tooltip]", inputs: ["tooltip"] }, { kind: "component", type: i1$1.InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: RelationContactDetailsComponent, selector: "co-relation-contact-details", inputs: ["configNames", "readonly", "showPhone", "showInviteForAccount", "relationKind"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], animations: [
|
|
71219
71371
|
trigger('showHideInvoiceAddress', [
|
|
71220
71372
|
state('void', style({ height: 0, opacity: 0 })),
|
|
71221
71373
|
state('*', style({ height: '*', opacity: 1 })),
|
|
@@ -71365,7 +71517,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
71365
71517
|
(selectedNawNrChange)="setIndexDeliveryAddress($event)"
|
|
71366
71518
|
(selectedLocalHashChange)="setLocalHashDeliveryAddress($event)"
|
|
71367
71519
|
></co-relation-addresses>
|
|
71368
|
-
<co-drop-shipment></co-drop-shipment>
|
|
71520
|
+
<co-drop-shipment [transUuid]="transactionInfo.uuid"></co-drop-shipment>
|
|
71369
71521
|
<co-relation-contact-details
|
|
71370
71522
|
[configNames]="configNames?.contactDetails"
|
|
71371
71523
|
[readonly]="readonly || forceReadonly"
|
|
@@ -78525,7 +78677,7 @@ class TransactionSalesPersonInputComponent {
|
|
|
78525
78677
|
}
|
|
78526
78678
|
</div>
|
|
78527
78679
|
</div>
|
|
78528
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutside", "alwaysTrigger"], outputs: ["clickOutside"], exportAs: ["clickOutside"] }, { kind: "directive", type: i1$1.OverlayDirective, selector: "[overlay]", inputs: ["overlay", "view", "inline", "keepInView", "inheritWidth", "rightAlign", "fullSize"] }, { kind: "component", type: DialogHeaderSearchComponent, selector: "co-dialog-header-search", inputs: ["title", "icon"], outputs: ["search"] }, { kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation"] }, { kind: "directive", type: i1$1.ObserveVisibilityDirective, selector: "[observeVisibility]", inputs: ["threshold"], outputs: ["visibilityChange"], exportAs: ["visibilityObserve"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
78680
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutside", "alwaysTrigger"], outputs: ["clickOutside"], exportAs: ["clickOutside"] }, { kind: "directive", type: i1$1.OverlayDirective, selector: "[overlay]", inputs: ["overlay", "view", "inline", "keepInView", "inheritWidth", "rightAlign", "fullSize"] }, { kind: "component", type: DialogHeaderSearchComponent, selector: "co-dialog-header-search", inputs: ["title", "icon"], outputs: ["search"] }, { kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "directive", type: i1$1.ObserveVisibilityDirective, selector: "[observeVisibility]", inputs: ["threshold"], outputs: ["visibilityChange"], exportAs: ["visibilityObserve"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
78529
78681
|
}
|
|
78530
78682
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSalesPersonInputComponent, decorators: [{
|
|
78531
78683
|
type: Component,
|
|
@@ -81787,20 +81939,20 @@ class TransactionHeaderHandledByComponent {
|
|
|
81787
81939
|
}
|
|
81788
81940
|
], ngImport: i0, template: `
|
|
81789
81941
|
<div class="sales-person-input">
|
|
81790
|
-
|
|
81791
|
-
|
|
81792
|
-
|
|
81793
|
-
|
|
81794
|
-
|
|
81795
|
-
|
|
81796
|
-
|
|
81797
|
-
|
|
81798
|
-
|
|
81799
|
-
|
|
81800
|
-
|
|
81801
|
-
|
|
81942
|
+
@if (!transaction.transactionInfo.handledBy) {
|
|
81943
|
+
<div class="sales-person-unset">
|
|
81944
|
+
...
|
|
81945
|
+
</div>
|
|
81946
|
+
}
|
|
81947
|
+
@if (transaction.transactionInfo.handledBy) {
|
|
81948
|
+
<co-avatar
|
|
81949
|
+
class="transaction-sales-avatar"
|
|
81950
|
+
[relationId]="transaction.transactionInfo.handledBy"
|
|
81951
|
+
[showBranchNr]="true">
|
|
81952
|
+
</co-avatar>
|
|
81953
|
+
}
|
|
81802
81954
|
</div>
|
|
81803
|
-
|
|
81955
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
81804
81956
|
}
|
|
81805
81957
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionHeaderHandledByComponent, decorators: [{
|
|
81806
81958
|
type: Component,
|
|
@@ -81808,20 +81960,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
81808
81960
|
selector: 'co-transaction-header-handled-by',
|
|
81809
81961
|
template: `
|
|
81810
81962
|
<div class="sales-person-input">
|
|
81811
|
-
|
|
81812
|
-
|
|
81813
|
-
|
|
81814
|
-
|
|
81815
|
-
|
|
81816
|
-
|
|
81817
|
-
|
|
81818
|
-
|
|
81819
|
-
|
|
81820
|
-
|
|
81821
|
-
|
|
81822
|
-
|
|
81963
|
+
@if (!transaction.transactionInfo.handledBy) {
|
|
81964
|
+
<div class="sales-person-unset">
|
|
81965
|
+
...
|
|
81966
|
+
</div>
|
|
81967
|
+
}
|
|
81968
|
+
@if (transaction.transactionInfo.handledBy) {
|
|
81969
|
+
<co-avatar
|
|
81970
|
+
class="transaction-sales-avatar"
|
|
81971
|
+
[relationId]="transaction.transactionInfo.handledBy"
|
|
81972
|
+
[showBranchNr]="true">
|
|
81973
|
+
</co-avatar>
|
|
81974
|
+
}
|
|
81823
81975
|
</div>
|
|
81824
|
-
|
|
81976
|
+
`,
|
|
81825
81977
|
providers: [{
|
|
81826
81978
|
provide: SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
81827
81979
|
useExisting: forwardRef(() => TransactionHeaderHandledByComponent)
|
|
@@ -82690,7 +82842,7 @@ class TransactionInternalComponent {
|
|
|
82690
82842
|
}
|
|
82691
82843
|
</div>
|
|
82692
82844
|
}
|
|
82693
|
-
`, isInline: true, dependencies: [{ kind: "component", type: TransactionHeaderComponent, selector: "co-transaction-header", inputs: ["transaction"] }, { kind: "component", type: TransactionQuickAccessComponent, selector: "co-transaction-quick-access", inputs: ["transactionKind", "activeCategory", "planningLines"] }, { kind: "component", type: TransactionButtonBarComponent, selector: "co-transaction-button-bar", inputs: ["selectedCategory", "transactionInfoResponse", "sidePanel", "direction", "hideButtonLoader"], outputs: ["buttonClicked"] }, { kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation"] }, { kind: "component", type: i1$1.ViewModeButtonsComponent, selector: "co-view-mode-buttons", inputs: ["showViewModes", "activeViewMode"], outputs: ["viewModeChange"] }, { kind: "component", type: TransactionLinesComponent, selector: "co-transaction-lines", inputs: ["customerPortal", "planningLines"] }, { kind: "component", type: AddProductComponent, selector: "co-add-product", inputs: ["handleAddArticleInternally"], outputs: ["addArticle"] }, { kind: "component", type: TransactionTotalsComponent, selector: "co-transaction-totals", inputs: ["showDiscount"], outputs: ["discountClick"] }, { kind: "component", type: TransactionArticleTextOverviewComponent, selector: "co-transaction-article-text-overview", inputs: ["transactionInfo", "transactionLine"], outputs: ["closeClick", "cancelClick"] }, { kind: "component", type: TransactionArticleTextComponent, selector: "co-transaction-article-text", inputs: ["header", "transactionUuid", "transactionLine", "orderLineSetDTO", "articleRef", "editText", "articleLineNr", "showArticleImageDescription", "showImage"], outputs: ["closeClick", "cancelClick", "saveClick", "saveOrderLineSetClick"] }, { kind: "component", type: TransactionCopyOrderComponent, selector: "co-transaction-copy-order", outputs: ["closeDialog"] }, { kind: "component", type: TransactionLinesSidePanelComponent, selector: "co-transaction-lines-side-panel", inputs: ["transaction", "posOrderData"] }, { kind: "component", type: TransactionButtonComponent, selector: "co-transaction-button", inputs: ["label", "title", "statusColor", "readonly", "hidden", "iconData", "rightIconData", "showCheckMarkLoader", "checkMarkOverlayVisible", "inputLabel", "insideLabel"], outputs: ["iconClicked"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: TransactionServiceOverviewComponent, selector: "co-transaction-service-overview", inputs: ["posOrderData", "customerPortal"] }, { kind: "component", type: TransactionCardsComponent, selector: "co-transaction-cards" }, { kind: "component", type: TransactionMarginComponent, selector: "co-transaction-margin" }, { kind: "component", type: ClickBlockComponent, selector: "co-click-block" }, { kind: "component", type: TransactionArticleStockComponent, selector: "co-transaction-article-stock-dialog", inputs: ["article"], outputs: ["closeClick"] }, { kind: "component", type: TransactionHeaderCustomerPortalComponent, selector: "co-transaction-header-customer-portal", inputs: ["transaction", "showPreferredPlanning"] }, { kind: "component", type: TransactionHeaderHandledByComponent, selector: "co-transaction-header-handled-by", inputs: ["transaction"] }, { kind: "component", type: i10.FormBuilderUserFormComponent, selector: "co-form-builder-user-form", inputs: ["showPopup", "form", "userForm", "table", "key", "readonly", "enableQuestions", "lineUUID"], outputs: ["cancelForm", "saveForm", "definitiveChange", "createNewFormResponse", "errorMessage"] }, { kind: "component", type: DeliveryPlanningOverviewPopupComponent, selector: "co-delivery-planning-overview-popup", outputs: ["closeEvent", "onSucceededPlanAction"] }, { kind: "component", type: TransactionSalesReservationPopupComponent, selector: "co-transaction-sales-reservation-popup", inputs: ["reservationOrderLines", "transactionId"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
82845
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TransactionHeaderComponent, selector: "co-transaction-header", inputs: ["transaction"] }, { kind: "component", type: TransactionQuickAccessComponent, selector: "co-transaction-quick-access", inputs: ["transactionKind", "activeCategory", "planningLines"] }, { kind: "component", type: TransactionButtonBarComponent, selector: "co-transaction-button-bar", inputs: ["selectedCategory", "transactionInfoResponse", "sidePanel", "direction", "hideButtonLoader"], outputs: ["buttonClicked"] }, { kind: "component", type: AvatarComponent, selector: "co-avatar", inputs: ["image", "relationId", "relation", "showBranchNr"] }, { kind: "component", type: i1$1.ViewModeButtonsComponent, selector: "co-view-mode-buttons", inputs: ["showViewModes", "activeViewMode"], outputs: ["viewModeChange"] }, { kind: "component", type: TransactionLinesComponent, selector: "co-transaction-lines", inputs: ["customerPortal", "planningLines"] }, { kind: "component", type: AddProductComponent, selector: "co-add-product", inputs: ["handleAddArticleInternally"], outputs: ["addArticle"] }, { kind: "component", type: TransactionTotalsComponent, selector: "co-transaction-totals", inputs: ["showDiscount"], outputs: ["discountClick"] }, { kind: "component", type: TransactionArticleTextOverviewComponent, selector: "co-transaction-article-text-overview", inputs: ["transactionInfo", "transactionLine"], outputs: ["closeClick", "cancelClick"] }, { kind: "component", type: TransactionArticleTextComponent, selector: "co-transaction-article-text", inputs: ["header", "transactionUuid", "transactionLine", "orderLineSetDTO", "articleRef", "editText", "articleLineNr", "showArticleImageDescription", "showImage"], outputs: ["closeClick", "cancelClick", "saveClick", "saveOrderLineSetClick"] }, { kind: "component", type: TransactionCopyOrderComponent, selector: "co-transaction-copy-order", outputs: ["closeDialog"] }, { kind: "component", type: TransactionLinesSidePanelComponent, selector: "co-transaction-lines-side-panel", inputs: ["transaction", "posOrderData"] }, { kind: "component", type: TransactionButtonComponent, selector: "co-transaction-button", inputs: ["label", "title", "statusColor", "readonly", "hidden", "iconData", "rightIconData", "showCheckMarkLoader", "checkMarkOverlayVisible", "inputLabel", "insideLabel"], outputs: ["iconClicked"] }, { kind: "directive", type: i1$1.ScreenConfigurationDirective, selector: "[screenConfigurationObject]", inputs: ["screenConfigurationObject", "dataName", "screenConfigNativeElement", "noModuleService"] }, { kind: "component", type: TransactionServiceOverviewComponent, selector: "co-transaction-service-overview", inputs: ["posOrderData", "customerPortal"] }, { kind: "component", type: TransactionCardsComponent, selector: "co-transaction-cards" }, { kind: "component", type: TransactionMarginComponent, selector: "co-transaction-margin" }, { kind: "component", type: ClickBlockComponent, selector: "co-click-block" }, { kind: "component", type: TransactionArticleStockComponent, selector: "co-transaction-article-stock-dialog", inputs: ["article"], outputs: ["closeClick"] }, { kind: "component", type: TransactionHeaderCustomerPortalComponent, selector: "co-transaction-header-customer-portal", inputs: ["transaction", "showPreferredPlanning"] }, { kind: "component", type: TransactionHeaderHandledByComponent, selector: "co-transaction-header-handled-by", inputs: ["transaction"] }, { kind: "component", type: i10.FormBuilderUserFormComponent, selector: "co-form-builder-user-form", inputs: ["showPopup", "form", "userForm", "table", "key", "readonly", "enableQuestions", "lineUUID"], outputs: ["cancelForm", "saveForm", "definitiveChange", "createNewFormResponse", "errorMessage"] }, { kind: "component", type: DeliveryPlanningOverviewPopupComponent, selector: "co-delivery-planning-overview-popup", outputs: ["closeEvent", "onSucceededPlanAction"] }, { kind: "component", type: TransactionSalesReservationPopupComponent, selector: "co-transaction-sales-reservation-popup", inputs: ["reservationOrderLines", "transactionId"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
82694
82846
|
}
|
|
82695
82847
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionInternalComponent, decorators: [{
|
|
82696
82848
|
type: Component,
|