@esfaenza/es-pager 19.2.2 → 19.2.3
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.
|
@@ -7,10 +7,8 @@ import * as i3 from '@angular/common';
|
|
|
7
7
|
import { CommonModule } from '@angular/common';
|
|
8
8
|
import * as i4 from '@angular/forms';
|
|
9
9
|
import { FormsModule } from '@angular/forms';
|
|
10
|
-
import * as i5 from '
|
|
11
|
-
import {
|
|
12
|
-
import * as i6 from '@angular/material/input';
|
|
13
|
-
import { MatInputModule } from '@angular/material/input';
|
|
10
|
+
import * as i5 from 'primeng/select';
|
|
11
|
+
import { SelectModule } from 'primeng/select';
|
|
14
12
|
import { RouterModule } from '@angular/router';
|
|
15
13
|
|
|
16
14
|
/** Modello di configurazione per L'EsTable */
|
|
@@ -67,12 +65,17 @@ class TablePagerComponent {
|
|
|
67
65
|
this.pagingSelected = new EventEmitter();
|
|
68
66
|
/** Opzioni di paginazione */
|
|
69
67
|
this.PagingOptions = [10, 15, 30, 45, 100];
|
|
68
|
+
this.PagingOptionsForSelect = [];
|
|
70
69
|
}
|
|
71
70
|
/** @ignore */
|
|
72
71
|
ngOnInit() {
|
|
73
72
|
this.Model = this.View ? (this.View.itemsperpageoverride || 15) : this.CurrentPageSize;
|
|
74
73
|
if (this.AllSearch)
|
|
75
74
|
this.PagingOptions.push(this.DefaultAll);
|
|
75
|
+
let availableOptions = this.PagingOptions.filter(pOpt => pOpt == this.DefaultAll || this.PagerCount >= pOpt || this.PagerCount == -1);
|
|
76
|
+
this.PagingOptionsForSelect = availableOptions.map(p => {
|
|
77
|
+
return { description: p == this.DefaultAll ? this.lc.loc("All") : p.toString(), id: p.toString() };
|
|
78
|
+
});
|
|
76
79
|
}
|
|
77
80
|
/** @ignore */
|
|
78
81
|
ngOnChanges(changes) {
|
|
@@ -105,11 +108,11 @@ class TablePagerComponent {
|
|
|
105
108
|
}
|
|
106
109
|
}
|
|
107
110
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TablePagerComponent, deps: [{ token: i1.MessageService }, { token: i2.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: ESP_DEBUG, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
108
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: TablePagerComponent, isStandalone: false, selector: "app-paging", inputs: { CurrentPageSize: "CurrentPageSize", View: "View", WarnOnAll: "WarnOnAll", AllSearch: "AllSearch", DefaultAll: "DefaultAll", GroupMode: "GroupMode", GroupCount: "GroupCount", CountLabel: "CountLabel", ShowCount: "ShowCount", ShowPaging: "ShowPaging", PagerCount: "PagerCount", Hidden: "Hidden" }, outputs: { pagingSelected: "pagingSelected" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"!Hidden\" [class.est-mt-4]=\"ShowCount && PagerCount != -1 && !(ShowPaging &&
|
|
111
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: TablePagerComponent, isStandalone: false, selector: "app-paging", inputs: { CurrentPageSize: "CurrentPageSize", View: "View", WarnOnAll: "WarnOnAll", AllSearch: "AllSearch", DefaultAll: "DefaultAll", GroupMode: "GroupMode", GroupCount: "GroupCount", CountLabel: "CountLabel", ShowCount: "ShowCount", ShowPaging: "ShowPaging", PagerCount: "PagerCount", Hidden: "Hidden" }, outputs: { pagingSelected: "pagingSelected" }, usesOnChanges: true, 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)}}: </span>\r\n <ng-container *ngIf=\"ShowPaging && (Model == DefaultAll || PagerCount >= Model || PagerCount == -1)\">\r\n \r\n <p-select \r\n style=\"width: 120px\"\r\n size=\"small\"\r\n #innerInput=\"ngModel\"\r\n #innerElement\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [filter]=\"true\" \r\n filterBy=\"description\"\r\n [showClear]=\"true\"\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\"> / </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 }); }
|
|
109
112
|
}
|
|
110
113
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: TablePagerComponent, decorators: [{
|
|
111
114
|
type: Component,
|
|
112
|
-
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 &&
|
|
115
|
+
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)}}: </span>\r\n <ng-container *ngIf=\"ShowPaging && (Model == DefaultAll || PagerCount >= Model || PagerCount == -1)\">\r\n \r\n <p-select \r\n style=\"width: 120px\"\r\n size=\"small\"\r\n #innerInput=\"ngModel\"\r\n #innerElement\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [filter]=\"true\" \r\n filterBy=\"description\"\r\n [showClear]=\"true\"\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\"> / </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"] }]
|
|
113
116
|
}], ctorParameters: () => [{ type: i1.MessageService }, { type: i2.LocalizationService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
114
117
|
type: Optional
|
|
115
118
|
}, {
|
|
@@ -157,14 +160,12 @@ class EsPagerModule {
|
|
|
157
160
|
FormsModule,
|
|
158
161
|
RouterModule,
|
|
159
162
|
LocalizationModule,
|
|
160
|
-
|
|
161
|
-
MatInputModule], exports: [TablePagerComponent] }); }
|
|
163
|
+
SelectModule], exports: [TablePagerComponent] }); }
|
|
162
164
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EsPagerModule, imports: [CommonModule,
|
|
163
165
|
FormsModule,
|
|
164
166
|
RouterModule,
|
|
165
167
|
LocalizationModule,
|
|
166
|
-
|
|
167
|
-
MatInputModule] }); }
|
|
168
|
+
SelectModule] }); }
|
|
168
169
|
}
|
|
169
170
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: EsPagerModule, decorators: [{
|
|
170
171
|
type: NgModule,
|
|
@@ -174,8 +175,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
174
175
|
FormsModule,
|
|
175
176
|
RouterModule,
|
|
176
177
|
LocalizationModule,
|
|
177
|
-
|
|
178
|
-
MatInputModule,
|
|
178
|
+
SelectModule,
|
|
179
179
|
],
|
|
180
180
|
declarations: [TablePagerComponent],
|
|
181
181
|
exports: [TablePagerComponent]
|
|
@@ -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/tokens.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/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}","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');","// Angular\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Inject, Input, Optional, Output, SimpleChanges, ViewEncapsulation } 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\nimport { ESP_DEBUG } from \"../../tokens\";\r\n\r\n/** Componente che si occupa della paginazione di una tabella */\r\n@Component({\n selector: \"app-paging\",\n viewProviders: [{ provide: LocalizationService, useClass: TablePagerLoc }],\n styleUrls: ['./table_pager.component.scss'],\n templateUrl: \"./table_pager.component.html\",\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false\n})\r\nexport class TablePagerComponent {\r\n\r\n /** Dimensione di pagina attuale */\r\n @Input() CurrentPageSize: any;\r\n\r\n /** View gestita, che può essere un IAppSearch o una ReportView */\r\n @Input() View: any;\r\n\r\n /** Indica se deve mostrare un warning quando si cercano di solezionare come elementi da visualizzare \"Tutti\" */\r\n @Input() WarnOnAll: boolean = true;\r\n\r\n /** Indica se dare la possibilità o meno di selezionare \"Tutti\" nelle opzioni di paginazione */\r\n @Input() AllSearch: boolean = true;\r\n \r\n /** Placeholder che identifica il \"Tutti\" */\r\n @Input() DefaultAll = 999999;\r\n \r\n /** Indica se attivare la modalità gruppo con stili più snelli per apparire sotto ai raggruppamenti */\r\n @Input() GroupMode = false;\r\n\r\n /** Indica se utilizzare il conteggio dei gruppi o degli oggetti */\r\n @Input() GroupCount = false;\r\n\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 @Input() CountLabel: string = null;\r\n\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n @Input() ShowCount: boolean = true;\r\n\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n @Input() ShowPaging: boolean = true;\r\n\r\n /** Indica il numero totale di oggeti presenti */\r\n @Input() PagerCount: number;\r\n\r\n /** Indica se mostrare o meno il contenuto @deprecated usata solo da MatrixValuesComponent nella lib relativa */\r\n @Input() Hidden: boolean;\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, @Optional() @Inject(ESP_DEBUG) public debug: boolean) { }\r\n\r\n /** Modello su cui la select effettua operazioni di selezione */\r\n public Model: number;\r\n\r\n /** Opzioni di paginazione */\r\n public PagingOptions: number[] = [10, 15, 30, 45, 100 ];\r\n\r\n /** @ignore */\r\n ngOnInit() {\r\n this.Model = this.View ? (this.View.itemsperpageoverride || 15) : this.CurrentPageSize;\r\n if (this.AllSearch)\r\n this.PagingOptions.push(this.DefaultAll);\r\n }\r\n\r\n /** @ignore */\r\n ngOnChanges(changes: SimpleChanges) {\r\n let newView = changes['View'];\r\n let newCPS = changes['CurrentPageSize'];\r\n\r\n if ((newView && !newView.firstChange) || (newCPS && !newCPS.firstChange))\r\n this.Model = newView?.currentValue ? (newView.currentValue.itemsperpageoverride || 15) : newCPS?.currentValue ? newCPS.currentValue : null;\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 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 () => { this.pagingSelected.emit(pageSize); this.Model = pageSize; },\r\n () => {\r\n // Dio solo sa perché mi tocca fare sta roba... qui dentro per qualche motivo la CD non prende\r\n let prevModel = this.Model;\r\n this.Model = null;\r\n this.cdr.detectChanges();\r\n this.Model = prevModel;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n else {\r\n this.pagingSelected.emit(pageSize);\r\n this.Model = pageSize;\r\n }\r\n }\r\n}","<div *ngIf=\"!Hidden\" [class.est-mt-4]=\"ShowCount && PagerCount != -1 && !(ShowPaging && Model && (Model == DefaultAll || PagerCount >= Model || PagerCount == -1))\">\r\n <span class=\"est-fs-14\"> {{CountLabel && !GroupMode ? CountLabel : ((GroupMode ? 'Shown Groups' : 'Shown Elements') | localize : lc)}}: </span>\r\n <ng-container *ngIf=\"ShowPaging && Model && (Model == DefaultAll || PagerCount >= Model || PagerCount == -1)\">\r\n <mat-form-field [appearance]=\"'legacy'\" class=\"mat-paginator-page-size-select est-fs-14 est-ipp-bold\">\r\n <select matNativeControl [ngModel]=\"Model\" name=\"input\" (ngModelChange)=\"choice($event)\">\r\n <ng-container *ngFor=\"let pOpt of PagingOptions\">\r\n <option *ngIf=\"pOpt == DefaultAll || PagerCount >= pOpt || PagerCount == -1\" [value]=\"pOpt\">{{ pOpt == DefaultAll ? ('All' | localize : lc) : pOpt.toString()}}</option>\r\n </ng-container>\r\n </select>\r\n </mat-form-field>\r\n <span class=\"est-fs-14 est-ipp-bold\" *ngIf=\"ShowCount && PagerCount != -1\"> / </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 { 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 { MatSelectModule } from \"@angular/material/select\";\r\nimport { MatInputModule } from \"@angular/material/input\";\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 MatSelectModule,\r\n MatInputModule,\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 */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;MACa,mBAAmB,CAAA;AAM/B;;ACJD;AAEM,MAAO,aAAc,SAAQ,mBAAmB,CAAA;;AAGlD,IAAA,WAAA,CAAY,QAAkB,EAAA;QAC1B,KAAK,CAAC,QAAQ,CAAC;QACf,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,CAAC;QACrC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,gBAAgB,EAAE,CAAC,uBAAuB,CAAC,CAAC;QAChE,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,cAAc,EAAE,CAAC,qBAAqB,CAAC,CAAC;QAC5D,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,gDAAgD,EAAE,CAAC,kDAAkD,CAAC,CAAC;QAC3H,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,yEAAyE,EAAE,CAAC,4EAA4E,CAAC,CAAC;;+GATzK,aAAa,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,QAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;mHAAb,aAAa,EAAA,CAAA,CAAA;;4FAAb,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB;;;ACFD;AACO,MAAM,SAAS,GAA2B,IAAI,cAAc,CAAS,WAAW,CAAC;;ACHxF;AAWA;MAUa,mBAAmB,CAAA;;AA0C5B,IAAA,WAAA,CAAoB,OAAuB,EAAS,EAAuB,EAAS,GAAsB,EAAwC,KAAc,EAAA;QAA5I,IAAO,CAAA,OAAA,GAAP,OAAO;QAAyB,IAAE,CAAA,EAAA,GAAF,EAAE;QAA8B,IAAG,CAA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AA,EAAA,CAPhC,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,kBAAkB;YAClB,eAAe;AACf,YAAA,cAAc,aAGN,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,YAVtB,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,kBAAkB;YAClB,eAAe;YACf,cAAc,CAAA,EAAA,CAAA,CAAA;;4FAKL,aAAa,EAAA,UAAA,EAAA,CAAA;kBAZzB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,kBAAkB;wBAClB,eAAe;wBACf,cAAc;AACf,qBAAA;oBACD,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE,CAAC,mBAAmB;AAC9B,iBAAA;;;AC1BD;;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/tokens.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/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}","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');","// Angular\r\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Inject, Input, Optional, Output, SimpleChanges, ViewEncapsulation } 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\nimport { ESP_DEBUG } from \"../../tokens\";\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 @Input() CurrentPageSize: any;\r\n\r\n /** View gestita, che può essere un IAppSearch o una ReportView */\r\n @Input() View: any;\r\n\r\n /** Indica se deve mostrare un warning quando si cercano di solezionare come elementi da visualizzare \"Tutti\" */\r\n @Input() WarnOnAll: boolean = true;\r\n\r\n /** Indica se dare la possibilità o meno di selezionare \"Tutti\" nelle opzioni di paginazione */\r\n @Input() AllSearch: boolean = true;\r\n \r\n /** Placeholder che identifica il \"Tutti\" */\r\n @Input() DefaultAll = 999999;\r\n \r\n /** Indica se attivare la modalità gruppo con stili più snelli per apparire sotto ai raggruppamenti */\r\n @Input() GroupMode = false;\r\n\r\n /** Indica se utilizzare il conteggio dei gruppi o degli oggetti */\r\n @Input() GroupCount = false;\r\n\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 @Input() CountLabel: string = null;\r\n\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n @Input() ShowCount: boolean = true;\r\n\r\n /** Indica se visualizzare il numero totale di oggeti presenti */\r\n @Input() ShowPaging: boolean = true;\r\n\r\n /** Indica il numero totale di oggeti presenti */\r\n @Input() PagerCount: number;\r\n\r\n /** Indica se mostrare o meno il contenuto @deprecated usata solo da MatrixValuesComponent nella lib relativa */\r\n @Input() Hidden: boolean;\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, @Optional() @Inject(ESP_DEBUG) public debug: boolean) { }\r\n\r\n /** Modello su cui la select effettua operazioni di selezione */\r\n public Model: number;\r\n\r\n /** Opzioni di paginazione */\r\n public PagingOptions: number[] = [10, 15, 30, 45, 100 ];\r\n\r\n public PagingOptionsForSelect: {id: string, description: string}[] = [];\r\n \r\n /** @ignore */\r\n ngOnInit() {\r\n\r\n this.Model = this.View ? (this.View.itemsperpageoverride || 15) : this.CurrentPageSize;\r\n if (this.AllSearch)\r\n this.PagingOptions.push(this.DefaultAll);\r\n\r\n let availableOptions = this.PagingOptions.filter(pOpt => pOpt == this.DefaultAll || this.PagerCount >= pOpt || this.PagerCount == -1);\r\n this.PagingOptionsForSelect = availableOptions.map(p => {\r\n return { description: p == this.DefaultAll ? this.lc.loc(\"All\") : p.toString(), id: p.toString() }\r\n })\r\n }\r\n\r\n /** @ignore */\r\n ngOnChanges(changes: SimpleChanges) {\r\n let newView = changes['View'];\r\n let newCPS = changes['CurrentPageSize'];\r\n\r\n if ((newView && !newView.firstChange) || (newCPS && !newCPS.firstChange))\r\n this.Model = newView?.currentValue ? (newView.currentValue.itemsperpageoverride || 15) : newCPS?.currentValue ? newCPS.currentValue : null;\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 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 () => { this.pagingSelected.emit(pageSize); this.Model = pageSize; },\r\n () => {\r\n // Dio solo sa perché mi tocca fare sta roba... qui dentro per qualche motivo la CD non prende\r\n let prevModel = this.Model;\r\n this.Model = null;\r\n this.cdr.detectChanges();\r\n this.Model = prevModel;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n else {\r\n this.pagingSelected.emit(pageSize);\r\n this.Model = 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)}}: </span>\r\n <ng-container *ngIf=\"ShowPaging && (Model == DefaultAll || PagerCount >= Model || PagerCount == -1)\">\r\n \r\n <p-select \r\n style=\"width: 120px\"\r\n size=\"small\"\r\n #innerInput=\"ngModel\"\r\n #innerElement\r\n name=\"input\"\r\n appendTo=\"body\"\r\n [filter]=\"true\" \r\n filterBy=\"description\"\r\n [showClear]=\"true\"\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\"> / </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 { 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-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AA,CAAA;sBAAvB;;;MEnCQ,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;;+GAPQ,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/lib/es-pager.module.d.ts
CHANGED
|
@@ -6,11 +6,10 @@ import * as i2 from "@angular/common";
|
|
|
6
6
|
import * as i3 from "@angular/forms";
|
|
7
7
|
import * as i4 from "@angular/router";
|
|
8
8
|
import * as i5 from "@esfaenza/localizations";
|
|
9
|
-
import * as i6 from "
|
|
10
|
-
import * as i7 from "@angular/material/input";
|
|
9
|
+
import * as i6 from "primeng/select";
|
|
11
10
|
export declare class EsPagerModule {
|
|
12
11
|
static forRoot(config?: EsPagerModuleConfig): ModuleWithProviders<EsPagerModule>;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsPagerModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EsPagerModule, [typeof i1.TablePagerComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.RouterModule, typeof i5.LocalizationModule, typeof i6.
|
|
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]>;
|
|
15
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<EsPagerModule>;
|
|
16
15
|
}
|