@colijnit/transaction 257.1.35 → 257.1.37

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.
@@ -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 = "257.1.35";
37
- this.publishDate = "27-3-2025 09:42:01";
36
+ this.symVer = "257.1.37";
37
+ this.publishDate = "27/03/2025, 15:36:28";
38
38
  }
39
39
  return Version;
40
40
  }());
@@ -21146,7 +21146,7 @@
21146
21146
  this.required = false;
21147
21147
  this.modelChange = new i0.EventEmitter();
21148
21148
  this.customerGroups = [];
21149
- this.fields = { text: "naam", value: "groepsnummer" };
21149
+ this.fields = { text: 'naam', value: 'groepsnummer' };
21150
21150
  }
21151
21151
  Object.defineProperty(CustomerGroupsComponent.prototype, "model", {
21152
21152
  get: function () {
@@ -21162,7 +21162,7 @@
21162
21162
  CustomerGroupsComponent.prototype.ngOnInit = function () {
21163
21163
  return __awaiter(this, void 0, void 0, function () {
21164
21164
  var _this = this;
21165
- return __generator(this, function (_a) {
21165
+ return __generator(this, function (_c) {
21166
21166
  this._connector.getCustomerGroups().then(function (groups) {
21167
21167
  _this.customerGroups = groups;
21168
21168
  _this._setSelectedCustomerGroup();
@@ -21177,17 +21177,19 @@
21177
21177
  };
21178
21178
  CustomerGroupsComponent.prototype._setSelectedCustomerGroup = function () {
21179
21179
  var _this = this;
21180
+ var _a, _b;
21180
21181
  if (!this.customerGroups) {
21181
21182
  return;
21182
21183
  }
21184
+ (_a = this._model) !== null && _a !== void 0 ? _a : (this._model = (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.toString());
21183
21185
  this.selectedCustomerGroup = this.customerGroups.find(function (c) { return c.groepsnummer === _this.model; });
21184
21186
  };
21185
21187
  return CustomerGroupsComponent;
21186
21188
  }());
21187
21189
  CustomerGroupsComponent.decorators = [
21188
21190
  { type: i0.Component, args: [{
21189
- selector: "relation-customer-groups",
21190
- 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 ",
21191
+ selector: 'relation-customer-groups',
21192
+ 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 ",
21191
21193
  providers: [{
21192
21194
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
21193
21195
  useExisting: i0.forwardRef(function () { return CustomerGroupsComponent; })
@@ -21203,7 +21205,7 @@
21203
21205
  required: [{ type: i0.Input }],
21204
21206
  model: [{ type: i0.Input }],
21205
21207
  modelChange: [{ type: i0.Output }],
21206
- hidden: [{ type: i0.HostBinding, args: ["class.co-transaction-hidden",] }]
21208
+ hidden: [{ type: i0.HostBinding, args: ['class.co-transaction-hidden',] }]
21207
21209
  };
21208
21210
 
21209
21211
  var CustomerLanguagesComponent = /** @class */ (function () {
@@ -21213,7 +21215,7 @@
21213
21215
  this.required = false;
21214
21216
  this.modelChange = new i0.EventEmitter();
21215
21217
  this.customerLanguages = [];
21216
- this.fields = { text: "description", value: "code" };
21218
+ this.fields = { text: 'description', value: 'code' };
21217
21219
  }
21218
21220
  Object.defineProperty(CustomerLanguagesComponent.prototype, "model", {
21219
21221
  get: function () {
@@ -21229,7 +21231,7 @@
21229
21231
  CustomerLanguagesComponent.prototype.ngOnInit = function () {
21230
21232
  return __awaiter(this, void 0, void 0, function () {
21231
21233
  var _this = this;
21232
- return __generator(this, function (_a) {
21234
+ return __generator(this, function (_c) {
21233
21235
  this._connector.getLanguages().then(function (languages) {
21234
21236
  _this.customerLanguages = languages;
21235
21237
  _this._setSelectedCustomerLanguage();
@@ -21244,17 +21246,19 @@
21244
21246
  };
21245
21247
  CustomerLanguagesComponent.prototype._setSelectedCustomerLanguage = function () {
21246
21248
  var _this = this;
21249
+ var _a, _b;
21247
21250
  if (!this.customerLanguages) {
21248
21251
  return;
21249
21252
  }
21253
+ (_a = this._model) !== null && _a !== void 0 ? _a : (this._model = (_b = this.defaultValue) === null || _b === void 0 ? void 0 : _b.toString());
21250
21254
  this.selectedCustomerLanguage = this.customerLanguages.find(function (c) { return c.code === _this.model; });
21251
21255
  };
21252
21256
  return CustomerLanguagesComponent;
21253
21257
  }());
21254
21258
  CustomerLanguagesComponent.decorators = [
21255
21259
  { type: i0.Component, args: [{
21256
- selector: "relation-customer-languages",
21257
- 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 ",
21260
+ selector: 'relation-customer-languages',
21261
+ 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 ",
21258
21262
  providers: [{
21259
21263
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
21260
21264
  useExisting: i0.forwardRef(function () { return CustomerLanguagesComponent; })
@@ -21270,7 +21274,7 @@
21270
21274
  required: [{ type: i0.Input }],
21271
21275
  model: [{ type: i0.Input }],
21272
21276
  modelChange: [{ type: i0.Output }],
21273
- hidden: [{ type: i0.HostBinding, args: ["class.co-transaction-hidden",] }]
21277
+ hidden: [{ type: i0.HostBinding, args: ['class.co-transaction-hidden',] }]
21274
21278
  };
21275
21279
 
21276
21280
  // Component that visually shows a stock status with three colored boxes.
@@ -21810,7 +21814,7 @@
21810
21814
  this.required = false;
21811
21815
  this.modelChange = new i0.EventEmitter();
21812
21816
  this.customerTitles = [];
21813
- this.fields = { text: "name", value: "titleId" };
21817
+ this.fields = { text: 'name', value: 'titleId' };
21814
21818
  }
21815
21819
  Object.defineProperty(CustomerTitlesComponent.prototype, "model", {
21816
21820
  get: function () {
@@ -21826,7 +21830,7 @@
21826
21830
  CustomerTitlesComponent.prototype.ngOnInit = function () {
21827
21831
  return __awaiter(this, void 0, void 0, function () {
21828
21832
  var _this = this;
21829
- return __generator(this, function (_a) {
21833
+ return __generator(this, function (_b) {
21830
21834
  this._connector.getTitles().then(function (titles) {
21831
21835
  _this.customerTitles = titles;
21832
21836
  _this._setSelectedCustomerTitle();
@@ -21841,17 +21845,19 @@
21841
21845
  };
21842
21846
  CustomerTitlesComponent.prototype._setSelectedCustomerTitle = function () {
21843
21847
  var _this = this;
21848
+ var _a;
21844
21849
  if (!this.customerTitles) {
21845
21850
  return;
21846
21851
  }
21852
+ (_a = this._model) !== null && _a !== void 0 ? _a : (this._model = Number(this.defaultValue));
21847
21853
  this.selectedCustomerTitle = this.customerTitles.find(function (c) { return c.titleId === _this.model; });
21848
21854
  };
21849
21855
  return CustomerTitlesComponent;
21850
21856
  }());
21851
21857
  CustomerTitlesComponent.decorators = [
21852
21858
  { type: i0.Component, args: [{
21853
- selector: "relation-customer-titles",
21854
- 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 ",
21859
+ selector: 'relation-customer-titles',
21860
+ 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 ",
21855
21861
  providers: [{
21856
21862
  provide: corecomponents_v12.SCREEN_CONFIG_ADAPTER_COMPONENT_INTERFACE_NAME,
21857
21863
  useExisting: i0.forwardRef(function () { return CustomerTitlesComponent; })
@@ -21867,7 +21873,7 @@
21867
21873
  required: [{ type: i0.Input }],
21868
21874
  model: [{ type: i0.Input }],
21869
21875
  modelChange: [{ type: i0.Output }],
21870
- hidden: [{ type: i0.HostBinding, args: ["class.co-transaction-hidden",] }]
21876
+ hidden: [{ type: i0.HostBinding, args: ['class.co-transaction-hidden',] }]
21871
21877
  };
21872
21878
 
21873
21879
  var TransactionSlaTile = /** @class */ (function () {