@fluxhub/fluxhub-lib 11.0.113 → 11.0.115
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +87 -1
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhtextinput.js +2 -2
- package/esm2015/lib/controls/win_grid_selection.js +144 -0
- package/esm2015/lib/fluxhub-lib.module.js +4 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +143 -2
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/win_grid_selection.d.ts +23 -0
- package/package.json +1 -1
- package/public_api.d.ts +1 -0
|
@@ -13189,7 +13189,7 @@ FHTextInput.decorators = [
|
|
|
13189
13189
|
[type]="type"
|
|
13190
13190
|
/>
|
|
13191
13191
|
<mat-hint [hidden]="hint==''">{{hint}}</mat-hint>
|
|
13192
|
-
<mat-error *ngIf="error
|
|
13192
|
+
<mat-error *ngIf="error!=null">{{ error }}</mat-error>
|
|
13193
13193
|
</mat-form-field>
|
|
13194
13194
|
`,
|
|
13195
13195
|
styles: [``]
|
|
@@ -30426,6 +30426,145 @@ FHMultiComboboxComponent.propDecorators = {
|
|
|
30426
30426
|
db_type: [{ type: Input }]
|
|
30427
30427
|
};
|
|
30428
30428
|
|
|
30429
|
+
class fh_win_grid_selection {
|
|
30430
|
+
constructor(dialogRef, m_AppService, data) {
|
|
30431
|
+
this.dialogRef = dialogRef;
|
|
30432
|
+
this.m_AppService = m_AppService;
|
|
30433
|
+
this.data = data;
|
|
30434
|
+
this.columnDefs = [];
|
|
30435
|
+
this.rowData = [];
|
|
30436
|
+
this.gridOptions = {
|
|
30437
|
+
debug: false,
|
|
30438
|
+
rowMultiSelectWithClick: true,
|
|
30439
|
+
enableRangeSelection: false,
|
|
30440
|
+
defaultColDef: {
|
|
30441
|
+
resizable: true,
|
|
30442
|
+
sortable: true,
|
|
30443
|
+
},
|
|
30444
|
+
rowDeselection: false,
|
|
30445
|
+
};
|
|
30446
|
+
if (this.data) {
|
|
30447
|
+
if (this.data.columnDefs)
|
|
30448
|
+
this.columnDefs = this.data.columnDefs;
|
|
30449
|
+
if (this.data.rowData)
|
|
30450
|
+
this.rowData = this.data.rowData;
|
|
30451
|
+
if (this.data.title)
|
|
30452
|
+
this.title = this.data.title;
|
|
30453
|
+
}
|
|
30454
|
+
}
|
|
30455
|
+
ngAfterViewInit() {
|
|
30456
|
+
this.fitSizeAll();
|
|
30457
|
+
}
|
|
30458
|
+
ck_sel() {
|
|
30459
|
+
if (!this.gridOptions.api)
|
|
30460
|
+
return true;
|
|
30461
|
+
return this.gridOptions.api.getSelectedRows().length == 0;
|
|
30462
|
+
}
|
|
30463
|
+
onReady(a) {
|
|
30464
|
+
setTimeout(() => {
|
|
30465
|
+
if (this.gridOptions.api)
|
|
30466
|
+
this.gridOptions.api.selectAll();
|
|
30467
|
+
}, 100);
|
|
30468
|
+
}
|
|
30469
|
+
autoSizeAll() {
|
|
30470
|
+
if (this.gridOptions == null)
|
|
30471
|
+
return;
|
|
30472
|
+
if (this.gridOptions.columnApi == null)
|
|
30473
|
+
return;
|
|
30474
|
+
let allColumnIds = [];
|
|
30475
|
+
this.columnDefs.forEach(function (columnDef) {
|
|
30476
|
+
allColumnIds.push(columnDef.field);
|
|
30477
|
+
});
|
|
30478
|
+
this.gridOptions.columnApi.autoSizeColumns(allColumnIds);
|
|
30479
|
+
if (this.gridOptions.columnApi.getColumnState().length > 0)
|
|
30480
|
+
if (this.gridOptions.columnApi.getColumnState()[0].width == 24) {
|
|
30481
|
+
setTimeout(() => {
|
|
30482
|
+
this.autoSizeAll();
|
|
30483
|
+
}, 300);
|
|
30484
|
+
return;
|
|
30485
|
+
}
|
|
30486
|
+
}
|
|
30487
|
+
fitSizeAll() {
|
|
30488
|
+
var _a, _b;
|
|
30489
|
+
(_b = (_a = this.gridOptions) === null || _a === void 0 ? void 0 : _a.api) === null || _b === void 0 ? void 0 : _b.sizeColumnsToFit();
|
|
30490
|
+
}
|
|
30491
|
+
ie() { }
|
|
30492
|
+
ok() { var _a; this.dialogRef.close((_a = this.gridOptions.api) === null || _a === void 0 ? void 0 : _a.getSelectedRows()); }
|
|
30493
|
+
}
|
|
30494
|
+
fh_win_grid_selection.decorators = [
|
|
30495
|
+
{ type: Component, args: [{
|
|
30496
|
+
providers: [FHCurrencyPipe],
|
|
30497
|
+
template: `
|
|
30498
|
+
<div fxLayout="column">
|
|
30499
|
+
<div fxFlex="100" fxLayout="row" class="dialog_header">
|
|
30500
|
+
<div fxLayout="row" fxLayoutAlign="start center" style="width:50%">
|
|
30501
|
+
{{ title }}
|
|
30502
|
+
</div>
|
|
30503
|
+
<div style="width:50%" fxLayout="row" fxLayoutAlign="end start">
|
|
30504
|
+
<img
|
|
30505
|
+
src="assets/icons/x.png"
|
|
30506
|
+
style="cursor: pointer;"
|
|
30507
|
+
(click)="dialogRef.close(null)"
|
|
30508
|
+
/>
|
|
30509
|
+
</div>
|
|
30510
|
+
</div>
|
|
30511
|
+
<hr style="width:100%;size:0.5;color:#DDDDDD" />
|
|
30512
|
+
|
|
30513
|
+
<mat-dialog-content>
|
|
30514
|
+
<div fxLayout="column" fxLayoutGap="10px">
|
|
30515
|
+
<div
|
|
30516
|
+
style="width: 100%;"
|
|
30517
|
+
[style.height]="m_AppService.getState().body_h - 210 + 'px'"
|
|
30518
|
+
>
|
|
30519
|
+
<div style="width: 100%; height: 100%;">
|
|
30520
|
+
<ag-grid-angular
|
|
30521
|
+
#dtm
|
|
30522
|
+
class="ag-theme-balham"
|
|
30523
|
+
style="width: 100%; height: 100%;"
|
|
30524
|
+
[gridOptions]="gridOptions"
|
|
30525
|
+
[columnDefs]="columnDefs"
|
|
30526
|
+
[rowData]="rowData"
|
|
30527
|
+
(gridReady)="onReady($event)"
|
|
30528
|
+
>
|
|
30529
|
+
</ag-grid-angular>
|
|
30530
|
+
</div>
|
|
30531
|
+
</div>
|
|
30532
|
+
</div>
|
|
30533
|
+
</mat-dialog-content>
|
|
30534
|
+
<mat-dialog-actions>
|
|
30535
|
+
<div
|
|
30536
|
+
fxLayout="row"
|
|
30537
|
+
fxLayoutAlign="10px"
|
|
30538
|
+
fxLayoutAlign="center center"
|
|
30539
|
+
fxFlex
|
|
30540
|
+
style="width:100%"
|
|
30541
|
+
>
|
|
30542
|
+
<button
|
|
30543
|
+
mat-flat-button
|
|
30544
|
+
color="primary"
|
|
30545
|
+
[disabled]="ck_sel()"
|
|
30546
|
+
(click)="ok()"
|
|
30547
|
+
>
|
|
30548
|
+
OK
|
|
30549
|
+
</button>
|
|
30550
|
+
<button mat-flat-button color="warn" (click)="dialogRef.close(null)">
|
|
30551
|
+
ANNULLA
|
|
30552
|
+
</button>
|
|
30553
|
+
</div>
|
|
30554
|
+
</mat-dialog-actions>
|
|
30555
|
+
</div>
|
|
30556
|
+
`
|
|
30557
|
+
},] }
|
|
30558
|
+
];
|
|
30559
|
+
fh_win_grid_selection.ctorParameters = () => [
|
|
30560
|
+
{ type: MatDialogRef },
|
|
30561
|
+
{ type: AppService },
|
|
30562
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
30563
|
+
];
|
|
30564
|
+
fh_win_grid_selection.propDecorators = {
|
|
30565
|
+
dtm: [{ type: ViewChild, args: ["dtm",] }]
|
|
30566
|
+
};
|
|
30567
|
+
|
|
30429
30568
|
class FluxhubLibModule {
|
|
30430
30569
|
static forRoot() {
|
|
30431
30570
|
return {
|
|
@@ -30556,6 +30695,7 @@ FluxhubLibModule.decorators = [
|
|
|
30556
30695
|
wkf_header_bar,
|
|
30557
30696
|
fh_win_list,
|
|
30558
30697
|
fh_win_wait,
|
|
30698
|
+
fh_win_grid_selection,
|
|
30559
30699
|
FHUserFieldComponent,
|
|
30560
30700
|
FHGridJSONComponent,
|
|
30561
30701
|
win_salva_annulla,
|
|
@@ -30624,6 +30764,7 @@ FluxhubLibModule.decorators = [
|
|
|
30624
30764
|
FHNumericFieldComponent,
|
|
30625
30765
|
fh_win_list,
|
|
30626
30766
|
fh_win_wait,
|
|
30767
|
+
fh_win_grid_selection,
|
|
30627
30768
|
FHUserFieldComponent,
|
|
30628
30769
|
win_salva_annulla,
|
|
30629
30770
|
win_assegna,
|
|
@@ -31958,5 +32099,5 @@ wkfapp_v2.ctorParameters = () => [
|
|
|
31958
32099
|
* Generated bundle index. Do not edit.
|
|
31959
32100
|
*/
|
|
31960
32101
|
|
|
31961
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGuard, FHHelpButton, FHListComponent, FHLogPanelComponent, FHMdReader, FHMultiComboboxComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, win_salva_annulla_v2 as ɵbl, win_assegna_v2 as ɵbm, win_conferma_v2 as ɵbn, win_select_canale_v2 as ɵbo, win_select_level_v2 as ɵbp, win_uploads_v2 as ɵbq, win_commenti_v2 as ɵbr, win_info_doc_v2 as ɵbs, win_log_v2 as ɵbt, win_recupera_doc_v2 as ɵbu, win_riassegna_select_level_v2 as ɵbv, win_riassegna_select_user_v2 as ɵbw, win_sostituisci_utente_v2 as ɵbx, win_commento_sel_notif_v2 as ɵby, win_insert_commento_v2 as ɵbz, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵc, win_assegna_a as ɵca, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵm, MOMENT_DATE_FORMATS as ɵn, MomentDateAdapter as ɵo, HighlightService as ɵp, win_show_log_info_dett as ɵq, SafePipe as ɵr, FHViewerComponent as ɵs, FHGridToolBarComponent as ɵu, win_grid_help as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
|
|
32102
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, CheckboxEditorComponent, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHCheckBox, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHFormToolBarComponent, FHGridComponent, FHGridComponentN, FHGridJSONComponent, FHGuard, FHHelpButton, FHListComponent, FHLogPanelComponent, FHMdReader, FHMultiComboboxComponent, FHNumericFieldComponent, FHPickFieldComponent, FHRichText, FHRoleManager, FHTableManager, FHTextArea, FHTextInput, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WkfService, dati_aggiuntivi, dati_aggiuntivi_v2, fh_win_app_logs, fh_win_ask_big_text, fh_win_ask_buttons, fh_win_ask_number, fh_win_ask_richtext, fh_win_ask_text, fh_win_auto_complete, fh_win_combo, fh_win_confirm, fh_win_grid_selection, fh_win_list, fh_win_mappa, fh_win_output, fh_win_picklist, fh_win_select_by_grid, fh_win_show_email, fh_win_show_email_s3, fh_win_show_image, fh_win_show_log, fh_win_show_log_dett, fh_win_time_slider, fh_win_upload, fh_win_uploads, fh_win_user_info, fh_win_user_picker, fh_win_wait, fhimagepreview, win_insert_commento, win_salva_annulla, wkf_header_bar, wkf_header_bar_v2, wkfapp, wkfapp_v2, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$9 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 as ɵb, win_commenti as ɵba, win_info_doc as ɵbb, win_log as ɵbc, win_recupera_doc as ɵbd, win_riassegna_select_level as ɵbe, win_riassegna_select_user as ɵbf, win_sostituisci_utente as ɵbg, win_commento_sel_notif as ɵbh, win_manage_values as ɵbi, win_manage_roles as ɵbj, FHComboboxComponentFilter as ɵbk, win_salva_annulla_v2 as ɵbl, win_assegna_v2 as ɵbm, win_conferma_v2 as ɵbn, win_select_canale_v2 as ɵbo, win_select_level_v2 as ɵbp, win_uploads_v2 as ɵbq, win_commenti_v2 as ɵbr, win_info_doc_v2 as ɵbs, win_log_v2 as ɵbt, win_recupera_doc_v2 as ɵbu, win_riassegna_select_level_v2 as ɵbv, win_riassegna_select_user_v2 as ɵbw, win_sostituisci_utente_v2 as ɵbx, win_commento_sel_notif_v2 as ɵby, win_insert_commento_v2 as ɵbz, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵc, win_assegna_a as ɵca, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$5 as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$a as ɵe, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$4 as ɵf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵg, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$6 as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵj, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$8 as ɵk, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 as ɵl, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵm, MOMENT_DATE_FORMATS as ɵn, MomentDateAdapter as ɵo, HighlightService as ɵp, win_show_log_info_dett as ɵq, SafePipe as ɵr, FHViewerComponent as ɵs, FHGridToolBarComponent as ɵu, win_grid_help as ɵv, win_assegna as ɵw, win_conferma as ɵx, win_select_canale as ɵy, win_select_level as ɵz };
|
|
31962
32103
|
//# sourceMappingURL=fluxhub-fluxhub-lib.js.map
|