@fluxhub/fluxhub-lib 18.0.5 → 18.0.7
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/esm2022/lib/controls/fh-form-toolbar.mjs +189 -189
- package/esm2022/lib/controls/fh-gridn.mjs +1 -1
- package/esm2022/lib/controls/fh-notes-panel.mjs +52 -1
- package/esm2022/lib/controls/fh-win-app-logs.mjs +87 -87
- package/esm2022/lib/form_builder/fh-form-builder.mjs +589 -589
- package/esm2022/lib/form_builder/fh-form-executer.mjs +297 -297
- package/esm2022/lib/models/QParam.mjs +1 -1
- package/esm2022/lib/wkf_engine/wkf-app.mjs +1 -1
- package/esm2022/lib/wkf_engine/wkf-data-form.mjs +1 -1
- package/esm2022/lib/wkf_engine_v2/wkf-form-data.mjs +1 -1
- package/fesm2022/fluxhub-fluxhub-lib.mjs +1212 -1161
- package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
- package/lib/controls/fh-notes-panel.d.ts +1 -0
- package/lib/models/QParam.d.ts +1 -1
- package/package.json +1 -1
|
@@ -11040,96 +11040,96 @@ class fh_win_app_logs {
|
|
|
11040
11040
|
}
|
|
11041
11041
|
columnDefs = [];
|
|
11042
11042
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: fh_win_app_logs, deps: [{ token: i1$2.MatDialogRef }, { token: i1$2.MatDialog }, { token: AppService }, { token: i3$2.TranslateService }, { token: UtilityService }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
11043
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: fh_win_app_logs, selector: "ng-component", viewQueries: [{ propertyName: "datagrid", first: true, predicate: ["dtm"], descendants: true }], ngImport: i0, template: `
|
|
11044
|
-
<div fxLayout="column">
|
|
11045
|
-
<div fxLayout="row" class="dialog_header">
|
|
11046
|
-
<div
|
|
11047
|
-
fxLayout="row"
|
|
11048
|
-
fxLayoutAlign="start center"
|
|
11049
|
-
style="width:90%;padding-left: 20px;"
|
|
11050
|
-
>
|
|
11051
|
-
{{ title | translate }}
|
|
11052
|
-
</div>
|
|
11053
|
-
<div style="width:10%;">
|
|
11054
|
-
<div style="width:100%;text-align: right;">
|
|
11055
|
-
<img
|
|
11056
|
-
src="assets/icons/x.png"
|
|
11057
|
-
style="cursor: pointer;padding-right: 10px;"
|
|
11058
|
-
(click)="dialogRef.close(null)"
|
|
11059
|
-
/>
|
|
11060
|
-
</div>
|
|
11061
|
-
</div>
|
|
11062
|
-
</div>
|
|
11063
|
-
<hr style="width:100%;size:0.5;color:#DDDDDD" />
|
|
11064
|
-
|
|
11065
|
-
<mat-dialog-content>
|
|
11066
|
-
<mat-card>
|
|
11067
|
-
<mat-card-content>
|
|
11068
|
-
<div [style.height]="'600px'">
|
|
11069
|
-
<div style="width:100%;height:100%">
|
|
11070
|
-
<FHGrid
|
|
11071
|
-
#dtm
|
|
11072
|
-
[columnDefs]="columnDefs"
|
|
11073
|
-
[init_fill]="false"
|
|
11074
|
-
tbl_name="v_logs"
|
|
11075
|
-
[grid_key]="'v_logs_' + data.App"
|
|
11076
|
-
(cell_clicked)="cce($event)"
|
|
11077
|
-
sort_field="data desc"
|
|
11078
|
-
fields="*"
|
|
11079
|
-
></FHGrid>
|
|
11080
|
-
</div>
|
|
11081
|
-
</div>
|
|
11082
|
-
</mat-card-content>
|
|
11083
|
-
</mat-card>
|
|
11084
|
-
</mat-dialog-content>
|
|
11085
|
-
</div>
|
|
11043
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: fh_win_app_logs, selector: "ng-component", viewQueries: [{ propertyName: "datagrid", first: true, predicate: ["dtm"], descendants: true }], ngImport: i0, template: `
|
|
11044
|
+
<div fxLayout="column">
|
|
11045
|
+
<div fxLayout="row" class="dialog_header">
|
|
11046
|
+
<div
|
|
11047
|
+
fxLayout="row"
|
|
11048
|
+
fxLayoutAlign="start center"
|
|
11049
|
+
style="width:90%;padding-left: 20px;"
|
|
11050
|
+
>
|
|
11051
|
+
{{ title | translate }}
|
|
11052
|
+
</div>
|
|
11053
|
+
<div style="width:10%;">
|
|
11054
|
+
<div style="width:100%;text-align: right;">
|
|
11055
|
+
<img
|
|
11056
|
+
src="assets/icons/x.png"
|
|
11057
|
+
style="cursor: pointer;padding-right: 10px;"
|
|
11058
|
+
(click)="dialogRef.close(null)"
|
|
11059
|
+
/>
|
|
11060
|
+
</div>
|
|
11061
|
+
</div>
|
|
11062
|
+
</div>
|
|
11063
|
+
<hr style="width:100%;size:0.5;color:#DDDDDD" />
|
|
11064
|
+
|
|
11065
|
+
<mat-dialog-content>
|
|
11066
|
+
<mat-card>
|
|
11067
|
+
<mat-card-content>
|
|
11068
|
+
<div [style.height]="'600px'">
|
|
11069
|
+
<div style="width:100%;height:100%">
|
|
11070
|
+
<FHGrid
|
|
11071
|
+
#dtm
|
|
11072
|
+
[columnDefs]="columnDefs"
|
|
11073
|
+
[init_fill]="false"
|
|
11074
|
+
tbl_name="v_logs"
|
|
11075
|
+
[grid_key]="'v_logs_' + data.App"
|
|
11076
|
+
(cell_clicked)="cce($event)"
|
|
11077
|
+
sort_field="data desc"
|
|
11078
|
+
fields="*"
|
|
11079
|
+
></FHGrid>
|
|
11080
|
+
</div>
|
|
11081
|
+
</div>
|
|
11082
|
+
</mat-card-content>
|
|
11083
|
+
</mat-card>
|
|
11084
|
+
</mat-dialog-content>
|
|
11085
|
+
</div>
|
|
11086
11086
|
`, isInline: true, styles: [""], dependencies: [{ kind: "directive", type: i1$2.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i5$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5$2.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: FHGridComponent, selector: "FHGrid", inputs: ["flt_aggiuntivo", "flt_aggiuntivo_value", "flt_aggiuntivo_label", "rowHeight", "gridCursorPointer", "overwrite_help_url", "over_fulltext", "b_wait", "over_fulltext_types", "over_fulltext_values", "over_fulltext_sql", "forceFitSize", "tooltipShowDelay", "elimina_label", "show_selected_number", "export_field_aggiuntivi", "end_point", "tbl_name", "columnDefs", "count_tbl_name", "search_field_tooltip", "num_per_pag", "grid_key", "sort_field", "fields", "filters", "enabled", "show_link", "show_help_bar", "help_label_bar", "auto_load", "customKeyField", "auto_height", "enable_export", "enabled_pag", "show_help", "show_num_elem", "private_pref", "system_dest", "header_h", "selection_mode", "init_fill", "no_pref", "pref_hidden", "enable_export_pdf", "enable_export_xls", "translateFilterEnabled", "enable_copy", "full_text_added_columns", "full_text_added_query", "autosize_at_ini", "label_elementi", "trova_label", "mantieni_impostazioni", "show_buttons", "custom_export", "toolbar_type", "toolbar_wkfapp", "toolbar_custom_commands", "toolbar_custom_commands_primary", "off_set", "include_always"], outputs: ["flt_aggiuntivo_event", "fill_end", "cell_edited", "clicked", "dclicked", "columndclicked", "cell_clicked", "selection_change", "command", "filter_creared", "init_end"] }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }] });
|
|
11087
11087
|
}
|
|
11088
11088
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: fh_win_app_logs, decorators: [{
|
|
11089
11089
|
type: Component,
|
|
11090
|
-
args: [{ template: `
|
|
11091
|
-
<div fxLayout="column">
|
|
11092
|
-
<div fxLayout="row" class="dialog_header">
|
|
11093
|
-
<div
|
|
11094
|
-
fxLayout="row"
|
|
11095
|
-
fxLayoutAlign="start center"
|
|
11096
|
-
style="width:90%;padding-left: 20px;"
|
|
11097
|
-
>
|
|
11098
|
-
{{ title | translate }}
|
|
11099
|
-
</div>
|
|
11100
|
-
<div style="width:10%;">
|
|
11101
|
-
<div style="width:100%;text-align: right;">
|
|
11102
|
-
<img
|
|
11103
|
-
src="assets/icons/x.png"
|
|
11104
|
-
style="cursor: pointer;padding-right: 10px;"
|
|
11105
|
-
(click)="dialogRef.close(null)"
|
|
11106
|
-
/>
|
|
11107
|
-
</div>
|
|
11108
|
-
</div>
|
|
11109
|
-
</div>
|
|
11110
|
-
<hr style="width:100%;size:0.5;color:#DDDDDD" />
|
|
11111
|
-
|
|
11112
|
-
<mat-dialog-content>
|
|
11113
|
-
<mat-card>
|
|
11114
|
-
<mat-card-content>
|
|
11115
|
-
<div [style.height]="'600px'">
|
|
11116
|
-
<div style="width:100%;height:100%">
|
|
11117
|
-
<FHGrid
|
|
11118
|
-
#dtm
|
|
11119
|
-
[columnDefs]="columnDefs"
|
|
11120
|
-
[init_fill]="false"
|
|
11121
|
-
tbl_name="v_logs"
|
|
11122
|
-
[grid_key]="'v_logs_' + data.App"
|
|
11123
|
-
(cell_clicked)="cce($event)"
|
|
11124
|
-
sort_field="data desc"
|
|
11125
|
-
fields="*"
|
|
11126
|
-
></FHGrid>
|
|
11127
|
-
</div>
|
|
11128
|
-
</div>
|
|
11129
|
-
</mat-card-content>
|
|
11130
|
-
</mat-card>
|
|
11131
|
-
</mat-dialog-content>
|
|
11132
|
-
</div>
|
|
11090
|
+
args: [{ template: `
|
|
11091
|
+
<div fxLayout="column">
|
|
11092
|
+
<div fxLayout="row" class="dialog_header">
|
|
11093
|
+
<div
|
|
11094
|
+
fxLayout="row"
|
|
11095
|
+
fxLayoutAlign="start center"
|
|
11096
|
+
style="width:90%;padding-left: 20px;"
|
|
11097
|
+
>
|
|
11098
|
+
{{ title | translate }}
|
|
11099
|
+
</div>
|
|
11100
|
+
<div style="width:10%;">
|
|
11101
|
+
<div style="width:100%;text-align: right;">
|
|
11102
|
+
<img
|
|
11103
|
+
src="assets/icons/x.png"
|
|
11104
|
+
style="cursor: pointer;padding-right: 10px;"
|
|
11105
|
+
(click)="dialogRef.close(null)"
|
|
11106
|
+
/>
|
|
11107
|
+
</div>
|
|
11108
|
+
</div>
|
|
11109
|
+
</div>
|
|
11110
|
+
<hr style="width:100%;size:0.5;color:#DDDDDD" />
|
|
11111
|
+
|
|
11112
|
+
<mat-dialog-content>
|
|
11113
|
+
<mat-card>
|
|
11114
|
+
<mat-card-content>
|
|
11115
|
+
<div [style.height]="'600px'">
|
|
11116
|
+
<div style="width:100%;height:100%">
|
|
11117
|
+
<FHGrid
|
|
11118
|
+
#dtm
|
|
11119
|
+
[columnDefs]="columnDefs"
|
|
11120
|
+
[init_fill]="false"
|
|
11121
|
+
tbl_name="v_logs"
|
|
11122
|
+
[grid_key]="'v_logs_' + data.App"
|
|
11123
|
+
(cell_clicked)="cce($event)"
|
|
11124
|
+
sort_field="data desc"
|
|
11125
|
+
fields="*"
|
|
11126
|
+
></FHGrid>
|
|
11127
|
+
</div>
|
|
11128
|
+
</div>
|
|
11129
|
+
</mat-card-content>
|
|
11130
|
+
</mat-card>
|
|
11131
|
+
</mat-dialog-content>
|
|
11132
|
+
</div>
|
|
11133
11133
|
` }]
|
|
11134
11134
|
}], ctorParameters: () => [{ type: i1$2.MatDialogRef }, { type: i1$2.MatDialog }, { type: AppService }, { type: i3$2.TranslateService }, { type: UtilityService }, { type: undefined, decorators: [{
|
|
11135
11135
|
type: Inject,
|
|
@@ -11196,198 +11196,198 @@ class FHFormToolBarComponent {
|
|
|
11196
11196
|
this.is_editing = b_edit;
|
|
11197
11197
|
}
|
|
11198
11198
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FHFormToolBarComponent, deps: [{ token: i1$2.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
|
11199
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: FHFormToolBarComponent, selector: "FHFormToolBar", inputs: { editable: "editable", show_save: "show_save", show_back: "show_back", saveDirect: "saveDirect", App: "App", K: "K", mgs_back: "mgs_back", mgs_edit: "mgs_edit", mgs_save: "mgs_save", b_commento: "b_commento", commento_label: "commento_label", logShowDescription: "logShowDescription", logShowDiff: "logShowDiff", log_enabled: "log_enabled", custom_commands: "custom_commands" }, outputs: { command: "command" }, ngImport: i0, template: `
|
|
11200
|
-
<div fxLayout="row" fxLayoutGap="5px">
|
|
11201
|
-
<div
|
|
11202
|
-
fxLayout="row"
|
|
11203
|
-
fxLayoutGap="10px"
|
|
11204
|
-
[hidden]="is_editing"
|
|
11205
|
-
fxLayoutAlign="start center"
|
|
11206
|
-
>
|
|
11207
|
-
<div>
|
|
11208
|
-
<button mat-flat-button [hidden]="!show_back" (click)="back()">
|
|
11209
|
-
{{ mgs_back | translate }}
|
|
11210
|
-
</button>
|
|
11211
|
-
</div>
|
|
11212
|
-
<div>
|
|
11213
|
-
<button
|
|
11214
|
-
mat-flat-button
|
|
11215
|
-
color="primary"
|
|
11216
|
-
[hidden]="!editable || saveDirect"
|
|
11217
|
-
(click)="edit()"
|
|
11218
|
-
>
|
|
11219
|
-
<mat-icon>edit</mat-icon> {{ mgs_edit | translate }}
|
|
11220
|
-
</button>
|
|
11221
|
-
</div>
|
|
11222
|
-
<!-- <div><button
|
|
11223
|
-
[hidden]="!editable || !log_enabled"
|
|
11224
|
-
mat-flat-button
|
|
11225
|
-
*ngIf="App != ''"
|
|
11226
|
-
color="accent"
|
|
11227
|
-
(click)="logs()"
|
|
11228
|
-
>
|
|
11229
|
-
<mat-icon>assignment</mat-icon> Logs</button> </div> -->
|
|
11230
|
-
</div>
|
|
11231
|
-
<div
|
|
11232
|
-
fxLayout="row"
|
|
11233
|
-
fxLayoutGap="10px"
|
|
11234
|
-
[hidden]="!is_editing"
|
|
11235
|
-
fxLayoutAlign="start center"
|
|
11236
|
-
>
|
|
11237
|
-
<div>
|
|
11238
|
-
<button
|
|
11239
|
-
mat-flat-button
|
|
11240
|
-
[hidden]="!show_back"
|
|
11241
|
-
(click)="back_ask_save()"
|
|
11242
|
-
>
|
|
11243
|
-
{{ mgs_back | translate }}
|
|
11244
|
-
</button>
|
|
11245
|
-
</div>
|
|
11246
|
-
<div>
|
|
11247
|
-
<button
|
|
11248
|
-
mat-flat-button
|
|
11249
|
-
color="primary"
|
|
11250
|
-
[hidden]="!show_save && !saveDirect"
|
|
11251
|
-
(click)="save()"
|
|
11252
|
-
>
|
|
11253
|
-
<mat-icon>save</mat-icon> {{ mgs_save | translate }}
|
|
11254
|
-
</button>
|
|
11255
|
-
</div>
|
|
11256
|
-
</div>
|
|
11257
|
-
<div
|
|
11258
|
-
*ngIf="custom_commands.length > 0"
|
|
11259
|
-
fxLayoutGap="10px"
|
|
11260
|
-
fxLayout="row"
|
|
11261
|
-
fxLayoutAlign="end center"
|
|
11262
|
-
>
|
|
11263
|
-
<div
|
|
11264
|
-
*ngFor="let app of custom_commands"
|
|
11265
|
-
fxLayout="row"
|
|
11266
|
-
fxLayoutGap="5px"
|
|
11267
|
-
>
|
|
11268
|
-
<div>
|
|
11269
|
-
<button
|
|
11270
|
-
[hidden]="app.hidden != null && app.hidden"
|
|
11271
|
-
mat-flat-button
|
|
11272
|
-
[color]="app.color"
|
|
11273
|
-
(click)="exec_command(app.command)"
|
|
11274
|
-
>
|
|
11275
|
-
<mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
|
|
11276
|
-
>{{ app.label }}
|
|
11277
|
-
</button>
|
|
11278
|
-
</div>
|
|
11279
|
-
</div>
|
|
11280
|
-
</div>
|
|
11281
|
-
<div [hidden]="!log_enabled">
|
|
11282
|
-
|
|
11283
|
-
<button
|
|
11284
|
-
mat-flat-button
|
|
11285
|
-
*ngIf="App != ''"
|
|
11286
|
-
color="accent"
|
|
11287
|
-
(click)="logs()"
|
|
11288
|
-
>
|
|
11289
|
-
<mat-icon>assignment</mat-icon> Logs
|
|
11290
|
-
</button>
|
|
11291
|
-
</div>
|
|
11292
|
-
</div>
|
|
11199
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: FHFormToolBarComponent, selector: "FHFormToolBar", inputs: { editable: "editable", show_save: "show_save", show_back: "show_back", saveDirect: "saveDirect", App: "App", K: "K", mgs_back: "mgs_back", mgs_edit: "mgs_edit", mgs_save: "mgs_save", b_commento: "b_commento", commento_label: "commento_label", logShowDescription: "logShowDescription", logShowDiff: "logShowDiff", log_enabled: "log_enabled", custom_commands: "custom_commands" }, outputs: { command: "command" }, ngImport: i0, template: `
|
|
11200
|
+
<div fxLayout="row" fxLayoutGap="5px">
|
|
11201
|
+
<div
|
|
11202
|
+
fxLayout="row"
|
|
11203
|
+
fxLayoutGap="10px"
|
|
11204
|
+
[hidden]="is_editing"
|
|
11205
|
+
fxLayoutAlign="start center"
|
|
11206
|
+
>
|
|
11207
|
+
<div>
|
|
11208
|
+
<button mat-flat-button [hidden]="!show_back" (click)="back()">
|
|
11209
|
+
{{ mgs_back | translate }}
|
|
11210
|
+
</button>
|
|
11211
|
+
</div>
|
|
11212
|
+
<div>
|
|
11213
|
+
<button
|
|
11214
|
+
mat-flat-button
|
|
11215
|
+
color="primary"
|
|
11216
|
+
[hidden]="!editable || saveDirect"
|
|
11217
|
+
(click)="edit()"
|
|
11218
|
+
>
|
|
11219
|
+
<mat-icon>edit</mat-icon> {{ mgs_edit | translate }}
|
|
11220
|
+
</button>
|
|
11221
|
+
</div>
|
|
11222
|
+
<!-- <div><button
|
|
11223
|
+
[hidden]="!editable || !log_enabled"
|
|
11224
|
+
mat-flat-button
|
|
11225
|
+
*ngIf="App != ''"
|
|
11226
|
+
color="accent"
|
|
11227
|
+
(click)="logs()"
|
|
11228
|
+
>
|
|
11229
|
+
<mat-icon>assignment</mat-icon> Logs</button> </div> -->
|
|
11230
|
+
</div>
|
|
11231
|
+
<div
|
|
11232
|
+
fxLayout="row"
|
|
11233
|
+
fxLayoutGap="10px"
|
|
11234
|
+
[hidden]="!is_editing"
|
|
11235
|
+
fxLayoutAlign="start center"
|
|
11236
|
+
>
|
|
11237
|
+
<div>
|
|
11238
|
+
<button
|
|
11239
|
+
mat-flat-button
|
|
11240
|
+
[hidden]="!show_back"
|
|
11241
|
+
(click)="back_ask_save()"
|
|
11242
|
+
>
|
|
11243
|
+
{{ mgs_back | translate }}
|
|
11244
|
+
</button>
|
|
11245
|
+
</div>
|
|
11246
|
+
<div>
|
|
11247
|
+
<button
|
|
11248
|
+
mat-flat-button
|
|
11249
|
+
color="primary"
|
|
11250
|
+
[hidden]="!show_save && !saveDirect"
|
|
11251
|
+
(click)="save()"
|
|
11252
|
+
>
|
|
11253
|
+
<mat-icon>save</mat-icon> {{ mgs_save | translate }}
|
|
11254
|
+
</button>
|
|
11255
|
+
</div>
|
|
11256
|
+
</div>
|
|
11257
|
+
<div
|
|
11258
|
+
*ngIf="custom_commands.length > 0"
|
|
11259
|
+
fxLayoutGap="10px"
|
|
11260
|
+
fxLayout="row"
|
|
11261
|
+
fxLayoutAlign="end center"
|
|
11262
|
+
>
|
|
11263
|
+
<div
|
|
11264
|
+
*ngFor="let app of custom_commands"
|
|
11265
|
+
fxLayout="row"
|
|
11266
|
+
fxLayoutGap="5px"
|
|
11267
|
+
>
|
|
11268
|
+
<div>
|
|
11269
|
+
<button
|
|
11270
|
+
[hidden]="app.hidden != null && app.hidden"
|
|
11271
|
+
mat-flat-button
|
|
11272
|
+
[color]="app.color"
|
|
11273
|
+
(click)="exec_command(app.command)"
|
|
11274
|
+
>
|
|
11275
|
+
<mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
|
|
11276
|
+
>{{ app.label }}
|
|
11277
|
+
</button>
|
|
11278
|
+
</div>
|
|
11279
|
+
</div>
|
|
11280
|
+
</div>
|
|
11281
|
+
<div [hidden]="!log_enabled">
|
|
11282
|
+
|
|
11283
|
+
<button
|
|
11284
|
+
mat-flat-button
|
|
11285
|
+
*ngIf="App != ''"
|
|
11286
|
+
color="accent"
|
|
11287
|
+
(click)="logs()"
|
|
11288
|
+
>
|
|
11289
|
+
<mat-icon>assignment</mat-icon> Logs
|
|
11290
|
+
</button>
|
|
11291
|
+
</div>
|
|
11292
|
+
</div>
|
|
11293
11293
|
`, isInline: true, styles: [""], dependencies: [{ kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }] });
|
|
11294
11294
|
}
|
|
11295
11295
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FHFormToolBarComponent, decorators: [{
|
|
11296
11296
|
type: Component,
|
|
11297
|
-
args: [{ selector: 'FHFormToolBar', template: `
|
|
11298
|
-
<div fxLayout="row" fxLayoutGap="5px">
|
|
11299
|
-
<div
|
|
11300
|
-
fxLayout="row"
|
|
11301
|
-
fxLayoutGap="10px"
|
|
11302
|
-
[hidden]="is_editing"
|
|
11303
|
-
fxLayoutAlign="start center"
|
|
11304
|
-
>
|
|
11305
|
-
<div>
|
|
11306
|
-
<button mat-flat-button [hidden]="!show_back" (click)="back()">
|
|
11307
|
-
{{ mgs_back | translate }}
|
|
11308
|
-
</button>
|
|
11309
|
-
</div>
|
|
11310
|
-
<div>
|
|
11311
|
-
<button
|
|
11312
|
-
mat-flat-button
|
|
11313
|
-
color="primary"
|
|
11314
|
-
[hidden]="!editable || saveDirect"
|
|
11315
|
-
(click)="edit()"
|
|
11316
|
-
>
|
|
11317
|
-
<mat-icon>edit</mat-icon> {{ mgs_edit | translate }}
|
|
11318
|
-
</button>
|
|
11319
|
-
</div>
|
|
11320
|
-
<!-- <div><button
|
|
11321
|
-
[hidden]="!editable || !log_enabled"
|
|
11322
|
-
mat-flat-button
|
|
11323
|
-
*ngIf="App != ''"
|
|
11324
|
-
color="accent"
|
|
11325
|
-
(click)="logs()"
|
|
11326
|
-
>
|
|
11327
|
-
<mat-icon>assignment</mat-icon> Logs</button> </div> -->
|
|
11328
|
-
</div>
|
|
11329
|
-
<div
|
|
11330
|
-
fxLayout="row"
|
|
11331
|
-
fxLayoutGap="10px"
|
|
11332
|
-
[hidden]="!is_editing"
|
|
11333
|
-
fxLayoutAlign="start center"
|
|
11334
|
-
>
|
|
11335
|
-
<div>
|
|
11336
|
-
<button
|
|
11337
|
-
mat-flat-button
|
|
11338
|
-
[hidden]="!show_back"
|
|
11339
|
-
(click)="back_ask_save()"
|
|
11340
|
-
>
|
|
11341
|
-
{{ mgs_back | translate }}
|
|
11342
|
-
</button>
|
|
11343
|
-
</div>
|
|
11344
|
-
<div>
|
|
11345
|
-
<button
|
|
11346
|
-
mat-flat-button
|
|
11347
|
-
color="primary"
|
|
11348
|
-
[hidden]="!show_save && !saveDirect"
|
|
11349
|
-
(click)="save()"
|
|
11350
|
-
>
|
|
11351
|
-
<mat-icon>save</mat-icon> {{ mgs_save | translate }}
|
|
11352
|
-
</button>
|
|
11353
|
-
</div>
|
|
11354
|
-
</div>
|
|
11355
|
-
<div
|
|
11356
|
-
*ngIf="custom_commands.length > 0"
|
|
11357
|
-
fxLayoutGap="10px"
|
|
11358
|
-
fxLayout="row"
|
|
11359
|
-
fxLayoutAlign="end center"
|
|
11360
|
-
>
|
|
11361
|
-
<div
|
|
11362
|
-
*ngFor="let app of custom_commands"
|
|
11363
|
-
fxLayout="row"
|
|
11364
|
-
fxLayoutGap="5px"
|
|
11365
|
-
>
|
|
11366
|
-
<div>
|
|
11367
|
-
<button
|
|
11368
|
-
[hidden]="app.hidden != null && app.hidden"
|
|
11369
|
-
mat-flat-button
|
|
11370
|
-
[color]="app.color"
|
|
11371
|
-
(click)="exec_command(app.command)"
|
|
11372
|
-
>
|
|
11373
|
-
<mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
|
|
11374
|
-
>{{ app.label }}
|
|
11375
|
-
</button>
|
|
11376
|
-
</div>
|
|
11377
|
-
</div>
|
|
11378
|
-
</div>
|
|
11379
|
-
<div [hidden]="!log_enabled">
|
|
11380
|
-
|
|
11381
|
-
<button
|
|
11382
|
-
mat-flat-button
|
|
11383
|
-
*ngIf="App != ''"
|
|
11384
|
-
color="accent"
|
|
11385
|
-
(click)="logs()"
|
|
11386
|
-
>
|
|
11387
|
-
<mat-icon>assignment</mat-icon> Logs
|
|
11388
|
-
</button>
|
|
11389
|
-
</div>
|
|
11390
|
-
</div>
|
|
11297
|
+
args: [{ selector: 'FHFormToolBar', template: `
|
|
11298
|
+
<div fxLayout="row" fxLayoutGap="5px">
|
|
11299
|
+
<div
|
|
11300
|
+
fxLayout="row"
|
|
11301
|
+
fxLayoutGap="10px"
|
|
11302
|
+
[hidden]="is_editing"
|
|
11303
|
+
fxLayoutAlign="start center"
|
|
11304
|
+
>
|
|
11305
|
+
<div>
|
|
11306
|
+
<button mat-flat-button [hidden]="!show_back" (click)="back()">
|
|
11307
|
+
{{ mgs_back | translate }}
|
|
11308
|
+
</button>
|
|
11309
|
+
</div>
|
|
11310
|
+
<div>
|
|
11311
|
+
<button
|
|
11312
|
+
mat-flat-button
|
|
11313
|
+
color="primary"
|
|
11314
|
+
[hidden]="!editable || saveDirect"
|
|
11315
|
+
(click)="edit()"
|
|
11316
|
+
>
|
|
11317
|
+
<mat-icon>edit</mat-icon> {{ mgs_edit | translate }}
|
|
11318
|
+
</button>
|
|
11319
|
+
</div>
|
|
11320
|
+
<!-- <div><button
|
|
11321
|
+
[hidden]="!editable || !log_enabled"
|
|
11322
|
+
mat-flat-button
|
|
11323
|
+
*ngIf="App != ''"
|
|
11324
|
+
color="accent"
|
|
11325
|
+
(click)="logs()"
|
|
11326
|
+
>
|
|
11327
|
+
<mat-icon>assignment</mat-icon> Logs</button> </div> -->
|
|
11328
|
+
</div>
|
|
11329
|
+
<div
|
|
11330
|
+
fxLayout="row"
|
|
11331
|
+
fxLayoutGap="10px"
|
|
11332
|
+
[hidden]="!is_editing"
|
|
11333
|
+
fxLayoutAlign="start center"
|
|
11334
|
+
>
|
|
11335
|
+
<div>
|
|
11336
|
+
<button
|
|
11337
|
+
mat-flat-button
|
|
11338
|
+
[hidden]="!show_back"
|
|
11339
|
+
(click)="back_ask_save()"
|
|
11340
|
+
>
|
|
11341
|
+
{{ mgs_back | translate }}
|
|
11342
|
+
</button>
|
|
11343
|
+
</div>
|
|
11344
|
+
<div>
|
|
11345
|
+
<button
|
|
11346
|
+
mat-flat-button
|
|
11347
|
+
color="primary"
|
|
11348
|
+
[hidden]="!show_save && !saveDirect"
|
|
11349
|
+
(click)="save()"
|
|
11350
|
+
>
|
|
11351
|
+
<mat-icon>save</mat-icon> {{ mgs_save | translate }}
|
|
11352
|
+
</button>
|
|
11353
|
+
</div>
|
|
11354
|
+
</div>
|
|
11355
|
+
<div
|
|
11356
|
+
*ngIf="custom_commands.length > 0"
|
|
11357
|
+
fxLayoutGap="10px"
|
|
11358
|
+
fxLayout="row"
|
|
11359
|
+
fxLayoutAlign="end center"
|
|
11360
|
+
>
|
|
11361
|
+
<div
|
|
11362
|
+
*ngFor="let app of custom_commands"
|
|
11363
|
+
fxLayout="row"
|
|
11364
|
+
fxLayoutGap="5px"
|
|
11365
|
+
>
|
|
11366
|
+
<div>
|
|
11367
|
+
<button
|
|
11368
|
+
[hidden]="app.hidden != null && app.hidden"
|
|
11369
|
+
mat-flat-button
|
|
11370
|
+
[color]="app.color"
|
|
11371
|
+
(click)="exec_command(app.command)"
|
|
11372
|
+
>
|
|
11373
|
+
<mat-icon *ngIf="app.icon != null">{{ app.icon }}</mat-icon
|
|
11374
|
+
>{{ app.label }}
|
|
11375
|
+
</button>
|
|
11376
|
+
</div>
|
|
11377
|
+
</div>
|
|
11378
|
+
</div>
|
|
11379
|
+
<div [hidden]="!log_enabled">
|
|
11380
|
+
|
|
11381
|
+
<button
|
|
11382
|
+
mat-flat-button
|
|
11383
|
+
*ngIf="App != ''"
|
|
11384
|
+
color="accent"
|
|
11385
|
+
(click)="logs()"
|
|
11386
|
+
>
|
|
11387
|
+
<mat-icon>assignment</mat-icon> Logs
|
|
11388
|
+
</button>
|
|
11389
|
+
</div>
|
|
11390
|
+
</div>
|
|
11391
11391
|
` }]
|
|
11392
11392
|
}], ctorParameters: () => [{ type: i1$2.MatDialog }], propDecorators: { editable: [{
|
|
11393
11393
|
type: Input
|
|
@@ -16964,6 +16964,33 @@ class FHNotesPanelComponent {
|
|
|
16964
16964
|
this.edit_id = event.id_comment;
|
|
16965
16965
|
this.title = this._tsr.instant('MODIFICA COMMENTO');
|
|
16966
16966
|
}
|
|
16967
|
+
delete_comm(event) {
|
|
16968
|
+
let dialogRef = this.m_dialogRef.open(fh_win_confirm, {
|
|
16969
|
+
disableClose: true,
|
|
16970
|
+
data: {
|
|
16971
|
+
title_dialog: this._tsr.instant('Conferma Operazione'),
|
|
16972
|
+
msg_dialog: this._tsr.instant('Confermi di voler eliminare il commento?'),
|
|
16973
|
+
},
|
|
16974
|
+
});
|
|
16975
|
+
dialogRef.afterClosed().subscribe((result) => {
|
|
16976
|
+
if (result) {
|
|
16977
|
+
let p = new QParam();
|
|
16978
|
+
p.sql = 'DELETE_WKF_COMMENTO';
|
|
16979
|
+
p.types = ['string'];
|
|
16980
|
+
p.values = [event.id_comment];
|
|
16981
|
+
this._dataService.doQuery(p).subscribe((data) => {
|
|
16982
|
+
if (data != null)
|
|
16983
|
+
if (data.result_msg == 'OK') {
|
|
16984
|
+
this.toastr.info(this._tsr.instant('INFO'), this._tsr.instant('COMMENTO ELIMINATO'), {
|
|
16985
|
+
timeOut: 1000,
|
|
16986
|
+
progressBar: true,
|
|
16987
|
+
});
|
|
16988
|
+
this.refresh_list();
|
|
16989
|
+
}
|
|
16990
|
+
});
|
|
16991
|
+
}
|
|
16992
|
+
});
|
|
16993
|
+
}
|
|
16967
16994
|
refresh_list() {
|
|
16968
16995
|
if (this.App == null)
|
|
16969
16996
|
return;
|
|
@@ -17124,6 +17151,7 @@ class FHNotesPanelComponent {
|
|
|
17124
17151
|
<th width="15%">{{ 'Data' | translate }}</th>
|
|
17125
17152
|
|
|
17126
17153
|
<th width="20"></th>
|
|
17154
|
+
<th width="20"></th>
|
|
17127
17155
|
</tr>
|
|
17128
17156
|
</thead>
|
|
17129
17157
|
<tbody>
|
|
@@ -17152,6 +17180,17 @@ class FHNotesPanelComponent {
|
|
|
17152
17180
|
>edit
|
|
17153
17181
|
</mat-icon>
|
|
17154
17182
|
</td>
|
|
17183
|
+
<td style="text-align:center">
|
|
17184
|
+
<mat-icon
|
|
17185
|
+
*ngIf="
|
|
17186
|
+
|
|
17187
|
+
app.creatore ==
|
|
17188
|
+
m_appService.getState().wkf_doc_info.curr_user
|
|
17189
|
+
"
|
|
17190
|
+
(click)="delete_comm(app)"
|
|
17191
|
+
>delete
|
|
17192
|
+
</mat-icon>
|
|
17193
|
+
</td>
|
|
17155
17194
|
</tr>
|
|
17156
17195
|
</tbody>
|
|
17157
17196
|
</table>
|
|
@@ -17206,6 +17245,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
17206
17245
|
<th width="15%">{{ 'Data' | translate }}</th>
|
|
17207
17246
|
|
|
17208
17247
|
<th width="20"></th>
|
|
17248
|
+
<th width="20"></th>
|
|
17209
17249
|
</tr>
|
|
17210
17250
|
</thead>
|
|
17211
17251
|
<tbody>
|
|
@@ -17234,6 +17274,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImpor
|
|
|
17234
17274
|
>edit
|
|
17235
17275
|
</mat-icon>
|
|
17236
17276
|
</td>
|
|
17277
|
+
<td style="text-align:center">
|
|
17278
|
+
<mat-icon
|
|
17279
|
+
*ngIf="
|
|
17280
|
+
|
|
17281
|
+
app.creatore ==
|
|
17282
|
+
m_appService.getState().wkf_doc_info.curr_user
|
|
17283
|
+
"
|
|
17284
|
+
(click)="delete_comm(app)"
|
|
17285
|
+
>delete
|
|
17286
|
+
</mat-icon>
|
|
17287
|
+
</td>
|
|
17237
17288
|
</tr>
|
|
17238
17289
|
</tbody>
|
|
17239
17290
|
</table>
|
|
@@ -28405,597 +28456,597 @@ class FHFormBuilderComponent {
|
|
|
28405
28456
|
});
|
|
28406
28457
|
}
|
|
28407
28458
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FHFormBuilderComponent, deps: [{ token: UtilityService }, { token: i1$2.MatDialog }, { token: i3$5.DragulaService }, { token: QueryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
28408
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: FHFormBuilderComponent, selector: "FHFormBuilder", inputs: { showTextField: "showTextField", shownumberField: "shownumberField", showTextAreaField: "showTextAreaField", showCheckBoxField: "showCheckBoxField", showRadioField: "showRadioField", showDropDownField: "showDropDownField", showDateField: "showDateField", showArticlePicker: "showArticlePicker", showCustomerPicker: "showCustomerPicker" }, outputs: { change: "change" }, viewQueries: [{ propertyName: "bottoml", first: true, predicate: ["bottoml"], descendants: true }], ngImport: i0, template: `
|
|
28409
|
-
<div fxLayout="row" style="width: 100%;height:100%">
|
|
28410
|
-
<mat-toolbar style="max-width: 200px;height:100%;color:#FFF;background-color:#7e7e93">
|
|
28411
|
-
<mat-toolbar-row (click)="add_component(1)" *ngIf="showTextField" style="cursor: pointer;">
|
|
28412
|
-
<mat-icon>text_fields</mat-icon> <span
|
|
28413
|
-
>Text Field</span
|
|
28414
|
-
>
|
|
28415
|
-
</mat-toolbar-row>
|
|
28416
|
-
|
|
28417
|
-
<mat-toolbar-row (click)="add_component(2)" *ngIf="shownumberField" style="cursor: pointer;">
|
|
28418
|
-
<mat-icon>filter_1</mat-icon> <span>Number</span>
|
|
28419
|
-
</mat-toolbar-row>
|
|
28420
|
-
|
|
28421
|
-
<mat-toolbar-row (click)="add_component(3)" *ngIf="showTextAreaField" style="cursor: pointer;">
|
|
28422
|
-
<mat-icon>filter_none</mat-icon> <span
|
|
28423
|
-
>Text Area</span
|
|
28424
|
-
>
|
|
28425
|
-
</mat-toolbar-row>
|
|
28426
|
-
|
|
28427
|
-
<mat-toolbar-row (click)="add_component(4)" *ngIf="showCheckBoxField" style="cursor: pointer;">
|
|
28428
|
-
<mat-icon>check_box</mat-icon> <span>Check Box</span>
|
|
28429
|
-
</mat-toolbar-row>
|
|
28430
|
-
|
|
28431
|
-
<mat-toolbar-row (click)="add_component(5)" *ngIf="showRadioField" style="cursor: pointer;">
|
|
28432
|
-
<mat-icon>radio_button_checked</mat-icon> <span
|
|
28433
|
-
>Radio</span
|
|
28434
|
-
>
|
|
28435
|
-
</mat-toolbar-row>
|
|
28436
|
-
|
|
28437
|
-
<mat-toolbar-row (click)="add_component(6)" *ngIf="showDropDownField" style="cursor: pointer;">
|
|
28438
|
-
<mat-icon>dehaze</mat-icon> <span>DropDown</span>
|
|
28439
|
-
</mat-toolbar-row>
|
|
28440
|
-
|
|
28441
|
-
<mat-toolbar-row (click)="add_component(7)" *ngIf="showDateField" style="cursor: pointer;">
|
|
28442
|
-
<mat-icon>today</mat-icon> <span>Date</span>
|
|
28443
|
-
</mat-toolbar-row>
|
|
28444
|
-
|
|
28445
|
-
<mat-toolbar-row (click)="add_component(8)" *ngIf="showArticlePicker" style="cursor: pointer;">
|
|
28446
|
-
<mat-icon>build</mat-icon> <span>Article Sel.</span>
|
|
28447
|
-
</mat-toolbar-row>
|
|
28448
|
-
|
|
28449
|
-
<mat-toolbar-row (click)="add_component(9)" *ngIf="showCustomerPicker" style="cursor: pointer;">
|
|
28450
|
-
<mat-icon>dashboard</mat-icon> <span
|
|
28451
|
-
>Customer Sel.</span
|
|
28452
|
-
>
|
|
28453
|
-
</mat-toolbar-row>
|
|
28454
|
-
</mat-toolbar>
|
|
28455
|
-
<div
|
|
28456
|
-
fxLayout="column"
|
|
28457
|
-
fxFlex="100"
|
|
28458
|
-
style="width:100%;border:1px solid #004040;height:100%;overflow:auto;background-color: #a6aec4"
|
|
28459
|
-
>
|
|
28460
|
-
<div fxLayout="row" style="width:90%;width:100%;height:5000px;">
|
|
28461
|
-
<ul
|
|
28462
|
-
[dragula]="'bag-items'"
|
|
28463
|
-
[(dragulaModel)]="items"
|
|
28464
|
-
style="width:100%;"
|
|
28465
|
-
>
|
|
28466
|
-
<li
|
|
28467
|
-
fxLayout="row"
|
|
28468
|
-
fxLayoutGap="10px"
|
|
28469
|
-
*ngFor="let item of items"
|
|
28470
|
-
[ngStyle]="setStyles(item.uiid)"
|
|
28471
|
-
fxLayoutAlign="start center"
|
|
28472
|
-
>
|
|
28473
|
-
<div style="width:100%">
|
|
28474
|
-
<div style="width: 90%">
|
|
28475
|
-
<mat-form-field
|
|
28476
|
-
*ngIf="item.type == 'text_field'"
|
|
28477
|
-
style="max-width: 350px"
|
|
28478
|
-
appearance="outline"
|
|
28479
|
-
floatLabel="always"
|
|
28480
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
28481
|
-
<input
|
|
28482
|
-
matInput
|
|
28483
|
-
[required]="item.required"
|
|
28484
|
-
type="text"
|
|
28485
|
-
[(ngModel)]="item.default_value"
|
|
28486
|
-
/>
|
|
28487
|
-
</mat-form-field>
|
|
28488
|
-
|
|
28489
|
-
<FHNumericField
|
|
28490
|
-
*ngIf="item.type == 'numeric_field'"
|
|
28491
|
-
[label]="item.label"
|
|
28492
|
-
[required]="item.required"
|
|
28493
|
-
[(ngModel)]="item.default_value"
|
|
28494
|
-
[decimal]="item.decimali"
|
|
28495
|
-
>
|
|
28496
|
-
</FHNumericField>
|
|
28497
|
-
|
|
28498
|
-
<FHTextArea
|
|
28499
|
-
*ngIf="item.type == 'textarea'"
|
|
28500
|
-
[label]="item.label"
|
|
28501
|
-
[required]="item.required"
|
|
28502
|
-
[(ngModel)]="item.default_value"
|
|
28503
|
-
height="15'"
|
|
28504
|
-
[enabled]="false"
|
|
28505
|
-
></FHTextArea>
|
|
28506
|
-
|
|
28507
|
-
<div
|
|
28508
|
-
fxLayout="row"
|
|
28509
|
-
fxLayoutGap="7px"
|
|
28510
|
-
*ngIf="item.type == 'article_picker'"
|
|
28511
|
-
>
|
|
28512
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28513
|
-
<div style="width:80%"></div>
|
|
28514
|
-
<button [disabled]="true" mat-raised-button>
|
|
28515
|
-
Select Article
|
|
28516
|
-
</button>
|
|
28517
|
-
</div>
|
|
28518
|
-
<div
|
|
28519
|
-
fxLayout="row"
|
|
28520
|
-
fxLayoutGap="7px"
|
|
28521
|
-
*ngIf="item.type == 'customer_picker'"
|
|
28522
|
-
>
|
|
28523
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28524
|
-
<div style="width:80%"></div>
|
|
28525
|
-
<button [disabled]="true" mat-raised-button>
|
|
28526
|
-
Select Customer
|
|
28527
|
-
</button>
|
|
28528
|
-
</div>
|
|
28529
|
-
<mat-checkbox
|
|
28530
|
-
*ngIf="item.type == 'checkbox'"
|
|
28531
|
-
[required]="item.required"
|
|
28532
|
-
[(ngModel)]="item.default_value"
|
|
28533
|
-
><b>{{ item.label }}</b></mat-checkbox
|
|
28534
|
-
>
|
|
28535
|
-
|
|
28536
|
-
<div
|
|
28537
|
-
fxLayout="row"
|
|
28538
|
-
fxLayoutGap="5px"
|
|
28539
|
-
class="custom-section"
|
|
28540
|
-
*ngIf="item.type == 'radiobutton'"
|
|
28541
|
-
>
|
|
28542
|
-
<label class="custom-margin">{{ item.label }}:</label
|
|
28543
|
-
>
|
|
28544
|
-
<mat-radio-group
|
|
28545
|
-
class="fh-radio-group"
|
|
28546
|
-
[(ngModel)]="item.default_value"
|
|
28547
|
-
[required]="item.required"
|
|
28548
|
-
>
|
|
28549
|
-
<mat-radio-button
|
|
28550
|
-
class="fh-radio-button"
|
|
28551
|
-
*ngFor="let opt of item.opts"
|
|
28552
|
-
class="custom-margin"
|
|
28553
|
-
value="{{ opt }}"
|
|
28554
|
-
><b>{{ opt }}</b></mat-radio-button
|
|
28555
|
-
>
|
|
28556
|
-
</mat-radio-group>
|
|
28557
|
-
</div>
|
|
28558
|
-
|
|
28559
|
-
<mat-form-field
|
|
28560
|
-
*ngIf="item.type == 'select'"
|
|
28561
|
-
style="max-width: 400px"
|
|
28562
|
-
appearance="outline"
|
|
28563
|
-
floatLabel="always"
|
|
28564
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
28565
|
-
<mat-select
|
|
28566
|
-
[required]="item.required"
|
|
28567
|
-
[(ngModel)]="item.default_value"
|
|
28568
|
-
>
|
|
28569
|
-
<mat-option
|
|
28570
|
-
*ngFor="let opt of item.opts_l"
|
|
28571
|
-
value="{{ opt }}"
|
|
28572
|
-
>{{ opt }}</mat-option
|
|
28573
|
-
>
|
|
28574
|
-
</mat-select>
|
|
28575
|
-
</mat-form-field>
|
|
28576
|
-
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
28577
|
-
<FHDatePicker
|
|
28578
|
-
[required]="item.required"
|
|
28579
|
-
[(ngModel)]="item.default_value"
|
|
28580
|
-
[label]="item.label"
|
|
28581
|
-
></FHDatePicker
|
|
28582
|
-
>
|
|
28583
|
-
</div>
|
|
28584
|
-
</div>
|
|
28585
|
-
</div>
|
|
28586
|
-
<div fxLayout="column" style="width:70px" fxLayoutGap="10px">
|
|
28587
|
-
<button
|
|
28588
|
-
mat-flat-button
|
|
28589
|
-
class="fh_icon_button"
|
|
28590
|
-
(click)="edit_item(item.uiid)"
|
|
28591
|
-
color="primary"
|
|
28592
|
-
>
|
|
28593
|
-
<mat-icon>edit</mat-icon>
|
|
28594
|
-
</button>
|
|
28595
|
-
<button
|
|
28596
|
-
class="fh_icon_button"
|
|
28597
|
-
mat-flat-button
|
|
28598
|
-
(click)="del_item(item.uiid)"
|
|
28599
|
-
color="warn"
|
|
28600
|
-
>
|
|
28601
|
-
<mat-icon>delete</mat-icon>
|
|
28602
|
-
</button>
|
|
28603
|
-
</div>
|
|
28604
|
-
</li>
|
|
28605
|
-
</ul>
|
|
28606
|
-
</div>
|
|
28607
|
-
<mat-form-field [hidden]="true">
|
|
28608
|
-
<input matInput #bottoml />
|
|
28609
|
-
</mat-form-field>
|
|
28610
|
-
</div>
|
|
28611
|
-
|
|
28612
|
-
<div
|
|
28613
|
-
style="width:400px;height:100%;background-color: #3F51B5"
|
|
28614
|
-
fxLayoutAlign="start center"
|
|
28615
|
-
fxLayout="column"
|
|
28616
|
-
*ngIf="edit_obj != null"
|
|
28617
|
-
>
|
|
28618
|
-
<br /><br />
|
|
28619
|
-
<mat-card style="width: 96%">
|
|
28620
|
-
<mat-card-title>Properties</mat-card-title>
|
|
28621
|
-
<mat-card-content>
|
|
28622
|
-
<div fxLayout="column" fxLayoutGap="10px">
|
|
28623
|
-
|
|
28624
|
-
<mat-form-field appearance="outline" floatLabel="always"
|
|
28625
|
-
><mat-label>Label</mat-label>
|
|
28626
|
-
<input matInput type="text" [(ngModel)]="edit_obj.label" />
|
|
28627
|
-
</mat-form-field>
|
|
28628
|
-
|
|
28629
|
-
<mat-checkbox
|
|
28630
|
-
[(ngModel)]="edit_obj.required"
|
|
28631
|
-
*ngIf="edit_obj.type != 'checkbox'"
|
|
28632
|
-
>Required</mat-checkbox>
|
|
28633
|
-
|
|
28634
|
-
<mat-form-field
|
|
28635
|
-
*ngIf="edit_obj.type == 'numeric_field'"
|
|
28636
|
-
appearance="outline"
|
|
28637
|
-
floatLabel="always"
|
|
28638
|
-
><mat-label>Decimal Places</mat-label>
|
|
28639
|
-
<input matInput type="text" [(ngModel)]="edit_obj.decimali" />
|
|
28640
|
-
</mat-form-field>
|
|
28641
|
-
|
|
28642
|
-
<mat-form-field
|
|
28643
|
-
*ngIf="edit_obj.type == 'text_field'"
|
|
28644
|
-
appearance="outline"
|
|
28645
|
-
floatLabel="always"
|
|
28646
|
-
><mat-label>Default Value</mat-label>
|
|
28647
|
-
<input
|
|
28648
|
-
matInput
|
|
28649
|
-
type="text"
|
|
28650
|
-
[(ngModel)]="edit_obj.default_value"
|
|
28651
|
-
/>
|
|
28652
|
-
</mat-form-field>
|
|
28653
|
-
|
|
28654
|
-
<mat-checkbox
|
|
28655
|
-
*ngIf="edit_obj.type == 'checkbox'"
|
|
28656
|
-
[(ngModel)]="edit_obj.default_value"
|
|
28657
|
-
>Default Value</mat-checkbox>
|
|
28658
|
-
|
|
28659
|
-
<mat-form-field
|
|
28660
|
-
*ngIf="
|
|
28661
|
-
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
28662
|
-
"
|
|
28663
|
-
appearance="outline"
|
|
28664
|
-
floatLabel="always"
|
|
28665
|
-
><mat-label>Values</mat-label>
|
|
28666
|
-
<input
|
|
28667
|
-
matInput
|
|
28668
|
-
type="text"
|
|
28669
|
-
[(ngModel)]="radio_values"
|
|
28670
|
-
(ngModelChange)="edit_obj.opts = $event.split(',')"
|
|
28671
|
-
/>
|
|
28672
|
-
</mat-form-field>
|
|
28673
|
-
<mat-form-field
|
|
28674
|
-
*ngIf="
|
|
28675
|
-
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
28676
|
-
"
|
|
28677
|
-
appearance="outline"
|
|
28678
|
-
floatLabel="always"
|
|
28679
|
-
><mat-label>Default Value</mat-label>
|
|
28680
|
-
<input
|
|
28681
|
-
matInput
|
|
28682
|
-
type="text"
|
|
28683
|
-
[(ngModel)]="edit_obj.default_value"
|
|
28684
|
-
/>
|
|
28685
|
-
</mat-form-field>
|
|
28686
|
-
|
|
28687
|
-
<mat-form-field appearance="outline" floatLabel="always"
|
|
28688
|
-
><mat-label>Extra Param</mat-label>
|
|
28689
|
-
<input matInput type="text" [(ngModel)]="edit_obj.extra_param" />
|
|
28690
|
-
</mat-form-field>
|
|
28691
|
-
|
|
28692
|
-
|
|
28693
|
-
<button mat-flat-button (click)="ok_panel()" color="primary">
|
|
28694
|
-
OK
|
|
28695
|
-
</button>
|
|
28696
|
-
</div></mat-card-content
|
|
28697
|
-
>
|
|
28698
|
-
</mat-card>
|
|
28699
|
-
</div>
|
|
28700
|
-
</div>
|
|
28701
|
-
`, isInline: true, styles: [".fh-radio-group{display:flex;flex-direction:column
|
|
28702
|
-
}
|
|
28703
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FHFormBuilderComponent, decorators: [{
|
|
28704
|
-
type: Component,
|
|
28705
|
-
args: [{ selector: 'FHFormBuilder', template: `
|
|
28706
|
-
<div fxLayout="row" style="width: 100%;height:100%">
|
|
28707
|
-
<mat-toolbar style="max-width: 200px;height:100%;color:#FFF;background-color:#7e7e93">
|
|
28708
|
-
<mat-toolbar-row (click)="add_component(1)" *ngIf="showTextField" style="cursor: pointer;">
|
|
28709
|
-
<mat-icon>text_fields</mat-icon> <span
|
|
28710
|
-
>Text Field</span
|
|
28711
|
-
>
|
|
28712
|
-
</mat-toolbar-row>
|
|
28713
|
-
|
|
28714
|
-
<mat-toolbar-row (click)="add_component(2)" *ngIf="shownumberField" style="cursor: pointer;">
|
|
28715
|
-
<mat-icon>filter_1</mat-icon> <span>Number</span>
|
|
28716
|
-
</mat-toolbar-row>
|
|
28717
|
-
|
|
28718
|
-
<mat-toolbar-row (click)="add_component(3)" *ngIf="showTextAreaField" style="cursor: pointer;">
|
|
28719
|
-
<mat-icon>filter_none</mat-icon> <span
|
|
28720
|
-
>Text Area</span
|
|
28721
|
-
>
|
|
28722
|
-
</mat-toolbar-row>
|
|
28723
|
-
|
|
28724
|
-
<mat-toolbar-row (click)="add_component(4)" *ngIf="showCheckBoxField" style="cursor: pointer;">
|
|
28725
|
-
<mat-icon>check_box</mat-icon> <span>Check Box</span>
|
|
28726
|
-
</mat-toolbar-row>
|
|
28727
|
-
|
|
28728
|
-
<mat-toolbar-row (click)="add_component(5)" *ngIf="showRadioField" style="cursor: pointer;">
|
|
28729
|
-
<mat-icon>radio_button_checked</mat-icon> <span
|
|
28730
|
-
>Radio</span
|
|
28731
|
-
>
|
|
28732
|
-
</mat-toolbar-row>
|
|
28733
|
-
|
|
28734
|
-
<mat-toolbar-row (click)="add_component(6)" *ngIf="showDropDownField" style="cursor: pointer;">
|
|
28735
|
-
<mat-icon>dehaze</mat-icon> <span>DropDown</span>
|
|
28736
|
-
</mat-toolbar-row>
|
|
28737
|
-
|
|
28738
|
-
<mat-toolbar-row (click)="add_component(7)" *ngIf="showDateField" style="cursor: pointer;">
|
|
28739
|
-
<mat-icon>today</mat-icon> <span>Date</span>
|
|
28740
|
-
</mat-toolbar-row>
|
|
28741
|
-
|
|
28742
|
-
<mat-toolbar-row (click)="add_component(8)" *ngIf="showArticlePicker" style="cursor: pointer;">
|
|
28743
|
-
<mat-icon>build</mat-icon> <span>Article Sel.</span>
|
|
28744
|
-
</mat-toolbar-row>
|
|
28745
|
-
|
|
28746
|
-
<mat-toolbar-row (click)="add_component(9)" *ngIf="showCustomerPicker" style="cursor: pointer;">
|
|
28747
|
-
<mat-icon>dashboard</mat-icon> <span
|
|
28748
|
-
>Customer Sel.</span
|
|
28749
|
-
>
|
|
28750
|
-
</mat-toolbar-row>
|
|
28751
|
-
</mat-toolbar>
|
|
28752
|
-
<div
|
|
28753
|
-
fxLayout="column"
|
|
28754
|
-
fxFlex="100"
|
|
28755
|
-
style="width:100%;border:1px solid #004040;height:100%;overflow:auto;background-color: #a6aec4"
|
|
28756
|
-
>
|
|
28757
|
-
<div fxLayout="row" style="width:90%;width:100%;height:5000px;">
|
|
28758
|
-
<ul
|
|
28759
|
-
[dragula]="'bag-items'"
|
|
28760
|
-
[(dragulaModel)]="items"
|
|
28761
|
-
style="width:100%;"
|
|
28762
|
-
>
|
|
28763
|
-
<li
|
|
28764
|
-
fxLayout="row"
|
|
28765
|
-
fxLayoutGap="10px"
|
|
28766
|
-
*ngFor="let item of items"
|
|
28767
|
-
[ngStyle]="setStyles(item.uiid)"
|
|
28768
|
-
fxLayoutAlign="start center"
|
|
28769
|
-
>
|
|
28770
|
-
<div style="width:100%">
|
|
28771
|
-
<div style="width: 90%">
|
|
28772
|
-
<mat-form-field
|
|
28773
|
-
*ngIf="item.type == 'text_field'"
|
|
28774
|
-
style="max-width: 350px"
|
|
28775
|
-
appearance="outline"
|
|
28776
|
-
floatLabel="always"
|
|
28777
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
28778
|
-
<input
|
|
28779
|
-
matInput
|
|
28780
|
-
[required]="item.required"
|
|
28781
|
-
type="text"
|
|
28782
|
-
[(ngModel)]="item.default_value"
|
|
28783
|
-
/>
|
|
28784
|
-
</mat-form-field>
|
|
28785
|
-
|
|
28786
|
-
<FHNumericField
|
|
28787
|
-
*ngIf="item.type == 'numeric_field'"
|
|
28788
|
-
[label]="item.label"
|
|
28789
|
-
[required]="item.required"
|
|
28790
|
-
[(ngModel)]="item.default_value"
|
|
28791
|
-
[decimal]="item.decimali"
|
|
28792
|
-
>
|
|
28793
|
-
</FHNumericField>
|
|
28794
|
-
|
|
28795
|
-
<FHTextArea
|
|
28796
|
-
*ngIf="item.type == 'textarea'"
|
|
28797
|
-
[label]="item.label"
|
|
28798
|
-
[required]="item.required"
|
|
28799
|
-
[(ngModel)]="item.default_value"
|
|
28800
|
-
height="15'"
|
|
28801
|
-
[enabled]="false"
|
|
28802
|
-
></FHTextArea>
|
|
28803
|
-
|
|
28804
|
-
<div
|
|
28805
|
-
fxLayout="row"
|
|
28806
|
-
fxLayoutGap="7px"
|
|
28807
|
-
*ngIf="item.type == 'article_picker'"
|
|
28808
|
-
>
|
|
28809
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28810
|
-
<div style="width:80%"></div>
|
|
28811
|
-
<button [disabled]="true" mat-raised-button>
|
|
28812
|
-
Select Article
|
|
28813
|
-
</button>
|
|
28814
|
-
</div>
|
|
28815
|
-
<div
|
|
28816
|
-
fxLayout="row"
|
|
28817
|
-
fxLayoutGap="7px"
|
|
28818
|
-
*ngIf="item.type == 'customer_picker'"
|
|
28819
|
-
>
|
|
28820
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28821
|
-
<div style="width:80%"></div>
|
|
28822
|
-
<button [disabled]="true" mat-raised-button>
|
|
28823
|
-
Select Customer
|
|
28824
|
-
</button>
|
|
28825
|
-
</div>
|
|
28826
|
-
<mat-checkbox
|
|
28827
|
-
*ngIf="item.type == 'checkbox'"
|
|
28828
|
-
[required]="item.required"
|
|
28829
|
-
[(ngModel)]="item.default_value"
|
|
28830
|
-
><b>{{ item.label }}</b></mat-checkbox
|
|
28831
|
-
>
|
|
28832
|
-
|
|
28833
|
-
<div
|
|
28834
|
-
fxLayout="row"
|
|
28835
|
-
fxLayoutGap="5px"
|
|
28836
|
-
class="custom-section"
|
|
28837
|
-
*ngIf="item.type == 'radiobutton'"
|
|
28838
|
-
>
|
|
28839
|
-
<label class="custom-margin">{{ item.label }}:</label
|
|
28840
|
-
>
|
|
28841
|
-
<mat-radio-group
|
|
28842
|
-
class="fh-radio-group"
|
|
28843
|
-
[(ngModel)]="item.default_value"
|
|
28844
|
-
[required]="item.required"
|
|
28845
|
-
>
|
|
28846
|
-
<mat-radio-button
|
|
28847
|
-
class="fh-radio-button"
|
|
28848
|
-
*ngFor="let opt of item.opts"
|
|
28849
|
-
class="custom-margin"
|
|
28850
|
-
value="{{ opt }}"
|
|
28851
|
-
><b>{{ opt }}</b></mat-radio-button
|
|
28852
|
-
>
|
|
28853
|
-
</mat-radio-group>
|
|
28854
|
-
</div>
|
|
28855
|
-
|
|
28856
|
-
<mat-form-field
|
|
28857
|
-
*ngIf="item.type == 'select'"
|
|
28858
|
-
style="max-width: 400px"
|
|
28859
|
-
appearance="outline"
|
|
28860
|
-
floatLabel="always"
|
|
28861
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
28862
|
-
<mat-select
|
|
28863
|
-
[required]="item.required"
|
|
28864
|
-
[(ngModel)]="item.default_value"
|
|
28865
|
-
>
|
|
28866
|
-
<mat-option
|
|
28867
|
-
*ngFor="let opt of item.opts_l"
|
|
28868
|
-
value="{{ opt }}"
|
|
28869
|
-
>{{ opt }}</mat-option
|
|
28870
|
-
>
|
|
28871
|
-
</mat-select>
|
|
28872
|
-
</mat-form-field>
|
|
28873
|
-
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
28874
|
-
<FHDatePicker
|
|
28875
|
-
[required]="item.required"
|
|
28876
|
-
[(ngModel)]="item.default_value"
|
|
28877
|
-
[label]="item.label"
|
|
28878
|
-
></FHDatePicker
|
|
28879
|
-
>
|
|
28880
|
-
</div>
|
|
28881
|
-
</div>
|
|
28882
|
-
</div>
|
|
28883
|
-
<div fxLayout="column" style="width:70px" fxLayoutGap="10px">
|
|
28884
|
-
<button
|
|
28885
|
-
mat-flat-button
|
|
28886
|
-
class="fh_icon_button"
|
|
28887
|
-
(click)="edit_item(item.uiid)"
|
|
28888
|
-
color="primary"
|
|
28889
|
-
>
|
|
28890
|
-
<mat-icon>edit</mat-icon>
|
|
28891
|
-
</button>
|
|
28892
|
-
<button
|
|
28893
|
-
class="fh_icon_button"
|
|
28894
|
-
mat-flat-button
|
|
28895
|
-
(click)="del_item(item.uiid)"
|
|
28896
|
-
color="warn"
|
|
28897
|
-
>
|
|
28898
|
-
<mat-icon>delete</mat-icon>
|
|
28899
|
-
</button>
|
|
28900
|
-
</div>
|
|
28901
|
-
</li>
|
|
28902
|
-
</ul>
|
|
28903
|
-
</div>
|
|
28904
|
-
<mat-form-field [hidden]="true">
|
|
28905
|
-
<input matInput #bottoml />
|
|
28906
|
-
</mat-form-field>
|
|
28907
|
-
</div>
|
|
28908
|
-
|
|
28909
|
-
<div
|
|
28910
|
-
style="width:400px;height:100%;background-color: #3F51B5"
|
|
28911
|
-
fxLayoutAlign="start center"
|
|
28912
|
-
fxLayout="column"
|
|
28913
|
-
*ngIf="edit_obj != null"
|
|
28914
|
-
>
|
|
28915
|
-
<br /><br />
|
|
28916
|
-
<mat-card style="width: 96%">
|
|
28917
|
-
<mat-card-title>Properties</mat-card-title>
|
|
28918
|
-
<mat-card-content>
|
|
28919
|
-
<div fxLayout="column" fxLayoutGap="10px">
|
|
28920
|
-
|
|
28921
|
-
<mat-form-field appearance="outline" floatLabel="always"
|
|
28922
|
-
><mat-label>Label</mat-label>
|
|
28923
|
-
<input matInput type="text" [(ngModel)]="edit_obj.label" />
|
|
28924
|
-
</mat-form-field>
|
|
28925
|
-
|
|
28926
|
-
<mat-checkbox
|
|
28927
|
-
[(ngModel)]="edit_obj.required"
|
|
28928
|
-
*ngIf="edit_obj.type != 'checkbox'"
|
|
28929
|
-
>Required</mat-checkbox>
|
|
28930
|
-
|
|
28931
|
-
<mat-form-field
|
|
28932
|
-
*ngIf="edit_obj.type == 'numeric_field'"
|
|
28933
|
-
appearance="outline"
|
|
28934
|
-
floatLabel="always"
|
|
28935
|
-
><mat-label>Decimal Places</mat-label>
|
|
28936
|
-
<input matInput type="text" [(ngModel)]="edit_obj.decimali" />
|
|
28937
|
-
</mat-form-field>
|
|
28938
|
-
|
|
28939
|
-
<mat-form-field
|
|
28940
|
-
*ngIf="edit_obj.type == 'text_field'"
|
|
28941
|
-
appearance="outline"
|
|
28942
|
-
floatLabel="always"
|
|
28943
|
-
><mat-label>Default Value</mat-label>
|
|
28944
|
-
<input
|
|
28945
|
-
matInput
|
|
28946
|
-
type="text"
|
|
28947
|
-
[(ngModel)]="edit_obj.default_value"
|
|
28948
|
-
/>
|
|
28949
|
-
</mat-form-field>
|
|
28950
|
-
|
|
28951
|
-
<mat-checkbox
|
|
28952
|
-
*ngIf="edit_obj.type == 'checkbox'"
|
|
28953
|
-
[(ngModel)]="edit_obj.default_value"
|
|
28954
|
-
>Default Value</mat-checkbox>
|
|
28955
|
-
|
|
28956
|
-
<mat-form-field
|
|
28957
|
-
*ngIf="
|
|
28958
|
-
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
28959
|
-
"
|
|
28960
|
-
appearance="outline"
|
|
28961
|
-
floatLabel="always"
|
|
28962
|
-
><mat-label>Values</mat-label>
|
|
28963
|
-
<input
|
|
28964
|
-
matInput
|
|
28965
|
-
type="text"
|
|
28966
|
-
[(ngModel)]="radio_values"
|
|
28967
|
-
(ngModelChange)="edit_obj.opts = $event.split(',')"
|
|
28968
|
-
/>
|
|
28969
|
-
</mat-form-field>
|
|
28970
|
-
<mat-form-field
|
|
28971
|
-
*ngIf="
|
|
28972
|
-
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
28973
|
-
"
|
|
28974
|
-
appearance="outline"
|
|
28975
|
-
floatLabel="always"
|
|
28976
|
-
><mat-label>Default Value</mat-label>
|
|
28977
|
-
<input
|
|
28978
|
-
matInput
|
|
28979
|
-
type="text"
|
|
28980
|
-
[(ngModel)]="edit_obj.default_value"
|
|
28981
|
-
/>
|
|
28982
|
-
</mat-form-field>
|
|
28983
|
-
|
|
28984
|
-
<mat-form-field appearance="outline" floatLabel="always"
|
|
28985
|
-
><mat-label>Extra Param</mat-label>
|
|
28986
|
-
<input matInput type="text" [(ngModel)]="edit_obj.extra_param" />
|
|
28987
|
-
</mat-form-field>
|
|
28988
|
-
|
|
28989
|
-
|
|
28990
|
-
<button mat-flat-button (click)="ok_panel()" color="primary">
|
|
28991
|
-
OK
|
|
28992
|
-
</button>
|
|
28993
|
-
</div></mat-card-content
|
|
28994
|
-
>
|
|
28995
|
-
</mat-card>
|
|
28996
|
-
</div>
|
|
28997
|
-
</div>
|
|
28998
|
-
`, styles: [".fh-radio-group{display:flex;flex-direction:column
|
|
28459
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: FHFormBuilderComponent, selector: "FHFormBuilder", inputs: { showTextField: "showTextField", shownumberField: "shownumberField", showTextAreaField: "showTextAreaField", showCheckBoxField: "showCheckBoxField", showRadioField: "showRadioField", showDropDownField: "showDropDownField", showDateField: "showDateField", showArticlePicker: "showArticlePicker", showCustomerPicker: "showCustomerPicker" }, outputs: { change: "change" }, viewQueries: [{ propertyName: "bottoml", first: true, predicate: ["bottoml"], descendants: true }], ngImport: i0, template: `
|
|
28460
|
+
<div fxLayout="row" style="width: 100%;height:100%">
|
|
28461
|
+
<mat-toolbar style="max-width: 200px;height:100%;color:#FFF;background-color:#7e7e93">
|
|
28462
|
+
<mat-toolbar-row (click)="add_component(1)" *ngIf="showTextField" style="cursor: pointer;">
|
|
28463
|
+
<mat-icon>text_fields</mat-icon> <span
|
|
28464
|
+
>Text Field</span
|
|
28465
|
+
>
|
|
28466
|
+
</mat-toolbar-row>
|
|
28467
|
+
|
|
28468
|
+
<mat-toolbar-row (click)="add_component(2)" *ngIf="shownumberField" style="cursor: pointer;">
|
|
28469
|
+
<mat-icon>filter_1</mat-icon> <span>Number</span>
|
|
28470
|
+
</mat-toolbar-row>
|
|
28471
|
+
|
|
28472
|
+
<mat-toolbar-row (click)="add_component(3)" *ngIf="showTextAreaField" style="cursor: pointer;">
|
|
28473
|
+
<mat-icon>filter_none</mat-icon> <span
|
|
28474
|
+
>Text Area</span
|
|
28475
|
+
>
|
|
28476
|
+
</mat-toolbar-row>
|
|
28477
|
+
|
|
28478
|
+
<mat-toolbar-row (click)="add_component(4)" *ngIf="showCheckBoxField" style="cursor: pointer;">
|
|
28479
|
+
<mat-icon>check_box</mat-icon> <span>Check Box</span>
|
|
28480
|
+
</mat-toolbar-row>
|
|
28481
|
+
|
|
28482
|
+
<mat-toolbar-row (click)="add_component(5)" *ngIf="showRadioField" style="cursor: pointer;">
|
|
28483
|
+
<mat-icon>radio_button_checked</mat-icon> <span
|
|
28484
|
+
>Radio</span
|
|
28485
|
+
>
|
|
28486
|
+
</mat-toolbar-row>
|
|
28487
|
+
|
|
28488
|
+
<mat-toolbar-row (click)="add_component(6)" *ngIf="showDropDownField" style="cursor: pointer;">
|
|
28489
|
+
<mat-icon>dehaze</mat-icon> <span>DropDown</span>
|
|
28490
|
+
</mat-toolbar-row>
|
|
28491
|
+
|
|
28492
|
+
<mat-toolbar-row (click)="add_component(7)" *ngIf="showDateField" style="cursor: pointer;">
|
|
28493
|
+
<mat-icon>today</mat-icon> <span>Date</span>
|
|
28494
|
+
</mat-toolbar-row>
|
|
28495
|
+
|
|
28496
|
+
<mat-toolbar-row (click)="add_component(8)" *ngIf="showArticlePicker" style="cursor: pointer;">
|
|
28497
|
+
<mat-icon>build</mat-icon> <span>Article Sel.</span>
|
|
28498
|
+
</mat-toolbar-row>
|
|
28499
|
+
|
|
28500
|
+
<mat-toolbar-row (click)="add_component(9)" *ngIf="showCustomerPicker" style="cursor: pointer;">
|
|
28501
|
+
<mat-icon>dashboard</mat-icon> <span
|
|
28502
|
+
>Customer Sel.</span
|
|
28503
|
+
>
|
|
28504
|
+
</mat-toolbar-row>
|
|
28505
|
+
</mat-toolbar>
|
|
28506
|
+
<div
|
|
28507
|
+
fxLayout="column"
|
|
28508
|
+
fxFlex="100"
|
|
28509
|
+
style="width:100%;border:1px solid #004040;height:100%;overflow:auto;background-color: #a6aec4"
|
|
28510
|
+
>
|
|
28511
|
+
<div fxLayout="row" style="width:90%;width:100%;height:5000px;">
|
|
28512
|
+
<ul
|
|
28513
|
+
[dragula]="'bag-items'"
|
|
28514
|
+
[(dragulaModel)]="items"
|
|
28515
|
+
style="width:100%;"
|
|
28516
|
+
>
|
|
28517
|
+
<li
|
|
28518
|
+
fxLayout="row"
|
|
28519
|
+
fxLayoutGap="10px"
|
|
28520
|
+
*ngFor="let item of items"
|
|
28521
|
+
[ngStyle]="setStyles(item.uiid)"
|
|
28522
|
+
fxLayoutAlign="start center"
|
|
28523
|
+
>
|
|
28524
|
+
<div style="width:100%">
|
|
28525
|
+
<div style="width: 90%">
|
|
28526
|
+
<mat-form-field
|
|
28527
|
+
*ngIf="item.type == 'text_field'"
|
|
28528
|
+
style="max-width: 350px"
|
|
28529
|
+
appearance="outline"
|
|
28530
|
+
floatLabel="always"
|
|
28531
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
28532
|
+
<input
|
|
28533
|
+
matInput
|
|
28534
|
+
[required]="item.required"
|
|
28535
|
+
type="text"
|
|
28536
|
+
[(ngModel)]="item.default_value"
|
|
28537
|
+
/>
|
|
28538
|
+
</mat-form-field>
|
|
28539
|
+
|
|
28540
|
+
<FHNumericField
|
|
28541
|
+
*ngIf="item.type == 'numeric_field'"
|
|
28542
|
+
[label]="item.label"
|
|
28543
|
+
[required]="item.required"
|
|
28544
|
+
[(ngModel)]="item.default_value"
|
|
28545
|
+
[decimal]="item.decimali"
|
|
28546
|
+
>
|
|
28547
|
+
</FHNumericField>
|
|
28548
|
+
|
|
28549
|
+
<FHTextArea
|
|
28550
|
+
*ngIf="item.type == 'textarea'"
|
|
28551
|
+
[label]="item.label"
|
|
28552
|
+
[required]="item.required"
|
|
28553
|
+
[(ngModel)]="item.default_value"
|
|
28554
|
+
height="15'"
|
|
28555
|
+
[enabled]="false"
|
|
28556
|
+
></FHTextArea>
|
|
28557
|
+
|
|
28558
|
+
<div
|
|
28559
|
+
fxLayout="row"
|
|
28560
|
+
fxLayoutGap="7px"
|
|
28561
|
+
*ngIf="item.type == 'article_picker'"
|
|
28562
|
+
>
|
|
28563
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28564
|
+
<div style="width:80%"></div>
|
|
28565
|
+
<button [disabled]="true" mat-raised-button>
|
|
28566
|
+
Select Article
|
|
28567
|
+
</button>
|
|
28568
|
+
</div>
|
|
28569
|
+
<div
|
|
28570
|
+
fxLayout="row"
|
|
28571
|
+
fxLayoutGap="7px"
|
|
28572
|
+
*ngIf="item.type == 'customer_picker'"
|
|
28573
|
+
>
|
|
28574
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28575
|
+
<div style="width:80%"></div>
|
|
28576
|
+
<button [disabled]="true" mat-raised-button>
|
|
28577
|
+
Select Customer
|
|
28578
|
+
</button>
|
|
28579
|
+
</div>
|
|
28580
|
+
<mat-checkbox
|
|
28581
|
+
*ngIf="item.type == 'checkbox'"
|
|
28582
|
+
[required]="item.required"
|
|
28583
|
+
[(ngModel)]="item.default_value"
|
|
28584
|
+
><b>{{ item.label }}</b></mat-checkbox
|
|
28585
|
+
>
|
|
28586
|
+
|
|
28587
|
+
<div
|
|
28588
|
+
fxLayout="row"
|
|
28589
|
+
fxLayoutGap="5px"
|
|
28590
|
+
class="custom-section"
|
|
28591
|
+
*ngIf="item.type == 'radiobutton'"
|
|
28592
|
+
>
|
|
28593
|
+
<label class="custom-margin">{{ item.label }}:</label
|
|
28594
|
+
>
|
|
28595
|
+
<mat-radio-group
|
|
28596
|
+
class="fh-radio-group"
|
|
28597
|
+
[(ngModel)]="item.default_value"
|
|
28598
|
+
[required]="item.required"
|
|
28599
|
+
>
|
|
28600
|
+
<mat-radio-button
|
|
28601
|
+
class="fh-radio-button"
|
|
28602
|
+
*ngFor="let opt of item.opts"
|
|
28603
|
+
class="custom-margin"
|
|
28604
|
+
value="{{ opt }}"
|
|
28605
|
+
><b>{{ opt }}</b></mat-radio-button
|
|
28606
|
+
>
|
|
28607
|
+
</mat-radio-group>
|
|
28608
|
+
</div>
|
|
28609
|
+
|
|
28610
|
+
<mat-form-field
|
|
28611
|
+
*ngIf="item.type == 'select'"
|
|
28612
|
+
style="max-width: 400px"
|
|
28613
|
+
appearance="outline"
|
|
28614
|
+
floatLabel="always"
|
|
28615
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
28616
|
+
<mat-select
|
|
28617
|
+
[required]="item.required"
|
|
28618
|
+
[(ngModel)]="item.default_value"
|
|
28619
|
+
>
|
|
28620
|
+
<mat-option
|
|
28621
|
+
*ngFor="let opt of item.opts_l"
|
|
28622
|
+
value="{{ opt }}"
|
|
28623
|
+
>{{ opt }}</mat-option
|
|
28624
|
+
>
|
|
28625
|
+
</mat-select>
|
|
28626
|
+
</mat-form-field>
|
|
28627
|
+
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
28628
|
+
<FHDatePicker
|
|
28629
|
+
[required]="item.required"
|
|
28630
|
+
[(ngModel)]="item.default_value"
|
|
28631
|
+
[label]="item.label"
|
|
28632
|
+
></FHDatePicker
|
|
28633
|
+
>
|
|
28634
|
+
</div>
|
|
28635
|
+
</div>
|
|
28636
|
+
</div>
|
|
28637
|
+
<div fxLayout="column" style="width:70px" fxLayoutGap="10px">
|
|
28638
|
+
<button
|
|
28639
|
+
mat-flat-button
|
|
28640
|
+
class="fh_icon_button"
|
|
28641
|
+
(click)="edit_item(item.uiid)"
|
|
28642
|
+
color="primary"
|
|
28643
|
+
>
|
|
28644
|
+
<mat-icon>edit</mat-icon>
|
|
28645
|
+
</button>
|
|
28646
|
+
<button
|
|
28647
|
+
class="fh_icon_button"
|
|
28648
|
+
mat-flat-button
|
|
28649
|
+
(click)="del_item(item.uiid)"
|
|
28650
|
+
color="warn"
|
|
28651
|
+
>
|
|
28652
|
+
<mat-icon>delete</mat-icon>
|
|
28653
|
+
</button>
|
|
28654
|
+
</div>
|
|
28655
|
+
</li>
|
|
28656
|
+
</ul>
|
|
28657
|
+
</div>
|
|
28658
|
+
<mat-form-field [hidden]="true">
|
|
28659
|
+
<input matInput #bottoml />
|
|
28660
|
+
</mat-form-field>
|
|
28661
|
+
</div>
|
|
28662
|
+
|
|
28663
|
+
<div
|
|
28664
|
+
style="width:400px;height:100%;background-color: #3F51B5"
|
|
28665
|
+
fxLayoutAlign="start center"
|
|
28666
|
+
fxLayout="column"
|
|
28667
|
+
*ngIf="edit_obj != null"
|
|
28668
|
+
>
|
|
28669
|
+
<br /><br />
|
|
28670
|
+
<mat-card style="width: 96%">
|
|
28671
|
+
<mat-card-title>Properties</mat-card-title>
|
|
28672
|
+
<mat-card-content>
|
|
28673
|
+
<div fxLayout="column" fxLayoutGap="10px">
|
|
28674
|
+
|
|
28675
|
+
<mat-form-field appearance="outline" floatLabel="always"
|
|
28676
|
+
><mat-label>Label</mat-label>
|
|
28677
|
+
<input matInput type="text" [(ngModel)]="edit_obj.label" />
|
|
28678
|
+
</mat-form-field>
|
|
28679
|
+
|
|
28680
|
+
<mat-checkbox
|
|
28681
|
+
[(ngModel)]="edit_obj.required"
|
|
28682
|
+
*ngIf="edit_obj.type != 'checkbox'"
|
|
28683
|
+
>Required</mat-checkbox>
|
|
28684
|
+
|
|
28685
|
+
<mat-form-field
|
|
28686
|
+
*ngIf="edit_obj.type == 'numeric_field'"
|
|
28687
|
+
appearance="outline"
|
|
28688
|
+
floatLabel="always"
|
|
28689
|
+
><mat-label>Decimal Places</mat-label>
|
|
28690
|
+
<input matInput type="text" [(ngModel)]="edit_obj.decimali" />
|
|
28691
|
+
</mat-form-field>
|
|
28692
|
+
|
|
28693
|
+
<mat-form-field
|
|
28694
|
+
*ngIf="edit_obj.type == 'text_field'"
|
|
28695
|
+
appearance="outline"
|
|
28696
|
+
floatLabel="always"
|
|
28697
|
+
><mat-label>Default Value</mat-label>
|
|
28698
|
+
<input
|
|
28699
|
+
matInput
|
|
28700
|
+
type="text"
|
|
28701
|
+
[(ngModel)]="edit_obj.default_value"
|
|
28702
|
+
/>
|
|
28703
|
+
</mat-form-field>
|
|
28704
|
+
|
|
28705
|
+
<mat-checkbox
|
|
28706
|
+
*ngIf="edit_obj.type == 'checkbox'"
|
|
28707
|
+
[(ngModel)]="edit_obj.default_value"
|
|
28708
|
+
>Default Value</mat-checkbox>
|
|
28709
|
+
|
|
28710
|
+
<mat-form-field
|
|
28711
|
+
*ngIf="
|
|
28712
|
+
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
28713
|
+
"
|
|
28714
|
+
appearance="outline"
|
|
28715
|
+
floatLabel="always"
|
|
28716
|
+
><mat-label>Values</mat-label>
|
|
28717
|
+
<input
|
|
28718
|
+
matInput
|
|
28719
|
+
type="text"
|
|
28720
|
+
[(ngModel)]="radio_values"
|
|
28721
|
+
(ngModelChange)="edit_obj.opts = $event.split(',')"
|
|
28722
|
+
/>
|
|
28723
|
+
</mat-form-field>
|
|
28724
|
+
<mat-form-field
|
|
28725
|
+
*ngIf="
|
|
28726
|
+
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
28727
|
+
"
|
|
28728
|
+
appearance="outline"
|
|
28729
|
+
floatLabel="always"
|
|
28730
|
+
><mat-label>Default Value</mat-label>
|
|
28731
|
+
<input
|
|
28732
|
+
matInput
|
|
28733
|
+
type="text"
|
|
28734
|
+
[(ngModel)]="edit_obj.default_value"
|
|
28735
|
+
/>
|
|
28736
|
+
</mat-form-field>
|
|
28737
|
+
|
|
28738
|
+
<mat-form-field appearance="outline" floatLabel="always"
|
|
28739
|
+
><mat-label>Extra Param</mat-label>
|
|
28740
|
+
<input matInput type="text" [(ngModel)]="edit_obj.extra_param" />
|
|
28741
|
+
</mat-form-field>
|
|
28742
|
+
|
|
28743
|
+
|
|
28744
|
+
<button mat-flat-button (click)="ok_panel()" color="primary">
|
|
28745
|
+
OK
|
|
28746
|
+
</button>
|
|
28747
|
+
</div></mat-card-content
|
|
28748
|
+
>
|
|
28749
|
+
</mat-card>
|
|
28750
|
+
</div>
|
|
28751
|
+
</div>
|
|
28752
|
+
`, isInline: true, styles: [".fh-radio-group{display:flex;flex-direction:column}.fh-radio-button{margin:0}\n"], dependencies: [{ kind: "component", type: i3$3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5$2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i5$2.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i5$2.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i9$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i11$2.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i11$2.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i8$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5$3.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i5$3.MatToolbarRow, selector: "mat-toolbar-row", exportAs: ["matToolbarRow"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i7$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i7$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i13.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "directive", type: i3$5.DragulaDirective, selector: "[dragula]", inputs: ["dragula", "dragulaModel"], outputs: ["dragulaModelChange"] }, { kind: "component", type: FHTextAreaComponent, selector: "FHTextArea", inputs: ["hidden", "label", "enabled", "required", "rows", "error"], outputs: ["change", "focusout", "focusin"] }, { kind: "component", type: FHDatePickerComponent, selector: "FHDatePicker", inputs: ["label", "error", "required", "show_buttons", "hidden", "enabled", "min_date", "max_date"], outputs: ["change", "init_end"] }, { kind: "component", type: FHNumericFieldComponent, selector: "FHNumericField", inputs: ["decimal", "font_size", "label", "hint", "text_align", "th_character", "suffixSymbol", "required", "enabled", "hidden", "color", "error", "bkcolor", "value"], outputs: ["change", "focus_out", "enter_key_pressed", "focusIn"] }] });
|
|
28753
|
+
}
|
|
28754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FHFormBuilderComponent, decorators: [{
|
|
28755
|
+
type: Component,
|
|
28756
|
+
args: [{ selector: 'FHFormBuilder', template: `
|
|
28757
|
+
<div fxLayout="row" style="width: 100%;height:100%">
|
|
28758
|
+
<mat-toolbar style="max-width: 200px;height:100%;color:#FFF;background-color:#7e7e93">
|
|
28759
|
+
<mat-toolbar-row (click)="add_component(1)" *ngIf="showTextField" style="cursor: pointer;">
|
|
28760
|
+
<mat-icon>text_fields</mat-icon> <span
|
|
28761
|
+
>Text Field</span
|
|
28762
|
+
>
|
|
28763
|
+
</mat-toolbar-row>
|
|
28764
|
+
|
|
28765
|
+
<mat-toolbar-row (click)="add_component(2)" *ngIf="shownumberField" style="cursor: pointer;">
|
|
28766
|
+
<mat-icon>filter_1</mat-icon> <span>Number</span>
|
|
28767
|
+
</mat-toolbar-row>
|
|
28768
|
+
|
|
28769
|
+
<mat-toolbar-row (click)="add_component(3)" *ngIf="showTextAreaField" style="cursor: pointer;">
|
|
28770
|
+
<mat-icon>filter_none</mat-icon> <span
|
|
28771
|
+
>Text Area</span
|
|
28772
|
+
>
|
|
28773
|
+
</mat-toolbar-row>
|
|
28774
|
+
|
|
28775
|
+
<mat-toolbar-row (click)="add_component(4)" *ngIf="showCheckBoxField" style="cursor: pointer;">
|
|
28776
|
+
<mat-icon>check_box</mat-icon> <span>Check Box</span>
|
|
28777
|
+
</mat-toolbar-row>
|
|
28778
|
+
|
|
28779
|
+
<mat-toolbar-row (click)="add_component(5)" *ngIf="showRadioField" style="cursor: pointer;">
|
|
28780
|
+
<mat-icon>radio_button_checked</mat-icon> <span
|
|
28781
|
+
>Radio</span
|
|
28782
|
+
>
|
|
28783
|
+
</mat-toolbar-row>
|
|
28784
|
+
|
|
28785
|
+
<mat-toolbar-row (click)="add_component(6)" *ngIf="showDropDownField" style="cursor: pointer;">
|
|
28786
|
+
<mat-icon>dehaze</mat-icon> <span>DropDown</span>
|
|
28787
|
+
</mat-toolbar-row>
|
|
28788
|
+
|
|
28789
|
+
<mat-toolbar-row (click)="add_component(7)" *ngIf="showDateField" style="cursor: pointer;">
|
|
28790
|
+
<mat-icon>today</mat-icon> <span>Date</span>
|
|
28791
|
+
</mat-toolbar-row>
|
|
28792
|
+
|
|
28793
|
+
<mat-toolbar-row (click)="add_component(8)" *ngIf="showArticlePicker" style="cursor: pointer;">
|
|
28794
|
+
<mat-icon>build</mat-icon> <span>Article Sel.</span>
|
|
28795
|
+
</mat-toolbar-row>
|
|
28796
|
+
|
|
28797
|
+
<mat-toolbar-row (click)="add_component(9)" *ngIf="showCustomerPicker" style="cursor: pointer;">
|
|
28798
|
+
<mat-icon>dashboard</mat-icon> <span
|
|
28799
|
+
>Customer Sel.</span
|
|
28800
|
+
>
|
|
28801
|
+
</mat-toolbar-row>
|
|
28802
|
+
</mat-toolbar>
|
|
28803
|
+
<div
|
|
28804
|
+
fxLayout="column"
|
|
28805
|
+
fxFlex="100"
|
|
28806
|
+
style="width:100%;border:1px solid #004040;height:100%;overflow:auto;background-color: #a6aec4"
|
|
28807
|
+
>
|
|
28808
|
+
<div fxLayout="row" style="width:90%;width:100%;height:5000px;">
|
|
28809
|
+
<ul
|
|
28810
|
+
[dragula]="'bag-items'"
|
|
28811
|
+
[(dragulaModel)]="items"
|
|
28812
|
+
style="width:100%;"
|
|
28813
|
+
>
|
|
28814
|
+
<li
|
|
28815
|
+
fxLayout="row"
|
|
28816
|
+
fxLayoutGap="10px"
|
|
28817
|
+
*ngFor="let item of items"
|
|
28818
|
+
[ngStyle]="setStyles(item.uiid)"
|
|
28819
|
+
fxLayoutAlign="start center"
|
|
28820
|
+
>
|
|
28821
|
+
<div style="width:100%">
|
|
28822
|
+
<div style="width: 90%">
|
|
28823
|
+
<mat-form-field
|
|
28824
|
+
*ngIf="item.type == 'text_field'"
|
|
28825
|
+
style="max-width: 350px"
|
|
28826
|
+
appearance="outline"
|
|
28827
|
+
floatLabel="always"
|
|
28828
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
28829
|
+
<input
|
|
28830
|
+
matInput
|
|
28831
|
+
[required]="item.required"
|
|
28832
|
+
type="text"
|
|
28833
|
+
[(ngModel)]="item.default_value"
|
|
28834
|
+
/>
|
|
28835
|
+
</mat-form-field>
|
|
28836
|
+
|
|
28837
|
+
<FHNumericField
|
|
28838
|
+
*ngIf="item.type == 'numeric_field'"
|
|
28839
|
+
[label]="item.label"
|
|
28840
|
+
[required]="item.required"
|
|
28841
|
+
[(ngModel)]="item.default_value"
|
|
28842
|
+
[decimal]="item.decimali"
|
|
28843
|
+
>
|
|
28844
|
+
</FHNumericField>
|
|
28845
|
+
|
|
28846
|
+
<FHTextArea
|
|
28847
|
+
*ngIf="item.type == 'textarea'"
|
|
28848
|
+
[label]="item.label"
|
|
28849
|
+
[required]="item.required"
|
|
28850
|
+
[(ngModel)]="item.default_value"
|
|
28851
|
+
height="15'"
|
|
28852
|
+
[enabled]="false"
|
|
28853
|
+
></FHTextArea>
|
|
28854
|
+
|
|
28855
|
+
<div
|
|
28856
|
+
fxLayout="row"
|
|
28857
|
+
fxLayoutGap="7px"
|
|
28858
|
+
*ngIf="item.type == 'article_picker'"
|
|
28859
|
+
>
|
|
28860
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28861
|
+
<div style="width:80%"></div>
|
|
28862
|
+
<button [disabled]="true" mat-raised-button>
|
|
28863
|
+
Select Article
|
|
28864
|
+
</button>
|
|
28865
|
+
</div>
|
|
28866
|
+
<div
|
|
28867
|
+
fxLayout="row"
|
|
28868
|
+
fxLayoutGap="7px"
|
|
28869
|
+
*ngIf="item.type == 'customer_picker'"
|
|
28870
|
+
>
|
|
28871
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
28872
|
+
<div style="width:80%"></div>
|
|
28873
|
+
<button [disabled]="true" mat-raised-button>
|
|
28874
|
+
Select Customer
|
|
28875
|
+
</button>
|
|
28876
|
+
</div>
|
|
28877
|
+
<mat-checkbox
|
|
28878
|
+
*ngIf="item.type == 'checkbox'"
|
|
28879
|
+
[required]="item.required"
|
|
28880
|
+
[(ngModel)]="item.default_value"
|
|
28881
|
+
><b>{{ item.label }}</b></mat-checkbox
|
|
28882
|
+
>
|
|
28883
|
+
|
|
28884
|
+
<div
|
|
28885
|
+
fxLayout="row"
|
|
28886
|
+
fxLayoutGap="5px"
|
|
28887
|
+
class="custom-section"
|
|
28888
|
+
*ngIf="item.type == 'radiobutton'"
|
|
28889
|
+
>
|
|
28890
|
+
<label class="custom-margin">{{ item.label }}:</label
|
|
28891
|
+
>
|
|
28892
|
+
<mat-radio-group
|
|
28893
|
+
class="fh-radio-group"
|
|
28894
|
+
[(ngModel)]="item.default_value"
|
|
28895
|
+
[required]="item.required"
|
|
28896
|
+
>
|
|
28897
|
+
<mat-radio-button
|
|
28898
|
+
class="fh-radio-button"
|
|
28899
|
+
*ngFor="let opt of item.opts"
|
|
28900
|
+
class="custom-margin"
|
|
28901
|
+
value="{{ opt }}"
|
|
28902
|
+
><b>{{ opt }}</b></mat-radio-button
|
|
28903
|
+
>
|
|
28904
|
+
</mat-radio-group>
|
|
28905
|
+
</div>
|
|
28906
|
+
|
|
28907
|
+
<mat-form-field
|
|
28908
|
+
*ngIf="item.type == 'select'"
|
|
28909
|
+
style="max-width: 400px"
|
|
28910
|
+
appearance="outline"
|
|
28911
|
+
floatLabel="always"
|
|
28912
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
28913
|
+
<mat-select
|
|
28914
|
+
[required]="item.required"
|
|
28915
|
+
[(ngModel)]="item.default_value"
|
|
28916
|
+
>
|
|
28917
|
+
<mat-option
|
|
28918
|
+
*ngFor="let opt of item.opts_l"
|
|
28919
|
+
value="{{ opt }}"
|
|
28920
|
+
>{{ opt }}</mat-option
|
|
28921
|
+
>
|
|
28922
|
+
</mat-select>
|
|
28923
|
+
</mat-form-field>
|
|
28924
|
+
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
28925
|
+
<FHDatePicker
|
|
28926
|
+
[required]="item.required"
|
|
28927
|
+
[(ngModel)]="item.default_value"
|
|
28928
|
+
[label]="item.label"
|
|
28929
|
+
></FHDatePicker
|
|
28930
|
+
>
|
|
28931
|
+
</div>
|
|
28932
|
+
</div>
|
|
28933
|
+
</div>
|
|
28934
|
+
<div fxLayout="column" style="width:70px" fxLayoutGap="10px">
|
|
28935
|
+
<button
|
|
28936
|
+
mat-flat-button
|
|
28937
|
+
class="fh_icon_button"
|
|
28938
|
+
(click)="edit_item(item.uiid)"
|
|
28939
|
+
color="primary"
|
|
28940
|
+
>
|
|
28941
|
+
<mat-icon>edit</mat-icon>
|
|
28942
|
+
</button>
|
|
28943
|
+
<button
|
|
28944
|
+
class="fh_icon_button"
|
|
28945
|
+
mat-flat-button
|
|
28946
|
+
(click)="del_item(item.uiid)"
|
|
28947
|
+
color="warn"
|
|
28948
|
+
>
|
|
28949
|
+
<mat-icon>delete</mat-icon>
|
|
28950
|
+
</button>
|
|
28951
|
+
</div>
|
|
28952
|
+
</li>
|
|
28953
|
+
</ul>
|
|
28954
|
+
</div>
|
|
28955
|
+
<mat-form-field [hidden]="true">
|
|
28956
|
+
<input matInput #bottoml />
|
|
28957
|
+
</mat-form-field>
|
|
28958
|
+
</div>
|
|
28959
|
+
|
|
28960
|
+
<div
|
|
28961
|
+
style="width:400px;height:100%;background-color: #3F51B5"
|
|
28962
|
+
fxLayoutAlign="start center"
|
|
28963
|
+
fxLayout="column"
|
|
28964
|
+
*ngIf="edit_obj != null"
|
|
28965
|
+
>
|
|
28966
|
+
<br /><br />
|
|
28967
|
+
<mat-card style="width: 96%">
|
|
28968
|
+
<mat-card-title>Properties</mat-card-title>
|
|
28969
|
+
<mat-card-content>
|
|
28970
|
+
<div fxLayout="column" fxLayoutGap="10px">
|
|
28971
|
+
|
|
28972
|
+
<mat-form-field appearance="outline" floatLabel="always"
|
|
28973
|
+
><mat-label>Label</mat-label>
|
|
28974
|
+
<input matInput type="text" [(ngModel)]="edit_obj.label" />
|
|
28975
|
+
</mat-form-field>
|
|
28976
|
+
|
|
28977
|
+
<mat-checkbox
|
|
28978
|
+
[(ngModel)]="edit_obj.required"
|
|
28979
|
+
*ngIf="edit_obj.type != 'checkbox'"
|
|
28980
|
+
>Required</mat-checkbox>
|
|
28981
|
+
|
|
28982
|
+
<mat-form-field
|
|
28983
|
+
*ngIf="edit_obj.type == 'numeric_field'"
|
|
28984
|
+
appearance="outline"
|
|
28985
|
+
floatLabel="always"
|
|
28986
|
+
><mat-label>Decimal Places</mat-label>
|
|
28987
|
+
<input matInput type="text" [(ngModel)]="edit_obj.decimali" />
|
|
28988
|
+
</mat-form-field>
|
|
28989
|
+
|
|
28990
|
+
<mat-form-field
|
|
28991
|
+
*ngIf="edit_obj.type == 'text_field'"
|
|
28992
|
+
appearance="outline"
|
|
28993
|
+
floatLabel="always"
|
|
28994
|
+
><mat-label>Default Value</mat-label>
|
|
28995
|
+
<input
|
|
28996
|
+
matInput
|
|
28997
|
+
type="text"
|
|
28998
|
+
[(ngModel)]="edit_obj.default_value"
|
|
28999
|
+
/>
|
|
29000
|
+
</mat-form-field>
|
|
29001
|
+
|
|
29002
|
+
<mat-checkbox
|
|
29003
|
+
*ngIf="edit_obj.type == 'checkbox'"
|
|
29004
|
+
[(ngModel)]="edit_obj.default_value"
|
|
29005
|
+
>Default Value</mat-checkbox>
|
|
29006
|
+
|
|
29007
|
+
<mat-form-field
|
|
29008
|
+
*ngIf="
|
|
29009
|
+
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
29010
|
+
"
|
|
29011
|
+
appearance="outline"
|
|
29012
|
+
floatLabel="always"
|
|
29013
|
+
><mat-label>Values</mat-label>
|
|
29014
|
+
<input
|
|
29015
|
+
matInput
|
|
29016
|
+
type="text"
|
|
29017
|
+
[(ngModel)]="radio_values"
|
|
29018
|
+
(ngModelChange)="edit_obj.opts = $event.split(',')"
|
|
29019
|
+
/>
|
|
29020
|
+
</mat-form-field>
|
|
29021
|
+
<mat-form-field
|
|
29022
|
+
*ngIf="
|
|
29023
|
+
edit_obj.type == 'radiobutton' || edit_obj.type == 'select'
|
|
29024
|
+
"
|
|
29025
|
+
appearance="outline"
|
|
29026
|
+
floatLabel="always"
|
|
29027
|
+
><mat-label>Default Value</mat-label>
|
|
29028
|
+
<input
|
|
29029
|
+
matInput
|
|
29030
|
+
type="text"
|
|
29031
|
+
[(ngModel)]="edit_obj.default_value"
|
|
29032
|
+
/>
|
|
29033
|
+
</mat-form-field>
|
|
29034
|
+
|
|
29035
|
+
<mat-form-field appearance="outline" floatLabel="always"
|
|
29036
|
+
><mat-label>Extra Param</mat-label>
|
|
29037
|
+
<input matInput type="text" [(ngModel)]="edit_obj.extra_param" />
|
|
29038
|
+
</mat-form-field>
|
|
29039
|
+
|
|
29040
|
+
|
|
29041
|
+
<button mat-flat-button (click)="ok_panel()" color="primary">
|
|
29042
|
+
OK
|
|
29043
|
+
</button>
|
|
29044
|
+
</div></mat-card-content
|
|
29045
|
+
>
|
|
29046
|
+
</mat-card>
|
|
29047
|
+
</div>
|
|
29048
|
+
</div>
|
|
29049
|
+
`, styles: [".fh-radio-group{display:flex;flex-direction:column}.fh-radio-button{margin:0}\n"] }]
|
|
28999
29050
|
}], ctorParameters: () => [{ type: UtilityService }, { type: i1$2.MatDialog }, { type: i3$5.DragulaService }, { type: QueryService }], propDecorators: { change: [{
|
|
29000
29051
|
type: Output
|
|
29001
29052
|
}], bottoml: [{
|
|
@@ -29670,305 +29721,305 @@ class FHFormExecuterComponent {
|
|
|
29670
29721
|
console.log('this.items AFTER ', this.items);
|
|
29671
29722
|
}
|
|
29672
29723
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FHFormExecuterComponent, deps: [{ token: UtilityService }, { token: i1$2.MatDialog }, { token: i3.ToastrService }, { token: i3$2.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
29673
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: FHFormExecuterComponent, selector: "FHFormExecuter", inputs: { items: "items", enabled: "enabled", articleColumns: "articleColumns", articleQuery: "articleQuery", customerColumns: "customerColumns", customerQuery: "customerQuery" }, viewQueries: [{ propertyName: "bottoml", first: true, predicate: ["bottoml"], descendants: true }], ngImport: i0, template: `
|
|
29674
|
-
<div
|
|
29675
|
-
fxLayout="column"
|
|
29676
|
-
fxFlex="100"
|
|
29677
|
-
style="width:100%;border:1px solid #004040;height:100%"
|
|
29678
|
-
*ngIf="items != null"
|
|
29679
|
-
>
|
|
29680
|
-
<div
|
|
29681
|
-
fxLayout="row"
|
|
29682
|
-
*ngFor="let item of items"
|
|
29683
|
-
[ngStyle]="setStyles(item.uiid)"
|
|
29684
|
-
fxLayoutAlign="start center"
|
|
29685
|
-
>
|
|
29686
|
-
<div style="width: 90%">
|
|
29687
|
-
<mat-form-field
|
|
29688
|
-
*ngIf="item.type == 'text_field'"
|
|
29689
|
-
style="max-width: 350px"
|
|
29690
|
-
appearance="outline"
|
|
29691
|
-
floatLabel="always"
|
|
29692
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
29693
|
-
<input
|
|
29694
|
-
matInput
|
|
29695
|
-
[required]="item.required"
|
|
29696
|
-
[disabled]="!enabled"
|
|
29697
|
-
type="text"
|
|
29698
|
-
[(ngModel)]="item.default_value"
|
|
29699
|
-
/>
|
|
29700
|
-
</mat-form-field>
|
|
29701
|
-
|
|
29702
|
-
<mat-form-field
|
|
29703
|
-
*ngIf="item.type == 'numeric_field'"
|
|
29704
|
-
style="max-width: 220px"
|
|
29705
|
-
appearance="outline"
|
|
29706
|
-
floatLabel="always"
|
|
29707
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
29708
|
-
<input
|
|
29709
|
-
matInput
|
|
29710
|
-
[required]="item.required"
|
|
29711
|
-
[disabled]="!enabled"
|
|
29712
|
-
type="number"
|
|
29713
|
-
[(ngModel)]="item.default_value"
|
|
29714
|
-
/>
|
|
29715
|
-
</mat-form-field>
|
|
29716
|
-
<div
|
|
29717
|
-
fxLayout="row"
|
|
29718
|
-
fxLayoutGap="7px"
|
|
29719
|
-
*ngIf="item.type == 'article_picker'"
|
|
29720
|
-
>
|
|
29721
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29722
|
-
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29723
|
-
<button class="fh_icon_button" [matTooltip]="'Seleziona Articolo' | translate" color="primary" mat-raised-button (click)="selectArticle(item)">
|
|
29724
|
-
<mat-icon>search</mat-icon>
|
|
29725
|
-
</button>
|
|
29726
|
-
<button class="fh_icon_button" [matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29727
|
-
<mat-icon>close</mat-icon>
|
|
29728
|
-
</button>
|
|
29729
|
-
</div>
|
|
29730
|
-
<div
|
|
29731
|
-
fxLayout="row"
|
|
29732
|
-
fxLayoutGap="7px"
|
|
29733
|
-
*ngIf="item.type == 'customer_picker'"
|
|
29734
|
-
>
|
|
29735
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29736
|
-
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29737
|
-
<button class="fh_icon_button" [matTooltip]="'Select Customer' | translate" color="primary" mat-raised-button (click)="selectCustomer(item)">
|
|
29738
|
-
<mat-icon>search</mat-icon>
|
|
29739
|
-
</button>
|
|
29740
|
-
<button class="fh_icon_button"[matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29741
|
-
<mat-icon>close</mat-icon>
|
|
29742
|
-
</button>
|
|
29743
|
-
</div>
|
|
29744
|
-
|
|
29745
|
-
<FHTextArea
|
|
29746
|
-
*ngIf="item.type == 'textarea'"
|
|
29747
|
-
[label]="item.label"
|
|
29748
|
-
[required]="item.required"
|
|
29749
|
-
[(ngModel)]="item.default_value"
|
|
29750
|
-
[enabled]="false"
|
|
29751
|
-
></FHTextArea>
|
|
29752
|
-
|
|
29753
|
-
<mat-checkbox
|
|
29754
|
-
*ngIf="item.type == 'checkbox'"
|
|
29755
|
-
[required]="item.required"
|
|
29756
|
-
[disabled]="!enabled"
|
|
29757
|
-
[(ngModel)]="item.default_value"
|
|
29758
|
-
><b>{{ item.label }}</b></mat-checkbox
|
|
29759
|
-
>
|
|
29760
|
-
|
|
29761
|
-
<div
|
|
29762
|
-
*ngIf="item.type == 'radiobutton'"
|
|
29763
|
-
fxLayout="row"
|
|
29764
|
-
fxLayoutGap="5px"
|
|
29765
|
-
>
|
|
29766
|
-
<label *ngIf="!item.required">{{ item.label }}: </label
|
|
29767
|
-
>
|
|
29768
|
-
<label *ngIf="item.required">{{ item.label }}: *</label
|
|
29769
|
-
>
|
|
29770
|
-
<mat-radio-group
|
|
29771
|
-
[(ngModel)]="item.default_value"
|
|
29772
|
-
[required]="item.required"
|
|
29773
|
-
class="fh-radio-group"
|
|
29774
|
-
>
|
|
29775
|
-
<mat-radio-button
|
|
29776
|
-
*ngFor="let opt of item.opts"
|
|
29777
|
-
[disabled]="!enabled"
|
|
29778
|
-
class="custom-margin"
|
|
29779
|
-
class="fh-radio-button"
|
|
29780
|
-
value="{{ opt }}"
|
|
29781
|
-
><b>{{ opt }}</b
|
|
29782
|
-
> </mat-radio-button
|
|
29783
|
-
>
|
|
29784
|
-
</mat-radio-group>
|
|
29785
|
-
</div>
|
|
29786
|
-
|
|
29787
|
-
<mat-form-field
|
|
29788
|
-
*ngIf="item.type == 'select'"
|
|
29789
|
-
appearance="outline"
|
|
29790
|
-
floatLabel="always"
|
|
29791
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
29792
|
-
<mat-select
|
|
29793
|
-
[required]="item.required"
|
|
29794
|
-
[(ngModel)]="item.default_value"
|
|
29795
|
-
>
|
|
29796
|
-
<mat-option
|
|
29797
|
-
*ngFor="let opt of item.opts"
|
|
29798
|
-
[disabled]="!enabled"
|
|
29799
|
-
value="{{ opt }}"
|
|
29800
|
-
>{{ opt }}</mat-option
|
|
29801
|
-
>
|
|
29802
|
-
</mat-select>
|
|
29803
|
-
</mat-form-field>
|
|
29804
|
-
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
29805
|
-
<FHDatePicker
|
|
29806
|
-
[required]="item.required"
|
|
29807
|
-
[disabled]="!enabled"
|
|
29808
|
-
[(ngModel)]="item.default_value"
|
|
29809
|
-
[label]="item.label"
|
|
29810
|
-
></FHDatePicker
|
|
29811
|
-
>
|
|
29812
|
-
</div>
|
|
29813
|
-
</div>
|
|
29814
|
-
</div>
|
|
29815
|
-
|
|
29816
|
-
<mat-form-field [hidden]="true">
|
|
29817
|
-
<input matInput #bottoml />
|
|
29818
|
-
</mat-form-field>
|
|
29819
|
-
</div>
|
|
29820
|
-
`, isInline: true, styles: [".fh-radio-group{display:flex;flex-direction:column
|
|
29724
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.0", type: FHFormExecuterComponent, selector: "FHFormExecuter", inputs: { items: "items", enabled: "enabled", articleColumns: "articleColumns", articleQuery: "articleQuery", customerColumns: "customerColumns", customerQuery: "customerQuery" }, viewQueries: [{ propertyName: "bottoml", first: true, predicate: ["bottoml"], descendants: true }], ngImport: i0, template: `
|
|
29725
|
+
<div
|
|
29726
|
+
fxLayout="column"
|
|
29727
|
+
fxFlex="100"
|
|
29728
|
+
style="width:100%;border:1px solid #004040;height:100%"
|
|
29729
|
+
*ngIf="items != null"
|
|
29730
|
+
>
|
|
29731
|
+
<div
|
|
29732
|
+
fxLayout="row"
|
|
29733
|
+
*ngFor="let item of items"
|
|
29734
|
+
[ngStyle]="setStyles(item.uiid)"
|
|
29735
|
+
fxLayoutAlign="start center"
|
|
29736
|
+
>
|
|
29737
|
+
<div style="width: 90%">
|
|
29738
|
+
<mat-form-field
|
|
29739
|
+
*ngIf="item.type == 'text_field'"
|
|
29740
|
+
style="max-width: 350px"
|
|
29741
|
+
appearance="outline"
|
|
29742
|
+
floatLabel="always"
|
|
29743
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
29744
|
+
<input
|
|
29745
|
+
matInput
|
|
29746
|
+
[required]="item.required"
|
|
29747
|
+
[disabled]="!enabled"
|
|
29748
|
+
type="text"
|
|
29749
|
+
[(ngModel)]="item.default_value"
|
|
29750
|
+
/>
|
|
29751
|
+
</mat-form-field>
|
|
29752
|
+
|
|
29753
|
+
<mat-form-field
|
|
29754
|
+
*ngIf="item.type == 'numeric_field'"
|
|
29755
|
+
style="max-width: 220px"
|
|
29756
|
+
appearance="outline"
|
|
29757
|
+
floatLabel="always"
|
|
29758
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
29759
|
+
<input
|
|
29760
|
+
matInput
|
|
29761
|
+
[required]="item.required"
|
|
29762
|
+
[disabled]="!enabled"
|
|
29763
|
+
type="number"
|
|
29764
|
+
[(ngModel)]="item.default_value"
|
|
29765
|
+
/>
|
|
29766
|
+
</mat-form-field>
|
|
29767
|
+
<div
|
|
29768
|
+
fxLayout="row"
|
|
29769
|
+
fxLayoutGap="7px"
|
|
29770
|
+
*ngIf="item.type == 'article_picker'"
|
|
29771
|
+
>
|
|
29772
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29773
|
+
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29774
|
+
<button class="fh_icon_button" [matTooltip]="'Seleziona Articolo' | translate" color="primary" mat-raised-button (click)="selectArticle(item)">
|
|
29775
|
+
<mat-icon>search</mat-icon>
|
|
29776
|
+
</button>
|
|
29777
|
+
<button class="fh_icon_button" [matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29778
|
+
<mat-icon>close</mat-icon>
|
|
29779
|
+
</button>
|
|
29780
|
+
</div>
|
|
29781
|
+
<div
|
|
29782
|
+
fxLayout="row"
|
|
29783
|
+
fxLayoutGap="7px"
|
|
29784
|
+
*ngIf="item.type == 'customer_picker'"
|
|
29785
|
+
>
|
|
29786
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29787
|
+
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29788
|
+
<button class="fh_icon_button" [matTooltip]="'Select Customer' | translate" color="primary" mat-raised-button (click)="selectCustomer(item)">
|
|
29789
|
+
<mat-icon>search</mat-icon>
|
|
29790
|
+
</button>
|
|
29791
|
+
<button class="fh_icon_button"[matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29792
|
+
<mat-icon>close</mat-icon>
|
|
29793
|
+
</button>
|
|
29794
|
+
</div>
|
|
29795
|
+
|
|
29796
|
+
<FHTextArea
|
|
29797
|
+
*ngIf="item.type == 'textarea'"
|
|
29798
|
+
[label]="item.label"
|
|
29799
|
+
[required]="item.required"
|
|
29800
|
+
[(ngModel)]="item.default_value"
|
|
29801
|
+
[enabled]="false"
|
|
29802
|
+
></FHTextArea>
|
|
29803
|
+
|
|
29804
|
+
<mat-checkbox
|
|
29805
|
+
*ngIf="item.type == 'checkbox'"
|
|
29806
|
+
[required]="item.required"
|
|
29807
|
+
[disabled]="!enabled"
|
|
29808
|
+
[(ngModel)]="item.default_value"
|
|
29809
|
+
><b>{{ item.label }}</b></mat-checkbox
|
|
29810
|
+
>
|
|
29811
|
+
|
|
29812
|
+
<div
|
|
29813
|
+
*ngIf="item.type == 'radiobutton'"
|
|
29814
|
+
fxLayout="row"
|
|
29815
|
+
fxLayoutGap="5px"
|
|
29816
|
+
>
|
|
29817
|
+
<label *ngIf="!item.required">{{ item.label }}: </label
|
|
29818
|
+
>
|
|
29819
|
+
<label *ngIf="item.required">{{ item.label }}: *</label
|
|
29820
|
+
>
|
|
29821
|
+
<mat-radio-group
|
|
29822
|
+
[(ngModel)]="item.default_value"
|
|
29823
|
+
[required]="item.required"
|
|
29824
|
+
class="fh-radio-group"
|
|
29825
|
+
>
|
|
29826
|
+
<mat-radio-button
|
|
29827
|
+
*ngFor="let opt of item.opts"
|
|
29828
|
+
[disabled]="!enabled"
|
|
29829
|
+
class="custom-margin"
|
|
29830
|
+
class="fh-radio-button"
|
|
29831
|
+
value="{{ opt }}"
|
|
29832
|
+
><b>{{ opt }}</b
|
|
29833
|
+
> </mat-radio-button
|
|
29834
|
+
>
|
|
29835
|
+
</mat-radio-group>
|
|
29836
|
+
</div>
|
|
29837
|
+
|
|
29838
|
+
<mat-form-field
|
|
29839
|
+
*ngIf="item.type == 'select'"
|
|
29840
|
+
appearance="outline"
|
|
29841
|
+
floatLabel="always"
|
|
29842
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
29843
|
+
<mat-select
|
|
29844
|
+
[required]="item.required"
|
|
29845
|
+
[(ngModel)]="item.default_value"
|
|
29846
|
+
>
|
|
29847
|
+
<mat-option
|
|
29848
|
+
*ngFor="let opt of item.opts"
|
|
29849
|
+
[disabled]="!enabled"
|
|
29850
|
+
value="{{ opt }}"
|
|
29851
|
+
>{{ opt }}</mat-option
|
|
29852
|
+
>
|
|
29853
|
+
</mat-select>
|
|
29854
|
+
</mat-form-field>
|
|
29855
|
+
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
29856
|
+
<FHDatePicker
|
|
29857
|
+
[required]="item.required"
|
|
29858
|
+
[disabled]="!enabled"
|
|
29859
|
+
[(ngModel)]="item.default_value"
|
|
29860
|
+
[label]="item.label"
|
|
29861
|
+
></FHDatePicker
|
|
29862
|
+
>
|
|
29863
|
+
</div>
|
|
29864
|
+
</div>
|
|
29865
|
+
</div>
|
|
29866
|
+
|
|
29867
|
+
<mat-form-field [hidden]="true">
|
|
29868
|
+
<input matInput #bottoml />
|
|
29869
|
+
</mat-form-field>
|
|
29870
|
+
</div>
|
|
29871
|
+
`, isInline: true, styles: [".fh-radio-group{display:flex;flex-direction:column}.fh-radio-button{margin:0}\n"], dependencies: [{ kind: "component", type: i3$3.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i9$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4$1.MatLabel, selector: "mat-label" }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i11$2.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i11$2.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: i8$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "directive", type: i11.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: i6.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i6.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i7$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i7$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i7$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i7$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i7$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i8.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i8.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i13.DefaultStyleDirective, selector: " [ngStyle], [ngStyle.xs], [ngStyle.sm], [ngStyle.md], [ngStyle.lg], [ngStyle.xl], [ngStyle.lt-sm], [ngStyle.lt-md], [ngStyle.lt-lg], [ngStyle.lt-xl], [ngStyle.gt-xs], [ngStyle.gt-sm], [ngStyle.gt-md], [ngStyle.gt-lg]", inputs: ["ngStyle", "ngStyle.xs", "ngStyle.sm", "ngStyle.md", "ngStyle.lg", "ngStyle.xl", "ngStyle.lt-sm", "ngStyle.lt-md", "ngStyle.lt-lg", "ngStyle.lt-xl", "ngStyle.gt-xs", "ngStyle.gt-sm", "ngStyle.gt-md", "ngStyle.gt-lg"] }, { kind: "component", type: FHTextAreaComponent, selector: "FHTextArea", inputs: ["hidden", "label", "enabled", "required", "rows", "error"], outputs: ["change", "focusout", "focusin"] }, { kind: "component", type: FHDatePickerComponent, selector: "FHDatePicker", inputs: ["label", "error", "required", "show_buttons", "hidden", "enabled", "min_date", "max_date"], outputs: ["change", "init_end"] }, { kind: "pipe", type: i3$2.TranslatePipe, name: "translate" }] });
|
|
29821
29872
|
}
|
|
29822
29873
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.0", ngImport: i0, type: FHFormExecuterComponent, decorators: [{
|
|
29823
29874
|
type: Component,
|
|
29824
|
-
args: [{ selector: 'FHFormExecuter', template: `
|
|
29825
|
-
<div
|
|
29826
|
-
fxLayout="column"
|
|
29827
|
-
fxFlex="100"
|
|
29828
|
-
style="width:100%;border:1px solid #004040;height:100%"
|
|
29829
|
-
*ngIf="items != null"
|
|
29830
|
-
>
|
|
29831
|
-
<div
|
|
29832
|
-
fxLayout="row"
|
|
29833
|
-
*ngFor="let item of items"
|
|
29834
|
-
[ngStyle]="setStyles(item.uiid)"
|
|
29835
|
-
fxLayoutAlign="start center"
|
|
29836
|
-
>
|
|
29837
|
-
<div style="width: 90%">
|
|
29838
|
-
<mat-form-field
|
|
29839
|
-
*ngIf="item.type == 'text_field'"
|
|
29840
|
-
style="max-width: 350px"
|
|
29841
|
-
appearance="outline"
|
|
29842
|
-
floatLabel="always"
|
|
29843
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
29844
|
-
<input
|
|
29845
|
-
matInput
|
|
29846
|
-
[required]="item.required"
|
|
29847
|
-
[disabled]="!enabled"
|
|
29848
|
-
type="text"
|
|
29849
|
-
[(ngModel)]="item.default_value"
|
|
29850
|
-
/>
|
|
29851
|
-
</mat-form-field>
|
|
29852
|
-
|
|
29853
|
-
<mat-form-field
|
|
29854
|
-
*ngIf="item.type == 'numeric_field'"
|
|
29855
|
-
style="max-width: 220px"
|
|
29856
|
-
appearance="outline"
|
|
29857
|
-
floatLabel="always"
|
|
29858
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
29859
|
-
<input
|
|
29860
|
-
matInput
|
|
29861
|
-
[required]="item.required"
|
|
29862
|
-
[disabled]="!enabled"
|
|
29863
|
-
type="number"
|
|
29864
|
-
[(ngModel)]="item.default_value"
|
|
29865
|
-
/>
|
|
29866
|
-
</mat-form-field>
|
|
29867
|
-
<div
|
|
29868
|
-
fxLayout="row"
|
|
29869
|
-
fxLayoutGap="7px"
|
|
29870
|
-
*ngIf="item.type == 'article_picker'"
|
|
29871
|
-
>
|
|
29872
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29873
|
-
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29874
|
-
<button class="fh_icon_button" [matTooltip]="'Seleziona Articolo' | translate" color="primary" mat-raised-button (click)="selectArticle(item)">
|
|
29875
|
-
<mat-icon>search</mat-icon>
|
|
29876
|
-
</button>
|
|
29877
|
-
<button class="fh_icon_button" [matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29878
|
-
<mat-icon>close</mat-icon>
|
|
29879
|
-
</button>
|
|
29880
|
-
</div>
|
|
29881
|
-
<div
|
|
29882
|
-
fxLayout="row"
|
|
29883
|
-
fxLayoutGap="7px"
|
|
29884
|
-
*ngIf="item.type == 'customer_picker'"
|
|
29885
|
-
>
|
|
29886
|
-
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29887
|
-
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29888
|
-
<button class="fh_icon_button" [matTooltip]="'Select Customer' | translate" color="primary" mat-raised-button (click)="selectCustomer(item)">
|
|
29889
|
-
<mat-icon>search</mat-icon>
|
|
29890
|
-
</button>
|
|
29891
|
-
<button class="fh_icon_button"[matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29892
|
-
<mat-icon>close</mat-icon>
|
|
29893
|
-
</button>
|
|
29894
|
-
</div>
|
|
29895
|
-
|
|
29896
|
-
<FHTextArea
|
|
29897
|
-
*ngIf="item.type == 'textarea'"
|
|
29898
|
-
[label]="item.label"
|
|
29899
|
-
[required]="item.required"
|
|
29900
|
-
[(ngModel)]="item.default_value"
|
|
29901
|
-
[enabled]="false"
|
|
29902
|
-
></FHTextArea>
|
|
29903
|
-
|
|
29904
|
-
<mat-checkbox
|
|
29905
|
-
*ngIf="item.type == 'checkbox'"
|
|
29906
|
-
[required]="item.required"
|
|
29907
|
-
[disabled]="!enabled"
|
|
29908
|
-
[(ngModel)]="item.default_value"
|
|
29909
|
-
><b>{{ item.label }}</b></mat-checkbox
|
|
29910
|
-
>
|
|
29911
|
-
|
|
29912
|
-
<div
|
|
29913
|
-
*ngIf="item.type == 'radiobutton'"
|
|
29914
|
-
fxLayout="row"
|
|
29915
|
-
fxLayoutGap="5px"
|
|
29916
|
-
>
|
|
29917
|
-
<label *ngIf="!item.required">{{ item.label }}: </label
|
|
29918
|
-
>
|
|
29919
|
-
<label *ngIf="item.required">{{ item.label }}: *</label
|
|
29920
|
-
>
|
|
29921
|
-
<mat-radio-group
|
|
29922
|
-
[(ngModel)]="item.default_value"
|
|
29923
|
-
[required]="item.required"
|
|
29924
|
-
class="fh-radio-group"
|
|
29925
|
-
>
|
|
29926
|
-
<mat-radio-button
|
|
29927
|
-
*ngFor="let opt of item.opts"
|
|
29928
|
-
[disabled]="!enabled"
|
|
29929
|
-
class="custom-margin"
|
|
29930
|
-
class="fh-radio-button"
|
|
29931
|
-
value="{{ opt }}"
|
|
29932
|
-
><b>{{ opt }}</b
|
|
29933
|
-
> </mat-radio-button
|
|
29934
|
-
>
|
|
29935
|
-
</mat-radio-group>
|
|
29936
|
-
</div>
|
|
29937
|
-
|
|
29938
|
-
<mat-form-field
|
|
29939
|
-
*ngIf="item.type == 'select'"
|
|
29940
|
-
appearance="outline"
|
|
29941
|
-
floatLabel="always"
|
|
29942
|
-
><mat-label>{{ item.label }}</mat-label>
|
|
29943
|
-
<mat-select
|
|
29944
|
-
[required]="item.required"
|
|
29945
|
-
[(ngModel)]="item.default_value"
|
|
29946
|
-
>
|
|
29947
|
-
<mat-option
|
|
29948
|
-
*ngFor="let opt of item.opts"
|
|
29949
|
-
[disabled]="!enabled"
|
|
29950
|
-
value="{{ opt }}"
|
|
29951
|
-
>{{ opt }}</mat-option
|
|
29952
|
-
>
|
|
29953
|
-
</mat-select>
|
|
29954
|
-
</mat-form-field>
|
|
29955
|
-
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
29956
|
-
<FHDatePicker
|
|
29957
|
-
[required]="item.required"
|
|
29958
|
-
[disabled]="!enabled"
|
|
29959
|
-
[(ngModel)]="item.default_value"
|
|
29960
|
-
[label]="item.label"
|
|
29961
|
-
></FHDatePicker
|
|
29962
|
-
>
|
|
29963
|
-
</div>
|
|
29964
|
-
</div>
|
|
29965
|
-
</div>
|
|
29966
|
-
|
|
29967
|
-
<mat-form-field [hidden]="true">
|
|
29968
|
-
<input matInput #bottoml />
|
|
29969
|
-
</mat-form-field>
|
|
29970
|
-
</div>
|
|
29971
|
-
`, styles: [".fh-radio-group{display:flex;flex-direction:column
|
|
29875
|
+
args: [{ selector: 'FHFormExecuter', template: `
|
|
29876
|
+
<div
|
|
29877
|
+
fxLayout="column"
|
|
29878
|
+
fxFlex="100"
|
|
29879
|
+
style="width:100%;border:1px solid #004040;height:100%"
|
|
29880
|
+
*ngIf="items != null"
|
|
29881
|
+
>
|
|
29882
|
+
<div
|
|
29883
|
+
fxLayout="row"
|
|
29884
|
+
*ngFor="let item of items"
|
|
29885
|
+
[ngStyle]="setStyles(item.uiid)"
|
|
29886
|
+
fxLayoutAlign="start center"
|
|
29887
|
+
>
|
|
29888
|
+
<div style="width: 90%">
|
|
29889
|
+
<mat-form-field
|
|
29890
|
+
*ngIf="item.type == 'text_field'"
|
|
29891
|
+
style="max-width: 350px"
|
|
29892
|
+
appearance="outline"
|
|
29893
|
+
floatLabel="always"
|
|
29894
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
29895
|
+
<input
|
|
29896
|
+
matInput
|
|
29897
|
+
[required]="item.required"
|
|
29898
|
+
[disabled]="!enabled"
|
|
29899
|
+
type="text"
|
|
29900
|
+
[(ngModel)]="item.default_value"
|
|
29901
|
+
/>
|
|
29902
|
+
</mat-form-field>
|
|
29903
|
+
|
|
29904
|
+
<mat-form-field
|
|
29905
|
+
*ngIf="item.type == 'numeric_field'"
|
|
29906
|
+
style="max-width: 220px"
|
|
29907
|
+
appearance="outline"
|
|
29908
|
+
floatLabel="always"
|
|
29909
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
29910
|
+
<input
|
|
29911
|
+
matInput
|
|
29912
|
+
[required]="item.required"
|
|
29913
|
+
[disabled]="!enabled"
|
|
29914
|
+
type="number"
|
|
29915
|
+
[(ngModel)]="item.default_value"
|
|
29916
|
+
/>
|
|
29917
|
+
</mat-form-field>
|
|
29918
|
+
<div
|
|
29919
|
+
fxLayout="row"
|
|
29920
|
+
fxLayoutGap="7px"
|
|
29921
|
+
*ngIf="item.type == 'article_picker'"
|
|
29922
|
+
>
|
|
29923
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29924
|
+
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29925
|
+
<button class="fh_icon_button" [matTooltip]="'Seleziona Articolo' | translate" color="primary" mat-raised-button (click)="selectArticle(item)">
|
|
29926
|
+
<mat-icon>search</mat-icon>
|
|
29927
|
+
</button>
|
|
29928
|
+
<button class="fh_icon_button" [matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29929
|
+
<mat-icon>close</mat-icon>
|
|
29930
|
+
</button>
|
|
29931
|
+
</div>
|
|
29932
|
+
<div
|
|
29933
|
+
fxLayout="row"
|
|
29934
|
+
fxLayoutGap="7px"
|
|
29935
|
+
*ngIf="item.type == 'customer_picker'"
|
|
29936
|
+
>
|
|
29937
|
+
<b>{{ item.label }}:<b *ngIf="item.required">*</b></b>
|
|
29938
|
+
<div style="width:90%">{{item.default_value}} - {{item.default_description}}</div>
|
|
29939
|
+
<button class="fh_icon_button" [matTooltip]="'Select Customer' | translate" color="primary" mat-raised-button (click)="selectCustomer(item)">
|
|
29940
|
+
<mat-icon>search</mat-icon>
|
|
29941
|
+
</button>
|
|
29942
|
+
<button class="fh_icon_button"[matTooltip]="'Reset' | translate" mat-raised-button color="warn" (click)="resetSelect(item)">
|
|
29943
|
+
<mat-icon>close</mat-icon>
|
|
29944
|
+
</button>
|
|
29945
|
+
</div>
|
|
29946
|
+
|
|
29947
|
+
<FHTextArea
|
|
29948
|
+
*ngIf="item.type == 'textarea'"
|
|
29949
|
+
[label]="item.label"
|
|
29950
|
+
[required]="item.required"
|
|
29951
|
+
[(ngModel)]="item.default_value"
|
|
29952
|
+
[enabled]="false"
|
|
29953
|
+
></FHTextArea>
|
|
29954
|
+
|
|
29955
|
+
<mat-checkbox
|
|
29956
|
+
*ngIf="item.type == 'checkbox'"
|
|
29957
|
+
[required]="item.required"
|
|
29958
|
+
[disabled]="!enabled"
|
|
29959
|
+
[(ngModel)]="item.default_value"
|
|
29960
|
+
><b>{{ item.label }}</b></mat-checkbox
|
|
29961
|
+
>
|
|
29962
|
+
|
|
29963
|
+
<div
|
|
29964
|
+
*ngIf="item.type == 'radiobutton'"
|
|
29965
|
+
fxLayout="row"
|
|
29966
|
+
fxLayoutGap="5px"
|
|
29967
|
+
>
|
|
29968
|
+
<label *ngIf="!item.required">{{ item.label }}: </label
|
|
29969
|
+
>
|
|
29970
|
+
<label *ngIf="item.required">{{ item.label }}: *</label
|
|
29971
|
+
>
|
|
29972
|
+
<mat-radio-group
|
|
29973
|
+
[(ngModel)]="item.default_value"
|
|
29974
|
+
[required]="item.required"
|
|
29975
|
+
class="fh-radio-group"
|
|
29976
|
+
>
|
|
29977
|
+
<mat-radio-button
|
|
29978
|
+
*ngFor="let opt of item.opts"
|
|
29979
|
+
[disabled]="!enabled"
|
|
29980
|
+
class="custom-margin"
|
|
29981
|
+
class="fh-radio-button"
|
|
29982
|
+
value="{{ opt }}"
|
|
29983
|
+
><b>{{ opt }}</b
|
|
29984
|
+
> </mat-radio-button
|
|
29985
|
+
>
|
|
29986
|
+
</mat-radio-group>
|
|
29987
|
+
</div>
|
|
29988
|
+
|
|
29989
|
+
<mat-form-field
|
|
29990
|
+
*ngIf="item.type == 'select'"
|
|
29991
|
+
appearance="outline"
|
|
29992
|
+
floatLabel="always"
|
|
29993
|
+
><mat-label>{{ item.label }}</mat-label>
|
|
29994
|
+
<mat-select
|
|
29995
|
+
[required]="item.required"
|
|
29996
|
+
[(ngModel)]="item.default_value"
|
|
29997
|
+
>
|
|
29998
|
+
<mat-option
|
|
29999
|
+
*ngFor="let opt of item.opts"
|
|
30000
|
+
[disabled]="!enabled"
|
|
30001
|
+
value="{{ opt }}"
|
|
30002
|
+
>{{ opt }}</mat-option
|
|
30003
|
+
>
|
|
30004
|
+
</mat-select>
|
|
30005
|
+
</mat-form-field>
|
|
30006
|
+
<div style="width: 220px" *ngIf="item.type == 'date_field'">
|
|
30007
|
+
<FHDatePicker
|
|
30008
|
+
[required]="item.required"
|
|
30009
|
+
[disabled]="!enabled"
|
|
30010
|
+
[(ngModel)]="item.default_value"
|
|
30011
|
+
[label]="item.label"
|
|
30012
|
+
></FHDatePicker
|
|
30013
|
+
>
|
|
30014
|
+
</div>
|
|
30015
|
+
</div>
|
|
30016
|
+
</div>
|
|
30017
|
+
|
|
30018
|
+
<mat-form-field [hidden]="true">
|
|
30019
|
+
<input matInput #bottoml />
|
|
30020
|
+
</mat-form-field>
|
|
30021
|
+
</div>
|
|
30022
|
+
`, styles: [".fh-radio-group{display:flex;flex-direction:column}.fh-radio-button{margin:0}\n"] }]
|
|
29972
30023
|
}], ctorParameters: () => [{ type: UtilityService }, { type: i1$2.MatDialog }, { type: i3.ToastrService }, { type: i3$2.TranslateService }], propDecorators: { items: [{
|
|
29973
30024
|
type: Input
|
|
29974
30025
|
}], enabled: [{
|