@colijnit/transaction 12.1.4 → 12.1.5
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/app/component/service-order/service-order.component.d.ts +4 -5
- package/app/component/service-order/transaction-article-text/transaction-article-text.component.d.ts +22 -13
- package/app/component/service-order/transaction-article-text-overview/transaction-article-text-overview.component.d.ts +23 -0
- package/app/component/service-order/transaction-edit-article-text/transaction-edit-article-text.component.d.ts +19 -0
- package/app/component/service-order/transaction-manager/transaction-manager.component.d.ts +2 -1
- package/app/component/{core → service-order}/warehouse/warehouse.component.d.ts +0 -0
- package/app/model/standard-text.d.ts +5 -0
- package/app/model/transaction-add-text-line-request.d.ts +9 -0
- package/app/service/ione-connector-adapter.service.d.ts +3 -0
- package/app/service/transaction.service.d.ts +5 -1
- package/bundles/colijnit-transaction.umd.js +355 -97
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.d.ts +16 -14
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/app/component/checkout/checkout-overview-relation-edit/checkout-overview-relation-edit.component.js +2 -2
- package/esm2015/app/component/checkout/ione-checkout.module.js +3 -1
- package/esm2015/app/component/core/base/transaction-base.component.js +1 -1
- package/esm2015/app/component/service-order/ione-service-order-module.js +10 -4
- package/esm2015/app/component/service-order/service-order.component.js +21 -17
- package/esm2015/app/component/service-order/transaction-article-text/transaction-article-text.component.js +107 -161
- package/esm2015/app/component/service-order/transaction-article-text-overview/transaction-article-text-overview.component.js +105 -0
- package/esm2015/app/component/service-order/transaction-edit-article-text/transaction-edit-article-text.component.js +73 -0
- package/esm2015/app/component/service-order/transaction-manager/transaction-manager.component.js +10 -1
- package/esm2015/app/component/service-order/transaction-order-lines/transaction-order-lines.component.js +2 -2
- package/esm2015/app/component/service-order/warehouse/warehouse.component.js +133 -0
- package/esm2015/app/component/shopping-cart/shopping-cart-line/shopping-cart-line.component.js +1 -1
- package/esm2015/app/component/shopping-cart/shopping-cart-manager/shopping-cart-manager.component.js +2 -2
- package/esm2015/app/model/standard-text.js +3 -0
- package/esm2015/app/model/transaction-add-text-line-request.js +11 -0
- package/esm2015/app/service/ione-connector-adapter.service.js +30 -1
- package/esm2015/app/service/transaction.service.js +28 -2
- package/esm2015/assets/dictionary/text.properties.js +9 -1
- package/esm2015/colijnit-transaction.js +17 -15
- package/fesm2015/colijnit-transaction.js +390 -184
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/package.json +4 -3
- package/esm2015/app/component/core/warehouse/warehouse.component.js +0 -134
|
@@ -35,7 +35,7 @@ import { TransactionLineType } from '@colijnit/transactionapi/build/enum/transac
|
|
|
35
35
|
import { LineOperationStatus } from '@colijnit/transactionapi/build/model/line-operation-status.bo';
|
|
36
36
|
import { TransactionInfo } from '@colijnit/transactionapi/build/model/transaction-info.bo';
|
|
37
37
|
import { PendingReasonType } from '@colijnit/transactionapi/build/enum/pending-reason-type.enum';
|
|
38
|
-
import { PromptService, FormComponent, CoSidebarComponent, CoreComponentsIcon, IconCacheService, IconModule, InputTextModule, InputCheckboxModule, InputRadioButtonModule, FormModule, InputComboBoxModule, InputDatePickerModule, InputNumberPickerModule, CoDialogModule, CoDialogPromptModule, ButtonModule, MultiSelectListModule, DropDownModule, PopupModule, CoSidebarModule, CoGridModule } from '@colijnit/corecomponents_v12';
|
|
38
|
+
import { PromptService, FormComponent, CoSidebarComponent, CoreComponentsIcon, IconCacheService, IconModule, InputTextModule, InputCheckboxModule, InputRadioButtonModule, FormModule, InputComboBoxModule, InputDatePickerModule, InputNumberPickerModule, CoDialogModule, CoDialogPromptModule, ButtonModule, MultiSelectListModule, DropDownModule, PopupModule, CoSidebarModule, CoGridModule, CoRichTextEditorModule } from '@colijnit/corecomponents_v12';
|
|
39
39
|
import { CommunicationType } from '@colijnit/transactionapi/build/enum/communication-type.enum';
|
|
40
40
|
import { ContactOption } from '@colijnit/transactionapi/build/model/contact-option.bo';
|
|
41
41
|
import { RelationNameKind } from '@colijnit/transactionapi/build/enum/relation-name-kind.enum';
|
|
@@ -48,12 +48,14 @@ import { FlexModule } from '@angular/flex-layout';
|
|
|
48
48
|
import { MatStepperModule } from '@angular/material/stepper';
|
|
49
49
|
import { CommonModule } from '@angular/common';
|
|
50
50
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
51
|
+
import { NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
51
52
|
import { ResolvePendingLineReasonRequest } from '@colijnit/transactionapi/build/model/resolve-pending-reason-request.bo';
|
|
52
53
|
import { SortDirection } from '@colijnit/transactionapi/build/enum/sort-direction';
|
|
53
54
|
import { SortType } from '@colijnit/transactionapi/build/enum/sort-type.enum';
|
|
54
55
|
import { StockStatus } from '@colijnit/transactionapi/build/enum/refcode/stock-status.enum';
|
|
55
56
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
56
57
|
import { RelationRequest } from '@colijnit/transactionapi/build/model/relation-request';
|
|
58
|
+
import { ToolbarService, LinkService, ImageService, HtmlEditorService, RichTextEditorModule } from '@syncfusion/ej2-angular-richtexteditor';
|
|
57
59
|
import { DropDownButtonModule } from '@syncfusion/ej2-angular-splitbuttons';
|
|
58
60
|
import { ChipListModule, CheckBoxModule } from '@syncfusion/ej2-angular-buttons';
|
|
59
61
|
import { DropDownListModule } from '@syncfusion/ej2-angular-dropdowns';
|
|
@@ -805,6 +807,9 @@ class BusinessObjectFactory {
|
|
|
805
807
|
}
|
|
806
808
|
}
|
|
807
809
|
|
|
810
|
+
class StandardText {
|
|
811
|
+
}
|
|
812
|
+
|
|
808
813
|
class IOneConnectorAdapterService {
|
|
809
814
|
constructor() {
|
|
810
815
|
this._boFactory = new BusinessObjectFactory();
|
|
@@ -1307,6 +1312,34 @@ class IOneConnectorAdapterService {
|
|
|
1307
1312
|
});
|
|
1308
1313
|
});
|
|
1309
1314
|
}
|
|
1315
|
+
getTextTypes(languageCode) {
|
|
1316
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
|
+
return new Promise((resolve, reject) => {
|
|
1318
|
+
return this.connector.getTextTypes(languageCode).then((result) => {
|
|
1319
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1320
|
+
resolve(result.resultObjects);
|
|
1321
|
+
}
|
|
1322
|
+
else {
|
|
1323
|
+
reject(result.validationMessagesAsString);
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
});
|
|
1327
|
+
});
|
|
1328
|
+
}
|
|
1329
|
+
getStandardTexts(languageCode) {
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1331
|
+
return new Promise((resolve, reject) => {
|
|
1332
|
+
return this.connector.getStandardTexts(languageCode).then((result) => {
|
|
1333
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1334
|
+
resolve(this._boFactory.makeBOArrayFromRawBackendDataArray(StandardText, result.resultObject));
|
|
1335
|
+
}
|
|
1336
|
+
else {
|
|
1337
|
+
reject(result.validationMessagesAsString);
|
|
1338
|
+
}
|
|
1339
|
+
});
|
|
1340
|
+
});
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1310
1343
|
}
|
|
1311
1344
|
IOneConnectorAdapterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function IOneConnectorAdapterService_Factory() { return new IOneConnectorAdapterService(); }, token: IOneConnectorAdapterService, providedIn: "root" });
|
|
1312
1345
|
IOneConnectorAdapterService.decorators = [
|
|
@@ -1675,7 +1708,7 @@ class TransactionService {
|
|
|
1675
1708
|
});
|
|
1676
1709
|
});
|
|
1677
1710
|
}
|
|
1678
|
-
|
|
1711
|
+
addTextLine(showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr, remember = true) {
|
|
1679
1712
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1680
1713
|
return new Promise((resolve, reject) => {
|
|
1681
1714
|
this._connector.addTextLineToTransaction(this.currentTransaction.uuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr)
|
|
@@ -1691,6 +1724,21 @@ class TransactionService {
|
|
|
1691
1724
|
});
|
|
1692
1725
|
});
|
|
1693
1726
|
}
|
|
1727
|
+
addTextLineToTransaction(transactionUuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr) {
|
|
1728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1729
|
+
return new Promise((resolve, reject) => {
|
|
1730
|
+
this._connector.addTextLineToTransaction(transactionUuid, showOnDocuments, text, amount, articleBound, refArticleLineNr, aboveLineNr, belowLineNr)
|
|
1731
|
+
.then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
1732
|
+
resolve(response);
|
|
1733
|
+
}), (error) => {
|
|
1734
|
+
reject(error);
|
|
1735
|
+
})
|
|
1736
|
+
.catch((reason) => {
|
|
1737
|
+
resolve(null);
|
|
1738
|
+
});
|
|
1739
|
+
});
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1694
1742
|
changeLineSequence(lineUuid, aboveLineNr, belowLineNr, remember = true) {
|
|
1695
1743
|
return new Promise((resolve, reject) => {
|
|
1696
1744
|
this._connector.changeLineSequence(this.currentTransaction.uuid, lineUuid, aboveLineNr, belowLineNr)
|
|
@@ -1785,6 +1833,17 @@ class TransactionService {
|
|
|
1785
1833
|
// const response: boolean = await this._connector.setRelationByUser(this.currentTransaction.uuid, username, password);
|
|
1786
1834
|
// return response;
|
|
1787
1835
|
// }
|
|
1836
|
+
getTextTypes(languageCode) {
|
|
1837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1838
|
+
return yield this._connector.getTextTypes(languageCode);
|
|
1839
|
+
});
|
|
1840
|
+
}
|
|
1841
|
+
getStandardTexts(languageCode) {
|
|
1842
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1843
|
+
let data = yield this._connector.getStandardTexts(languageCode);
|
|
1844
|
+
return data;
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1788
1847
|
_initializeTransaction() {
|
|
1789
1848
|
if (this._currentTransaction.preferredDeliveryDate2 === undefined) {
|
|
1790
1849
|
this._currentTransaction.preferredDeliveryDate2 = "=";
|
|
@@ -2083,6 +2142,10 @@ class Dictionary {
|
|
|
2083
2142
|
"WHERE_ARE_YOU_LOOKING_FOR": "Waar ben je naar op zoek?",
|
|
2084
2143
|
"WAREHOUSE": "Magazijn",
|
|
2085
2144
|
"YOUR_DATA": "Uw gegevens",
|
|
2145
|
+
"STANDARD_TEXTS": "Standaardteksten",
|
|
2146
|
+
"ARTICLE_BOUND_TEXT": "Artikelgebonden tekst",
|
|
2147
|
+
"FOR_DOCUMENTS": "Bestemd voor documenten",
|
|
2148
|
+
"CHANGE_ARTICLE_TEXT": "Wijzigen artikeltekst",
|
|
2086
2149
|
},
|
|
2087
2150
|
"de": {},
|
|
2088
2151
|
"fr": {},
|
|
@@ -2238,6 +2301,10 @@ class Dictionary {
|
|
|
2238
2301
|
"WAREHOUSE": "Warehouse",
|
|
2239
2302
|
"WHERE_ARE_YOU_LOOKING_FOR": "Where are you looking for?",
|
|
2240
2303
|
"YOUR_DATA": "Your data",
|
|
2304
|
+
"STANDARD_TEXTS": "Standard texts",
|
|
2305
|
+
"ARTICLE_BOUND_TEXT": "Article bound text",
|
|
2306
|
+
"FOR_DOCUMENTS": "Used at documents",
|
|
2307
|
+
"CHANGE_ARTICLE_TEXT": "Change article text",
|
|
2241
2308
|
},
|
|
2242
2309
|
};
|
|
2243
2310
|
}
|
|
@@ -2596,7 +2663,7 @@ CheckoutOverviewRelationEditComponent.decorators = [
|
|
|
2596
2663
|
<div>
|
|
2597
2664
|
<label [textContent]="'PERSONAL_DATA' | localize"
|
|
2598
2665
|
class="checkout-label-h3"
|
|
2599
|
-
></label>
|
|
2666
|
+
></label>
|
|
2600
2667
|
</div>
|
|
2601
2668
|
<div>
|
|
2602
2669
|
<div>
|
|
@@ -4376,6 +4443,7 @@ IoneCheckoutModule.decorators = [
|
|
|
4376
4443
|
CoGridModule,
|
|
4377
4444
|
CoreModule,
|
|
4378
4445
|
CommonModule,
|
|
4446
|
+
NoopAnimationsModule,
|
|
4379
4447
|
],
|
|
4380
4448
|
declarations: [
|
|
4381
4449
|
CheckoutComponent,
|
|
@@ -4497,7 +4565,7 @@ class ShoppingCartManagerComponent {
|
|
|
4497
4565
|
}
|
|
4498
4566
|
addTextLineToCartAt(text, lineNr, beforeOrAfter) {
|
|
4499
4567
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4500
|
-
yield this.service.
|
|
4568
|
+
yield this.service.addTextLine(0, text, 0, false, 0, beforeOrAfter === PositionGridRow.Before ? lineNr : undefined, beforeOrAfter === PositionGridRow.After ? lineNr : undefined)
|
|
4501
4569
|
.then((value) => {
|
|
4502
4570
|
this._handleLineOperationStatus();
|
|
4503
4571
|
}, (error) => this.promptService.showError(error));
|
|
@@ -5470,7 +5538,7 @@ ShoppingCartLineComponent.decorators = [
|
|
|
5470
5538
|
[textContent]="line.text">
|
|
5471
5539
|
</div>
|
|
5472
5540
|
`,
|
|
5473
|
-
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{padding-bottom:20px}:host{padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t,.cart-line-r .cart-line-right .cart-line-totals{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #DBE3E8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.horizontal{display:flex;flex-direction:row}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:bold}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-amount{width:
|
|
5541
|
+
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.cart-line-r .cart-line-description .cart-line-description-artnr{font-size:10px}.flex-center{display:flex}.flex-center{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}:host{padding-bottom:20px}:host{padding-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-top:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-r .cart-line-image,.cart-line-r .cart-line-right .cart-line-stock,.cart-line-r .cart-line-right .cart-line-totals{margin-bottom:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t,.cart-line-r .cart-line-right .cart-line-totals{margin-left:20px}.cart-line-r .cart-line-description,.cart-line-r .cart-line-right .cart-line-amount,.cart-line-t{margin-right:20px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}:host{display:flex;flex-wrap:wrap;border-bottom:1px solid #DBE3E8;width:100%}:host.overlayed.is-text{display:none!important}:host.overlayed.is-selected{background-color:#add8e6}:host.overview.is-text{display:none!important}:host.overview.is-selected{background-color:#add8e6}.horizontal{display:flex;flex-direction:row}.cart-line-r{display:flex;justify-content:stretch;flex-direction:row}@media (max-width: 800px){.cart-line-r{flex-direction:column}}.cart-line-r co-button{border:0;padding:0}.cart-line-r .cart-line-image{display:flex;flex:1 0 auto!important;flex-direction:column;align-items:center;justify-content:center}.cart-line-r .cart-line-image image-display{width:6em;height:6em}.cart-line-r .cart-line-description{display:flex;flex-direction:column;width:100%}.cart-line-r .cart-line-description .cart-line-description-main{font-weight:bold}.cart-line-r .cart-line-right{justify-content:flex-end}.cart-line-r .cart-line-right .cart-line-stock{width:10em}.cart-line-r .cart-line-right .cart-line-amount{width:15em}.cart-line-r .cart-line-right .cart-line-totals{display:flex;justify-content:flex-end;min-width:100px;font-weight:bold}.cart-line-r .cart-line-right .cart-line-totals span{text-align:right}.cart-line-t.article-text{padding-left:10em}\n"]
|
|
5474
5542
|
},] }
|
|
5475
5543
|
];
|
|
5476
5544
|
ShoppingCartLineComponent.ctorParameters = () => [
|
|
@@ -5884,66 +5952,67 @@ TransactionBaseComponent.propDecorators = {
|
|
|
5884
5952
|
customer: [{ type: Input }]
|
|
5885
5953
|
};
|
|
5886
5954
|
|
|
5887
|
-
|
|
5888
|
-
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5955
|
+
class TransactionAddTextLineRequest {
|
|
5956
|
+
constructor() {
|
|
5957
|
+
this.showOnDocuments = false;
|
|
5958
|
+
this.text = "";
|
|
5959
|
+
this.articleBound = false;
|
|
5960
|
+
this.refArticleLineNr = 0;
|
|
5961
|
+
this.aboveLineNr = 0;
|
|
5962
|
+
this.belowLineNr = 0;
|
|
5963
|
+
}
|
|
5964
|
+
}
|
|
5965
|
+
|
|
5894
5966
|
class TransactionArticleTextComponent extends TransactionBaseComponent {
|
|
5895
5967
|
constructor(service) {
|
|
5896
5968
|
super(service);
|
|
5897
5969
|
this.service = service;
|
|
5970
|
+
this.addTextLine = new EventEmitter();
|
|
5971
|
+
this.transactionAddTextLineRequest = new TransactionAddTextLineRequest();
|
|
5972
|
+
this.textTitle = "";
|
|
5898
5973
|
this.visible = false;
|
|
5899
|
-
this.
|
|
5900
|
-
this.
|
|
5901
|
-
this.
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
|
|
5906
|
-
|
|
5907
|
-
{ id: 5, name: "Standaardtekst 1" }
|
|
5908
|
-
];
|
|
5909
|
-
this.articleTexts = [
|
|
5910
|
-
{ title: "title 1", description: "Omschrijving 1" },
|
|
5911
|
-
{ title: "title 2", description: "Omschrijving 2" },
|
|
5912
|
-
{ title: "title 3", description: "Omschrijving 3" },
|
|
5913
|
-
{ title: "title 4", description: "Omschrijving 4" },
|
|
5914
|
-
{ title: "title 5", description: "Omschrijving 5" },
|
|
5915
|
-
];
|
|
5916
|
-
this.fields = { text: "name", value: "id" };
|
|
5974
|
+
this.collection = [];
|
|
5975
|
+
this.fields = { text: "description", value: "textId" };
|
|
5976
|
+
this.transactionAddTextLineRequest.text = "";
|
|
5977
|
+
}
|
|
5978
|
+
ngOnInit() {
|
|
5979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5980
|
+
this.collection = yield this.service.getStandardTexts("NL");
|
|
5981
|
+
});
|
|
5917
5982
|
}
|
|
5918
5983
|
onOkClick() {
|
|
5984
|
+
if (this.selectedLine) {
|
|
5985
|
+
this.transactionAddTextLineRequest.refArticleLineNr = this.selectedLine.lineNr;
|
|
5986
|
+
}
|
|
5987
|
+
this.addTextLine.emit(this.transactionAddTextLineRequest);
|
|
5919
5988
|
this.hide();
|
|
5920
5989
|
}
|
|
5921
|
-
|
|
5990
|
+
onCancelClick() {
|
|
5922
5991
|
this.hide();
|
|
5923
|
-
this.hideOverview();
|
|
5924
|
-
this.hideEditArtikelText();
|
|
5925
|
-
}
|
|
5926
|
-
hide() {
|
|
5927
|
-
// TODO: throw hide event
|
|
5928
|
-
this.visible = false;
|
|
5929
5992
|
}
|
|
5930
|
-
|
|
5931
|
-
this.
|
|
5993
|
+
onOverviewClick() {
|
|
5994
|
+
this.articleTextOverview.open();
|
|
5932
5995
|
}
|
|
5933
|
-
|
|
5934
|
-
this.
|
|
5996
|
+
open() {
|
|
5997
|
+
if (this.articleTextDialog) {
|
|
5998
|
+
this.articleTextDialog.open();
|
|
5999
|
+
}
|
|
5935
6000
|
}
|
|
5936
|
-
|
|
5937
|
-
this.
|
|
6001
|
+
onPopupClose() {
|
|
6002
|
+
this.hide();
|
|
5938
6003
|
}
|
|
5939
|
-
|
|
5940
|
-
this.
|
|
6004
|
+
hide() {
|
|
6005
|
+
if (this.articleTextDialog) {
|
|
6006
|
+
this.articleTextDialog.close();
|
|
6007
|
+
}
|
|
5941
6008
|
}
|
|
5942
|
-
|
|
5943
|
-
this.
|
|
6009
|
+
onChangeText(event) {
|
|
6010
|
+
if (this.editor) {
|
|
6011
|
+
this.transactionAddTextLineRequest.text = this.editor.getText();
|
|
6012
|
+
}
|
|
5944
6013
|
}
|
|
5945
|
-
|
|
5946
|
-
this.
|
|
6014
|
+
onSelectStandardText(value) {
|
|
6015
|
+
this.transactionAddTextLineRequest.text = (this.collection.find(x => x.textId === value)).text;
|
|
5947
6016
|
}
|
|
5948
6017
|
}
|
|
5949
6018
|
TransactionArticleTextComponent.decorators = [
|
|
@@ -5951,128 +6020,81 @@ TransactionArticleTextComponent.decorators = [
|
|
|
5951
6020
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
5952
6021
|
selector: "transaction-article-text",
|
|
5953
6022
|
template: `
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
<
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
<!-- <grid [data]="articleTexts" detailLink (detailLinkClick)="onDetailLinkClick($event)">-->
|
|
6012
|
-
<!-- <grid-column key="title" header="TITLE" width="100px;"></grid-column>-->
|
|
6013
|
-
<!-- <grid-column key="description" header="DESCRIPTION" width="200px"></grid-column>-->
|
|
6014
|
-
<!-- </grid>-->
|
|
6015
|
-
</div>
|
|
6016
|
-
<div style="margin-left:5px;">
|
|
6017
|
-
<div style="margin-top:20px;">
|
|
6018
|
-
|
|
6019
|
-
<co-input-checkbox
|
|
6020
|
-
label="Artikelgebonden tekst"
|
|
6021
|
-
name="articleBoundText"
|
|
6022
|
-
value="true"
|
|
6023
|
-
></co-input-checkbox>
|
|
6024
|
-
</div>
|
|
6025
|
-
<div style="margin-top:20px;">
|
|
6026
|
-
<label>Bestemd voor documenten</label>
|
|
6027
|
-
<ejs-chiplist id="chip-default">
|
|
6028
|
-
<e-chips>
|
|
6029
|
-
<e-chip text="Apple" cssClass="e-primary"></e-chip>
|
|
6030
|
-
<e-chip text="Microsoft" cssClass="e-info"></e-chip>
|
|
6031
|
-
<e-chip text="Google" cssClass="e-success"></e-chip>
|
|
6032
|
-
<e-chip text="Tesla" cssClass="e-warning"></e-chip>
|
|
6033
|
-
<e-chip text="Intel" cssClass="e-danger"></e-chip>
|
|
6034
|
-
</e-chips>
|
|
6035
|
-
</ejs-chiplist>
|
|
6036
|
-
</div>
|
|
6037
|
-
</div>
|
|
6038
|
-
</div>
|
|
6039
|
-
</ng-container>
|
|
6040
|
-
<ng-container footer>
|
|
6041
|
-
<div class="footer" fxLayout fxPosition="row" fxLayoutAlign="center center" fxLayoutGap="10px" style="margin-top:30px;">
|
|
6042
|
-
<co-button label="OK" (click)="onOkOverviewClick()"></co-button>
|
|
6043
|
-
<co-button label="CANCEL" (click)="hideOverview()"></co-button>
|
|
6044
|
-
</div>
|
|
6045
|
-
</ng-container>
|
|
6046
|
-
</co-dialog>
|
|
6023
|
+
<co-dialog #articleTextDialog (close)="onPopupClose()">
|
|
6024
|
+
<ng-container header>{{ subHeader }}</ng-container>
|
|
6025
|
+
<ng-container content>
|
|
6026
|
+
<div class="tags-join-content" fxLayout fxLayoutGap="10px">
|
|
6027
|
+
<div>
|
|
6028
|
+
<co-rich-text-editor
|
|
6029
|
+
#rte
|
|
6030
|
+
id="rte"
|
|
6031
|
+
[model]="transactionAddTextLineRequest.text"
|
|
6032
|
+
(onChangeEvent)="onChangeText($event)"
|
|
6033
|
+
></co-rich-text-editor>
|
|
6034
|
+
</div>
|
|
6035
|
+
<div style="margin-left:5px;">
|
|
6036
|
+
<div style="margin-top:16px;">
|
|
6037
|
+
<ejs-dropdownlist
|
|
6038
|
+
[dataSource]="collection"
|
|
6039
|
+
[fields]="fields"
|
|
6040
|
+
[placeholder]="'STANDARD_TEXTS' | localize"
|
|
6041
|
+
(valueChange)="onSelectStandardText($event)"
|
|
6042
|
+
></ejs-dropdownlist>
|
|
6043
|
+
<!-- <co-drop-down-list [-->
|
|
6044
|
+
<!-- [collection]="collection"-->
|
|
6045
|
+
<!-- [fields]="fields"-->
|
|
6046
|
+
<!-- [placeHolder]="'STANDARD_TEXTS' | localize"-->
|
|
6047
|
+
<!-- (valueChange)="onSelectStandardText($event)"-->
|
|
6048
|
+
<!-- ></co-drop-down-list>-->
|
|
6049
|
+
</div>
|
|
6050
|
+
<div style="margin-top:20px;">
|
|
6051
|
+
<co-input-checkbox
|
|
6052
|
+
[(model)]="transactionAddTextLineRequest.articleBound"
|
|
6053
|
+
[label]="'ARTICLE_BOUND_TEXT' | localize"
|
|
6054
|
+
name="articleBoundText">
|
|
6055
|
+
</co-input-checkbox>
|
|
6056
|
+
</div>
|
|
6057
|
+
<div style="margin-top:20px;">
|
|
6058
|
+
<label [textContent]="'FOR_DOCUMENTS' | localize"></label>
|
|
6059
|
+
<ejs-chiplist id="chip-default">
|
|
6060
|
+
<e-chips>
|
|
6061
|
+
<e-chip text="Apple" cssClass="e-primary"></e-chip>
|
|
6062
|
+
<e-chip text="Microsoft" cssClass="e-info"></e-chip>
|
|
6063
|
+
<e-chip text="Google" cssClass="e-success"></e-chip>
|
|
6064
|
+
<e-chip text="Tesla" cssClass="e-warning"></e-chip>
|
|
6065
|
+
<e-chip text="Intel" cssClass="e-danger"></e-chip>
|
|
6066
|
+
</e-chips>
|
|
6067
|
+
</ejs-chiplist>
|
|
6068
|
+
</div>
|
|
6069
|
+
</div>
|
|
6070
|
+
</div>
|
|
6071
|
+
</ng-container>
|
|
6072
|
+
<ng-container footer>
|
|
6073
|
+
<div class="footer" fxLayout fxLayoutAlign="center center" fxLayoutGap="10px" style="margin-top:30px;">
|
|
6074
|
+
<co-button [label]="'OK' | localize" (click)="onOkClick()"></co-button>
|
|
6075
|
+
<co-button [label]="'CANCEL' | localize " (click)="onCancelClick()"></co-button>
|
|
6076
|
+
<co-button [label]="'OVERVIEW' | localize" (click)="onOverviewClick()"></co-button>
|
|
6077
|
+
</div>
|
|
6078
|
+
</ng-container>
|
|
6079
|
+
</co-dialog>
|
|
6047
6080
|
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
<!-- <co-text-editor-->
|
|
6055
|
-
<!-- label="Artikeltekst"-->
|
|
6056
|
-
<!-- ></co-text-editor>-->
|
|
6057
|
-
</div>
|
|
6058
|
-
</div>
|
|
6059
|
-
</ng-container>
|
|
6060
|
-
<ng-container footer>
|
|
6061
|
-
<div class="footer" fxLayout fxLayoutAlign="center center" fxLayoutGap="10px" style="margin-top:30px;">
|
|
6062
|
-
<co-button label="OK" (click)="onOkEditArtikelTextClick()"></co-button>
|
|
6063
|
-
<co-button label="CANCEL" (click)="hideEditArtikelText()"></co-button>
|
|
6064
|
-
</div>
|
|
6065
|
-
</ng-container>
|
|
6066
|
-
</co-dialog>
|
|
6067
|
-
`,
|
|
6068
|
-
styles: [""]
|
|
6081
|
+
<transaction-article-text-overview
|
|
6082
|
+
#articleTextOverview>
|
|
6083
|
+
</transaction-article-text-overview>
|
|
6084
|
+
`,
|
|
6085
|
+
providers: [ToolbarService, LinkService, ImageService, HtmlEditorService],
|
|
6086
|
+
styles: [":host .e-toolbar-wrapper{height:50px}\n"]
|
|
6069
6087
|
},] }
|
|
6070
6088
|
];
|
|
6071
6089
|
TransactionArticleTextComponent.ctorParameters = () => [
|
|
6072
6090
|
{ type: TransactionService }
|
|
6073
6091
|
];
|
|
6074
6092
|
TransactionArticleTextComponent.propDecorators = {
|
|
6075
|
-
|
|
6093
|
+
articleTextDialog: [{ type: ViewChild, args: ["articleTextDialog",] }],
|
|
6094
|
+
articleTextOverview: [{ type: ViewChild, args: ["articleTextOverview",] }],
|
|
6095
|
+
editor: [{ type: ViewChild, args: ["rte",] }],
|
|
6096
|
+
subHeader: [{ type: Input }],
|
|
6097
|
+
addTextLine: [{ type: Output }]
|
|
6076
6098
|
};
|
|
6077
6099
|
|
|
6078
6100
|
class TransactionManagerComponent extends TransactionBaseComponent {
|
|
@@ -6337,6 +6359,15 @@ class TransactionManagerComponent extends TransactionBaseComponent {
|
|
|
6337
6359
|
});
|
|
6338
6360
|
});
|
|
6339
6361
|
}
|
|
6362
|
+
addTextLineToTransaction(transactionUuid, text, lineNr, beforeOrAfter) {
|
|
6363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6364
|
+
yield this.service.addTextLineToTransaction(transactionUuid, 0, text, 0, false, lineNr, beforeOrAfter === PositionGridRow.Before ? lineNr : undefined, beforeOrAfter === PositionGridRow.After ? lineNr : undefined)
|
|
6365
|
+
.then((response) => {
|
|
6366
|
+
this.transaction = response;
|
|
6367
|
+
this.articleAdded.emit(response);
|
|
6368
|
+
}, (error) => this.promptService.showError(error));
|
|
6369
|
+
});
|
|
6370
|
+
}
|
|
6340
6371
|
}
|
|
6341
6372
|
TransactionManagerComponent.decorators = [
|
|
6342
6373
|
{ type: Component, args: [{
|
|
@@ -6381,10 +6412,10 @@ class ServiceOrderComponent extends TransactionBaseComponent {
|
|
|
6381
6412
|
this.viewModes = ContentViewMode;
|
|
6382
6413
|
this.canPlanDelivery = false;
|
|
6383
6414
|
this.showTotals = true;
|
|
6415
|
+
this.floatButtonRightPosition = ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR;
|
|
6384
6416
|
this.contextMenuItems = [];
|
|
6385
6417
|
this.isRouteOptimizationConfigured = false;
|
|
6386
6418
|
this.activeViewMode = ContentViewMode.List;
|
|
6387
|
-
this.floatButtonSelected = false;
|
|
6388
6419
|
this.newArticleNr = "";
|
|
6389
6420
|
this._subs = [];
|
|
6390
6421
|
}
|
|
@@ -6394,6 +6425,12 @@ class ServiceOrderComponent extends TransactionBaseComponent {
|
|
|
6394
6425
|
get inGridView() {
|
|
6395
6426
|
return this.activeViewMode === ContentViewMode.Grid;
|
|
6396
6427
|
}
|
|
6428
|
+
get subHeader() {
|
|
6429
|
+
if (this._selectedTransLine) {
|
|
6430
|
+
return this._selectedTransLine.goodDescription;
|
|
6431
|
+
}
|
|
6432
|
+
return "Geen artikel geselecteerd";
|
|
6433
|
+
}
|
|
6397
6434
|
ngOnInit() {
|
|
6398
6435
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6399
6436
|
this._subs.push(this.service.transactionLoaded.subscribe((transactionInfoResponse) => {
|
|
@@ -6417,6 +6454,8 @@ class ServiceOrderComponent extends TransactionBaseComponent {
|
|
|
6417
6454
|
ngAfterViewInit() {
|
|
6418
6455
|
this._subs.push(this._transactionManager.articleAdded.subscribe((transactionInfoResponse) => {
|
|
6419
6456
|
this.transaction = transactionInfoResponse;
|
|
6457
|
+
}), this._transactionArticleText.addTextLine.subscribe((transactionAddTextLineRequest) => {
|
|
6458
|
+
this.addTextLine(transactionAddTextLineRequest);
|
|
6420
6459
|
}));
|
|
6421
6460
|
}
|
|
6422
6461
|
ngOnDestroy() {
|
|
@@ -6450,21 +6489,12 @@ class ServiceOrderComponent extends TransactionBaseComponent {
|
|
|
6450
6489
|
this.floatButtonRightPosition = ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR;
|
|
6451
6490
|
}
|
|
6452
6491
|
}
|
|
6453
|
-
onOkClick() {
|
|
6454
|
-
this.hide();
|
|
6455
|
-
}
|
|
6456
|
-
hide() {
|
|
6457
|
-
this.floatButtonSelected = false;
|
|
6458
|
-
}
|
|
6459
6492
|
floatButtonClick() {
|
|
6460
|
-
this.
|
|
6461
|
-
this.
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
return this._selectedTransLine.goodDescription;
|
|
6466
|
-
}
|
|
6467
|
-
return "";
|
|
6493
|
+
this._transactionArticleText.transactionAddTextLineRequest.transactionUuid = this.transactionInfo.uuid;
|
|
6494
|
+
this._transactionArticleText.transactionAddTextLineRequest.text = "";
|
|
6495
|
+
this._transactionArticleText.selectedLine = this._selectedTransLine;
|
|
6496
|
+
this._transactionArticleText.subHeader = this.subHeader;
|
|
6497
|
+
this._transactionArticleText.open();
|
|
6468
6498
|
}
|
|
6469
6499
|
hideOrderTotals(event) {
|
|
6470
6500
|
this.showTotals = false;
|
|
@@ -6478,6 +6508,11 @@ class ServiceOrderComponent extends TransactionBaseComponent {
|
|
|
6478
6508
|
}
|
|
6479
6509
|
});
|
|
6480
6510
|
}
|
|
6511
|
+
addTextLine(transactionAddTextLineRequest) {
|
|
6512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6513
|
+
this._transactionManager.addTextLineToTransaction(transactionAddTextLineRequest.transactionUuid, transactionAddTextLineRequest.text, transactionAddTextLineRequest.refArticleLineNr, PositionGridRow.After);
|
|
6514
|
+
});
|
|
6515
|
+
}
|
|
6481
6516
|
}
|
|
6482
6517
|
ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITHOUT_SIDEBAR = 50;
|
|
6483
6518
|
ServiceOrderComponent.FLOAT_BUTTON_RIGHT_POSITION_WITH_SIDEBAR = 350;
|
|
@@ -6548,7 +6583,7 @@ ServiceOrderComponent.ctorParameters = () => [
|
|
|
6548
6583
|
{ type: PromptService }
|
|
6549
6584
|
];
|
|
6550
6585
|
ServiceOrderComponent.propDecorators = {
|
|
6551
|
-
|
|
6586
|
+
_transactionArticleText: [{ type: ViewChild, args: [TransactionArticleTextComponent,] }],
|
|
6552
6587
|
_transactionManager: [{ type: ViewChild, args: [TransactionManagerComponent,] }]
|
|
6553
6588
|
};
|
|
6554
6589
|
|
|
@@ -6665,7 +6700,7 @@ class TransactionOrderLinesComponent extends TransactionBaseComponent {
|
|
|
6665
6700
|
this.createServiceClick = new EventEmitter();
|
|
6666
6701
|
this.nothingSelected = true;
|
|
6667
6702
|
this.columns = [];
|
|
6668
|
-
this.columns.push({ field: "articleNumber", headerText: this._dictionaryService.get("ARTICLE_NR"), allowFiltering: false }, { field: "goodDescription", headerText: this._dictionaryService.get("DESCRIPTION") }, { field: "detailsAsString", headerText: this._dictionaryService.get("DETAILS") }, { field: "price", headerText: this._dictionaryService.get("PRICE") }, { field: "amount", headerText: this._dictionaryService.get("NUMBER") }, { field: "lineTotal", headerText: this._dictionaryService.get("SUBTOTAL") }, { field: "logisticState", headerText: this._dictionaryService.get("STATE") }, { field: "expectedDeliveryDate", headerText: this._dictionaryService.get("EXPECTED_DELIVERY_DATE") });
|
|
6703
|
+
this.columns.push({ field: "articleNumber", headerText: this._dictionaryService.get("ARTICLE_NR"), allowFiltering: false }, { field: "goodDescription", headerText: this._dictionaryService.get("DESCRIPTION") }, { field: "text", headerText: this._dictionaryService.get("TEXT") }, { field: "detailsAsString", headerText: this._dictionaryService.get("DETAILS") }, { field: "price", headerText: this._dictionaryService.get("PRICE") }, { field: "amount", headerText: this._dictionaryService.get("NUMBER") }, { field: "lineTotal", headerText: this._dictionaryService.get("SUBTOTAL") }, { field: "logisticState", headerText: this._dictionaryService.get("STATE") }, { field: "expectedDeliveryDate", headerText: this._dictionaryService.get("EXPECTED_DELIVERY_DATE") });
|
|
6669
6704
|
}
|
|
6670
6705
|
get pagingEnabled() {
|
|
6671
6706
|
if (this.transactionLines) {
|
|
@@ -7995,7 +8030,6 @@ WarehouseComponent.decorators = [
|
|
|
7995
8030
|
</ng-container>
|
|
7996
8031
|
</co-dialog>
|
|
7997
8032
|
`,
|
|
7998
|
-
providers: [DictionaryService],
|
|
7999
8033
|
styles: ["html,body{height:100%}body{margin:0;font-family:Roboto,\"Helvetica Neue\",sans-serif}.flex-center,.warehouse-line-container{display:flex}.flex-center,.warehouse-line-container{flex-direction:row}.flex-center{align-items:center!important;justify-content:center!important}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field,.commission-fields{margin-left:11px}.triangle{border-radius:3px}.full-width{width:100%}.flex-center{margin:10px 0}::ng-deep #warehouseDialog{align-items:center;max-height:100%}::ng-deep #warehouseDialog ::ng-deep co-form{height:100%;width:500px}::ng-deep #warehouseDialog ::ng-deep .form-content{height:calc(100% - 80px);width:100%}::ng-deep #warehouseDialog ::ng-deep .form-content .message-field{height:20px;word-wrap:break-word;white-space:normal}co-button:not(:last-child){margin-right:10px}.commission-fields{justify-content:space-between;margin:10px 0}.warehouse-description-item{width:15rem}.warehouse-nr-item{width:5rem}co-input-number-picker co-button{max-width:20px}\n"]
|
|
8000
8034
|
},] }
|
|
8001
8035
|
];
|
|
@@ -8011,6 +8045,175 @@ WarehouseComponent.propDecorators = {
|
|
|
8011
8045
|
cancelClick: [{ type: Output }]
|
|
8012
8046
|
};
|
|
8013
8047
|
|
|
8048
|
+
class TransactionArticleTextOverviewComponent extends TransactionBaseComponent {
|
|
8049
|
+
constructor(service, _dictionaryService) {
|
|
8050
|
+
super(service);
|
|
8051
|
+
this.service = service;
|
|
8052
|
+
this._dictionaryService = _dictionaryService;
|
|
8053
|
+
this.articleTexts = [
|
|
8054
|
+
{ title: "title 1", description: "Omschrijving 1" },
|
|
8055
|
+
{ title: "title 2", description: "Omschrijving 2" },
|
|
8056
|
+
{ title: "title 3", description: "Omschrijving 3" },
|
|
8057
|
+
{ title: "title 4", description: "Omschrijving 4" },
|
|
8058
|
+
{ title: "title 5", description: "Omschrijving 5" },
|
|
8059
|
+
];
|
|
8060
|
+
this.columns = [];
|
|
8061
|
+
}
|
|
8062
|
+
ngOnInit() {
|
|
8063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8064
|
+
this.columns.push({ field: "title", headerText: this._dictionaryService.get("TITLE"), allowFiltering: false }, { field: "description", headerText: this._dictionaryService.get("DESCRIPTION") });
|
|
8065
|
+
});
|
|
8066
|
+
}
|
|
8067
|
+
open() {
|
|
8068
|
+
if (this.articleTextOverviewDialog) {
|
|
8069
|
+
this.articleTextOverviewDialog.open();
|
|
8070
|
+
}
|
|
8071
|
+
}
|
|
8072
|
+
onPopupClose() {
|
|
8073
|
+
this.hide();
|
|
8074
|
+
}
|
|
8075
|
+
hide() {
|
|
8076
|
+
if (this.articleTextOverviewDialog) {
|
|
8077
|
+
this.articleTextOverviewDialog.close();
|
|
8078
|
+
}
|
|
8079
|
+
}
|
|
8080
|
+
onOkClick() {
|
|
8081
|
+
this.hide();
|
|
8082
|
+
}
|
|
8083
|
+
onCancelClick() {
|
|
8084
|
+
this.hide();
|
|
8085
|
+
}
|
|
8086
|
+
handleRowsSelected(rows) {
|
|
8087
|
+
this.editArticleText.subHeader = this._dictionaryService.get("CHANGE_ARTICLE_TEXT");
|
|
8088
|
+
this.editArticleText.title = (rows.find(x => x !== undefined)).title;
|
|
8089
|
+
this.editArticleText.text = (rows.find(x => x !== undefined)).description;
|
|
8090
|
+
this.editArticleText.open();
|
|
8091
|
+
}
|
|
8092
|
+
}
|
|
8093
|
+
TransactionArticleTextOverviewComponent.decorators = [
|
|
8094
|
+
{ type: Component, args: [{
|
|
8095
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
8096
|
+
selector: "transaction-article-text-overview",
|
|
8097
|
+
template: `
|
|
8098
|
+
<co-dialog #articleTextOverviewDialog (close)="hide()">
|
|
8099
|
+
<ng-container header>Artikelgebonden teksten {{ subHeader }}</ng-container>
|
|
8100
|
+
<ng-container content>
|
|
8101
|
+
<div class="tags-join-content" fxLayout fxLayoutGap="10px">
|
|
8102
|
+
<div class="column-separator" style="width:75%">
|
|
8103
|
+
<co-grid #warehouseGrid
|
|
8104
|
+
[data]="articleTexts"
|
|
8105
|
+
[columns]="columns"
|
|
8106
|
+
[pagingEnabled]="'true'"
|
|
8107
|
+
[maxNumberOfRows]="'10'"
|
|
8108
|
+
(rowsSelected)="handleRowsSelected($event)"
|
|
8109
|
+
></co-grid>
|
|
8110
|
+
</div>
|
|
8111
|
+
<div style="margin-left:5px;">
|
|
8112
|
+
<label [textContent]="'FOR_DOCUMENTS' | localize"></label>
|
|
8113
|
+
<ejs-chiplist id="chip-default">
|
|
8114
|
+
<e-chips>
|
|
8115
|
+
<e-chip text="Apple" cssClass="e-primary"></e-chip>
|
|
8116
|
+
<e-chip text="Microsoft" cssClass="e-info"></e-chip>
|
|
8117
|
+
<e-chip text="Google" cssClass="e-success"></e-chip>
|
|
8118
|
+
<e-chip text="Tesla" cssClass="e-warning"></e-chip>
|
|
8119
|
+
<e-chip text="Intel" cssClass="e-danger"></e-chip>
|
|
8120
|
+
</e-chips>
|
|
8121
|
+
</ejs-chiplist>
|
|
8122
|
+
</div>
|
|
8123
|
+
</div>
|
|
8124
|
+
</ng-container>
|
|
8125
|
+
<ng-container footer>
|
|
8126
|
+
<div class="footer" fxLayout fxPosition="row" fxLayoutAlign="center center" fxLayoutGap="10px" style="margin-top:30px;">
|
|
8127
|
+
<co-button [label]="'OK' | localize" (click)="onOkClick()"></co-button>
|
|
8128
|
+
<co-button [label]="'CANCEL' | localize" (click)="onCancelClick()"></co-button>
|
|
8129
|
+
</div>
|
|
8130
|
+
</ng-container>
|
|
8131
|
+
</co-dialog>
|
|
8132
|
+
|
|
8133
|
+
<transaction-edit-article-text #editArticleText></transaction-edit-article-text>
|
|
8134
|
+
`,
|
|
8135
|
+
styles: [""]
|
|
8136
|
+
},] }
|
|
8137
|
+
];
|
|
8138
|
+
TransactionArticleTextOverviewComponent.ctorParameters = () => [
|
|
8139
|
+
{ type: TransactionService },
|
|
8140
|
+
{ type: DictionaryService }
|
|
8141
|
+
];
|
|
8142
|
+
TransactionArticleTextOverviewComponent.propDecorators = {
|
|
8143
|
+
articleTextOverviewDialog: [{ type: ViewChild, args: ["articleTextOverviewDialog",] }],
|
|
8144
|
+
editArticleText: [{ type: ViewChild, args: ["editArticleText",] }],
|
|
8145
|
+
subHeader: [{ type: Input }]
|
|
8146
|
+
};
|
|
8147
|
+
|
|
8148
|
+
class TransactionEditArticleTextComponent extends TransactionBaseComponent {
|
|
8149
|
+
constructor(service) {
|
|
8150
|
+
super(service);
|
|
8151
|
+
this.service = service;
|
|
8152
|
+
}
|
|
8153
|
+
open() {
|
|
8154
|
+
if (this.editArticleTextDialog) {
|
|
8155
|
+
this.editArticleTextDialog.open();
|
|
8156
|
+
}
|
|
8157
|
+
}
|
|
8158
|
+
onPopupClose() {
|
|
8159
|
+
this.hide();
|
|
8160
|
+
}
|
|
8161
|
+
hide() {
|
|
8162
|
+
if (this.editArticleTextDialog) {
|
|
8163
|
+
this.editArticleTextDialog.close();
|
|
8164
|
+
}
|
|
8165
|
+
}
|
|
8166
|
+
onOkClick() {
|
|
8167
|
+
this.hide();
|
|
8168
|
+
}
|
|
8169
|
+
onCancelClick() {
|
|
8170
|
+
this.hide();
|
|
8171
|
+
}
|
|
8172
|
+
onChangeText(event) {
|
|
8173
|
+
this.text = this.editor.getText();
|
|
8174
|
+
}
|
|
8175
|
+
}
|
|
8176
|
+
TransactionEditArticleTextComponent.decorators = [
|
|
8177
|
+
{ type: Component, args: [{
|
|
8178
|
+
// eslint-disable-next-line @angular-eslint/component-selector
|
|
8179
|
+
selector: "transaction-edit-article-text",
|
|
8180
|
+
template: `
|
|
8181
|
+
<co-dialog #editArticleTextDialog (close)="hide()">
|
|
8182
|
+
<ng-container header>{{ subHeader }}</ng-container>
|
|
8183
|
+
<ng-container content>
|
|
8184
|
+
<div class="column-separator">
|
|
8185
|
+
<co-input-text [placeholder]="'TITLE' | localize" [(model)]="title"></co-input-text>
|
|
8186
|
+
<co-rich-text-editor
|
|
8187
|
+
#rte
|
|
8188
|
+
id="rte"
|
|
8189
|
+
[model]="text"
|
|
8190
|
+
(onChangeEvent)="onChangeText($event)"
|
|
8191
|
+
></co-rich-text-editor>
|
|
8192
|
+
</div>
|
|
8193
|
+
</ng-container>
|
|
8194
|
+
<ng-container footer>
|
|
8195
|
+
<div class="footer" fxLayout fxLayoutAlign="center center" fxLayoutGap="10px" style="margin-top:30px;">
|
|
8196
|
+
<co-button [label]="'OK' | localize" (click)="onOkClick()"></co-button>
|
|
8197
|
+
<co-button [label]="'CANCEL' | localize" (click)="onCancelClick()"></co-button>
|
|
8198
|
+
</div>
|
|
8199
|
+
</ng-container>
|
|
8200
|
+
</co-dialog>
|
|
8201
|
+
`,
|
|
8202
|
+
providers: [ToolbarService, LinkService, ImageService, HtmlEditorService],
|
|
8203
|
+
styles: [""]
|
|
8204
|
+
},] }
|
|
8205
|
+
];
|
|
8206
|
+
TransactionEditArticleTextComponent.ctorParameters = () => [
|
|
8207
|
+
{ type: TransactionService }
|
|
8208
|
+
];
|
|
8209
|
+
TransactionEditArticleTextComponent.propDecorators = {
|
|
8210
|
+
editArticleTextDialog: [{ type: ViewChild, args: ["editArticleTextDialog",] }],
|
|
8211
|
+
editor: [{ type: ViewChild, args: ["rte",] }],
|
|
8212
|
+
subHeader: [{ type: Input }],
|
|
8213
|
+
title: [{ type: Input }],
|
|
8214
|
+
text: [{ type: Input }]
|
|
8215
|
+
};
|
|
8216
|
+
|
|
8014
8217
|
class IoneServiceOrderModule {
|
|
8015
8218
|
}
|
|
8016
8219
|
IoneServiceOrderModule.decorators = [
|
|
@@ -8041,7 +8244,8 @@ IoneServiceOrderModule.decorators = [
|
|
|
8041
8244
|
TabModule,
|
|
8042
8245
|
CoreModule,
|
|
8043
8246
|
CommonModule,
|
|
8044
|
-
|
|
8247
|
+
RichTextEditorModule,
|
|
8248
|
+
CoRichTextEditorModule,
|
|
8045
8249
|
],
|
|
8046
8250
|
declarations: [
|
|
8047
8251
|
TemplateWrapperDirective,
|
|
@@ -8053,6 +8257,8 @@ IoneServiceOrderModule.decorators = [
|
|
|
8053
8257
|
TransactionOrderLinesComponent,
|
|
8054
8258
|
TransactionRelationAddressComponent,
|
|
8055
8259
|
TransactionArticleTextComponent,
|
|
8260
|
+
TransactionArticleTextOverviewComponent,
|
|
8261
|
+
TransactionEditArticleTextComponent,
|
|
8056
8262
|
TransactionSidebarRightComponent,
|
|
8057
8263
|
TransactionLineAccordionComponent,
|
|
8058
8264
|
TransactionHeaderBlockComponent,
|
|
@@ -8088,5 +8294,5 @@ IoneServiceOrderModule.decorators = [
|
|
|
8088
8294
|
* Generated bundle index. Do not edit.
|
|
8089
8295
|
*/
|
|
8090
8296
|
|
|
8091
|
-
export { IoneCheckoutComponent, IoneCheckoutModule, IoneServiceOrderComponent, IoneServiceOrderModule, IoneShoppingCartComponent, IoneShoppingCartModule, RetailTransactionCheckoutComponent as ɵa, CheckoutComponent as ɵb, ShoppingCartManagerComponent as ɵba, ShoppingCartComponent as ɵbb, ShoppingCartLineComponent as ɵbc, StockStatusIndicatorComponent as ɵbd, CharacteristicAnswerComponent as ɵbe, TemplateWrapperDirective as ɵbf, DefaultOkCancelButtonsComponent as ɵbg, ServiceOrderComponent as ɵbh, TransactionBaseComponent as ɵbi, TransactionArticleTextComponent as ɵbj, TransactionManagerComponent as ɵbk, TransactionOrderTotalsComponent as ɵbl, TransactionOrderLineViewComponent as ɵbm, TransactionOrderLinesComponent as ɵbn, TransactionRelationAddressComponent as ɵbo,
|
|
8297
|
+
export { IoneCheckoutComponent, IoneCheckoutModule, IoneServiceOrderComponent, IoneServiceOrderModule, IoneShoppingCartComponent, IoneShoppingCartModule, RetailTransactionCheckoutComponent as ɵa, CheckoutComponent as ɵb, ShoppingCartManagerComponent as ɵba, ShoppingCartComponent as ɵbb, ShoppingCartLineComponent as ɵbc, StockStatusIndicatorComponent as ɵbd, CharacteristicAnswerComponent as ɵbe, TemplateWrapperDirective as ɵbf, DefaultOkCancelButtonsComponent as ɵbg, ServiceOrderComponent as ɵbh, TransactionBaseComponent as ɵbi, TransactionArticleTextComponent as ɵbj, TransactionManagerComponent as ɵbk, TransactionOrderTotalsComponent as ɵbl, TransactionOrderLineViewComponent as ɵbm, TransactionOrderLinesComponent as ɵbn, TransactionRelationAddressComponent as ɵbo, TransactionArticleTextOverviewComponent as ɵbp, TransactionEditArticleTextComponent as ɵbq, TransactionSidebarRightComponent as ɵbr, TransactionLineAccordionComponent as ɵbs, TransactionHeaderBlockComponent as ɵbt, TransactionRelationEditComponent as ɵbu, TransactionServiceSummaryComponent as ɵbv, TransactionSummaryBlockComponent as ɵbw, TransactionServiceStatusComponent as ɵbx, TransactionOrderSummaryComponent as ɵby, TransactionPaymentInfoComponent as ɵbz, CheckoutOverviewComponent as ɵc, TransactionArticleSummaryComponent as ɵca, TransactionDeliverySummaryComponent as ɵcb, TransactionProductContractSummaryComponent as ɵcc, TransactionProductSummaryComponent as ɵcd, WarehouseComponent as ɵce, CheckoutOverviewBlockComponent as ɵd, CheckoutOverviewRelationEditComponent as ɵe, TransactionService as ɵf, IOneConnectorAdapterService as ɵg, CheckoutOverviewDeliveryEditComponent as ɵh, DictionaryService as ɵi, CheckoutLoginComponent as ɵj, OptionsService as ɵk, TransactionEventService as ɵl, CoreModule as ɵm, AppendPipe as ɵn, DeliveryTimePipe as ɵo, DateDurationPipe as ɵp, LocalizePipe as ɵq, CoCurrencyPipe as ɵr, SafeStylePipe as ɵs, ImageDisplayComponent as ɵt, NoImageDisplayComponent as ɵu, IconComponent as ɵv, CheckoutOverviewRelationAddressComponent as ɵw, CheckoutOverviewDeliveryAddressComponent as ɵx, CheckOutRelationSuggestionsListComponent as ɵy, CheckOutRelationSuggestionsListItemComponent as ɵz };
|
|
8092
8298
|
//# sourceMappingURL=colijnit-transaction.js.map
|