visorus-erp-core 17.1.0 → 17.2.0

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.
@@ -6,77 +6,77 @@ import * as i4 from '@angular/common';
6
6
  import { CommonModule } from '@angular/common';
7
7
  import * as i3 from 'primeng/api';
8
8
  import { ConfirmationService } from 'primeng/api';
9
- import * as i19 from 'primeng/treetable';
9
+ import * as i16 from 'primeng/treetable';
10
10
  import { TreeTableModule } from 'primeng/treetable';
11
- import * as i21 from 'primeng/button';
11
+ import * as i18 from 'primeng/button';
12
12
  import { ButtonModule } from 'primeng/button';
13
- import * as i22 from 'primeng/inputtext';
13
+ import * as i19 from 'primeng/inputtext';
14
14
  import { InputTextModule } from 'primeng/inputtext';
15
- import * as i10 from '@angular/forms';
15
+ import * as i4$1 from '@angular/forms';
16
16
  import { FormsModule } from '@angular/forms';
17
- import * as i33 from 'primeng/dialog';
17
+ import * as i30 from 'primeng/dialog';
18
18
  import { DialogModule } from 'primeng/dialog';
19
19
  import { Subject, throwError, of } from 'rxjs';
20
20
  import { catchError, tap, debounceTime } from 'rxjs/operators';
21
21
  import * as i1$1 from 'ngx-toastr';
22
22
  import { ToastrModule } from 'ngx-toastr';
23
- import * as i3$1 from '@ngx-translate/core';
23
+ import * as i2 from '@ngx-translate/core';
24
24
  import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
25
- import * as i3$2 from '@angular/platform-browser';
26
- import * as i18 from 'primeng/table';
25
+ import * as i3$1 from '@angular/platform-browser';
26
+ import * as i15 from 'primeng/table';
27
27
  import { TableModule } from 'primeng/table';
28
- import * as i27 from 'primeng/paginator';
28
+ import * as i24 from 'primeng/paginator';
29
29
  import { PaginatorModule } from 'primeng/paginator';
30
- import * as i23 from 'primeng/dropdown';
30
+ import * as i20 from 'primeng/dropdown';
31
31
  import { DropdownModule } from 'primeng/dropdown';
32
- import * as i24 from 'primeng/inputmask';
32
+ import * as i21 from 'primeng/inputmask';
33
33
  import { InputMaskModule } from 'primeng/inputmask';
34
- import * as i25 from 'primeng/messages';
34
+ import * as i22 from 'primeng/messages';
35
35
  import { MessagesModule } from 'primeng/messages';
36
- import * as i26 from 'primeng/message';
36
+ import * as i23 from 'primeng/message';
37
37
  import { MessageModule } from 'primeng/message';
38
- import * as i28 from 'primeng/confirmdialog';
38
+ import * as i25 from 'primeng/confirmdialog';
39
39
  import { ConfirmDialogModule } from 'primeng/confirmdialog';
40
- import * as i29 from 'primeng/progressbar';
40
+ import * as i26 from 'primeng/progressbar';
41
41
  import { ProgressBarModule } from 'primeng/progressbar';
42
- import * as i30 from 'primeng/tristatecheckbox';
42
+ import * as i27 from 'primeng/tristatecheckbox';
43
43
  import { TriStateCheckboxModule } from 'primeng/tristatecheckbox';
44
- import * as i31 from 'primeng/keyfilter';
44
+ import * as i28 from 'primeng/keyfilter';
45
45
  import { KeyFilterModule } from 'primeng/keyfilter';
46
- import * as i32 from 'primeng/inputswitch';
46
+ import * as i29 from 'primeng/inputswitch';
47
47
  import { InputSwitchModule } from 'primeng/inputswitch';
48
- import * as i34 from 'primeng/tabview';
48
+ import * as i31 from 'primeng/tabview';
49
49
  import { TabViewModule } from 'primeng/tabview';
50
- import * as i20 from 'primeng/calendar';
50
+ import * as i17 from 'primeng/calendar';
51
51
  import { CalendarModule } from 'primeng/calendar';
52
- import * as i35 from 'primeng/panel';
52
+ import * as i32 from 'primeng/panel';
53
53
  import { PanelModule } from 'primeng/panel';
54
- import * as i17 from 'primeng/autocomplete';
54
+ import * as i14 from 'primeng/autocomplete';
55
55
  import { AutoCompleteModule } from 'primeng/autocomplete';
56
- import * as i38 from 'primeng/fieldset';
56
+ import * as i35 from 'primeng/fieldset';
57
57
  import { FieldsetModule } from 'primeng/fieldset';
58
- import * as i16 from 'primeng/checkbox';
58
+ import * as i13 from 'primeng/checkbox';
59
59
  import { CheckboxModule } from 'primeng/checkbox';
60
- import * as i39 from 'primeng/tree';
60
+ import * as i36 from 'primeng/tree';
61
61
  import { TreeModule } from 'primeng/tree';
62
- import * as i15 from 'primeng/radiobutton';
62
+ import * as i12 from 'primeng/radiobutton';
63
63
  import { RadioButtonModule } from 'primeng/radiobutton';
64
- import * as i40 from 'primeng/tabmenu';
64
+ import * as i37 from 'primeng/tabmenu';
65
65
  import { TabMenuModule } from 'primeng/tabmenu';
66
- import * as i14 from 'primeng/overlaypanel';
66
+ import * as i11 from 'primeng/overlaypanel';
67
67
  import { OverlayPanelModule } from 'primeng/overlaypanel';
68
- import * as i13 from 'primeng/tooltip';
68
+ import * as i10 from 'primeng/tooltip';
69
69
  import { TooltipModule } from 'primeng/tooltip';
70
- import * as i12 from 'primeng/card';
70
+ import * as i9 from 'primeng/card';
71
71
  import { CardModule } from 'primeng/card';
72
- import * as i41 from 'primeng/menubar';
72
+ import * as i38 from 'primeng/menubar';
73
73
  import { MenubarModule } from 'primeng/menubar';
74
- import * as i37 from 'primeng/splitbutton';
74
+ import * as i34 from 'primeng/splitbutton';
75
75
  import { SplitButtonModule } from 'primeng/splitbutton';
76
- import * as i36 from 'primeng/toolbar';
76
+ import * as i33 from 'primeng/toolbar';
77
77
  import { ToolbarModule } from 'primeng/toolbar';
78
78
  import { TranslateHttpLoader } from '@ngx-translate/http-loader';
79
- import * as i3$3 from '@angular/router';
79
+ import * as i3$2 from '@angular/router';
80
80
 
81
81
  class GlobalService {
82
82
  constructor(http) {
@@ -194,7 +194,7 @@ class CuentaContableService extends CrudService {
194
194
  }]
195
195
  }], () => [{ type: i1.HttpClient }], null); })();
196
196
 
197
- const _c0$8 = () => ({ width: "100%" });
197
+ const _c0$6 = () => ({ width: "100%" });
198
198
  function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
199
199
  i0.ɵɵelementStart(0, "tr")(1, "th", 5);
200
200
  i0.ɵɵtext(2, "Cuenta contable");
@@ -430,9 +430,9 @@ class CclistaComponent {
430
430
  } if (rf & 2) {
431
431
  i0.ɵɵtwoWayProperty("ngModel", ctx.query);
432
432
  i0.ɵɵadvance(2);
433
- i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$8));
433
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$6));
434
434
  i0.ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
435
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i19.TreeTable, i19.TreeTableToggler, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel] }); }
435
+ } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i16.TreeTable, i16.TreeTableToggler, i18.ButtonDirective, i19.InputText, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgModel] }); }
436
436
  }
437
437
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CclistaComponent, [{
438
438
  type: Component,
@@ -446,7 +446,7 @@ class CclistaComponent {
446
446
  }] }); })();
447
447
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CclistaComponent, { className: "CclistaComponent" }); })();
448
448
 
449
- const _c0$7 = ["dialog"];
449
+ const _c0$5 = ["dialog"];
450
450
  const _c1$4 = a0 => ({ "width": a0, "min-width": "200px" });
451
451
  const _c2 = a0 => ({ "height": a0 });
452
452
  class CcseleccionDialogComponent {
@@ -471,7 +471,7 @@ class CcseleccionDialogComponent {
471
471
  }
472
472
  /** @nocollapse */ static { this.ɵfac = function CcseleccionDialogComponent_Factory(t) { return new (t || CcseleccionDialogComponent)(); }; }
473
473
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
474
- i0.ɵɵviewQuery(_c0$7, 7);
474
+ i0.ɵɵviewQuery(_c0$5, 7);
475
475
  } if (rf & 2) {
476
476
  let _t;
477
477
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialog = _t.first);
@@ -490,7 +490,7 @@ class CcseleccionDialogComponent {
490
490
  i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(15, _c2, ctx.maxH + 200 + "px"));
491
491
  i0.ɵɵadvance();
492
492
  i0.ɵɵproperty("isShared", true)("typeAccount", ctx.tipoCuenta);
493
- } }, dependencies: [i4.NgStyle, i33.Dialog, CclistaComponent] }); }
493
+ } }, dependencies: [i4.NgStyle, i30.Dialog, CclistaComponent] }); }
494
494
  }
495
495
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CcseleccionDialogComponent, [{
496
496
  type: Component,
@@ -721,7 +721,7 @@ class LoadingComponent {
721
721
  i0.ɵɵpropertyInterpolate("src", ctx.logo_loading, i0.ɵɵsanitizeUrl);
722
722
  i0.ɵɵadvance(2);
723
723
  i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(13, 2, "cargando"), "...");
724
- } }, dependencies: [i3$1.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:_ngcontent-%COMP%_spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:_ngcontent-%COMP%_a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:_ngcontent-%COMP%_b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:_ngcontent-%COMP%_c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:_ngcontent-%COMP%_d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes _ngcontent-%COMP%_a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes _ngcontent-%COMP%_b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes _ngcontent-%COMP%_c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes _ngcontent-%COMP%_d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes _ngcontent-%COMP%_spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] }); }
724
+ } }, dependencies: [i2.TranslatePipe], styles: [".loader[_ngcontent-%COMP%]{width:130px;height:170px;position:relative}.loader[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%]:after{content:\"\";width:0;height:0;position:absolute;bottom:30px;left:15px;z-index:1;transform:scale(0);transition:all .2s ease}.loader[_ngcontent-%COMP%] .txt[_ngcontent-%COMP%]{width:120%;text-align:center;position:absolute;bottom:-30px;left:-7%;font-family:Abel,sans-serif;font-size:12px;letter-spacing:2px;color:#fff}.loader[_ngcontent-%COMP%] .code[_ngcontent-%COMP%]{position:absolute;z-index:99;bottom:-3px;-webkit-animation-name:_ngcontent-%COMP%_spaceboots;-webkit-animation-duration:.8s;-webkit-transform-origin:50% 50%;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]{width:100%;height:140px;display:block;color:#fff;position:absolute;left:28px;z-index:2;overflow:hidden}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:before, .loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:after{display:inline-block;font: 14px/1 FontAwesome;font-size:inherit;text-rendering:auto;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;top:0;left:0;opacity:0}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):before{font-size:20px;content:\"\\f13b\";animation:_ngcontent-%COMP%_a 1.1s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(1):after{content:\"\\f13c\";animation:_ngcontent-%COMP%_b 1.3s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):before{content:\"\\f121\";font-size:25px;animation:_ngcontent-%COMP%_c .9s linear infinite}.loader[_ngcontent-%COMP%] .box[_ngcontent-%COMP%]:nth-child(2):after{content:\"\\f19a\";animation:_ngcontent-%COMP%_d .7s linear infinite}.loader.amit[_ngcontent-%COMP%]:before, .loader.amit[_ngcontent-%COMP%]:after{transform:scale(1)}@keyframes _ngcontent-%COMP%_a{0%{transform:translate(30px) rotate(30deg);opacity:0}to{transform:translate(30px,150px) rotate(-50deg);opacity:1}}@keyframes _ngcontent-%COMP%_b{0%{transform:translate(50px) rotate(-40deg);opacity:0}to{transform:translate(40px,150px) rotate(80deg);opacity:1}}@keyframes _ngcontent-%COMP%_c{0%{transform:translate(70px) rotate(10deg);opacity:0}to{transform:translate(60px,150px) rotate(70deg);opacity:1}}@keyframes _ngcontent-%COMP%_d{0%{transform:translate(30px) rotate(-50deg);opacity:0}to{transform:translate(45px,150px) rotate(30deg);opacity:1}}@-webkit-keyframes _ngcontent-%COMP%_spaceboots{0%{-webkit-transform:translate(2px,1px) rotate(0deg)}10%{-webkit-transform:translate(-1px,-2px) rotate(-1deg)}20%{-webkit-transform:translate(-3px,0px) rotate(1deg)}30%{-webkit-transform:translate(0px,2px) rotate(0deg)}40%{-webkit-transform:translate(1px,-1px) rotate(1deg)}50%{-webkit-transform:translate(-1px,2px) rotate(-1deg)}60%{-webkit-transform:translate(-3px,1px) rotate(0deg)}70%{-webkit-transform:translate(2px,1px) rotate(-1deg)}80%{-webkit-transform:translate(-1px,-1px) rotate(1deg)}90%{-webkit-transform:translate(2px,2px) rotate(0deg)}to{-webkit-transform:translate(1px,-2px) rotate(-1deg)}}.modal[_ngcontent-%COMP%]{z-index:2050!important}.modal-content[_ngcontent-%COMP%]{border:0px!important;background-color:#fff0!important;height:350px!important}.modal-body[_ngcontent-%COMP%]{margin-left:-7%!important}"] }); }
725
725
  }
726
726
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingComponent, [{
727
727
  type: Component,
@@ -848,7 +848,7 @@ class FileService {
848
848
  base64ToFileDowload(base64, type, name) {
849
849
  this.blobToDowload(this.base64ToBlob(base64, type), type, name);
850
850
  }
851
- /** @nocollapse */ static { this.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i3$1.TranslateService)); }; }
851
+ /** @nocollapse */ static { this.ɵfac = function FileService_Factory(t) { return new (t || FileService)(i0.ɵɵinject(i1$1.ToastrService), i0.ɵɵinject(i2.TranslateService)); }; }
852
852
  /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: FileService, factory: FileService.ɵfac, providedIn: 'root' }); }
853
853
  }
854
854
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileService, [{
@@ -856,9 +856,9 @@ class FileService {
856
856
  args: [{
857
857
  providedIn: 'root'
858
858
  }]
859
- }], () => [{ type: i1$1.ToastrService }, { type: i3$1.TranslateService }], null); })();
859
+ }], () => [{ type: i1$1.ToastrService }, { type: i2.TranslateService }], null); })();
860
860
 
861
- const _c0$6 = a0 => ({ "width": a0, "min-width": "200px" });
861
+ const _c0$4 = a0 => ({ "width": a0, "min-width": "200px" });
862
862
  const _c1$3 = () => ({ "overflow": "visible" });
863
863
  function PdfModalComponent_div_1_Template(rf, ctx) { if (rf & 1) {
864
864
  i0.ɵɵelementStart(0, "div", 2);
@@ -932,24 +932,24 @@ class PdfModalComponent {
932
932
  //iframe.focus();
933
933
  // iframe.contentWindow.print();
934
934
  }
935
- /** @nocollapse */ static { this.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$2.DomSanitizer)); }; }
935
+ /** @nocollapse */ static { this.ɵfac = function PdfModalComponent_Factory(t) { return new (t || PdfModalComponent)(i0.ɵɵdirectiveInject(PdfModalService), i0.ɵɵdirectiveInject(FileService), i0.ɵɵdirectiveInject(i3$1.DomSanitizer)); }; }
936
936
  /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: PdfModalComponent, selectors: [["pdf-modal"]], decls: 2, vars: 15, consts: [[3, "visibleChange", "visible", "modal", "minY", "baseZIndex", "blockScroll", "maximizable", "breakpoint", "contentStyle"], ["style", "min-height: 90vh;", 4, "ngIf"], [2, "min-height", "90vh"], [2, "width", "100%", "height", "90vh", 3, "src"]], template: function PdfModalComponent_Template(rf, ctx) { if (rf & 1) {
937
937
  i0.ɵɵelementStart(0, "p-dialog", 0);
938
938
  i0.ɵɵtwoWayListener("visibleChange", function PdfModalComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.display, $event) || (ctx.display = $event); return $event; });
939
939
  i0.ɵɵtemplate(1, PdfModalComponent_div_1_Template, 2, 1, "div", 1);
940
940
  i0.ɵɵelementEnd();
941
941
  } if (rf & 2) {
942
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$6, ctx.size + "px"));
942
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$4, ctx.size + "px"));
943
943
  i0.ɵɵtwoWayProperty("visible", ctx.display);
944
944
  i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$3));
945
945
  i0.ɵɵadvance();
946
946
  i0.ɵɵproperty("ngIf", ctx.pdfBase64);
947
- } }, dependencies: [i4.NgIf, i33.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
947
+ } }, dependencies: [i4.NgIf, i30.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
948
948
  }
949
949
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PdfModalComponent, [{
950
950
  type: Component,
951
951
  args: [{ selector: 'pdf-modal', template: "<p-dialog [(visible)]=\"display\" [modal]=\"true\" [style]=\"{'width': size+'px', 'min-width': '200px'}\" [minY]=\"70\" [baseZIndex]=\"10000\" [blockScroll]=\"true\" \n [blockScroll]=\"true\" [maximizable]=\"true\"\n [breakpoint]=\"840\" [contentStyle]=\"{'overflow':'visible'}\">\n <div *ngIf=\"pdfBase64\" style=\"min-height: 90vh;\">\n <iframe style=\"width: 100%; height: 90vh;\" [src]=\"domSanitizer.bypassSecurityTrustResourceUrl('data:application/pdf;base64,'+pdfBase64)\"></iframe>\n </div>\n</p-dialog>\n\n", styles: [".down{display:block}\n"] }]
952
- }], () => [{ type: PdfModalService }, { type: FileService }, { type: i3$2.DomSanitizer }], null); })();
952
+ }], () => [{ type: PdfModalService }, { type: FileService }, { type: i3$1.DomSanitizer }], null); })();
953
953
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PdfModalComponent, { className: "PdfModalComponent" }); })();
954
954
 
955
955
  class Usuario {
@@ -1176,7 +1176,7 @@ class AuthService {
1176
1176
  type: Output
1177
1177
  }] }); })();
1178
1178
 
1179
- const _c0$5 = () => ({ width: "50vw" });
1179
+ const _c0$3 = () => ({ width: "50vw" });
1180
1180
  const _c1$2 = () => ({ "960px": "75vw", "640px": "90vw" });
1181
1181
  function LoginModalComponent_div_3_label_4_Template(rf, ctx) { if (rf & 1) {
1182
1182
  i0.ɵɵelementStart(0, "label", 16);
@@ -1305,14 +1305,14 @@ class LoginModalComponent {
1305
1305
  i0.ɵɵtemplate(3, LoginModalComponent_div_3_Template, 16, 3, "div", 5)(4, LoginModalComponent_div_4_Template, 6, 1, "div", 5);
1306
1306
  i0.ɵɵelementEnd();
1307
1307
  } if (rf & 2) {
1308
- i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$5));
1308
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$3));
1309
1309
  i0.ɵɵtwoWayProperty("visible", ctx.modal);
1310
1310
  i0.ɵɵproperty("modal", true)("closable", false)("breakpoints", i0.ɵɵpureFunction0(9, _c1$2));
1311
1311
  i0.ɵɵadvance(3);
1312
1312
  i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
1313
1313
  i0.ɵɵadvance();
1314
1314
  i0.ɵɵproperty("ngIf", ctx.empresas.length);
1315
- } }, dependencies: [i4.NgForOf, i4.NgIf, i10.ɵNgNoValidate, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgControlStatusGroup, i10.RequiredValidator, i10.NgModel, i10.NgForm, i33.Dialog], styles: ["[_nghost-%COMP%] .p-dialog{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] }); }
1315
+ } }, dependencies: [i4.NgForOf, i4.NgIf, i4$1.ɵNgNoValidate, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgControlStatusGroup, i4$1.RequiredValidator, i4$1.NgModel, i4$1.NgForm, i30.Dialog], styles: ["[_nghost-%COMP%] .p-dialog{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] }); }
1316
1316
  }
1317
1317
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
1318
1318
  type: Component,
@@ -1335,7 +1335,7 @@ class SessionCajaService extends CrudService {
1335
1335
  }]
1336
1336
  }], () => [{ type: i1.HttpClient }], null); })();
1337
1337
 
1338
- const _c0$4 = () => ({ width: "750px" });
1338
+ const _c0$2 = () => ({ width: "750px" });
1339
1339
  function SessionCreateComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
1340
1340
  i0.ɵɵelementStart(0, "a", 4);
1341
1341
  i0.ɵɵtext(1);
@@ -1481,12 +1481,12 @@ class SessionCreateComponent {
1481
1481
  i0.ɵɵtemplate(5, SessionCreateComponent_ng_template_5_Template, 3, 2, "ng-template", 3);
1482
1482
  i0.ɵɵelementEnd();
1483
1483
  } if (rf & 2) {
1484
- i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$4));
1484
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$2));
1485
1485
  i0.ɵɵtwoWayProperty("visible", ctx.showCreateSession);
1486
1486
  i0.ɵɵproperty("modal", ctx.flagModal)("closeOnEscape", ctx.flagModal)("closable", ctx.flagModal)("blockScroll", true);
1487
1487
  i0.ɵɵadvance(2);
1488
1488
  i0.ɵɵproperty("ngIf", ctx.caja);
1489
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NumberValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog] }); }
1489
+ } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.ButtonDirective, i19.InputText, i4$1.DefaultValueAccessor, i4$1.NumberValueAccessor, i4$1.NgControlStatus, i4$1.NgModel, i30.Dialog] }); }
1490
1490
  }
1491
1491
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SessionCreateComponent, [{
1492
1492
  type: Component,
@@ -1506,62 +1506,6 @@ class SessionCreateComponent {
1506
1506
  }] }); })();
1507
1507
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SessionCreateComponent, { className: "SessionCreateComponent" }); })();
1508
1508
 
1509
- class Persona {
1510
- constructor() {
1511
- //this.estadoCivil= new EstadoCivil();
1512
- //this.genero = new Genero();
1513
- }
1514
- }
1515
-
1516
- class PersonaFisica {
1517
- constructor() {
1518
- this.datoPersona = new Persona();
1519
- this.contactos = [];
1520
- this.datoDirecciones = [];
1521
- }
1522
- }
1523
-
1524
- class PersonaMoral {
1525
- constructor() {
1526
- this.representanteLegal = new PersonaFisica();
1527
- this.contactos = [];
1528
- this.datoDirecciones = [];
1529
- }
1530
- }
1531
-
1532
- class Agente {
1533
- constructor() {
1534
- // this.catalogoTipo= new CatalogoTipo();
1535
- this.personaFisica = new PersonaFisica();
1536
- }
1537
- }
1538
-
1539
- class Cliente {
1540
- constructor() {
1541
- this.agenteCobrador = new Agente();
1542
- this.agenteVendedor = new Agente();
1543
- this.personaFisica = new PersonaFisica();
1544
- this.personaMoral = new PersonaMoral();
1545
- }
1546
- }
1547
-
1548
- class ClienteService extends CrudService {
1549
- constructor(httpCliente) {
1550
- super(httpCliente, '/cliente');
1551
- }
1552
- validar_archivos_bss(id) {
1553
- return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
1554
- }
1555
- /** @nocollapse */ static { this.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); }; }
1556
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' }); }
1557
- }
1558
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
1559
- type: Injectable,
1560
- args: [{
1561
- providedIn: 'root'
1562
- }]
1563
- }], () => [{ type: i1.HttpClient }], null); })();
1564
-
1565
1509
  class PaginateService {
1566
1510
  constructor(translate) {
1567
1511
  this.translate = translate;
@@ -1606,7 +1550,7 @@ class PaginateService {
1606
1550
  }, erro => { });
1607
1551
  return ordenar;
1608
1552
  }
1609
- /** @nocollapse */ static { this.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i3$1.TranslateService)); }; }
1553
+ /** @nocollapse */ static { this.ɵfac = function PaginateService_Factory(t) { return new (t || PaginateService)(i0.ɵɵinject(i2.TranslateService)); }; }
1610
1554
  /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: PaginateService, factory: PaginateService.ɵfac, providedIn: "root" }); }
1611
1555
  }
1612
1556
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PaginateService, [{
@@ -1614,365 +1558,7 @@ class PaginateService {
1614
1558
  args: [{
1615
1559
  providedIn: "root"
1616
1560
  }]
1617
- }], () => [{ type: i3$1.TranslateService }], null); })();
1618
-
1619
- function SelectClienteComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1620
- i0.ɵɵelementStart(0, "tr")(1, "th");
1621
- i0.ɵɵtext(2);
1622
- i0.ɵɵpipe(3, "translate");
1623
- i0.ɵɵelementEnd();
1624
- i0.ɵɵelementStart(4, "th");
1625
- i0.ɵɵtext(5);
1626
- i0.ɵɵpipe(6, "translate");
1627
- i0.ɵɵelementEnd();
1628
- i0.ɵɵelementStart(7, "th");
1629
- i0.ɵɵtext(8);
1630
- i0.ɵɵpipe(9, "translate");
1631
- i0.ɵɵelementEnd();
1632
- i0.ɵɵelementStart(10, "th");
1633
- i0.ɵɵtext(11);
1634
- i0.ɵɵpipe(12, "translate");
1635
- i0.ɵɵelementEnd();
1636
- i0.ɵɵelementStart(13, "th");
1637
- i0.ɵɵtext(14);
1638
- i0.ɵɵpipe(15, "translate");
1639
- i0.ɵɵelementEnd();
1640
- i0.ɵɵelementStart(16, "th");
1641
- i0.ɵɵtext(17);
1642
- i0.ɵɵpipe(18, "translate");
1643
- i0.ɵɵelementEnd()();
1644
- } if (rf & 2) {
1645
- i0.ɵɵadvance(2);
1646
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "clave"));
1647
- i0.ɵɵadvance(3);
1648
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "razonSocial"));
1649
- i0.ɵɵadvance(3);
1650
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
1651
- i0.ɵɵadvance(3);
1652
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "Cliente.limiteCredito"));
1653
- i0.ɵɵadvance(3);
1654
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "Cliente.plazoCredito"));
1655
- i0.ɵɵadvance(3);
1656
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "Cliente.diasPago"));
1657
- } }
1658
- function SelectClienteComponent_ng_template_8_span_6_Template(rf, ctx) { if (rf & 1) {
1659
- i0.ɵɵelementStart(0, "span");
1660
- i0.ɵɵtext(1);
1661
- i0.ɵɵpipe(2, "translate");
1662
- i0.ɵɵelementEnd();
1663
- } if (rf & 2) {
1664
- i0.ɵɵadvance();
1665
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
1666
- } }
1667
- function SelectClienteComponent_ng_template_8_span_7_Template(rf, ctx) { if (rf & 1) {
1668
- i0.ɵɵelementStart(0, "span");
1669
- i0.ɵɵtext(1);
1670
- i0.ɵɵpipe(2, "translate");
1671
- i0.ɵɵelementEnd();
1672
- } if (rf & 2) {
1673
- i0.ɵɵadvance();
1674
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
1675
- } }
1676
- function SelectClienteComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1677
- i0.ɵɵelementStart(0, "tr", 8)(1, "td");
1678
- i0.ɵɵtext(2);
1679
- i0.ɵɵelementEnd();
1680
- i0.ɵɵelementStart(3, "td");
1681
- i0.ɵɵtext(4);
1682
- i0.ɵɵelementEnd();
1683
- i0.ɵɵelementStart(5, "td");
1684
- i0.ɵɵtemplate(6, SelectClienteComponent_ng_template_8_span_6_Template, 3, 3, "span", 9)(7, SelectClienteComponent_ng_template_8_span_7_Template, 3, 3, "span", 9);
1685
- i0.ɵɵelementEnd();
1686
- i0.ɵɵelementStart(8, "td");
1687
- i0.ɵɵtext(9);
1688
- i0.ɵɵelementEnd();
1689
- i0.ɵɵelementStart(10, "td");
1690
- i0.ɵɵtext(11);
1691
- i0.ɵɵelementEnd();
1692
- i0.ɵɵelementStart(12, "td");
1693
- i0.ɵɵtext(13);
1694
- i0.ɵɵelementEnd()();
1695
- } if (rf & 2) {
1696
- const cliente_r1 = ctx.$implicit;
1697
- i0.ɵɵproperty("pSelectableRow", cliente_r1);
1698
- i0.ɵɵadvance(2);
1699
- i0.ɵɵtextInterpolate(cliente_r1.codigo);
1700
- i0.ɵɵadvance(2);
1701
- i0.ɵɵtextInterpolate(cliente_r1.descripcionRazonSocial);
1702
- i0.ɵɵadvance(2);
1703
- i0.ɵɵproperty("ngIf", cliente_r1.personaFisica);
1704
- i0.ɵɵadvance();
1705
- i0.ɵɵproperty("ngIf", cliente_r1.personaMoral);
1706
- i0.ɵɵadvance(2);
1707
- i0.ɵɵtextInterpolate(cliente_r1.limiteCredito);
1708
- i0.ɵɵadvance(2);
1709
- i0.ɵɵtextInterpolate(cliente_r1.plazoCredito);
1710
- i0.ɵɵadvance(2);
1711
- i0.ɵɵtextInterpolate(cliente_r1.diasPago);
1712
- } }
1713
- function SelectClienteComponent_ng_template_9_Template(rf, ctx) { if (rf & 1) {
1714
- i0.ɵɵelementStart(0, "tr")(1, "td", 10);
1715
- i0.ɵɵtext(2);
1716
- i0.ɵɵpipe(3, "translate");
1717
- i0.ɵɵelementEnd()();
1718
- } if (rf & 2) {
1719
- i0.ɵɵadvance(2);
1720
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "general.noRegistros"));
1721
- } }
1722
- class SelectClienteComponent {
1723
- constructor(clienteService, paginate) {
1724
- this.clienteService = clienteService;
1725
- this.paginate = paginate;
1726
- this.selectMode = 'single';
1727
- this.select = new EventEmitter();
1728
- this.ordenar = [];
1729
- this.loading = true;
1730
- }
1731
- ngOnInit() {
1732
- this.page = this.paginate.getPage();
1733
- this.page.rows = 20;
1734
- this.clientes = [];
1735
- this.ordenar = this.paginate.getOrden([
1736
- { param: 'razonZocial', label: 'razonZocial' }
1737
- ], 'es');
1738
- }
1739
- cargarDatosClientes(event = null) {
1740
- this.loading = true;
1741
- if (event) {
1742
- this.page.rows = event.rows;
1743
- this.page.offset = event.first;
1744
- }
1745
- this.clientes = [];
1746
- this.params = this.paginate.getParams(this.page);
1747
- this.params.push({ param: 'estatus', value: true });
1748
- if (this.page.filtro && this.page.filtro.trim() !== '') {
1749
- this.params.push({ param: 'filtroGeneral', value: this.page.filtro.trim() });
1750
- }
1751
- this.clienteService.getAll(this.params).subscribe((data) => {
1752
- this.page.total = data.total;
1753
- this.clientes = data.data;
1754
- this.loading = false;
1755
- }, error => {
1756
- console.error("Error al cargar clientes:", error);
1757
- this.loading = false;
1758
- });
1759
- }
1760
- aplicarFiltro() {
1761
- this.page.offset = 0;
1762
- this.cargarDatosClientes();
1763
- }
1764
- seleccionaCliente(e) {
1765
- console.log('Fila seleccionada (evento):', e);
1766
- console.log('Datos de la fila (e.data):', e.data);
1767
- console.log('Cliente seleccionado ANTES de emitir:', this.clienteSeleccionado); // Verifica si [(selection)] ya lo actualizó
1768
- this.select.emit(e.data);
1769
- this.visible = false;
1770
- console.log('Cliente seleccionado DESPUÉS de emitir (y si se actualizó por [(selection)]):', this.clienteSeleccionado);
1771
- }
1772
- cerrar() {
1773
- this.select.emit(null);
1774
- this.visible = false;
1775
- }
1776
- /** @nocollapse */ static { this.ɵfac = function SelectClienteComponent_Factory(t) { return new (t || SelectClienteComponent)(i0.ɵɵdirectiveInject(ClienteService), i0.ɵɵdirectiveInject(PaginateService)); }; }
1777
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectClienteComponent, selectors: [["select-cliente"]], inputs: { clienteSeleccionado: "clienteSeleccionado", selectMode: "selectMode", visible: "visible" }, outputs: { select: "select" }, decls: 10, vars: 18, consts: [[3, "visibleChange", "onHide", "onShow", "header", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "keyup", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "scrollHeight", "350px", 3, "onLazyLoad", "selectionChange", "onRowSelect", "value", "lazy", "paginator", "rows", "totalRecords", "selection", "selectionMode", "scrollable", "loading"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "pSelectableRow"], [4, "ngIf"], ["colspan", "6"]], template: function SelectClienteComponent_Template(rf, ctx) { if (rf & 1) {
1778
- i0.ɵɵelementStart(0, "p-dialog", 0);
1779
- i0.ɵɵpipe(1, "translate");
1780
- i0.ɵɵtwoWayListener("visibleChange", function SelectClienteComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
1781
- i0.ɵɵlistener("onHide", function SelectClienteComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrar(); })("onShow", function SelectClienteComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosClientes(); });
1782
- i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
1783
- i0.ɵɵpipe(4, "translate");
1784
- i0.ɵɵtwoWayListener("ngModelChange", function SelectClienteComponent_Template_input_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
1785
- i0.ɵɵlistener("keyup", function SelectClienteComponent_Template_input_keyup_3_listener() { return ctx.aplicarFiltro(); });
1786
- i0.ɵɵelementEnd();
1787
- i0.ɵɵelementStart(5, "button", 3);
1788
- i0.ɵɵlistener("click", function SelectClienteComponent_Template_button_click_5_listener() { return ctx.aplicarFiltro(); });
1789
- i0.ɵɵelementEnd()();
1790
- i0.ɵɵelementStart(6, "p-table", 4);
1791
- i0.ɵɵlistener("onLazyLoad", function SelectClienteComponent_Template_p_table_onLazyLoad_6_listener($event) { return ctx.cargarDatosClientes($event); });
1792
- i0.ɵɵtwoWayListener("selectionChange", function SelectClienteComponent_Template_p_table_selectionChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.clienteSeleccionado, $event) || (ctx.clienteSeleccionado = $event); return $event; });
1793
- i0.ɵɵlistener("onRowSelect", function SelectClienteComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionaCliente($event); });
1794
- i0.ɵɵtemplate(7, SelectClienteComponent_ng_template_7_Template, 19, 18, "ng-template", 5)(8, SelectClienteComponent_ng_template_8_Template, 14, 8, "ng-template", 6)(9, SelectClienteComponent_ng_template_9_Template, 4, 3, "ng-template", 7);
1795
- i0.ɵɵelementEnd()();
1796
- } if (rf & 2) {
1797
- i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 14, "Seleccionar cliente "));
1798
- i0.ɵɵtwoWayProperty("visible", ctx.visible);
1799
- i0.ɵɵadvance(3);
1800
- i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 16, "buscar"), "...");
1801
- i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
1802
- i0.ɵɵadvance(3);
1803
- i0.ɵɵpropertyInterpolate("selectionMode", ctx.selectMode);
1804
- i0.ɵɵproperty("value", ctx.clientes)("lazy", true)("paginator", true)("rows", ctx.page.rows)("totalRecords", ctx.page.total);
1805
- i0.ɵɵtwoWayProperty("selection", ctx.clienteSeleccionado);
1806
- i0.ɵɵproperty("scrollable", true)("loading", ctx.loading);
1807
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslatePipe], encapsulation: 2 }); }
1808
- }
1809
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectClienteComponent, [{
1810
- type: Component,
1811
- args: [{ selector: 'select-cliente', template: "<p-dialog header=\"{{ 'Seleccionar cliente ' | translate }}\" [(visible)]=\"visible\" (onHide)=\"cerrar()\"\n (onShow)=\"cargarDatosClientes()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"aplicarFiltro()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"aplicarFiltro()\"></button>\n </div>\n\n <p-table\n [value]=\"clientes\"\n dataKey=\"id\" [lazy]=\"true\"\n (onLazyLoad)=\"cargarDatosClientes($event)\"\n [paginator]=\"true\"\n [rows]=\"page.rows\"\n [totalRecords]=\"page.total\"\n [(selection)]=\"clienteSeleccionado\"\n selectionMode=\"{{selectMode}}\"\n (onRowSelect)=\"seleccionaCliente($event)\"\n [scrollable]=\"true\" scrollHeight=\"350px\"\n [loading]=\"loading\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'Cliente.limiteCredito' | translate}}</th>\n <th>{{'Cliente.plazoCredito' | translate}}</th>\n <th>{{'Cliente.diasPago' | translate}}</th>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"body\" let-cliente>\n <tr [pSelectableRow]=\"cliente\"> \n <td>{{cliente.codigo}}</td>\n <td>{{cliente.descripcionRazonSocial}}</td>\n <td>\n <span *ngIf=\"cliente.personaFisica\">{{'fisico'| translate}}</span>\n <span *ngIf=\"cliente.personaMoral\">{{'moral'| translate}}</span>\n </td>\n <td>{{cliente.limiteCredito}}</td>\n <td>{{cliente.plazoCredito}}</td>\n <td>{{cliente.diasPago}}</td>\n </tr>\n </ng-template>\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td colspan=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n</p-table>\n \n</p-dialog>" }]
1812
- }], () => [{ type: ClienteService }, { type: PaginateService }], { clienteSeleccionado: [{
1813
- type: Input
1814
- }], selectMode: [{
1815
- type: Input
1816
- }], visible: [{
1817
- type: Input
1818
- }], select: [{
1819
- type: Output
1820
- }] }); })();
1821
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectClienteComponent, { className: "SelectClienteComponent" }); })();
1822
-
1823
- class ClasificadorTipo {
1824
- constructor() { }
1825
- }
1826
-
1827
- class Proveedor {
1828
- constructor() {
1829
- this.personaMoral = new PersonaMoral();
1830
- this.catalogoTipo = new ClasificadorTipo();
1831
- this.clasificadorTipo = new ClasificadorTipo();
1832
- this.personaFisica = new PersonaFisica();
1833
- }
1834
- }
1835
-
1836
- class ProveedorService extends CrudService {
1837
- constructor(httpClient) {
1838
- super(httpClient, '/proveedor');
1839
- this.httpClient = httpClient;
1840
- }
1841
- /** @nocollapse */ static { this.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
1842
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' }); }
1843
- }
1844
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
1845
- type: Injectable,
1846
- args: [{
1847
- providedIn: 'root'
1848
- }]
1849
- }], () => [{ type: i1.HttpClient }], null); })();
1850
-
1851
- const _c0$3 = () => [10, 25, 50, 100, 500];
1852
- function SelectProveedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
1853
- i0.ɵɵelementStart(0, "tr")(1, "th");
1854
- i0.ɵɵtext(2);
1855
- i0.ɵɵpipe(3, "translate");
1856
- i0.ɵɵelementEnd();
1857
- i0.ɵɵelementStart(4, "th");
1858
- i0.ɵɵtext(5);
1859
- i0.ɵɵpipe(6, "translate");
1860
- i0.ɵɵelementEnd();
1861
- i0.ɵɵelementStart(7, "th");
1862
- i0.ɵɵtext(8);
1863
- i0.ɵɵpipe(9, "translate");
1864
- i0.ɵɵelementEnd()();
1865
- } if (rf & 2) {
1866
- i0.ɵɵadvance(2);
1867
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "clave"));
1868
- i0.ɵɵadvance(3);
1869
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 5, "razonSocial"));
1870
- i0.ɵɵadvance(3);
1871
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 7, "rfc"));
1872
- } }
1873
- function SelectProveedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
1874
- i0.ɵɵelementStart(0, "tr")(1, "td");
1875
- i0.ɵɵtext(2);
1876
- i0.ɵɵelementEnd();
1877
- i0.ɵɵelementStart(3, "td");
1878
- i0.ɵɵtext(4);
1879
- i0.ɵɵelementEnd();
1880
- i0.ɵɵelementStart(5, "td");
1881
- i0.ɵɵtext(6);
1882
- i0.ɵɵelementEnd()();
1883
- } if (rf & 2) {
1884
- const proveedor_r1 = ctx.rowData;
1885
- i0.ɵɵadvance(2);
1886
- i0.ɵɵtextInterpolate(proveedor_r1.codigo);
1887
- i0.ɵɵadvance(2);
1888
- i0.ɵɵtextInterpolate(proveedor_r1.descripcionRazonSocial);
1889
- i0.ɵɵadvance(2);
1890
- i0.ɵɵtextInterpolate(proveedor_r1.descripcionRfc);
1891
- } }
1892
- class SelectProveedorComponent {
1893
- constructor(proveedorService, paginanateService, translate) {
1894
- this.proveedorService = proveedorService;
1895
- this.paginanateService = paginanateService;
1896
- this.translate = translate;
1897
- this.params = [];
1898
- this.ordenar = [];
1899
- this.visible = false;
1900
- this.proveedorSeleccionado = new Proveedor();
1901
- this.select = new EventEmitter();
1902
- this.translate.get('es');
1903
- }
1904
- ngOnInit() {
1905
- this.page = this.paginanateService.getPage();
1906
- let arg = [];
1907
- this.ordenar = this.paginanateService.getOrden(arg, 'es');
1908
- this.proveedores = [];
1909
- }
1910
- cargarDatosProveedores() {
1911
- this.params = this.paginanateService.getParams(this.page);
1912
- this.params.push({ param: 'estatus', value: true });
1913
- this.proveedorService.getAll(this.params).subscribe((data) => {
1914
- this.proveedores = data.data;
1915
- });
1916
- }
1917
- pagina(e) {
1918
- this.page.rows = e.rows;
1919
- this.page.offset = e.first;
1920
- this.cargarDatosProveedores();
1921
- }
1922
- cerrarModal() {
1923
- this.select.emit(null);
1924
- this.visible = false;
1925
- }
1926
- seleccionarProveedor(e) {
1927
- this.select.emit(e.data);
1928
- this.visible = false;
1929
- }
1930
- /** @nocollapse */ static { this.ɵfac = function SelectProveedorComponent_Factory(t) { return new (t || SelectProveedorComponent)(i0.ɵɵdirectiveInject(ProveedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); }; }
1931
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectProveedorComponent, selectors: [["select-proveedor"]], inputs: { visible: "visible", proveedorSeleccionado: "proveedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 17, consts: [[3, "visibleChange", "onHide", "onShow", "header", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "change", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["selectionMode", "single", "scrollHeight", "350px", 3, "valueChange", "selectionChange", "onRowSelect", "value", "selection", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"]], template: function SelectProveedorComponent_Template(rf, ctx) { if (rf & 1) {
1932
- i0.ɵɵelementStart(0, "p-dialog", 0);
1933
- i0.ɵɵpipe(1, "translate");
1934
- i0.ɵɵtwoWayListener("visibleChange", function SelectProveedorComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
1935
- i0.ɵɵlistener("onHide", function SelectProveedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectProveedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosProveedores(); });
1936
- i0.ɵɵelementStart(2, "div", 1)(3, "input", 2);
1937
- i0.ɵɵpipe(4, "translate");
1938
- i0.ɵɵtwoWayListener("ngModelChange", function SelectProveedorComponent_Template_input_ngModelChange_3_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
1939
- i0.ɵɵlistener("change", function SelectProveedorComponent_Template_input_change_3_listener() { return ctx.cargarDatosProveedores(); });
1940
- i0.ɵɵelementEnd();
1941
- i0.ɵɵelementStart(5, "button", 3);
1942
- i0.ɵɵlistener("click", function SelectProveedorComponent_Template_button_click_5_listener() { return ctx.cargarDatosProveedores(); });
1943
- i0.ɵɵelementEnd()();
1944
- i0.ɵɵelementStart(6, "p-table", 4);
1945
- i0.ɵɵtwoWayListener("valueChange", function SelectProveedorComponent_Template_p_table_valueChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.proveedores, $event) || (ctx.proveedores = $event); return $event; })("selectionChange", function SelectProveedorComponent_Template_p_table_selectionChange_6_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.proveedorSeleccionado, $event) || (ctx.proveedorSeleccionado = $event); return $event; });
1946
- i0.ɵɵlistener("onRowSelect", function SelectProveedorComponent_Template_p_table_onRowSelect_6_listener($event) { return ctx.seleccionarProveedor($event); });
1947
- i0.ɵɵtemplate(7, SelectProveedorComponent_ng_template_7_Template, 10, 9, "ng-template", 5)(8, SelectProveedorComponent_ng_template_8_Template, 7, 3, "ng-template", 6);
1948
- i0.ɵɵelementEnd();
1949
- i0.ɵɵelementStart(9, "p-paginator", 7);
1950
- i0.ɵɵlistener("onPageChange", function SelectProveedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
1951
- i0.ɵɵelementEnd()();
1952
- } if (rf & 2) {
1953
- i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 12, "ArticuloProveedor.proveedores"));
1954
- i0.ɵɵtwoWayProperty("visible", ctx.visible);
1955
- i0.ɵɵadvance(3);
1956
- i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(4, 14, "buscar"), "...");
1957
- i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
1958
- i0.ɵɵadvance(3);
1959
- i0.ɵɵtwoWayProperty("value", ctx.proveedores)("selection", ctx.proveedorSeleccionado);
1960
- i0.ɵɵproperty("scrollable", true);
1961
- i0.ɵɵadvance(3);
1962
- i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(16, _c0$3));
1963
- } }, dependencies: [i3.PrimeTemplate, i18.Table, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslatePipe], encapsulation: 2 }); }
1964
- }
1965
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectProveedorComponent, [{
1966
- type: Component,
1967
- args: [{ selector: 'select-proveedor', template: "<p-dialog header=\"{{'ArticuloProveedor.proveedores' | translate}}\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosProveedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (change)=\"cargarDatosProveedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosProveedores()\"></button>\n </div>\n\n <p-table [(value)]=\"proveedores\" selectionMode=\"single\" [(selection)]=\"proveedorSeleccionado\"\n [scrollable]=\"true\" scrollHeight=\"350px\" (onRowSelect)=\"seleccionarProveedor($event)\">\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'clave' | translate}}</th>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n </tr>\n </ng-template> \n <ng-template pTemplate=\"body\" let-proveedor=\"rowData\">\n <tr>\n <td>{{proveedor.codigo}}</td>\n <td>{{proveedor.descripcionRazonSocial}}</td>\n <td>{{proveedor.descripcionRfc}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
1968
- }], () => [{ type: ProveedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], { visible: [{
1969
- type: Input
1970
- }], proveedorSeleccionado: [{
1971
- type: Input
1972
- }], select: [{
1973
- type: Output
1974
- }] }); })();
1975
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectProveedorComponent, { className: "SelectProveedorComponent" }); })();
1561
+ }], () => [{ type: i2.TranslateService }], null); })();
1976
1562
 
1977
1563
  class AlmacenService extends CrudService {
1978
1564
  constructor(httpClient) {
@@ -2038,7 +1624,7 @@ class ArticuloInformacionService extends CrudService {
2038
1624
  }]
2039
1625
  }], () => [{ type: i1.HttpClient }], null); })();
2040
1626
 
2041
- const _c0$2 = a0 => ({ "width": a0, "min-width": "200px" });
1627
+ const _c0$1 = a0 => ({ "width": a0, "min-width": "200px" });
2042
1628
  const _c1$1 = () => ({ width: "600px" });
2043
1629
  function SeleccionArticuloInformacionComponent_ng_template_2_col_1_Template(rf, ctx) { if (rf & 1) {
2044
1630
  i0.ɵɵelement(0, "col");
@@ -2159,14 +1745,14 @@ class SeleccionArticuloInformacionComponent {
2159
1745
  i0.ɵɵtemplate(5, SeleccionArticuloInformacionComponent_ng_template_5_Template, 2, 0, "ng-template", 5);
2160
1746
  i0.ɵɵelementEnd();
2161
1747
  } if (rf & 2) {
2162
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(16, _c0$2, ctx.size + "px"));
1748
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(16, _c0$1, ctx.size + "px"));
2163
1749
  i0.ɵɵproperty("header", ctx.titulo);
2164
1750
  i0.ɵɵtwoWayProperty("visible", ctx.showModal);
2165
1751
  i0.ɵɵproperty("modal", ctx.flagModal)("minY", 70)("baseZIndex", 10000)("draggable", false)("blockScroll", true)("maximizable", true)("breakpoint", 640);
2166
1752
  i0.ɵɵadvance();
2167
1753
  i0.ɵɵstyleMap(i0.ɵɵpureFunction0(18, _c1$1));
2168
1754
  i0.ɵɵproperty("columns", ctx.columnsData)("value", ctx.existenciasList)("scrollable", true);
2169
- } }, dependencies: [i4.NgForOf, i3.PrimeTemplate, i18.Table, i18.ResizableColumn, i21.ButtonDirective, i33.Dialog] }); }
1755
+ } }, dependencies: [i4.NgForOf, i3.PrimeTemplate, i15.Table, i15.ResizableColumn, i18.ButtonDirective, i30.Dialog] }); }
2170
1756
  }
2171
1757
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionArticuloInformacionComponent, [{
2172
1758
  type: Component,
@@ -2180,7 +1766,7 @@ class SeleccionArticuloInformacionComponent {
2180
1766
  }] }); })();
2181
1767
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionArticuloInformacionComponent, { className: "SeleccionArticuloInformacionComponent" }); })();
2182
1768
 
2183
- const _c0$1 = a0 => ({ "width": a0, "min-width": "200px" });
1769
+ const _c0 = a0 => ({ "width": a0, "min-width": "200px" });
2184
1770
  const _c1 = () => [10, 25, 50, 100, 500];
2185
1771
  function SeleccionaArticuloComponent_option_23_Template(rf, ctx) { if (rf & 1) {
2186
1772
  i0.ɵɵelementStart(0, "option", 22);
@@ -2610,7 +2196,7 @@ class SeleccionaArticuloComponent {
2610
2196
  i0.ɵɵelementEnd()();
2611
2197
  i0.ɵɵtemplate(29, SeleccionaArticuloComponent_lib_seleccion_articulo_informacion_29_Template, 1, 2, "lib-seleccion-articulo-informacion", 21);
2612
2198
  } if (rf & 2) {
2613
- i0.ɵɵstyleMap(i0.ɵɵpureFunction1(21, _c0$1, ctx.size + "px"));
2199
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction1(21, _c0, ctx.size + "px"));
2614
2200
  i0.ɵɵpropertyInterpolate("header", i0.ɵɵpipeBind1(1, 19, "Articulos"));
2615
2201
  i0.ɵɵtwoWayProperty("visible", ctx.showArticulos);
2616
2202
  i0.ɵɵproperty("maximizable", true)("baseZIndex", 10000)("blockScroll", true)("minY", 70);
@@ -2628,7 +2214,7 @@ class SeleccionaArticuloComponent {
2628
2214
  i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(23, _c1));
2629
2215
  i0.ɵɵadvance();
2630
2216
  i0.ɵɵproperty("ngIf", ctx.showModalInformacion);
2631
- } }, dependencies: [i4.NgForOf, i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.NgSelectOption, i10.ɵNgSelectMultipleOption, i10.DefaultValueAccessor, i10.SelectControlValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i3$1.TranslateDirective, SeleccionArticuloInformacionComponent, i4.DecimalPipe, i4.CurrencyPipe, i3$1.TranslatePipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] }); }
2217
+ } }, dependencies: [i4.NgForOf, i4.NgIf, i3.PrimeTemplate, i15.Table, i15.SelectableRow, i18.ButtonDirective, i19.InputText, i24.Paginator, i4$1.NgSelectOption, i4$1.ɵNgSelectMultipleOption, i4$1.DefaultValueAccessor, i4$1.SelectControlValueAccessor, i4$1.NgControlStatus, i4$1.NgModel, i30.Dialog, i2.TranslateDirective, SeleccionArticuloInformacionComponent, i4.DecimalPipe, i4.CurrencyPipe, i2.TranslatePipe], styles: ["tr[_ngcontent-%COMP%]:hover{background-color:#34a835!important;color:#fff!important}table[_ngcontent-%COMP%]{position:absolute}"] }); }
2632
2218
  }
2633
2219
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SeleccionaArticuloComponent, [{
2634
2220
  type: Component,
@@ -2648,222 +2234,13 @@ class SeleccionaArticuloComponent {
2648
2234
  }] }); })();
2649
2235
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SeleccionaArticuloComponent, { className: "SeleccionaArticuloComponent" }); })();
2650
2236
 
2651
- class AcreedorService extends CrudService {
2652
- constructor(httpClient) {
2653
- super(httpClient, 'acreedor');
2654
- this.httpClient = httpClient;
2655
- }
2656
- /** @nocollapse */ static { this.ɵfac = function AcreedorService_Factory(t) { return new (t || AcreedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
2657
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorService, factory: AcreedorService.ɵfac, providedIn: 'root' }); }
2658
- }
2659
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorService, [{
2660
- type: Injectable,
2661
- args: [{
2662
- providedIn: 'root'
2663
- }]
2664
- }], () => [{ type: i1.HttpClient }], null); })();
2665
-
2666
- const _c0 = () => [10, 25, 50, 100, 500];
2667
- function SelectAcreedorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
2668
- i0.ɵɵelementStart(0, "tr")(1, "th");
2669
- i0.ɵɵtext(2);
2670
- i0.ɵɵpipe(3, "translate");
2671
- i0.ɵɵelementEnd();
2672
- i0.ɵɵelementStart(4, "th");
2673
- i0.ɵɵtext(5);
2674
- i0.ɵɵpipe(6, "translate");
2675
- i0.ɵɵelementEnd();
2676
- i0.ɵɵelementStart(7, "th");
2677
- i0.ɵɵtext(8);
2678
- i0.ɵɵpipe(9, "translate");
2679
- i0.ɵɵelementEnd();
2680
- i0.ɵɵelementStart(10, "th");
2681
- i0.ɵɵtext(11);
2682
- i0.ɵɵpipe(12, "translate");
2683
- i0.ɵɵelementEnd();
2684
- i0.ɵɵelementStart(13, "th");
2685
- i0.ɵɵtext(14);
2686
- i0.ɵɵpipe(15, "translate");
2687
- i0.ɵɵelementEnd();
2688
- i0.ɵɵelementStart(16, "th");
2689
- i0.ɵɵtext(17);
2690
- i0.ɵɵpipe(18, "translate");
2691
- i0.ɵɵelementEnd()();
2692
- } if (rf & 2) {
2693
- i0.ɵɵadvance(2);
2694
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 6, "razonSocial"));
2695
- i0.ɵɵadvance(3);
2696
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(6, 8, "rfc"));
2697
- i0.ɵɵadvance(3);
2698
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(9, 10, "tipo"));
2699
- i0.ɵɵadvance(3);
2700
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, "atrasoDiasEntrega"));
2701
- i0.ɵɵadvance(3);
2702
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, "limiteCredito"));
2703
- i0.ɵɵadvance(3);
2704
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(18, 16, "fechaUltimaCompra"));
2705
- } }
2706
- function SelectAcreedorComponent_ng_template_7_span_6_Template(rf, ctx) { if (rf & 1) {
2707
- i0.ɵɵelementStart(0, "span");
2708
- i0.ɵɵtext(1);
2709
- i0.ɵɵpipe(2, "translate");
2710
- i0.ɵɵelementEnd();
2711
- } if (rf & 2) {
2712
- i0.ɵɵadvance();
2713
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "moral"));
2714
- } }
2715
- function SelectAcreedorComponent_ng_template_7_span_7_Template(rf, ctx) { if (rf & 1) {
2716
- i0.ɵɵelementStart(0, "span");
2717
- i0.ɵɵtext(1);
2718
- i0.ɵɵpipe(2, "translate");
2719
- i0.ɵɵelementEnd();
2720
- } if (rf & 2) {
2721
- i0.ɵɵadvance();
2722
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "fisico"));
2723
- } }
2724
- function SelectAcreedorComponent_ng_template_7_Template(rf, ctx) { if (rf & 1) {
2725
- i0.ɵɵelementStart(0, "tr", 9)(1, "td");
2726
- i0.ɵɵtext(2);
2727
- i0.ɵɵelementEnd();
2728
- i0.ɵɵelementStart(3, "td");
2729
- i0.ɵɵtext(4);
2730
- i0.ɵɵelementEnd();
2731
- i0.ɵɵelementStart(5, "td");
2732
- i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_7_span_6_Template, 3, 3, "span", 10)(7, SelectAcreedorComponent_ng_template_7_span_7_Template, 3, 3, "span", 10);
2733
- i0.ɵɵelementEnd();
2734
- i0.ɵɵelementStart(8, "td");
2735
- i0.ɵɵtext(9);
2736
- i0.ɵɵelementEnd();
2737
- i0.ɵɵelementStart(10, "td");
2738
- i0.ɵɵtext(11);
2739
- i0.ɵɵelementEnd();
2740
- i0.ɵɵelementStart(12, "td");
2741
- i0.ɵɵtext(13);
2742
- i0.ɵɵpipe(14, "date");
2743
- i0.ɵɵelementEnd()();
2744
- } if (rf & 2) {
2745
- const acreedor_r1 = ctx.$implicit;
2746
- i0.ɵɵproperty("pSelectableRow", acreedor_r1);
2747
- i0.ɵɵadvance(2);
2748
- i0.ɵɵtextInterpolate(acreedor_r1.descripcionRazonSocial);
2749
- i0.ɵɵadvance(2);
2750
- i0.ɵɵtextInterpolate(acreedor_r1.descripcionRfc);
2751
- i0.ɵɵadvance(2);
2752
- i0.ɵɵproperty("ngIf", acreedor_r1.personaMoral);
2753
- i0.ɵɵadvance();
2754
- i0.ɵɵproperty("ngIf", acreedor_r1.personaFisica);
2755
- i0.ɵɵadvance(2);
2756
- i0.ɵɵtextInterpolate(acreedor_r1.atrasoDiasEntrega);
2757
- i0.ɵɵadvance(2);
2758
- i0.ɵɵtextInterpolate(acreedor_r1.limiteCredito);
2759
- i0.ɵɵadvance(2);
2760
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(14, 8, acreedor_r1.fechaUltimaCompra, "dd/MM/yyyy"));
2761
- } }
2762
- function SelectAcreedorComponent_ng_template_8_Template(rf, ctx) { if (rf & 1) {
2763
- i0.ɵɵelementStart(0, "tr")(1, "td");
2764
- i0.ɵɵtext(2);
2765
- i0.ɵɵpipe(3, "translate");
2766
- i0.ɵɵelementEnd()();
2767
- } if (rf & 2) {
2768
- i0.ɵɵadvance();
2769
- i0.ɵɵattribute("colspan", 6);
2770
- i0.ɵɵadvance();
2771
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 2, "general.noRegistros"));
2772
- } }
2773
- class SelectAcreedorComponent {
2774
- constructor(acreedorService, paginanateService, translate) {
2775
- this.acreedorService = acreedorService;
2776
- this.paginanateService = paginanateService;
2777
- this.translate = translate;
2778
- this.params = [];
2779
- this.ordenar = [];
2780
- this.visible = false;
2781
- this.acreedorSeleccionado = new Proveedor();
2782
- this.select = new EventEmitter();
2783
- this.translate.get('es');
2784
- }
2785
- ngOnInit() {
2786
- this.page = this.paginanateService.getPage();
2787
- let arg = [];
2788
- this.ordenar = this.paginanateService.getOrden(arg, 'es');
2789
- this.acreedores = [];
2790
- }
2791
- cargarDatosAcreedores() {
2792
- this.params = this.paginanateService.getParams(this.page);
2793
- this.params.push({ param: 'estatus', value: true });
2794
- this.acreedorService.getAll(this.params).subscribe((data) => {
2795
- this.acreedores = data.data;
2796
- });
2797
- }
2798
- pagina(e) {
2799
- this.page.rows = e.rows;
2800
- this.page.offset = e.first;
2801
- this.cargarDatosAcreedores;
2802
- }
2803
- cerrarModal() {
2804
- this.select.emit(null);
2805
- this.visible = false;
2806
- }
2807
- seleccionarAcreedor(e) {
2808
- this.select.emit(e.data);
2809
- this.visible = false;
2810
- }
2811
- /** @nocollapse */ static { this.ɵfac = function SelectAcreedorComponent_Factory(t) { return new (t || SelectAcreedorComponent)(i0.ɵɵdirectiveInject(AcreedorService), i0.ɵɵdirectiveInject(PaginateService), i0.ɵɵdirectiveInject(i3$1.TranslateService)); }; }
2812
- /** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: SelectAcreedorComponent, selectors: [["select-acreedor"]], inputs: { visible: "visible", acreedorSeleccionado: "acreedorSeleccionado" }, outputs: { select: "select" }, decls: 10, vars: 14, consts: [["header", "Selecciona el acreedor", 3, "visibleChange", "onHide", "onShow", "visible"], [1, "p-inputgroup", "mt-2"], ["type", "text", "pInputText", "", "name", "filtro", 3, "ngModelChange", "keyup", "placeholder", "ngModel"], ["pButton", "", "type", "button", "icon", "pi pi-search", "styleClass", "p-button-secondary", 3, "click"], ["dataKey", "id", "selectionMode", "single", "scrollHeight", "350px", "responsiveLayout", "scroll", 3, "selectionChange", "onRowSelect", "value", "selection", "scrollable"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "emptymessage"], [3, "onPageChange", "rows", "totalRecords", "pageLinkSize", "rowsPerPageOptions"], [3, "pSelectableRow"], [4, "ngIf"]], template: function SelectAcreedorComponent_Template(rf, ctx) { if (rf & 1) {
2813
- i0.ɵɵelementStart(0, "p-dialog", 0);
2814
- i0.ɵɵtwoWayListener("visibleChange", function SelectAcreedorComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.visible, $event) || (ctx.visible = $event); return $event; });
2815
- i0.ɵɵlistener("onHide", function SelectAcreedorComponent_Template_p_dialog_onHide_0_listener() { return ctx.cerrarModal(); })("onShow", function SelectAcreedorComponent_Template_p_dialog_onShow_0_listener() { return ctx.cargarDatosAcreedores(); });
2816
- i0.ɵɵelementStart(1, "div", 1)(2, "input", 2);
2817
- i0.ɵɵpipe(3, "translate");
2818
- i0.ɵɵtwoWayListener("ngModelChange", function SelectAcreedorComponent_Template_input_ngModelChange_2_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.page.filtro, $event) || (ctx.page.filtro = $event); return $event; });
2819
- i0.ɵɵlistener("keyup", function SelectAcreedorComponent_Template_input_keyup_2_listener() { return ctx.cargarDatosAcreedores(); });
2820
- i0.ɵɵelementEnd();
2821
- i0.ɵɵelementStart(4, "button", 3);
2822
- i0.ɵɵlistener("click", function SelectAcreedorComponent_Template_button_click_4_listener() { return ctx.cargarDatosAcreedores(); });
2823
- i0.ɵɵelementEnd()();
2824
- i0.ɵɵelementStart(5, "p-table", 4);
2825
- i0.ɵɵtwoWayListener("selectionChange", function SelectAcreedorComponent_Template_p_table_selectionChange_5_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.acreedorSeleccionado, $event) || (ctx.acreedorSeleccionado = $event); return $event; });
2826
- i0.ɵɵlistener("onRowSelect", function SelectAcreedorComponent_Template_p_table_onRowSelect_5_listener($event) { return ctx.seleccionarAcreedor($event); });
2827
- i0.ɵɵtemplate(6, SelectAcreedorComponent_ng_template_6_Template, 19, 18, "ng-template", 5)(7, SelectAcreedorComponent_ng_template_7_Template, 15, 11, "ng-template", 6)(8, SelectAcreedorComponent_ng_template_8_Template, 4, 4, "ng-template", 7);
2828
- i0.ɵɵelementEnd();
2829
- i0.ɵɵelementStart(9, "p-paginator", 8);
2830
- i0.ɵɵlistener("onPageChange", function SelectAcreedorComponent_Template_p_paginator_onPageChange_9_listener($event) { return ctx.pagina($event); });
2831
- i0.ɵɵelementEnd()();
2832
- } if (rf & 2) {
2833
- i0.ɵɵtwoWayProperty("visible", ctx.visible);
2834
- i0.ɵɵadvance(2);
2835
- i0.ɵɵpropertyInterpolate1("placeholder", "", i0.ɵɵpipeBind1(3, 11, "buscar"), "...");
2836
- i0.ɵɵtwoWayProperty("ngModel", ctx.page.filtro);
2837
- i0.ɵɵadvance(3);
2838
- i0.ɵɵproperty("value", ctx.acreedores);
2839
- i0.ɵɵtwoWayProperty("selection", ctx.acreedorSeleccionado);
2840
- i0.ɵɵproperty("scrollable", true);
2841
- i0.ɵɵadvance(4);
2842
- i0.ɵɵproperty("rows", ctx.page.rows)("totalRecords", ctx.page.total)("pageLinkSize", 5)("rowsPerPageOptions", i0.ɵɵpureFunction0(13, _c0));
2843
- } }, dependencies: [i4.NgIf, i3.PrimeTemplate, i18.Table, i18.SelectableRow, i21.ButtonDirective, i22.InputText, i27.Paginator, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel, i33.Dialog, i4.DatePipe, i3$1.TranslatePipe], encapsulation: 2 }); }
2844
- }
2845
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SelectAcreedorComponent, [{
2846
- type: Component,
2847
- args: [{ selector: 'select-acreedor', template: "<p-dialog header=\"Selecciona el acreedor\" [(visible)]=\"visible\" (onHide)=\"cerrarModal()\"\n (onShow)=\"cargarDatosAcreedores()\">\n\n <div class=\"p-inputgroup mt-2\">\n <input type=\"text\" pInputText placeholder=\"{{'buscar'| translate}}...\"\n [(ngModel)]=\"page.filtro\" name=\"filtro\" (keyup)=\"cargarDatosAcreedores()\">\n <button pButton type=\"button\" icon=\"pi pi-search\" styleClass=\"p-button-secondary\" (click)=\"cargarDatosAcreedores()\"></button>\n </div>\n <p-table\n [value]=\"acreedores\"\n dataKey=\"id\" selectionMode=\"single\"\n [(selection)]=\"acreedorSeleccionado\"\n (onRowSelect)=\"seleccionarAcreedor($event)\"\n [scrollable]=\"true\"\n scrollHeight=\"350px\"\n responsiveLayout=\"scroll\" \n >\n\n <ng-template pTemplate=\"header\">\n <tr>\n <th>{{'razonSocial' | translate}}</th>\n <th>{{'rfc' | translate}}</th>\n <th>{{'tipo' | translate}}</th>\n <th>{{'atrasoDiasEntrega' | translate}}</th>\n <th>{{'limiteCredito' | translate}}</th>\n <th>{{'fechaUltimaCompra' | translate}}</th>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"body\" let-acreedor>\n <tr [pSelectableRow]=\"acreedor\">\n <td>{{acreedor.descripcionRazonSocial}}</td>\n <td>{{acreedor.descripcionRfc}}</td>\n <td>\n <span *ngIf=\"acreedor.personaMoral\">{{'moral' | translate}}</span>\n <span *ngIf=\"acreedor.personaFisica\">{{'fisico' | translate}}</span>\n </td>\n <td>{{acreedor.atrasoDiasEntrega}}</td>\n <td>{{acreedor.limiteCredito}}</td>\n <td>{{acreedor.fechaUltimaCompra | date:'dd/MM/yyyy'}}</td>\n </tr>\n </ng-template>\n\n <ng-template pTemplate=\"emptymessage\">\n <tr>\n <td [attr.colspan]=\"6\">{{'general.noRegistros' | translate}}</td>\n </tr>\n </ng-template>\n </p-table>\n\n <p-paginator [rows]=\"page.rows\" [totalRecords]=\"page.total\" [pageLinkSize]=\"5\"\n (onPageChange)=\"pagina($event)\" [rowsPerPageOptions]=\"[10,25,50,100,500]\"></p-paginator>\n\n</p-dialog>" }]
2848
- }], () => [{ type: AcreedorService }, { type: PaginateService }, { type: i3$1.TranslateService }], { visible: [{
2849
- type: Input
2850
- }], acreedorSeleccionado: [{
2851
- type: Input
2852
- }], select: [{
2853
- type: Output
2854
- }] }); })();
2855
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SelectAcreedorComponent, { className: "SelectAcreedorComponent" }); })();
2856
-
2857
2237
  const components = [
2858
2238
  LoadingComponent,
2859
2239
  LoadingScreenComponent,
2860
2240
  LoginModalComponent,
2861
2241
  PdfModalComponent,
2862
2242
  SessionCreateComponent,
2863
- SelectClienteComponent,
2864
- SelectProveedorComponent,
2865
- SeleccionaArticuloComponent,
2866
- SelectAcreedorComponent
2243
+ SeleccionaArticuloComponent
2867
2244
  ];
2868
2245
  const exportComponents = components;
2869
2246
  const exportServices = [];
@@ -2923,7 +2300,7 @@ class CoreLibModule {
2923
2300
  useFactory: HttpLoaderFactory,
2924
2301
  deps: [HttpClient]
2925
2302
  }
2926
- }), i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, TranslateModule] }); }
2303
+ }), i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); }
2927
2304
  }
2928
2305
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CoreLibModule, [{
2929
2306
  type: NgModule,
@@ -2954,7 +2331,30 @@ class CoreLibModule {
2954
2331
  exports: [components, contaComponents, primeNg, TranslateModule]
2955
2332
  }]
2956
2333
  }], null, null); })();
2957
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, FormsModule, i1$1.ToastrModule, i3$1.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SelectClienteComponent, SelectProveedorComponent, SeleccionaArticuloComponent, SelectAcreedorComponent, CclistaComponent, CcseleccionDialogComponent, i12.CardModule, i13.TooltipModule, i14.OverlayPanelModule, i15.RadioButtonModule, i16.CheckboxModule, i17.AutoCompleteModule, i18.TableModule, i19.TreeTableModule, i20.CalendarModule, i18.TableModule, i21.ButtonModule, i22.InputTextModule, i23.DropdownModule, i24.InputMaskModule, i25.MessagesModule, i26.MessageModule, i27.PaginatorModule, i28.ConfirmDialogModule, i29.ProgressBarModule, i30.TriStateCheckboxModule, i31.KeyFilterModule, i32.InputSwitchModule, i33.DialogModule, i34.TabViewModule, i35.PanelModule, i36.ToolbarModule, i37.SplitButtonModule, i38.FieldsetModule, i39.TreeModule, i40.TabMenuModule, i41.MenubarModule, TranslateModule] }); })();
2334
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CoreLibModule, { declarations: [Error404Component, LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, SeleccionArticuloInformacionComponent], imports: [CommonModule, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, FormsModule, i1$1.ToastrModule, i2.TranslateModule], exports: [LoadingComponent, LoadingScreenComponent, LoginModalComponent, PdfModalComponent, SessionCreateComponent, SeleccionaArticuloComponent, CclistaComponent, CcseleccionDialogComponent, i9.CardModule, i10.TooltipModule, i11.OverlayPanelModule, i12.RadioButtonModule, i13.CheckboxModule, i14.AutoCompleteModule, i15.TableModule, i16.TreeTableModule, i17.CalendarModule, i15.TableModule, i18.ButtonModule, i19.InputTextModule, i20.DropdownModule, i21.InputMaskModule, i22.MessagesModule, i23.MessageModule, i24.PaginatorModule, i25.ConfirmDialogModule, i26.ProgressBarModule, i27.TriStateCheckboxModule, i28.KeyFilterModule, i29.InputSwitchModule, i30.DialogModule, i31.TabViewModule, i32.PanelModule, i33.ToolbarModule, i34.SplitButtonModule, i35.FieldsetModule, i36.TreeModule, i37.TabMenuModule, i38.MenubarModule, TranslateModule] }); })();
2335
+
2336
+ class Persona {
2337
+ constructor() {
2338
+ //this.estadoCivil= new EstadoCivil();
2339
+ //this.genero = new Genero();
2340
+ }
2341
+ }
2342
+
2343
+ class PersonaFisica {
2344
+ constructor() {
2345
+ this.datoPersona = new Persona();
2346
+ this.contactos = [];
2347
+ this.datoDirecciones = [];
2348
+ }
2349
+ }
2350
+
2351
+ class PersonaMoral {
2352
+ constructor() {
2353
+ this.representanteLegal = new PersonaFisica();
2354
+ this.contactos = [];
2355
+ this.datoDirecciones = [];
2356
+ }
2357
+ }
2958
2358
 
2959
2359
  class ControlAccesoService {
2960
2360
  constructor(authService) {
@@ -3225,7 +2625,7 @@ class Authenticated {
3225
2625
  }
3226
2626
  window.location.href = host;
3227
2627
  }
3228
- /** @nocollapse */ static { this.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$3.Router)); }; }
2628
+ /** @nocollapse */ static { this.ɵfac = function Authenticated_Factory(t) { return new (t || Authenticated)(i0.ɵɵinject(AuthService), i0.ɵɵinject(ControlAccesoService), i0.ɵɵinject(i3$2.Router)); }; }
3229
2629
  /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: Authenticated, factory: Authenticated.ɵfac, providedIn: 'root' }); }
3230
2630
  }
3231
2631
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(Authenticated, [{
@@ -3233,7 +2633,7 @@ class Authenticated {
3233
2633
  args: [{
3234
2634
  providedIn: 'root'
3235
2635
  }]
3236
- }], () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$3.Router }], null); })();
2636
+ }], () => [{ type: AuthService }, { type: ControlAccesoService }, { type: i3$2.Router }], null); })();
3237
2637
 
3238
2638
  class VersionCheckService {
3239
2639
  constructor(http) {
@@ -3283,6 +2683,13 @@ class VersionCheckService {
3283
2683
  }]
3284
2684
  }], () => [{ type: i1.HttpClient }], null); })();
3285
2685
 
2686
+ class Agente {
2687
+ constructor() {
2688
+ // this.catalogoTipo= new CatalogoTipo();
2689
+ this.personaFisica = new PersonaFisica();
2690
+ }
2691
+ }
2692
+
3286
2693
  class AgenteService extends CrudService {
3287
2694
  constructor(httpClient) {
3288
2695
  super(httpClient, 'agente');
@@ -3357,6 +2764,10 @@ class CatalogoTipoService extends CrudService {
3357
2764
  }]
3358
2765
  }], () => [{ type: i1.HttpClient }], null); })();
3359
2766
 
2767
+ class ClasificadorTipo {
2768
+ constructor() { }
2769
+ }
2770
+
3360
2771
  class ClasificadorTipoService extends CrudService {
3361
2772
  constructor(http) {
3362
2773
  super(http, '/clasificadorTipo');
@@ -3389,6 +2800,15 @@ class ClaveMovimientoService extends CrudService {
3389
2800
  }]
3390
2801
  }], () => [{ type: i1.HttpClient }], null); })();
3391
2802
 
2803
+ class Cliente {
2804
+ constructor() {
2805
+ this.agenteCobrador = new Agente();
2806
+ this.agenteVendedor = new Agente();
2807
+ this.personaFisica = new PersonaFisica();
2808
+ this.personaMoral = new PersonaMoral();
2809
+ }
2810
+ }
2811
+
3392
2812
  class ClienteCuentaBanco {
3393
2813
  constructor() {
3394
2814
  this.banco = new Banco();
@@ -3408,6 +2828,23 @@ class ClienteFlete {
3408
2828
  }
3409
2829
  }
3410
2830
 
2831
+ class ClienteService extends CrudService {
2832
+ constructor(httpCliente) {
2833
+ super(httpCliente, '/cliente');
2834
+ }
2835
+ validar_archivos_bss(id) {
2836
+ return this.getHttp().get(this.getUrl('/cliente/validarClienteBss/') + id, this.buildAuth());
2837
+ }
2838
+ /** @nocollapse */ static { this.ɵfac = function ClienteService_Factory(t) { return new (t || ClienteService)(i0.ɵɵinject(i1.HttpClient)); }; }
2839
+ /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ClienteService, factory: ClienteService.ɵfac, providedIn: 'root' }); }
2840
+ }
2841
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ClienteService, [{
2842
+ type: Injectable,
2843
+ args: [{
2844
+ providedIn: 'root'
2845
+ }]
2846
+ }], () => [{ type: i1.HttpClient }], null); })();
2847
+
3411
2848
  class ClienteCuentaBancoService extends CrudService {
3412
2849
  constructor(httpClient) {
3413
2850
  super(httpClient, '/clienteCuentaBanco');
@@ -3619,6 +3056,15 @@ class PersonaFisicaService extends CrudService {
3619
3056
  }]
3620
3057
  }], () => [{ type: i1.HttpClient }], null); })();
3621
3058
 
3059
+ class Proveedor {
3060
+ constructor() {
3061
+ this.personaMoral = new PersonaMoral();
3062
+ this.catalogoTipo = new ClasificadorTipo();
3063
+ this.clasificadorTipo = new ClasificadorTipo();
3064
+ this.personaFisica = new PersonaFisica();
3065
+ }
3066
+ }
3067
+
3622
3068
  class ProveedorCuentaBanco {
3623
3069
  constructor() {
3624
3070
  this.banco = new Banco();
@@ -3634,6 +3080,21 @@ class ProveedorFlete {
3634
3080
  }
3635
3081
  }
3636
3082
 
3083
+ class ProveedorService extends CrudService {
3084
+ constructor(httpClient) {
3085
+ super(httpClient, '/proveedor');
3086
+ this.httpClient = httpClient;
3087
+ }
3088
+ /** @nocollapse */ static { this.ɵfac = function ProveedorService_Factory(t) { return new (t || ProveedorService)(i0.ɵɵinject(i1.HttpClient)); }; }
3089
+ /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: ProveedorService, factory: ProveedorService.ɵfac, providedIn: 'root' }); }
3090
+ }
3091
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProveedorService, [{
3092
+ type: Injectable,
3093
+ args: [{
3094
+ providedIn: 'root'
3095
+ }]
3096
+ }], () => [{ type: i1.HttpClient }], null); })();
3097
+
3637
3098
  class ProveedorCuentaBancoService extends CrudService {
3638
3099
  constructor(httpClient) {
3639
3100
  super(httpClient, '/proveedorCuentaBanco');
@@ -3748,25 +3209,6 @@ class TipoCatalogo {
3748
3209
  static { this.USO_CFDI = 11; }
3749
3210
  }
3750
3211
 
3751
- class AcreedorCuentaContableService extends CrudService {
3752
- constructor(httpClient) {
3753
- super(httpClient, 'acreedorCuentaContable');
3754
- this.httpClient = httpClient;
3755
- }
3756
- cuentasContables() {
3757
- let uRL = "/cuentaContable/obtieneCuentasContablesRecursivo/";
3758
- return this.httpClient.get(this.getUrl() + uRL, this.buildAuth());
3759
- }
3760
- /** @nocollapse */ static { this.ɵfac = function AcreedorCuentaContableService_Factory(t) { return new (t || AcreedorCuentaContableService)(i0.ɵɵinject(i1.HttpClient)); }; }
3761
- /** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AcreedorCuentaContableService, factory: AcreedorCuentaContableService.ɵfac, providedIn: 'root' }); }
3762
- }
3763
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AcreedorCuentaContableService, [{
3764
- type: Injectable,
3765
- args: [{
3766
- providedIn: 'root'
3767
- }]
3768
- }], () => [{ type: i1.HttpClient }], null); })();
3769
-
3770
3212
  class CuentaContableModel {
3771
3213
  constructor() {
3772
3214
  }
@@ -3786,5 +3228,5 @@ class NormaInformacionFinancieraModel {
3786
3228
  * Generated bundle index. Do not edit.
3787
3229
  */
3788
3230
 
3789
- export { AcreedorCuentaContableService, AcreedorService, Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SelectAcreedorComponent, SelectClienteComponent, SelectProveedorComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
3231
+ export { Agente, AgenteService, Almacen, AlmacenService, Auth, AuthService, Authenticated, Banco, BancoService, CanActivateGuard, CatalogoAdicionalService, CatalogoTipo, CatalogoTipoService, CclistaComponent, CcseleccionDialogComponent, ClasificadorTipo, ClasificadorTipoService, ClaveAumentoDisminucionService, ClaveMovimiento, ClaveMovimientoService, Cliente, ClienteCuentaBanco, ClienteCuentaBancoService, ClienteFlete, ClienteFleteService, ClienteService, ConfiguracionEmpresaAdministrativa, ControlAccesoService, CoreLibModule, CrudService, CuentaContableModel, DatoContacto, DatoContactoService, DatoDireccion, DatoDireccionService, Departamento, DepartamentoService, Empresa, EmpresaService, Error404Component, EstadoCivil, FileService, Flete, FleteService, FormaPago, FormaPagoService, Genero, GlobalService, HttpLoaderFactory, InitService, LoadingComponent, LoadingScreenComponent, LoadingScreenService, LoadingService, LoginModalComponent, LoginModalService, MessageService, Moneda, MonedaService, NormaInformacionFinancieraModel, PaginateService, PdfModalComponent, PdfModalService, Persona, PersonaFisica, PersonaFisicaService, PersonaMoral, PersonaMoralService, Proveedor, ProveedorCuentaBanco, ProveedorCuentaBancoService, ProveedorFlete, ProveedorFleteService, ProveedorService, SeleccionaArticuloComponent, SerieDocumento, SerieDocumentoService, SessionCajaService, SessionCreateComponent, StockService, TipoCatalogo, TipoContacto, TipoContactoService, Ubicacion, UbicacionService, Usuario, VersionCheckService, httpInterceptor };
3790
3232
  //# sourceMappingURL=visorus-erp-core.mjs.map