dolfo-angular 1.213.0 → 1.215.0
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/dolfo-angular.mjs +226 -236
- package/fesm2022/dolfo-angular.mjs.map +1 -1
- package/package.json +6 -6
- package/types/dolfo-angular.d.ts +38 -38
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Directive, Input, ChangeDetectionStrategy, Component, InjectionToken,
|
|
2
|
+
import { Directive, Input, ChangeDetectionStrategy, Component, InjectionToken, Service, inject, signal, Pipe, EventEmitter, Output, ViewChild, forwardRef, booleanAttribute, Injector, ChangeDetectorRef, ViewChildren, TemplateRef, ContentChild, EnvironmentInjector, createComponent, NgModule } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/forms';
|
|
4
|
-
import { ControlContainer, FormControl, Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS, FormGroupDirective, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
import { ControlContainer, FormControl, Validators, NG_VALUE_ACCESSOR, NG_VALIDATORS, FormArray, FormGroupDirective, FormGroup, ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import { BehaviorSubject, map, tap, distinctUntilChanged, filter, delay, mergeMap, of, catchError, throwError, zip, fromEvent, from, concatAll, race } from 'rxjs';
|
|
6
6
|
import * as i1 from '@angular/common';
|
|
7
7
|
import { formatDate, DecimalPipe, APP_BASE_HREF, CommonModule } from '@angular/common';
|
|
@@ -17,10 +17,10 @@ class Subscriptable {
|
|
|
17
17
|
ngOnDestroy() {
|
|
18
18
|
this.subs.forEach(s => s.unsubscribe());
|
|
19
19
|
}
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
21
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Subscriptable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: Subscriptable, isStandalone: true, ngImport: i0 });
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Subscriptable, decorators: [{
|
|
24
24
|
type: Directive
|
|
25
25
|
}] });
|
|
26
26
|
|
|
@@ -108,10 +108,10 @@ class GridConfig {
|
|
|
108
108
|
|
|
109
109
|
class IconComponent {
|
|
110
110
|
name;
|
|
111
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
112
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: IconComponent, isStandalone: false, selector: "dolfo-icon-x", inputs: { name: "name" }, ngImport: i0, template: `<i [class]="'icon-' + name"></i>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
113
113
|
}
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: IconComponent, decorators: [{
|
|
115
115
|
type: Component,
|
|
116
116
|
args: [{
|
|
117
117
|
selector: "dolfo-icon-x",
|
|
@@ -183,14 +183,11 @@ class ContextMenuService {
|
|
|
183
183
|
contextMenu$ = new BehaviorSubject(null);
|
|
184
184
|
getContextMenu$ = () => this.contextMenu$.asObservable();
|
|
185
185
|
openContextMenu = (input) => this.contextMenu$.next(input);
|
|
186
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
187
|
-
static ɵprov = i0.ɵɵ
|
|
186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ContextMenuService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
187
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: ContextMenuService });
|
|
188
188
|
}
|
|
189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
190
|
-
type:
|
|
191
|
-
args: [{
|
|
192
|
-
providedIn: "root"
|
|
193
|
-
}]
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ContextMenuService, decorators: [{
|
|
190
|
+
type: Service
|
|
194
191
|
}] });
|
|
195
192
|
|
|
196
193
|
class TranslateService {
|
|
@@ -198,10 +195,11 @@ class TranslateService {
|
|
|
198
195
|
langContent;
|
|
199
196
|
langs;
|
|
200
197
|
httpClient = inject(HttpClient);
|
|
201
|
-
|
|
198
|
+
langConfig = inject(LANGUAGE_TOKEN);
|
|
199
|
+
constructor() {
|
|
202
200
|
if (!localStorage.getItem(TRANSLATE_STORAGE_KEY))
|
|
203
|
-
localStorage.setItem(TRANSLATE_STORAGE_KEY, langConfig.defaultLanguage);
|
|
204
|
-
const { langs } = langConfig, lang = localStorage.getItem(TRANSLATE_STORAGE_KEY), foundLang = langConfig.langs.find(l => l.name === lang);
|
|
201
|
+
localStorage.setItem(TRANSLATE_STORAGE_KEY, this.langConfig.defaultLanguage);
|
|
202
|
+
const { langs } = this.langConfig, lang = localStorage.getItem(TRANSLATE_STORAGE_KEY), foundLang = this.langConfig.langs.find(l => l.name === lang);
|
|
205
203
|
this.langs = langs;
|
|
206
204
|
if (!foundLang)
|
|
207
205
|
localStorage.removeItem(TRANSLATE_STORAGE_KEY);
|
|
@@ -234,26 +232,17 @@ class TranslateService {
|
|
|
234
232
|
getLocale = () => this.getLang()?.locale || "en-US";
|
|
235
233
|
formatDate = (d) => formatDate(new Date(d), this.translate("dateFormat"), this.getLocale());
|
|
236
234
|
formatDateTime = (d) => formatDate(new Date(d), this.translate("dateTimeFormat"), this.getLocale());
|
|
237
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
238
|
-
static ɵprov = i0.ɵɵ
|
|
235
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
236
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: TranslateService });
|
|
239
237
|
}
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
241
|
-
type:
|
|
242
|
-
|
|
243
|
-
providedIn: "root"
|
|
244
|
-
}]
|
|
245
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
246
|
-
type: Inject,
|
|
247
|
-
args: [LANGUAGE_TOKEN]
|
|
248
|
-
}] }] });
|
|
238
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslateService, decorators: [{
|
|
239
|
+
type: Service
|
|
240
|
+
}], ctorParameters: () => [] });
|
|
249
241
|
|
|
250
242
|
class DialogService {
|
|
251
|
-
ts;
|
|
252
243
|
dialog$ = new BehaviorSubject([]);
|
|
253
244
|
waiters = [];
|
|
254
|
-
|
|
255
|
-
this.ts = ts;
|
|
256
|
-
}
|
|
245
|
+
ts = inject(TranslateService);
|
|
257
246
|
getLastWaiter = () => this.waiters[this.waiters.length - 1];
|
|
258
247
|
getDialog = () => this.dialog$.getValue();
|
|
259
248
|
getDialog$ = () => this.dialog$.asObservable();
|
|
@@ -281,23 +270,16 @@ class DialogService {
|
|
|
281
270
|
this.waiters = this.waiters.slice(0, this.waiters.length - 1);
|
|
282
271
|
};
|
|
283
272
|
action = (action) => this.getLastWaiter().next(action);
|
|
284
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
285
|
-
static ɵprov = i0.ɵɵ
|
|
273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
274
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: DialogService });
|
|
286
275
|
}
|
|
287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
288
|
-
type:
|
|
289
|
-
|
|
290
|
-
providedIn: "root"
|
|
291
|
-
}]
|
|
292
|
-
}], ctorParameters: () => [{ type: TranslateService }] });
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogService, decorators: [{
|
|
277
|
+
type: Service
|
|
278
|
+
}] });
|
|
293
279
|
|
|
294
280
|
class DialogUtilsService {
|
|
295
|
-
dialogService;
|
|
296
|
-
translateService;
|
|
297
|
-
constructor(dialogService, translateService) {
|
|
298
|
-
this.dialogService = dialogService;
|
|
299
|
-
this.translateService = translateService;
|
|
300
|
-
}
|
|
281
|
+
dialogService = inject(DialogService);
|
|
282
|
+
translateService = inject(TranslateService);
|
|
301
283
|
showLoading$ = (obs) => mergeMap(res => of(res).pipe(delay(0), tap(() => this.dialogService.showLoading().subscribe()), mergeMap(res => obs(res)), catchError(err => {
|
|
302
284
|
this.closeLatestDialog();
|
|
303
285
|
return throwError(() => err);
|
|
@@ -317,15 +299,12 @@ class DialogUtilsService {
|
|
|
317
299
|
hideCloseX: input.hideCloseX,
|
|
318
300
|
width: input.width
|
|
319
301
|
}).pipe(filter(res => res.type === DialogActionType.OK || getDialogResp), this.showLoading$(res => obs(res.type)), tap(() => this.hideLoading()));
|
|
320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
321
|
-
static ɵprov = i0.ɵɵ
|
|
302
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogUtilsService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
303
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: DialogUtilsService });
|
|
322
304
|
}
|
|
323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
324
|
-
type:
|
|
325
|
-
|
|
326
|
-
providedIn: "root"
|
|
327
|
-
}]
|
|
328
|
-
}], ctorParameters: () => [{ type: DialogService }, { type: TranslateService }] });
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogUtilsService, decorators: [{
|
|
306
|
+
type: Service
|
|
307
|
+
}] });
|
|
329
308
|
|
|
330
309
|
class NotificationService {
|
|
331
310
|
notification$ = new BehaviorSubject(null);
|
|
@@ -337,14 +316,11 @@ class NotificationService {
|
|
|
337
316
|
};
|
|
338
317
|
hide = () => this.notification$.next(null);
|
|
339
318
|
getHistory$ = () => this.history$.asObservable();
|
|
340
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
341
|
-
static ɵprov = i0.ɵɵ
|
|
319
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NotificationService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
320
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: NotificationService });
|
|
342
321
|
}
|
|
343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
344
|
-
type:
|
|
345
|
-
args: [{
|
|
346
|
-
providedIn: "root"
|
|
347
|
-
}]
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NotificationService, decorators: [{
|
|
323
|
+
type: Service
|
|
348
324
|
}] });
|
|
349
325
|
|
|
350
326
|
class PopoverService {
|
|
@@ -353,14 +329,11 @@ class PopoverService {
|
|
|
353
329
|
getPopover = () => this.popover$.getValue();
|
|
354
330
|
showPopover = (input) => this.popover$.next(input);
|
|
355
331
|
hide = () => this.popover$.next(null);
|
|
356
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
357
|
-
static ɵprov = i0.ɵɵ
|
|
332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: PopoverService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
333
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: PopoverService });
|
|
358
334
|
}
|
|
359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
360
|
-
type:
|
|
361
|
-
args: [{
|
|
362
|
-
providedIn: "root"
|
|
363
|
-
}]
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: PopoverService, decorators: [{
|
|
336
|
+
type: Service
|
|
364
337
|
}] });
|
|
365
338
|
|
|
366
339
|
class RouteCheckService {
|
|
@@ -371,18 +344,16 @@ class RouteCheckService {
|
|
|
371
344
|
return false;
|
|
372
345
|
return this.routeService.load$().pipe(catchError(() => of(null)), mergeMap(() => this.routeService.checkRoute(routeConfig.path)));
|
|
373
346
|
}
|
|
374
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
375
|
-
static ɵprov = i0.ɵɵ
|
|
347
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RouteCheckService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
348
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: RouteCheckService });
|
|
376
349
|
}
|
|
377
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
378
|
-
type:
|
|
379
|
-
args: [{
|
|
380
|
-
providedIn: "root"
|
|
381
|
-
}]
|
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: RouteCheckService, decorators: [{
|
|
351
|
+
type: Service
|
|
382
352
|
}] });
|
|
383
353
|
|
|
384
354
|
class StoreService extends Subscriptable {
|
|
385
|
-
appInitialized = signal(false,
|
|
355
|
+
appInitialized = signal(false, /* @ts-ignore */
|
|
356
|
+
...(ngDevMode ? [{ debugName: "appInitialized" }] : /* istanbul ignore next */ []));
|
|
386
357
|
constructor() {
|
|
387
358
|
super();
|
|
388
359
|
this.addSubscription(zip([
|
|
@@ -419,14 +390,11 @@ class StoreService extends Subscriptable {
|
|
|
419
390
|
isPressingCtrl = () => this.store$.getValue().pressingCtrl;
|
|
420
391
|
isInitialized = () => this.appInitialized();
|
|
421
392
|
initialize = () => this.appInitialized.set(true);
|
|
422
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
423
|
-
static ɵprov = i0.ɵɵ
|
|
393
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
394
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: StoreService });
|
|
424
395
|
}
|
|
425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
426
|
-
type:
|
|
427
|
-
args: [{
|
|
428
|
-
providedIn: "root"
|
|
429
|
-
}]
|
|
396
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: StoreService, decorators: [{
|
|
397
|
+
type: Service
|
|
430
398
|
}], ctorParameters: () => [] });
|
|
431
399
|
|
|
432
400
|
class TooltipService {
|
|
@@ -435,14 +403,11 @@ class TooltipService {
|
|
|
435
403
|
getTooltip$ = () => this.tooltip$.asObservable();
|
|
436
404
|
getTooltip = () => this.tooltip$.getValue();
|
|
437
405
|
hide = () => this.tooltip$.next(null);
|
|
438
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
439
|
-
static ɵprov = i0.ɵɵ
|
|
406
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService, deps: [], target: i0.ɵɵFactoryTarget.Service });
|
|
407
|
+
static ɵprov = i0.ɵɵngDeclareService({ minVersion: "22.0.0", version: "22.0.5", ngImport: i0, type: TooltipService });
|
|
440
408
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
442
|
-
type:
|
|
443
|
-
args: [{
|
|
444
|
-
providedIn: "root"
|
|
445
|
-
}]
|
|
409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipService, decorators: [{
|
|
410
|
+
type: Service
|
|
446
411
|
}] });
|
|
447
412
|
|
|
448
413
|
class TooltipDirective extends Subscriptable {
|
|
@@ -459,10 +424,10 @@ class TooltipDirective extends Subscriptable {
|
|
|
459
424
|
direction: this.direction
|
|
460
425
|
})));
|
|
461
426
|
}
|
|
462
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
463
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
427
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipDirective, deps: [{ token: i0.ElementRef }, { token: TooltipService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
428
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: TooltipDirective, isStandalone: false, selector: "[dolfoTooltip]", inputs: { content: ["dolfoTooltip", "content"], direction: "direction" }, usesInheritance: true, ngImport: i0 });
|
|
464
429
|
}
|
|
465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipDirective, decorators: [{
|
|
466
431
|
type: Directive,
|
|
467
432
|
args: [{
|
|
468
433
|
selector: "[dolfoTooltip]",
|
|
@@ -481,10 +446,10 @@ class TranslatePipe {
|
|
|
481
446
|
this.ts = ts;
|
|
482
447
|
}
|
|
483
448
|
transform = (value, args) => this.ts.translate(value, args);
|
|
484
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
485
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
449
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslatePipe, deps: [{ token: TranslateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
450
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: TranslatePipe, isStandalone: true, name: "translate", pure: false });
|
|
486
451
|
}
|
|
487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
452
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TranslatePipe, decorators: [{
|
|
488
453
|
type: Pipe,
|
|
489
454
|
args: [{
|
|
490
455
|
name: "translate",
|
|
@@ -528,8 +493,8 @@ class InputContainerComponent {
|
|
|
528
493
|
if (input)
|
|
529
494
|
input.focus();
|
|
530
495
|
};
|
|
531
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
532
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
496
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputContainerComponent, deps: [{ token: BaseFormInput }, { token: i0.ElementRef }, { token: TranslateService }, { token: i1.DecimalPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
497
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputContainerComponent, isStandalone: false, selector: "dolfo-input-container", providers: [DecimalPipe], ngImport: i0, template: `<div class="input-container" [class.error]="decodedError$ | async">
|
|
533
498
|
@if(input.label){
|
|
534
499
|
<label>
|
|
535
500
|
{{ input.label }}
|
|
@@ -550,7 +515,7 @@ class InputContainerComponent {
|
|
|
550
515
|
}
|
|
551
516
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: TooltipDirective, selector: "[dolfoTooltip]", inputs: ["dolfoTooltip", "direction"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
552
517
|
}
|
|
553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
518
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputContainerComponent, decorators: [{
|
|
554
519
|
type: Component,
|
|
555
520
|
args: [{
|
|
556
521
|
selector: "dolfo-input-container",
|
|
@@ -613,10 +578,10 @@ class BaseFormInput extends Subscriptable {
|
|
|
613
578
|
get isRequired() {
|
|
614
579
|
return this.control.hasValidator(Validators.required);
|
|
615
580
|
}
|
|
616
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
617
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
581
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BaseFormInput, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
582
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: BaseFormInput, isStandalone: true, inputs: { formControlName: "formControlName", label: "label" }, outputs: { onChange: "onChange" }, viewQueries: [{ propertyName: "container", first: true, predicate: InputContainerComponent, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
618
583
|
}
|
|
619
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BaseFormInput, decorators: [{
|
|
620
585
|
type: Directive
|
|
621
586
|
}], propDecorators: { container: [{
|
|
622
587
|
type: ViewChild,
|
|
@@ -638,12 +603,18 @@ class AutocompleteComponent extends BaseFormInput {
|
|
|
638
603
|
resultTemplate;
|
|
639
604
|
onFocus = new EventEmitter();
|
|
640
605
|
onBlur = new EventEmitter();
|
|
641
|
-
options = signal([],
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
606
|
+
options = signal([], /* @ts-ignore */
|
|
607
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
608
|
+
opened = signal(false, /* @ts-ignore */
|
|
609
|
+
...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
|
|
610
|
+
currentOption = signal("", /* @ts-ignore */
|
|
611
|
+
...(ngDevMode ? [{ debugName: "currentOption" }] : /* istanbul ignore next */ []));
|
|
612
|
+
currentOptionLabel = signal("", /* @ts-ignore */
|
|
613
|
+
...(ngDevMode ? [{ debugName: "currentOptionLabel" }] : /* istanbul ignore next */ []));
|
|
614
|
+
loading = signal(false, /* @ts-ignore */
|
|
615
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
616
|
+
currentFocus = signal(null, /* @ts-ignore */
|
|
617
|
+
...(ngDevMode ? [{ debugName: "currentFocus" }] : /* istanbul ignore next */ []));
|
|
647
618
|
keyDown = false;
|
|
648
619
|
keyDownTimeout;
|
|
649
620
|
constructor() {
|
|
@@ -721,8 +692,8 @@ class AutocompleteComponent extends BaseFormInput {
|
|
|
721
692
|
if (!noEmit)
|
|
722
693
|
this.onChange.emit(this.input.value);
|
|
723
694
|
};
|
|
724
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
725
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
695
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
696
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: AutocompleteComponent, isStandalone: false, selector: "dolfo-autocomplete", inputs: { config: "config", minChars: "minChars", resultTemplate: "resultTemplate" }, outputs: { onFocus: "onFocus", onBlur: "onBlur" }, providers: [
|
|
726
697
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => AutocompleteComponent), multi: true },
|
|
727
698
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => AutocompleteComponent), multi: true },
|
|
728
699
|
{ provide: BaseFormInput, useExisting: AutocompleteComponent }
|
|
@@ -757,7 +728,7 @@ class AutocompleteComponent extends BaseFormInput {
|
|
|
757
728
|
</div>
|
|
758
729
|
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
759
730
|
}
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: AutocompleteComponent, decorators: [{
|
|
761
732
|
type: Component,
|
|
762
733
|
args: [{
|
|
763
734
|
selector: "dolfo-autocomplete",
|
|
@@ -821,10 +792,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
821
792
|
class IconWrapperComponent {
|
|
822
793
|
name;
|
|
823
794
|
iconComponent = inject(ICON_COMPONENT);
|
|
824
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
825
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
795
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: IconWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
796
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: IconWrapperComponent, isStandalone: false, selector: "dolfo-icon", inputs: { name: "name" }, ngImport: i0, template: `<ng-container [ngComponentOutlet]="iconComponent" [ngComponentOutletInputs]="{ name }"></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
826
797
|
}
|
|
827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: IconWrapperComponent, decorators: [{
|
|
828
799
|
type: Component,
|
|
829
800
|
args: [{
|
|
830
801
|
selector: "dolfo-icon",
|
|
@@ -845,9 +816,12 @@ class ComboboxComponent extends BaseFormInput {
|
|
|
845
816
|
multiple = false;
|
|
846
817
|
onFocus = new EventEmitter();
|
|
847
818
|
onBlur = new EventEmitter();
|
|
848
|
-
opened = signal(false,
|
|
849
|
-
|
|
850
|
-
|
|
819
|
+
opened = signal(false, /* @ts-ignore */
|
|
820
|
+
...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
|
|
821
|
+
currentFocus = signal(null, /* @ts-ignore */
|
|
822
|
+
...(ngDevMode ? [{ debugName: "currentFocus" }] : /* istanbul ignore next */ []));
|
|
823
|
+
comboLabel = signal("", /* @ts-ignore */
|
|
824
|
+
...(ngDevMode ? [{ debugName: "comboLabel" }] : /* istanbul ignore next */ []));
|
|
851
825
|
constructor(cdr) {
|
|
852
826
|
super();
|
|
853
827
|
this.cdr = cdr;
|
|
@@ -929,8 +903,8 @@ class ComboboxComponent extends BaseFormInput {
|
|
|
929
903
|
get hasValue() {
|
|
930
904
|
return this.multiple ? this.input.value != null && this.input.value.length > 0 : this.input.value != null;
|
|
931
905
|
}
|
|
932
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
933
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
906
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ComboboxComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
907
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ComboboxComponent, isStandalone: false, selector: "dolfo-combobox", inputs: { options: "options", placeHolder: "placeHolder", multiple: ["multiple", "multiple", booleanAttribute] }, outputs: { onFocus: "onFocus", onBlur: "onBlur" }, providers: [
|
|
934
908
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => ComboboxComponent), multi: true },
|
|
935
909
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => ComboboxComponent), multi: true },
|
|
936
910
|
{ provide: BaseFormInput, useExisting: ComboboxComponent }
|
|
@@ -955,9 +929,9 @@ class ComboboxComponent extends BaseFormInput {
|
|
|
955
929
|
|
|
956
930
|
<input type="hidden" [formControl]="input" />
|
|
957
931
|
</div>
|
|
958
|
-
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TooltipDirective, selector: "[dolfoTooltip]", inputs: ["dolfoTooltip", "direction"] }, { kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
932
|
+
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: TooltipDirective, selector: "[dolfoTooltip]", inputs: ["dolfoTooltip", "direction"] }, { kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
959
933
|
}
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ComboboxComponent, decorators: [{
|
|
961
935
|
type: Component,
|
|
962
936
|
args: [{
|
|
963
937
|
selector: "dolfo-combobox",
|
|
@@ -1014,16 +988,16 @@ class DatepickerComponent extends BaseFormInput {
|
|
|
1014
988
|
onFocus = new EventEmitter();
|
|
1015
989
|
onBlur = new EventEmitter();
|
|
1016
990
|
openPicker = () => this.formInput.nativeElement.showPicker();
|
|
1017
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1018
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
991
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DatepickerComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
992
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "22.0.5", type: DatepickerComponent, isStandalone: false, selector: "dolfo-datepicker", inputs: { selectTime: ["selectTime", "selectTime", booleanAttribute] }, outputs: { onFocus: "onFocus", onBlur: "onBlur" }, providers: [
|
|
1019
993
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => DatepickerComponent), multi: true },
|
|
1020
994
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => DatepickerComponent), multi: true },
|
|
1021
995
|
{ provide: BaseFormInput, useExisting: DatepickerComponent }
|
|
1022
996
|
], viewQueries: [{ propertyName: "formInput", first: true, predicate: ["formInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<dolfo-input-container>
|
|
1023
997
|
<input #formInput [type]="selectTime ? 'datetime-local' : 'date'" [formControl]="input" (focus)="openPicker(); onFocus.emit($event)" (blur)="onBlur.emit($event)" />
|
|
1024
|
-
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
998
|
+
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1025
999
|
}
|
|
1026
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DatepickerComponent, decorators: [{
|
|
1027
1001
|
type: Component,
|
|
1028
1002
|
args: [{
|
|
1029
1003
|
selector: "dolfo-datepicker",
|
|
@@ -1053,8 +1027,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1053
1027
|
class FormComponent {
|
|
1054
1028
|
formGroup;
|
|
1055
1029
|
hiddenSubmit;
|
|
1056
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1057
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1030
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1031
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: FormComponent, isStandalone: false, selector: "dolfo-form", inputs: { formGroup: "formGroup", hiddenSubmit: ["hiddenSubmit", "hiddenSubmit", booleanAttribute] }, ngImport: i0, template: `<form [formGroup]="formGroup">
|
|
1058
1032
|
<ng-content></ng-content>
|
|
1059
1033
|
|
|
1060
1034
|
@if(hiddenSubmit){
|
|
@@ -1062,7 +1036,7 @@ class FormComponent {
|
|
|
1062
1036
|
}
|
|
1063
1037
|
</form>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1064
1038
|
}
|
|
1065
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1039
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormComponent, decorators: [{
|
|
1066
1040
|
type: Component,
|
|
1067
1041
|
args: [{
|
|
1068
1042
|
selector: "dolfo-form",
|
|
@@ -1088,8 +1062,10 @@ class BaseAppComponent extends Subscriptable {
|
|
|
1088
1062
|
injector = inject(Injector);
|
|
1089
1063
|
router = inject(Router);
|
|
1090
1064
|
storeService = inject(StoreService);
|
|
1091
|
-
loading = signal(0,
|
|
1092
|
-
|
|
1065
|
+
loading = signal(0, /* @ts-ignore */
|
|
1066
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
1067
|
+
loadingMessage = signal("...", /* @ts-ignore */
|
|
1068
|
+
...(ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []));
|
|
1093
1069
|
ngOnInit() {
|
|
1094
1070
|
from(Object.values(this.streams)).pipe(concatAll(), tap(desc => {
|
|
1095
1071
|
this.loading.update(item => item + 1);
|
|
@@ -1110,10 +1086,10 @@ class BaseAppComponent extends Subscriptable {
|
|
|
1110
1086
|
get percentage() {
|
|
1111
1087
|
return (this.loading() * 100) / Object.keys(this.streams).length;
|
|
1112
1088
|
}
|
|
1113
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1114
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1089
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BaseAppComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1090
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: BaseAppComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
1115
1091
|
}
|
|
1116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1092
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: BaseAppComponent, decorators: [{
|
|
1117
1093
|
type: Directive
|
|
1118
1094
|
}] });
|
|
1119
1095
|
|
|
@@ -1134,17 +1110,7 @@ class Formable extends Subscriptable {
|
|
|
1134
1110
|
else
|
|
1135
1111
|
this.formRef.form.enable();
|
|
1136
1112
|
}));
|
|
1137
|
-
this.subForm = this.formRef.ngSubmit.pipe(tap(() => {
|
|
1138
|
-
let focused = false;
|
|
1139
|
-
Object.entries(this.formRef.form.controls).forEach(([key, control]) => {
|
|
1140
|
-
control.markAsTouched();
|
|
1141
|
-
control.updateValueAndValidity();
|
|
1142
|
-
if (control.invalid && !focused) {
|
|
1143
|
-
this.inputs.toArray().find(i => i.formControlName === key).container?.focus();
|
|
1144
|
-
focused = true;
|
|
1145
|
-
}
|
|
1146
|
-
});
|
|
1147
|
-
}), mergeMap(() => {
|
|
1113
|
+
this.subForm = this.formRef.ngSubmit.pipe(tap(() => this.findInForm(this.formRef.form)), mergeMap(() => {
|
|
1148
1114
|
if (!this.formRef.invalid && !this.loading$.getValue()) {
|
|
1149
1115
|
this.loading$.next(true);
|
|
1150
1116
|
return this.submit(this.formRef.form.getRawValue()).pipe(catchError(err => {
|
|
@@ -1165,11 +1131,37 @@ class Formable extends Subscriptable {
|
|
|
1165
1131
|
else if (this.formRef && !this.subForm)
|
|
1166
1132
|
this.ngAfterViewInit();
|
|
1167
1133
|
}
|
|
1134
|
+
findInForm = (formGroup, index) => {
|
|
1135
|
+
for (const [key, control] of Object.entries(formGroup.controls)) {
|
|
1136
|
+
control.markAsTouched();
|
|
1137
|
+
control.updateValueAndValidity();
|
|
1138
|
+
if (control.invalid) {
|
|
1139
|
+
const arr = formGroup.get(key);
|
|
1140
|
+
if (arr instanceof FormArray) {
|
|
1141
|
+
let index = 0;
|
|
1142
|
+
for (const item of arr.controls) {
|
|
1143
|
+
if (this.findInForm(item, index))
|
|
1144
|
+
return true;
|
|
1145
|
+
index++;
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
else {
|
|
1149
|
+
const inputs = this.inputs.toArray().filter(i => i.formControlName === key);
|
|
1150
|
+
if (inputs.length === 1)
|
|
1151
|
+
inputs[0].container?.focus();
|
|
1152
|
+
else if (index != null)
|
|
1153
|
+
inputs[index].container?.focus();
|
|
1154
|
+
return true;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
return false;
|
|
1159
|
+
};
|
|
1168
1160
|
manualSubmit = () => this.formRef.ngSubmit.emit();
|
|
1169
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1170
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Formable, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1162
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: Formable, isStandalone: true, viewQueries: [{ propertyName: "formRef", first: true, predicate: FormGroupDirective, descendants: true }, { propertyName: "inputs", predicate: BaseFormInput, descendants: true }], usesInheritance: true, ngImport: i0 });
|
|
1171
1163
|
}
|
|
1172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: Formable, decorators: [{
|
|
1173
1165
|
type: Directive
|
|
1174
1166
|
}], propDecorators: { formRef: [{
|
|
1175
1167
|
type: ViewChild,
|
|
@@ -1201,8 +1193,8 @@ class ContextMenuComponent extends Subscriptable {
|
|
|
1201
1193
|
this.destroyFn();
|
|
1202
1194
|
}
|
|
1203
1195
|
};
|
|
1204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1205
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1196
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ContextMenuComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1197
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ContextMenuComponent, isStandalone: false, selector: "dolfo-context-menu", inputs: { x: "x", y: "y", items: "items", ref: "ref", position: "position" }, usesInheritance: true, ngImport: i0, template: `<div class="context-menu" [ngStyle]="{
|
|
1206
1198
|
top: y + 'px',
|
|
1207
1199
|
left: x + 'px'
|
|
1208
1200
|
}" (click)="$event.stopPropagation()" [ngClass]="'position-' + position">
|
|
@@ -1216,7 +1208,7 @@ class ContextMenuComponent extends Subscriptable {
|
|
|
1216
1208
|
}
|
|
1217
1209
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1218
1210
|
}
|
|
1219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ContextMenuComponent, decorators: [{
|
|
1220
1212
|
type: Component,
|
|
1221
1213
|
args: [{
|
|
1222
1214
|
selector: "dolfo-context-menu",
|
|
@@ -1269,8 +1261,8 @@ class InputTextComponent extends BaseFormInput {
|
|
|
1269
1261
|
}));
|
|
1270
1262
|
}
|
|
1271
1263
|
}
|
|
1272
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1273
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1264
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputTextComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputTextComponent, isStandalone: false, selector: "dolfo-input-text", inputs: { type: "type", placeHolder: "placeHolder" }, outputs: { onFocus: "onFocus", onBlur: "onBlur" }, providers: [
|
|
1274
1266
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => InputTextComponent), multi: true },
|
|
1275
1267
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => InputTextComponent), multi: true },
|
|
1276
1268
|
{ provide: BaseFormInput, useExisting: InputTextComponent }
|
|
@@ -1280,9 +1272,9 @@ class InputTextComponent extends BaseFormInput {
|
|
|
1280
1272
|
}@else{
|
|
1281
1273
|
<input #formInput [name]="formControlName" [type]="type" [formControl]="input" (focus)="onFocus.emit($event)" (blur)="onBlur.emit($event)" [placeholder]="placeHolder" />
|
|
1282
1274
|
}
|
|
1283
|
-
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }] });
|
|
1275
|
+
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }] });
|
|
1284
1276
|
}
|
|
1285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputTextComponent, decorators: [{
|
|
1286
1278
|
type: Component,
|
|
1287
1279
|
args: [{
|
|
1288
1280
|
selector: "dolfo-input-text",
|
|
@@ -1322,8 +1314,8 @@ class InputRadioComponent extends BaseFormInput {
|
|
|
1322
1314
|
this.input.setValue(opt.value);
|
|
1323
1315
|
this.onChange.emit(this.input.value);
|
|
1324
1316
|
};
|
|
1325
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1326
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputRadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1318
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputRadioComponent, isStandalone: false, selector: "dolfo-input-radio", inputs: { options: "options" }, providers: [
|
|
1327
1319
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => InputRadioComponent), multi: true },
|
|
1328
1320
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => InputRadioComponent), multi: true },
|
|
1329
1321
|
{ provide: BaseFormInput, useExisting: InputRadioComponent }
|
|
@@ -1334,9 +1326,9 @@ class InputRadioComponent extends BaseFormInput {
|
|
|
1334
1326
|
<label (click)="setOption(option)">{{ option.label }}</label>
|
|
1335
1327
|
</div>
|
|
1336
1328
|
}
|
|
1337
|
-
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1329
|
+
</dolfo-input-container>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.RadioControlValueAccessor, selector: "input[type=radio]:not([ngNoCva])[formControlName],input[type=radio]:not([ngNoCva])[formControl],input[type=radio]:not([ngNoCva])[ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: InputContainerComponent, selector: "dolfo-input-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1338
1330
|
}
|
|
1339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputRadioComponent, decorators: [{
|
|
1340
1332
|
type: Component,
|
|
1341
1333
|
args: [{
|
|
1342
1334
|
selector: "dolfo-input-radio",
|
|
@@ -1370,10 +1362,10 @@ class DialogContentComponent {
|
|
|
1370
1362
|
ngOnInit() {
|
|
1371
1363
|
this.cdr.detectChanges();
|
|
1372
1364
|
}
|
|
1373
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1374
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1365
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogContentComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1366
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: DialogContentComponent, isStandalone: false, selector: "dolfo-dialog-content", viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `<ng-template><ng-content></ng-content></ng-template>`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1375
1367
|
}
|
|
1376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogContentComponent, decorators: [{
|
|
1377
1369
|
type: Component,
|
|
1378
1370
|
args: [{
|
|
1379
1371
|
selector: "dolfo-dialog-content",
|
|
@@ -1404,15 +1396,15 @@ class ButtonComponent {
|
|
|
1404
1396
|
if (!this.disabled && !this.loading)
|
|
1405
1397
|
this.btn.nativeElement.focus();
|
|
1406
1398
|
};
|
|
1407
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1408
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1399
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1400
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: ButtonComponent, isStandalone: false, selector: "dolfo-button", inputs: { type: "type", disabled: ["disabled", "disabled", booleanAttribute], color: "color", loading: "loading", size: "size" }, outputs: { onClick: "onClick", onBlur: "onBlur", onFocus: "onFocus" }, viewQueries: [{ propertyName: "btn", first: true, predicate: ["btn"], descendants: true }], ngImport: i0, template: `<button #btn [type]="type" [disabled]="disabled || loading" (click)="doClick($event)" [class]="'color-' + (color || 'primary')" (focus)="onFocus.emit($event)" (blur)="onFocus.emit($event)" [class.size-sm]="size === 'small'" [class.size-lg]="size === 'large'">
|
|
1409
1401
|
@if(loading){
|
|
1410
1402
|
<dolfo-icon name="spinner8"></dolfo-icon>
|
|
1411
1403
|
}
|
|
1412
1404
|
<ng-content></ng-content>
|
|
1413
1405
|
</button>`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1414
1406
|
}
|
|
1415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
1416
1408
|
type: Component,
|
|
1417
1409
|
args: [{
|
|
1418
1410
|
selector: "dolfo-button",
|
|
@@ -1466,8 +1458,8 @@ class DialogHeaderComponent {
|
|
|
1466
1458
|
this.dialogService.close();
|
|
1467
1459
|
};
|
|
1468
1460
|
getIcon = () => this.icon.icon;
|
|
1469
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1470
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1461
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogHeaderComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1462
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DialogHeaderComponent, isStandalone: false, selector: "dolfo-dialog-header", inputs: { title: "title", icon: "icon", showCloseX: ["showCloseX", "showCloseX", booleanAttribute] }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: `<ng-template>
|
|
1471
1463
|
<h5>
|
|
1472
1464
|
@if(icon){
|
|
1473
1465
|
<dolfo-icon [name]="getIcon()" [class]="'fg-' + icon.color"></dolfo-icon>
|
|
@@ -1476,12 +1468,12 @@ class DialogHeaderComponent {
|
|
|
1476
1468
|
</h5>
|
|
1477
1469
|
@if(showCloseX){
|
|
1478
1470
|
<dolfo-button (click)="close()" color="secondary" [dolfoTooltip]="'dialog.close' | translate">
|
|
1479
|
-
<
|
|
1471
|
+
<dolfo-icon name="cross"></dolfo-icon>
|
|
1480
1472
|
</dolfo-button>
|
|
1481
1473
|
}
|
|
1482
1474
|
</ng-template>`, isInline: true, dependencies: [{ kind: "directive", type: TooltipDirective, selector: "[dolfoTooltip]", inputs: ["dolfoTooltip", "direction"] }, { kind: "component", type: ButtonComponent, selector: "dolfo-button", inputs: ["type", "disabled", "color", "loading", "size"], outputs: ["onClick", "onBlur", "onFocus"] }, { kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1483
1475
|
}
|
|
1484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogHeaderComponent, decorators: [{
|
|
1485
1477
|
type: Component,
|
|
1486
1478
|
args: [{
|
|
1487
1479
|
selector: "dolfo-dialog-header",
|
|
@@ -1494,7 +1486,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1494
1486
|
</h5>
|
|
1495
1487
|
@if(showCloseX){
|
|
1496
1488
|
<dolfo-button (click)="close()" color="secondary" [dolfoTooltip]="'dialog.close' | translate">
|
|
1497
|
-
<
|
|
1489
|
+
<dolfo-icon name="cross"></dolfo-icon>
|
|
1498
1490
|
</dolfo-button>
|
|
1499
1491
|
}
|
|
1500
1492
|
</ng-template>`,
|
|
@@ -1515,15 +1507,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1515
1507
|
}] } });
|
|
1516
1508
|
|
|
1517
1509
|
class DialogFooterComponent {
|
|
1518
|
-
cdr;
|
|
1519
1510
|
template;
|
|
1520
1511
|
childrenButtons;
|
|
1521
1512
|
buttons;
|
|
1522
1513
|
focused = false;
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
ngOnInit() {
|
|
1514
|
+
cdr = inject(ChangeDetectorRef);
|
|
1515
|
+
injector = inject(Injector);
|
|
1516
|
+
async ngOnInit() {
|
|
1527
1517
|
this.cdr.detectChanges();
|
|
1528
1518
|
setTimeout(() => this.cdr.markForCheck());
|
|
1529
1519
|
}
|
|
@@ -1535,8 +1525,8 @@ class DialogFooterComponent {
|
|
|
1535
1525
|
this.focused = true;
|
|
1536
1526
|
}
|
|
1537
1527
|
}
|
|
1538
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1539
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1528
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1529
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DialogFooterComponent, isStandalone: false, selector: "dolfo-dialog-footer", inputs: { buttons: "buttons" }, viewQueries: [{ propertyName: "template", first: true, predicate: TemplateRef, descendants: true }, { propertyName: "childrenButtons", predicate: ButtonComponent, descendants: true }], ngImport: i0, template: `<ng-template>
|
|
1540
1530
|
@for(btn of buttons; track btn.label){
|
|
1541
1531
|
<dolfo-button (onClick)="btn.onClick()" [color]="btn.color" [disabled]="btn.disabled" [loading]="btn.loading">
|
|
1542
1532
|
@if(btn.icon && !btn.loading){
|
|
@@ -1547,7 +1537,7 @@ class DialogFooterComponent {
|
|
|
1547
1537
|
}
|
|
1548
1538
|
</ng-template>`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "dolfo-button", inputs: ["type", "disabled", "color", "loading", "size"], outputs: ["onClick", "onBlur", "onFocus"] }, { kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1549
1539
|
}
|
|
1550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogFooterComponent, decorators: [{
|
|
1551
1541
|
type: Component,
|
|
1552
1542
|
args: [{
|
|
1553
1543
|
selector: "dolfo-dialog-footer",
|
|
@@ -1564,7 +1554,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1564
1554
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1565
1555
|
standalone: false
|
|
1566
1556
|
}]
|
|
1567
|
-
}],
|
|
1557
|
+
}], propDecorators: { template: [{
|
|
1568
1558
|
type: ViewChild,
|
|
1569
1559
|
args: [TemplateRef]
|
|
1570
1560
|
}], childrenButtons: [{
|
|
@@ -1580,10 +1570,10 @@ class DialogLayoutComponent {
|
|
|
1580
1570
|
content;
|
|
1581
1571
|
footer;
|
|
1582
1572
|
width;
|
|
1583
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1584
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1573
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogLayoutComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1574
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DialogLayoutComponent, isStandalone: false, selector: "dolfo-dialog-layout", inputs: { width: "width" }, queries: [{ propertyName: "header", first: true, predicate: DialogHeaderComponent, descendants: true }, { propertyName: "content", first: true, predicate: DialogContentComponent, descendants: true }, { propertyName: "footer", first: true, predicate: DialogFooterComponent, descendants: true }], ngImport: i0, template: "<div class=\"dialog\">\r\n <div class=\"dialog-inner\" [ngStyle]=\"{ width: width + 'px' }\">\r\n @if(header){\r\n <div class=\"dialog-header\">\r\n <ng-content *ngTemplateOutlet=\"header.template\"></ng-content>\r\n </div>\r\n }\r\n @if(content){\r\n <div class=\"dialog-content\">\r\n <ng-content *ngTemplateOutlet=\"content.template\"></ng-content>\r\n </div>\r\n }\r\n @if(footer){\r\n <div class=\"dialog-footer\">\r\n <ng-content *ngTemplateOutlet=\"footer.template\"></ng-content>\r\n </div>\r\n }\r\n </div>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1585
1575
|
}
|
|
1586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogLayoutComponent, decorators: [{
|
|
1587
1577
|
type: Component,
|
|
1588
1578
|
args: [{ selector: "dolfo-dialog-layout", changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div class=\"dialog\">\r\n <div class=\"dialog-inner\" [ngStyle]=\"{ width: width + 'px' }\">\r\n @if(header){\r\n <div class=\"dialog-header\">\r\n <ng-content *ngTemplateOutlet=\"header.template\"></ng-content>\r\n </div>\r\n }\r\n @if(content){\r\n <div class=\"dialog-content\">\r\n <ng-content *ngTemplateOutlet=\"content.template\"></ng-content>\r\n </div>\r\n }\r\n @if(footer){\r\n <div class=\"dialog-footer\">\r\n <ng-content *ngTemplateOutlet=\"footer.template\"></ng-content>\r\n </div>\r\n }\r\n </div>\r\n</div>" }]
|
|
1589
1579
|
}], propDecorators: { header: [{
|
|
@@ -1660,8 +1650,8 @@ class DialogComponent extends Formable {
|
|
|
1660
1650
|
}];
|
|
1661
1651
|
};
|
|
1662
1652
|
sanitizeMsg = () => this.sanitizer.bypassSecurityTrustHtml(this.message);
|
|
1663
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1664
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1653
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1654
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: DialogComponent, isStandalone: false, selector: "dolfo-dialog", inputs: { title: "title", message: "message", type: "type", width: "width", hideCloseX: "hideCloseX", form: "form", component: "component", buttons: "buttons", className: "className" }, usesInheritance: true, ngImport: i0, template: `<dolfo-dialog-layout [width]="width" [ngClass]="className">
|
|
1665
1655
|
@if(title){
|
|
1666
1656
|
<dolfo-dialog-header [title]="title" [showCloseX]="showCloseX()" [icon]="getIcon()"></dolfo-dialog-header>
|
|
1667
1657
|
}
|
|
@@ -1705,7 +1695,7 @@ class DialogComponent extends Formable {
|
|
|
1705
1695
|
}
|
|
1706
1696
|
</dolfo-dialog-layout>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: InputTextComponent, selector: "dolfo-input-text", inputs: ["type", "placeHolder"], outputs: ["onFocus", "onBlur"] }, { kind: "component", type: ComboboxComponent, selector: "dolfo-combobox", inputs: ["options", "placeHolder", "multiple"], outputs: ["onFocus", "onBlur"] }, { kind: "component", type: DatepickerComponent, selector: "dolfo-datepicker", inputs: ["selectTime"], outputs: ["onFocus", "onBlur"] }, { kind: "component", type: AutocompleteComponent, selector: "dolfo-autocomplete", inputs: ["config", "minChars", "resultTemplate"], outputs: ["onFocus", "onBlur"] }, { kind: "component", type: InputRadioComponent, selector: "dolfo-input-radio", inputs: ["options"] }, { kind: "component", type: DialogContentComponent, selector: "dolfo-dialog-content" }, { kind: "component", type: DialogHeaderComponent, selector: "dolfo-dialog-header", inputs: ["title", "icon", "showCloseX"] }, { kind: "component", type: DialogFooterComponent, selector: "dolfo-dialog-footer", inputs: ["buttons"] }, { kind: "component", type: DialogLayoutComponent, selector: "dolfo-dialog-layout", inputs: ["width"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1707
1697
|
}
|
|
1708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogComponent, decorators: [{
|
|
1709
1699
|
type: Component,
|
|
1710
1700
|
args: [{
|
|
1711
1701
|
selector: "dolfo-dialog",
|
|
@@ -1798,8 +1788,8 @@ class NotificationComponent {
|
|
|
1798
1788
|
this.ns.hide();
|
|
1799
1789
|
};
|
|
1800
1790
|
getTitleByType = () => this.ts.translate("notification." + this.type);
|
|
1801
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1802
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1791
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NotificationComponent, deps: [{ token: NotificationService }, { token: TranslateService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1792
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: NotificationComponent, isStandalone: false, selector: "dolfo-notification", inputs: { title: "title", message: "message", type: "type", action: "action" }, ngImport: i0, template: `<div class="notification" [ngClass]="{
|
|
1803
1793
|
success: type === 'success',
|
|
1804
1794
|
error: type === 'error',
|
|
1805
1795
|
warning: type === 'warning',
|
|
@@ -1821,7 +1811,7 @@ class NotificationComponent {
|
|
|
1821
1811
|
}
|
|
1822
1812
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ButtonComponent, selector: "dolfo-button", inputs: ["type", "disabled", "color", "loading", "size"], outputs: ["onClick", "onBlur", "onFocus"] }, { kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1823
1813
|
}
|
|
1824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
1825
1815
|
type: Component,
|
|
1826
1816
|
args: [{
|
|
1827
1817
|
selector: "dolfo-notification",
|
|
@@ -1933,8 +1923,8 @@ class PopoverComponent extends Subscriptable {
|
|
|
1933
1923
|
getContentStr = () => this.sanitizer.bypassSecurityTrustHtml(this.content);
|
|
1934
1924
|
isTemplate = () => this.content instanceof TemplateRef;
|
|
1935
1925
|
getContentTemplate = () => this.content;
|
|
1936
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1937
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1926
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: PopoverComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
1927
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: PopoverComponent, isStandalone: false, selector: "dolfo-popover", inputs: { content: "content", elementRef: "elementRef", direction: "direction", context: "context" }, viewQueries: [{ propertyName: "tooltipRef", first: true, predicate: ["tooltipRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div class="tooltip popover" #tooltipRef [ngStyle]="{
|
|
1938
1928
|
left: (x$ | async) + 'px',
|
|
1939
1929
|
top: (y$ | async) + 'px'
|
|
1940
1930
|
}" [ngClass]="currentDirection$ | async" [class.show]="completed$ | async">
|
|
@@ -1945,7 +1935,7 @@ class PopoverComponent extends Subscriptable {
|
|
|
1945
1935
|
}
|
|
1946
1936
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1947
1937
|
}
|
|
1948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: PopoverComponent, decorators: [{
|
|
1949
1939
|
type: Component,
|
|
1950
1940
|
args: [{
|
|
1951
1941
|
selector: "dolfo-popover",
|
|
@@ -2044,15 +2034,15 @@ class TooltipComponent extends Subscriptable {
|
|
|
2044
2034
|
const { top, left, bottom, right } = this.tooltipRef.nativeElement.getBoundingClientRect();
|
|
2045
2035
|
return top >= 0 && left >= 0 && bottom <= window.innerHeight && right <= window.innerWidth;
|
|
2046
2036
|
};
|
|
2047
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2048
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2037
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2038
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: TooltipComponent, isStandalone: false, selector: "dolfo-tooltip", inputs: { content: "content", elementRef: "elementRef", direction: "direction" }, viewQueries: [{ propertyName: "tooltipRef", first: true, predicate: ["tooltipRef"], descendants: true }], usesInheritance: true, ngImport: i0, template: `<div class="tooltip" #tooltipRef [ngStyle]="{
|
|
2049
2039
|
left: (x$ | async) + 'px',
|
|
2050
2040
|
top: (y$ | async) + 'px'
|
|
2051
2041
|
}" [ngClass]="currentDirection$ | async" [class.show]="completed$ | async">
|
|
2052
2042
|
{{ content }}
|
|
2053
2043
|
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2054
2044
|
}
|
|
2055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2045
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
2056
2046
|
type: Component,
|
|
2057
2047
|
args: [{
|
|
2058
2048
|
selector: "dolfo-tooltip",
|
|
@@ -2236,10 +2226,10 @@ class ContextMenuDirective extends Subscriptable {
|
|
|
2236
2226
|
return [diff, top];
|
|
2237
2227
|
return [this.elRef.nativeElement.offsetLeft, top];
|
|
2238
2228
|
};
|
|
2239
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2240
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
2229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ContextMenuDirective, deps: [{ token: ContextMenuService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2230
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "22.0.5", type: ContextMenuDirective, isStandalone: false, selector: "[dolfoContextMenu]", inputs: { contextMenu: ["dolfoContextMenu", "contextMenu"], openOnClick: ["openOnClick", "openOnClick", booleanAttribute], useElRef: ["useElRef", "useElRef", booleanAttribute], position: "position" }, usesInheritance: true, ngImport: i0 });
|
|
2241
2231
|
}
|
|
2242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ContextMenuDirective, decorators: [{
|
|
2243
2233
|
type: Directive,
|
|
2244
2234
|
args: [{
|
|
2245
2235
|
selector: "[dolfoContextMenu]",
|
|
@@ -2287,10 +2277,10 @@ class NavigateDirective extends Subscriptable {
|
|
|
2287
2277
|
this.elementRef.nativeElement.setAttribute("href", this.url);
|
|
2288
2278
|
}
|
|
2289
2279
|
openBlank = () => window.open(this.publicUrl + this.url, "_blank");
|
|
2290
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2291
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NavigateDirective, deps: [{ token: StoreService }, { token: i2.Router }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2281
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: NavigateDirective, isStandalone: false, selector: "[dolfoNavigate]", inputs: { url: ["dolfoNavigate", "url"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 });
|
|
2292
2282
|
}
|
|
2293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NavigateDirective, decorators: [{
|
|
2294
2284
|
type: Directive,
|
|
2295
2285
|
args: [{
|
|
2296
2286
|
selector: "[dolfoNavigate]",
|
|
@@ -2321,10 +2311,10 @@ class PopoverDirective extends Subscriptable {
|
|
|
2321
2311
|
context: this.context
|
|
2322
2312
|
})));
|
|
2323
2313
|
}
|
|
2324
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2325
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2314
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: PopoverDirective, deps: [{ token: i0.ElementRef }, { token: PopoverService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2315
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: PopoverDirective, isStandalone: false, selector: "[dolfoPopover]", inputs: { content: ["dolfoPopover", "content"], context: ["dolfoPopoverContext", "context"], direction: "direction" }, usesInheritance: true, ngImport: i0 });
|
|
2326
2316
|
}
|
|
2327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: PopoverDirective, decorators: [{
|
|
2328
2318
|
type: Directive,
|
|
2329
2319
|
args: [{
|
|
2330
2320
|
selector: "[dolfoPopover]",
|
|
@@ -2380,10 +2370,10 @@ class ScrollDragDirective extends Subscriptable {
|
|
|
2380
2370
|
}
|
|
2381
2371
|
}));
|
|
2382
2372
|
}
|
|
2383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2384
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2373
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ScrollDragDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2374
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.5", type: ScrollDragDirective, isStandalone: false, selector: "[dolfoScrollDrag]", usesInheritance: true, ngImport: i0 });
|
|
2385
2375
|
}
|
|
2386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ScrollDragDirective, decorators: [{
|
|
2387
2377
|
type: Directive,
|
|
2388
2378
|
args: [{
|
|
2389
2379
|
selector: "[dolfoScrollDrag]",
|
|
@@ -2392,11 +2382,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2392
2382
|
}], ctorParameters: () => [{ type: i0.ElementRef }] });
|
|
2393
2383
|
|
|
2394
2384
|
class DirectivesModule {
|
|
2395
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2396
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2397
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2385
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2386
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: DirectivesModule, declarations: [ContextMenuDirective, ScrollDragDirective, TooltipDirective, PopoverDirective, NavigateDirective], exports: [ContextMenuDirective, ScrollDragDirective, TooltipDirective, PopoverDirective, NavigateDirective] });
|
|
2387
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DirectivesModule });
|
|
2398
2388
|
}
|
|
2399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DirectivesModule, decorators: [{
|
|
2400
2390
|
type: NgModule,
|
|
2401
2391
|
args: [{
|
|
2402
2392
|
declarations: [ContextMenuDirective, ScrollDragDirective, TooltipDirective, PopoverDirective, NavigateDirective],
|
|
@@ -2406,13 +2396,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2406
2396
|
|
|
2407
2397
|
class LoaderComponent {
|
|
2408
2398
|
langKey = "loading";
|
|
2409
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2410
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2399
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2400
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: LoaderComponent, isStandalone: false, selector: "dolfo-loader", inputs: { langKey: "langKey" }, ngImport: i0, template: `<div class="loading">
|
|
2411
2401
|
<dolfo-icon name="spinner5"></dolfo-icon>
|
|
2412
2402
|
{{ langKey | translate }}
|
|
2413
2403
|
</div>`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2414
2404
|
}
|
|
2415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LoaderComponent, decorators: [{
|
|
2416
2406
|
type: Component,
|
|
2417
2407
|
args: [{
|
|
2418
2408
|
selector: "dolfo-loader",
|
|
@@ -2428,11 +2418,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2428
2418
|
}] } });
|
|
2429
2419
|
|
|
2430
2420
|
class LayoutModule {
|
|
2431
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2432
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2433
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2421
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2422
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: LayoutModule, declarations: [ButtonComponent, ContextMenuComponent, IconWrapperComponent, LoaderComponent, NotificationComponent, TooltipComponent, IconComponent, PopoverComponent], imports: [CommonModule, DirectivesModule, TranslatePipe], exports: [ButtonComponent, ContextMenuComponent, IconWrapperComponent, LoaderComponent, NotificationComponent, TooltipComponent, IconComponent, PopoverComponent] });
|
|
2423
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LayoutModule, imports: [CommonModule, DirectivesModule] });
|
|
2434
2424
|
}
|
|
2435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2425
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: LayoutModule, decorators: [{
|
|
2436
2426
|
type: NgModule,
|
|
2437
2427
|
args: [{
|
|
2438
2428
|
declarations: [ButtonComponent, ContextMenuComponent, IconWrapperComponent, LoaderComponent, NotificationComponent, TooltipComponent, IconComponent, PopoverComponent],
|
|
@@ -2443,8 +2433,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2443
2433
|
|
|
2444
2434
|
class InputCheckboxComponent extends BaseFormInput {
|
|
2445
2435
|
toggleCheck = () => this.input.setValue(!this.input.value);
|
|
2446
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2447
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2436
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputCheckboxComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2437
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: InputCheckboxComponent, isStandalone: false, selector: "dolfo-input-checkbox", providers: [
|
|
2448
2438
|
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => InputCheckboxComponent), multi: true },
|
|
2449
2439
|
{ provide: NG_VALIDATORS, useExisting: forwardRef(() => InputCheckboxComponent), multi: true },
|
|
2450
2440
|
{ provide: BaseFormInput, useExisting: InputCheckboxComponent }
|
|
@@ -2453,9 +2443,9 @@ class InputCheckboxComponent extends BaseFormInput {
|
|
|
2453
2443
|
@if(label){
|
|
2454
2444
|
<label (click)="toggleCheck()">{{ label }}</label>
|
|
2455
2445
|
}
|
|
2456
|
-
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2446
|
+
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox]:not([ngNoCva])[formControlName],input[type=checkbox]:not([ngNoCva])[formControl],input[type=checkbox]:not([ngNoCva])[ngModel]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2457
2447
|
}
|
|
2458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2448
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: InputCheckboxComponent, decorators: [{
|
|
2459
2449
|
type: Component,
|
|
2460
2450
|
args: [{
|
|
2461
2451
|
selector: "dolfo-input-checkbox",
|
|
@@ -2476,11 +2466,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2476
2466
|
}] });
|
|
2477
2467
|
|
|
2478
2468
|
class FormModule {
|
|
2479
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2480
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2481
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2469
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2470
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: FormModule, declarations: [InputTextComponent, InputContainerComponent, ComboboxComponent, DatepickerComponent, AutocompleteComponent, InputRadioComponent, InputCheckboxComponent, FormComponent], imports: [CommonModule, ReactiveFormsModule, TranslatePipe, DirectivesModule, LayoutModule], exports: [ReactiveFormsModule, InputTextComponent, InputContainerComponent, ComboboxComponent, DatepickerComponent, AutocompleteComponent, InputRadioComponent, InputCheckboxComponent, FormComponent] });
|
|
2471
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormModule, imports: [CommonModule, ReactiveFormsModule, DirectivesModule, LayoutModule, ReactiveFormsModule] });
|
|
2482
2472
|
}
|
|
2483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2473
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: FormModule, decorators: [{
|
|
2484
2474
|
type: NgModule,
|
|
2485
2475
|
args: [{
|
|
2486
2476
|
declarations: [InputTextComponent, InputContainerComponent, ComboboxComponent, DatepickerComponent, AutocompleteComponent, InputRadioComponent, InputCheckboxComponent, FormComponent],
|
|
@@ -2490,11 +2480,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2490
2480
|
}] });
|
|
2491
2481
|
|
|
2492
2482
|
class DialogLayoutModule {
|
|
2493
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2494
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2495
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2483
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2484
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: DialogLayoutModule, declarations: [DialogComponent, DialogContentComponent, DialogHeaderComponent, DialogFooterComponent, DialogLayoutComponent], imports: [CommonModule, DirectivesModule, LayoutModule, ReactiveFormsModule, TranslatePipe, FormModule], exports: [DialogComponent, DialogContentComponent, DialogHeaderComponent, DialogFooterComponent, DialogLayoutComponent] });
|
|
2485
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogLayoutModule, imports: [CommonModule, DirectivesModule, LayoutModule, ReactiveFormsModule, FormModule] });
|
|
2496
2486
|
}
|
|
2497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2487
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: DialogLayoutModule, decorators: [{
|
|
2498
2488
|
type: NgModule,
|
|
2499
2489
|
args: [{
|
|
2500
2490
|
declarations: [DialogComponent, DialogContentComponent, DialogHeaderComponent, DialogFooterComponent, DialogLayoutComponent],
|
|
@@ -2540,10 +2530,10 @@ class GridComponent {
|
|
|
2540
2530
|
col.onLink(colValue);
|
|
2541
2531
|
}
|
|
2542
2532
|
};
|
|
2543
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2544
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GridComponent, deps: [{ token: TranslateService }, { token: i1$2.DomSanitizer }], target: i0.ɵɵFactoryTarget.Component });
|
|
2534
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: GridComponent, isStandalone: false, selector: "dolfo-grid", inputs: { config: "config" }, ngImport: i0, template: "@let loading = config.isLoading$() | async;\r\n\r\n<div class=\"grid-container\" [class.loading]=\"loading\">\r\n @if(loading){\r\n <div class=\"grid-loading\">\r\n <dolfo-icon name=\"spinner2\"></dolfo-icon>\r\n </div>\r\n }\r\n\r\n <table>\r\n @let columns = config.getColumns();\r\n @let showActions = config.hasActions;\r\n @let selection = config.getSelectionConfig();\r\n @let colSpan = columns.length + (showActions ? 1 : 0) + (selection ? 1 : 0);\r\n \r\n <thead>\r\n <tr>\r\n @if(selection){\r\n <th [style]=\"{ width: 0 }\">\r\n @if(selection.showSelectAll && selection.type === \"multiple\"){\r\n <input type=\"checkbox\" [checked]=\"config.isAllSelected()\" (change)=\"config.toggleSelectAll()\" />\r\n }\r\n </th>\r\n }\r\n\r\n @for(col of columns; track col.label){\r\n <th [ngStyle]=\"{ width: col.width + 'px', maxWidth: col.width + 'px' }\">{{ col.label | translate }}</th>\r\n }\r\n \r\n @if(showActions){\r\n <th>{{ \"grid.actions\" | translate }}</th>\r\n }\r\n </tr>\r\n </thead>\r\n \r\n <tbody>\r\n @let list = config.getList$() | async;\r\n \r\n @if(list.length > 0){\r\n @for(item of list; track config.getUniqueId(item)){\r\n @let itemActions = config.getActions$(item) | async;\r\n @let rowClass = config.getRowClass(item);\r\n \r\n <tr (click)=\"config.getEvents()?.onRowClick?.(item)\" [dolfoContextMenu]=\"itemActions\" position=\"bottom-right\">\r\n @if(selection){\r\n <td [ngClass]=\"rowClass\" class=\"align-center\">\r\n <input type=\"checkbox\" [checked]=\"config.isItemSelected(item)\" (change)=\"config.toggleSelection(item)\" />\r\n </td>\r\n }\r\n\r\n @for(col of columns; track col.label){\r\n <td #cell [ngStyle]=\"{ width: col.width + 'px' }\" [ngClass]=\"rowClass\" [class.align-right]=\"col.align === 'right'\" [class.align-center]=\"col.align === 'center'\" (click)=\"checkLink($event, col, item, cell)\" [innerHTML]=\"resolveField(item, col)\"></td>\r\n }\r\n \r\n @if(showActions){\r\n <td class=\"align-center actions\" [ngClass]=\"rowClass\">\r\n @if(itemActions.length > 0){\r\n <dolfo-button color=\"secondary\" [dolfoTooltip]=\"'grid.showActions' | translate\" [dolfoContextMenu]=\"itemActions\" position=\"bottom-right\" openOnClick>\r\n <dolfo-icon name=\"flickr\"></dolfo-icon>\r\n </dolfo-button>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n }\r\n }@else {\r\n <tr>\r\n <td [colSpan]=\"colSpan\" class=\"align-center\">{{ \"grid.noResults\" | translate }}</td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n</div>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: ContextMenuDirective, selector: "[dolfoContextMenu]", inputs: ["dolfoContextMenu", "openOnClick", "useElRef", "position"] }, { kind: "directive", type: TooltipDirective, selector: "[dolfoTooltip]", inputs: ["dolfoTooltip", "direction"] }, { kind: "component", type: ButtonComponent, selector: "dolfo-button", inputs: ["type", "disabled", "color", "loading", "size"], outputs: ["onClick", "onBlur", "onFocus"] }, { kind: "component", type: IconWrapperComponent, selector: "dolfo-icon", inputs: ["name"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] });
|
|
2545
2535
|
}
|
|
2546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GridComponent, decorators: [{
|
|
2547
2537
|
type: Component,
|
|
2548
2538
|
args: [{ selector: "dolfo-grid", standalone: false, template: "@let loading = config.isLoading$() | async;\r\n\r\n<div class=\"grid-container\" [class.loading]=\"loading\">\r\n @if(loading){\r\n <div class=\"grid-loading\">\r\n <dolfo-icon name=\"spinner2\"></dolfo-icon>\r\n </div>\r\n }\r\n\r\n <table>\r\n @let columns = config.getColumns();\r\n @let showActions = config.hasActions;\r\n @let selection = config.getSelectionConfig();\r\n @let colSpan = columns.length + (showActions ? 1 : 0) + (selection ? 1 : 0);\r\n \r\n <thead>\r\n <tr>\r\n @if(selection){\r\n <th [style]=\"{ width: 0 }\">\r\n @if(selection.showSelectAll && selection.type === \"multiple\"){\r\n <input type=\"checkbox\" [checked]=\"config.isAllSelected()\" (change)=\"config.toggleSelectAll()\" />\r\n }\r\n </th>\r\n }\r\n\r\n @for(col of columns; track col.label){\r\n <th [ngStyle]=\"{ width: col.width + 'px', maxWidth: col.width + 'px' }\">{{ col.label | translate }}</th>\r\n }\r\n \r\n @if(showActions){\r\n <th>{{ \"grid.actions\" | translate }}</th>\r\n }\r\n </tr>\r\n </thead>\r\n \r\n <tbody>\r\n @let list = config.getList$() | async;\r\n \r\n @if(list.length > 0){\r\n @for(item of list; track config.getUniqueId(item)){\r\n @let itemActions = config.getActions$(item) | async;\r\n @let rowClass = config.getRowClass(item);\r\n \r\n <tr (click)=\"config.getEvents()?.onRowClick?.(item)\" [dolfoContextMenu]=\"itemActions\" position=\"bottom-right\">\r\n @if(selection){\r\n <td [ngClass]=\"rowClass\" class=\"align-center\">\r\n <input type=\"checkbox\" [checked]=\"config.isItemSelected(item)\" (change)=\"config.toggleSelection(item)\" />\r\n </td>\r\n }\r\n\r\n @for(col of columns; track col.label){\r\n <td #cell [ngStyle]=\"{ width: col.width + 'px' }\" [ngClass]=\"rowClass\" [class.align-right]=\"col.align === 'right'\" [class.align-center]=\"col.align === 'center'\" (click)=\"checkLink($event, col, item, cell)\" [innerHTML]=\"resolveField(item, col)\"></td>\r\n }\r\n \r\n @if(showActions){\r\n <td class=\"align-center actions\" [ngClass]=\"rowClass\">\r\n @if(itemActions.length > 0){\r\n <dolfo-button color=\"secondary\" [dolfoTooltip]=\"'grid.showActions' | translate\" [dolfoContextMenu]=\"itemActions\" position=\"bottom-right\" openOnClick>\r\n <dolfo-icon name=\"flickr\"></dolfo-icon>\r\n </dolfo-button>\r\n }\r\n </td>\r\n }\r\n </tr>\r\n }\r\n }@else {\r\n <tr>\r\n <td [colSpan]=\"colSpan\" class=\"align-center\">{{ \"grid.noResults\" | translate }}</td>\r\n </tr>\r\n }\r\n </tbody>\r\n </table>\r\n</div>" }]
|
|
2549
2539
|
}], ctorParameters: () => [{ type: TranslateService }, { type: i1$2.DomSanitizer }], propDecorators: { config: [{
|
|
@@ -2552,11 +2542,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
2552
2542
|
}] } });
|
|
2553
2543
|
|
|
2554
2544
|
class GridModule {
|
|
2555
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2556
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2557
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2545
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2546
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.5", ngImport: i0, type: GridModule, declarations: [GridComponent], imports: [CommonModule, DirectivesModule, LayoutModule, TranslatePipe], exports: [GridComponent] });
|
|
2547
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GridModule, imports: [CommonModule, DirectivesModule, LayoutModule] });
|
|
2558
2548
|
}
|
|
2559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: GridModule, decorators: [{
|
|
2560
2550
|
type: NgModule,
|
|
2561
2551
|
args: [{
|
|
2562
2552
|
declarations: [GridComponent],
|