@colijnit/transaction 12.1.43 → 12.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-transaction.umd.js +158 -158
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/transaction-search/service/transaction-search.service.js +25 -1
- package/esm2015/lib/component/transaction-search/transaction-search.component.js +34 -56
- package/esm2015/lib/service/pending-reason.service.js +4 -5
- package/esm2015/lib/service/transaction.service.js +5 -2
- package/fesm2015/colijnit-transaction.js +165 -163
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/transaction-search/service/transaction-search.service.d.ts +10 -0
- package/lib/component/transaction-search/transaction-search.component.d.ts +2 -10
- package/package.json +1 -1
- package/colijnit-transaction-12.1.43.tgz +0 -0
|
@@ -6303,39 +6303,36 @@
|
|
|
6303
6303
|
switch (_a) {
|
|
6304
6304
|
case pendingReasonType_enum.PendingReasonType.ABORTED: return [3 /*break*/, 1];
|
|
6305
6305
|
case pendingReasonType_enum.PendingReasonType.CANCELLED: return [3 /*break*/, 1];
|
|
6306
|
-
case pendingReasonType_enum.PendingReasonType.CONFIRMATION_NEEDED: return [3 /*break*/,
|
|
6307
|
-
case pendingReasonType_enum.PendingReasonType.INVALID_LOGISTICS: return [3 /*break*/,
|
|
6308
|
-
case pendingReasonType_enum.PendingReasonType.NON_CRITICAL_DISCONTINUATION: return [3 /*break*/,
|
|
6309
|
-
case pendingReasonType_enum.PendingReasonType.CHARACTERISTICS_ANSWER_NEEDED: return [3 /*break*/,
|
|
6310
|
-
case pendingReasonType_enum.PendingReasonType.NONE: return [3 /*break*/,
|
|
6306
|
+
case pendingReasonType_enum.PendingReasonType.CONFIRMATION_NEEDED: return [3 /*break*/, 2];
|
|
6307
|
+
case pendingReasonType_enum.PendingReasonType.INVALID_LOGISTICS: return [3 /*break*/, 4];
|
|
6308
|
+
case pendingReasonType_enum.PendingReasonType.NON_CRITICAL_DISCONTINUATION: return [3 /*break*/, 6];
|
|
6309
|
+
case pendingReasonType_enum.PendingReasonType.CHARACTERISTICS_ANSWER_NEEDED: return [3 /*break*/, 7];
|
|
6310
|
+
case pendingReasonType_enum.PendingReasonType.NONE: return [3 /*break*/, 8];
|
|
6311
6311
|
}
|
|
6312
|
-
return [3 /*break*/,
|
|
6312
|
+
return [3 /*break*/, 8];
|
|
6313
6313
|
case 1:
|
|
6314
|
-
if (
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6318
|
-
|
|
6314
|
+
if (operationStatus.pendingReason !== 'USER_DECISION') {
|
|
6315
|
+
// await this._cancelArticle(operationStatus.uuid);
|
|
6316
|
+
// } else {
|
|
6317
|
+
this._showReasonDialog(operationStatus.pendingReason);
|
|
6318
|
+
}
|
|
6319
|
+
return [2 /*return*/, false];
|
|
6320
|
+
case 2: return [4 /*yield*/, this._confirmAction(transactionLine.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType)];
|
|
6319
6321
|
case 3:
|
|
6320
|
-
this._showReasonDialog(operationStatus.pendingReason);
|
|
6321
|
-
_b.label = 4;
|
|
6322
|
-
case 4: return [2 /*return*/, false];
|
|
6323
|
-
case 5: return [4 /*yield*/, this._confirmAction(transactionLine.uuid, operationStatus.pendingReason, operationStatus.pendingReasonType)];
|
|
6324
|
-
case 6:
|
|
6325
6322
|
_b.sent();
|
|
6326
6323
|
return [2 /*return*/, false];
|
|
6327
|
-
case
|
|
6328
|
-
case
|
|
6324
|
+
case 4: return [4 /*yield*/, this._showWarehouseCcDialog(operationStatus.uuid, transactionLine.amount, transactionLine.commissionCode, transactionLine.warehouseNumber, operationStatus.pendingReason, operationStatus.pendingReasonType)];
|
|
6325
|
+
case 5:
|
|
6329
6326
|
_b.sent();
|
|
6330
6327
|
return [2 /*return*/, true];
|
|
6331
|
-
case
|
|
6328
|
+
case 6:
|
|
6332
6329
|
this._showReasonDialog(operationStatus.pendingReason);
|
|
6333
|
-
return [3 /*break*/,
|
|
6334
|
-
case
|
|
6330
|
+
return [3 /*break*/, 9];
|
|
6331
|
+
case 7:
|
|
6335
6332
|
this._showCharacteristicDialog(operationStatus.uuid, operationStatus.characteristic, operationStatus.pendingReason, operationStatus.pendingReasonType);
|
|
6336
|
-
return [3 /*break*/,
|
|
6337
|
-
case
|
|
6338
|
-
case
|
|
6333
|
+
return [3 /*break*/, 9];
|
|
6334
|
+
case 8: return [2 /*return*/, true];
|
|
6335
|
+
case 9: return [2 /*return*/];
|
|
6339
6336
|
}
|
|
6340
6337
|
});
|
|
6341
6338
|
});
|
|
@@ -7120,8 +7117,11 @@
|
|
|
7120
7117
|
case 3:
|
|
7121
7118
|
_b.relation = _c.sent();
|
|
7122
7119
|
_c.label = 4;
|
|
7123
|
-
case 4:
|
|
7120
|
+
case 4:
|
|
7121
|
+
if (!!this.currentTransaction.transactionInfo.relation) return [3 /*break*/, 6];
|
|
7122
|
+
return [4 /*yield*/, this.addRelationToTransaction(this.relation.relationId)];
|
|
7124
7123
|
case 5: return [2 /*return*/, _c.sent()];
|
|
7124
|
+
case 6: return [2 /*return*/, true];
|
|
7125
7125
|
}
|
|
7126
7126
|
});
|
|
7127
7127
|
});
|
|
@@ -16562,11 +16562,116 @@
|
|
|
16562
16562
|
SearchViewMode[SearchViewMode["SideBar"] = 1] = "SideBar";
|
|
16563
16563
|
})(SearchViewMode || (SearchViewMode = {}));
|
|
16564
16564
|
|
|
16565
|
+
exports.SearchBarViewMode = void 0;
|
|
16566
|
+
(function (SearchBarViewMode) {
|
|
16567
|
+
SearchBarViewMode[SearchBarViewMode["Expanded"] = 0] = "Expanded";
|
|
16568
|
+
SearchBarViewMode[SearchBarViewMode["Collapsed"] = 1] = "Collapsed";
|
|
16569
|
+
})(exports.SearchBarViewMode || (exports.SearchBarViewMode = {}));
|
|
16570
|
+
var TransactionSearchComponent = /** @class */ (function () {
|
|
16571
|
+
function TransactionSearchComponent(transactionSearchService) {
|
|
16572
|
+
this.transactionSearchService = transactionSearchService;
|
|
16573
|
+
this.searchViewModes = SearchViewMode;
|
|
16574
|
+
this.orientations = corecomponents_v12.CoOrientation;
|
|
16575
|
+
this.directionRight = corecomponents_v12.CoDirection.Right;
|
|
16576
|
+
this.transactionClick = new i0.EventEmitter();
|
|
16577
|
+
this.searchViewModeChange = new i0.EventEmitter();
|
|
16578
|
+
}
|
|
16579
|
+
Object.defineProperty(TransactionSearchComponent.prototype, "transactionType", {
|
|
16580
|
+
get: function () {
|
|
16581
|
+
return this._transactionType;
|
|
16582
|
+
},
|
|
16583
|
+
set: function (value) {
|
|
16584
|
+
this._transactionType = value;
|
|
16585
|
+
this.transactionSearchService.transactionType = this._transactionType;
|
|
16586
|
+
},
|
|
16587
|
+
enumerable: false,
|
|
16588
|
+
configurable: true
|
|
16589
|
+
});
|
|
16590
|
+
TransactionSearchComponent.prototype.showClass = function () {
|
|
16591
|
+
return true;
|
|
16592
|
+
};
|
|
16593
|
+
TransactionSearchComponent.prototype.onTransactionClick = function (transaction) {
|
|
16594
|
+
if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.FullScreen) {
|
|
16595
|
+
this.collapseSearchBar();
|
|
16596
|
+
}
|
|
16597
|
+
this._scrollToTop();
|
|
16598
|
+
this.transactionClick.emit(transaction);
|
|
16599
|
+
};
|
|
16600
|
+
TransactionSearchComponent.prototype.onSearchViewResizeClick = function () {
|
|
16601
|
+
if (this.transactionSearchService.activeSearchViewMode === this.searchViewModes.SideBar) {
|
|
16602
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
16603
|
+
}
|
|
16604
|
+
else {
|
|
16605
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
16606
|
+
}
|
|
16607
|
+
this.searchViewModeChange.emit(this.transactionSearchService.activeSearchViewMode);
|
|
16608
|
+
};
|
|
16609
|
+
TransactionSearchComponent.prototype.onSideCollapseHandleClick = function () {
|
|
16610
|
+
this.toggleSearchBar();
|
|
16611
|
+
};
|
|
16612
|
+
TransactionSearchComponent.prototype.toggleSearchBar = function () {
|
|
16613
|
+
if (this.transactionSearchService.collapsed || this.transactionSearchService.fullscreen) {
|
|
16614
|
+
this.expandSearchBar();
|
|
16615
|
+
}
|
|
16616
|
+
else {
|
|
16617
|
+
this.collapseSearchBar();
|
|
16618
|
+
}
|
|
16619
|
+
};
|
|
16620
|
+
TransactionSearchComponent.prototype.collapseSearchBar = function () {
|
|
16621
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
16622
|
+
this.transactionSearchService.activeSearchBarViewMode = exports.SearchBarViewMode.Collapsed;
|
|
16623
|
+
this.searchViewModeChange.emit(this.searchViewModes.SideBar);
|
|
16624
|
+
};
|
|
16625
|
+
TransactionSearchComponent.prototype.expandSearchBar = function () {
|
|
16626
|
+
this.transactionSearchService.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
16627
|
+
this.transactionSearchService.activeSearchBarViewMode = exports.SearchBarViewMode.Expanded;
|
|
16628
|
+
this.searchViewModeChange.emit(this.searchViewModes.SideBar);
|
|
16629
|
+
};
|
|
16630
|
+
TransactionSearchComponent.prototype.calculateClasses = function () {
|
|
16631
|
+
return {
|
|
16632
|
+
'fullscreen': this.transactionSearchService.fullscreen,
|
|
16633
|
+
'sidebar': !this.transactionSearchService.fullscreen,
|
|
16634
|
+
'collapsed': this.transactionSearchService.collapsed,
|
|
16635
|
+
'expanded': !this.transactionSearchService.collapsed,
|
|
16636
|
+
};
|
|
16637
|
+
};
|
|
16638
|
+
TransactionSearchComponent.prototype._scrollToTop = function () {
|
|
16639
|
+
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
16640
|
+
};
|
|
16641
|
+
return TransactionSearchComponent;
|
|
16642
|
+
}());
|
|
16643
|
+
TransactionSearchComponent.decorators = [
|
|
16644
|
+
{ type: i0.Component, args: [{
|
|
16645
|
+
selector: 'co-transaction-search',
|
|
16646
|
+
template: "\n <div class=\"transaction-search-main-wrapper\">\n <div class=\"transaction-search-wrapper\"\n [ngClass]=\"calculateClasses()\">\n <div class=\"transaction-filter-wrapper narrow-scrollbar\"\n [ngClass]=\"calculateClasses()\"\n *ngIf=\"transactionSearchService.showFilterSidebar\" @showHideFilterSidebar>\n <co-transaction-filter\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"transactionSearchService.activeSearchViewMode\"\n (closeButtonClick)=\"transactionSearchService.handleHideFilter()\"\n (resetFilterClick)=\"transactionSearchService.handleResetFilter()\"></co-transaction-filter>\n </div>\n <div class=\"transaction-search-result-wrapper\"\n [class.fullscreen]=\"transactionSearchService.fullscreen\"\n [class.sidebar]=\"!transactionSearchService.fullscreen\"\n [class.collapsed]=\"transactionSearchService.collapsed\"\n [class.expanded]=\"!transactionSearchService.collapsed\"\n >\n <co-transaction-search-result\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"transactionSearchService.activeSearchViewMode\"\n (filterClick)=\"transactionSearchService.toggleFilter()\"\n (transactionClick)=\"onTransactionClick($event)\"\n (resizeClick)=\"onSearchViewResizeClick()\"\n (closeClick)=\"collapseSearchBar()\"\n ></co-transaction-search-result>\n </div>\n </div>\n <div class=\"transaction-search-content-wrapper\"\n [class.fullscreen]=\"transactionSearchService.fullscreen\"\n [class.sidebar]=\"!transactionSearchService.fullscreen\"\n [class.collapsed]=\"transactionSearchService.collapsed\"\n [class.expanded]=\"!transactionSearchService.collapsed\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n ",
|
|
16647
|
+
animations: [
|
|
16648
|
+
animations.trigger("showHideFilterSidebar", [
|
|
16649
|
+
animations.state("void", animations.style({ transform: 'translateX(-100%)' })),
|
|
16650
|
+
animations.state("*", animations.style({ transform: 'translateX(0)' })),
|
|
16651
|
+
animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
|
|
16652
|
+
])
|
|
16653
|
+
],
|
|
16654
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
16655
|
+
},] }
|
|
16656
|
+
];
|
|
16657
|
+
TransactionSearchComponent.ctorParameters = function () { return [
|
|
16658
|
+
{ type: TransactionSearchService }
|
|
16659
|
+
]; };
|
|
16660
|
+
TransactionSearchComponent.propDecorators = {
|
|
16661
|
+
transactionType: [{ type: i0.Input }],
|
|
16662
|
+
transactionClick: [{ type: i0.Output }],
|
|
16663
|
+
searchViewModeChange: [{ type: i0.Output }],
|
|
16664
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
|
|
16665
|
+
};
|
|
16666
|
+
|
|
16565
16667
|
var TransactionSearchService = /** @class */ (function () {
|
|
16566
16668
|
function TransactionSearchService(_transactionService) {
|
|
16567
16669
|
this._transactionService = _transactionService;
|
|
16568
16670
|
this.searchRequest = new transactionSearchViewRequest.TransactionSearchViewRequest();
|
|
16569
16671
|
this.previousSearchRequest = new transactionSearchViewRequest.TransactionSearchViewRequest();
|
|
16672
|
+
this.activeSearchViewMode = SearchViewMode.FullScreen;
|
|
16673
|
+
this.activeSearchBarViewMode = exports.SearchBarViewMode.Expanded;
|
|
16674
|
+
this.showFilterSidebar = false;
|
|
16570
16675
|
this.transactions = [];
|
|
16571
16676
|
this.labelBasedOnTransactionType = new Map([
|
|
16572
16677
|
[transactionKind_enum.TransactionKind.SalesOrder, "SALESORDERS"],
|
|
@@ -16635,6 +16740,34 @@
|
|
|
16635
16740
|
TransactionSearchService.prototype.isNewGeneralSearch = function () {
|
|
16636
16741
|
return this.previousSearchRequest && this.previousSearchRequest.general !== this.searchRequest.general;
|
|
16637
16742
|
};
|
|
16743
|
+
Object.defineProperty(TransactionSearchService.prototype, "fullscreen", {
|
|
16744
|
+
get: function () {
|
|
16745
|
+
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
16746
|
+
},
|
|
16747
|
+
enumerable: false,
|
|
16748
|
+
configurable: true
|
|
16749
|
+
});
|
|
16750
|
+
Object.defineProperty(TransactionSearchService.prototype, "collapsed", {
|
|
16751
|
+
get: function () {
|
|
16752
|
+
return this.activeSearchBarViewMode === exports.SearchBarViewMode.Collapsed;
|
|
16753
|
+
},
|
|
16754
|
+
enumerable: false,
|
|
16755
|
+
configurable: true
|
|
16756
|
+
});
|
|
16757
|
+
TransactionSearchService.prototype.toggleFilter = function () {
|
|
16758
|
+
this.showFilterSidebar = !this.showFilterSidebar;
|
|
16759
|
+
};
|
|
16760
|
+
TransactionSearchService.prototype.handleHideFilter = function () {
|
|
16761
|
+
this.showFilterSidebar = false;
|
|
16762
|
+
};
|
|
16763
|
+
TransactionSearchService.prototype.handleResetFilter = function () {
|
|
16764
|
+
var _this = this;
|
|
16765
|
+
this.resetFilters();
|
|
16766
|
+
this.showFilterSidebar = false;
|
|
16767
|
+
setTimeout(function () {
|
|
16768
|
+
_this.showFilterSidebar = true;
|
|
16769
|
+
}, 10);
|
|
16770
|
+
};
|
|
16638
16771
|
return TransactionSearchService;
|
|
16639
16772
|
}());
|
|
16640
16773
|
TransactionSearchService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function TransactionSearchService_Factory() { return new TransactionSearchService(i0__namespace.ɵɵinject(TransactionService)); }, token: TransactionSearchService, providedIn: "root" });
|
|
@@ -18542,139 +18675,6 @@
|
|
|
18542
18675
|
},] }
|
|
18543
18676
|
];
|
|
18544
18677
|
|
|
18545
|
-
exports.SearchBarViewMode = void 0;
|
|
18546
|
-
(function (SearchBarViewMode) {
|
|
18547
|
-
SearchBarViewMode[SearchBarViewMode["Expanded"] = 0] = "Expanded";
|
|
18548
|
-
SearchBarViewMode[SearchBarViewMode["Collapsed"] = 1] = "Collapsed";
|
|
18549
|
-
})(exports.SearchBarViewMode || (exports.SearchBarViewMode = {}));
|
|
18550
|
-
var TransactionSearchComponent = /** @class */ (function () {
|
|
18551
|
-
function TransactionSearchComponent(_transactionSearchService) {
|
|
18552
|
-
this._transactionSearchService = _transactionSearchService;
|
|
18553
|
-
this.searchViewModes = SearchViewMode;
|
|
18554
|
-
this.orientations = corecomponents_v12.CoOrientation;
|
|
18555
|
-
this.directionRight = corecomponents_v12.CoDirection.Right;
|
|
18556
|
-
this.activeSearchViewMode = SearchViewMode.FullScreen;
|
|
18557
|
-
this.activeSearchBarViewMode = exports.SearchBarViewMode.Expanded;
|
|
18558
|
-
this.showFilterSidebar = false;
|
|
18559
|
-
this.transactionClick = new i0.EventEmitter();
|
|
18560
|
-
this.searchViewModeChange = new i0.EventEmitter();
|
|
18561
|
-
}
|
|
18562
|
-
Object.defineProperty(TransactionSearchComponent.prototype, "transactionType", {
|
|
18563
|
-
get: function () {
|
|
18564
|
-
return this._transactionType;
|
|
18565
|
-
},
|
|
18566
|
-
set: function (value) {
|
|
18567
|
-
this._transactionType = value;
|
|
18568
|
-
this._transactionSearchService.transactionType = this._transactionType;
|
|
18569
|
-
},
|
|
18570
|
-
enumerable: false,
|
|
18571
|
-
configurable: true
|
|
18572
|
-
});
|
|
18573
|
-
TransactionSearchComponent.prototype.showClass = function () {
|
|
18574
|
-
return true;
|
|
18575
|
-
};
|
|
18576
|
-
Object.defineProperty(TransactionSearchComponent.prototype, "fullscreen", {
|
|
18577
|
-
get: function () {
|
|
18578
|
-
return this.activeSearchViewMode === SearchViewMode.FullScreen;
|
|
18579
|
-
},
|
|
18580
|
-
enumerable: false,
|
|
18581
|
-
configurable: true
|
|
18582
|
-
});
|
|
18583
|
-
Object.defineProperty(TransactionSearchComponent.prototype, "collapsed", {
|
|
18584
|
-
get: function () {
|
|
18585
|
-
return this.activeSearchBarViewMode === exports.SearchBarViewMode.Collapsed;
|
|
18586
|
-
},
|
|
18587
|
-
enumerable: false,
|
|
18588
|
-
configurable: true
|
|
18589
|
-
});
|
|
18590
|
-
TransactionSearchComponent.prototype.toggleFilter = function () {
|
|
18591
|
-
this.showFilterSidebar = !this.showFilterSidebar;
|
|
18592
|
-
};
|
|
18593
|
-
TransactionSearchComponent.prototype.handleHideFilter = function () {
|
|
18594
|
-
this.showFilterSidebar = false;
|
|
18595
|
-
};
|
|
18596
|
-
TransactionSearchComponent.prototype.handleResetFilter = function () {
|
|
18597
|
-
var _this = this;
|
|
18598
|
-
this._transactionSearchService.resetFilters();
|
|
18599
|
-
this.showFilterSidebar = false;
|
|
18600
|
-
setTimeout(function () {
|
|
18601
|
-
_this.showFilterSidebar = true;
|
|
18602
|
-
}, 10);
|
|
18603
|
-
};
|
|
18604
|
-
TransactionSearchComponent.prototype.onTransactionClick = function (transaction) {
|
|
18605
|
-
if (this.activeSearchViewMode === this.searchViewModes.FullScreen) {
|
|
18606
|
-
this.collapseSearchBar();
|
|
18607
|
-
}
|
|
18608
|
-
this._scrollToTop();
|
|
18609
|
-
this.transactionClick.emit(transaction);
|
|
18610
|
-
};
|
|
18611
|
-
TransactionSearchComponent.prototype.onSearchViewResizeClick = function () {
|
|
18612
|
-
if (this.activeSearchViewMode === this.searchViewModes.SideBar) {
|
|
18613
|
-
this.activeSearchViewMode = this.searchViewModes.FullScreen;
|
|
18614
|
-
}
|
|
18615
|
-
else {
|
|
18616
|
-
this.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
18617
|
-
}
|
|
18618
|
-
this.searchViewModeChange.emit(this.activeSearchViewMode);
|
|
18619
|
-
};
|
|
18620
|
-
TransactionSearchComponent.prototype.onSideCollapseHandleClick = function () {
|
|
18621
|
-
this.toggleSearchBar();
|
|
18622
|
-
};
|
|
18623
|
-
TransactionSearchComponent.prototype.toggleSearchBar = function () {
|
|
18624
|
-
if (this.collapsed || this.fullscreen) {
|
|
18625
|
-
this.expandSearchBar();
|
|
18626
|
-
}
|
|
18627
|
-
else {
|
|
18628
|
-
this.collapseSearchBar();
|
|
18629
|
-
}
|
|
18630
|
-
};
|
|
18631
|
-
TransactionSearchComponent.prototype.collapseSearchBar = function () {
|
|
18632
|
-
this.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
18633
|
-
this.activeSearchBarViewMode = exports.SearchBarViewMode.Collapsed;
|
|
18634
|
-
this.searchViewModeChange.emit(this.activeSearchViewMode);
|
|
18635
|
-
};
|
|
18636
|
-
TransactionSearchComponent.prototype.expandSearchBar = function () {
|
|
18637
|
-
this.activeSearchViewMode = this.searchViewModes.SideBar;
|
|
18638
|
-
this.activeSearchBarViewMode = exports.SearchBarViewMode.Expanded;
|
|
18639
|
-
this.searchViewModeChange.emit(this.activeSearchViewMode);
|
|
18640
|
-
};
|
|
18641
|
-
TransactionSearchComponent.prototype.calculateClasses = function () {
|
|
18642
|
-
return {
|
|
18643
|
-
'fullscreen': this.fullscreen,
|
|
18644
|
-
'sidebar': !this.fullscreen,
|
|
18645
|
-
'collapsed': this.collapsed,
|
|
18646
|
-
'expanded': !this.collapsed,
|
|
18647
|
-
};
|
|
18648
|
-
};
|
|
18649
|
-
TransactionSearchComponent.prototype._scrollToTop = function () {
|
|
18650
|
-
window.scrollTo({ top: 0, behavior: 'smooth' });
|
|
18651
|
-
};
|
|
18652
|
-
return TransactionSearchComponent;
|
|
18653
|
-
}());
|
|
18654
|
-
TransactionSearchComponent.decorators = [
|
|
18655
|
-
{ type: i0.Component, args: [{
|
|
18656
|
-
selector: 'co-transaction-search',
|
|
18657
|
-
template: "\n <div class=\"transaction-search-main-wrapper\">\n <div class=\"transaction-search-wrapper\"\n [ngClass]=\"calculateClasses()\">\n <div class=\"transaction-filter-wrapper narrow-scrollbar\"\n [ngClass]=\"calculateClasses()\"\n *ngIf=\"showFilterSidebar\" @showHideFilterSidebar>\n <co-transaction-filter\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"activeSearchViewMode\"\n (closeButtonClick)=\"handleHideFilter()\"\n (resetFilterClick)=\"handleResetFilter()\"></co-transaction-filter>\n </div>\n <div class=\"transaction-search-result-wrapper\"\n [class.fullscreen]=\"fullscreen\"\n [class.sidebar]=\"!fullscreen\"\n [class.collapsed]=\"collapsed\"\n [class.expanded]=\"!collapsed\"\n >\n <co-transaction-search-result\n [transactionType]=\"transactionType\"\n [activeSearchViewMode]=\"activeSearchViewMode\"\n (filterClick)=\"toggleFilter()\"\n (transactionClick)=\"onTransactionClick($event)\"\n (resizeClick)=\"onSearchViewResizeClick()\"\n (closeClick)=\"collapseSearchBar()\"\n ></co-transaction-search-result>\n </div>\n </div>\n <div class=\"transaction-search-content-wrapper\"\n [class.fullscreen]=\"fullscreen\"\n [class.sidebar]=\"!fullscreen\"\n [class.collapsed]=\"collapsed\"\n [class.expanded]=\"!collapsed\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n ",
|
|
18658
|
-
animations: [
|
|
18659
|
-
animations.trigger("showHideFilterSidebar", [
|
|
18660
|
-
animations.state("void", animations.style({ transform: 'translateX(-100%)' })),
|
|
18661
|
-
animations.state("*", animations.style({ transform: 'translateX(0)' })),
|
|
18662
|
-
animations.transition("void <=> *", animations.animate("200ms ease-in-out"))
|
|
18663
|
-
])
|
|
18664
|
-
],
|
|
18665
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
18666
|
-
},] }
|
|
18667
|
-
];
|
|
18668
|
-
TransactionSearchComponent.ctorParameters = function () { return [
|
|
18669
|
-
{ type: TransactionSearchService }
|
|
18670
|
-
]; };
|
|
18671
|
-
TransactionSearchComponent.propDecorators = {
|
|
18672
|
-
transactionType: [{ type: i0.Input }],
|
|
18673
|
-
transactionClick: [{ type: i0.Output }],
|
|
18674
|
-
searchViewModeChange: [{ type: i0.Output }],
|
|
18675
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-transaction-search",] }]
|
|
18676
|
-
};
|
|
18677
|
-
|
|
18678
18678
|
var TransactionFilterComponent = /** @class */ (function () {
|
|
18679
18679
|
function TransactionFilterComponent(_mappingService, _compFactoryResolver, appRef, injector, searchService) {
|
|
18680
18680
|
this._mappingService = _mappingService;
|