@colijnit/transaction 262.1.55 → 262.1.57
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/fesm2022/colijnit-transaction.mjs +124 -88
- package/fesm2022/colijnit-transaction.mjs.map +1 -1
- package/index.d.ts +14 -9
- package/package.json +2 -2
|
@@ -360,8 +360,8 @@ import { DateField } from '@colijnit/ioneconnector/build/factory/decorators/date
|
|
|
360
360
|
class Version {
|
|
361
361
|
name = "@colijnit/transaction";
|
|
362
362
|
description = "Colijn IT transaction package";
|
|
363
|
-
symVer = "262.1.
|
|
364
|
-
publishDate = "
|
|
363
|
+
symVer = "262.1.57";
|
|
364
|
+
publishDate = "9-10-2026, 16:12:02";
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
class CheckoutModuleService extends BaseModuleService {
|
|
@@ -47142,6 +47142,7 @@ class TransactionSearchSalesLineSelectTileComponent extends TransactionSearchTil
|
|
|
47142
47142
|
extendedTransactionSearch = false;
|
|
47143
47143
|
returnWizardLayout = false;
|
|
47144
47144
|
customerPortal = false;
|
|
47145
|
+
filterOnlyAllocated = false;
|
|
47145
47146
|
lineClicked = new EventEmitter();
|
|
47146
47147
|
transactionClick = new EventEmitter();
|
|
47147
47148
|
lines;
|
|
@@ -47154,7 +47155,13 @@ class TransactionSearchSalesLineSelectTileComponent extends TransactionSearchTil
|
|
|
47154
47155
|
}
|
|
47155
47156
|
async handleVisibilityChange(visible) {
|
|
47156
47157
|
if (visible && (this.lines === null || this.lines === undefined)) {
|
|
47157
|
-
|
|
47158
|
+
let foundLines = await this.transactionService.getLineIndicesByTransId(this.transaction.transId);
|
|
47159
|
+
if (!this.filterOnlyAllocated) {
|
|
47160
|
+
this.lines = foundLines;
|
|
47161
|
+
}
|
|
47162
|
+
else {
|
|
47163
|
+
this.lines = foundLines.filter(l => l.quantityAllocated > 0);
|
|
47164
|
+
}
|
|
47158
47165
|
}
|
|
47159
47166
|
}
|
|
47160
47167
|
tileClicked(line) {
|
|
@@ -47193,7 +47200,7 @@ class TransactionSearchSalesLineSelectTileComponent extends TransactionSearchTil
|
|
|
47193
47200
|
}
|
|
47194
47201
|
}
|
|
47195
47202
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionSearchSalesLineSelectTileComponent, deps: [{ token: IconCacheService }, { token: TransactionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
47196
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchSalesLineSelectTileComponent, isStandalone: false, selector: "co-transaction-search-sales-line-select-tile", inputs: { extendedTransactionSearch: "extendedTransactionSearch", returnWizardLayout: "returnWizardLayout", customerPortal: "customerPortal" }, outputs: { lineClicked: "lineClicked", transactionClick: "transactionClick" }, host: { properties: { "class.co-transaction-search-sales-line-select-tile": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
47203
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionSearchSalesLineSelectTileComponent, isStandalone: false, selector: "co-transaction-search-sales-line-select-tile", inputs: { extendedTransactionSearch: "extendedTransactionSearch", returnWizardLayout: "returnWizardLayout", customerPortal: "customerPortal", filterOnlyAllocated: "filterOnlyAllocated" }, outputs: { lineClicked: "lineClicked", transactionClick: "transactionClick" }, host: { properties: { "class.co-transaction-search-sales-line-select-tile": "this.showClass" } }, usesInheritance: true, ngImport: i0, template: `
|
|
47197
47204
|
@if (customerPortal) {
|
|
47198
47205
|
<div class="co-transaction-search-sales-line-select-tile-wrapper " observeVisibility #observer=visibilityObserve
|
|
47199
47206
|
(visibilityChange)="handleVisibilityChange($event)">
|
|
@@ -47424,6 +47431,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
47424
47431
|
type: Input
|
|
47425
47432
|
}], customerPortal: [{
|
|
47426
47433
|
type: Input
|
|
47434
|
+
}], filterOnlyAllocated: [{
|
|
47435
|
+
type: Input
|
|
47427
47436
|
}], lineClicked: [{
|
|
47428
47437
|
type: Output
|
|
47429
47438
|
}], transactionClick: [{
|
|
@@ -47431,10 +47440,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
47431
47440
|
}] } });
|
|
47432
47441
|
|
|
47433
47442
|
class DialogTransactionSearchComponent {
|
|
47434
|
-
transactionSearchService;
|
|
47435
47443
|
iconCacheService;
|
|
47444
|
+
transactionSearchService;
|
|
47436
47445
|
icons = Icon;
|
|
47437
|
-
placeholder;
|
|
47438
47446
|
set relation(value) {
|
|
47439
47447
|
this.transactionSearchService.searchRequest.relationNrTr = Number(value.relationNumber);
|
|
47440
47448
|
}
|
|
@@ -47445,9 +47453,9 @@ class DialogTransactionSearchComponent {
|
|
|
47445
47453
|
return true;
|
|
47446
47454
|
}
|
|
47447
47455
|
showFilters = false;
|
|
47448
|
-
constructor(
|
|
47449
|
-
this.transactionSearchService = transactionSearchService;
|
|
47456
|
+
constructor(iconCacheService, transactionSearchService) {
|
|
47450
47457
|
this.iconCacheService = iconCacheService;
|
|
47458
|
+
this.transactionSearchService = transactionSearchService;
|
|
47451
47459
|
}
|
|
47452
47460
|
async ngOnInit() {
|
|
47453
47461
|
await this.searchTransactions();
|
|
@@ -47461,72 +47469,74 @@ class DialogTransactionSearchComponent {
|
|
|
47461
47469
|
this.lineClicked.emit(line);
|
|
47462
47470
|
}
|
|
47463
47471
|
async searchTransactions() {
|
|
47464
|
-
this.transactionSearchService.searchTransactions();
|
|
47465
|
-
}
|
|
47466
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionSearchComponent, deps: [{ token:
|
|
47467
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DialogTransactionSearchComponent, isStandalone: false, selector: "co-dialog-transaction-search", inputs: {
|
|
47468
|
-
<co-dialog (closeClick)="closeClick.emit()" >
|
|
47469
|
-
|
|
47470
|
-
<div class="search-wrapper">
|
|
47471
|
-
<co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
|
|
47472
|
-
<div class="search-content">
|
|
47473
|
-
<ng-container>
|
|
47474
|
-
@if (showFilters) {
|
|
47475
|
-
<div class="search-filter-panel narrow-scrollbar" >
|
|
47476
|
-
<co-transaction-filter></co-transaction-filter>
|
|
47477
|
-
</div>
|
|
47478
|
-
}
|
|
47479
|
-
<div class="search-result-content">
|
|
47480
|
-
@for (transaction of transactionSearchService.transactions; track transaction) {
|
|
47481
|
-
<div class="transaction-tile">
|
|
47482
|
-
<co-transaction-search-sales-line-select-tile
|
|
47483
|
-
[transaction]="transaction"
|
|
47484
|
-
|
|
47485
|
-
|
|
47486
|
-
|
|
47487
|
-
|
|
47488
|
-
|
|
47489
|
-
|
|
47490
|
-
|
|
47491
|
-
|
|
47492
|
-
|
|
47472
|
+
await this.transactionSearchService.searchTransactions();
|
|
47473
|
+
}
|
|
47474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionSearchComponent, deps: [{ token: IconCacheService }, { token: TransactionSearchService }], target: i0.ɵɵFactoryTarget.Component });
|
|
47475
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: DialogTransactionSearchComponent, isStandalone: false, selector: "co-dialog-transaction-search", inputs: { relation: "relation" }, outputs: { filterIconClick: "filterIconClick", closeClick: "closeClick", lineClicked: "lineClicked" }, host: { properties: { "class.co-dialog-transaction-search": "this.showClass" } }, ngImport: i0, template: `
|
|
47476
|
+
<co-dialog (closeClick)="closeClick.emit()" >
|
|
47477
|
+
|
|
47478
|
+
<div class="search-wrapper">
|
|
47479
|
+
<co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
|
|
47480
|
+
<div class="search-content">
|
|
47481
|
+
<ng-container>
|
|
47482
|
+
@if (showFilters) {
|
|
47483
|
+
<div class="search-filter-panel narrow-scrollbar" >
|
|
47484
|
+
<co-transaction-filter></co-transaction-filter>
|
|
47485
|
+
</div>
|
|
47486
|
+
}
|
|
47487
|
+
<div class="search-result-content">
|
|
47488
|
+
@for (transaction of transactionSearchService.transactions; track transaction) {
|
|
47489
|
+
<div class="transaction-tile">
|
|
47490
|
+
<co-transaction-search-sales-line-select-tile
|
|
47491
|
+
[transaction]="transaction"
|
|
47492
|
+
[filterOnlyAllocated]="true"
|
|
47493
|
+
(lineClicked)="transLineClicked($event)">
|
|
47494
|
+
</co-transaction-search-sales-line-select-tile>
|
|
47495
|
+
</div>
|
|
47496
|
+
}
|
|
47497
|
+
</div>
|
|
47498
|
+
</ng-container>
|
|
47499
|
+
</div>
|
|
47500
|
+
</div>
|
|
47501
|
+
</co-dialog>
|
|
47502
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.CoDialogComponent, selector: "co-dialog", inputs: ["customCssClass", "headerTemplate", "footerTemplate", "showCloseIcon", "modal", "borderless"], outputs: ["closeClick"] }, { kind: "component", type: TransactionSearchHeaderComponent, selector: "co-transaction-search-header", inputs: ["placeholder"], outputs: ["filterIconClick"] }, { kind: "component", type: TransactionFilterComponent, selector: "co-transaction-filter", outputs: ["totalActiveFiltersChange"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal", "filterOnlyAllocated"], outputs: ["lineClicked", "transactionClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
47493
47503
|
}
|
|
47494
47504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DialogTransactionSearchComponent, decorators: [{
|
|
47495
47505
|
type: Component,
|
|
47496
47506
|
args: [{
|
|
47497
47507
|
selector: "co-dialog-transaction-search",
|
|
47498
|
-
template: `
|
|
47499
|
-
<co-dialog (closeClick)="closeClick.emit()" >
|
|
47500
|
-
|
|
47501
|
-
<div class="search-wrapper">
|
|
47502
|
-
<co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
|
|
47503
|
-
<div class="search-content">
|
|
47504
|
-
<ng-container>
|
|
47505
|
-
@if (showFilters) {
|
|
47506
|
-
<div class="search-filter-panel narrow-scrollbar" >
|
|
47507
|
-
<co-transaction-filter></co-transaction-filter>
|
|
47508
|
-
</div>
|
|
47509
|
-
}
|
|
47510
|
-
<div class="search-result-content">
|
|
47511
|
-
@for (transaction of transactionSearchService.transactions; track transaction) {
|
|
47512
|
-
<div class="transaction-tile">
|
|
47513
|
-
<co-transaction-search-sales-line-select-tile
|
|
47514
|
-
[transaction]="transaction"
|
|
47515
|
-
|
|
47516
|
-
|
|
47517
|
-
|
|
47518
|
-
|
|
47519
|
-
|
|
47520
|
-
|
|
47521
|
-
|
|
47522
|
-
|
|
47508
|
+
template: `
|
|
47509
|
+
<co-dialog (closeClick)="closeClick.emit()" >
|
|
47510
|
+
|
|
47511
|
+
<div class="search-wrapper">
|
|
47512
|
+
<co-transaction-search-header (filterIconClick)="onFilterButtonClick()"></co-transaction-search-header>
|
|
47513
|
+
<div class="search-content">
|
|
47514
|
+
<ng-container>
|
|
47515
|
+
@if (showFilters) {
|
|
47516
|
+
<div class="search-filter-panel narrow-scrollbar" >
|
|
47517
|
+
<co-transaction-filter></co-transaction-filter>
|
|
47518
|
+
</div>
|
|
47519
|
+
}
|
|
47520
|
+
<div class="search-result-content">
|
|
47521
|
+
@for (transaction of transactionSearchService.transactions; track transaction) {
|
|
47522
|
+
<div class="transaction-tile">
|
|
47523
|
+
<co-transaction-search-sales-line-select-tile
|
|
47524
|
+
[transaction]="transaction"
|
|
47525
|
+
[filterOnlyAllocated]="true"
|
|
47526
|
+
(lineClicked)="transLineClicked($event)">
|
|
47527
|
+
</co-transaction-search-sales-line-select-tile>
|
|
47528
|
+
</div>
|
|
47529
|
+
}
|
|
47530
|
+
</div>
|
|
47531
|
+
</ng-container>
|
|
47532
|
+
</div>
|
|
47533
|
+
</div>
|
|
47534
|
+
</co-dialog>
|
|
47523
47535
|
`,
|
|
47524
47536
|
encapsulation: ViewEncapsulation.None,
|
|
47525
47537
|
standalone: false
|
|
47526
47538
|
}]
|
|
47527
|
-
}], ctorParameters: () => [{ type:
|
|
47528
|
-
type: Input
|
|
47529
|
-
}], relation: [{
|
|
47539
|
+
}], ctorParameters: () => [{ type: IconCacheService }, { type: TransactionSearchService }], propDecorators: { relation: [{
|
|
47530
47540
|
type: Input
|
|
47531
47541
|
}], filterIconClick: [{
|
|
47532
47542
|
type: Output
|
|
@@ -73181,7 +73191,7 @@ class TransactionSearchResultComponent {
|
|
|
73181
73191
|
(close)="showBatchProcessDialog = false">
|
|
73182
73192
|
</co-batch-process-dialog>
|
|
73183
73193
|
}
|
|
73184
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TransactionSearchGridComponent, selector: "co-transaction-search-grid", inputs: ["showCheckbox"], outputs: ["transactionClick"] }, { kind: "component", type: TransactionSearchTileComponent, selector: "co-transaction-search-tile", inputs: ["showCheckbox", "selected", "transaction"], outputs: ["transactionClick", "selectedClick"] }, { kind: "component", type: i1$1.PaginationBarComponent, selector: "co-pagination-bar", inputs: ["directionLinks", "previousLabel", "nextLabel", "currentPage", "itemsPerPage", "totalItems", "paginationRange", "autoHide"], outputs: ["previousClick", "nextClick", "pageClick"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: ShippingMethodDialogComponent, selector: "co-shipping-method-dialog", inputs: ["category", "selectedTransactions"], outputs: ["saveClicked", "cancelClicked"] }, { kind: "component", type: BatchProcessDialogComponent, selector: "co-batch-process-dialog", inputs: ["batchJobProgress"], outputs: ["close"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal"], outputs: ["lineClicked", "transactionClick"] }, { kind: "component", type: TransactionContainerComponent, selector: "co-transaction-container", inputs: ["fullscreen"], outputs: ["containerChoiceMade", "containerContentModeChanged", "fillContainerClicked", "removeFromContainerClicked"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], animations: [
|
|
73194
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: TransactionSearchGridComponent, selector: "co-transaction-search-grid", inputs: ["showCheckbox"], outputs: ["transactionClick"] }, { kind: "component", type: TransactionSearchTileComponent, selector: "co-transaction-search-tile", inputs: ["showCheckbox", "selected", "transaction"], outputs: ["transactionClick", "selectedClick"] }, { kind: "component", type: i1$1.PaginationBarComponent, selector: "co-pagination-bar", inputs: ["directionLinks", "previousLabel", "nextLabel", "currentPage", "itemsPerPage", "totalItems", "paginationRange", "autoHide"], outputs: ["previousClick", "nextClick", "pageClick"] }, { kind: "component", type: i1$1.InputCheckboxComponent, selector: "co-input-checkbox", inputs: ["cssClass", "clickableLabel"], outputs: ["modelChange"] }, { kind: "component", type: QuickSendButtonComponent, selector: "co-quick-send-button", inputs: ["title", "icon", "defaultMethodIcon", "showSendMethodIcon", "showSendMethodDialogIcon", "showLoader", "disabled"], outputs: ["openSendMethodDialog", "sendIconClicked"] }, { kind: "component", type: ShippingMethodDialogComponent, selector: "co-shipping-method-dialog", inputs: ["category", "selectedTransactions"], outputs: ["saveClicked", "cancelClicked"] }, { kind: "component", type: BatchProcessDialogComponent, selector: "co-batch-process-dialog", inputs: ["batchJobProgress"], outputs: ["close"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal", "filterOnlyAllocated"], outputs: ["lineClicked", "transactionClick"] }, { kind: "component", type: TransactionContainerComponent, selector: "co-transaction-container", inputs: ["fullscreen"], outputs: ["containerChoiceMade", "containerContentModeChanged", "fillContainerClicked", "removeFromContainerClicked"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], animations: [
|
|
73185
73195
|
trigger('fadeInOut', [
|
|
73186
73196
|
transition(':enter', [
|
|
73187
73197
|
style({ opacity: 0 }),
|
|
@@ -110596,6 +110606,7 @@ class ServiceWizardSearchBundleComponent {
|
|
|
110596
110606
|
placeholder;
|
|
110597
110607
|
set relation(value) {
|
|
110598
110608
|
this.transactionSearchService.searchRequest.relationNrTr = Number(value.relationNumber);
|
|
110609
|
+
this.transactionSearchService.searchRequest.quantityAllocated = [2, 3];
|
|
110599
110610
|
}
|
|
110600
110611
|
filterIconClick = new EventEmitter();
|
|
110601
110612
|
closeClick = new EventEmitter();
|
|
@@ -110641,6 +110652,7 @@ class ServiceWizardSearchBundleComponent {
|
|
|
110641
110652
|
<div class="transaction-tile" [classList]="transaction.transDate">
|
|
110642
110653
|
<co-transaction-search-sales-line-select-tile
|
|
110643
110654
|
[transaction]="transaction"
|
|
110655
|
+
[filterOnlyAllocated]="true"
|
|
110644
110656
|
[customerPortal]="true"
|
|
110645
110657
|
(lineClicked)="transLineClicked($event)">
|
|
110646
110658
|
</co-transaction-search-sales-line-select-tile>
|
|
@@ -110653,7 +110665,7 @@ class ServiceWizardSearchBundleComponent {
|
|
|
110653
110665
|
}
|
|
110654
110666
|
|
|
110655
110667
|
</div>
|
|
110656
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal"], outputs: ["lineClicked", "transactionClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
110668
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { kind: "component", type: TransactionSearchSalesLineSelectTileComponent, selector: "co-transaction-search-sales-line-select-tile", inputs: ["extendedTransactionSearch", "returnWizardLayout", "customerPortal", "filterOnlyAllocated"], outputs: ["lineClicked", "transactionClick"] }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
110657
110669
|
}
|
|
110658
110670
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardSearchBundleComponent, decorators: [{
|
|
110659
110671
|
type: Component,
|
|
@@ -110667,6 +110679,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
110667
110679
|
<div class="transaction-tile" [classList]="transaction.transDate">
|
|
110668
110680
|
<co-transaction-search-sales-line-select-tile
|
|
110669
110681
|
[transaction]="transaction"
|
|
110682
|
+
[filterOnlyAllocated]="true"
|
|
110670
110683
|
[customerPortal]="true"
|
|
110671
110684
|
(lineClicked)="transLineClicked($event)">
|
|
110672
110685
|
</co-transaction-search-sales-line-select-tile>
|
|
@@ -110759,6 +110772,7 @@ class ServiceWizardArtOrTransComponent {
|
|
|
110759
110772
|
//Private variables for creating a service from a sales transaction
|
|
110760
110773
|
_chosenTransactionLine;
|
|
110761
110774
|
_existingTransaction;
|
|
110775
|
+
_subs = [];
|
|
110762
110776
|
constructor(formMasterService, dictionaryService, transactionService, transactionSearchService, imageService) {
|
|
110763
110777
|
this.formMasterService = formMasterService;
|
|
110764
110778
|
this.dictionaryService = dictionaryService;
|
|
@@ -110772,6 +110786,9 @@ class ServiceWizardArtOrTransComponent {
|
|
|
110772
110786
|
this.openTransactionPopUp();
|
|
110773
110787
|
}
|
|
110774
110788
|
}
|
|
110789
|
+
ngOnDestroy() {
|
|
110790
|
+
this._subs.forEach(s => s.unsubscribe());
|
|
110791
|
+
}
|
|
110775
110792
|
submit() {
|
|
110776
110793
|
return this.formMasterService.submitSlaves();
|
|
110777
110794
|
}
|
|
@@ -110867,8 +110884,7 @@ class ServiceWizardArtOrTransComponent {
|
|
|
110867
110884
|
}
|
|
110868
110885
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardArtOrTransComponent, deps: [{ token: i1$1.FormMasterService }, { token: DictionaryService }, { token: TransactionService }, { token: TransactionSearchService }, { token: TransactionImageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
110869
110886
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ServiceWizardArtOrTransComponent, isStandalone: false, selector: "co-service-wizard-art-or-trans", inputs: { forceReadonly: "forceReadonly", relation: "relation", oldOrderId: "oldOrderId", oldGoodId: "oldGoodId", customerPortal: "customerPortal", existingTransaction: "existingTransaction", existingTransactionLine: "existingTransactionLine", buttonsVisible: "buttonsVisible" }, outputs: { transLineChosen: "transLineChosen", articleChosen: "articleChosen", oldOrderIdChange: "oldOrderIdChange", oldGoodIdChange: "oldGoodIdChange", resetServiceWizard: "resetServiceWizard" }, host: { properties: { "class.co-transaction-header-popup-create-service": "this.showClass" } }, providers: [
|
|
110870
|
-
FormMasterService
|
|
110871
|
-
TransactionSearchService
|
|
110887
|
+
FormMasterService
|
|
110872
110888
|
], ngImport: i0, template: `
|
|
110873
110889
|
@if (!customerPortal) {
|
|
110874
110890
|
<div class="transaction-header-popup-category-wrapper co-small-scrollbar">
|
|
@@ -110943,7 +110959,7 @@ class ServiceWizardArtOrTransComponent {
|
|
|
110943
110959
|
}
|
|
110944
110960
|
@if (showTransLinePopup) {
|
|
110945
110961
|
<co-dialog-transaction-search
|
|
110946
|
-
[relation]="
|
|
110962
|
+
[relation]="relation"
|
|
110947
110963
|
(lineClicked)="handleTransactionLineClick($event)"
|
|
110948
110964
|
(closeClick)="closeTransactionPopup()">
|
|
110949
110965
|
</co-dialog-transaction-search>
|
|
@@ -110982,7 +110998,7 @@ class ServiceWizardArtOrTransComponent {
|
|
|
110982
110998
|
</co-form>
|
|
110983
110999
|
</div>
|
|
110984
111000
|
}
|
|
110985
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { 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: DialogTransactionSearchComponent, selector: "co-dialog-transaction-search", inputs: ["
|
|
111001
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.ButtonComponent, selector: "co-button", inputs: ["label", "iconData", "iconDataRight", "isToggleButton", "isToggled", "hidden", "disabled"], outputs: ["onClick", "clickedWhileDisabled", "isToggledChange"] }, { 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: DialogTransactionSearchComponent, selector: "co-dialog-transaction-search", inputs: ["relation"], outputs: ["filterIconClick", "closeClick", "lineClicked"] }, { kind: "component", type: ImageDisplayComponent, selector: "co-image-display", inputs: ["model", "label"] }, { kind: "component", type: i1$1.FormComponent, selector: "co-form", inputs: ["readonly", "keepInView"], outputs: ["onChange", "validSubmit", "anySubmit", "validityChange", "readonlyChange", "invalidSubmit"] }, { kind: "component", type: DialogCatalogComponent, selector: "co-dialog-catalog", inputs: ["handleAddArticleInternally", "options", "parameters", "showNavigation", "showPresets", "returnArticleOnTileClick", "transaction", "isReturn", "showRelatedProductsPopup", "searchPresetsCatalogTemplate"], outputs: ["closeClick", "articleClicked", "iFrameFeedback", "addArticleClicked", "addCatFarmArticleClicked", "addExternalArticleClicked"] }, { kind: "component", type: ServiceWizardSearchBundleComponent, selector: "service-wizard-search-bundle", inputs: ["placeholder", "relation"], outputs: ["filterIconClick", "closeClick", "lineClicked"] }, { kind: "pipe", type: i2$1.CurrencyPipe, name: "currency" }, { kind: "pipe", type: LocalizePipe, name: "localize" }], encapsulation: i0.ViewEncapsulation.None });
|
|
110986
111002
|
}
|
|
110987
111003
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardArtOrTransComponent, decorators: [{
|
|
110988
111004
|
type: Component,
|
|
@@ -111062,7 +111078,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
111062
111078
|
}
|
|
111063
111079
|
@if (showTransLinePopup) {
|
|
111064
111080
|
<co-dialog-transaction-search
|
|
111065
|
-
[relation]="
|
|
111081
|
+
[relation]="relation"
|
|
111066
111082
|
(lineClicked)="handleTransactionLineClick($event)"
|
|
111067
111083
|
(closeClick)="closeTransactionPopup()">
|
|
111068
111084
|
</co-dialog-transaction-search>
|
|
@@ -111103,8 +111119,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
111103
111119
|
}
|
|
111104
111120
|
`,
|
|
111105
111121
|
providers: [
|
|
111106
|
-
FormMasterService
|
|
111107
|
-
TransactionSearchService
|
|
111122
|
+
FormMasterService
|
|
111108
111123
|
],
|
|
111109
111124
|
encapsulation: ViewEncapsulation.None,
|
|
111110
111125
|
standalone: false
|
|
@@ -111140,7 +111155,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
111140
111155
|
type: Output
|
|
111141
111156
|
}] } });
|
|
111142
111157
|
|
|
111158
|
+
;
|
|
111143
111159
|
class ServiceWizardCreateServiceComponent {
|
|
111160
|
+
transactionSettingsService;
|
|
111144
111161
|
dictionaryService;
|
|
111145
111162
|
transactionService;
|
|
111146
111163
|
imageService;
|
|
@@ -111162,7 +111179,8 @@ class ServiceWizardCreateServiceComponent {
|
|
|
111162
111179
|
slaProductName;
|
|
111163
111180
|
oldOrderId = "";
|
|
111164
111181
|
oldGoodId = "";
|
|
111165
|
-
constructor(dictionaryService, transactionService, imageService) {
|
|
111182
|
+
constructor(transactionSettingsService, dictionaryService, transactionService, imageService) {
|
|
111183
|
+
this.transactionSettingsService = transactionSettingsService;
|
|
111166
111184
|
this.dictionaryService = dictionaryService;
|
|
111167
111185
|
this.transactionService = transactionService;
|
|
111168
111186
|
this.imageService = imageService;
|
|
@@ -111201,10 +111219,8 @@ class ServiceWizardCreateServiceComponent {
|
|
|
111201
111219
|
this.portalLineSelected.emit(false);
|
|
111202
111220
|
this.resetServiceWizard.emit();
|
|
111203
111221
|
}
|
|
111204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardCreateServiceComponent, deps: [{ token: DictionaryService }, { token: TransactionService }, { token: TransactionImageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
111205
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ServiceWizardCreateServiceComponent, isStandalone: false, selector: "co-service-wizard-create-service", inputs: { forceReadonly: "forceReadonly", relation: "relation", afterSalesSystem: "afterSalesSystem", existingTransaction: "existingTransaction", existingTransactionLine: "existingTransactionLine", buttonsVisible: "buttonsVisible", customerPortal: "customerPortal" }, outputs: { slaBtnSelected: "slaBtnSelected", portalLineSelected: "portalLineSelected", resetServiceWizard: "resetServiceWizard" }, host: { properties: { "class.co-transaction-header-popup-create-service": "this.showClass" } },
|
|
111206
|
-
TransactionSearchService
|
|
111207
|
-
], ngImport: i0, template: `
|
|
111222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ServiceWizardCreateServiceComponent, deps: [{ token: TransactionSettingsService }, { token: DictionaryService }, { token: TransactionService }, { token: TransactionImageService }], target: i0.ɵɵFactoryTarget.Component });
|
|
111223
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: ServiceWizardCreateServiceComponent, isStandalone: false, selector: "co-service-wizard-create-service", inputs: { forceReadonly: "forceReadonly", relation: "relation", afterSalesSystem: "afterSalesSystem", existingTransaction: "existingTransaction", existingTransactionLine: "existingTransactionLine", buttonsVisible: "buttonsVisible", customerPortal: "customerPortal" }, outputs: { slaBtnSelected: "slaBtnSelected", portalLineSelected: "portalLineSelected", resetServiceWizard: "resetServiceWizard" }, host: { properties: { "class.co-transaction-header-popup-create-service": "this.showClass" } }, ngImport: i0, template: `
|
|
111208
111224
|
<div class="transaction-header-popup-category-wrapper co-small-scrollbar">
|
|
111209
111225
|
@if (!afterSalesSystem) {
|
|
111210
111226
|
<co-service-wizard-art-or-trans
|
|
@@ -111251,13 +111267,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
111251
111267
|
}
|
|
111252
111268
|
</div>
|
|
111253
111269
|
`,
|
|
111254
|
-
providers: [
|
|
111255
|
-
TransactionSearchService
|
|
111256
|
-
],
|
|
111257
111270
|
encapsulation: ViewEncapsulation.None,
|
|
111258
111271
|
standalone: false
|
|
111259
111272
|
}]
|
|
111260
|
-
}], ctorParameters: () => [{ type: DictionaryService }, { type: TransactionService }, { type: TransactionImageService }], propDecorators: { showClass: [{
|
|
111273
|
+
}], ctorParameters: () => [{ type: TransactionSettingsService }, { type: DictionaryService }, { type: TransactionService }, { type: TransactionImageService }], propDecorators: { showClass: [{
|
|
111261
111274
|
type: HostBinding,
|
|
111262
111275
|
args: ['class.co-transaction-header-popup-create-service']
|
|
111263
111276
|
}], forceReadonly: [{
|
|
@@ -111403,6 +111416,7 @@ class TransactionCreateWizardComponent {
|
|
|
111403
111416
|
transactionScreenConfigurationService;
|
|
111404
111417
|
_dialogService;
|
|
111405
111418
|
_headerService;
|
|
111419
|
+
_transactionSettingsService;
|
|
111406
111420
|
transKind = TransactionKind;
|
|
111407
111421
|
Icon = Icon;
|
|
111408
111422
|
stepper;
|
|
@@ -111414,6 +111428,7 @@ class TransactionCreateWizardComponent {
|
|
|
111414
111428
|
wizardSection;
|
|
111415
111429
|
stepServiceFieldsSection;
|
|
111416
111430
|
serviceFieldsSection;
|
|
111431
|
+
settings;
|
|
111417
111432
|
set externallyProvidedTransaction(transaction) {
|
|
111418
111433
|
this._externallyProvidedTransaction = transaction;
|
|
111419
111434
|
}
|
|
@@ -111451,20 +111466,27 @@ class TransactionCreateWizardComponent {
|
|
|
111451
111466
|
_externallyProvidedCustomer = null;
|
|
111452
111467
|
_externallyProvidedContactPerson = null;
|
|
111453
111468
|
_subs = [];
|
|
111454
|
-
constructor(createService, relationService, transactionService, transactionScreenConfigurationService, _dialogService, _headerService) {
|
|
111469
|
+
constructor(createService, relationService, transactionService, transactionScreenConfigurationService, _dialogService, _headerService, _transactionSettingsService) {
|
|
111455
111470
|
this.createService = createService;
|
|
111456
111471
|
this.relationService = relationService;
|
|
111457
111472
|
this.transactionService = transactionService;
|
|
111458
111473
|
this.transactionScreenConfigurationService = transactionScreenConfigurationService;
|
|
111459
111474
|
this._dialogService = _dialogService;
|
|
111460
111475
|
this._headerService = _headerService;
|
|
111476
|
+
this._transactionSettingsService = _transactionSettingsService;
|
|
111461
111477
|
}
|
|
111462
111478
|
async ngOnInit() {
|
|
111463
111479
|
this._subs.push(this.createService.transactionUpdated.subscribe((transaction) => {
|
|
111464
111480
|
if (transaction) {
|
|
111465
111481
|
this._headerService.transaction = transaction;
|
|
111466
111482
|
}
|
|
111483
|
+
}), this._transactionSettingsService.settingsInitialized.subscribe((initialized) => {
|
|
111484
|
+
if (initialized) {
|
|
111485
|
+
this._transactionSettingsService.settings.tempTransactionParameters = undefined;
|
|
111486
|
+
this._transactionSettingsService.settings.transactionParameters.quantityAllocated = [2, 3];
|
|
111487
|
+
}
|
|
111467
111488
|
}));
|
|
111489
|
+
await this.createService.init(this.settings);
|
|
111468
111490
|
await this.createService.prepareAfterSalesSystemParam();
|
|
111469
111491
|
await this.transactionScreenConfigurationService.loadConfig(['S']);
|
|
111470
111492
|
this.createService.transactionKind = this.transactionType;
|
|
@@ -111627,8 +111649,14 @@ class TransactionCreateWizardComponent {
|
|
|
111627
111649
|
this.openStep = 2;
|
|
111628
111650
|
}
|
|
111629
111651
|
}
|
|
111630
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCreateWizardComponent, deps: [{ token: TransactionCreateService }, { token: TransactionRelationService }, { token: TransactionService }, { token: TransactionScreenConfigurationService }, { token: TransactionDialogService }, { token: TransactionHeaderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
111631
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionCreateWizardComponent, isStandalone: false, selector: "co-transaction-create-wizard", inputs: { externallyProvidedTransaction: "externallyProvidedTransaction", externallyProvidedLineNr: "externallyProvidedLineNr", externallyProvidedCustomer: "externallyProvidedCustomer", externallyProvidedContactPerson: "externallyProvidedContactPerson", branch: "branch", customerPortal: "customerPortal" }, outputs: { transactionFinished: "transactionFinished" }, host: { properties: { "class.co-transaction-create-wizard": "this.showClass" } }, providers: [
|
|
111652
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TransactionCreateWizardComponent, deps: [{ token: TransactionCreateService }, { token: TransactionRelationService }, { token: TransactionService }, { token: TransactionScreenConfigurationService }, { token: TransactionDialogService }, { token: TransactionHeaderService }, { token: TransactionSettingsService }], target: i0.ɵɵFactoryTarget.Component });
|
|
111653
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: TransactionCreateWizardComponent, isStandalone: false, selector: "co-transaction-create-wizard", inputs: { settings: "settings", externallyProvidedTransaction: "externallyProvidedTransaction", externallyProvidedLineNr: "externallyProvidedLineNr", externallyProvidedCustomer: "externallyProvidedCustomer", externallyProvidedContactPerson: "externallyProvidedContactPerson", branch: "branch", customerPortal: "customerPortal" }, outputs: { transactionFinished: "transactionFinished" }, host: { properties: { "class.co-transaction-create-wizard": "this.showClass" } }, providers: [
|
|
111654
|
+
TransactionCreateService,
|
|
111655
|
+
TransactionSettingsService,
|
|
111656
|
+
TransactionConnectorService,
|
|
111657
|
+
TransactionSearchService,
|
|
111658
|
+
TransactionHeaderService
|
|
111659
|
+
], viewQueries: [{ propertyName: "stepper", first: true, predicate: ["stepper"], descendants: true }, { propertyName: "stepRelationSection", first: true, predicate: ["stepRelationSection"], descendants: true }, { propertyName: "relationSection", first: true, predicate: ["relationSection"], descendants: true }, { propertyName: "stepTransactionSection", first: true, predicate: ["stepTransactionSection"], descendants: true }, { propertyName: "transactionSection", first: true, predicate: ["transactionSection"], descendants: true }, { propertyName: "stepWizardSection", first: true, predicate: ["stepWizardSection"], descendants: true }, { propertyName: "wizardSection", first: true, predicate: ["wizardSection"], descendants: true }, { propertyName: "stepServiceFieldsSection", first: true, predicate: ["stepServiceFieldsSection"], descendants: true }, { propertyName: "serviceFieldsSection", first: true, predicate: ["serviceFieldsSection"], descendants: true }], ngImport: i0, template: `
|
|
111632
111660
|
<co-click-block></co-click-block>
|
|
111633
111661
|
@if (isReady) {
|
|
111634
111662
|
<co-simple-vertical-stepper [stepButtonLabels]="['Volgende', 'Volgende', 'Volgende', 'Afronden', 'Afronden']"
|
|
@@ -111727,11 +111755,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
111727
111755
|
}
|
|
111728
111756
|
|
|
111729
111757
|
`,
|
|
111730
|
-
providers: [
|
|
111758
|
+
providers: [
|
|
111759
|
+
TransactionCreateService,
|
|
111760
|
+
TransactionSettingsService,
|
|
111761
|
+
TransactionConnectorService,
|
|
111762
|
+
TransactionSearchService,
|
|
111763
|
+
TransactionHeaderService
|
|
111764
|
+
],
|
|
111731
111765
|
encapsulation: ViewEncapsulation.None,
|
|
111732
111766
|
standalone: false
|
|
111733
111767
|
}]
|
|
111734
|
-
}], ctorParameters: () => [{ type: TransactionCreateService }, { type: TransactionRelationService }, { type: TransactionService }, { type: TransactionScreenConfigurationService }, { type: TransactionDialogService }, { type: TransactionHeaderService }], propDecorators: { stepper: [{
|
|
111768
|
+
}], ctorParameters: () => [{ type: TransactionCreateService }, { type: TransactionRelationService }, { type: TransactionService }, { type: TransactionScreenConfigurationService }, { type: TransactionDialogService }, { type: TransactionHeaderService }, { type: TransactionSettingsService }], propDecorators: { stepper: [{
|
|
111735
111769
|
type: ViewChild,
|
|
111736
111770
|
args: ["stepper"]
|
|
111737
111771
|
}], stepRelationSection: [{
|
|
@@ -111758,6 +111792,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
111758
111792
|
}], serviceFieldsSection: [{
|
|
111759
111793
|
type: ViewChild,
|
|
111760
111794
|
args: ["serviceFieldsSection"]
|
|
111795
|
+
}], settings: [{
|
|
111796
|
+
type: Input
|
|
111761
111797
|
}], externallyProvidedTransaction: [{
|
|
111762
111798
|
type: Input
|
|
111763
111799
|
}], externallyProvidedLineNr: [{
|