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,86 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { OnInit, AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
+
import { MonacoEditorComponent, MonacoEditorLoaderService } from '@materia-ui/ngx-monaco-editor';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { SqlProvider } from './sql-parser';
|
|
6
|
+
import { MetadatiColonna } from '../../class/metadati_colonna';
|
|
7
|
+
import { EditorOptions } from './editor-options';
|
|
8
|
+
import { MetaInfo } from '../../class/metaInfo';
|
|
9
|
+
import { WtoolboxService } from '../../service/wtoolbox.service';
|
|
10
|
+
import { MetadataProviderService } from '../../service/metadata-provider.service';
|
|
11
|
+
import { UserInfoService } from '../../service/user-info.service';
|
|
12
|
+
import { TSProvider } from './ts-parser';
|
|
13
|
+
import { DataProviderService } from '../../service/data-provider.service';
|
|
14
|
+
import { HtmlProvider } from './html-parser';
|
|
15
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
16
|
+
import * as i0 from "@angular/core";
|
|
17
|
+
export declare class CodeEditorComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
18
|
+
private monacoLoaderService;
|
|
19
|
+
private http;
|
|
20
|
+
private metaSrv;
|
|
21
|
+
private userInfo;
|
|
22
|
+
private dataSrv;
|
|
23
|
+
private wtoolbox;
|
|
24
|
+
private sanitizer;
|
|
25
|
+
style: string;
|
|
26
|
+
contextMenuAnchor: any;
|
|
27
|
+
field: MetadatiColonna;
|
|
28
|
+
record?: {
|
|
29
|
+
[key: string]: BehaviorSubject<any>;
|
|
30
|
+
};
|
|
31
|
+
metaInfo: MetaInfo;
|
|
32
|
+
editorRef: MonacoEditorComponent | undefined;
|
|
33
|
+
editor: monaco.editor.IStandaloneCodeEditor | undefined;
|
|
34
|
+
ctxs: any;
|
|
35
|
+
editorOptions: EditorOptions;
|
|
36
|
+
editorModelValue: string;
|
|
37
|
+
sampleCode: string;
|
|
38
|
+
fullscreen: boolean;
|
|
39
|
+
render: boolean;
|
|
40
|
+
treeNodes: any[];
|
|
41
|
+
primeTreeNodes: any[];
|
|
42
|
+
sqlObjView: boolean;
|
|
43
|
+
sqlProvider: SqlProvider | undefined;
|
|
44
|
+
errors: {
|
|
45
|
+
Message: string;
|
|
46
|
+
}[];
|
|
47
|
+
codeContext: string;
|
|
48
|
+
tsProvider: TSProvider;
|
|
49
|
+
htmlProvider: HtmlProvider | undefined;
|
|
50
|
+
showHtmlPreview: boolean;
|
|
51
|
+
autoFormatHtml: boolean;
|
|
52
|
+
sanitizedHtmlPreview: SafeHtml | string;
|
|
53
|
+
private htmlFormatHandle;
|
|
54
|
+
private skipNextAutoFormat;
|
|
55
|
+
private layoutRaf;
|
|
56
|
+
private scrollHosts;
|
|
57
|
+
private readonly onHostScroll;
|
|
58
|
+
private recordValueSub;
|
|
59
|
+
private syncingFromRecord;
|
|
60
|
+
constructor(monacoLoaderService: MonacoEditorLoaderService, http: HttpClient, metaSrv: MetadataProviderService, userInfo: UserInfoService, dataSrv: DataProviderService, wtoolbox: WtoolboxService, sanitizer: DomSanitizer);
|
|
61
|
+
setFullScreen($event: any, ctx: any): void;
|
|
62
|
+
toggleSqlObjView($event: any, ctx: any): void;
|
|
63
|
+
onContentChange($event: any): void;
|
|
64
|
+
onTreeNodeDragStart(event: DragEvent, dataItem: any): void;
|
|
65
|
+
onTreeNodeDragEnd(event: DragEvent, dataItem: any): void;
|
|
66
|
+
testSql($event: any, ctx: any): Promise<void>;
|
|
67
|
+
suggest($event: any, ctx: any): Promise<void>;
|
|
68
|
+
onEditorModelChange(value: string): void;
|
|
69
|
+
ngOnInit(): void;
|
|
70
|
+
ngAfterViewInit(): void;
|
|
71
|
+
ngOnDestroy(): void;
|
|
72
|
+
private scheduleEditorLayout;
|
|
73
|
+
private getScrollableAncestors;
|
|
74
|
+
private bindRecordValue;
|
|
75
|
+
get isHtmlEditor(): boolean;
|
|
76
|
+
toggleHtmlPreview($event: any): void;
|
|
77
|
+
formatHtmlNow($event?: any): void;
|
|
78
|
+
private scheduleAutoFormatHtml;
|
|
79
|
+
private refreshHtmlPreview;
|
|
80
|
+
private sanitizeHtmlForPreview;
|
|
81
|
+
private transformAngularTemplateForPreview;
|
|
82
|
+
private extractMetaColumnCaption;
|
|
83
|
+
private mapToPrimeTreeNodes;
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodeEditorComponent, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CodeEditorComponent, "wuic-code-editor", never, { "field": { "alias": "field"; "required": false; }; "record": { "alias": "record"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; }, {}, never, never, true, never>;
|
|
86
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class EditorOptions {
|
|
2
|
+
theme: string;
|
|
3
|
+
language: 'json' | 'typescript' | 'sql' | 'csharp' | 'html';
|
|
4
|
+
contextMenuItems: any[];
|
|
5
|
+
model?: any;
|
|
6
|
+
onInit?: any;
|
|
7
|
+
onNodeClick?: any;
|
|
8
|
+
onNodeDragStart?: any;
|
|
9
|
+
onNodeDragEnd?: any;
|
|
10
|
+
onDropIntoEditor?: any;
|
|
11
|
+
constructor(theme: string, language: 'json' | 'typescript' | 'sql' | 'csharp' | 'html');
|
|
12
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EditorOptions } from './editor-options';
|
|
2
|
+
import { WuicComponentBindings } from './wuic-component-bindings';
|
|
3
|
+
export declare class HtmlProvider {
|
|
4
|
+
private editorOptions;
|
|
5
|
+
private componentSelectors;
|
|
6
|
+
private componentBindings;
|
|
7
|
+
private editor;
|
|
8
|
+
private validateHandle;
|
|
9
|
+
private readonly markerOwner;
|
|
10
|
+
private completionProviderDisposable;
|
|
11
|
+
private formatterDisposable;
|
|
12
|
+
private readonly htmlSnippets;
|
|
13
|
+
constructor(editorOptions: EditorOptions, componentSelectors?: string[], componentBindings?: Record<string, WuicComponentBindings>);
|
|
14
|
+
registerHtmlProvider(): void;
|
|
15
|
+
setEditor(editor: monaco.editor.IStandaloneCodeEditor): void;
|
|
16
|
+
dispose(): void;
|
|
17
|
+
private scheduleValidate;
|
|
18
|
+
private validateNow;
|
|
19
|
+
private buildStrictMarkers;
|
|
20
|
+
private buildTagBalanceMarkers;
|
|
21
|
+
private buildAngularSyntaxMarkers;
|
|
22
|
+
private registerCompletionProvider;
|
|
23
|
+
private getOpenTagContext;
|
|
24
|
+
private buildAngularBindingSuggestions;
|
|
25
|
+
private registerDocumentFormatter;
|
|
26
|
+
private formatHtml;
|
|
27
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export declare class SqlModel {
|
|
2
|
+
database: string;
|
|
3
|
+
isDefault: boolean;
|
|
4
|
+
schema: string;
|
|
5
|
+
tables: SqlTable[];
|
|
6
|
+
types: SqlTable[];
|
|
7
|
+
functions: SqlFunctionStored[];
|
|
8
|
+
storeds: SqlFunctionStored[];
|
|
9
|
+
}
|
|
10
|
+
export declare class SqlFunctionStored {
|
|
11
|
+
schema: string;
|
|
12
|
+
name: string;
|
|
13
|
+
type: string;
|
|
14
|
+
parameters: SqlParameter[];
|
|
15
|
+
}
|
|
16
|
+
export declare class SqlParameter {
|
|
17
|
+
name: string;
|
|
18
|
+
type: string;
|
|
19
|
+
isOutput: boolean;
|
|
20
|
+
isReadOnly: boolean;
|
|
21
|
+
order: number;
|
|
22
|
+
size: string;
|
|
23
|
+
}
|
|
24
|
+
export declare class SqlTable {
|
|
25
|
+
schema: string;
|
|
26
|
+
table: string;
|
|
27
|
+
alias: string;
|
|
28
|
+
schemaObj: SqlModel;
|
|
29
|
+
columns: SqlColumn[];
|
|
30
|
+
}
|
|
31
|
+
export declare class SqlRelation {
|
|
32
|
+
schemaPK: string;
|
|
33
|
+
tablePK: string;
|
|
34
|
+
columnPK: string;
|
|
35
|
+
schemaFK: string;
|
|
36
|
+
tableFK: string;
|
|
37
|
+
columnFK: string;
|
|
38
|
+
}
|
|
39
|
+
export declare class SqlColumn {
|
|
40
|
+
schema: string;
|
|
41
|
+
table: string;
|
|
42
|
+
tableAlias: string;
|
|
43
|
+
column: string;
|
|
44
|
+
type: string;
|
|
45
|
+
isNullable: boolean;
|
|
46
|
+
columnDescription: string;
|
|
47
|
+
isPkey: boolean;
|
|
48
|
+
isIdentity: boolean;
|
|
49
|
+
order: number;
|
|
50
|
+
childRelations: SqlRelation[];
|
|
51
|
+
parentRelation: SqlRelation;
|
|
52
|
+
}
|
|
53
|
+
export type Stack<T> = {
|
|
54
|
+
text: T;
|
|
55
|
+
sqlDatabase?: string;
|
|
56
|
+
sqlModel?: SqlModel;
|
|
57
|
+
sqlTable?: SqlTable;
|
|
58
|
+
parentTable?: SqlTable;
|
|
59
|
+
sqlColumn?: SqlColumn;
|
|
60
|
+
sqlRelation?: SqlRelation;
|
|
61
|
+
sqlParameter?: SqlParameter;
|
|
62
|
+
sqlFunction?: SqlFunctionStored;
|
|
63
|
+
items?: Stack<T>[] | null;
|
|
64
|
+
};
|
|
65
|
+
export declare class Statement {
|
|
66
|
+
statement: string;
|
|
67
|
+
index: number;
|
|
68
|
+
words: {
|
|
69
|
+
token: string;
|
|
70
|
+
tokenIndx: number;
|
|
71
|
+
}[];
|
|
72
|
+
sqlModels: SqlModel[];
|
|
73
|
+
sqlTables: {
|
|
74
|
+
table: SqlTable;
|
|
75
|
+
usedAlias: string;
|
|
76
|
+
}[];
|
|
77
|
+
sqlColumns: {
|
|
78
|
+
column: SqlColumn;
|
|
79
|
+
usedAlias: string;
|
|
80
|
+
}[];
|
|
81
|
+
sqlAliases: any[];
|
|
82
|
+
subStatements: {
|
|
83
|
+
key: string;
|
|
84
|
+
statement: Statement;
|
|
85
|
+
}[];
|
|
86
|
+
constructor(statement: string, index: number);
|
|
87
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { SqlTable, SqlModel, Stack, Statement } from "./sql-model";
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event';
|
|
4
|
+
export declare class SqlProvider {
|
|
5
|
+
private http;
|
|
6
|
+
currents: CurrentProviderDataContext;
|
|
7
|
+
previousStatements: string[];
|
|
8
|
+
schemas: SqlModel[];
|
|
9
|
+
editorOptions: any;
|
|
10
|
+
userDefTypes: SqlTable[];
|
|
11
|
+
treeNodes: Stack<string>[];
|
|
12
|
+
private editor;
|
|
13
|
+
constructor(http: HttpClient, editorOptions: any);
|
|
14
|
+
setEditor(editor: monaco.editor.IStandaloneCodeEditor): void;
|
|
15
|
+
registerSqlProvider(treeNodes: Stack<string>[]): Promise<void>;
|
|
16
|
+
getAutocompleteSuggestions(originalText: string, position: monaco.Position, lastWord?: monaco.editor.IWordAtPosition, scaffoldedOnly?: boolean): monaco.languages.CompletionList;
|
|
17
|
+
private createTreeMenu;
|
|
18
|
+
testSql(): Promise<any[]>;
|
|
19
|
+
sanitize(str: string): string;
|
|
20
|
+
private normalizeStatement;
|
|
21
|
+
removeNestedStatements(statement: string, nestedStatements: RegExpMatchArray[], currentIndx?: number): string;
|
|
22
|
+
getNestedStatements(statement: string): RegExpMatchArray[];
|
|
23
|
+
getNestedStatement(currentStmnt: Statement, matchingKeyWord: string, found: {
|
|
24
|
+
key: string;
|
|
25
|
+
statement: Statement;
|
|
26
|
+
parentStatement: Statement;
|
|
27
|
+
desiredLevel: number;
|
|
28
|
+
desiredIndex: number;
|
|
29
|
+
}, level?: number, parentIndex?: number): void;
|
|
30
|
+
processText(text: any, position: monaco.Position): {
|
|
31
|
+
char: string;
|
|
32
|
+
parentIndx: any;
|
|
33
|
+
lineNumber: number;
|
|
34
|
+
column: number;
|
|
35
|
+
statementIndex: number;
|
|
36
|
+
nestingIndex: number;
|
|
37
|
+
nestingLevel: number;
|
|
38
|
+
}[][];
|
|
39
|
+
getContextInfo(originalText: string, position: monaco.Position): ContextInfo;
|
|
40
|
+
getContextInfoOld(originalText: string, position: monaco.Position): ContextInfo;
|
|
41
|
+
getAutocompleteContext(contextInfo: ContextInfo): autocompleteContext;
|
|
42
|
+
evaluateAutocompleteContext(contextInfo: ContextInfo, statement: Statement, skipAs?: boolean, defaultAutoCtx?: autocompleteContext, contextDelegate?: (statement: Statement, contextInfo: ContextInfo) => autocompleteContext): autocompleteContext;
|
|
43
|
+
private matchesDefaultContextPrefix;
|
|
44
|
+
evaluateAutocompleteWhereContext(currents: CurrentProviderDataContext, currentStatementWords: string[], whereSubStatemnt: Statement): autocompleteContext.comparisonOperator | autocompleteContext.columnWhere;
|
|
45
|
+
private clearCurrents;
|
|
46
|
+
parseStatements(): void;
|
|
47
|
+
private parseStatementRecursive;
|
|
48
|
+
populateGlobalTables(statement: any, found: any): boolean;
|
|
49
|
+
private populateDeclarations;
|
|
50
|
+
private populateCurrentColumns;
|
|
51
|
+
populateAlias(element: string, stmntIndx: number, found: boolean, statementObj: Statement, subStatement: Statement): boolean;
|
|
52
|
+
private populateCurrentSchemaTables;
|
|
53
|
+
getSuggestionsByContext(context: autocompleteContext, range: monaco.IRange, originalText: string, contextInfo: ContextInfo, scaffoldedOnly?: boolean): monaco.languages.CompletionList;
|
|
54
|
+
private getModelDatabaseName;
|
|
55
|
+
private getModelSchemaName;
|
|
56
|
+
private getColumnDatabaseName;
|
|
57
|
+
private getDefaultDatabaseName;
|
|
58
|
+
private parseTblRelations;
|
|
59
|
+
getTableByAlias(alias: string, statement: Statement): SqlTable;
|
|
60
|
+
}
|
|
61
|
+
export declare class ContextMenuInteractionEmitter extends Emitter {
|
|
62
|
+
private editor;
|
|
63
|
+
private sqlProvider;
|
|
64
|
+
constructor(_contributions: any, deliveryQueue: any, editor: any, sqlProvider: any);
|
|
65
|
+
fire(event: {
|
|
66
|
+
event: {
|
|
67
|
+
leftButton: boolean;
|
|
68
|
+
middleButton: boolean;
|
|
69
|
+
rightButton: boolean;
|
|
70
|
+
buttons: number;
|
|
71
|
+
detail: number;
|
|
72
|
+
ctrlKey: boolean;
|
|
73
|
+
shiftKey: boolean;
|
|
74
|
+
altKey: boolean;
|
|
75
|
+
posx: number;
|
|
76
|
+
posy: number;
|
|
77
|
+
editorPos: {
|
|
78
|
+
x: number;
|
|
79
|
+
y: number;
|
|
80
|
+
width: number;
|
|
81
|
+
height: number;
|
|
82
|
+
};
|
|
83
|
+
relativePos: {
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
};
|
|
87
|
+
preventDefault: () => void;
|
|
88
|
+
stopPropagation: () => void;
|
|
89
|
+
};
|
|
90
|
+
target: {
|
|
91
|
+
element: HTMLElement;
|
|
92
|
+
position: monaco.Position;
|
|
93
|
+
range: monaco.IRange;
|
|
94
|
+
mouseColumn: number;
|
|
95
|
+
type: number;
|
|
96
|
+
};
|
|
97
|
+
}): void;
|
|
98
|
+
}
|
|
99
|
+
declare class ContextInfo {
|
|
100
|
+
words: {
|
|
101
|
+
word: string;
|
|
102
|
+
statementIndx: number;
|
|
103
|
+
}[];
|
|
104
|
+
nonNestedWords: {
|
|
105
|
+
word: string;
|
|
106
|
+
statementIndx: number;
|
|
107
|
+
}[];
|
|
108
|
+
currentStmntIndex: number;
|
|
109
|
+
nestedStatementIndex: number;
|
|
110
|
+
nestedStatementLevel?: number;
|
|
111
|
+
currentStatement?: Statement;
|
|
112
|
+
currentSubStatement?: {
|
|
113
|
+
key: string;
|
|
114
|
+
statement: Statement;
|
|
115
|
+
};
|
|
116
|
+
position: monaco.Position;
|
|
117
|
+
absolutePosition?: number;
|
|
118
|
+
adjacentChars: string;
|
|
119
|
+
}
|
|
120
|
+
declare class CurrentProviderDataContext {
|
|
121
|
+
declarations: {
|
|
122
|
+
paramName: string;
|
|
123
|
+
paramtype: string;
|
|
124
|
+
usertype?: SqlTable;
|
|
125
|
+
}[];
|
|
126
|
+
globalTables: SqlTable[];
|
|
127
|
+
statements: Statement[];
|
|
128
|
+
}
|
|
129
|
+
declare enum autocompleteContext {
|
|
130
|
+
statement = 0,
|
|
131
|
+
statementSelect = 1,
|
|
132
|
+
statementFrom = 2,
|
|
133
|
+
statementWhere = 3,
|
|
134
|
+
statementWhereJoin = 4,
|
|
135
|
+
columnWhereRestricted = 5,
|
|
136
|
+
columnWhereSkipAlias = 6,
|
|
137
|
+
statementOn = 7,
|
|
138
|
+
statementOnRelation = 8,
|
|
139
|
+
comparisonOperator = 9,
|
|
140
|
+
declaration = 10,
|
|
141
|
+
sqlType = 11,
|
|
142
|
+
schema = 12,
|
|
143
|
+
schemaJoin = 13,
|
|
144
|
+
table = 14,
|
|
145
|
+
tableNoAs = 15,
|
|
146
|
+
tableJoin = 16,
|
|
147
|
+
columnSelect = 17,
|
|
148
|
+
columnWhere = 18,
|
|
149
|
+
columnOrder = 19,
|
|
150
|
+
columnGroupBy = 20,
|
|
151
|
+
variable = 21,
|
|
152
|
+
columnWhereAndVariables = 22,
|
|
153
|
+
statementSet = 23,
|
|
154
|
+
assignmentOperator = 24,
|
|
155
|
+
statementValues = 25
|
|
156
|
+
}
|
|
157
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { SqlTable, SqlModel, Stack } from "./sql-model";
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
3
|
+
import { Emitter } from 'monaco-editor/esm/vs/base/common/event';
|
|
4
|
+
import { EditorOptions } from "./editor-options";
|
|
5
|
+
import { MetadatiColonna } from "../../class/metadati_colonna";
|
|
6
|
+
import { MetadataProviderService } from "../../service/metadata-provider.service";
|
|
7
|
+
export declare class TSProvider {
|
|
8
|
+
private http;
|
|
9
|
+
previousStatements: string[];
|
|
10
|
+
schemas: SqlModel[];
|
|
11
|
+
editorOptions: EditorOptions;
|
|
12
|
+
userDefTypes: SqlTable[];
|
|
13
|
+
treeNodes: Stack<string>[];
|
|
14
|
+
private editor;
|
|
15
|
+
contextMenuEvent: {
|
|
16
|
+
event: {
|
|
17
|
+
leftButton: boolean;
|
|
18
|
+
middleButton: boolean;
|
|
19
|
+
rightButton: boolean;
|
|
20
|
+
buttons: number;
|
|
21
|
+
detail: number;
|
|
22
|
+
ctrlKey: boolean;
|
|
23
|
+
shiftKey: boolean;
|
|
24
|
+
altKey: boolean;
|
|
25
|
+
posx: number;
|
|
26
|
+
posy: number;
|
|
27
|
+
editorPos: {
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
relativePos: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
};
|
|
37
|
+
preventDefault: () => void;
|
|
38
|
+
stopPropagation: () => void;
|
|
39
|
+
};
|
|
40
|
+
target: {
|
|
41
|
+
element: HTMLElement;
|
|
42
|
+
position: monaco.Position;
|
|
43
|
+
range: monaco.IRange;
|
|
44
|
+
mouseColumn: number;
|
|
45
|
+
type: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
snippets: {
|
|
49
|
+
[key: string]: string;
|
|
50
|
+
};
|
|
51
|
+
constructor(http: HttpClient, editorOptions: EditorOptions);
|
|
52
|
+
snippeter(snippetKey: any, snippetValue: any): void;
|
|
53
|
+
setEditor(editor: monaco.editor.IStandaloneCodeEditor): void;
|
|
54
|
+
registerTSProvider(formFieldOptions: any, field: MetadatiColonna, codeContext: string, record: any, metaSrv: MetadataProviderService, userInfo: any): Promise<void>;
|
|
55
|
+
}
|
|
56
|
+
export declare class ContextMenuInteractionEmitter extends Emitter {
|
|
57
|
+
private editor;
|
|
58
|
+
private tsProvider;
|
|
59
|
+
constructor(_contributions: any, deliveryQueue: any, editor: any, tsProvider: any);
|
|
60
|
+
fire(event: {
|
|
61
|
+
event: {
|
|
62
|
+
leftButton: boolean;
|
|
63
|
+
middleButton: boolean;
|
|
64
|
+
rightButton: boolean;
|
|
65
|
+
buttons: number;
|
|
66
|
+
detail: number;
|
|
67
|
+
ctrlKey: boolean;
|
|
68
|
+
shiftKey: boolean;
|
|
69
|
+
altKey: boolean;
|
|
70
|
+
posx: number;
|
|
71
|
+
posy: number;
|
|
72
|
+
editorPos: {
|
|
73
|
+
x: number;
|
|
74
|
+
y: number;
|
|
75
|
+
width: number;
|
|
76
|
+
height: number;
|
|
77
|
+
};
|
|
78
|
+
relativePos: {
|
|
79
|
+
x: number;
|
|
80
|
+
y: number;
|
|
81
|
+
};
|
|
82
|
+
preventDefault: () => void;
|
|
83
|
+
stopPropagation: () => void;
|
|
84
|
+
};
|
|
85
|
+
target: {
|
|
86
|
+
element: HTMLElement;
|
|
87
|
+
position: monaco.Position;
|
|
88
|
+
range: monaco.IRange;
|
|
89
|
+
mouseColumn: number;
|
|
90
|
+
type: number;
|
|
91
|
+
};
|
|
92
|
+
}): void;
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const WUIC_COMPONENT_SELECTORS: string[];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type CssStyleRow = {
|
|
4
|
+
Key: string;
|
|
5
|
+
Value: string;
|
|
6
|
+
};
|
|
7
|
+
type CssClassRow = {
|
|
8
|
+
SelectorString: string;
|
|
9
|
+
ClassNames: string[];
|
|
10
|
+
Styles: CssStyleRow[];
|
|
11
|
+
Media?: string;
|
|
12
|
+
};
|
|
13
|
+
type CssSheetRow = {
|
|
14
|
+
SheetPath: string;
|
|
15
|
+
classes: CssClassRow[];
|
|
16
|
+
};
|
|
17
|
+
type StyleProp = {
|
|
18
|
+
key: string;
|
|
19
|
+
type: string;
|
|
20
|
+
values?: string[];
|
|
21
|
+
};
|
|
22
|
+
export declare class CssSheetEditorComponent implements OnChanges {
|
|
23
|
+
visible: boolean;
|
|
24
|
+
visibleChange: EventEmitter<boolean>;
|
|
25
|
+
sheets: CssSheetRow[];
|
|
26
|
+
selectedSheetPath: string;
|
|
27
|
+
styleProps: StyleProp[];
|
|
28
|
+
assetsFolder: string;
|
|
29
|
+
applyEditor: EventEmitter<{
|
|
30
|
+
sheets: CssSheetRow[];
|
|
31
|
+
selectedSheetPath: string;
|
|
32
|
+
}>;
|
|
33
|
+
draftSheets: CssSheetRow[];
|
|
34
|
+
selectedSheetPathDraft: string;
|
|
35
|
+
selectedClassSelector: string;
|
|
36
|
+
pendingStyleKey: string;
|
|
37
|
+
pendingStyleValue: string;
|
|
38
|
+
newSheetName: string;
|
|
39
|
+
newClassName: string;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
41
|
+
close(): void;
|
|
42
|
+
addSheet(): void;
|
|
43
|
+
removeSelectedSheet(): void;
|
|
44
|
+
addClassToSelectedSheet(): void;
|
|
45
|
+
removeSelectedClass(): void;
|
|
46
|
+
addStyleToSelectedClass(): void;
|
|
47
|
+
removeStyle(index: number): void;
|
|
48
|
+
onStyleKeyChanged(style: CssStyleRow): void;
|
|
49
|
+
onStyleValueChanged(): void;
|
|
50
|
+
onPendingStyleKeyChanged(): void;
|
|
51
|
+
getPropertyValues(propKey: string): string[];
|
|
52
|
+
isPropertyDictionary(propKey: string): boolean;
|
|
53
|
+
isPropertyColor(propKey: string): boolean;
|
|
54
|
+
colorPickerValue(value: string): string;
|
|
55
|
+
onPendingColorChanged(value: string): void;
|
|
56
|
+
onStyleColorChanged(style: CssStyleRow, value: string): void;
|
|
57
|
+
onSelectedSheetChanged(): void;
|
|
58
|
+
onSelectedClassChanged(): void;
|
|
59
|
+
private syncDraft;
|
|
60
|
+
private cloneSheets;
|
|
61
|
+
private defaultValueForProperty;
|
|
62
|
+
private normalizePath;
|
|
63
|
+
private buildAssetSheetPath;
|
|
64
|
+
private emitChanges;
|
|
65
|
+
private resetPendingStyle;
|
|
66
|
+
get currentSheet(): CssSheetRow | null;
|
|
67
|
+
get currentClass(): CssClassRow | null;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CssSheetEditorComponent, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CssSheetEditorComponent, "wuic-css-sheet-editor", never, { "visible": { "alias": "visible"; "required": false; }; "sheets": { "alias": "sheets"; "required": false; }; "selectedSheetPath": { "alias": "selectedSheetPath"; "required": false; }; "styleProps": { "alias": "styleProps"; "required": false; }; "assetsFolder": { "alias": "assetsFolder"; "required": false; }; }, { "visibleChange": "visibleChange"; "applyEditor": "applyEditor"; }, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import { DynamicDashboardTemplateComponent } from '../dynamic-dashboard-template/dynamic-dashboard-template.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DashboardComponent implements AfterViewInit {
|
|
5
|
+
dashboardElements: any[];
|
|
6
|
+
constructor();
|
|
7
|
+
getComponent(dashboardElement: any): typeof DynamicDashboardTemplateComponent;
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
onResizing(event: any): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "wuic-dashboard", never, { "dashboardElements": { "alias": "dashboardElements"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { MetaInfo } from '../../class/metaInfo';
|
|
3
|
+
import { SplitButton } from 'primeng/splitbutton';
|
|
4
|
+
import { TranslationManagerService } from '../../service/translation-manager.service';
|
|
5
|
+
import { DataSourceComponent } from '../data-source/data-source.component';
|
|
6
|
+
import { ConfirmationService, MenuItem, MessageService } from 'primeng/api';
|
|
7
|
+
import { BehaviorSubject } from 'rxjs';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DataActionButtonComponent implements AfterViewInit {
|
|
10
|
+
private trslSrv;
|
|
11
|
+
private cd;
|
|
12
|
+
private messageService;
|
|
13
|
+
private confirmationService;
|
|
14
|
+
data: any;
|
|
15
|
+
metaInfo: MetaInfo;
|
|
16
|
+
datasource: BehaviorSubject<DataSourceComponent>;
|
|
17
|
+
filter?: () => void;
|
|
18
|
+
simplified: boolean;
|
|
19
|
+
btn: SplitButton;
|
|
20
|
+
items: MenuItem[];
|
|
21
|
+
selectedValue: any;
|
|
22
|
+
pkName: string;
|
|
23
|
+
inlineItems: any[];
|
|
24
|
+
constructor(trslSrv: TranslationManagerService, cd: ChangeDetectorRef, messageService: MessageService, confirmationService: ConfirmationService);
|
|
25
|
+
test($event: any): void;
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
select(item: any): void;
|
|
28
|
+
private appendMetadataButtonItems;
|
|
29
|
+
private getButtonActionRecord;
|
|
30
|
+
private isMetadataButtonEnabled;
|
|
31
|
+
private executeMetadataButton;
|
|
32
|
+
edit(): void;
|
|
33
|
+
delete(): Promise<void>;
|
|
34
|
+
detail(): void;
|
|
35
|
+
clone(): void;
|
|
36
|
+
save(): Promise<void>;
|
|
37
|
+
cancelEdit(): Promise<void>;
|
|
38
|
+
onClick($event: any): void;
|
|
39
|
+
onMenuHide($event: any): void;
|
|
40
|
+
onMenuShow($event: any): void;
|
|
41
|
+
onDropdownClick($event: any): void;
|
|
42
|
+
fix($event: any): void;
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataActionButtonComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataActionButtonComponent, "wuic-data-action-button", never, { "data": { "alias": "data"; "required": false; }; "metaInfo": { "alias": "metaInfo"; "required": false; }; "datasource": { "alias": "datasource"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "simplified": { "alias": "simplified"; "required": false; }; }, {}, never, never, true, never>;
|
|
45
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { DataSourceComponent } from '../data-source/data-source.component';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import { MetadatiColonna } from '../../class/metadati_colonna';
|
|
5
|
+
import { Table } from 'primeng/table';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DataRepeaterComponent implements OnInit {
|
|
8
|
+
datasource: BehaviorSubject<DataSourceComponent>;
|
|
9
|
+
hardcodedDatasource: DataSourceComponent;
|
|
10
|
+
action: BehaviorSubject<string>;
|
|
11
|
+
hardcodedAction: string;
|
|
12
|
+
field: MetadatiColonna;
|
|
13
|
+
record: any;
|
|
14
|
+
rowCustomSelect: (rowData: any, $event: any, dt: Table) => void;
|
|
15
|
+
templateReady: EventEmitter<string>;
|
|
16
|
+
archetype: string;
|
|
17
|
+
archetypes: {
|
|
18
|
+
[key: string]: {
|
|
19
|
+
markup: string;
|
|
20
|
+
component: any;
|
|
21
|
+
designerOptions?: any;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
repeaterTemplate: any;
|
|
25
|
+
constructor();
|
|
26
|
+
private normalizeArchetypeAction;
|
|
27
|
+
private resolveArchetype;
|
|
28
|
+
private renderArchetype;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DataRepeaterComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DataRepeaterComponent, "wuic-data-repeater", never, { "datasource": { "alias": "datasource"; "required": false; }; "hardcodedDatasource": { "alias": "hardcodedDatasource"; "required": false; }; "action": { "alias": "action"; "required": false; }; "hardcodedAction": { "alias": "hardcodedAction"; "required": false; }; "field": { "alias": "field"; "required": false; }; "record": { "alias": "record"; "required": false; }; "rowCustomSelect": { "alias": "rowCustomSelect"; "required": false; }; }, { "templateReady": "templateReady"; }, never, never, true, never>;
|
|
32
|
+
}
|