@esfaenza/es-pager 19.2.29 → 20.3.1

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.
@@ -26,10 +26,10 @@ class TablePagerLoc extends LocalizationService {
26
26
  super.set("en->it", "Are you sure you want to retrieve all results?", ["Si è sicuri di voler caricare tutti i risultati?"]);
27
27
  super.set("en->it", "This might slow down the page and possibly crash the entire application", ["L'operazione potrebbe rallentare la pagina fino al crash dell'applicazione"]);
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TablePagerLoc, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
30
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TablePagerLoc }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: TablePagerLoc, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
30
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: TablePagerLoc }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TablePagerLoc, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: TablePagerLoc, decorators: [{
33
33
  type: Injectable
34
34
  }], ctorParameters: () => [{ type: i0.Injector }] });
35
35
 
@@ -42,33 +42,33 @@ class TablePagerComponent {
42
42
  this.lc = lc;
43
43
  this.cdr = cdr;
44
44
  /** Dimensione di pagina attuale */
45
- this.CurrentPageSize = input(null);
45
+ this.CurrentPageSize = input(null, ...(ngDevMode ? [{ debugName: "CurrentPageSize" }] : []));
46
46
  /** View gestita, che può essere un IAppSearch o una ReportView */
47
- this.View = input();
47
+ this.View = input(...(ngDevMode ? [undefined, { debugName: "View" }] : []));
48
48
  /** Indica se deve mostrare un warning quando si cercano di solezionare come elementi da visualizzare "Tutti" */
49
- this.WarnOnAll = input(true);
49
+ this.WarnOnAll = input(true, ...(ngDevMode ? [{ debugName: "WarnOnAll" }] : []));
50
50
  /** Indica se dare la possibilità o meno di selezionare "Tutti" nelle opzioni di paginazione */
51
- this.AllSearch = input(true);
51
+ this.AllSearch = input(true, ...(ngDevMode ? [{ debugName: "AllSearch" }] : []));
52
52
  /** Placeholder che identifica il "Tutti" */
53
- this.DefaultAll = input(999999);
53
+ this.DefaultAll = input(999999, ...(ngDevMode ? [{ debugName: "DefaultAll" }] : []));
54
54
  /** Indica se attivare la modalità gruppo con stili più snelli per apparire sotto ai raggruppamenti */
55
- this.GroupMode = input(false);
55
+ this.GroupMode = input(false, ...(ngDevMode ? [{ debugName: "GroupMode" }] : []));
56
56
  /** Indica se utilizzare il conteggio dei gruppi o degli oggetti */
57
- this.GroupCount = input(false);
57
+ this.GroupCount = input(false, ...(ngDevMode ? [{ debugName: "GroupCount" }] : []));
58
58
  /** Indica il testo che va a sostituire "Oggetti Visualizzati" in caso si stia facendo qualcosa di custom, Ignorato in caso di gruppi */
59
- this.CountLabel = input(null);
59
+ this.CountLabel = input(null, ...(ngDevMode ? [{ debugName: "CountLabel" }] : []));
60
60
  /** Indica se visualizzare il numero totale di oggeti presenti */
61
- this.ShowCount = input(true);
61
+ this.ShowCount = input(true, ...(ngDevMode ? [{ debugName: "ShowCount" }] : []));
62
62
  /** Indica se visualizzare il numero totale di oggeti presenti */
63
- this.ShowPaging = input(true);
63
+ this.ShowPaging = input(true, ...(ngDevMode ? [{ debugName: "ShowPaging" }] : []));
64
64
  /** Indica il numero totale di oggeti presenti */
65
- this.PagerCount = input(undefined);
65
+ this.PagerCount = input(undefined, ...(ngDevMode ? [{ debugName: "PagerCount" }] : []));
66
66
  /** Indica se mostrare o meno il contenuto @deprecated usata solo da MatrixValuesComponent nella lib relativa */
67
- this.Hidden = input(false);
67
+ this.Hidden = input(false, ...(ngDevMode ? [{ debugName: "Hidden" }] : []));
68
68
  /** Output invocato quando il numero di elementi per pagina viene modificato da un click utente */
69
69
  this.pagingSelected = new EventEmitter();
70
70
  /** Modello su cui la select effettua operazioni di selezione */
71
- this.Model = signal(null);
71
+ this.Model = signal(null, ...(ngDevMode ? [{ debugName: "Model" }] : []));
72
72
  /** Opzioni di paginazione */
73
73
  this._pagingOptions = [10, 15, 30, 45, 100];
74
74
  this.PagingOptionsForSelect = computed(() => {
@@ -77,7 +77,7 @@ class TablePagerComponent {
77
77
  if (this.AllSearch())
78
78
  availableOptions.push(defAllValue);
79
79
  return availableOptions.map(p => { return { description: p == defAllValue ? this.lc.loc("All") : p.toString(), id: p }; });
80
- });
80
+ }, ...(ngDevMode ? [{ debugName: "PagingOptionsForSelect" }] : []));
81
81
  effect(() => {
82
82
  let vv = this.View();
83
83
  let newModel = vv ? (vv.itemsperpageoverride || 15) : this.CurrentPageSize();
@@ -110,13 +110,13 @@ class TablePagerComponent {
110
110
  this.Model.set(pageSize);
111
111
  }
112
112
  }
113
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TablePagerComponent, deps: [{ token: i1.MessageService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
114
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: TablePagerComponent, isStandalone: false, selector: "app-paging", inputs: { CurrentPageSize: { classPropertyName: "CurrentPageSize", publicName: "CurrentPageSize", isSignal: true, isRequired: false, transformFunction: null }, View: { classPropertyName: "View", publicName: "View", isSignal: true, isRequired: false, transformFunction: null }, WarnOnAll: { classPropertyName: "WarnOnAll", publicName: "WarnOnAll", isSignal: true, isRequired: false, transformFunction: null }, AllSearch: { classPropertyName: "AllSearch", publicName: "AllSearch", isSignal: true, isRequired: false, transformFunction: null }, DefaultAll: { classPropertyName: "DefaultAll", publicName: "DefaultAll", isSignal: true, isRequired: false, transformFunction: null }, GroupMode: { classPropertyName: "GroupMode", publicName: "GroupMode", isSignal: true, isRequired: false, transformFunction: null }, GroupCount: { classPropertyName: "GroupCount", publicName: "GroupCount", isSignal: true, isRequired: false, transformFunction: null }, CountLabel: { classPropertyName: "CountLabel", publicName: "CountLabel", isSignal: true, isRequired: false, transformFunction: null }, ShowCount: { classPropertyName: "ShowCount", publicName: "ShowCount", isSignal: true, isRequired: false, transformFunction: null }, ShowPaging: { classPropertyName: "ShowPaging", publicName: "ShowPaging", isSignal: true, isRequired: false, transformFunction: null }, PagerCount: { classPropertyName: "PagerCount", publicName: "PagerCount", isSignal: true, isRequired: false, transformFunction: null }, Hidden: { classPropertyName: "Hidden", publicName: "Hidden", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pagingSelected: "pagingSelected" }, ngImport: i0, template: "<div *ngIf=\"!Hidden()\" [class.est-mt-4]=\"ShowCount() && PagerCount() != -1 && !(ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1))\">\r\n <span class=\"est-fs-14\"> {{CountLabel() && !GroupMode() ? CountLabel() : ((GroupMode() ? 'Shown Groups' : 'Shown Elements') | localize : lc)}}:&nbsp;</span>\r\n <ng-container *ngIf=\"ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1)\">\r\n\r\n <p-select \r\n style=\"width: 95px\"\r\n size=\"small\"\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [options]=\"PagingOptionsForSelect()\"\r\n optionLabel=\"description\"\r\n optionValue=\"id\"\r\n [ngModel]=\"Model()\"\r\n (ngModelChange)=\"choice($event)\"\r\n />\r\n\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">&nbsp;/&nbsp;</span>\r\n </ng-container>\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">{{PagerCount() | number : '0.0-0' : lc.Locale}}</span>\r\n</div>", styles: [".est-rg-ipp-sel-all,.est-rg-ipp-sel,.est-ipp-sel-all{color:#0275d8!important;cursor:pointer;text-decoration:none;display:block;display:inline}.est-head-resizer{top:0;right:0;bottom:0;width:2px;position:absolute;cursor:col-resize;background-color:#ccc}.est-ipp-sel{color:#0275d8!important;cursor:pointer;text-decoration:none;display:block;display:inline}.est-ipp-bold{font-weight:700}.mat-paginator-page-size-select{margin:0 4px;width:50px}.mat-paginator-page-size-select .mat-form-field-wrapper{height:52px!important;margin-top:-15px!important;padding:0!important}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{margin-top:-5.5px!important}.mat-paginator-page-size-select .mat-form-field-underline{bottom:10px}.est-mt-4{margin-top:4px!important}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "size", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "fluid", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "pipe", type: i3.DecimalPipe, name: "number" }, { kind: "pipe", type: i2.LocalizePipe, name: "localize" }], viewProviders: [{ provide: LocalizationService, useClass: TablePagerLoc }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
113
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: TablePagerComponent, deps: [{ token: i1.MessageService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
114
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.24", type: TablePagerComponent, isStandalone: false, selector: "app-paging", inputs: { CurrentPageSize: { classPropertyName: "CurrentPageSize", publicName: "CurrentPageSize", isSignal: true, isRequired: false, transformFunction: null }, View: { classPropertyName: "View", publicName: "View", isSignal: true, isRequired: false, transformFunction: null }, WarnOnAll: { classPropertyName: "WarnOnAll", publicName: "WarnOnAll", isSignal: true, isRequired: false, transformFunction: null }, AllSearch: { classPropertyName: "AllSearch", publicName: "AllSearch", isSignal: true, isRequired: false, transformFunction: null }, DefaultAll: { classPropertyName: "DefaultAll", publicName: "DefaultAll", isSignal: true, isRequired: false, transformFunction: null }, GroupMode: { classPropertyName: "GroupMode", publicName: "GroupMode", isSignal: true, isRequired: false, transformFunction: null }, GroupCount: { classPropertyName: "GroupCount", publicName: "GroupCount", isSignal: true, isRequired: false, transformFunction: null }, CountLabel: { classPropertyName: "CountLabel", publicName: "CountLabel", isSignal: true, isRequired: false, transformFunction: null }, ShowCount: { classPropertyName: "ShowCount", publicName: "ShowCount", isSignal: true, isRequired: false, transformFunction: null }, ShowPaging: { classPropertyName: "ShowPaging", publicName: "ShowPaging", isSignal: true, isRequired: false, transformFunction: null }, PagerCount: { classPropertyName: "PagerCount", publicName: "PagerCount", isSignal: true, isRequired: false, transformFunction: null }, Hidden: { classPropertyName: "Hidden", publicName: "Hidden", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pagingSelected: "pagingSelected" }, ngImport: i0, template: "<div *ngIf=\"!Hidden()\" [class.est-mt-4]=\"ShowCount() && PagerCount() != -1 && !(ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1))\">\r\n <span class=\"est-fs-14\"> {{CountLabel() && !GroupMode() ? CountLabel() : ((GroupMode() ? 'Shown Groups' : 'Shown Elements') | localize : lc)}}:&nbsp;</span>\r\n <ng-container *ngIf=\"ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1)\">\r\n\r\n <p-select \r\n style=\"width: 95px\"\r\n size=\"small\"\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [options]=\"PagingOptionsForSelect()\"\r\n optionLabel=\"description\"\r\n optionValue=\"id\"\r\n [ngModel]=\"Model()\"\r\n (ngModelChange)=\"choice($event)\"\r\n />\r\n\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">&nbsp;/&nbsp;</span>\r\n </ng-container>\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">{{PagerCount() | number : '0.0-0' : lc.Locale}}</span>\r\n</div>", styles: [".est-rg-ipp-sel-all,.est-rg-ipp-sel,.est-ipp-sel-all{color:#0275d8!important;cursor:pointer;text-decoration:none;display:block;display:inline}.est-head-resizer{top:0;right:0;bottom:0;width:2px;position:absolute;cursor:col-resize;background-color:#ccc}.est-ipp-sel{color:#0275d8!important;cursor:pointer;text-decoration:none;display:block;display:inline}.est-ipp-bold{font-weight:700}.mat-paginator-page-size-select{margin:0 4px;width:50px}.mat-paginator-page-size-select .mat-form-field-wrapper{height:52px!important;margin-top:-15px!important;padding:0!important}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{margin-top:-5.5px!important}.mat-paginator-page-size-select .mat-form-field-underline{bottom:10px}.est-mt-4{margin-top:4px!important}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.Select, selector: "p-select", inputs: ["id", "scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "loadingIcon", "filterPlaceholder", "filterLocale", "variant", "inputId", "dataKey", "filterBy", "filterFields", "autofocus", "resetFilterOnHide", "checkmark", "dropdownIcon", "loading", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "size", "overlayOptions", "ariaFilterLabel", "ariaLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "focusOnHover", "selectOnFocus", "autoOptionFocus", "autofocusFilter", "fluid", "disabled", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "filterValue", "options"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear", "onLazyLoad"] }, { kind: "pipe", type: i3.DecimalPipe, name: "number" }, { kind: "pipe", type: i2.LocalizePipe, name: "localize" }], viewProviders: [{ provide: LocalizationService, useClass: TablePagerLoc }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
115
115
  }
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: TablePagerComponent, decorators: [{
116
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: TablePagerComponent, decorators: [{
117
117
  type: Component,
118
118
  args: [{ selector: "app-paging", viewProviders: [{ provide: LocalizationService, useClass: TablePagerLoc }], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div *ngIf=\"!Hidden()\" [class.est-mt-4]=\"ShowCount() && PagerCount() != -1 && !(ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1))\">\r\n <span class=\"est-fs-14\"> {{CountLabel() && !GroupMode() ? CountLabel() : ((GroupMode() ? 'Shown Groups' : 'Shown Elements') | localize : lc)}}:&nbsp;</span>\r\n <ng-container *ngIf=\"ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1)\">\r\n\r\n <p-select \r\n style=\"width: 95px\"\r\n size=\"small\"\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [options]=\"PagingOptionsForSelect()\"\r\n optionLabel=\"description\"\r\n optionValue=\"id\"\r\n [ngModel]=\"Model()\"\r\n (ngModelChange)=\"choice($event)\"\r\n />\r\n\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">&nbsp;/&nbsp;</span>\r\n </ng-container>\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">{{PagerCount() | number : '0.0-0' : lc.Locale}}</span>\r\n</div>", styles: [".est-rg-ipp-sel-all,.est-rg-ipp-sel,.est-ipp-sel-all{color:#0275d8!important;cursor:pointer;text-decoration:none;display:block;display:inline}.est-head-resizer{top:0;right:0;bottom:0;width:2px;position:absolute;cursor:col-resize;background-color:#ccc}.est-ipp-sel{color:#0275d8!important;cursor:pointer;text-decoration:none;display:block;display:inline}.est-ipp-bold{font-weight:700}.mat-paginator-page-size-select{margin:0 4px;width:50px}.mat-paginator-page-size-select .mat-form-field-wrapper{height:52px!important;margin-top:-15px!important;padding:0!important}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{margin-top:-5.5px!important}.mat-paginator-page-size-select .mat-form-field-underline{bottom:10px}.est-mt-4{margin-top:4px!important}\n"] }]
119
- }], ctorParameters: () => [{ type: i1.MessageService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }], propDecorators: { pagingSelected: [{
119
+ }], ctorParameters: () => [{ type: i1.MessageService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }], propDecorators: { CurrentPageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "CurrentPageSize", required: false }] }], View: [{ type: i0.Input, args: [{ isSignal: true, alias: "View", required: false }] }], WarnOnAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "WarnOnAll", required: false }] }], AllSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "AllSearch", required: false }] }], DefaultAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "DefaultAll", required: false }] }], GroupMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "GroupMode", required: false }] }], GroupCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "GroupCount", required: false }] }], CountLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "CountLabel", required: false }] }], ShowCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "ShowCount", required: false }] }], ShowPaging: [{ type: i0.Input, args: [{ isSignal: true, alias: "ShowPaging", required: false }] }], PagerCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "PagerCount", required: false }] }], Hidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "Hidden", required: false }] }], pagingSelected: [{
120
120
  type: Output
121
121
  }] } });
122
122
 
@@ -132,19 +132,19 @@ class EsPagerModule {
132
132
  ]
133
133
  };
134
134
  }
135
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: EsPagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
136
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: EsPagerModule, declarations: [TablePagerComponent], imports: [CommonModule,
135
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: EsPagerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
136
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.24", ngImport: i0, type: EsPagerModule, declarations: [TablePagerComponent], imports: [CommonModule,
137
137
  FormsModule,
138
138
  RouterModule,
139
139
  LocalizationModule,
140
140
  SelectModule], exports: [TablePagerComponent] }); }
141
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: EsPagerModule, imports: [CommonModule,
141
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: EsPagerModule, imports: [CommonModule,
142
142
  FormsModule,
143
143
  RouterModule,
144
144
  LocalizationModule,
145
145
  SelectModule] }); }
146
146
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: EsPagerModule, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.24", ngImport: i0, type: EsPagerModule, decorators: [{
148
148
  type: NgModule,
149
149
  args: [{
150
150
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"esfaenza-es-pager.mjs","sources":["../../../projects/es-pager/src/lib/domain/configuration/EsPagerModuleConfig.ts","../../../projects/es-pager/src/lib/components/pager/table_pager.component.loc.ts","../../../projects/es-pager/src/lib/components/pager/table_pager.component.ts","../../../projects/es-pager/src/lib/components/pager/table_pager.component.html","../../../projects/es-pager/src/lib/tokens.ts","../../../projects/es-pager/src/lib/es-pager.module.ts","../../../projects/es-pager/src/public-api.ts","../../../projects/es-pager/src/esfaenza-es-pager.ts"],"sourcesContent":["/** Modello di configurazione per L'EsTable */\r\nexport class EsPagerModuleConfig {\r\n\r\n /** Locale da utilizzare per i messaggi, supportati \"it-IT\" ed \"en-US\" */\r\n public locale?: string;\r\n /** Indica se scrivere messaggi di log a console */\r\n public debugMode?: boolean;\r\n}","import { Injectable, Injector } from \"@angular/core\";\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\n\r\n/** Classe di localizzazione per il componente **TablePagerComponent** */\r\n@Injectable()\r\nexport class TablePagerLoc extends LocalizationService {\r\n\r\n /** @ignore */\r\n constructor(injector: Injector) {\r\n super(injector);\r\n super.set(\"en->it\", \"All\", [\"Tutto\"]);\r\n super.set(\"en->it\", \"Shown Elements\", [\"Elementi visualizzati\"]);\r\n super.set(\"en->it\", \"Shown Groups\", [\"Gruppi visualizzati\"]);\r\n super.set(\"en->it\", \"Are you sure you want to retrieve all results?\", [\"Si è sicuri di voler caricare tutti i risultati?\"]);\r\n super.set(\"en->it\", \"This might slow down the page and possibly crash the entire application\", [\"L'operazione potrebbe rallentare la pagina fino al crash dell'applicazione\"]);\r\n }\r\n}","// Angular\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, input, Output, ViewEncapsulation } from \"@angular/core\";\r\nimport { signal, computed, Signal, effect, WritableSignal } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\nimport { MessageService } from \"@esfaenza/extensions\";\r\n\r\n// Applicazione\r\nimport { TablePagerLoc } from \"./table_pager.component.loc\";\r\n\r\n/** Componente che si occupa della paginazione di una tabella */\r\n@Component({\r\n selector: \"app-paging\",\r\n viewProviders: [{ provide: LocalizationService, useClass: TablePagerLoc }],\r\n styleUrls: ['./table_pager.component.scss'],\r\n templateUrl: \"./table_pager.component.html\",\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: false\r\n})\r\nexport class TablePagerComponent {\r\n\r\n /** Dimensione di pagina attuale */\r\n CurrentPageSize = input<number>(null);\r\n /** View gestita, che può essere un IAppSearch o una ReportView */\r\n View = input<any>();\r\n /** Indica se deve mostrare un warning quando si cercano di solezionare come elementi da visualizzare \"Tutti\" */\r\n WarnOnAll = input<boolean>(true);\r\n /** Indica se dare la possibilità o meno di selezionare \"Tutti\" nelle opzioni di paginazione */\r\n AllSearch = input<boolean>(true);\r\n /** Placeholder che identifica il \"Tutti\" */\r\n DefaultAll = input<number>(999999);\r\n /** Indica se attivare la modalità gruppo con stili più snelli per apparire sotto ai raggruppamenti */\r\n GroupMode = input<boolean>(false);\r\n /** Indica se utilizzare il conteggio dei gruppi o degli oggetti */\r\n GroupCount = input<boolean>(false);\r\n /** Indica il testo che va a sostituire \"Oggetti Visualizzati\" in caso si stia facendo qualcosa di custom, Ignorato in caso di gruppi */\r\n CountLabel = input<string>(null);\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n ShowCount = input<boolean>(true);\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n ShowPaging = input<boolean>(true);\r\n /** Indica il numero totale di oggeti presenti */\r\n PagerCount = input<number>(undefined);\r\n /** Indica se mostrare o meno il contenuto @deprecated usata solo da MatrixValuesComponent nella lib relativa */\r\n Hidden = input<boolean>(false);\r\n\r\n /** Output invocato quando il numero di elementi per pagina viene modificato da un click utente */\r\n @Output() pagingSelected = new EventEmitter<number>();\r\n\r\n /** @ignore */\r\n constructor(private msgExts: MessageService, public lc: LocalizationService, public cdr: ChangeDetectorRef) {\r\n effect(() => {\r\n let vv = this.View();\r\n let newModel = vv ? (vv.itemsperpageoverride || 15) : this.CurrentPageSize();\r\n this.Model.set(newModel);\r\n });\r\n }\r\n\r\n /** Modello su cui la select effettua operazioni di selezione */\r\n public Model: WritableSignal<number> = signal(null);\r\n\r\n /** Opzioni di paginazione */\r\n private _pagingOptions: number[] = [10, 15, 30, 45, 100];\r\n\r\n public PagingOptionsForSelect: Signal<{ id: number, description: string }[]> = computed(() => {\r\n let defAllValue = this.DefaultAll();\r\n let availableOptions = this._pagingOptions.filter(pOpt => pOpt == defAllValue || this.PagerCount() >= pOpt || this.PagerCount() == -1);\r\n if (this.AllSearch())\r\n availableOptions.push(defAllValue);\r\n\r\n return availableOptions.map(p => { return { description: p == defAllValue ? this.lc.loc(\"All\") : p.toString(), id: p } });\r\n });\r\n\r\n /**\r\n * Funzione richiamata dal template quando un utente clicca su un numero di paginazione.\r\n * \r\n * Cliccare 2 volte sullo stesso numero causa comunque un refresh dei dati\r\n * \r\n * @param {number} pageSize Dimensione selezionata lato UI\r\n */\r\n public choice(pageSize: number) {\r\n let prevModel = this.Model();\r\n if (pageSize == this.DefaultAll() && this.WarnOnAll) {\r\n this.msgExts.simpleWarningWithChoice(\r\n this.lc.loc(\"Are you sure you want to retrieve all results?\"),\r\n this.lc.loc(\"This might slow down the page and possibly crash the entire application\"),\r\n () => {\r\n this.pagingSelected.emit(pageSize);\r\n this.Model.set(pageSize);\r\n }, () => {\r\n // NG19, serve un extra refresh\r\n this.Model.set(pageSize);\r\n requestAnimationFrame(() => {\r\n this.Model.set(prevModel);\r\n });\r\n });\r\n }\r\n else {\r\n this.pagingSelected.emit(pageSize);\r\n this.Model.set(pageSize);\r\n }\r\n }\r\n}","<div *ngIf=\"!Hidden()\" [class.est-mt-4]=\"ShowCount() && PagerCount() != -1 && !(ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1))\">\r\n <span class=\"est-fs-14\"> {{CountLabel() && !GroupMode() ? CountLabel() : ((GroupMode() ? 'Shown Groups' : 'Shown Elements') | localize : lc)}}:&nbsp;</span>\r\n <ng-container *ngIf=\"ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1)\">\r\n\r\n <p-select \r\n style=\"width: 95px\"\r\n size=\"small\"\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [options]=\"PagingOptionsForSelect()\"\r\n optionLabel=\"description\"\r\n optionValue=\"id\"\r\n [ngModel]=\"Model()\"\r\n (ngModelChange)=\"choice($event)\"\r\n />\r\n\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">&nbsp;/&nbsp;</span>\r\n </ng-container>\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">{{PagerCount() | number : '0.0-0' : lc.Locale}}</span>\r\n</div>","import { InjectionToken } from '@angular/core';\r\n\r\n/** Token che indica se emettere log a console o meno */\r\nexport const ESP_DEBUG: InjectionToken<string> = new InjectionToken<string>('ESP_DEBUG');","import { CommonModule } from '@angular/common';\r\nimport { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RouterModule } from '@angular/router';\r\n\r\nimport { SelectModule } from 'primeng/select';\r\n\r\nimport { LocalizationModule } from '@esfaenza/localizations';\r\n\r\nimport { ESP_DEBUG } from './tokens';\r\nimport { EsPagerModuleConfig } from './domain/configuration/EsPagerModuleConfig';\r\n\r\nimport { TablePagerComponent } from './components/pager/table_pager.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule, \r\n RouterModule,\r\n LocalizationModule,\r\n SelectModule,\r\n ],\r\n declarations: [TablePagerComponent],\r\n exports: [TablePagerComponent]\r\n})\r\nexport class EsPagerModule {\r\n static forRoot(config?: EsPagerModuleConfig): ModuleWithProviders<EsPagerModule> {\r\n return {\r\n ngModule: EsPagerModule,\r\n providers: [\r\n { provide: ESP_DEBUG, useValue: config?.debugMode || false }\r\n ]\r\n };\r\n }\r\n}","/*\r\n * Public API Surface of es-pager\r\n */\r\n\r\nexport * from './lib/domain/configuration/EsPagerModuleConfig'\r\nexport * from './lib/components/pager/table_pager.component'\r\nexport * from './lib/es-pager.module';\r\n","/**\n * Generated bundle index. Do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O,CAAC,MAA4B,EAAA;QACzC,OAAO;AACL,YAAA,QAAQ,EAAE,aAAa;AACvB,YAAA,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,IAAI,KAAK;AAC3D;SACF;IACH;+GARW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAb,aAAa,EAAA,YAAA,EAAA,CAHT,mBAAmB,CAAA,EAAA,OAAA,EAAA,CANhC,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,kBAAkB;AAClB,YAAA,YAAY,aAGJ,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAElB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YATtB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,kBAAkB;YAClB,YAAY,CAAA,EAAA,CAAA,CAAA;;4FAKH,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,kBAAkB;wBAClB,YAAY;AACb,qBAAA;oBACD,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB;AAC9B,iBAAA;;;ACxBD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"esfaenza-es-pager.mjs","sources":["../../../projects/es-pager/src/lib/domain/configuration/EsPagerModuleConfig.ts","../../../projects/es-pager/src/lib/components/pager/table_pager.component.loc.ts","../../../projects/es-pager/src/lib/components/pager/table_pager.component.ts","../../../projects/es-pager/src/lib/components/pager/table_pager.component.html","../../../projects/es-pager/src/lib/tokens.ts","../../../projects/es-pager/src/lib/es-pager.module.ts","../../../projects/es-pager/src/public-api.ts","../../../projects/es-pager/src/esfaenza-es-pager.ts"],"sourcesContent":["/** Modello di configurazione per L'EsTable */\r\nexport class EsPagerModuleConfig {\r\n\r\n /** Locale da utilizzare per i messaggi, supportati \"it-IT\" ed \"en-US\" */\r\n public locale?: string;\r\n /** Indica se scrivere messaggi di log a console */\r\n public debugMode?: boolean;\r\n}","import { Injectable, Injector } from \"@angular/core\";\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\n\r\n/** Classe di localizzazione per il componente **TablePagerComponent** */\r\n@Injectable()\r\nexport class TablePagerLoc extends LocalizationService {\r\n\r\n /** @ignore */\r\n constructor(injector: Injector) {\r\n super(injector);\r\n super.set(\"en->it\", \"All\", [\"Tutto\"]);\r\n super.set(\"en->it\", \"Shown Elements\", [\"Elementi visualizzati\"]);\r\n super.set(\"en->it\", \"Shown Groups\", [\"Gruppi visualizzati\"]);\r\n super.set(\"en->it\", \"Are you sure you want to retrieve all results?\", [\"Si è sicuri di voler caricare tutti i risultati?\"]);\r\n super.set(\"en->it\", \"This might slow down the page and possibly crash the entire application\", [\"L'operazione potrebbe rallentare la pagina fino al crash dell'applicazione\"]);\r\n }\r\n}","// Angular\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, input, Output, ViewEncapsulation } from \"@angular/core\";\r\nimport { signal, computed, Signal, effect, WritableSignal } from \"@angular/core\";\r\n\r\n// Configurazioni\r\nimport { LocalizationService } from \"@esfaenza/localizations\";\r\nimport { MessageService } from \"@esfaenza/extensions\";\r\n\r\n// Applicazione\r\nimport { TablePagerLoc } from \"./table_pager.component.loc\";\r\n\r\n/** Componente che si occupa della paginazione di una tabella */\r\n@Component({\r\n selector: \"app-paging\",\r\n viewProviders: [{ provide: LocalizationService, useClass: TablePagerLoc }],\r\n styleUrls: ['./table_pager.component.scss'],\r\n templateUrl: \"./table_pager.component.html\",\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n standalone: false\r\n})\r\nexport class TablePagerComponent {\r\n\r\n /** Dimensione di pagina attuale */\r\n CurrentPageSize = input<number>(null);\r\n /** View gestita, che può essere un IAppSearch o una ReportView */\r\n View = input<any>();\r\n /** Indica se deve mostrare un warning quando si cercano di solezionare come elementi da visualizzare \"Tutti\" */\r\n WarnOnAll = input<boolean>(true);\r\n /** Indica se dare la possibilità o meno di selezionare \"Tutti\" nelle opzioni di paginazione */\r\n AllSearch = input<boolean>(true);\r\n /** Placeholder che identifica il \"Tutti\" */\r\n DefaultAll = input<number>(999999);\r\n /** Indica se attivare la modalità gruppo con stili più snelli per apparire sotto ai raggruppamenti */\r\n GroupMode = input<boolean>(false);\r\n /** Indica se utilizzare il conteggio dei gruppi o degli oggetti */\r\n GroupCount = input<boolean>(false);\r\n /** Indica il testo che va a sostituire \"Oggetti Visualizzati\" in caso si stia facendo qualcosa di custom, Ignorato in caso di gruppi */\r\n CountLabel = input<string>(null);\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n ShowCount = input<boolean>(true);\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n ShowPaging = input<boolean>(true);\r\n /** Indica il numero totale di oggeti presenti */\r\n PagerCount = input<number>(undefined);\r\n /** Indica se mostrare o meno il contenuto @deprecated usata solo da MatrixValuesComponent nella lib relativa */\r\n Hidden = input<boolean>(false);\r\n\r\n /** Output invocato quando il numero di elementi per pagina viene modificato da un click utente */\r\n @Output() pagingSelected = new EventEmitter<number>();\r\n\r\n /** @ignore */\r\n constructor(private msgExts: MessageService, public lc: LocalizationService, public cdr: ChangeDetectorRef) {\r\n effect(() => {\r\n let vv = this.View();\r\n let newModel = vv ? (vv.itemsperpageoverride || 15) : this.CurrentPageSize();\r\n this.Model.set(newModel);\r\n });\r\n }\r\n\r\n /** Modello su cui la select effettua operazioni di selezione */\r\n public Model: WritableSignal<number> = signal(null);\r\n\r\n /** Opzioni di paginazione */\r\n private _pagingOptions: number[] = [10, 15, 30, 45, 100];\r\n\r\n public PagingOptionsForSelect: Signal<{ id: number, description: string }[]> = computed(() => {\r\n let defAllValue = this.DefaultAll();\r\n let availableOptions = this._pagingOptions.filter(pOpt => pOpt == defAllValue || this.PagerCount() >= pOpt || this.PagerCount() == -1);\r\n if (this.AllSearch())\r\n availableOptions.push(defAllValue);\r\n\r\n return availableOptions.map(p => { return { description: p == defAllValue ? this.lc.loc(\"All\") : p.toString(), id: p } });\r\n });\r\n\r\n /**\r\n * Funzione richiamata dal template quando un utente clicca su un numero di paginazione.\r\n * \r\n * Cliccare 2 volte sullo stesso numero causa comunque un refresh dei dati\r\n * \r\n * @param {number} pageSize Dimensione selezionata lato UI\r\n */\r\n public choice(pageSize: number) {\r\n let prevModel = this.Model();\r\n if (pageSize == this.DefaultAll() && this.WarnOnAll) {\r\n this.msgExts.simpleWarningWithChoice(\r\n this.lc.loc(\"Are you sure you want to retrieve all results?\"),\r\n this.lc.loc(\"This might slow down the page and possibly crash the entire application\"),\r\n () => {\r\n this.pagingSelected.emit(pageSize);\r\n this.Model.set(pageSize);\r\n }, () => {\r\n // NG19, serve un extra refresh\r\n this.Model.set(pageSize);\r\n requestAnimationFrame(() => {\r\n this.Model.set(prevModel);\r\n });\r\n });\r\n }\r\n else {\r\n this.pagingSelected.emit(pageSize);\r\n this.Model.set(pageSize);\r\n }\r\n }\r\n}","<div *ngIf=\"!Hidden()\" [class.est-mt-4]=\"ShowCount() && PagerCount() != -1 && !(ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1))\">\r\n <span class=\"est-fs-14\"> {{CountLabel() && !GroupMode() ? CountLabel() : ((GroupMode() ? 'Shown Groups' : 'Shown Elements') | localize : lc)}}:&nbsp;</span>\r\n <ng-container *ngIf=\"ShowPaging() && (Model() == DefaultAll() || PagerCount() >= Model() || PagerCount() == -1)\">\r\n\r\n <p-select \r\n style=\"width: 95px\"\r\n size=\"small\"\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [options]=\"PagingOptionsForSelect()\"\r\n optionLabel=\"description\"\r\n optionValue=\"id\"\r\n [ngModel]=\"Model()\"\r\n (ngModelChange)=\"choice($event)\"\r\n />\r\n\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">&nbsp;/&nbsp;</span>\r\n </ng-container>\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount() && PagerCount() != -1\">{{PagerCount() | number : '0.0-0' : lc.Locale}}</span>\r\n</div>","import { InjectionToken } from '@angular/core';\r\n\r\n/** Token che indica se emettere log a console o meno */\r\nexport const ESP_DEBUG: InjectionToken<string> = new InjectionToken<string>('ESP_DEBUG');","import { CommonModule } from '@angular/common';\r\nimport { NgModule, ModuleWithProviders } from '@angular/core';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { RouterModule } from '@angular/router';\r\n\r\nimport { SelectModule } from 'primeng/select';\r\n\r\nimport { LocalizationModule } from '@esfaenza/localizations';\r\n\r\nimport { ESP_DEBUG } from './tokens';\r\nimport { EsPagerModuleConfig } from './domain/configuration/EsPagerModuleConfig';\r\n\r\nimport { TablePagerComponent } from './components/pager/table_pager.component';\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule, \r\n RouterModule,\r\n LocalizationModule,\r\n SelectModule,\r\n ],\r\n declarations: [TablePagerComponent],\r\n exports: [TablePagerComponent]\r\n})\r\nexport class EsPagerModule {\r\n static forRoot(config?: EsPagerModuleConfig): ModuleWithProviders<EsPagerModule> {\r\n return {\r\n ngModule: EsPagerModule,\r\n providers: [\r\n { provide: ESP_DEBUG, useValue: config?.debugMode || false }\r\n ]\r\n };\r\n }\r\n}","/*\r\n * Public API Surface of es-pager\r\n */\r\n\r\nexport * from './lib/domain/configuration/EsPagerModuleConfig'\r\nexport * from './lib/components/pager/table_pager.component'\r\nexport * from './lib/es-pager.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */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AAS,GAA2B,IAAI,cAAc,CAAS,WAAW,CAAC;;MCsB3E,aAAa,CAAA;IACxB,OAAO,OAAO,CAAC,MAA4B,EAAA;QACzC,OAAO;AACL,YAAA,QAAQ,EAAE,aAAa;AACvB,YAAA,SAAS,EAAE;gBACT,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,IAAI,KAAK;AAC3D;SACF;IACH;+GARW,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAb,aAAa,EAAA,YAAA,EAAA,CAHT,mBAAmB,CAAA,EAAA,OAAA,EAAA,CANhC,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,kBAAkB;AAClB,YAAA,YAAY,aAGJ,mBAAmB,CAAA,EAAA,CAAA,CAAA;AAElB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,YATtB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,kBAAkB;YAClB,YAAY,CAAA,EAAA,CAAA,CAAA;;4FAKH,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,kBAAkB;wBAClB,YAAY;AACb,qBAAA;oBACD,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB;AAC9B,iBAAA;;;ACxBD;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,79 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@esfaenza/es-pager" />
5
- export * from './public-api';
1
+ import * as _angular_core from '@angular/core';
2
+ import { ChangeDetectorRef, EventEmitter, WritableSignal, Signal, ModuleWithProviders } from '@angular/core';
3
+ import * as i5 from '@esfaenza/localizations';
4
+ import { LocalizationService } from '@esfaenza/localizations';
5
+ import { MessageService } from '@esfaenza/extensions';
6
+ import * as i2 from '@angular/common';
7
+ import * as i3 from '@angular/forms';
8
+ import * as i4 from '@angular/router';
9
+ import * as i6 from 'primeng/select';
10
+
11
+ /** Modello di configurazione per L'EsTable */
12
+ declare class EsPagerModuleConfig {
13
+ /** Locale da utilizzare per i messaggi, supportati "it-IT" ed "en-US" */
14
+ locale?: string;
15
+ /** Indica se scrivere messaggi di log a console */
16
+ debugMode?: boolean;
17
+ }
18
+
19
+ /** Componente che si occupa della paginazione di una tabella */
20
+ declare class TablePagerComponent {
21
+ private msgExts;
22
+ lc: LocalizationService;
23
+ cdr: ChangeDetectorRef;
24
+ /** Dimensione di pagina attuale */
25
+ CurrentPageSize: _angular_core.InputSignal<number>;
26
+ /** View gestita, che può essere un IAppSearch o una ReportView */
27
+ View: _angular_core.InputSignal<any>;
28
+ /** Indica se deve mostrare un warning quando si cercano di solezionare come elementi da visualizzare "Tutti" */
29
+ WarnOnAll: _angular_core.InputSignal<boolean>;
30
+ /** Indica se dare la possibilità o meno di selezionare "Tutti" nelle opzioni di paginazione */
31
+ AllSearch: _angular_core.InputSignal<boolean>;
32
+ /** Placeholder che identifica il "Tutti" */
33
+ DefaultAll: _angular_core.InputSignal<number>;
34
+ /** Indica se attivare la modalità gruppo con stili più snelli per apparire sotto ai raggruppamenti */
35
+ GroupMode: _angular_core.InputSignal<boolean>;
36
+ /** Indica se utilizzare il conteggio dei gruppi o degli oggetti */
37
+ GroupCount: _angular_core.InputSignal<boolean>;
38
+ /** Indica il testo che va a sostituire "Oggetti Visualizzati" in caso si stia facendo qualcosa di custom, Ignorato in caso di gruppi */
39
+ CountLabel: _angular_core.InputSignal<string>;
40
+ /** Indica se visualizzare il numero totale di oggeti presenti */
41
+ ShowCount: _angular_core.InputSignal<boolean>;
42
+ /** Indica se visualizzare il numero totale di oggeti presenti */
43
+ ShowPaging: _angular_core.InputSignal<boolean>;
44
+ /** Indica il numero totale di oggeti presenti */
45
+ PagerCount: _angular_core.InputSignal<number>;
46
+ /** Indica se mostrare o meno il contenuto @deprecated usata solo da MatrixValuesComponent nella lib relativa */
47
+ Hidden: _angular_core.InputSignal<boolean>;
48
+ /** Output invocato quando il numero di elementi per pagina viene modificato da un click utente */
49
+ pagingSelected: EventEmitter<number>;
50
+ /** @ignore */
51
+ constructor(msgExts: MessageService, lc: LocalizationService, cdr: ChangeDetectorRef);
52
+ /** Modello su cui la select effettua operazioni di selezione */
53
+ Model: WritableSignal<number>;
54
+ /** Opzioni di paginazione */
55
+ private _pagingOptions;
56
+ PagingOptionsForSelect: Signal<{
57
+ id: number;
58
+ description: string;
59
+ }[]>;
60
+ /**
61
+ * Funzione richiamata dal template quando un utente clicca su un numero di paginazione.
62
+ *
63
+ * Cliccare 2 volte sullo stesso numero causa comunque un refresh dei dati
64
+ *
65
+ * @param {number} pageSize Dimensione selezionata lato UI
66
+ */
67
+ choice(pageSize: number): void;
68
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<TablePagerComponent, never>;
69
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TablePagerComponent, "app-paging", never, { "CurrentPageSize": { "alias": "CurrentPageSize"; "required": false; "isSignal": true; }; "View": { "alias": "View"; "required": false; "isSignal": true; }; "WarnOnAll": { "alias": "WarnOnAll"; "required": false; "isSignal": true; }; "AllSearch": { "alias": "AllSearch"; "required": false; "isSignal": true; }; "DefaultAll": { "alias": "DefaultAll"; "required": false; "isSignal": true; }; "GroupMode": { "alias": "GroupMode"; "required": false; "isSignal": true; }; "GroupCount": { "alias": "GroupCount"; "required": false; "isSignal": true; }; "CountLabel": { "alias": "CountLabel"; "required": false; "isSignal": true; }; "ShowCount": { "alias": "ShowCount"; "required": false; "isSignal": true; }; "ShowPaging": { "alias": "ShowPaging"; "required": false; "isSignal": true; }; "PagerCount": { "alias": "PagerCount"; "required": false; "isSignal": true; }; "Hidden": { "alias": "Hidden"; "required": false; "isSignal": true; }; }, { "pagingSelected": "pagingSelected"; }, never, never, false, never>;
70
+ }
71
+
72
+ declare class EsPagerModule {
73
+ static forRoot(config?: EsPagerModuleConfig): ModuleWithProviders<EsPagerModule>;
74
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<EsPagerModule, never>;
75
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<EsPagerModule, [typeof TablePagerComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof i5.LocalizationModule, typeof i6.SelectModule], [typeof TablePagerComponent]>;
76
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<EsPagerModule>;
77
+ }
78
+
79
+ export { EsPagerModule, EsPagerModuleConfig, TablePagerComponent };
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@esfaenza/es-pager",
3
- "version": "19.2.29",
3
+ "version": "20.3.1",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/common": "^19.2.25",
9
- "@angular/core": "^19.2.25",
10
- "@esfaenza/extensions": "^19.2.39",
11
- "@esfaenza/localizations": "^19.2.28",
8
+ "@angular/common": "^20.3.24",
9
+ "@angular/core": "^20.3.24",
10
+ "@esfaenza/extensions": "^20.3.5",
11
+ "@esfaenza/localizations": "^20.3.4",
12
12
  "dayjs": "1.11.21",
13
- "ngx-toastr": "19.0.0",
13
+ "ngx-toastr": "20.0.5",
14
14
  "sweetalert2": "11.26.25",
15
15
  "font-awesome": "4.7.0",
16
- "ngx-bootstrap": "19.0.2"
16
+ "ngx-bootstrap": "20.0.2"
17
17
  },
18
18
  "module": "fesm2022/esfaenza-es-pager.mjs",
19
19
  "typings": "index.d.ts",
@@ -1,57 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter } from "@angular/core";
2
- import { Signal, WritableSignal } from "@angular/core";
3
- import { LocalizationService } from "@esfaenza/localizations";
4
- import { MessageService } from "@esfaenza/extensions";
5
- import * as i0 from "@angular/core";
6
- /** Componente che si occupa della paginazione di una tabella */
7
- export declare class TablePagerComponent {
8
- private msgExts;
9
- lc: LocalizationService;
10
- cdr: ChangeDetectorRef;
11
- /** Dimensione di pagina attuale */
12
- CurrentPageSize: import("@angular/core").InputSignal<number>;
13
- /** View gestita, che può essere un IAppSearch o una ReportView */
14
- View: import("@angular/core").InputSignal<any>;
15
- /** Indica se deve mostrare un warning quando si cercano di solezionare come elementi da visualizzare "Tutti" */
16
- WarnOnAll: import("@angular/core").InputSignal<boolean>;
17
- /** Indica se dare la possibilità o meno di selezionare "Tutti" nelle opzioni di paginazione */
18
- AllSearch: import("@angular/core").InputSignal<boolean>;
19
- /** Placeholder che identifica il "Tutti" */
20
- DefaultAll: import("@angular/core").InputSignal<number>;
21
- /** Indica se attivare la modalità gruppo con stili più snelli per apparire sotto ai raggruppamenti */
22
- GroupMode: import("@angular/core").InputSignal<boolean>;
23
- /** Indica se utilizzare il conteggio dei gruppi o degli oggetti */
24
- GroupCount: import("@angular/core").InputSignal<boolean>;
25
- /** Indica il testo che va a sostituire "Oggetti Visualizzati" in caso si stia facendo qualcosa di custom, Ignorato in caso di gruppi */
26
- CountLabel: import("@angular/core").InputSignal<string>;
27
- /** Indica se visualizzare il numero totale di oggeti presenti */
28
- ShowCount: import("@angular/core").InputSignal<boolean>;
29
- /** Indica se visualizzare il numero totale di oggeti presenti */
30
- ShowPaging: import("@angular/core").InputSignal<boolean>;
31
- /** Indica il numero totale di oggeti presenti */
32
- PagerCount: import("@angular/core").InputSignal<number>;
33
- /** Indica se mostrare o meno il contenuto @deprecated usata solo da MatrixValuesComponent nella lib relativa */
34
- Hidden: import("@angular/core").InputSignal<boolean>;
35
- /** Output invocato quando il numero di elementi per pagina viene modificato da un click utente */
36
- pagingSelected: EventEmitter<number>;
37
- /** @ignore */
38
- constructor(msgExts: MessageService, lc: LocalizationService, cdr: ChangeDetectorRef);
39
- /** Modello su cui la select effettua operazioni di selezione */
40
- Model: WritableSignal<number>;
41
- /** Opzioni di paginazione */
42
- private _pagingOptions;
43
- PagingOptionsForSelect: Signal<{
44
- id: number;
45
- description: string;
46
- }[]>;
47
- /**
48
- * Funzione richiamata dal template quando un utente clicca su un numero di paginazione.
49
- *
50
- * Cliccare 2 volte sullo stesso numero causa comunque un refresh dei dati
51
- *
52
- * @param {number} pageSize Dimensione selezionata lato UI
53
- */
54
- choice(pageSize: number): void;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<TablePagerComponent, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<TablePagerComponent, "app-paging", never, { "CurrentPageSize": { "alias": "CurrentPageSize"; "required": false; "isSignal": true; }; "View": { "alias": "View"; "required": false; "isSignal": true; }; "WarnOnAll": { "alias": "WarnOnAll"; "required": false; "isSignal": true; }; "AllSearch": { "alias": "AllSearch"; "required": false; "isSignal": true; }; "DefaultAll": { "alias": "DefaultAll"; "required": false; "isSignal": true; }; "GroupMode": { "alias": "GroupMode"; "required": false; "isSignal": true; }; "GroupCount": { "alias": "GroupCount"; "required": false; "isSignal": true; }; "CountLabel": { "alias": "CountLabel"; "required": false; "isSignal": true; }; "ShowCount": { "alias": "ShowCount"; "required": false; "isSignal": true; }; "ShowPaging": { "alias": "ShowPaging"; "required": false; "isSignal": true; }; "PagerCount": { "alias": "PagerCount"; "required": false; "isSignal": true; }; "Hidden": { "alias": "Hidden"; "required": false; "isSignal": true; }; }, { "pagingSelected": "pagingSelected"; }, never, never, false, never>;
57
- }
@@ -1,10 +0,0 @@
1
- import { Injector } from "@angular/core";
2
- import { LocalizationService } from "@esfaenza/localizations";
3
- import * as i0 from "@angular/core";
4
- /** Classe di localizzazione per il componente **TablePagerComponent** */
5
- export declare class TablePagerLoc extends LocalizationService {
6
- /** @ignore */
7
- constructor(injector: Injector);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<TablePagerLoc, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<TablePagerLoc>;
10
- }
@@ -1,7 +0,0 @@
1
- /** Modello di configurazione per L'EsTable */
2
- export declare class EsPagerModuleConfig {
3
- /** Locale da utilizzare per i messaggi, supportati "it-IT" ed "en-US" */
4
- locale?: string;
5
- /** Indica se scrivere messaggi di log a console */
6
- debugMode?: boolean;
7
- }
@@ -1,15 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { EsPagerModuleConfig } from './domain/configuration/EsPagerModuleConfig';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./components/pager/table_pager.component";
5
- import * as i2 from "@angular/common";
6
- import * as i3 from "@angular/forms";
7
- import * as i4 from "@angular/router";
8
- import * as i5 from "@esfaenza/localizations";
9
- import * as i6 from "primeng/select";
10
- export declare class EsPagerModule {
11
- static forRoot(config?: EsPagerModuleConfig): ModuleWithProviders<EsPagerModule>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<EsPagerModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<EsPagerModule, [typeof i1.TablePagerComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof i5.LocalizationModule, typeof i6.SelectModule], [typeof i1.TablePagerComponent]>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<EsPagerModule>;
15
- }
package/lib/tokens.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- /** Token che indica se emettere log a console o meno */
3
- export declare const ESP_DEBUG: InjectionToken<string>;
package/public-api.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './lib/domain/configuration/EsPagerModuleConfig';
2
- export * from './lib/components/pager/table_pager.component';
3
- export * from './lib/es-pager.module';