@gloww/gloww 20.0.0-beta.3 → 20.0.0-beta.30
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/fesm2022/gloww-gloww.mjs +395 -183
- package/fesm2022/gloww-gloww.mjs.map +1 -1
- package/gloww.theme.scss +190 -0
- package/index.d.ts +107 -62
- package/package.json +27 -11
package/gloww.theme.scss
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '@angular/material' as mat;
|
|
3
|
+
|
|
4
|
+
.CodeMirror {
|
|
5
|
+
resize: both;
|
|
6
|
+
padding: 0;
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.sameSize {
|
|
11
|
+
padding: 0;
|
|
12
|
+
margin: 0;
|
|
13
|
+
border: 1px solid;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin code-editor-component-theme($theme) {
|
|
17
|
+
$warn-color: mat.get-theme-color($theme, warn);
|
|
18
|
+
|
|
19
|
+
gloww-code-editor.ng-invalid .mainDiv {
|
|
20
|
+
border: 1px solid $warn-color;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mainDiv {
|
|
25
|
+
display: flex;
|
|
26
|
+
flex-direction: column;
|
|
27
|
+
align-items: stretch;
|
|
28
|
+
width: 100%;
|
|
29
|
+
height: 100%;
|
|
30
|
+
min-height: 100%;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.snippet-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
align-items: center;
|
|
37
|
+
gap: 8px;
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.snippet-select {
|
|
42
|
+
flex: 1 1 auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.editor-full-width {
|
|
46
|
+
width: 100%;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@mixin menu-list-item-component-theme($theme) {
|
|
50
|
+
$color-map: map.get($theme, color);
|
|
51
|
+
$primary-palette: map.get($color-map, primary);
|
|
52
|
+
$primary-color: map.get($primary-palette, default);
|
|
53
|
+
$active-bg: map.get($primary-palette, 50);
|
|
54
|
+
$hover-bg: map.get($primary-palette, 100);
|
|
55
|
+
|
|
56
|
+
mat-nav-list mat-icon i {
|
|
57
|
+
color: $primary-color;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.thisMenu {
|
|
61
|
+
.menu-list-item.active {
|
|
62
|
+
background-color: $active-bg;
|
|
63
|
+
color: $primary-color;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:hover,
|
|
67
|
+
&:focus {
|
|
68
|
+
.menu-list-item:not(.expanded) {
|
|
69
|
+
background-color: $hover-bg !important;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.thisMenu {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
align-items: center;
|
|
79
|
+
outline: none;
|
|
80
|
+
width: calc(100% - 20px);
|
|
81
|
+
margin: 10px;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.menu-list-item {
|
|
86
|
+
display: flex;
|
|
87
|
+
align-items: center;
|
|
88
|
+
flex: 1;
|
|
89
|
+
padding: 8px 0;
|
|
90
|
+
text-decoration: none;
|
|
91
|
+
color: inherit;
|
|
92
|
+
min-width: 0;
|
|
93
|
+
|
|
94
|
+
.routeIcon {
|
|
95
|
+
margin-right: 20px;
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.menu-label {
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.expand-container {
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
flex-shrink: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
mat-icon {
|
|
114
|
+
height: 32px;
|
|
115
|
+
width: 40px;
|
|
116
|
+
display: flex;
|
|
117
|
+
align-items: center;
|
|
118
|
+
justify-content: center;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.expandIcon {
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:disabled,
|
|
126
|
+
.disabled {
|
|
127
|
+
color: lightgrey !important;
|
|
128
|
+
pointer-events: none;
|
|
129
|
+
|
|
130
|
+
mat-icon i {
|
|
131
|
+
color: lightgrey !important;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
@mixin auto-complete-component-theme($theme) {
|
|
136
|
+
$warn-color: mat.get-theme-color($theme, warn);
|
|
137
|
+
|
|
138
|
+
gloww-auto-complete.ng-invalid .autocff .mat-form-field-underline {
|
|
139
|
+
background-color: $warn-color;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
gloww-auto-complete.ng-invalid .autocff .mat-form-field-label {
|
|
143
|
+
color: $warn-color;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@mixin gloww-lib-theme($theme) {
|
|
148
|
+
@include code-editor-component-theme($theme);
|
|
149
|
+
@include menu-list-item-component-theme($theme);
|
|
150
|
+
@include auto-complete-component-theme($theme);
|
|
151
|
+
|
|
152
|
+
html,
|
|
153
|
+
body {
|
|
154
|
+
height: 100%;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
body {
|
|
158
|
+
margin: 0;
|
|
159
|
+
font-family: Roboto, 'Helvetica Neue', sans-serif;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.cdk-overlay-pane {
|
|
163
|
+
width: unset !important;
|
|
164
|
+
height: unset !important;
|
|
165
|
+
max-width: 100% !important;
|
|
166
|
+
max-height: 90% !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.mat-mdc-dialog-container {
|
|
170
|
+
max-width: 100%;
|
|
171
|
+
max-height: 90% !important;
|
|
172
|
+
resize: both;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.dlg {
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
height: 100%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
mat-dialog-content {
|
|
182
|
+
flex-grow: 1;
|
|
183
|
+
max-height: 80vh !important;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
td.mat-mdc-cell {
|
|
187
|
+
padding-right: 10px !important;
|
|
188
|
+
padding-left: 10px !important;
|
|
189
|
+
}
|
|
190
|
+
}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, PipeTransform, OnInit, AfterContentInit, QueryList, EventEmitter, AfterViewInit,
|
|
2
|
+
import { InjectionToken, Injector, OnChanges, PipeTransform, OnInit, AfterContentInit, QueryList, EventEmitter, AfterViewInit, TemplateRef, ChangeDetectorRef, SimpleChanges, ModuleWithProviders, EnvironmentProviders, ElementRef } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
4
|
import { Subject, BehaviorSubject, Observable } from 'rxjs';
|
|
5
5
|
import * as _angular_common_http from '@angular/common/http';
|
|
@@ -8,40 +8,41 @@ import * as i1 from '@angular/common';
|
|
|
8
8
|
import { PlatformLocation, Location } from '@angular/common';
|
|
9
9
|
import * as _angular_material_dialog from '@angular/material/dialog';
|
|
10
10
|
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i10 from '@angular/router';
|
|
12
12
|
import { Router, ActivatedRoute, Data, ActivatedRouteSnapshot, RouterStateSnapshot, UrlTree } from '@angular/router';
|
|
13
13
|
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
14
14
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
15
15
|
import * as i2 from '@angular/forms';
|
|
16
|
-
import { UntypedFormBuilder, UntypedFormGroup, ControlValueAccessor, UntypedFormControl, FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
17
|
-
import * as
|
|
18
|
-
import
|
|
19
|
-
import * as
|
|
20
|
-
import
|
|
21
|
-
import * as
|
|
22
|
-
import * as i11 from '@angular/material/progress-bar';
|
|
23
|
-
import * as i12$1 from '@angular/material/table';
|
|
24
|
-
import { MatColumnDef, MatTable, MatTableDataSource } from '@angular/material/table';
|
|
25
|
-
import * as i13 from '@angular/material/select';
|
|
26
|
-
import * as i14 from '@angular/material/paginator';
|
|
16
|
+
import { UntypedFormBuilder, UntypedFormGroup, ControlValueAccessor, UntypedFormControl, FormControl, FormGroup, FormBuilder, AbstractControl } from '@angular/forms';
|
|
17
|
+
import * as i18 from '@angular/material/datepicker';
|
|
18
|
+
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
19
|
+
import * as i19 from 'ngx-mat-datetime-picker-v2';
|
|
20
|
+
import { NgxMatDatetimePickerModule, NgxMatTimepickerComponent, NgxMatNativeDateModule } from 'ngx-mat-datetime-picker-v2';
|
|
21
|
+
import * as i13 from '@angular/material/paginator';
|
|
27
22
|
import { MatPaginator } from '@angular/material/paginator';
|
|
28
|
-
import * as
|
|
23
|
+
import * as i14 from '@angular/material/sort';
|
|
29
24
|
import { MatSort, Sort } from '@angular/material/sort';
|
|
30
|
-
import * as
|
|
31
|
-
import
|
|
25
|
+
import * as i11 from '@angular/material/table';
|
|
26
|
+
import { MatColumnDef, MatTable, MatTableDataSource } from '@angular/material/table';
|
|
27
|
+
import { TranslateService, TranslateDefaultParser } from '@ngx-translate/core';
|
|
28
|
+
import * as i16 from '@ctrl/ngx-codemirror';
|
|
32
29
|
import { CodemirrorComponent } from '@ctrl/ngx-codemirror';
|
|
33
|
-
import * as
|
|
30
|
+
import * as i17 from '@kolkov/angular-editor';
|
|
34
31
|
import { AngularEditorConfig } from '@kolkov/angular-editor';
|
|
35
|
-
import * as
|
|
36
|
-
import * as i20 from 'ngx-mat-datetime-picker-v2';
|
|
37
|
-
import * as i21 from '@angular/cdk/drag-drop';
|
|
38
|
-
import * as i22 from 'angular-resize-event';
|
|
32
|
+
import * as i21 from 'angular-resize-event';
|
|
39
33
|
import { ResizedEvent } from 'angular-resize-event';
|
|
40
|
-
import
|
|
41
|
-
import * as
|
|
42
|
-
import * as
|
|
43
|
-
import * as
|
|
44
|
-
import * as i9 from '@angular/material/
|
|
34
|
+
import * as i6 from '@angular/material/input';
|
|
35
|
+
import * as i6$1 from '@angular/material/icon';
|
|
36
|
+
import * as i4 from '@angular/material/button';
|
|
37
|
+
import * as i8 from '@angular/material/card';
|
|
38
|
+
import * as i9 from '@angular/material/progress-spinner';
|
|
39
|
+
import * as i10$1 from '@angular/material/progress-bar';
|
|
40
|
+
import * as i12 from '@angular/material/select';
|
|
41
|
+
import * as i15 from '@angular/material/autocomplete';
|
|
42
|
+
import * as i20 from '@angular/cdk/drag-drop';
|
|
43
|
+
import * as i3 from '@angular/material/toolbar';
|
|
44
|
+
import * as i5 from '@angular/material/sidenav';
|
|
45
|
+
import * as i7 from '@angular/material/form-field';
|
|
45
46
|
|
|
46
47
|
declare const API_SERVER_URL: InjectionToken<string>;
|
|
47
48
|
declare const GLOWW_APPLI: InjectionToken<string>;
|
|
@@ -134,11 +135,17 @@ declare class NavService {
|
|
|
134
135
|
static ɵprov: i0.ɵɵInjectableDeclaration<NavService>;
|
|
135
136
|
}
|
|
136
137
|
|
|
137
|
-
declare class
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
declare class SecureImgComponent implements OnChanges {
|
|
139
|
+
private httpClient;
|
|
140
|
+
private domSanitizer;
|
|
141
|
+
src: string;
|
|
142
|
+
private src$;
|
|
143
|
+
ngOnChanges(): void;
|
|
144
|
+
dataUrl$: Observable<any>;
|
|
145
|
+
constructor(httpClient: HttpClient, domSanitizer: DomSanitizer);
|
|
146
|
+
private loadImage;
|
|
147
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SecureImgComponent, never>;
|
|
148
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SecureImgComponent, "secure-img", never, { "src": { "alias": "src"; "required": false; }; }, {}, never, never, true, never>;
|
|
142
149
|
}
|
|
143
150
|
|
|
144
151
|
declare class UploadDocComponent {
|
|
@@ -263,11 +270,22 @@ declare class AuthenticationService {
|
|
|
263
270
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
|
|
264
271
|
}
|
|
265
272
|
|
|
273
|
+
declare class GlowwI18nService {
|
|
274
|
+
private readonly translate;
|
|
275
|
+
constructor(translate: TranslateService | null);
|
|
276
|
+
get langChanges$(): Observable<unknown>;
|
|
277
|
+
instant(key: string, fallback: string): string;
|
|
278
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GlowwI18nService, [{ optional: true; }]>;
|
|
279
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GlowwI18nService>;
|
|
280
|
+
}
|
|
281
|
+
|
|
266
282
|
declare class FilterFormComponent implements OnInit {
|
|
283
|
+
private readonly i18n;
|
|
267
284
|
filter: EventEmitter<any>;
|
|
268
|
-
constructor();
|
|
285
|
+
constructor(i18n: GlowwI18nService);
|
|
269
286
|
ngOnInit(): void;
|
|
270
287
|
onFilter(): void;
|
|
288
|
+
get filterLabel(): string;
|
|
271
289
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterFormComponent, never>;
|
|
272
290
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterFormComponent, "glw-filter-form", never, {}, { "filter": "filter"; }, never, ["*"], true, never>;
|
|
273
291
|
}
|
|
@@ -286,6 +304,7 @@ declare class DisplayObjectsComponent<TObj> implements OnInit, AfterContentInit,
|
|
|
286
304
|
private authenticationService;
|
|
287
305
|
private formBuilder;
|
|
288
306
|
private route;
|
|
307
|
+
private i18n;
|
|
289
308
|
header: HeaderComponent;
|
|
290
309
|
searchFormLayout: SearchFormComponent;
|
|
291
310
|
filterFormLayout: FilterFormComponent;
|
|
@@ -326,7 +345,7 @@ declare class DisplayObjectsComponent<TObj> implements OnInit, AfterContentInit,
|
|
|
326
345
|
data: object;
|
|
327
346
|
routeParams: object;
|
|
328
347
|
glowwService: GlowwService;
|
|
329
|
-
constructor(glowwService: GlowwService, changeDetectorRef: ChangeDetectorRef, dialog: MatDialog, router: Router, location: Location, authenticationService: AuthenticationService, formBuilder: UntypedFormBuilder, route: ActivatedRoute);
|
|
348
|
+
constructor(glowwService: GlowwService, changeDetectorRef: ChangeDetectorRef, dialog: MatDialog, router: Router, location: Location, authenticationService: AuthenticationService, formBuilder: UntypedFormBuilder, route: ActivatedRoute, i18n: GlowwI18nService);
|
|
330
349
|
ngOnChanges(changes: SimpleChanges): void;
|
|
331
350
|
InitRequest(): void;
|
|
332
351
|
sortData(sort: Sort): void;
|
|
@@ -336,12 +355,14 @@ declare class DisplayObjectsComponent<TObj> implements OnInit, AfterContentInit,
|
|
|
336
355
|
private navSubscription;
|
|
337
356
|
ngOnInit(): void;
|
|
338
357
|
ngOnDestroy(): void;
|
|
358
|
+
t(key: string, fallback: string): string;
|
|
339
359
|
Init(data?: Data): void;
|
|
340
360
|
currentFilter: (data: TObj, filter: string) => boolean;
|
|
341
361
|
SetFilterPredicate(): void;
|
|
342
362
|
Search(data?: Data): void;
|
|
343
363
|
clean(obj: any): void;
|
|
344
364
|
onSearch(): void;
|
|
365
|
+
private serializeQueryParamValue;
|
|
345
366
|
onFilter(): void;
|
|
346
367
|
UpdateDataSource(r: TObj[]): void;
|
|
347
368
|
UpdateTable(): void;
|
|
@@ -358,6 +379,7 @@ declare class DisplayObjectsComponent<TObj> implements OnInit, AfterContentInit,
|
|
|
358
379
|
DeleteObj(obj: any): void;
|
|
359
380
|
_updateObj(current: any, newData: any): Observable<any>;
|
|
360
381
|
EditObj(obj: TObj): void;
|
|
382
|
+
private toErrorMessage;
|
|
361
383
|
static ɵfac: i0.ɵɵFactoryDeclaration<DisplayObjectsComponent<any>, never>;
|
|
362
384
|
static ɵcmp: i0.ɵɵComponentDeclaration<DisplayObjectsComponent<any>, "glw-display-objects", never, { "configuration": { "alias": "configuration"; "required": false; }; "displayObjLink": { "alias": "displayObjLink"; "required": false; }; "canDisplayObj": { "alias": "canDisplayObj"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; "canAdd": { "alias": "canAdd"; "required": false; }; "form": { "alias": "form"; "required": false; }; "SearchForm": { "alias": "SearchForm"; "required": false; }; "searchRequest": { "alias": "searchRequest"; "required": false; }; "postRequest": { "alias": "postRequest"; "required": false; }; "deleteRequest": { "alias": "deleteRequest"; "required": false; }; "putRequest": { "alias": "putRequest"; "required": false; }; "maxrows": { "alias": "maxrows"; "required": false; }; "mandatoryParams": { "alias": "mandatoryParams"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "dialogConfig": { "alias": "dialogConfig"; "required": false; }; "parent": { "alias": "parent"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "objectName": { "alias": "objectName"; "required": false; }; "primaryKey": { "alias": "primaryKey"; "required": false; }; "Editor": { "alias": "Editor"; "required": false; }; "AddEditor": { "alias": "AddEditor"; "required": false; }; }, {}, ["header", "searchFormLayout", "filterFormLayout", "resultLayout"], ["glw-header", "glw-search-form", "[filter]", "glw-result-table"], true, never>;
|
|
363
385
|
}
|
|
@@ -393,19 +415,6 @@ declare class SecurePipe implements PipeTransform {
|
|
|
393
415
|
static ɵpipe: i0.ɵɵPipeDeclaration<SecurePipe, "secure", true>;
|
|
394
416
|
}
|
|
395
417
|
|
|
396
|
-
declare class SecureImgComponent implements OnChanges {
|
|
397
|
-
private httpClient;
|
|
398
|
-
private domSanitizer;
|
|
399
|
-
src: string;
|
|
400
|
-
private src$;
|
|
401
|
-
ngOnChanges(): void;
|
|
402
|
-
dataUrl$: Observable<any>;
|
|
403
|
-
constructor(httpClient: HttpClient, domSanitizer: DomSanitizer);
|
|
404
|
-
private loadImage;
|
|
405
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SecureImgComponent, never>;
|
|
406
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SecureImgComponent, "secure-img", never, { "src": { "alias": "src"; "required": false; }; }, {}, never, never, true, never>;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
418
|
interface NavItem {
|
|
410
419
|
displayName: string;
|
|
411
420
|
disabled?: boolean | (() => boolean) | (() => Promise<boolean>);
|
|
@@ -419,6 +428,7 @@ interface NavItem {
|
|
|
419
428
|
declare class MenuListItemComponent implements OnInit, AfterViewInit {
|
|
420
429
|
navService: NavService;
|
|
421
430
|
router: Router;
|
|
431
|
+
private readonly i18n;
|
|
422
432
|
private _expanded;
|
|
423
433
|
get expanded(): boolean;
|
|
424
434
|
set expanded(value: boolean);
|
|
@@ -428,12 +438,13 @@ declare class MenuListItemComponent implements OnInit, AfterViewInit {
|
|
|
428
438
|
glowwService: GlowwService;
|
|
429
439
|
_disabled: Promise<boolean>;
|
|
430
440
|
_hidden: Promise<boolean>;
|
|
431
|
-
constructor(glowwService: GlowwService, navService: NavService, router: Router);
|
|
441
|
+
constructor(glowwService: GlowwService, navService: NavService, router: Router, i18n: GlowwI18nService);
|
|
432
442
|
ngAfterViewInit(): void;
|
|
433
443
|
ngOnInit(): void;
|
|
434
444
|
onItemSelected(item: NavItem): void;
|
|
435
445
|
isActive(item: NavItem): boolean;
|
|
436
446
|
routerLink(item: NavItem): string;
|
|
447
|
+
displayName(item: NavItem): string;
|
|
437
448
|
falsePromise: Promise<boolean>;
|
|
438
449
|
getDisabledPromise(): any;
|
|
439
450
|
getHiddenPromise(): any;
|
|
@@ -531,6 +542,7 @@ declare class LoginComponent implements OnInit {
|
|
|
531
542
|
name?: string;
|
|
532
543
|
value?: string;
|
|
533
544
|
constructor(formBuilder: UntypedFormBuilder, route: ActivatedRoute, router: Router, authenticationService: AuthenticationService, config?: AuthenticationServiceConfig);
|
|
545
|
+
private initializeForms;
|
|
534
546
|
MatchPassword(fg: UntypedFormGroup): boolean;
|
|
535
547
|
ngOnInit(): void;
|
|
536
548
|
get f(): {
|
|
@@ -665,10 +677,12 @@ declare class AdministratorGuard {
|
|
|
665
677
|
static ɵprov: i0.ɵɵInjectableDeclaration<AdministratorGuard>;
|
|
666
678
|
}
|
|
667
679
|
|
|
680
|
+
declare const GLOWW_SECURITY_STANDALONE_DECLARATIONS: readonly [typeof LoginComponent, typeof ChangePasswordDlgComponent, typeof UserMenuComponent, typeof SocialNetworkDlgComponent, typeof SocialNetworkComponent];
|
|
681
|
+
declare function provideGlowwSecurity(authenticationServiceConfig: AuthenticationServiceConfig): EnvironmentProviders;
|
|
668
682
|
declare class GlowwSecurityModule {
|
|
669
683
|
static forRoot(authenticationServiceConfig: AuthenticationServiceConfig): ModuleWithProviders<GlowwSecurityModule>;
|
|
670
684
|
static ɵfac: i0.ɵɵFactoryDeclaration<GlowwSecurityModule, never>;
|
|
671
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GlowwSecurityModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof
|
|
685
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GlowwSecurityModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.MatToolbarModule, typeof i4.MatButtonModule, typeof i5.MatSidenavModule, typeof i6.MatInputModule, typeof i7.MatFormFieldModule, typeof i8.MatCardModule, typeof _angular_material_dialog.MatDialogModule, typeof i10.RouterModule, typeof LoginComponent, typeof ChangePasswordDlgComponent, typeof UserMenuComponent, typeof SocialNetworkDlgComponent, typeof SocialNetworkComponent], [typeof LoginComponent, typeof ChangePasswordDlgComponent, typeof UserMenuComponent, typeof SocialNetworkDlgComponent, typeof SocialNetworkComponent, typeof i10.RouterModule]>;
|
|
672
686
|
static ɵinj: i0.ɵɵInjectorDeclaration<GlowwSecurityModule>;
|
|
673
687
|
}
|
|
674
688
|
|
|
@@ -785,6 +799,13 @@ declare class FileEditComponent implements OnInit {
|
|
|
785
799
|
static ɵcmp: i0.ɵɵComponentDeclaration<FileEditComponent, "gloww-file-edit", never, {}, {}, never, never, true, never>;
|
|
786
800
|
}
|
|
787
801
|
|
|
802
|
+
declare class FolderServiceConfig {
|
|
803
|
+
apiPath?: string;
|
|
804
|
+
static Create(t?: any): FolderServiceConfig;
|
|
805
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FolderServiceConfig, never>;
|
|
806
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FolderServiceConfig>;
|
|
807
|
+
}
|
|
808
|
+
|
|
788
809
|
interface DirectoryContent {
|
|
789
810
|
files: string[];
|
|
790
811
|
directories: string[];
|
|
@@ -945,24 +966,39 @@ declare class AutoCompleteComponent implements ControlValueAccessor, OnInit, Aft
|
|
|
945
966
|
}
|
|
946
967
|
|
|
947
968
|
declare class DatetimeComponent implements ControlValueAccessor {
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
969
|
+
private readonly locale?;
|
|
970
|
+
private static readonly DATE_FORMATS;
|
|
971
|
+
_value: Date | null;
|
|
972
|
+
display: string | null;
|
|
973
|
+
placeHolder: string | null;
|
|
951
974
|
mode: string;
|
|
952
|
-
showSpinners: boolean;
|
|
953
975
|
showSeconds: boolean;
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
976
|
+
readonly dateControl: FormControl<Date>;
|
|
977
|
+
readonly hourControl: FormControl<string>;
|
|
978
|
+
readonly minuteControl: FormControl<string>;
|
|
979
|
+
readonly secondControl: FormControl<string>;
|
|
980
|
+
isDisabled: boolean;
|
|
981
|
+
readonly hours: string[];
|
|
982
|
+
readonly minutes: string[];
|
|
983
|
+
readonly seconds: string[];
|
|
984
|
+
onChange: (value: Date | null) => void;
|
|
985
|
+
onTouched: () => void;
|
|
986
|
+
constructor(locale?: string);
|
|
987
|
+
get isDateTime(): boolean;
|
|
988
|
+
get value(): Date | null;
|
|
959
989
|
set value(val: any);
|
|
960
990
|
writeValue(obj: any): void;
|
|
961
991
|
registerOnChange(fn: any): void;
|
|
962
992
|
registerOnTouched(fn: any): void;
|
|
963
|
-
setDisabledState
|
|
964
|
-
|
|
965
|
-
|
|
993
|
+
setDisabledState(isDisabled: boolean): void;
|
|
994
|
+
clear(): void;
|
|
995
|
+
markTouched(): void;
|
|
996
|
+
private setValueFromOutside;
|
|
997
|
+
private emitCurrentValue;
|
|
998
|
+
private toNumber;
|
|
999
|
+
private normalizeDateValue;
|
|
1000
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatetimeComponent, [{ optional: true; }]>;
|
|
1001
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatetimeComponent, "gloww-datetime", never, { "_value": { "alias": "value"; "required": false; }; "display": { "alias": "display"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "showSeconds": { "alias": "showSeconds"; "required": false; }; }, {}, never, never, true, never>;
|
|
966
1002
|
}
|
|
967
1003
|
|
|
968
1004
|
declare class RouteDirective {
|
|
@@ -975,6 +1011,12 @@ declare class RouteDirective {
|
|
|
975
1011
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RouteDirective, "[glowwRoute]", never, { "dlg": { "alias": "dlg"; "required": false; }; }, {}, never, never, true, never>;
|
|
976
1012
|
}
|
|
977
1013
|
|
|
1014
|
+
declare class CallbackDirective {
|
|
1015
|
+
constructor();
|
|
1016
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CallbackDirective, never>;
|
|
1017
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CallbackDirective, "[glowwCallback]", never, {}, {}, never, never, true, never>;
|
|
1018
|
+
}
|
|
1019
|
+
|
|
978
1020
|
declare abstract class BaseCollectionComponent {
|
|
979
1021
|
private _formBuilder;
|
|
980
1022
|
filterform: FormGroup;
|
|
@@ -993,10 +1035,13 @@ declare class HasUnsavedDataGuard {
|
|
|
993
1035
|
static ɵprov: i0.ɵɵInjectableDeclaration<HasUnsavedDataGuard>;
|
|
994
1036
|
}
|
|
995
1037
|
|
|
1038
|
+
declare const GLOWW_STANDALONE_DECLARATIONS: readonly [typeof UploadDocComponent, typeof SafeHtmlPipe, typeof DisplayObjectsComponent, typeof HeaderComponent, typeof ResultTableComponent, typeof SearchFormComponent, typeof ConfirmationComponent, typeof PromptComponent, typeof SecurePipe, typeof SecureImgComponent, typeof MenuListItemComponent, typeof CodeEditorComponent, typeof HtmlEditorComponent, typeof HtmlFormatPipe, typeof UploadFileComponent, typeof FileSinkDirective, typeof FileEditComponent, typeof FoldersComponent, typeof DownloadProgressComponent, typeof SecureAComponent, typeof DummyComponent, typeof SelectComponent, typeof AutoCompleteComponent, typeof DatetimeComponent, typeof RouteDirective, typeof CallbackDirective, typeof FilterFormComponent];
|
|
1039
|
+
declare const GLOWW_MODULE_EXPORTS: readonly [typeof UploadDocComponent, typeof SafeHtmlPipe, typeof DisplayObjectsComponent, typeof HeaderComponent, typeof ResultTableComponent, typeof SearchFormComponent, typeof ConfirmationComponent, typeof PromptComponent, typeof SecurePipe, typeof SecureImgComponent, typeof MenuListItemComponent, typeof CodeEditorComponent, typeof HtmlEditorComponent, typeof HtmlFormatPipe, typeof UploadFileComponent, typeof FileSinkDirective, typeof FileEditComponent, typeof FoldersComponent, typeof DownloadProgressComponent, typeof SecureAComponent, typeof DummyComponent, typeof SelectComponent, typeof AutoCompleteComponent, typeof DatetimeComponent, typeof RouteDirective, typeof CallbackDirective, typeof FilterFormComponent, typeof MatDatepickerModule, typeof NgxMatDatetimePickerModule, typeof NgxMatTimepickerComponent, typeof NgxMatNativeDateModule];
|
|
1040
|
+
declare function provideGloww(folderServiceConfig?: FolderServiceConfig): EnvironmentProviders;
|
|
996
1041
|
declare class GlowwModule {
|
|
997
1042
|
static forRoot(folderServiceConfig?: FolderServiceConfig): ModuleWithProviders<GlowwModule>;
|
|
998
1043
|
static ɵfac: i0.ɵɵFactoryDeclaration<GlowwModule, never>;
|
|
999
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<GlowwModule, never, [typeof i1.CommonModule, typeof
|
|
1044
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GlowwModule, never, [typeof i1.CommonModule, typeof i10.RouterModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof _angular_material_dialog.MatDialogModule, typeof i6.MatInputModule, typeof i6$1.MatIconModule, typeof i4.MatButtonModule, typeof i8.MatCardModule, typeof i9.MatProgressSpinnerModule, typeof i10$1.MatProgressBarModule, typeof i11.MatTableModule, typeof i12.MatSelectModule, typeof i13.MatPaginatorModule, typeof i14.MatSortModule, typeof i9.MatProgressSpinnerModule, typeof i15.MatAutocompleteModule, typeof i16.CodemirrorModule, typeof i17.AngularEditorModule, typeof i18.MatDatepickerModule, typeof i19.NgxMatDatetimePickerModule, typeof i19.NgxMatTimepickerComponent, typeof i19.NgxMatNativeDateModule, typeof i20.DragDropModule, typeof i21.AngularResizeEventModule, typeof UploadDocComponent, typeof SafeHtmlPipe, typeof DisplayObjectsComponent, typeof HeaderComponent, typeof ResultTableComponent, typeof SearchFormComponent, typeof ConfirmationComponent, typeof PromptComponent, typeof SecurePipe, typeof SecureImgComponent, typeof MenuListItemComponent, typeof CodeEditorComponent, typeof HtmlEditorComponent, typeof HtmlFormatPipe, typeof UploadFileComponent, typeof FileSinkDirective, typeof FileEditComponent, typeof FoldersComponent, typeof DownloadProgressComponent, typeof SecureAComponent, typeof DummyComponent, typeof SelectComponent, typeof AutoCompleteComponent, typeof DatetimeComponent, typeof RouteDirective, typeof CallbackDirective, typeof FilterFormComponent], [typeof UploadDocComponent, typeof SafeHtmlPipe, typeof DisplayObjectsComponent, typeof HeaderComponent, typeof ResultTableComponent, typeof SearchFormComponent, typeof ConfirmationComponent, typeof PromptComponent, typeof SecurePipe, typeof SecureImgComponent, typeof MenuListItemComponent, typeof CodeEditorComponent, typeof HtmlEditorComponent, typeof HtmlFormatPipe, typeof UploadFileComponent, typeof FileSinkDirective, typeof FileEditComponent, typeof FoldersComponent, typeof DownloadProgressComponent, typeof SecureAComponent, typeof DummyComponent, typeof SelectComponent, typeof AutoCompleteComponent, typeof DatetimeComponent, typeof RouteDirective, typeof CallbackDirective, typeof FilterFormComponent, typeof i18.MatDatepickerModule, typeof i19.NgxMatDatetimePickerModule, typeof i19.NgxMatTimepickerComponent, typeof i19.NgxMatNativeDateModule]>;
|
|
1000
1045
|
static ɵinj: i0.ɵɵInjectorDeclaration<GlowwModule>;
|
|
1001
1046
|
}
|
|
1002
1047
|
|
|
@@ -1045,5 +1090,5 @@ declare class GlowwValidators {
|
|
|
1045
1090
|
} | null;
|
|
1046
1091
|
}
|
|
1047
1092
|
|
|
1048
|
-
export { API_SERVER_URL, AdministratorGuard, AuthGuard, AuthenticationService, AuthenticationServiceConfig, AutoCompleteComponent, BaseCollectionComponent, ChangePasswordDlgComponent, CodeEditorComponent, ConfirmationComponent, ConfirmationModel, DatetimeComponent, DialogService, DisplayObjectsComponent, DownloadProgressComponent, DummyComponent, ErrorInterceptor, FilterFormComponent, FolderService, FolderServiceConfig, FoldersComponent, GLOWW_APPLI, GlowwModule, GlowwSecurityModule, GlowwSecurityService, GlowwService, GlowwValidators, HasUnsavedDataGuard, HeaderComponent, HtmlEditorComponent, HtmlFormatPipe, JwtInterceptor, LoginComponent, MenuListItemComponent, NavService, PromptComponent, PromptModel, ResultTableComponent, SafeHtmlPipe, SearchFormComponent, SecureAComponent, SecureImgComponent, SecurePipe, SelectComponent, StagingInterceptor, UploadDocComponent, UploadFileComponent, UserMenuComponent, VersionCheckService, VoiceRecognitionService };
|
|
1093
|
+
export { API_SERVER_URL, AdministratorGuard, AuthGuard, AuthenticationService, AuthenticationServiceConfig, AutoCompleteComponent, BaseCollectionComponent, CallbackDirective, ChangePasswordDlgComponent, CodeEditorComponent, ConfirmationComponent, ConfirmationModel, DatetimeComponent, DialogService, DisplayObjectsComponent, DownloadProgressComponent, DummyComponent, ErrorInterceptor, FileEditComponent, FileSinkDirective, FilterFormComponent, FolderService, FolderServiceConfig, FoldersComponent, GLOWW_APPLI, GLOWW_MODULE_EXPORTS, GLOWW_SECURITY_STANDALONE_DECLARATIONS, GLOWW_STANDALONE_DECLARATIONS, GlowwModule, GlowwSecurityModule, GlowwSecurityService, GlowwService, GlowwValidators, HasUnsavedDataGuard, HeaderComponent, HtmlEditorComponent, HtmlFormatPipe, JwtInterceptor, LoginComponent, MenuListItemComponent, NavService, PromptComponent, PromptModel, ResultTableComponent, RouteDirective, SafeHtmlPipe, SearchFormComponent, SecureAComponent, SecureImgComponent, SecurePipe, SelectComponent, SocialNetworkComponent, SocialNetworkDlgComponent, StagingInterceptor, UploadDocComponent, UploadFileComponent, UserMenuComponent, VersionCheckService, VoiceRecognitionService, provideGloww, provideGlowwSecurity };
|
|
1049
1094
|
export type { Action, DirectoryContent, IHasUnsavedData, NavItem };
|
package/package.json
CHANGED
|
@@ -1,26 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gloww/gloww",
|
|
3
|
-
"version": "20.0.0-beta.
|
|
3
|
+
"version": "20.0.0-beta.30",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
+
"@angular/animations": "^20.0.0",
|
|
6
|
+
"@angular/cdk": "^20.0.0",
|
|
5
7
|
"@angular/common": "^20.0.0",
|
|
6
8
|
"@angular/core": "^20.0.0",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
9
|
+
"@angular/forms": "^20.0.0",
|
|
10
|
+
"@angular/material": "^20.0.0",
|
|
11
|
+
"@angular/material-moment-adapter": "^20.0.0",
|
|
12
|
+
"@angular/platform-browser": "^20.0.0",
|
|
13
|
+
"@angular/router": "^20.0.0",
|
|
14
|
+
"rxjs": "^7.5.0",
|
|
15
|
+
"zone.js": "^0.15.0"
|
|
10
16
|
},
|
|
11
17
|
"dependencies": {
|
|
12
|
-
"
|
|
18
|
+
"@ctrl/ngx-codemirror": "^5.1.1",
|
|
19
|
+
"@kolkov/angular-editor": "^3.0.5",
|
|
20
|
+
"@ngx-translate/core": "^14.0.0",
|
|
21
|
+
"angular-resize-event": "^3.2.0",
|
|
22
|
+
"codemirror": "^5.65.0",
|
|
23
|
+
"file-saver": "^2.0.5",
|
|
24
|
+
"jszip": "^3.10.1",
|
|
25
|
+
"jwt-decode": "^4.0.0",
|
|
26
|
+
"moment": "^2.29.4",
|
|
27
|
+
"ngx-mat-datetime-picker-v2": "20.0.0",
|
|
28
|
+
"prettier": "^3.8.1",
|
|
29
|
+
"tslib": "^2.4.0"
|
|
13
30
|
},
|
|
14
31
|
"sideEffects": false,
|
|
15
32
|
"module": "fesm2022/gloww-gloww.mjs",
|
|
16
33
|
"typings": "index.d.ts",
|
|
17
34
|
"exports": {
|
|
18
|
-
"./package.json": {
|
|
19
|
-
"default": "./package.json"
|
|
20
|
-
},
|
|
21
35
|
".": {
|
|
22
36
|
"types": "./index.d.ts",
|
|
23
37
|
"default": "./fesm2022/gloww-gloww.mjs"
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"./gloww.theme": "./gloww.theme.scss"
|
|
40
|
+
},
|
|
41
|
+
"types": "./index.d.ts"
|
|
42
|
+
}
|