@seniorsistemas/angular-components 17.3.13 → 17.3.15

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.
@@ -3619,14 +3619,28 @@
3619
3619
 
3620
3620
  var countries = [
3621
3621
  { id: "br", ddi: "+55", mask: ["(00) 0000-00009", "(00) 00000-0000"] },
3622
- { id: "us", ddi: "+1", mask: "000-0000" },
3623
- { id: "co", ddi: "+57", mask: "000 0000000" },
3624
- { id: "ar", ddi: "+54", mask: "000 00-0000-0000" },
3625
- { id: "cl", ddi: "+56", mask: "(0) 0000-0000" },
3626
- { id: "py", ddi: "+595", mask: "0000 000000" },
3627
- { id: "uy", ddi: "+598", mask: "000 000 000" },
3622
+ { id: "ar", ddi: "+54", mask: ["(00) 0000-00009", "(000) 0000-0000"] },
3623
+ { id: "bo", ddi: "+591", mask: "0 000 0000" },
3624
+ { id: "cl", ddi: "+56", mask: "0 0000 0000" },
3625
+ { id: "co", ddi: "+57", mask: ["0 00000009", "000 0000000"] },
3626
+ { id: "cr", ddi: "+506", mask: "0000 0000" },
3627
+ { id: "cu", ddi: "+53", mask: ["000 0009", "00 000000"] },
3628
+ { id: "ec", ddi: "+593", mask: ["000 00009", "000 000 000"] },
3629
+ { id: "sv", ddi: "+503", mask: "0000 0000" },
3630
+ { id: "gt", ddi: "+502", mask: "0000 0000" },
3631
+ { id: "ht", ddi: "+509", mask: "0000 0000" },
3632
+ { id: "hn", ddi: "+504", mask: "0000-0000" },
3633
+ { id: "mx", ddi: "+52", mask: ["00 0000 00009", "0 00 0000 0000"] },
3634
+ { id: "ni", ddi: "+505", mask: "0000 0000" },
3635
+ { id: "pa", ddi: "+507", mask: "0000 0000" },
3636
+ { id: "py", ddi: "+595", mask: ["00 000 0009", "000 000000"] },
3637
+ { id: "pe", ddi: "+51", mask: "000 000 000" },
3638
+ { id: "do", ddi: "+1809", mask: "000 000-0000" },
3639
+ { id: "uy", ddi: "+598", mask: ["0000 00009", "0000 00000"] },
3640
+ { id: "ve", ddi: "+58", mask: "000-0000000" },
3641
+ { id: "us", ddi: "+1", mask: "000-000-0000" },
3642
+ { id: "ca", ddi: "+1", mask: "000-000-0000" },
3628
3643
  { id: "cn", ddi: "+86", mask: "000 0000 0000" },
3629
- { id: "ca", ddi: "+1", mask: "000-0000" },
3630
3644
  { id: "as", ddi: "+1684", mask: "000-0000" },
3631
3645
  { id: "ai", ddi: "+1264", mask: "000-0000" },
3632
3646
  { id: "ag", ddi: "+1268", mask: "000-0000" },
@@ -3636,7 +3650,6 @@
3636
3650
  { id: "vg", ddi: "+1284", mask: "000-0000" },
3637
3651
  { id: "ky", ddi: "+1345", mask: "000-0000" },
3638
3652
  { id: "dm", ddi: "+1767", mask: "000-0000" },
3639
- { id: "do", ddi: "+1809", mask: "000-0000" },
3640
3653
  { id: "gd", ddi: "+1473", mask: "000-0000" },
3641
3654
  { id: "gu", ddi: "+1671", mask: "000-0000" },
3642
3655
  { id: "jm", ddi: "+1876", mask: "000-0000" },
@@ -3654,7 +3667,6 @@
3654
3667
  { id: "af", ddi: "+93", mask: "000 000 0000" },
3655
3668
  { id: "al", ddi: "+355", mask: "000 000 0000" },
3656
3669
  { id: "hr", ddi: "+385", mask: "000 000 0000" },
3657
- { id: "ec", ddi: "+593", mask: "000 000 0000" },
3658
3670
  { id: "et", ddi: "+251", mask: "000 000 0000" },
3659
3671
  { id: "gh", ddi: "+233", mask: "000 000 0000" },
3660
3672
  { id: "gr", ddi: "+30", mask: "000 000 0000" },
@@ -3689,7 +3701,6 @@
3689
3701
  { id: "lu", ddi: "+352", mask: "000 000 000" },
3690
3702
  { id: "mk", ddi: "+389", mask: "000 000 000" },
3691
3703
  { id: "me", ddi: "+382", mask: "000 000 000" },
3692
- { id: "pe", ddi: "+51", mask: "000 000 000" },
3693
3704
  { id: "pl", ddi: "+48", mask: "000 000 000" },
3694
3705
  { id: "pt", ddi: "+351", mask: "000 000 000" },
3695
3706
  { id: "si", ddi: "+386", mask: "000 000 000" },
@@ -3729,18 +3740,14 @@
3729
3740
  { id: "ch", ddi: "+41", mask: "000 000 00 00" },
3730
3741
  { id: "vn", ddi: "+84", mask: "000 000 00 00" },
3731
3742
  { id: "bh", ddi: "+973", mask: "0000 0000" },
3732
- { id: "cr", ddi: "+506", mask: "0000 0000" },
3733
- { id: "sv", ddi: "+503", mask: "0000 0000" },
3734
3743
  { id: "ee", ddi: "+372", mask: "0000 0000" },
3735
3744
  { id: "sz", ddi: "+268", mask: "0000 0000" },
3736
- { id: "gt", ddi: "+502", mask: "0000 0000" },
3737
3745
  { id: "hk", ddi: "+852", mask: "0000 0000" },
3738
3746
  { id: "ls", ddi: "+266", mask: "0000 0000" },
3739
3747
  { id: "mo", ddi: "+853", mask: "0000 0000" },
3740
3748
  { id: "mt", ddi: "+356", mask: "0000 0000" },
3741
3749
  { id: "mu", ddi: "+230", mask: "0000 0000" },
3742
3750
  { id: "mn", ddi: "+976", mask: "0000 0000" },
3743
- { id: "ni", ddi: "+505", mask: "0000 0000" },
3744
3751
  { id: "om", ddi: "+968", mask: "0000 0000" },
3745
3752
  { id: "pg", ddi: "+675", mask: "0000 0000" },
3746
3753
  { id: "qa", ddi: "+974", mask: "0000 0000" },
@@ -3770,7 +3777,6 @@
3770
3777
  { id: "ne", ddi: "+227", mask: "00 00 00 00" },
3771
3778
  { id: "sm", ddi: "+378", mask: "00 00 00 00" },
3772
3779
  { id: "tg", ddi: "+228", mask: "00 00 00 00" },
3773
- { id: "bo", ddi: "+591", mask: "00000000" },
3774
3780
  { id: "gi", ddi: "+350", mask: "00000000" },
3775
3781
  { id: "ki", ddi: "+686", mask: "00000000" },
3776
3782
  { id: "tv", ddi: "+688", mask: "00000000" },
@@ -3787,7 +3793,6 @@
3787
3793
  { id: "mz", ddi: "+258", mask: "00 000 0000" },
3788
3794
  { id: "mm", ddi: "+95", mask: "00 000 0000" },
3789
3795
  { id: "ck", ddi: "+682", mask: "00 000" },
3790
- { id: "cu", ddi: "+53", mask: "00 000000" },
3791
3796
  { id: "cy", ddi: "+357", mask: "00 000000" },
3792
3797
  { id: "eg", ddi: "+20", mask: "0000 000 0000" },
3793
3798
  { id: "ir", ddi: "+98", mask: "0000 000 0000" },
@@ -3801,9 +3806,6 @@
3801
3806
  { id: "de", ddi: "+49", mask: "00000 0000000" },
3802
3807
  { id: "gl", ddi: "+299", mask: "00 00 00" },
3803
3808
  { id: "wf", ddi: "+681", mask: "00 00 00" },
3804
- { id: "ht", ddi: "+509", mask: "00 00 0000" },
3805
- { id: "hn", ddi: "+504", mask: "0000-0000" },
3806
- { id: "pa", ddi: "+507", mask: "0000-0000" },
3807
3809
  { id: "hu", ddi: "+36", mask: "(00) 000 0000" },
3808
3810
  { id: "in", ddi: "+91", mask: "000000 00000" },
3809
3811
  { id: "id", ddi: "+62", mask: "0000-000-000" },
@@ -3819,7 +3821,6 @@
3819
3821
  { id: "mg", ddi: "+261", mask: "000 00 000 00" },
3820
3822
  { id: "mw", ddi: "+265", mask: "000 00 000 00" },
3821
3823
  { id: "my", ddi: "+60", mask: "000-000 0000" },
3822
- { id: "mx", ddi: "+52", mask: "000 000 000 0000" },
3823
3824
  { id: "md", ddi: "+373", mask: "0000 00 000" },
3824
3825
  { id: "mc", ddi: "+377", mask: "00 00 00 00 00" },
3825
3826
  { id: "ma", ddi: "+212", mask: "0000-000000" },
@@ -3841,7 +3842,6 @@
3841
3842
  { id: "tr", ddi: "+90", mask: "0000 000 00 00" },
3842
3843
  { id: "tm", ddi: "+993", mask: "0 00 000000" },
3843
3844
  { id: "uz", ddi: "+998", mask: "0 00 000 00 00" },
3844
- { id: "ve", ddi: "+58", mask: "0000-0000000" },
3845
3845
  ];
3846
3846
 
3847
3847
 
@@ -5304,27 +5304,7 @@
5304
5304
  return result;
5305
5305
  }, {});
5306
5306
  this.formGroupDialog = new forms.FormGroup(formGroup);
5307
- this.onSearchRequest.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return (_this.loading = true); });
5308
- this.onSelect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
5309
- this.onUnselect.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () { return _this.onChange(_this.value); });
5310
- this.onClear.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
5311
- if (_this.multiple || _this.value) {
5312
- return;
5313
- }
5314
- _this.onChange(null);
5315
- });
5316
- this.onFocus.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
5317
- _this.onTouched();
5318
- });
5319
- this.onBlur.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function (event) {
5320
- var currentValue = _this.value && _this.value[_this.lookupDisplayField];
5321
- var value = event.target.value;
5322
- if (_this.multiple || !currentValue || currentValue == value)
5323
- return;
5324
- var newValue = "";
5325
- event.target.value = newValue;
5326
- _this.onChange(newValue);
5327
- });
5307
+ this._subscribeEvents();
5328
5308
  };
5329
5309
  LookupComponent.prototype.printRecordTotalizer = function () {
5330
5310
  if (this.searchTotalRecordsLabel) {
@@ -5476,15 +5456,15 @@
5476
5456
  else
5477
5457
  this.selected = [selected];
5478
5458
  };
5479
- LookupComponent.prototype.registerOnChange = function (fn) {
5459
+ LookupComponent.prototype.registerOnChange = function (onChange) {
5480
5460
  var _this = this;
5481
- this.onChange = function (val) {
5482
- _this.writeValue(val);
5483
- fn(val);
5461
+ this.onChange = function (value) {
5462
+ _this.writeValue(value);
5463
+ onChange(value);
5484
5464
  };
5485
5465
  };
5486
- LookupComponent.prototype.registerOnTouched = function (fn) {
5487
- this.onTouched = fn;
5466
+ LookupComponent.prototype.registerOnTouched = function (onTouched) {
5467
+ this.onTouched = onTouched;
5488
5468
  };
5489
5469
  LookupComponent.prototype.writeValue = function (value) {
5490
5470
  this.value = value;
@@ -5592,7 +5572,7 @@
5592
5572
  scale: this.getScale(col.scale),
5593
5573
  decimalSeparator: (_a = col.numberLocaleOptions) === null || _a === void 0 ? void 0 : _a.decimalSeparator,
5594
5574
  thousandsSeparator: (_b = col.numberLocaleOptions) === null || _b === void 0 ? void 0 : _b.thousandsSeparator,
5595
- prefix: (_c = col.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol
5575
+ prefix: (_c = col.numberLocaleOptions) === null || _c === void 0 ? void 0 : _c.currencySymbol,
5596
5576
  };
5597
5577
  };
5598
5578
  LookupComponent.prototype.onTableRowDoubleClick = function (rowData) {
@@ -5602,12 +5582,49 @@
5602
5582
  LookupComponent.prototype._setFocusFilter = function () {
5603
5583
  var _a, _b, _c;
5604
5584
  if (this.dialogVisible && !this.collapsed) {
5605
- var input = (_c = (_b = (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.contentViewChild) === null || _b === void 0 ? void 0 : _b.nativeElement) === null || _c === void 0 ? void 0 : _c.getElementsByTagName('input')[0];
5585
+ var input = (_c = (_b = (_a = this.dialog) === null || _a === void 0 ? void 0 : _a.contentViewChild) === null || _b === void 0 ? void 0 : _b.nativeElement) === null || _c === void 0 ? void 0 : _c.getElementsByTagName("input")[0];
5606
5586
  if (input) {
5607
5587
  input.focus();
5608
5588
  }
5609
5589
  }
5610
5590
  };
5591
+ LookupComponent.prototype._subscribeEvents = function () {
5592
+ var _this = this;
5593
+ this.onSearchRequest
5594
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
5595
+ .subscribe(function () { return (_this.loading = true); });
5596
+ this.onSelect
5597
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
5598
+ .subscribe(function () { return _this.onChange(_this.value); });
5599
+ this.onUnselect
5600
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
5601
+ .subscribe(function () { return _this.onChange(_this.value); });
5602
+ this.onClear
5603
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
5604
+ .subscribe(function () {
5605
+ if (_this.multiple) {
5606
+ return;
5607
+ }
5608
+ _this.onChange(null);
5609
+ });
5610
+ this.onFocus
5611
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
5612
+ .subscribe(function () {
5613
+ _this.onTouched();
5614
+ });
5615
+ this.onBlur
5616
+ .pipe(operators.takeUntil(this.ngUnsubscribe))
5617
+ .subscribe(function (event) {
5618
+ var target = event.target;
5619
+ var currentValue = _this.value && _this.value[_this.lookupDisplayField];
5620
+ var value = target.value;
5621
+ if (_this.multiple || !currentValue || currentValue == value)
5622
+ return;
5623
+ var newValue = "";
5624
+ target.value = newValue;
5625
+ _this.onChange(newValue);
5626
+ });
5627
+ };
5611
5628
  var LookupComponent_1;
5612
5629
  LookupComponent.nextId = 0;
5613
5630
  LookupComponent.ctorParameters = function () { return [