wuic-framework-lib 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -0
- package/fesm2022/wuic-framework-lib.mjs +45009 -0
- package/fesm2022/wuic-framework-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/app.routes.d.ts +2 -0
- package/lib/class/IBindable.d.ts +17 -0
- package/lib/class/IDesigner.d.ts +4 -0
- package/lib/class/IDesignerProperties.d.ts +7 -0
- package/lib/class/IFieldEditor.d.ts +21 -0
- package/lib/class/aggregationInfo.d.ts +5 -0
- package/lib/class/carouselOptions.d.ts +27 -0
- package/lib/class/chartOptions.d.ts +31 -0
- package/lib/class/comboParams.d.ts +12 -0
- package/lib/class/customException.d.ts +6 -0
- package/lib/class/designerTool.d.ts +57 -0
- package/lib/class/filterInfo.d.ts +6 -0
- package/lib/class/filterItem.d.ts +14 -0
- package/lib/class/formOptions.d.ts +5 -0
- package/lib/class/groupInfo.d.ts +7 -0
- package/lib/class/lingua.d.ts +5 -0
- package/lib/class/mapOptions.d.ts +31 -0
- package/lib/class/metaInfo.d.ts +26 -0
- package/lib/class/metadati_colonna.d.ts +234 -0
- package/lib/class/metadati_condition_group.d.ts +30 -0
- package/lib/class/metadati_custom_actions_tabelle.d.ts +19 -0
- package/lib/class/metadati_tabella.d.ts +214 -0
- package/lib/class/metadati_ui_stili_colonna.d.ts +8 -0
- package/lib/class/metadati_ui_stili_tabella.d.ts +7 -0
- package/lib/class/metadati_utenti_autorizzazioni_colonna.d.ts +10 -0
- package/lib/class/rawPagedResult.d.ts +7 -0
- package/lib/class/resultInfo.d.ts +14 -0
- package/lib/class/schedulerOptions.d.ts +14 -0
- package/lib/class/sortInfo.d.ts +5 -0
- package/lib/class/trackedChanges.d.ts +13 -0
- package/lib/class/translation.d.ts +7 -0
- package/lib/class/treeOptions.d.ts +15 -0
- package/lib/class/updateInfo.d.ts +9 -0
- package/lib/class/userInfo.d.ts +19 -0
- package/lib/class/validationRule.d.ts +10 -0
- package/lib/class/widgetDefinition.d.ts +28 -0
- package/lib/component/archetype-configurator/archetype-configurator.component.d.ts +28 -0
- package/lib/component/bounded-repeater/bounded-repeater.component.d.ts +32 -0
- package/lib/component/carousel-list/carousel-list.component.d.ts +66 -0
- package/lib/component/chart-list/chart-list.component.d.ts +135 -0
- package/lib/component/code-editor/code-editor.component.d.ts +86 -0
- package/lib/component/code-editor/editor-options.d.ts +12 -0
- package/lib/component/code-editor/html-parser.d.ts +27 -0
- package/lib/component/code-editor/sql-model.d.ts +87 -0
- package/lib/component/code-editor/sql-parser.d.ts +157 -0
- package/lib/component/code-editor/ts-parser.d.ts +93 -0
- package/lib/component/code-editor/wuic-component-bindings.d.ts +7 -0
- package/lib/component/code-editor/wuic-component-selectors.d.ts +1 -0
- package/lib/component/css-sheet-editor/css-sheet-editor.component.d.ts +71 -0
- package/lib/component/dashboard/dashboard.component.d.ts +12 -0
- package/lib/component/data-action-button/data-action-button.component.d.ts +45 -0
- package/lib/component/data-repeater/data-repeater.component.d.ts +32 -0
- package/lib/component/data-source/data-source.component.d.ts +147 -0
- package/lib/component/designer/designer.component.d.ts +269 -0
- package/lib/component/dynamic-dashboard-template/dynamic-dashboard-template.component.d.ts +39 -0
- package/lib/component/dynamic-form-template/dynamic-form-template.component.d.ts +11 -0
- package/lib/component/dynamic-generic-template/dynamic-generic-template.component.d.ts +20 -0
- package/lib/component/dynamic-repeater-template/dynamic-repeater-template.component.d.ts +15 -0
- package/lib/component/dynamic-template/dynamic-template.component.d.ts +31 -0
- package/lib/component/edit-form/edit-form.component.d.ts +62 -0
- package/lib/component/field/boolean-editor/boolean-editor.component.d.ts +23 -0
- package/lib/component/field/button-editor/button-editor.component.d.ts +25 -0
- package/lib/component/field/code-area-editor/code-area-editor.component.d.ts +20 -0
- package/lib/component/field/color-editor/color-editor.component.d.ts +23 -0
- package/lib/component/field/date-editor/date-editor.component.d.ts +25 -0
- package/lib/component/field/dictionary-editor/dictionary-editor.component.d.ts +35 -0
- package/lib/component/field/field-editor/field-editor.component.d.ts +65 -0
- package/lib/component/field/field-filter/field-filter.component.d.ts +43 -0
- package/lib/component/field/html-editor/html-editor.component.d.ts +24 -0
- package/lib/component/field/lookup-editor/lookup-editor.component.d.ts +35 -0
- package/lib/component/field/number-editor/number-editor.component.d.ts +26 -0
- package/lib/component/field/point-filter/point-filter.component.d.ts +34 -0
- package/lib/component/field/property-array-editor/property-array-editor.component.d.ts +27 -0
- package/lib/component/field/property-object-editor/property-object-editor.component.d.ts +26 -0
- package/lib/component/field/text-area-editor/text-area-editor.component.d.ts +24 -0
- package/lib/component/field/text-editor/text-editor.component.d.ts +25 -0
- package/lib/component/field/tree-view-selector/tree-view-selector.component.d.ts +22 -0
- package/lib/component/field/upload-editor/upload-editor.component.d.ts +38 -0
- package/lib/component/filter-bar/filter-bar.component.d.ts +67 -0
- package/lib/component/image-wrapper/image-wrapper.component.d.ts +15 -0
- package/lib/component/list-grid/list-grid.component.d.ts +238 -0
- package/lib/component/map-list/map-list.component.d.ts +137 -0
- package/lib/component/meta-menu/meta-menu.component.d.ts +97 -0
- package/lib/component/metadata-editor/metadata-editor.component.d.ts +125 -0
- package/lib/component/pager/pager.component.d.ts +41 -0
- package/lib/component/parametric-dialog/parametric-dialog.component.d.ts +44 -0
- package/lib/component/report-designer/report-designer.component.d.ts +19 -0
- package/lib/component/report-viewer/report-viewer.component.d.ts +20 -0
- package/lib/component/scheduler-list/scheduler-list.component.d.ts +54 -0
- package/lib/component/split/gutter/gutter-num-token.d.ts +7 -0
- package/lib/component/split/gutter/split-gutter-dynamic-injector.directive.d.ts +19 -0
- package/lib/component/split/gutter/split-gutter.directive.d.ts +54 -0
- package/lib/component/split/helpers/angular-split-config.token.d.ts +20 -0
- package/lib/component/split/helpers/models.d.ts +11 -0
- package/lib/component/split/helpers/split-custom-events-behavior.directive.d.ts +22 -0
- package/lib/component/split/helpers/utils.d.ts +30 -0
- package/lib/component/split/helpers/validations.d.ts +3 -0
- package/lib/component/split/split.component.d.ts +65 -0
- package/lib/component/split-area/split-area.component.d.ts +36 -0
- package/lib/component/spreadsheet-list/spreadsheet-list.component.d.ts +132 -0
- package/lib/component/tab-panel-wrapper/tab-panel-wrapper.component.d.ts +6 -0
- package/lib/component/tab-view-wrapper/tab-view-wrapper.component.d.ts +8 -0
- package/lib/component/tree-list/tree-list.component.d.ts +43 -0
- package/lib/component/workflow-designer/workflow-designer-node.component.d.ts +50 -0
- package/lib/component/workflow-designer/workflow-designer.component.d.ts +262 -0
- package/lib/component/workflow-runner/workflow-runner.component.d.ts +91 -0
- package/lib/directive/angular-resizable.directive.d.ts +153 -0
- package/lib/directive/classes/ngx-draggable-point.d.ts +5 -0
- package/lib/directive/classes/ngx-draggable-rect.d.ts +27 -0
- package/lib/directive/data-bound.directive.d.ts +16 -0
- package/lib/directive/events/ngx-draggable-dom-bounds-check-event.d.ts +32 -0
- package/lib/directive/events/ngx-draggable-dom-move-event.d.ts +28 -0
- package/lib/directive/helpers/helper-block.d.ts +12 -0
- package/lib/directive/helpers/ngx-draggable-dom-math.d.ts +65 -0
- package/lib/directive/helpers/ngx-draggable-dom-utilities.d.ts +26 -0
- package/lib/directive/helpers/resize-handle.d.ts +14 -0
- package/lib/directive/models/position.d.ts +21 -0
- package/lib/directive/models/resize-event.d.ts +16 -0
- package/lib/directive/models/resize-handle-type.d.ts +11 -0
- package/lib/directive/models/size.d.ts +12 -0
- package/lib/directive/ngx-draggable-dom.directive.d.ts +175 -0
- package/lib/handler/GlobalHandler.d.ts +11 -0
- package/lib/handler/mime.d.ts +11 -0
- package/lib/pipe/async-callback.pipe.d.ts +11 -0
- package/lib/pipe/available-operators.pipe.d.ts +8 -0
- package/lib/pipe/callback.pipe.d.ts +7 -0
- package/lib/pipe/callback2.pipe.d.ts +7 -0
- package/lib/pipe/format-grid-view-value.pipe.d.ts +8 -0
- package/lib/pipe/get-src-upload-preview.pipe.d.ts +9 -0
- package/lib/pipe/is-selected-row.pipe.d.ts +8 -0
- package/lib/pipe/prop-converter.pipe.d.ts +7 -0
- package/lib/pipe/show-filter-bar.pipe.d.ts +9 -0
- package/lib/pipe/to-date.pipe.d.ts +7 -0
- package/lib/pipe/visible-field-list.pipe.d.ts +7 -0
- package/lib/service/auth-session.service.d.ts +52 -0
- package/lib/service/client-side-crud.service.d.ts +35 -0
- package/lib/service/data-provider-meta.service.d.ts +32 -0
- package/lib/service/data-provider-odata.service.d.ts +18 -0
- package/lib/service/data-provider-webservice.service.d.ts +15 -0
- package/lib/service/data-provider.service.d.ts +64 -0
- package/lib/service/metadata-editor.service.d.ts +16 -0
- package/lib/service/metadata-provider.service.d.ts +160 -0
- package/lib/service/translation-manager.service.d.ts +38 -0
- package/lib/service/user-info.service.d.ts +24 -0
- package/lib/service/workflow-runtime-menu.service.d.ts +15 -0
- package/lib/service/workflow-runtime-metadata.service.d.ts +28 -0
- package/lib/service/wtoolbox.service.d.ts +145 -0
- package/package.json +63 -0
- package/public-api.d.ts +48 -0
- package/styles/styles.scss +87 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import { DataSourceComponent } from "../component/data-source/data-source.component";
|
|
3
|
+
import { WtoolboxService } from "../service/wtoolbox.service";
|
|
4
|
+
import { MetadatiConditionGroup } from "./metadati_condition_group";
|
|
5
|
+
import { MetadatiCustomActionTabella } from "./metadati_custom_actions_tabelle";
|
|
6
|
+
import { MetadatiUiStiliTabella } from "./metadati_ui_stili_tabella";
|
|
7
|
+
import { MetaInfo } from "./metaInfo";
|
|
8
|
+
import { MapOptions } from "./mapOptions";
|
|
9
|
+
import { GroupInfo } from "./groupInfo";
|
|
10
|
+
import { AggregationInfo } from "./aggregationInfo";
|
|
11
|
+
import { SchedulerOptions } from "./schedulerOptions";
|
|
12
|
+
import { TreeOptions } from "./treeOptions";
|
|
13
|
+
import { CarouselOptions } from "./carouselOptions";
|
|
14
|
+
import { ChartOptions } from "./chartOptions";
|
|
15
|
+
import { FormOptions } from "./formOptions";
|
|
16
|
+
export declare class MetadatiTabella {
|
|
17
|
+
__user_id: number;
|
|
18
|
+
ProjectMetadataVersion: number;
|
|
19
|
+
md_id: number;
|
|
20
|
+
md_nome_tabella: string;
|
|
21
|
+
md_editable: boolean;
|
|
22
|
+
md_deletable: boolean;
|
|
23
|
+
md_insertable: boolean;
|
|
24
|
+
md_display_string: string;
|
|
25
|
+
md_long_description: string;
|
|
26
|
+
is_system_route: boolean;
|
|
27
|
+
md_url_read: string;
|
|
28
|
+
md_url_update: string;
|
|
29
|
+
md_url_delete: string;
|
|
30
|
+
md_url_insert: string;
|
|
31
|
+
md_sortable: boolean;
|
|
32
|
+
md_groupable: boolean;
|
|
33
|
+
md_scrollable: boolean;
|
|
34
|
+
md_pageable: boolean;
|
|
35
|
+
md_pagesize: number;
|
|
36
|
+
md_edit_popup: boolean;
|
|
37
|
+
md_inline_edit: boolean;
|
|
38
|
+
md_server_side_operations: boolean;
|
|
39
|
+
md_nested_grid_routes: string;
|
|
40
|
+
md_detail_grid_routes: string;
|
|
41
|
+
md_parent_key_name: string;
|
|
42
|
+
md_master_detail_edit: boolean;
|
|
43
|
+
md_default_filter: string;
|
|
44
|
+
md_header_rows_edit: boolean;
|
|
45
|
+
md_multiple_selection: boolean;
|
|
46
|
+
md_detail_action: boolean;
|
|
47
|
+
md_display_formula: null;
|
|
48
|
+
md_importable: boolean;
|
|
49
|
+
md_clonable: boolean;
|
|
50
|
+
md_open_filter_onload: boolean;
|
|
51
|
+
md_before_save: null;
|
|
52
|
+
md_after_save: null;
|
|
53
|
+
md_after_load: null;
|
|
54
|
+
md_ui_grid_conditional_template: string;
|
|
55
|
+
md_ui_grid_conditional_alt_template: string;
|
|
56
|
+
md_ui_grid_conditional_template_condition: string;
|
|
57
|
+
md_conditional_update_rule: null;
|
|
58
|
+
md_conditional_delete_rule: null;
|
|
59
|
+
md_appoggio_left_table: null;
|
|
60
|
+
md_appoggio_right_table: null;
|
|
61
|
+
md_appoggio_allow_drag_drop: null;
|
|
62
|
+
md_appoggio_edit_extra_data: null;
|
|
63
|
+
md_appoggio_left_fk_name: null;
|
|
64
|
+
md_appoggio_right_fk_name: null;
|
|
65
|
+
md_treeview_template: string;
|
|
66
|
+
md_gridview_template: string;
|
|
67
|
+
md_rowTemplate: string;
|
|
68
|
+
md_filter_template: string;
|
|
69
|
+
md_detail_template: string;
|
|
70
|
+
md_edit_template: string;
|
|
71
|
+
md_book_html_template: string;
|
|
72
|
+
md_gallery_html_template: string;
|
|
73
|
+
md_map_html_template: string;
|
|
74
|
+
md_grant_by_default: boolean;
|
|
75
|
+
md_record_restriction_key_user_field_list: string;
|
|
76
|
+
md_user_id_field_name: string;
|
|
77
|
+
md_logging_enable: boolean;
|
|
78
|
+
md_logging_last_mod_user_field_name: string;
|
|
79
|
+
md_logging_last_mod_date_field_name: string;
|
|
80
|
+
md_logging_insert_user_field_name: string;
|
|
81
|
+
md_logging_insert_date_field_name: string;
|
|
82
|
+
md_logging_delete_user_field_name: string;
|
|
83
|
+
md_loggingdelete_date_field_name: string;
|
|
84
|
+
md_logging_azienda_field_name: string;
|
|
85
|
+
md_has_logic_delete: boolean;
|
|
86
|
+
md_disabilita_filtri: boolean;
|
|
87
|
+
md_grid_scroll_height: string;
|
|
88
|
+
md_table_edit: boolean;
|
|
89
|
+
md_tab_edit: boolean;
|
|
90
|
+
md_table_column_counta: null;
|
|
91
|
+
md_show_record_count: boolean;
|
|
92
|
+
md_page_size_choice: string;
|
|
93
|
+
md_is_reticular: boolean;
|
|
94
|
+
reticular_key_name: string;
|
|
95
|
+
reticular_key_value: null;
|
|
96
|
+
md_conn_name: string;
|
|
97
|
+
md_db_name: string;
|
|
98
|
+
md_primary_key_type: string;
|
|
99
|
+
md_schema_name: string;
|
|
100
|
+
md_route_name: string;
|
|
101
|
+
md_is_view: boolean;
|
|
102
|
+
md_expose_in_webapi: boolean;
|
|
103
|
+
md_expose_in_wcf: boolean;
|
|
104
|
+
md_include_definition: boolean;
|
|
105
|
+
md_service_custom_settings: boolean;
|
|
106
|
+
md_service_page_size: number;
|
|
107
|
+
md_service_disable_sorting: boolean;
|
|
108
|
+
md_service_disable_filtering: boolean;
|
|
109
|
+
md_service_enable_edit: boolean;
|
|
110
|
+
md_service_enable_insert: boolean;
|
|
111
|
+
md_service_enable_delete: boolean;
|
|
112
|
+
md_service_enable_detail: boolean;
|
|
113
|
+
md_service_enable_clone: boolean;
|
|
114
|
+
md_service_apply_default_filter: boolean;
|
|
115
|
+
md_service_enable_logging: boolean;
|
|
116
|
+
md_allow_drag: boolean;
|
|
117
|
+
md_allow_drop: boolean;
|
|
118
|
+
md_drop_callback: null;
|
|
119
|
+
md_custom_row_template: null;
|
|
120
|
+
md_custom_repeater_view_template: null;
|
|
121
|
+
md_custom_filter_template: null;
|
|
122
|
+
md_custom_filter_cell_template: null;
|
|
123
|
+
md_custom_view_cell_template: null;
|
|
124
|
+
md_custom_edit_cell_template: null;
|
|
125
|
+
md_custom_pager_template: null;
|
|
126
|
+
md_custom_header_template: null;
|
|
127
|
+
md_custom_header_cell_template: null;
|
|
128
|
+
md_custom_command_header_template: null;
|
|
129
|
+
md_custom_title_template: null;
|
|
130
|
+
md_hide_refresh: null;
|
|
131
|
+
md_hide_print: null;
|
|
132
|
+
md_hide_export_pdf: null;
|
|
133
|
+
md_hide_export_xls: null;
|
|
134
|
+
md_auto_refresh_seconds: null;
|
|
135
|
+
md_inline_cell_editing: boolean;
|
|
136
|
+
md_batch_save: boolean;
|
|
137
|
+
md_props_bag: null;
|
|
138
|
+
md_hide_select_all_check: boolean;
|
|
139
|
+
md_multiple_radio_selection: boolean;
|
|
140
|
+
md_persist_row_selection_accross_paging: boolean;
|
|
141
|
+
md_custom_edit: null;
|
|
142
|
+
md_custom_delete: null;
|
|
143
|
+
md_delete_and_sync: boolean;
|
|
144
|
+
hide_toolbar: boolean;
|
|
145
|
+
preventNavigateOnFilter: boolean | undefined;
|
|
146
|
+
extraProps: {
|
|
147
|
+
endpoint: {
|
|
148
|
+
type: string;
|
|
149
|
+
method: 'get' | 'post';
|
|
150
|
+
uri: string;
|
|
151
|
+
parameterMapping: [
|
|
152
|
+
{
|
|
153
|
+
source: {
|
|
154
|
+
type: string;
|
|
155
|
+
name: string;
|
|
156
|
+
required: boolean;
|
|
157
|
+
path: string;
|
|
158
|
+
};
|
|
159
|
+
target: {
|
|
160
|
+
type: string;
|
|
161
|
+
name: string;
|
|
162
|
+
parseFunction: string;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
];
|
|
166
|
+
};
|
|
167
|
+
cascadeDefinition: any;
|
|
168
|
+
archetypes: {
|
|
169
|
+
scheduler: SchedulerOptions;
|
|
170
|
+
tree: TreeOptions;
|
|
171
|
+
spreadsheet: any;
|
|
172
|
+
list: any;
|
|
173
|
+
map: MapOptions;
|
|
174
|
+
excel: any;
|
|
175
|
+
carousel: CarouselOptions;
|
|
176
|
+
chart: ChartOptions;
|
|
177
|
+
form: FormOptions;
|
|
178
|
+
};
|
|
179
|
+
parameters: any[];
|
|
180
|
+
groupInfo: GroupInfo[];
|
|
181
|
+
aggregates: AggregationInfo[];
|
|
182
|
+
cloneDefinition: {
|
|
183
|
+
relatedRoutes: {
|
|
184
|
+
relatedRoute: string;
|
|
185
|
+
relatedIdField: string;
|
|
186
|
+
}[];
|
|
187
|
+
};
|
|
188
|
+
changeTracking: boolean;
|
|
189
|
+
client_side_crud: boolean | {
|
|
190
|
+
enabled?: boolean;
|
|
191
|
+
batchSize?: number;
|
|
192
|
+
maxPages?: number;
|
|
193
|
+
includeLookupRoutes?: boolean;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
parameterInfo: any[];
|
|
197
|
+
md_update_uri: string;
|
|
198
|
+
hideSave: any;
|
|
199
|
+
hideRollback: any;
|
|
200
|
+
hideGoBack: any;
|
|
201
|
+
_Metadati_Custom_Actions_Tabelles: MetadatiCustomActionTabella[];
|
|
202
|
+
_Metadati_Utenti_Autorizzazioni_Tabelles: any[];
|
|
203
|
+
_Metadati_UI_Stili_Tabelles: MetadatiUiStiliTabella[];
|
|
204
|
+
_Metadati_Condition_Groups: MetadatiConditionGroup[];
|
|
205
|
+
md_conditional_update_rule_fn: (metaInfo: MetaInfo, record: any, datasource: DataSourceComponent, wtoolbox: typeof WtoolboxService) => boolean;
|
|
206
|
+
md_conditional_delete_rule_fn: (metaInfo: MetaInfo, record: any, datasource: DataSourceComponent, wtoolbox: typeof WtoolboxService) => boolean;
|
|
207
|
+
md_before_save_fn: (datasource: DataSourceComponent, savingData: any, beforeSync: (shouldSync: boolean) => void, event: any, wtoolbox: typeof WtoolboxService) => Promise<any> | any;
|
|
208
|
+
md_after_save_fn: (datasource: DataSourceComponent, savingData: any, syncedData: any, isInsert: boolean, isClone: boolean, isDelete: boolean, event: any, wtoolbox: typeof WtoolboxService) => Promise<void> | void;
|
|
209
|
+
md_after_load_fn: (datasource: DataSourceComponent, originalEvent: any, result: any, loadedRecords: any[], isInsert: boolean, wtoolbox: typeof WtoolboxService) => Promise<void> | void;
|
|
210
|
+
md_display_formula_fn: (metaInfo: MetaInfo, record: {
|
|
211
|
+
[key: string]: BehaviorSubject<any>;
|
|
212
|
+
}, datasource: DataSourceComponent, wtoolbox: typeof WtoolboxService) => string;
|
|
213
|
+
constructor(name: string);
|
|
214
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
export declare class ResultInfo {
|
|
3
|
+
totalRowCount?: number;
|
|
4
|
+
totalGroups?: number;
|
|
5
|
+
dato: Array<any>;
|
|
6
|
+
current: {
|
|
7
|
+
[key: string]: BehaviorSubject<any>;
|
|
8
|
+
};
|
|
9
|
+
Agg?: any[];
|
|
10
|
+
route?: string;
|
|
11
|
+
constructor(dato?: {
|
|
12
|
+
[key: string]: BehaviorSubject<any>;
|
|
13
|
+
});
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IDesignerProperties } from "./IDesignerProperties";
|
|
2
|
+
import { MetaInfo } from "./metaInfo";
|
|
3
|
+
import { BehaviorSubject } from "rxjs";
|
|
4
|
+
export declare class SchedulerOptions implements IDesignerProperties {
|
|
5
|
+
fromField: string;
|
|
6
|
+
toField: string;
|
|
7
|
+
titleField: string;
|
|
8
|
+
itemTemplateString: string;
|
|
9
|
+
titleFunction: string;
|
|
10
|
+
constructor();
|
|
11
|
+
init(metaInfo: MetaInfo): void;
|
|
12
|
+
archetypePropName: string;
|
|
13
|
+
getDesignerProps(metaInfo: MetaInfo, action: BehaviorSubject<any>): MetaInfo;
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class TrackedChange {
|
|
2
|
+
pkey: string;
|
|
3
|
+
guid: string;
|
|
4
|
+
changes: ChangeT[];
|
|
5
|
+
constructor(pkey: any, guid: any);
|
|
6
|
+
}
|
|
7
|
+
export declare class ChangeT {
|
|
8
|
+
field: string;
|
|
9
|
+
oldValue: any;
|
|
10
|
+
newValue: any;
|
|
11
|
+
timestamp?: Date;
|
|
12
|
+
constructor(field: string, oldValue: any, newValue: any);
|
|
13
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import { IDesignerProperties } from "./IDesignerProperties";
|
|
3
|
+
import { MetaInfo } from "./metaInfo";
|
|
4
|
+
export declare class TreeOptions implements IDesignerProperties {
|
|
5
|
+
parentField: string;
|
|
6
|
+
labelField: string;
|
|
7
|
+
iconField: string;
|
|
8
|
+
leafField: string;
|
|
9
|
+
labelFunction: string;
|
|
10
|
+
itemTemplateString: string;
|
|
11
|
+
constructor();
|
|
12
|
+
init(metaInfo: MetaInfo): void;
|
|
13
|
+
archetypePropName: string;
|
|
14
|
+
getDesignerProps(metaInfo: MetaInfo, action: BehaviorSubject<any>): MetaInfo;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Lingua } from "./lingua";
|
|
2
|
+
export declare class UserInfo {
|
|
3
|
+
user_id: number;
|
|
4
|
+
user_name: string;
|
|
5
|
+
display_name: string;
|
|
6
|
+
role: string;
|
|
7
|
+
role_id: number;
|
|
8
|
+
isAdmin: boolean;
|
|
9
|
+
lingua: Lingua;
|
|
10
|
+
constructor(params: {
|
|
11
|
+
user_id: number;
|
|
12
|
+
user_name: string;
|
|
13
|
+
display_name: string;
|
|
14
|
+
role: string;
|
|
15
|
+
role_id: number;
|
|
16
|
+
isAdmin: boolean;
|
|
17
|
+
lingua: Lingua;
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare class WidgetDefinition {
|
|
2
|
+
defaultHeight: string;
|
|
3
|
+
defaultWidth: string;
|
|
4
|
+
defaultFilterWidth: string;
|
|
5
|
+
fieldLabelInline: boolean;
|
|
6
|
+
formColumns: number;
|
|
7
|
+
filterOperators: any[];
|
|
8
|
+
lookupServerPageCount: number;
|
|
9
|
+
gridRowImports?: any[];
|
|
10
|
+
dynamicFormImports?: any[];
|
|
11
|
+
gridRowTemplate?: string;
|
|
12
|
+
schedulerEventTemplate?: string;
|
|
13
|
+
mapEventTemplate?: string;
|
|
14
|
+
treeItemTemplate?: string;
|
|
15
|
+
menuParams?: {
|
|
16
|
+
ulWith: string;
|
|
17
|
+
liWidth: string;
|
|
18
|
+
itemCountThreshold: number;
|
|
19
|
+
};
|
|
20
|
+
archetypes: {
|
|
21
|
+
[key: string]: {
|
|
22
|
+
markup: string;
|
|
23
|
+
component: any;
|
|
24
|
+
designerOptions?: any;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
constructor();
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { MetaInfo } from '../../class/metaInfo';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ArchetypeConfiguratorComponent implements OnChanges {
|
|
5
|
+
visible: boolean;
|
|
6
|
+
visibleChange: EventEmitter<boolean>;
|
|
7
|
+
archetype: string;
|
|
8
|
+
metaInfo: MetaInfo | null;
|
|
9
|
+
value: any;
|
|
10
|
+
applyConfig: EventEmitter<any>;
|
|
11
|
+
readonly chartTypes: string[];
|
|
12
|
+
readonly legendPositions: string[];
|
|
13
|
+
readonly animationEasings: string[];
|
|
14
|
+
mapDraft: any;
|
|
15
|
+
carouselDraft: any;
|
|
16
|
+
chartDraft: any;
|
|
17
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
18
|
+
close(): void;
|
|
19
|
+
apply(): void;
|
|
20
|
+
get fieldCandidates(): any[];
|
|
21
|
+
private syncDraftFromValue;
|
|
22
|
+
private buildChartOptionsFromDraft;
|
|
23
|
+
private toNumber;
|
|
24
|
+
private toNullableNumber;
|
|
25
|
+
private unwrapValue;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArchetypeConfiguratorComponent, never>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArchetypeConfiguratorComponent, "wuic-archetype-configurator", never, { "visible": { "alias": "visible"; "required": false; }; "archetype": { "alias": "archetype"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "visibleChange": "visibleChange"; "applyConfig": "applyConfig"; }, never, never, true, never>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MetaInfo } from '../../class/metaInfo';
|
|
3
|
+
import { DataSourceComponent } from '../data-source/data-source.component';
|
|
4
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
|
+
import { ResultInfo } from '../../class/resultInfo';
|
|
6
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
|
+
import { UserInfoService } from '../../service/user-info.service';
|
|
8
|
+
import { Table } from 'primeng/table';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class BoundedRepeaterComponent implements OnInit {
|
|
11
|
+
private route;
|
|
12
|
+
private router;
|
|
13
|
+
userService: UserInfoService;
|
|
14
|
+
hardcodedRoute: string;
|
|
15
|
+
routeName: BehaviorSubject<string>;
|
|
16
|
+
action: BehaviorSubject<string>;
|
|
17
|
+
parentRecord: any;
|
|
18
|
+
parentMetaInfo: MetaInfo;
|
|
19
|
+
rowCustomSelect: (rowData: any, $event: any, dt: Table) => void;
|
|
20
|
+
datasource?: DataSourceComponent;
|
|
21
|
+
loading: BehaviorSubject<boolean>;
|
|
22
|
+
boundedInfo: {
|
|
23
|
+
resultInfo: ResultInfo;
|
|
24
|
+
metaInfo: MetaInfo;
|
|
25
|
+
};
|
|
26
|
+
private pendingListRefresh;
|
|
27
|
+
constructor(route: ActivatedRoute, router: Router, userService: UserInfoService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
onRepeaterTemplateReady(action: string): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BoundedRepeaterComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BoundedRepeaterComponent, "wuic-bounded-repeater", never, { "hardcodedRoute": { "alias": "hardcodedRoute"; "required": false; }; "routeName": { "alias": "routeName"; "required": false; }; "action": { "alias": "action"; "required": false; }; "parentRecord": { "alias": "parentRecord"; "required": false; }; "parentMetaInfo": { "alias": "parentMetaInfo"; "required": false; }; "rowCustomSelect": { "alias": "rowCustomSelect"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { Title } from '@angular/platform-browser';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { MetadatiColonna } from '../../class/metadati_colonna';
|
|
5
|
+
import { MetaInfo } from '../../class/metaInfo';
|
|
6
|
+
import { TranslationManagerService } from '../../service/translation-manager.service';
|
|
7
|
+
import { DataSourceComponent } from '../data-source/data-source.component';
|
|
8
|
+
import { DynamicGenericTemplateComponent } from '../dynamic-generic-template/dynamic-generic-template.component';
|
|
9
|
+
import { IBindable } from '../../class/IBindable';
|
|
10
|
+
import { IDesigner } from '../../class/IDesigner';
|
|
11
|
+
import { CarouselOptions } from '../../class/carouselOptions';
|
|
12
|
+
import { UserInfoService } from '../../service/user-info.service';
|
|
13
|
+
import { ActivatedRoute } from '@angular/router';
|
|
14
|
+
import * as i0 from "@angular/core";
|
|
15
|
+
export declare class CarouselListComponent implements IBindable, IDesigner<CarouselOptions> {
|
|
16
|
+
private titleService;
|
|
17
|
+
private cd;
|
|
18
|
+
private route;
|
|
19
|
+
private trslSrv;
|
|
20
|
+
private userInfo;
|
|
21
|
+
hardcodedRoute: string;
|
|
22
|
+
parentRecord: any;
|
|
23
|
+
parentMetaInfo: MetaInfo;
|
|
24
|
+
datasource: BehaviorSubject<DataSourceComponent>;
|
|
25
|
+
hardcodedDatasource: DataSourceComponent;
|
|
26
|
+
archetypeOptions: CarouselOptions;
|
|
27
|
+
metaInfo: MetaInfo;
|
|
28
|
+
data: any[];
|
|
29
|
+
itemTemplateString: string;
|
|
30
|
+
itemTemplate: typeof DynamicGenericTemplateComponent;
|
|
31
|
+
titleField: string;
|
|
32
|
+
imageColumn: MetadatiColonna | undefined;
|
|
33
|
+
showConfigDialog: boolean;
|
|
34
|
+
pageSizeMax: number;
|
|
35
|
+
imageFieldCandidates: MetadatiColonna[];
|
|
36
|
+
descriptionFieldCandidates: MetadatiColonna[];
|
|
37
|
+
configDraft: {
|
|
38
|
+
imageFieldName: string;
|
|
39
|
+
descriptionFieldName: string;
|
|
40
|
+
imageWidth: number;
|
|
41
|
+
pageSize: number;
|
|
42
|
+
itemTemplateString: string;
|
|
43
|
+
numVisible: number;
|
|
44
|
+
numScroll: number;
|
|
45
|
+
usePreview: boolean;
|
|
46
|
+
};
|
|
47
|
+
routeName: any;
|
|
48
|
+
constructor(titleService: Title, cd: ChangeDetectorRef, route: ActivatedRoute, trslSrv: TranslationManagerService, userInfo: UserInfoService);
|
|
49
|
+
get isAdmin(): boolean;
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
subscribeToDS(): void;
|
|
52
|
+
parseData(dato: any[]): any[];
|
|
53
|
+
openConfigDialog(): void;
|
|
54
|
+
applyConfig(nextConfig?: any): void;
|
|
55
|
+
saveCarouselMetadataPropsBag(): Promise<void>;
|
|
56
|
+
onPageSizeSlideEnd(event: any): void;
|
|
57
|
+
suggestItemTemplate(): void;
|
|
58
|
+
applyPageSizeChange(value?: number): void;
|
|
59
|
+
private syncConfigDraftFromOptions;
|
|
60
|
+
private syncArchetypeOptionsFromPropsBag;
|
|
61
|
+
private getCarouselPropsFromPropsBag;
|
|
62
|
+
private ensureMergedExtraProps;
|
|
63
|
+
private loadCurrentTableMetadataRecord;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselListComponent, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CarouselListComponent, "wuic-carousel-list", never, { "hardcodedRoute": { "alias": "hardcodedRoute"; "required": false; }; "parentRecord": { "alias": "parentRecord"; "required": false; }; "parentMetaInfo": { "alias": "parentMetaInfo"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "hardcodedDatasource": { "alias": "hardcodedDatasource"; "required": false; }; }, {}, never, never, true, never>;
|
|
66
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Title } from '@angular/platform-browser';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { MetadatiColonna } from '../../class/metadati_colonna';
|
|
5
|
+
import { MetaInfo } from '../../class/metaInfo';
|
|
6
|
+
import { TranslationManagerService } from '../../service/translation-manager.service';
|
|
7
|
+
import { DataSourceComponent } from '../data-source/data-source.component';
|
|
8
|
+
import { DynamicGenericTemplateComponent } from '../dynamic-generic-template/dynamic-generic-template.component';
|
|
9
|
+
import { UIChart } from 'primeng/chart';
|
|
10
|
+
import { ResultInfo } from '../../class/resultInfo';
|
|
11
|
+
import { UserInfoService } from '../../service/user-info.service';
|
|
12
|
+
import { ActivatedRoute } from '@angular/router';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export declare class ChartListComponent implements OnInit, OnDestroy {
|
|
15
|
+
private titleService;
|
|
16
|
+
private cd;
|
|
17
|
+
private route;
|
|
18
|
+
private trslSrv;
|
|
19
|
+
private userInfo;
|
|
20
|
+
hardcodedRoute: string;
|
|
21
|
+
parentRecord: any;
|
|
22
|
+
parentMetaInfo: MetaInfo;
|
|
23
|
+
datasource: BehaviorSubject<DataSourceComponent>;
|
|
24
|
+
hardcodedDatasource: DataSourceComponent;
|
|
25
|
+
chartRef?: UIChart;
|
|
26
|
+
chartHostRef?: ElementRef<HTMLElement>;
|
|
27
|
+
chartOptions: any;
|
|
28
|
+
records: any[];
|
|
29
|
+
private readonly contentRenderers;
|
|
30
|
+
metas: MetadatiColonna[];
|
|
31
|
+
cols: any;
|
|
32
|
+
metaInfo: MetaInfo;
|
|
33
|
+
loading: boolean;
|
|
34
|
+
titleField: string;
|
|
35
|
+
itemTemplateString: string;
|
|
36
|
+
counter: number;
|
|
37
|
+
itemTemplate: typeof DynamicGenericTemplateComponent;
|
|
38
|
+
titleFunction: Function;
|
|
39
|
+
basicData: any;
|
|
40
|
+
basicOptions: any;
|
|
41
|
+
data: any;
|
|
42
|
+
totalRecords: number;
|
|
43
|
+
cutoffValue: number;
|
|
44
|
+
lastResultInfo?: ResultInfo;
|
|
45
|
+
showConfigPopup: boolean;
|
|
46
|
+
chartTypes: string[];
|
|
47
|
+
selectedChartType: string;
|
|
48
|
+
legendPositions: string[];
|
|
49
|
+
animationEasings: string[];
|
|
50
|
+
palettePresets: string[];
|
|
51
|
+
ui: {
|
|
52
|
+
legendDisplay: boolean;
|
|
53
|
+
legendPosition: string;
|
|
54
|
+
titleDisplay: boolean;
|
|
55
|
+
titleText: string;
|
|
56
|
+
tooltipEnabled: boolean;
|
|
57
|
+
maintainAspectRatio: boolean;
|
|
58
|
+
animationDuration: number;
|
|
59
|
+
animationEasing: string;
|
|
60
|
+
sortEnabled: boolean;
|
|
61
|
+
sortDir: "asc" | "desc";
|
|
62
|
+
stacked: boolean;
|
|
63
|
+
indexAxis: "x" | "y";
|
|
64
|
+
showGridX: boolean;
|
|
65
|
+
showGridY: boolean;
|
|
66
|
+
beginAtZero: boolean;
|
|
67
|
+
tension: number;
|
|
68
|
+
barThickness: number;
|
|
69
|
+
cutout: number;
|
|
70
|
+
palette: string;
|
|
71
|
+
};
|
|
72
|
+
private hasUserChartTypeOverride;
|
|
73
|
+
private readonly chartHostMinHeight;
|
|
74
|
+
private readonly chartBottomPadding;
|
|
75
|
+
private readonly chartResizePassDelaysMs;
|
|
76
|
+
private readonly defaultChartOptions;
|
|
77
|
+
private metaChartOptions;
|
|
78
|
+
private themeObserver?;
|
|
79
|
+
private chartResizeObserver?;
|
|
80
|
+
private pendingChartResizeHandle?;
|
|
81
|
+
private pendingChartMeasureTimeouts;
|
|
82
|
+
routeName: any;
|
|
83
|
+
chartHostHeightPx?: number;
|
|
84
|
+
private readonly onWindowResize;
|
|
85
|
+
private readonly onWindowScroll;
|
|
86
|
+
constructor(titleService: Title, cd: ChangeDetectorRef, route: ActivatedRoute, trslSrv: TranslationManagerService, userInfo: UserInfoService);
|
|
87
|
+
get isAdmin(): boolean;
|
|
88
|
+
ngOnInit(): void;
|
|
89
|
+
ngOnDestroy(): void;
|
|
90
|
+
private subscribeToDS;
|
|
91
|
+
private hasGroupingApplied;
|
|
92
|
+
private getTotalForCutoff;
|
|
93
|
+
drillDown($event: any): void;
|
|
94
|
+
private getSeriesValue;
|
|
95
|
+
private getLabelValue;
|
|
96
|
+
onCutoffChanged(event: Event): void;
|
|
97
|
+
onCutoffValueChanged(value: number): void;
|
|
98
|
+
private applyCutoffValue;
|
|
99
|
+
openConfigPopup(): void;
|
|
100
|
+
closeConfigPopup(): void;
|
|
101
|
+
exportChart(): void;
|
|
102
|
+
onChartTypeChanged(): void;
|
|
103
|
+
onWidgetOptionsChanged(): void;
|
|
104
|
+
private refreshChartOptions;
|
|
105
|
+
private buildWidgetChartOptions;
|
|
106
|
+
private observeThemeClassChanges;
|
|
107
|
+
private getThemeChartOptions;
|
|
108
|
+
isCartesianChart(): boolean;
|
|
109
|
+
isLineLikeChart(): boolean;
|
|
110
|
+
isBarChart(): boolean;
|
|
111
|
+
isDoughnutLikeChart(): boolean;
|
|
112
|
+
private getPaletteColors;
|
|
113
|
+
private applyDatasetAppearance;
|
|
114
|
+
private deepMerge;
|
|
115
|
+
private persistChartArchetypeOptions;
|
|
116
|
+
saveChartMetadataPropsBag(): Promise<void>;
|
|
117
|
+
private ensureMergedExtraProps;
|
|
118
|
+
private syncChartConfigFromPropsBag;
|
|
119
|
+
onArchetypeConfigApply(nextConfig: any): void;
|
|
120
|
+
getChartConfigValue(): any;
|
|
121
|
+
private getChartPropsFromPropsBag;
|
|
122
|
+
private loadCurrentTableMetadataRecord;
|
|
123
|
+
parseData(result: ResultInfo, runtimeCutOff?: number): any;
|
|
124
|
+
private startChartResizeObserver;
|
|
125
|
+
private scheduleChartResize;
|
|
126
|
+
private updateChartHostHeight;
|
|
127
|
+
private getLayoutViewportBottom;
|
|
128
|
+
private scheduleChartResizePasses;
|
|
129
|
+
private clearPendingChartMeasureTimeouts;
|
|
130
|
+
private measureAndResizeChart;
|
|
131
|
+
private attachLayoutListeners;
|
|
132
|
+
private detachLayoutListeners;
|
|
133
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChartListComponent, never>;
|
|
134
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ChartListComponent, "wuic-chart-list", never, { "hardcodedRoute": { "alias": "hardcodedRoute"; "required": false; }; "parentRecord": { "alias": "parentRecord"; "required": false; }; "parentMetaInfo": { "alias": "parentMetaInfo"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "hardcodedDatasource": { "alias": "hardcodedDatasource"; "required": false; }; }, {}, never, never, true, never>;
|
|
135
|
+
}
|