@metadev/lux 21.0.0 → 22.0.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/metadev-lux.mjs +207 -187
- package/fesm2022/metadev-lux.mjs.map +1 -1
- package/package.json +7 -6
- package/{index.d.ts → types/metadev-lux.d.ts} +122 -167
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metadev/lux",
|
|
3
3
|
"description": "Lux: Library with User Interface components for Angular.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "22.0.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Metadev S.L.",
|
|
7
7
|
"url": "https://metadev.pro"
|
|
@@ -25,23 +25,24 @@
|
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"peerDependencies": {
|
|
28
|
-
"@angular/common": ">=
|
|
29
|
-
"@angular/core": ">=
|
|
28
|
+
"@angular/common": ">= 22 < 24",
|
|
29
|
+
"@angular/core": ">= 22 < 24",
|
|
30
30
|
"ol": "^6.5.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"tslib": "^2.3.0"
|
|
34
34
|
},
|
|
35
35
|
"module": "fesm2022/metadev-lux.mjs",
|
|
36
|
-
"typings": "
|
|
36
|
+
"typings": "types/metadev-lux.d.ts",
|
|
37
37
|
"exports": {
|
|
38
38
|
"./package.json": {
|
|
39
39
|
"default": "./package.json"
|
|
40
40
|
},
|
|
41
41
|
".": {
|
|
42
|
-
"types": "./
|
|
42
|
+
"types": "./types/metadev-lux.d.ts",
|
|
43
43
|
"default": "./fesm2022/metadev-lux.mjs"
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"sideEffects": false
|
|
46
|
+
"sideEffects": false,
|
|
47
|
+
"type": "module"
|
|
47
48
|
}
|
|
@@ -37,7 +37,7 @@ declare class AutocompleteComponent implements ControlValueAccessor, Validator,
|
|
|
37
37
|
touched: boolean;
|
|
38
38
|
completionList: DecoratedDataSource;
|
|
39
39
|
showCompletion: boolean;
|
|
40
|
-
focusItem: DataSourceItem<any, string
|
|
40
|
+
focusItem: DataSourceItem<any, string> | null;
|
|
41
41
|
valueChange: EventEmitter<any>;
|
|
42
42
|
dataSourceChange: EventEmitter<DataSource<any, string>>;
|
|
43
43
|
inputId: string;
|
|
@@ -88,9 +88,9 @@ declare class AutocompleteComponent implements ControlValueAccessor, Validator,
|
|
|
88
88
|
private focusOnNext;
|
|
89
89
|
private focusOnPrevious;
|
|
90
90
|
onLostFocus(label: string): void;
|
|
91
|
-
complete(item: DataSourceItem<Record<string, unknown>, string>): void;
|
|
92
|
-
toggleCompletion(show: boolean, label: string): void;
|
|
93
|
-
get selectedOption(): string;
|
|
91
|
+
complete(item: DataSourceItem<Record<string, unknown>, string> | null): void;
|
|
92
|
+
toggleCompletion(show: boolean, label: string | null): void;
|
|
93
|
+
get selectedOption(): string | null;
|
|
94
94
|
private ensureItemVisible;
|
|
95
95
|
private syncCustomValue;
|
|
96
96
|
/** Pick selection based on text filtering (ingnores drowdown state) */
|
|
@@ -103,20 +103,16 @@ declare class AutocompleteComponent implements ControlValueAccessor, Validator,
|
|
|
103
103
|
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "lux-autocomplete", never, { "inputId": { "alias": "inputId"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "label": { "alias": "label"; "required": false; }; "canAddNewValues": { "alias": "canAddNewValues"; "required": false; }; "keepOpenAfterDelete": { "alias": "keepOpenAfterDelete"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "value": { "alias": "value"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "resolveLabelsFunction": { "alias": "resolveLabelsFunction"; "required": false; }; "populateFunction": { "alias": "populateFunction"; "required": false; }; "instance": { "alias": "instance"; "required": false; }; }, { "valueChange": "valueChange"; "dataSourceChange": "dataSourceChange"; }, never, never, true, never>;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
+
interface AutocompleteTranslations {
|
|
107
|
+
placeholder: string;
|
|
108
|
+
deleteLabelTemplate: string;
|
|
109
|
+
addMessage: string;
|
|
110
|
+
}
|
|
106
111
|
declare class AutocompleteListComponent implements ControlValueAccessor, Validator, OnInit {
|
|
107
112
|
static idCounter: number;
|
|
108
113
|
auto: AutocompleteListComponent;
|
|
109
114
|
literals: {
|
|
110
|
-
|
|
111
|
-
placeholder: string;
|
|
112
|
-
deleteLabelTemplate: string;
|
|
113
|
-
addMessage: string;
|
|
114
|
-
};
|
|
115
|
-
es: {
|
|
116
|
-
placeholder: string;
|
|
117
|
-
deleteLabelTemplate: string;
|
|
118
|
-
addMessage: string;
|
|
119
|
-
};
|
|
115
|
+
[lang: string]: AutocompleteTranslations;
|
|
120
116
|
};
|
|
121
117
|
internalDataSource: DataSource<any, string>;
|
|
122
118
|
private autoPopulate;
|
|
@@ -130,7 +126,7 @@ declare class AutocompleteListComponent implements ControlValueAccessor, Validat
|
|
|
130
126
|
private _lang;
|
|
131
127
|
get lang(): string;
|
|
132
128
|
set lang(l: string);
|
|
133
|
-
inputId: string;
|
|
129
|
+
inputId: string | undefined;
|
|
134
130
|
dataSource: DataSource<any, any>;
|
|
135
131
|
placeholder?: string;
|
|
136
132
|
disabled: boolean;
|
|
@@ -141,7 +137,7 @@ declare class AutocompleteListComponent implements ControlValueAccessor, Validat
|
|
|
141
137
|
populateFunction?: (instance: any, search: string) => Observable<DataSource<any, string>>;
|
|
142
138
|
instance: any;
|
|
143
139
|
valueChange: EventEmitter<any[]>;
|
|
144
|
-
onChange: (value:
|
|
140
|
+
onChange: (value: unknown) => void;
|
|
145
141
|
onTouched: () => void;
|
|
146
142
|
writeValue(value: any): void;
|
|
147
143
|
registerOnChange(onChange: any): void;
|
|
@@ -182,6 +178,10 @@ declare class LuxBreadcrumbComponent implements OnInit, OnDestroy {
|
|
|
182
178
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuxBreadcrumbComponent, "lux-breadcrumb", never, {}, {}, never, never, true, never>;
|
|
183
179
|
}
|
|
184
180
|
|
|
181
|
+
interface CheckboxTranslations {
|
|
182
|
+
yesLabel: string;
|
|
183
|
+
noLabel: string;
|
|
184
|
+
}
|
|
185
185
|
declare class CheckboxComponent implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
186
186
|
static idCounter: number;
|
|
187
187
|
ck: ElementRef;
|
|
@@ -191,22 +191,15 @@ declare class CheckboxComponent implements ControlValueAccessor, OnInit, AfterVi
|
|
|
191
191
|
private internalValue;
|
|
192
192
|
get value(): boolean;
|
|
193
193
|
set value(v: boolean);
|
|
194
|
-
get tabindexValue(): string;
|
|
195
|
-
label: string;
|
|
196
|
-
name: string;
|
|
194
|
+
get tabindexValue(): string | undefined;
|
|
195
|
+
label: string | undefined;
|
|
196
|
+
name: string | undefined;
|
|
197
197
|
private _disabled;
|
|
198
198
|
get disabled(): boolean;
|
|
199
199
|
set disabled(v: boolean);
|
|
200
|
-
inputId: string;
|
|
200
|
+
inputId: string | undefined;
|
|
201
201
|
literals: {
|
|
202
|
-
|
|
203
|
-
yesLabel: string;
|
|
204
|
-
noLabel: string;
|
|
205
|
-
};
|
|
206
|
-
es: {
|
|
207
|
-
yesLabel: string;
|
|
208
|
-
noLabel: string;
|
|
209
|
-
};
|
|
202
|
+
[lang: string]: CheckboxTranslations;
|
|
210
203
|
};
|
|
211
204
|
touched: boolean;
|
|
212
205
|
valueChange: EventEmitter<boolean>;
|
|
@@ -227,6 +220,11 @@ declare class CheckboxComponent implements ControlValueAccessor, OnInit, AfterVi
|
|
|
227
220
|
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lux-checkbox", never, { "lang": { "alias": "lang"; "required": false; }; "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
228
221
|
}
|
|
229
222
|
|
|
223
|
+
interface DatetimeTranslations {
|
|
224
|
+
required: string;
|
|
225
|
+
min: string;
|
|
226
|
+
max: string;
|
|
227
|
+
}
|
|
230
228
|
declare class DatetimeComponent implements OnInit, ControlValueAccessor, Validator {
|
|
231
229
|
static idCounter: number;
|
|
232
230
|
dateInput: ElementRef;
|
|
@@ -240,16 +238,7 @@ declare class DatetimeComponent implements OnInit, ControlValueAccessor, Validat
|
|
|
240
238
|
dateValue?: string;
|
|
241
239
|
timeValue?: string;
|
|
242
240
|
userErrors: {
|
|
243
|
-
|
|
244
|
-
required: string;
|
|
245
|
-
min: string;
|
|
246
|
-
max: string;
|
|
247
|
-
};
|
|
248
|
-
es: {
|
|
249
|
-
required: string;
|
|
250
|
-
min: string;
|
|
251
|
-
max: string;
|
|
252
|
-
};
|
|
241
|
+
[lang: string]: DatetimeTranslations;
|
|
253
242
|
};
|
|
254
243
|
min?: string;
|
|
255
244
|
max?: string;
|
|
@@ -258,15 +247,15 @@ declare class DatetimeComponent implements OnInit, ControlValueAccessor, Validat
|
|
|
258
247
|
get className(): string;
|
|
259
248
|
lang: string;
|
|
260
249
|
inlineErrors: boolean;
|
|
261
|
-
inputId: string;
|
|
262
|
-
ariaLabel: string;
|
|
250
|
+
inputId: string | undefined;
|
|
251
|
+
ariaLabel: string | undefined;
|
|
263
252
|
readonly: boolean | null;
|
|
264
253
|
set disabled(v: string | boolean);
|
|
265
|
-
get disabled():
|
|
254
|
+
get disabled(): boolean;
|
|
266
255
|
set required(v: boolean);
|
|
267
256
|
get required(): boolean;
|
|
268
|
-
set value(v: string);
|
|
269
|
-
get value(): string;
|
|
257
|
+
set value(v: string | undefined);
|
|
258
|
+
get value(): string | undefined;
|
|
270
259
|
valueChange: EventEmitter<any>;
|
|
271
260
|
keyPress: EventEmitter<KeyboardEvent>;
|
|
272
261
|
onChange: (_value: any) => void;
|
|
@@ -301,7 +290,7 @@ declare class FilterComponent implements ControlValueAccessor, OnInit, OnDestroy
|
|
|
301
290
|
private _searchValue;
|
|
302
291
|
disabled: boolean;
|
|
303
292
|
/** id for the input. If left blank, it is autogenerated */
|
|
304
|
-
inputId: string;
|
|
293
|
+
inputId: string | undefined;
|
|
305
294
|
/** Placeholder default text. */
|
|
306
295
|
placeholder: string;
|
|
307
296
|
/** Search value introduced by the user. */
|
|
@@ -310,16 +299,16 @@ declare class FilterComponent implements ControlValueAccessor, OnInit, OnDestroy
|
|
|
310
299
|
/** Search on type: (default true) Auto-search when user types in. */
|
|
311
300
|
searchOnType: boolean;
|
|
312
301
|
/** Custom aria label in case of not using a label */
|
|
313
|
-
ariaLabel: string;
|
|
302
|
+
ariaLabel: string | undefined;
|
|
314
303
|
private debounceValue;
|
|
315
304
|
/** Debounce time in milliseconds. (defaults to 300 ms) */
|
|
316
305
|
set debounce(val: number);
|
|
317
306
|
get debounce(): number;
|
|
318
307
|
/** Search value changed by user. */
|
|
319
308
|
searchValueChange: EventEmitter<string>;
|
|
320
|
-
searchValue
|
|
309
|
+
searchValue$?: Observable<string>;
|
|
321
310
|
private subject;
|
|
322
|
-
private sub
|
|
311
|
+
private sub?;
|
|
323
312
|
constructor();
|
|
324
313
|
onChange: (value: any) => void;
|
|
325
314
|
onTouched: () => void;
|
|
@@ -377,6 +366,29 @@ declare class GeolocationService {
|
|
|
377
366
|
static ɵprov: i0.ɵɵInjectableDeclaration<GeolocationService>;
|
|
378
367
|
}
|
|
379
368
|
|
|
369
|
+
interface GeoTranslations {
|
|
370
|
+
lat: string;
|
|
371
|
+
lon: string;
|
|
372
|
+
selectLocation: string;
|
|
373
|
+
location: string;
|
|
374
|
+
selectAction: string;
|
|
375
|
+
cancelAction: string;
|
|
376
|
+
closeAction: string;
|
|
377
|
+
typeToSearch: string;
|
|
378
|
+
cardinalPoints: {
|
|
379
|
+
north: string;
|
|
380
|
+
south: string;
|
|
381
|
+
east: string;
|
|
382
|
+
west: string;
|
|
383
|
+
};
|
|
384
|
+
userErrors: {
|
|
385
|
+
required: string;
|
|
386
|
+
minLatitude: string;
|
|
387
|
+
maxLatitude: string;
|
|
388
|
+
minLongitude: string;
|
|
389
|
+
maxLongitude: string;
|
|
390
|
+
};
|
|
391
|
+
}
|
|
380
392
|
declare class GeolocationComponent implements OnInit {
|
|
381
393
|
private modalService;
|
|
382
394
|
locationService: GeolocationService;
|
|
@@ -394,71 +406,26 @@ declare class GeolocationComponent implements OnInit {
|
|
|
394
406
|
longitudeValue?: number;
|
|
395
407
|
isValidNumber: (value: string | number | undefined | null) => boolean;
|
|
396
408
|
i18n: {
|
|
397
|
-
|
|
398
|
-
lat: string;
|
|
399
|
-
lon: string;
|
|
400
|
-
selectLocation: string;
|
|
401
|
-
location: string;
|
|
402
|
-
selectAction: string;
|
|
403
|
-
cancelAction: string;
|
|
404
|
-
closeAction: string;
|
|
405
|
-
typeToSearch: string;
|
|
406
|
-
cardinalPoints: {
|
|
407
|
-
north: string;
|
|
408
|
-
south: string;
|
|
409
|
-
east: string;
|
|
410
|
-
west: string;
|
|
411
|
-
};
|
|
412
|
-
userErrors: {
|
|
413
|
-
required: string;
|
|
414
|
-
minLatitude: string;
|
|
415
|
-
maxLatitude: string;
|
|
416
|
-
minLongitude: string;
|
|
417
|
-
maxLongitude: string;
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
es: {
|
|
421
|
-
lat: string;
|
|
422
|
-
lon: string;
|
|
423
|
-
selectLocation: string;
|
|
424
|
-
location: string;
|
|
425
|
-
selectAction: string;
|
|
426
|
-
cancelAction: string;
|
|
427
|
-
closeAction: string;
|
|
428
|
-
typeToSearch: string;
|
|
429
|
-
cardinalPoints: {
|
|
430
|
-
north: string;
|
|
431
|
-
south: string;
|
|
432
|
-
east: string;
|
|
433
|
-
west: string;
|
|
434
|
-
};
|
|
435
|
-
userErrors: {
|
|
436
|
-
required: string;
|
|
437
|
-
minLatitude: string;
|
|
438
|
-
maxLatitude: string;
|
|
439
|
-
minLongitude: string;
|
|
440
|
-
maxLongitude: string;
|
|
441
|
-
};
|
|
442
|
-
};
|
|
409
|
+
[key: string]: GeoTranslations;
|
|
443
410
|
};
|
|
444
|
-
minLatitude: number;
|
|
445
|
-
maxLatitude: number;
|
|
446
|
-
minLongitude: number;
|
|
447
|
-
maxLongitude: number;
|
|
448
|
-
step: number;
|
|
449
|
-
zoom: number;
|
|
411
|
+
minLatitude: number | undefined;
|
|
412
|
+
maxLatitude: number | undefined;
|
|
413
|
+
minLongitude: number | undefined;
|
|
414
|
+
maxLongitude: number | undefined;
|
|
415
|
+
step: number | undefined;
|
|
416
|
+
zoom: number | undefined;
|
|
450
417
|
get className(): string;
|
|
451
418
|
lang: string;
|
|
452
419
|
inlineErrors: boolean;
|
|
453
|
-
inputId: string;
|
|
454
|
-
ariaLabel: string;
|
|
420
|
+
inputId: string | undefined;
|
|
421
|
+
ariaLabel: string | undefined;
|
|
455
422
|
readonly: boolean | null;
|
|
456
423
|
set disabled(v: string | boolean);
|
|
457
424
|
get disabled(): string | boolean;
|
|
458
425
|
set required(v: boolean);
|
|
459
426
|
get required(): boolean;
|
|
460
|
-
set value(v: GeoPoint);
|
|
461
|
-
get value(): GeoPoint;
|
|
427
|
+
set value(v: GeoPoint | undefined);
|
|
428
|
+
get value(): GeoPoint | undefined;
|
|
462
429
|
valueChange: EventEmitter<GeoPoint>;
|
|
463
430
|
keyPress: EventEmitter<KeyboardEvent>;
|
|
464
431
|
onChange: (value: any) => void;
|
|
@@ -507,6 +474,14 @@ declare class RegexpService {
|
|
|
507
474
|
static ɵprov: i0.ɵɵInjectableDeclaration<RegexpService>;
|
|
508
475
|
}
|
|
509
476
|
|
|
477
|
+
interface UserErrorLiteral {
|
|
478
|
+
required: string;
|
|
479
|
+
min: string;
|
|
480
|
+
max: string;
|
|
481
|
+
email: string;
|
|
482
|
+
url: string;
|
|
483
|
+
color: string;
|
|
484
|
+
}
|
|
510
485
|
declare class InputComponent implements OnInit, ControlValueAccessor, Validator {
|
|
511
486
|
regexpService: RegexpService;
|
|
512
487
|
private cdr;
|
|
@@ -526,24 +501,9 @@ declare class InputComponent implements OnInit, ControlValueAccessor, Validator
|
|
|
526
501
|
private _currency;
|
|
527
502
|
private _required;
|
|
528
503
|
userErrors: {
|
|
529
|
-
|
|
530
|
-
required: string;
|
|
531
|
-
min: string;
|
|
532
|
-
max: string;
|
|
533
|
-
email: string;
|
|
534
|
-
url: string;
|
|
535
|
-
color: string;
|
|
536
|
-
};
|
|
537
|
-
es: {
|
|
538
|
-
required: string;
|
|
539
|
-
min: string;
|
|
540
|
-
max: string;
|
|
541
|
-
email: string;
|
|
542
|
-
url: string;
|
|
543
|
-
color: string;
|
|
544
|
-
};
|
|
504
|
+
[key: string]: UserErrorLiteral;
|
|
545
505
|
};
|
|
546
|
-
domain: string;
|
|
506
|
+
domain: string | undefined;
|
|
547
507
|
rows?: number | string;
|
|
548
508
|
cols?: number | string;
|
|
549
509
|
step?: number;
|
|
@@ -553,15 +513,15 @@ declare class InputComponent implements OnInit, ControlValueAccessor, Validator
|
|
|
553
513
|
get color(): string;
|
|
554
514
|
lang: string;
|
|
555
515
|
inlineErrors: boolean;
|
|
556
|
-
inputId: string;
|
|
557
|
-
ariaLabel: string;
|
|
516
|
+
inputId: string | undefined;
|
|
517
|
+
ariaLabel: string | undefined;
|
|
558
518
|
readonly: boolean | null;
|
|
559
519
|
set disabled(v: string | boolean);
|
|
560
520
|
get disabled(): string | boolean;
|
|
561
521
|
set pattern(p: string | undefined);
|
|
562
522
|
get pattern(): string | undefined;
|
|
563
523
|
set currency(v: string);
|
|
564
|
-
get currency(): string;
|
|
524
|
+
get currency(): string | undefined;
|
|
565
525
|
set placeholder(v: string);
|
|
566
526
|
get placeholder(): string;
|
|
567
527
|
set required(v: boolean);
|
|
@@ -615,15 +575,15 @@ declare class InputComponent implements OnInit, ControlValueAccessor, Validator
|
|
|
615
575
|
type PlacementValue = 'left' | 'right' | 'top' | 'bottom';
|
|
616
576
|
|
|
617
577
|
declare class TooltipContentRef {
|
|
618
|
-
viewRef?: ViewRef;
|
|
619
|
-
componentRef?: ComponentRef<any
|
|
620
|
-
constructor(viewRef?: ViewRef, componentRef?: ComponentRef<any>);
|
|
578
|
+
viewRef?: ViewRef | undefined;
|
|
579
|
+
componentRef?: ComponentRef<any> | undefined;
|
|
580
|
+
constructor(viewRef?: ViewRef | undefined, componentRef?: ComponentRef<any> | undefined);
|
|
621
581
|
}
|
|
622
582
|
|
|
623
583
|
/**
|
|
624
584
|
* Tooltip directive
|
|
625
585
|
*/
|
|
626
|
-
declare class LuxTooltipDirective {
|
|
586
|
+
declare class LuxTooltipDirective implements OnDestroy {
|
|
627
587
|
private elHost;
|
|
628
588
|
private tooltipService;
|
|
629
589
|
/** Tooltip title */
|
|
@@ -632,12 +592,13 @@ declare class LuxTooltipDirective {
|
|
|
632
592
|
content: any;
|
|
633
593
|
/** Placement */
|
|
634
594
|
placement: PlacementValue;
|
|
635
|
-
tooltipRef: TooltipContentRef;
|
|
595
|
+
tooltipRef: TooltipContentRef | null;
|
|
636
596
|
onMouseEnter(): void;
|
|
637
597
|
onMouseLeave(): void;
|
|
638
598
|
onClick(): void;
|
|
639
|
-
show(component: any, elHost: ElementRef, placement: PlacementValue): TooltipContentRef;
|
|
599
|
+
show(component: any, elHost: ElementRef, placement: PlacementValue): TooltipContentRef | null;
|
|
640
600
|
remove(tooltipRef: TooltipContentRef): void;
|
|
601
|
+
ngOnDestroy(): void;
|
|
641
602
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuxTooltipDirective, never>;
|
|
642
603
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LuxTooltipDirective, "[luxTooltip]", never, { "luxTooltip": { "alias": "luxTooltip"; "required": false; }; "content": { "alias": "content"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, never, true, never>;
|
|
643
604
|
}
|
|
@@ -646,18 +607,18 @@ declare class LuxModalWindowComponent implements OnInit, AfterViewInit, OnDestro
|
|
|
646
607
|
private _document;
|
|
647
608
|
private _elRef;
|
|
648
609
|
private _elWithFocus;
|
|
649
|
-
ariaDescribedBy: string;
|
|
650
|
-
ariaLabelledBy: string;
|
|
610
|
+
ariaDescribedBy: string | undefined;
|
|
611
|
+
ariaLabelledBy: string | undefined;
|
|
651
612
|
backdrop: boolean | string;
|
|
652
613
|
keyboard: boolean;
|
|
653
|
-
windowClass: string;
|
|
614
|
+
windowClass: string | undefined;
|
|
654
615
|
dismissEvent: EventEmitter<any>;
|
|
655
616
|
get class(): string;
|
|
656
617
|
role: string;
|
|
657
618
|
tabindex: string;
|
|
658
619
|
ariamodal: boolean;
|
|
659
|
-
get hostAriaLabelledBy(): string;
|
|
660
|
-
get hostAriaDescribedBy(): string;
|
|
620
|
+
get hostAriaLabelledBy(): string | undefined;
|
|
621
|
+
get hostAriaDescribedBy(): string | undefined;
|
|
661
622
|
backdropClick(event: any): void;
|
|
662
623
|
escKey(event: any): void;
|
|
663
624
|
dismiss(reason: any): void;
|
|
@@ -669,7 +630,7 @@ declare class LuxModalWindowComponent implements OnInit, AfterViewInit, OnDestro
|
|
|
669
630
|
}
|
|
670
631
|
|
|
671
632
|
declare class LuxModalBackdropComponent {
|
|
672
|
-
backdropClass: string;
|
|
633
|
+
backdropClass: string | undefined;
|
|
673
634
|
class: string;
|
|
674
635
|
style: string;
|
|
675
636
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuxModalBackdropComponent, never>;
|
|
@@ -680,14 +641,14 @@ declare class MapComponent implements OnInit, AfterViewInit {
|
|
|
680
641
|
static idCounter: number;
|
|
681
642
|
private loaded$;
|
|
682
643
|
private _map;
|
|
683
|
-
mapId:
|
|
684
|
-
_zoom: number;
|
|
685
|
-
set zoom(zoom: number);
|
|
686
|
-
get zoom(): number;
|
|
687
|
-
_center: GeoPoint;
|
|
688
|
-
set center(center: GeoPoint);
|
|
689
|
-
get center(): GeoPoint;
|
|
690
|
-
_readonly: boolean;
|
|
644
|
+
mapId: string | undefined;
|
|
645
|
+
_zoom: number | undefined;
|
|
646
|
+
set zoom(zoom: number | undefined);
|
|
647
|
+
get zoom(): number | undefined;
|
|
648
|
+
_center: GeoPoint | undefined;
|
|
649
|
+
set center(center: GeoPoint | undefined);
|
|
650
|
+
get center(): GeoPoint | undefined;
|
|
651
|
+
_readonly: boolean | undefined;
|
|
691
652
|
set readonly(readonly: boolean);
|
|
692
653
|
get readonly(): boolean;
|
|
693
654
|
private _marker;
|
|
@@ -695,7 +656,7 @@ declare class MapComponent implements OnInit, AfterViewInit {
|
|
|
695
656
|
private _markerCoordinates;
|
|
696
657
|
private set markerCoordinates(value);
|
|
697
658
|
private get markerCoordinates();
|
|
698
|
-
set markerPoint(markerPoint: GeoPoint);
|
|
659
|
+
set markerPoint(markerPoint: GeoPoint | undefined);
|
|
699
660
|
get markerPoint(): GeoPoint;
|
|
700
661
|
valueChange: EventEmitter<GeoPoint>;
|
|
701
662
|
private _markerSource;
|
|
@@ -723,25 +684,20 @@ interface PaginationInfo {
|
|
|
723
684
|
pagesToShow: number;
|
|
724
685
|
}
|
|
725
686
|
|
|
726
|
-
|
|
727
|
-
literals: {
|
|
728
|
-
en: {
|
|
729
|
-
first: string;
|
|
730
|
-
previous: string;
|
|
731
|
-
next: string;
|
|
732
|
-
last: string;
|
|
733
|
-
};
|
|
734
|
-
es: {
|
|
735
|
-
first: string;
|
|
736
|
-
previous: string;
|
|
737
|
-
next: string;
|
|
738
|
-
last: string;
|
|
739
|
-
};
|
|
740
|
-
};
|
|
687
|
+
interface PaginationLiterals {
|
|
741
688
|
first: string;
|
|
742
689
|
previous: string;
|
|
743
690
|
next: string;
|
|
744
691
|
last: string;
|
|
692
|
+
}
|
|
693
|
+
declare class PaginationComponent implements OnInit {
|
|
694
|
+
literals: {
|
|
695
|
+
[key: string]: PaginationLiterals;
|
|
696
|
+
};
|
|
697
|
+
first: string | undefined;
|
|
698
|
+
previous: string | undefined;
|
|
699
|
+
next: string | undefined;
|
|
700
|
+
last: string | undefined;
|
|
745
701
|
showPagination: boolean;
|
|
746
702
|
hidePrevious: boolean;
|
|
747
703
|
lastPage: boolean;
|
|
@@ -820,9 +776,9 @@ declare class SelectComponent implements ControlValueAccessor, Validator {
|
|
|
820
776
|
/** If set, check there is no duplicates in the data. */
|
|
821
777
|
unique: boolean;
|
|
822
778
|
/** Validation function for new items. Returns error or null if valid */
|
|
823
|
-
validateItem: (item: string) => string;
|
|
779
|
+
validateItem: (item: string) => string | null;
|
|
824
780
|
newEntry: string;
|
|
825
|
-
error:
|
|
781
|
+
error: string | null;
|
|
826
782
|
isValidNewEntry: boolean;
|
|
827
783
|
private touched;
|
|
828
784
|
constructor();
|
|
@@ -852,7 +808,7 @@ interface LuxTooltipContext {
|
|
|
852
808
|
* Default Tooltip Component
|
|
853
809
|
*/
|
|
854
810
|
declare class TooltipComponent {
|
|
855
|
-
context: LuxTooltipContext;
|
|
811
|
+
context: LuxTooltipContext | undefined;
|
|
856
812
|
constructor();
|
|
857
813
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
|
|
858
814
|
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "lux-tooltip", never, { "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -881,9 +837,9 @@ declare class LuxModule {
|
|
|
881
837
|
|
|
882
838
|
declare class ContentRef {
|
|
883
839
|
nodes: any[];
|
|
884
|
-
viewRef?: ViewRef;
|
|
885
|
-
componentRef?: ComponentRef<any
|
|
886
|
-
constructor(nodes: any[], viewRef?: ViewRef, componentRef?: ComponentRef<any>);
|
|
840
|
+
viewRef?: ViewRef | undefined;
|
|
841
|
+
componentRef?: ComponentRef<any> | undefined;
|
|
842
|
+
constructor(nodes: any[], viewRef?: ViewRef | undefined, componentRef?: ComponentRef<any> | undefined);
|
|
887
843
|
}
|
|
888
844
|
|
|
889
845
|
declare class ModalRef {
|
|
@@ -903,7 +859,7 @@ declare class ModalRef {
|
|
|
903
859
|
* The promise that is resolved when the modal is closed and rejected when the modal is dismissed.
|
|
904
860
|
*/
|
|
905
861
|
result: Promise<any>;
|
|
906
|
-
constructor(_windowCmptRef: ComponentRef<LuxModalWindowComponent>, _contentRef: ContentRef, _backdropCmptRef?: ComponentRef<LuxModalBackdropComponent
|
|
862
|
+
constructor(_windowCmptRef: ComponentRef<LuxModalWindowComponent>, _contentRef: ContentRef, _backdropCmptRef?: ComponentRef<LuxModalBackdropComponent> | undefined, _beforeDismiss?: (() => any) | undefined);
|
|
907
863
|
/**
|
|
908
864
|
* Closes the modal with an optional `result` value.
|
|
909
865
|
*
|
|
@@ -934,7 +890,6 @@ interface LuxModalOptions {
|
|
|
934
890
|
*/
|
|
935
891
|
declare class ModalService {
|
|
936
892
|
private modalStack;
|
|
937
|
-
private moduleCFR;
|
|
938
893
|
/**Open a modal component
|
|
939
894
|
* @param content TemplateRef
|
|
940
895
|
*/
|