@colijnit/transaction 255.1.77 → 255.1.78
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 +23 -17
- package/bundles/colijnit-transaction.umd.js.map +1 -1
- package/colijnit-transaction.metadata.json +1 -1
- package/esm2015/lib/component/core/relation/customer-groups.component.js +15 -13
- package/esm2015/lib/component/core/relation/customer-languages.component.js +18 -16
- package/esm2015/lib/component/core/relation/customer-titles.component.js +18 -16
- package/esm2015/lib/transaction-version.js +3 -3
- package/fesm2015/colijnit-transaction.js +44 -38
- package/fesm2015/colijnit-transaction.js.map +1 -1
- package/lib/component/core/relation/customer-groups.component.d.ts +2 -0
- package/lib/component/core/relation/customer-languages.component.d.ts +6 -4
- package/lib/component/core/relation/customer-titles.component.d.ts +6 -4
- package/package.json +2 -2
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
function Version() {
|
|
34
34
|
this.name = "@colijnit/transaction";
|
|
35
35
|
this.description = "Colijn IT transaction package";
|
|
36
|
-
this.symVer = "255.1.
|
|
37
|
-
this.publishDate = "
|
|
36
|
+
this.symVer = "255.1.78";
|
|
37
|
+
this.publishDate = "27/03/2025, 17:19:29";
|
|
38
38
|
}
|
|
39
39
|
return Version;
|
|
40
40
|
}());
|
|
@@ -19454,7 +19454,7 @@
|
|
|
19454
19454
|
this.required = false;
|
|
19455
19455
|
this.modelChange = new i0.EventEmitter();
|
|
19456
19456
|
this.customerGroups = [];
|
|
19457
|
-
this.fields = { text:
|
|
19457
|
+
this.fields = { text: 'naam', value: 'groepsnummer' };
|
|
19458
19458
|
}
|
|
19459
19459
|
Object.defineProperty(CustomerGroupsComponent.prototype, "model", {
|
|
19460
19460
|
get: function () {
|
|
@@ -19470,7 +19470,7 @@
|
|
|
19470
19470
|
CustomerGroupsComponent.prototype.ngOnInit = function () {
|
|
19471
19471
|
return __awaiter(this, void 0, void 0, function () {
|
|
19472
19472
|
var _this = this;
|
|
19473
|
-
return __generator(this, function (
|
|
19473
|
+
return __generator(this, function (_c) {
|
|
19474
19474
|
this._connector.getCustomerGroups().then(function (groups) {
|
|
19475
19475
|
_this.customerGroups = groups;
|
|
19476
19476
|
_this._setSelectedCustomerGroup();
|
|
@@ -19485,17 +19485,19 @@
|
|
|
19485
19485
|
};
|
|
19486
19486
|
CustomerGroupsComponent.prototype._setSelectedCustomerGroup = function () {
|
|
19487
19487
|
var _this = this;
|
|
19488
|
+
var _a, _b;
|
|
19488
19489
|
if (!this.customerGroups) {
|
|
19489
19490
|
return;
|
|
19490
19491
|
}
|
|
19492
|
+
(_a = this._model) !== null && _a !== void 0 ? _a : (this._model = (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.toString());
|
|
19491
19493
|
this.selectedCustomerGroup = this.customerGroups.find(function (c) { return c.groepsnummer === _this.model; });
|
|
19492
19494
|
};
|
|
19493
19495
|
return CustomerGroupsComponent;
|
|
19494
19496
|
}());
|
|
19495
19497
|
CustomerGroupsComponent.decorators = [
|
|
19496
19498
|
{ type: i0.Component, args: [{
|
|
19497
|
-
selector:
|
|
19498
|
-
template: "\n
|
|
19499
|
+
selector: 'relation-customer-groups',
|
|
19500
|
+
template: "\n <co-list-of-values\n [model]=\"selectedCustomerGroup\"\n [readonly]=\"readonly\"\n [collection]=\"customerGroups\"\n [displayField]=\"'naam'\"\n [label]=\"'CUSTOMER_GROUP' | localize\"\n [required]=\"required\"\n (modelChange)=\"handleCustomerGroupChange($event)\"\n ></co-list-of-values>\n ",
|
|
19499
19501
|
providers: [{
|
|
19500
19502
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
19501
19503
|
useExisting: i0.forwardRef(function () { return CustomerGroupsComponent; })
|
|
@@ -19511,7 +19513,7 @@
|
|
|
19511
19513
|
required: [{ type: i0.Input }],
|
|
19512
19514
|
model: [{ type: i0.Input }],
|
|
19513
19515
|
modelChange: [{ type: i0.Output }],
|
|
19514
|
-
hidden: [{ type: i0.HostBinding, args: [
|
|
19516
|
+
hidden: [{ type: i0.HostBinding, args: ['class.co-transaction-hidden',] }]
|
|
19515
19517
|
};
|
|
19516
19518
|
|
|
19517
19519
|
var CustomerLanguagesComponent = /** @class */ (function () {
|
|
@@ -19521,7 +19523,7 @@
|
|
|
19521
19523
|
this.required = false;
|
|
19522
19524
|
this.modelChange = new i0.EventEmitter();
|
|
19523
19525
|
this.customerLanguages = [];
|
|
19524
|
-
this.fields = { text:
|
|
19526
|
+
this.fields = { text: 'description', value: 'code' };
|
|
19525
19527
|
}
|
|
19526
19528
|
Object.defineProperty(CustomerLanguagesComponent.prototype, "model", {
|
|
19527
19529
|
get: function () {
|
|
@@ -19537,7 +19539,7 @@
|
|
|
19537
19539
|
CustomerLanguagesComponent.prototype.ngOnInit = function () {
|
|
19538
19540
|
return __awaiter(this, void 0, void 0, function () {
|
|
19539
19541
|
var _this = this;
|
|
19540
|
-
return __generator(this, function (
|
|
19542
|
+
return __generator(this, function (_c) {
|
|
19541
19543
|
this._connector.getLanguages().then(function (languages) {
|
|
19542
19544
|
_this.customerLanguages = languages;
|
|
19543
19545
|
_this._setSelectedCustomerLanguage();
|
|
@@ -19552,17 +19554,19 @@
|
|
|
19552
19554
|
};
|
|
19553
19555
|
CustomerLanguagesComponent.prototype._setSelectedCustomerLanguage = function () {
|
|
19554
19556
|
var _this = this;
|
|
19557
|
+
var _a, _b;
|
|
19555
19558
|
if (!this.customerLanguages) {
|
|
19556
19559
|
return;
|
|
19557
19560
|
}
|
|
19561
|
+
(_a = this._model) !== null && _a !== void 0 ? _a : (this._model = (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.toString());
|
|
19558
19562
|
this.selectedCustomerLanguage = this.customerLanguages.find(function (c) { return c.code === _this.model; });
|
|
19559
19563
|
};
|
|
19560
19564
|
return CustomerLanguagesComponent;
|
|
19561
19565
|
}());
|
|
19562
19566
|
CustomerLanguagesComponent.decorators = [
|
|
19563
19567
|
{ type: i0.Component, args: [{
|
|
19564
|
-
selector:
|
|
19565
|
-
template: "\n
|
|
19568
|
+
selector: 'relation-customer-languages',
|
|
19569
|
+
template: "\n <co-list-of-values\n [model]=\"selectedCustomerLanguage\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [collection]=\"customerLanguages\"\n [displayField]=\"'description'\"\n [label]=\"'LANGUAGE' | localize\"\n (modelChange)=\"handleCustomerLanguageChange($event)\">\n </co-list-of-values>\n ",
|
|
19566
19570
|
providers: [{
|
|
19567
19571
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
19568
19572
|
useExisting: i0.forwardRef(function () { return CustomerLanguagesComponent; })
|
|
@@ -19578,7 +19582,7 @@
|
|
|
19578
19582
|
required: [{ type: i0.Input }],
|
|
19579
19583
|
model: [{ type: i0.Input }],
|
|
19580
19584
|
modelChange: [{ type: i0.Output }],
|
|
19581
|
-
hidden: [{ type: i0.HostBinding, args: [
|
|
19585
|
+
hidden: [{ type: i0.HostBinding, args: ['class.co-transaction-hidden',] }]
|
|
19582
19586
|
};
|
|
19583
19587
|
|
|
19584
19588
|
// Component that visually shows a stock status with three colored boxes.
|
|
@@ -20118,7 +20122,7 @@
|
|
|
20118
20122
|
this.required = false;
|
|
20119
20123
|
this.modelChange = new i0.EventEmitter();
|
|
20120
20124
|
this.customerTitles = [];
|
|
20121
|
-
this.fields = { text:
|
|
20125
|
+
this.fields = { text: 'name', value: 'titleId' };
|
|
20122
20126
|
}
|
|
20123
20127
|
Object.defineProperty(CustomerTitlesComponent.prototype, "model", {
|
|
20124
20128
|
get: function () {
|
|
@@ -20134,7 +20138,7 @@
|
|
|
20134
20138
|
CustomerTitlesComponent.prototype.ngOnInit = function () {
|
|
20135
20139
|
return __awaiter(this, void 0, void 0, function () {
|
|
20136
20140
|
var _this = this;
|
|
20137
|
-
return __generator(this, function (
|
|
20141
|
+
return __generator(this, function (_b) {
|
|
20138
20142
|
this._connector.getTitles().then(function (titles) {
|
|
20139
20143
|
_this.customerTitles = titles;
|
|
20140
20144
|
_this._setSelectedCustomerTitle();
|
|
@@ -20149,17 +20153,19 @@
|
|
|
20149
20153
|
};
|
|
20150
20154
|
CustomerTitlesComponent.prototype._setSelectedCustomerTitle = function () {
|
|
20151
20155
|
var _this = this;
|
|
20156
|
+
var _a;
|
|
20152
20157
|
if (!this.customerTitles) {
|
|
20153
20158
|
return;
|
|
20154
20159
|
}
|
|
20160
|
+
(_a = this._model) !== null && _a !== void 0 ? _a : (this._model = Number(this.defaultValue));
|
|
20155
20161
|
this.selectedCustomerTitle = this.customerTitles.find(function (c) { return c.titleId === _this.model; });
|
|
20156
20162
|
};
|
|
20157
20163
|
return CustomerTitlesComponent;
|
|
20158
20164
|
}());
|
|
20159
20165
|
CustomerTitlesComponent.decorators = [
|
|
20160
20166
|
{ type: i0.Component, args: [{
|
|
20161
|
-
selector:
|
|
20162
|
-
template: "\n
|
|
20167
|
+
selector: 'relation-customer-titles',
|
|
20168
|
+
template: "\n <co-list-of-values\n [model]=\"selectedCustomerTitle\"\n [readonly]=\"readonly\"\n [required]=\"required\"\n [collection]=\"customerTitles\"\n [displayField]=\"'name'\"\n [label]=\"'TITLE' | localize\"\n (modelChange)=\"handleCustomerTitleChange($event)\">\n </co-list-of-values>\n ",
|
|
20163
20169
|
providers: [{
|
|
20164
20170
|
provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
|
|
20165
20171
|
useExisting: i0.forwardRef(function () { return CustomerTitlesComponent; })
|
|
@@ -20175,7 +20181,7 @@
|
|
|
20175
20181
|
required: [{ type: i0.Input }],
|
|
20176
20182
|
model: [{ type: i0.Input }],
|
|
20177
20183
|
modelChange: [{ type: i0.Output }],
|
|
20178
|
-
hidden: [{ type: i0.HostBinding, args: [
|
|
20184
|
+
hidden: [{ type: i0.HostBinding, args: ['class.co-transaction-hidden',] }]
|
|
20179
20185
|
};
|
|
20180
20186
|
|
|
20181
20187
|
var CoreModule = /** @class */ (function () {
|