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.
Files changed (154) hide show
  1. package/README.md +24 -0
  2. package/fesm2022/wuic-framework-lib.mjs +45009 -0
  3. package/fesm2022/wuic-framework-lib.mjs.map +1 -0
  4. package/index.d.ts +5 -0
  5. package/lib/app.routes.d.ts +2 -0
  6. package/lib/class/IBindable.d.ts +17 -0
  7. package/lib/class/IDesigner.d.ts +4 -0
  8. package/lib/class/IDesignerProperties.d.ts +7 -0
  9. package/lib/class/IFieldEditor.d.ts +21 -0
  10. package/lib/class/aggregationInfo.d.ts +5 -0
  11. package/lib/class/carouselOptions.d.ts +27 -0
  12. package/lib/class/chartOptions.d.ts +31 -0
  13. package/lib/class/comboParams.d.ts +12 -0
  14. package/lib/class/customException.d.ts +6 -0
  15. package/lib/class/designerTool.d.ts +57 -0
  16. package/lib/class/filterInfo.d.ts +6 -0
  17. package/lib/class/filterItem.d.ts +14 -0
  18. package/lib/class/formOptions.d.ts +5 -0
  19. package/lib/class/groupInfo.d.ts +7 -0
  20. package/lib/class/lingua.d.ts +5 -0
  21. package/lib/class/mapOptions.d.ts +31 -0
  22. package/lib/class/metaInfo.d.ts +26 -0
  23. package/lib/class/metadati_colonna.d.ts +234 -0
  24. package/lib/class/metadati_condition_group.d.ts +30 -0
  25. package/lib/class/metadati_custom_actions_tabelle.d.ts +19 -0
  26. package/lib/class/metadati_tabella.d.ts +214 -0
  27. package/lib/class/metadati_ui_stili_colonna.d.ts +8 -0
  28. package/lib/class/metadati_ui_stili_tabella.d.ts +7 -0
  29. package/lib/class/metadati_utenti_autorizzazioni_colonna.d.ts +10 -0
  30. package/lib/class/rawPagedResult.d.ts +7 -0
  31. package/lib/class/resultInfo.d.ts +14 -0
  32. package/lib/class/schedulerOptions.d.ts +14 -0
  33. package/lib/class/sortInfo.d.ts +5 -0
  34. package/lib/class/trackedChanges.d.ts +13 -0
  35. package/lib/class/translation.d.ts +7 -0
  36. package/lib/class/treeOptions.d.ts +15 -0
  37. package/lib/class/updateInfo.d.ts +9 -0
  38. package/lib/class/userInfo.d.ts +19 -0
  39. package/lib/class/validationRule.d.ts +10 -0
  40. package/lib/class/widgetDefinition.d.ts +28 -0
  41. package/lib/component/archetype-configurator/archetype-configurator.component.d.ts +28 -0
  42. package/lib/component/bounded-repeater/bounded-repeater.component.d.ts +32 -0
  43. package/lib/component/carousel-list/carousel-list.component.d.ts +66 -0
  44. package/lib/component/chart-list/chart-list.component.d.ts +135 -0
  45. package/lib/component/code-editor/code-editor.component.d.ts +86 -0
  46. package/lib/component/code-editor/editor-options.d.ts +12 -0
  47. package/lib/component/code-editor/html-parser.d.ts +27 -0
  48. package/lib/component/code-editor/sql-model.d.ts +87 -0
  49. package/lib/component/code-editor/sql-parser.d.ts +157 -0
  50. package/lib/component/code-editor/ts-parser.d.ts +93 -0
  51. package/lib/component/code-editor/wuic-component-bindings.d.ts +7 -0
  52. package/lib/component/code-editor/wuic-component-selectors.d.ts +1 -0
  53. package/lib/component/css-sheet-editor/css-sheet-editor.component.d.ts +71 -0
  54. package/lib/component/dashboard/dashboard.component.d.ts +12 -0
  55. package/lib/component/data-action-button/data-action-button.component.d.ts +45 -0
  56. package/lib/component/data-repeater/data-repeater.component.d.ts +32 -0
  57. package/lib/component/data-source/data-source.component.d.ts +147 -0
  58. package/lib/component/designer/designer.component.d.ts +269 -0
  59. package/lib/component/dynamic-dashboard-template/dynamic-dashboard-template.component.d.ts +39 -0
  60. package/lib/component/dynamic-form-template/dynamic-form-template.component.d.ts +11 -0
  61. package/lib/component/dynamic-generic-template/dynamic-generic-template.component.d.ts +20 -0
  62. package/lib/component/dynamic-repeater-template/dynamic-repeater-template.component.d.ts +15 -0
  63. package/lib/component/dynamic-template/dynamic-template.component.d.ts +31 -0
  64. package/lib/component/edit-form/edit-form.component.d.ts +62 -0
  65. package/lib/component/field/boolean-editor/boolean-editor.component.d.ts +23 -0
  66. package/lib/component/field/button-editor/button-editor.component.d.ts +25 -0
  67. package/lib/component/field/code-area-editor/code-area-editor.component.d.ts +20 -0
  68. package/lib/component/field/color-editor/color-editor.component.d.ts +23 -0
  69. package/lib/component/field/date-editor/date-editor.component.d.ts +25 -0
  70. package/lib/component/field/dictionary-editor/dictionary-editor.component.d.ts +35 -0
  71. package/lib/component/field/field-editor/field-editor.component.d.ts +65 -0
  72. package/lib/component/field/field-filter/field-filter.component.d.ts +43 -0
  73. package/lib/component/field/html-editor/html-editor.component.d.ts +24 -0
  74. package/lib/component/field/lookup-editor/lookup-editor.component.d.ts +35 -0
  75. package/lib/component/field/number-editor/number-editor.component.d.ts +26 -0
  76. package/lib/component/field/point-filter/point-filter.component.d.ts +34 -0
  77. package/lib/component/field/property-array-editor/property-array-editor.component.d.ts +27 -0
  78. package/lib/component/field/property-object-editor/property-object-editor.component.d.ts +26 -0
  79. package/lib/component/field/text-area-editor/text-area-editor.component.d.ts +24 -0
  80. package/lib/component/field/text-editor/text-editor.component.d.ts +25 -0
  81. package/lib/component/field/tree-view-selector/tree-view-selector.component.d.ts +22 -0
  82. package/lib/component/field/upload-editor/upload-editor.component.d.ts +38 -0
  83. package/lib/component/filter-bar/filter-bar.component.d.ts +67 -0
  84. package/lib/component/image-wrapper/image-wrapper.component.d.ts +15 -0
  85. package/lib/component/list-grid/list-grid.component.d.ts +238 -0
  86. package/lib/component/map-list/map-list.component.d.ts +137 -0
  87. package/lib/component/meta-menu/meta-menu.component.d.ts +97 -0
  88. package/lib/component/metadata-editor/metadata-editor.component.d.ts +125 -0
  89. package/lib/component/pager/pager.component.d.ts +41 -0
  90. package/lib/component/parametric-dialog/parametric-dialog.component.d.ts +44 -0
  91. package/lib/component/report-designer/report-designer.component.d.ts +19 -0
  92. package/lib/component/report-viewer/report-viewer.component.d.ts +20 -0
  93. package/lib/component/scheduler-list/scheduler-list.component.d.ts +54 -0
  94. package/lib/component/split/gutter/gutter-num-token.d.ts +7 -0
  95. package/lib/component/split/gutter/split-gutter-dynamic-injector.directive.d.ts +19 -0
  96. package/lib/component/split/gutter/split-gutter.directive.d.ts +54 -0
  97. package/lib/component/split/helpers/angular-split-config.token.d.ts +20 -0
  98. package/lib/component/split/helpers/models.d.ts +11 -0
  99. package/lib/component/split/helpers/split-custom-events-behavior.directive.d.ts +22 -0
  100. package/lib/component/split/helpers/utils.d.ts +30 -0
  101. package/lib/component/split/helpers/validations.d.ts +3 -0
  102. package/lib/component/split/split.component.d.ts +65 -0
  103. package/lib/component/split-area/split-area.component.d.ts +36 -0
  104. package/lib/component/spreadsheet-list/spreadsheet-list.component.d.ts +132 -0
  105. package/lib/component/tab-panel-wrapper/tab-panel-wrapper.component.d.ts +6 -0
  106. package/lib/component/tab-view-wrapper/tab-view-wrapper.component.d.ts +8 -0
  107. package/lib/component/tree-list/tree-list.component.d.ts +43 -0
  108. package/lib/component/workflow-designer/workflow-designer-node.component.d.ts +50 -0
  109. package/lib/component/workflow-designer/workflow-designer.component.d.ts +262 -0
  110. package/lib/component/workflow-runner/workflow-runner.component.d.ts +91 -0
  111. package/lib/directive/angular-resizable.directive.d.ts +153 -0
  112. package/lib/directive/classes/ngx-draggable-point.d.ts +5 -0
  113. package/lib/directive/classes/ngx-draggable-rect.d.ts +27 -0
  114. package/lib/directive/data-bound.directive.d.ts +16 -0
  115. package/lib/directive/events/ngx-draggable-dom-bounds-check-event.d.ts +32 -0
  116. package/lib/directive/events/ngx-draggable-dom-move-event.d.ts +28 -0
  117. package/lib/directive/helpers/helper-block.d.ts +12 -0
  118. package/lib/directive/helpers/ngx-draggable-dom-math.d.ts +65 -0
  119. package/lib/directive/helpers/ngx-draggable-dom-utilities.d.ts +26 -0
  120. package/lib/directive/helpers/resize-handle.d.ts +14 -0
  121. package/lib/directive/models/position.d.ts +21 -0
  122. package/lib/directive/models/resize-event.d.ts +16 -0
  123. package/lib/directive/models/resize-handle-type.d.ts +11 -0
  124. package/lib/directive/models/size.d.ts +12 -0
  125. package/lib/directive/ngx-draggable-dom.directive.d.ts +175 -0
  126. package/lib/handler/GlobalHandler.d.ts +11 -0
  127. package/lib/handler/mime.d.ts +11 -0
  128. package/lib/pipe/async-callback.pipe.d.ts +11 -0
  129. package/lib/pipe/available-operators.pipe.d.ts +8 -0
  130. package/lib/pipe/callback.pipe.d.ts +7 -0
  131. package/lib/pipe/callback2.pipe.d.ts +7 -0
  132. package/lib/pipe/format-grid-view-value.pipe.d.ts +8 -0
  133. package/lib/pipe/get-src-upload-preview.pipe.d.ts +9 -0
  134. package/lib/pipe/is-selected-row.pipe.d.ts +8 -0
  135. package/lib/pipe/prop-converter.pipe.d.ts +7 -0
  136. package/lib/pipe/show-filter-bar.pipe.d.ts +9 -0
  137. package/lib/pipe/to-date.pipe.d.ts +7 -0
  138. package/lib/pipe/visible-field-list.pipe.d.ts +7 -0
  139. package/lib/service/auth-session.service.d.ts +52 -0
  140. package/lib/service/client-side-crud.service.d.ts +35 -0
  141. package/lib/service/data-provider-meta.service.d.ts +32 -0
  142. package/lib/service/data-provider-odata.service.d.ts +18 -0
  143. package/lib/service/data-provider-webservice.service.d.ts +15 -0
  144. package/lib/service/data-provider.service.d.ts +64 -0
  145. package/lib/service/metadata-editor.service.d.ts +16 -0
  146. package/lib/service/metadata-provider.service.d.ts +160 -0
  147. package/lib/service/translation-manager.service.d.ts +38 -0
  148. package/lib/service/user-info.service.d.ts +24 -0
  149. package/lib/service/workflow-runtime-menu.service.d.ts +15 -0
  150. package/lib/service/workflow-runtime-metadata.service.d.ts +28 -0
  151. package/lib/service/wtoolbox.service.d.ts +145 -0
  152. package/package.json +63 -0
  153. package/public-api.d.ts +48 -0
  154. package/styles/styles.scss +87 -0
@@ -0,0 +1,147 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { BehaviorSubject } from 'rxjs';
3
+ import { MetadataProviderService } from '../../service/metadata-provider.service';
4
+ import { DataProviderService } from '../../service/data-provider.service';
5
+ import { MetadatiColonna } from '../../class/metadati_colonna';
6
+ import { ResultInfo } from '../../class/resultInfo';
7
+ import { MetaInfo } from '../../class/metaInfo';
8
+ import { FilterInfo } from '../../class/filterInfo';
9
+ import { ActivatedRoute, Router } from '@angular/router';
10
+ import { TranslationManagerService } from '../../service/translation-manager.service';
11
+ import { MetadatiConditionGroup, MetadatiConditionGroupAction } from '../../class/metadati_condition_group';
12
+ import { ValueChangedPayload } from '../../class/IFieldEditor';
13
+ import { SortInfo } from '../../class/sortInfo';
14
+ import { GroupInfo } from '../../class/groupInfo';
15
+ import { AggregationInfo } from '../../class/aggregationInfo';
16
+ import { TrackedChange } from '../../class/trackedChanges';
17
+ import { UpdateInfo } from '../../class/updateInfo';
18
+ import { WorkflowRuntimeMetadataService } from '../../service/workflow-runtime-metadata.service';
19
+ import * as i0 from "@angular/core";
20
+ export declare class DataSourceComponent implements OnInit, OnDestroy {
21
+ private metaSrv;
22
+ private dataSrv;
23
+ private trnsl;
24
+ private workflowRuntimeMetadata;
25
+ private router;
26
+ private aRoute;
27
+ route: BehaviorSubject<string>;
28
+ routeFromRouting: boolean;
29
+ hardcodedRoute: string;
30
+ autoload?: boolean;
31
+ loading: BehaviorSubject<boolean>;
32
+ changeTracking?: boolean;
33
+ parentRecord: any;
34
+ parentMetaInfo: MetaInfo;
35
+ parentDatasource: DataSourceComponent;
36
+ componentRef: BehaviorSubject<{
37
+ component: DataSourceComponent;
38
+ id: number;
39
+ name: string;
40
+ uniqueName: string;
41
+ }>;
42
+ sortInfo: SortInfo[];
43
+ groupInfo: GroupInfo[];
44
+ aggregationInfo: AggregationInfo[];
45
+ filterInfo?: FilterInfo;
46
+ pageSize: number;
47
+ currentPage: number;
48
+ filterParam: string;
49
+ isCurrentInsert: boolean;
50
+ metaInfo: MetaInfo;
51
+ resultInfo: ResultInfo;
52
+ filterDescriptor: {
53
+ [key: string]: BehaviorSubject<any>;
54
+ };
55
+ changes: TrackedChange[];
56
+ interval: any;
57
+ private lastFilterInfoQueryRaw?;
58
+ private lastPageInfoQueryRaw?;
59
+ private lastSortInfoQueryRaw?;
60
+ fetchInfo: BehaviorSubject<{
61
+ resultInfo: ResultInfo;
62
+ metaInfo: MetaInfo;
63
+ filterDescriptor: {
64
+ [key: string]: BehaviorSubject<any>;
65
+ };
66
+ }>;
67
+ pristine: any;
68
+ clientSideCrudActive: boolean;
69
+ lastClientSideCrudSyncResult?: {
70
+ inserted: number;
71
+ updated: number;
72
+ deleted: number;
73
+ };
74
+ constructor(metaSrv: MetadataProviderService, dataSrv: DataProviderService, trnsl: TranslationManagerService, workflowRuntimeMetadata: WorkflowRuntimeMetadataService, router: Router, aRoute: ActivatedRoute);
75
+ private init;
76
+ private applyFilterInfoFromQueryString;
77
+ private applyPageInfoFromQueryString;
78
+ private applySortInfoFromQueryString;
79
+ private applyFilterInfoToFilterDescriptor;
80
+ ngOnInit(): void;
81
+ ngOnDestroy(): void;
82
+ static getObservable(dato: any, metaInfo: MetaInfo): {
83
+ [key: string]: BehaviorSubject<any>;
84
+ };
85
+ getObservable(dato?: any): {
86
+ [key: string]: BehaviorSubject<any>;
87
+ };
88
+ static getModelFromObservable(dato: any, metaInfo: MetaInfo): {};
89
+ getModelFromObservable(dato: any): {};
90
+ private getMetadata;
91
+ getData(): Promise<void>;
92
+ private applyWorkflowRuntimeRouteMetadata;
93
+ private rehydrateRuntimeTableActionCallbacks;
94
+ private pickFirstDefined;
95
+ private cloneJson;
96
+ canUseClientSideCrud(): boolean;
97
+ enableClientSideCrud(): Promise<void>;
98
+ disableClientSideCrud(): Promise<{
99
+ inserted: number;
100
+ updated: number;
101
+ deleted: number;
102
+ }>;
103
+ disableClientSideCrudWithoutSync(): Promise<void>;
104
+ getSchemaAndData(schemaOnly?: boolean): Promise<void>;
105
+ fetchData(): Promise<{
106
+ resultInfo: ResultInfo;
107
+ metaInfo: MetaInfo;
108
+ filterDescriptor: {
109
+ [key: string]: BehaviorSubject<any>;
110
+ };
111
+ groupInfo: GroupInfo[];
112
+ sortInfo: SortInfo[];
113
+ aggregationInfo: AggregationInfo[];
114
+ }>;
115
+ parseTabs(): void;
116
+ parseNestedRoutes(): void;
117
+ parseValidations(): void;
118
+ validateData(record: {
119
+ [key: string]: BehaviorSubject<any>;
120
+ }): Promise<void>;
121
+ groupBy(xs: any[], key: string): any;
122
+ private isObservableField;
123
+ private getConditionOperandValue;
124
+ private setConditionOperandValue;
125
+ private normalizeConditionOperator;
126
+ parseConditions(): void;
127
+ evaluateConditions(groupedConditions: {
128
+ [CG_Id: number]: {
129
+ ConditionItems: MetadatiConditionGroup[];
130
+ ConditionActions: MetadatiConditionGroupAction[];
131
+ };
132
+ }, payload: ValueChangedPayload, all: boolean): void;
133
+ getCodeRepresentation(field: MetadatiColonna, value: any): string;
134
+ private executeConditionalActions;
135
+ syncData(entita: any, original: any, deleting?: boolean, cloning?: boolean): Promise<UpdateInfo>;
136
+ private executeAfterSyncCallback;
137
+ private canProceedBeforeSync;
138
+ private notifyMenuMetadataChanged;
139
+ exportXls(): Promise<any>;
140
+ setCurrent(data: any): void;
141
+ addNewRecord(record?: any): {
142
+ [key: string]: BehaviorSubject<any>;
143
+ };
144
+ clearColumnFilter(col: MetadatiColonna, fetch?: boolean): void;
145
+ static ɵfac: i0.ɵɵFactoryDeclaration<DataSourceComponent, never>;
146
+ static ɵcmp: i0.ɵɵComponentDeclaration<DataSourceComponent, "wuic-data-source", never, { "route": { "alias": "route"; "required": false; }; "routeFromRouting": { "alias": "routeFromRouting"; "required": false; }; "hardcodedRoute": { "alias": "hardcodedRoute"; "required": false; }; "autoload": { "alias": "autoload"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "changeTracking": { "alias": "changeTracking"; "required": false; }; "parentRecord": { "alias": "parentRecord"; "required": false; }; "parentMetaInfo": { "alias": "parentMetaInfo"; "required": false; }; "parentDatasource": { "alias": "parentDatasource"; "required": false; }; "componentRef": { "alias": "componentRef"; "required": false; }; }, {}, never, never, true, never>;
147
+ }
@@ -0,0 +1,269 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { DesignerTool, DesignerToolProp } from '../../class/designerTool';
3
+ import { MetadataProviderService } from '../../service/metadata-provider.service';
4
+ import { AutoCompleteCompleteEvent } from 'primeng/autocomplete';
5
+ import { DataProviderService } from '../../service/data-provider.service';
6
+ import { UserInfoService } from '../../service/user-info.service';
7
+ import { MetadatiColonna } from '../../class/metadati_colonna';
8
+ import { BehaviorSubject } from 'rxjs';
9
+ import { MetaInfo } from '../../class/metaInfo';
10
+ import { ActivatedRoute } from '@angular/router';
11
+ import { ContextMenu } from 'primeng/contextmenu';
12
+ import { MenuItem } from 'primeng/api';
13
+ import { TranslationManagerService } from '../../service/translation-manager.service';
14
+ import * as i0 from "@angular/core";
15
+ export declare class DesignerComponent implements OnInit {
16
+ private route;
17
+ private dataSrv;
18
+ private metaSrv;
19
+ private userInfo;
20
+ private cd;
21
+ private trslSrv;
22
+ draggedPayload: DesignerTool;
23
+ selected: any[];
24
+ availableTools: DesignerTool[];
25
+ droppableDisabled: boolean;
26
+ tool: DesignerTool;
27
+ dashboardElements: any[];
28
+ flattenedDashboardElements: any[];
29
+ ctxItems: BehaviorSubject<MenuItem[]>;
30
+ defaultCtxItems: MenuItem[];
31
+ ctxElement: any;
32
+ footerCtxItems: MenuItem[];
33
+ footerCtxElement: DesignerTool | null;
34
+ toolProps: any;
35
+ htmlStyleString: string;
36
+ htmlInputProperties: {
37
+ [key: string]: DesignerToolProp;
38
+ };
39
+ tableInputProperties: {
40
+ [key: string]: DesignerToolProp;
41
+ };
42
+ htmlInputs: any;
43
+ tableInputs: any;
44
+ maxId: number;
45
+ dashboardComponents: any[];
46
+ innerHtmlProperties: {
47
+ [key: string]: DesignerToolProp;
48
+ };
49
+ dsProperties: {
50
+ [key: string]: DesignerToolProp;
51
+ };
52
+ repeaterProperties: {
53
+ [key: string]: DesignerToolProp;
54
+ };
55
+ bindableHtmlProps: {
56
+ [key: string]: DesignerToolProp;
57
+ };
58
+ bindableHtmlInputs: {
59
+ [key: string]: any;
60
+ };
61
+ headerProps: {
62
+ [key: string]: DesignerToolProp;
63
+ };
64
+ headerInputs: {
65
+ [key: string]: any;
66
+ };
67
+ anchorProps: {
68
+ [key: string]: DesignerToolProp;
69
+ };
70
+ anchorInputs: {
71
+ [key: string]: any;
72
+ };
73
+ imgProps: {
74
+ [key: string]: DesignerToolProp;
75
+ };
76
+ imgInputs: {
77
+ [key: string]: any;
78
+ };
79
+ htmlItemTemplateProps: {
80
+ [key: string]: DesignerToolProp;
81
+ };
82
+ htmlButtonProps: {
83
+ [key: string]: DesignerToolProp;
84
+ };
85
+ tabViewProps: {
86
+ [key: string]: DesignerToolProp;
87
+ };
88
+ tabViewInputs: {
89
+ [key: string]: any;
90
+ };
91
+ splitterProps: {
92
+ [key: string]: DesignerToolProp;
93
+ };
94
+ splitterInputs: {
95
+ [key: string]: any;
96
+ };
97
+ splitterAreaProps: {
98
+ [key: string]: DesignerToolProp;
99
+ };
100
+ splitterAreaInputs: {
101
+ [key: string]: any;
102
+ };
103
+ accordionProps: {
104
+ [key: string]: DesignerToolProp;
105
+ };
106
+ accordionInputs: {
107
+ [key: string]: any;
108
+ };
109
+ accordionAreaProps: {
110
+ [key: string]: DesignerToolProp;
111
+ };
112
+ accordionAreaInputs: {
113
+ [key: string]: any;
114
+ };
115
+ availableProjectCssFiles: string[];
116
+ availableProjectCssClassByFile: {
117
+ [file: string]: string[];
118
+ };
119
+ dashboardCssSheets: any[];
120
+ showCssSheetEditor: boolean;
121
+ selectedCssEditorSheetPath: string;
122
+ dashMenus: MenuItem[];
123
+ noEdit: boolean;
124
+ currentDashboardRoute: string;
125
+ currentDashboardDescription: string;
126
+ showArchetypeConfigurator: boolean;
127
+ archetypeConfigTool: DesignerTool | null;
128
+ private readonly popupManagedArchetypes;
129
+ private readonly propertySectionStateByTool;
130
+ private readonly maxHistoryLength;
131
+ private undoHistory;
132
+ private redoHistory;
133
+ private applyingHistory;
134
+ private lastCommittedSnapshot;
135
+ private pendingColorHistoryBase;
136
+ private pendingColorHistoryDirty;
137
+ constructor(route: ActivatedRoute, dataSrv: DataProviderService, metaSrv: MetadataProviderService, userInfo: UserInfoService, cd: ChangeDetectorRef, trslSrv: TranslationManagerService);
138
+ ngOnInit(): Promise<void>;
139
+ private refreshAvailableProjectCssClasses;
140
+ openCssSheetEditor(): void;
141
+ onCssSheetEditorVisibleChange(visible: boolean): void;
142
+ getCssEditorStyleProps(): {
143
+ key: string;
144
+ type: string;
145
+ values?: string[];
146
+ }[];
147
+ onCssSheetEditorApply(event: {
148
+ sheets: any[];
149
+ selectedSheetPath: string;
150
+ }): Promise<void>;
151
+ private ensureDashboardSavedBeforeCssLink;
152
+ private buildSerializedDashboardElements;
153
+ private persistCurrentDashboardWithoutPrompt;
154
+ private normalizeSheetPath;
155
+ private normalizeCssSheet;
156
+ private ensureDashboardCssLinks;
157
+ private collectDashboardSheetPaths;
158
+ private extractDashboardSheetPaths;
159
+ private loadDashboardCssSheets;
160
+ getCssClassOptionsForTool(tool: DesignerTool | null | undefined): string[];
161
+ onCssFileChanged(nextFile: string, tool: DesignerTool): void;
162
+ onCssClassChanged(nextClasses: string[] | string, tool: DesignerTool): void;
163
+ private normalizeCssClassSelection;
164
+ clearDashboard(): void;
165
+ undo(): void;
166
+ redo(): void;
167
+ onWindowKeydown(event: KeyboardEvent): void;
168
+ onWindowMouseup(): void;
169
+ onWindowTouchend(): void;
170
+ onWindowKeyup(): void;
171
+ onWindowChange(): void;
172
+ get currentDashboardTitle(): string;
173
+ get droppedDashboardItems(): DesignerTool[];
174
+ get canUndo(): boolean;
175
+ get canRedo(): boolean;
176
+ getDroppedDashboardItemLabel(item: DesignerTool): string;
177
+ selectDashboardItem(item: DesignerTool): void;
178
+ showFooterContextMenu(event: MouseEvent, item: DesignerTool, menu: ContextMenu): void;
179
+ private renameFooterContextItem;
180
+ reloadDashboards(sourceDashboards?: any[]): Promise<void>;
181
+ metaEditorSave: (data: any, original: any, editorKey?: string) => any;
182
+ private resolveDesignerToolDatasource;
183
+ showCtx($event: any, o: any): void;
184
+ getElementByName(id: string): any;
185
+ getelementNameByPosition(x: any, y: any): string;
186
+ removeElementByName(name: string): void;
187
+ private propertyTreeBuilder;
188
+ eachRecursive(inputs: any, obj: any, tree: any[], record: any, props: MetadatiColonna[], parentElement?: any, preserve?: boolean, propertyStack?: any[], skipProps?: string[]): void;
189
+ setValue($event: any, tool: any, toolProp: any): void;
190
+ canOpenArchetypeConfigurator(tool: DesignerTool | null | undefined): boolean;
191
+ shouldShowPropertyTree(tool: DesignerTool | null | undefined): boolean;
192
+ openArchetypeConfigurator(tool: DesignerTool): void;
193
+ closeArchetypeConfigurator(): void;
194
+ onArchetypeConfigVisibleChange(visible: boolean): void;
195
+ getActiveArchetypeConfig(): string;
196
+ getArchetypeConfigValueForTool(tool: DesignerTool | null): any;
197
+ onArchetypeConfigApply(nextConfig: any): void;
198
+ getArchetypeConfigMetaInfoForTool(tool: DesignerTool | null): MetaInfo | null;
199
+ private normalizeArchetypeAction;
200
+ private getRepeaterAction;
201
+ private isPopupManagedArchetype;
202
+ private getDesignerDatasourceMetaInfo;
203
+ getDatasourceColumnOptions(tool: DesignerTool | null | undefined): string[];
204
+ private ensureSelectFieldDefaults;
205
+ private openSelectDisplayFormulaEditor;
206
+ private openUlDisplayFormulaEditor;
207
+ private openLabelDisplayFormulaEditor;
208
+ hasParentDatasourceBinding(tool: DesignerTool | null | undefined): boolean;
209
+ openMasterDetailFilterFormulaEditor(inputs: any, tool?: DesignerTool): Promise<void>;
210
+ private getDatasourceColumnsFromDatasourceComponent;
211
+ private getMasterDetailFilterFormulaCodeContext;
212
+ private getSelectDisplayFormulaCodeContext;
213
+ private getSelectDisplayFormulaColumns;
214
+ private unwrapBehaviorSubjects;
215
+ private toBehaviorSubjectsObject;
216
+ private ensureMergedExtraProps;
217
+ converter(obj: any, prop: string, newValue: any, tool: DesignerTool): void;
218
+ converterSplitter(obj: any, prop: string, newValue: any, tool: DesignerTool): void;
219
+ converterAccordion(obj: any, prop: string, newValue: any, tool: DesignerTool): void;
220
+ dropTable(currentTool: DesignerTool): void;
221
+ dropSplitter(currentTool: DesignerTool): void;
222
+ dropAccordion(currentTool: DesignerTool): void;
223
+ search(event: AutoCompleteCompleteEvent, tool: DesignerTool, toolProp: any): Promise<void>;
224
+ dragStart(payload: any): void;
225
+ onDrag($event: DragEvent): void;
226
+ drop(event: any): void;
227
+ private getNewID;
228
+ filterTool(tool: any): boolean;
229
+ getToolPropertySections(tool: DesignerTool | null | undefined): {
230
+ key: string;
231
+ label: string;
232
+ open: boolean;
233
+ props: any[];
234
+ }[];
235
+ onPropertySectionToggle(tool: DesignerTool | null | undefined, sectionKey: string, $event: Event): void;
236
+ private getPropertySectionToolKey;
237
+ private shouldHideToolProp;
238
+ getDroppedComponentListModel(tool: DesignerTool | null | undefined, toolProp: any): any;
239
+ private getPropertySectionKey;
240
+ get availableToolGroups(): {
241
+ group: string;
242
+ tools: DesignerTool[];
243
+ }[];
244
+ flattenComponentTree(components: DesignerTool[]): DesignerTool[];
245
+ dragEnd(): void;
246
+ saveDashboard(): Promise<void>;
247
+ loadDashboard(dashboard: any): Promise<void>;
248
+ private captureHistorySnapshot;
249
+ private commitHistoryIfChanged;
250
+ private resetHistory;
251
+ private applyHistorySnapshot;
252
+ private finalizePendingColorHistory;
253
+ private applySerializedDashboardElements;
254
+ private isTypingTarget;
255
+ private handleRepeaterMasterRowSelection;
256
+ private unwrapBehaviorSubjectValue;
257
+ private ensureDataRepeaterRowCustomSelect;
258
+ private ensureDatasourceMasterDetailFormulaEditor;
259
+ private ensureSplitterResize;
260
+ private ensureAccordionToggle;
261
+ private getDatasourceRouteName;
262
+ private getDatasourcePrimaryKey;
263
+ private applyMasterDetailFilterFormula;
264
+ private injectMasterDetailLookupFilter;
265
+ openCurrentDashboardInNewTab(): void;
266
+ hidrateCustomPropsRecursive(customProps: any): void;
267
+ static ɵfac: i0.ɵɵFactoryDeclaration<DesignerComponent, never>;
268
+ static ɵcmp: i0.ɵɵComponentDeclaration<DesignerComponent, "wuic-designer", never, {}, {}, never, never, true, never>;
269
+ }
@@ -0,0 +1,39 @@
1
+ import { BehaviorSubject } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DynamicDashboardTemplateComponent {
4
+ inputs: any;
5
+ inputProps: any;
6
+ toolProps: any[];
7
+ suggestions: any[];
8
+ toolId: number;
9
+ componentId: number;
10
+ uniqueName: string;
11
+ name: string;
12
+ tag: string;
13
+ icon: string;
14
+ group: string;
15
+ nestedComponents: any[];
16
+ allowedChildren: string[];
17
+ hide: boolean;
18
+ componentRef: {
19
+ component: BehaviorSubject<any>;
20
+ id: number;
21
+ name: string;
22
+ uniqueName: string;
23
+ };
24
+ onDrop: any;
25
+ ctxItems: any;
26
+ private selectDisplayFormulaFns;
27
+ stringify(obj: any): string;
28
+ onResizing(event: any, element: any, parentElement: any): void;
29
+ onMoving($event: any, element: any): void;
30
+ onDragEnter($event: any, th: any): void;
31
+ getSelectOptionLabel(inputs: any, opt: any): string;
32
+ getUlItemDisplayValue(inputs: any, rowData: any): string;
33
+ getLabelDisplayValue(inputs: any): string;
34
+ private getSelectOptionFallbackLabel;
35
+ private getSelectDisplayFormulaFn;
36
+ static getComponentFromTemplate(template: string): typeof DynamicDashboardTemplateComponent;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicDashboardTemplateComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicDashboardTemplateComponent, "wuic-dynamic-dashboard-template", never, { "inputs": { "alias": "inputs"; "required": false; }; "inputProps": { "alias": "inputProps"; "required": false; }; "toolProps": { "alias": "toolProps"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "toolId": { "alias": "toolId"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "uniqueName": { "alias": "uniqueName"; "required": false; }; "name": { "alias": "name"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "group": { "alias": "group"; "required": false; }; "nestedComponents": { "alias": "nestedComponents"; "required": false; }; "allowedChildren": { "alias": "allowedChildren"; "required": false; }; "hide": { "alias": "hide"; "required": false; }; "componentRef": { "alias": "componentRef"; "required": false; }; "onDrop": { "alias": "onDrop"; "required": false; }; "ctxItems": { "alias": "ctxItems"; "required": false; }; }, {}, never, never, false, never>;
39
+ }
@@ -0,0 +1,11 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class DynamicFormTemplateComponent {
3
+ metas: any;
4
+ record: any;
5
+ metaInfo: any;
6
+ readOnly: boolean;
7
+ getMetaColumn(fieldName: string): any;
8
+ static getComponentFromTemplate(template: string): typeof DynamicFormTemplateComponent;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormTemplateComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormTemplateComponent, "ng-component", never, { "metas": { "alias": "metas"; "required": false; }; "record": { "alias": "record"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, {}, never, never, false, never>;
11
+ }
@@ -0,0 +1,20 @@
1
+ import '@angular/compiler';
2
+ import { MetadatiColonna } from '../../class/metadati_colonna';
3
+ import { MetaInfo } from '../../class/metaInfo';
4
+ import { DataSourceComponent } from '../data-source/data-source.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class DynamicGenericTemplateComponent {
7
+ rowData: any;
8
+ columns: MetadatiColonna[];
9
+ expanded: boolean;
10
+ metaInfo: MetaInfo;
11
+ datasource: DataSourceComponent;
12
+ getDescription: Function;
13
+ MetadatiColonna: typeof MetadatiColonna;
14
+ findColumn(columnName: string): MetadatiColonna | null;
15
+ getFieldValue(record: any, fieldName: string): any;
16
+ get classes(): string | null;
17
+ static getComponentFromTemplate(template: string): typeof DynamicGenericTemplateComponent;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicGenericTemplateComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicGenericTemplateComponent, "wuic-dynamic-generic-template", never, { "rowData": { "alias": "rowData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "getDescription": { "alias": "getDescription"; "required": false; }; "MetadatiColonna": { "alias": "MetadatiColonna"; "required": false; }; }, {}, never, never, false, never>;
20
+ }
@@ -0,0 +1,15 @@
1
+ import { Table } from 'primeng/table';
2
+ import { DataSourceComponent } from '../data-source/data-source.component';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export declare class DynamicRepeaterTemplateComponent {
6
+ datasource: BehaviorSubject<DataSourceComponent>;
7
+ hardcodedDatasource: DataSourceComponent;
8
+ action: BehaviorSubject<string>;
9
+ record: any;
10
+ field: any;
11
+ rowCustomSelect: (rowData: any, $event: any, dt: Table) => void;
12
+ static getComponentFromTemplate(template: string): typeof DynamicRepeaterTemplateComponent;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicRepeaterTemplateComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicRepeaterTemplateComponent, "wuic-dynamic-repeater-template", never, { "datasource": { "alias": "datasource"; "required": false; }; "hardcodedDatasource": { "alias": "hardcodedDatasource"; "required": false; }; "action": { "alias": "action"; "required": false; }; "record": { "alias": "record"; "required": false; }; "field": { "alias": "field"; "required": false; }; "rowCustomSelect": { "alias": "rowCustomSelect"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
@@ -0,0 +1,31 @@
1
+ import '@angular/compiler';
2
+ import { MetadatiColonna } from '../../class/metadati_colonna';
3
+ import { MetaInfo } from '../../class/metaInfo';
4
+ import { DataSourceComponent } from '../data-source/data-source.component';
5
+ import { Table } from 'primeng/table';
6
+ import * as i0 from "@angular/core";
7
+ export declare class DynamicRowTemplateComponent {
8
+ private static readonly tableStyleConditionCache;
9
+ private static readonly columnStyleConditionCache;
10
+ rowData: any;
11
+ columns: MetadatiColonna[];
12
+ expanded: boolean;
13
+ metaInfo: MetaInfo;
14
+ datasource: DataSourceComponent;
15
+ dt: Table;
16
+ toggleRow: (rowData: any, $event: any, dt: Table) => void;
17
+ rowSelect: (rowData: any, $event: any, dt: Table) => void;
18
+ rowCustomSelect: (rowData: any, $event: any, dt: Table) => void;
19
+ MetadatiColonna: typeof MetadatiColonna;
20
+ get classes(): string | null;
21
+ private getTableStyleClasses;
22
+ private buildTableStylePredicate;
23
+ getCellClasses(metaColumn: any, rowData: any): string | null;
24
+ getMetaColumn(fieldName: string): MetadatiColonna | null;
25
+ static getComponentFromTemplate(template: string): typeof DynamicRowTemplateComponent;
26
+ onRowSelect($event: any, rowData: any): void;
27
+ private isSelectedRow;
28
+ private areSameRow;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<DynamicRowTemplateComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<DynamicRowTemplateComponent, "wuic-dynamic-row-template", never, { "rowData": { "alias": "rowData"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "dt": { "alias": "dt"; "required": false; }; "toggleRow": { "alias": "toggleRow"; "required": false; }; "rowSelect": { "alias": "rowSelect"; "required": false; }; "rowCustomSelect": { "alias": "rowCustomSelect"; "required": false; }; "MetadatiColonna": { "alias": "MetadatiColonna"; "required": false; }; }, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,62 @@
1
+ import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { MetadatiColonna } from '../../class/metadati_colonna';
3
+ import { DataSourceComponent } from '../data-source/data-source.component';
4
+ import { MetaInfo } from '../../class/metaInfo';
5
+ import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/dynamicdialog';
6
+ import { ActivatedRoute, Router } from '@angular/router';
7
+ import { BehaviorSubject } from 'rxjs';
8
+ import * as i0 from "@angular/core";
9
+ export declare class EditFormComponent implements OnInit, OnChanges, OnDestroy {
10
+ ref: DynamicDialogRef | null;
11
+ config: DynamicDialogConfig | null;
12
+ private route;
13
+ private router;
14
+ datasource: BehaviorSubject<DataSourceComponent>;
15
+ hardcodedDatasource: DataSourceComponent;
16
+ record: {
17
+ [key: string]: BehaviorSubject<any>;
18
+ };
19
+ metas: MetadatiColonna[];
20
+ metaInfo: MetaInfo;
21
+ routeName: BehaviorSubject<string>;
22
+ pristine: any;
23
+ formTemplate: any;
24
+ cloning: boolean;
25
+ readOnly: boolean;
26
+ private datasourceSubscription?;
27
+ private fetchInfoSubscription?;
28
+ private boundDatasource?;
29
+ private recordValueSubscriptions;
30
+ private disableCallbacksRunning;
31
+ private disableCallbacksPending;
32
+ constructor(ref: DynamicDialogRef | null, config: DynamicDialogConfig | null, route: ActivatedRoute, router: Router);
33
+ ngOnInit(): void;
34
+ ngOnChanges(changes: SimpleChanges): void;
35
+ ngOnDestroy(): void;
36
+ private bindToDatasource;
37
+ private subscribeToDatasource;
38
+ private applyDatasourceState;
39
+ private clearRecordValueSubscriptions;
40
+ private setupRecordValueSubscriptions;
41
+ private recomputeActionDisabledState;
42
+ getComponent(): any;
43
+ getInputs(field: MetadatiColonna): {
44
+ record: {
45
+ [key: string]: BehaviorSubject<any>;
46
+ };
47
+ field: MetadatiColonna;
48
+ metaInfo: MetaInfo;
49
+ readOnly: boolean;
50
+ forceShowLabel: boolean;
51
+ };
52
+ parseData(data: any): {
53
+ [key: string]: BehaviorSubject<any>;
54
+ };
55
+ parseColumns(columns: MetadatiColonna[]): MetadatiColonna[];
56
+ fieldByTab(metas: MetadatiColonna[], tab: any): MetadatiColonna[];
57
+ submitData(): Promise<void>;
58
+ rollbackChanges(resultInfo: any): void;
59
+ goBack(): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditFormComponent, [{ optional: true; }, { optional: true; }, null, null]>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<EditFormComponent, "wuic-edit-form", never, { "datasource": { "alias": "datasource"; "required": false; }; "hardcodedDatasource": { "alias": "hardcodedDatasource"; "required": false; }; }, {}, never, never, true, never>;
62
+ }
@@ -0,0 +1,23 @@
1
+ import { AfterViewInit } from '@angular/core';
2
+ import { MetadatiColonna } from '../../../class/metadati_colonna';
3
+ import { MetaInfo } from '../../../class/metaInfo';
4
+ import { BehaviorSubject } from 'rxjs';
5
+ import { IFieldEditor } from '../../../class/IFieldEditor';
6
+ import * as i0 from "@angular/core";
7
+ export declare class BooleanEditorComponent implements IFieldEditor, AfterViewInit {
8
+ record: {
9
+ [key: string]: BehaviorSubject<any>;
10
+ };
11
+ field: MetadatiColonna;
12
+ metaInfo: MetaInfo;
13
+ isFilter?: boolean;
14
+ nestedIndex: number;
15
+ triggerProp: BehaviorSubject<any>;
16
+ readOnly: boolean;
17
+ valore: any;
18
+ constructor();
19
+ ngAfterViewInit(): void;
20
+ modelChangeFn($event: any): Promise<void>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<BooleanEditorComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<BooleanEditorComponent, "wuic-boolean-editor", never, { "record": { "alias": "record"; "required": false; }; "field": { "alias": "field"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; "isFilter": { "alias": "isFilter"; "required": false; }; "nestedIndex": { "alias": "nestedIndex"; "required": false; }; "triggerProp": { "alias": "triggerProp"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, {}, never, never, true, never>;
23
+ }
@@ -0,0 +1,25 @@
1
+ import { MetadatiColonna } from '../../../class/metadati_colonna';
2
+ import { ConfirmationService } from 'primeng/api';
3
+ import { TranslateService } from '@ngx-translate/core';
4
+ import { WtoolboxService } from '../../../service/wtoolbox.service';
5
+ import { MetaInfo } from '../../../class/metaInfo';
6
+ import { BehaviorSubject } from 'rxjs';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ButtonEditorComponent {
9
+ private confirmationService;
10
+ private trn;
11
+ private wtoolbox;
12
+ record?: any;
13
+ field: MetadatiColonna;
14
+ metaInfo: MetaInfo;
15
+ isFilter?: boolean;
16
+ nestedIndex: number;
17
+ triggerProp: BehaviorSubject<any>;
18
+ readOnly: boolean;
19
+ constructor(confirmationService: ConfirmationService, trn: TranslateService, wtoolbox: WtoolboxService);
20
+ ngAfterViewInit(): void;
21
+ isButtonVisible(): boolean;
22
+ buttonExecute(event: Event): Promise<void>;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorComponent, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonEditorComponent, "wuic-button-editor", never, { "record": { "alias": "record"; "required": false; }; "field": { "alias": "field"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; "isFilter": { "alias": "isFilter"; "required": false; }; "nestedIndex": { "alias": "nestedIndex"; "required": false; }; "triggerProp": { "alias": "triggerProp"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, {}, never, never, true, never>;
25
+ }