@metadev/lux 0.27.0 → 0.29.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.
Files changed (83) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1 -1
  3. package/esm2022/lib/autocomplete/autocomplete.component.mjs +488 -488
  4. package/esm2022/lib/autocomplete-list/autocomplete-list.component.mjs +259 -259
  5. package/esm2022/lib/breadcrumb/breadcrumb.component.mjs +78 -78
  6. package/esm2022/lib/checkbox/checkbox.component.mjs +156 -156
  7. package/esm2022/lib/datasource.mjs +1 -1
  8. package/esm2022/lib/datetime/datetime.component.mjs +312 -312
  9. package/esm2022/lib/filter/filter.component.mjs +158 -158
  10. package/esm2022/lib/geolocation/geolocation.component.mjs +423 -423
  11. package/esm2022/lib/geolocation/geolocation.service.mjs +123 -123
  12. package/esm2022/lib/geolocation/openlayer-loader.service.mjs +62 -62
  13. package/esm2022/lib/helperFns.mjs +118 -118
  14. package/esm2022/lib/input/input.component.mjs +469 -469
  15. package/esm2022/lib/input/regexp.service.mjs +195 -195
  16. package/esm2022/lib/lang.mjs +9 -9
  17. package/esm2022/lib/lux.module.mjs +118 -118
  18. package/esm2022/lib/map/geopoint.mjs +1 -1
  19. package/esm2022/lib/map/map.component.mjs +275 -275
  20. package/esm2022/lib/modal/modal-backdrop.mjs +24 -24
  21. package/esm2022/lib/modal/modal-config.mjs +11 -11
  22. package/esm2022/lib/modal/modal-dismiss-reasons.mjs +5 -5
  23. package/esm2022/lib/modal/modal-ref.mjs +101 -101
  24. package/esm2022/lib/modal/modal-stack.mjs +182 -182
  25. package/esm2022/lib/modal/modal-window.mjs +118 -118
  26. package/esm2022/lib/modal/modal.service.mjs +27 -27
  27. package/esm2022/lib/modal/util.mjs +82 -82
  28. package/esm2022/lib/pagination/pagination.component.mjs +144 -144
  29. package/esm2022/lib/pagination/pagination.mjs +1 -1
  30. package/esm2022/lib/radiogroup/radiogroup.component.mjs +129 -129
  31. package/esm2022/lib/select/select.component.mjs +148 -148
  32. package/esm2022/lib/tooltip/placement.mjs +7 -7
  33. package/esm2022/lib/tooltip/tooltip-context.mjs +1 -1
  34. package/esm2022/lib/tooltip/tooltip.component.mjs +21 -21
  35. package/esm2022/lib/tooltip/tooltip.directive.mjs +69 -69
  36. package/esm2022/lib/tooltip/tooltip.service.mjs +137 -137
  37. package/esm2022/lib/tooltip/tooltop-content.mjs +8 -8
  38. package/esm2022/lib/voice-recognition/voice-recognition.directive.mjs +79 -79
  39. package/esm2022/lib/window/window.service.mjs +46 -46
  40. package/esm2022/metadev-lux.mjs +4 -4
  41. package/esm2022/public-api.mjs +20 -20
  42. package/fesm2022/metadev-lux.mjs +4372 -4372
  43. package/fesm2022/metadev-lux.mjs.map +1 -1
  44. package/index.d.ts +5 -5
  45. package/lib/autocomplete/autocomplete.component.d.ts +81 -81
  46. package/lib/autocomplete-list/autocomplete-list.component.d.ts +65 -65
  47. package/lib/breadcrumb/breadcrumb.component.d.ts +22 -22
  48. package/lib/checkbox/checkbox.component.d.ts +47 -47
  49. package/lib/datasource.d.ts +13 -13
  50. package/lib/datetime/datetime.component.d.ts +69 -69
  51. package/lib/filter/filter.component.d.ts +51 -51
  52. package/lib/geolocation/geolocation.component.d.ts +123 -123
  53. package/lib/geolocation/geolocation.service.d.ts +32 -32
  54. package/lib/geolocation/openlayer-loader.service.d.ts +7 -7
  55. package/lib/helperFns.d.ts +15 -15
  56. package/lib/input/input.component.d.ts +108 -108
  57. package/lib/input/regexp.service.d.ts +15 -15
  58. package/lib/lang.d.ts +2 -2
  59. package/lib/lux.module.d.ts +27 -27
  60. package/lib/map/geopoint.d.ts +7 -7
  61. package/lib/map/map.component.d.ts +39 -39
  62. package/lib/modal/modal-backdrop.d.ts +8 -8
  63. package/lib/modal/modal-config.d.ts +14 -14
  64. package/lib/modal/modal-dismiss-reasons.d.ts +4 -4
  65. package/lib/modal/modal-ref.d.ts +41 -41
  66. package/lib/modal/modal-stack.d.ts +31 -31
  67. package/lib/modal/modal-window.d.ts +28 -28
  68. package/lib/modal/modal.service.d.ts +19 -19
  69. package/lib/modal/util.d.ts +40 -40
  70. package/lib/pagination/pagination.component.d.ts +52 -52
  71. package/lib/pagination/pagination.d.ts +10 -10
  72. package/lib/radiogroup/radiogroup.component.d.ts +37 -37
  73. package/lib/select/select.component.d.ts +38 -38
  74. package/lib/tooltip/placement.d.ts +7 -7
  75. package/lib/tooltip/tooltip-context.d.ts +3 -3
  76. package/lib/tooltip/tooltip.component.d.ts +11 -11
  77. package/lib/tooltip/tooltip.directive.d.ts +27 -27
  78. package/lib/tooltip/tooltip.service.d.ts +20 -20
  79. package/lib/tooltip/tooltop-content.d.ts +6 -6
  80. package/lib/voice-recognition/voice-recognition.directive.d.ts +16 -16
  81. package/lib/window/window.service.d.ts +11 -11
  82. package/package.json +3 -4
  83. package/public-api.d.ts +18 -18
@@ -1,28 +1,28 @@
1
- import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class LuxModalWindowComponent implements OnInit, AfterViewInit, OnDestroy {
4
- private _document;
5
- private _elRef;
6
- private _elWithFocus;
7
- ariaDescribedBy: string;
8
- ariaLabelledBy: string;
9
- backdrop: boolean | string;
10
- keyboard: boolean;
11
- windowClass: string;
12
- dismissEvent: EventEmitter<any>;
13
- get class(): string;
14
- role: string;
15
- tabindex: string;
16
- ariamodal: boolean;
17
- get hostAriaLabelledBy(): string;
18
- get hostAriaDescribedBy(): string;
19
- backdropClick(btn: HTMLElement): void;
20
- escKey(event: any): void;
21
- constructor(_document: any, _elRef: ElementRef<HTMLElement>);
22
- dismiss(reason: any): void;
23
- ngOnInit(): void;
24
- ngAfterViewInit(): void;
25
- ngOnDestroy(): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<LuxModalWindowComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<LuxModalWindowComponent, "lux-modal-window", never, { "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "windowClass": { "alias": "windowClass"; "required": false; }; }, { "dismissEvent": "dismissEvent"; }, never, ["*"], false, never>;
28
- }
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LuxModalWindowComponent implements OnInit, AfterViewInit, OnDestroy {
4
+ private _document;
5
+ private _elRef;
6
+ private _elWithFocus;
7
+ ariaDescribedBy: string;
8
+ ariaLabelledBy: string;
9
+ backdrop: boolean | string;
10
+ keyboard: boolean;
11
+ windowClass: string;
12
+ dismissEvent: EventEmitter<any>;
13
+ get class(): string;
14
+ role: string;
15
+ tabindex: string;
16
+ ariamodal: boolean;
17
+ get hostAriaLabelledBy(): string;
18
+ get hostAriaDescribedBy(): string;
19
+ backdropClick(btn: HTMLElement): void;
20
+ escKey(event: any): void;
21
+ constructor(_document: any, _elRef: ElementRef<HTMLElement>);
22
+ dismiss(reason: any): void;
23
+ ngOnInit(): void;
24
+ ngAfterViewInit(): void;
25
+ ngOnDestroy(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuxModalWindowComponent, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<LuxModalWindowComponent, "lux-modal-window", never, { "ariaDescribedBy": { "alias": "ariaDescribedBy"; "required": false; }; "ariaLabelledBy": { "alias": "ariaLabelledBy"; "required": false; }; "backdrop": { "alias": "backdrop"; "required": false; }; "keyboard": { "alias": "keyboard"; "required": false; }; "windowClass": { "alias": "windowClass"; "required": false; }; }, { "dismissEvent": "dismissEvent"; }, never, ["*"], false, never>;
28
+ }
@@ -1,19 +1,19 @@
1
- import { ComponentFactoryResolver, TemplateRef } from '@angular/core';
2
- import { ModalStack } from './modal-stack';
3
- import { ModalRef } from './modal-ref';
4
- import { LuxModalOptions } from './modal-config';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * A service that it allow open an close modal components
8
- */
9
- export declare class ModalService {
10
- private modalStack;
11
- private moduleCFR;
12
- constructor(modalStack: ModalStack, moduleCFR: ComponentFactoryResolver);
13
- /**Open a modal component
14
- * @param content TemplateRef
15
- */
16
- open(content: TemplateRef<any>, options?: LuxModalOptions): ModalRef;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
19
- }
1
+ import { ComponentFactoryResolver, TemplateRef } from '@angular/core';
2
+ import { ModalStack } from './modal-stack';
3
+ import { ModalRef } from './modal-ref';
4
+ import { LuxModalOptions } from './modal-config';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * A service that it allow open an close modal components
8
+ */
9
+ export declare class ModalService {
10
+ private modalStack;
11
+ private moduleCFR;
12
+ constructor(modalStack: ModalStack, moduleCFR: ComponentFactoryResolver);
13
+ /**Open a modal component
14
+ * @param content TemplateRef
15
+ */
16
+ open(content: TemplateRef<any>, options?: LuxModalOptions): ModalRef;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<ModalService, never>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<ModalService>;
19
+ }
@@ -1,40 +1,40 @@
1
- import { ComponentRef, ViewRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- export declare const FOCUS = "focus";
4
- export declare enum Key {
5
- Tab = 9,
6
- Enter = 13,
7
- Escape = 27,
8
- Space = 32,
9
- PageUp = 33,
10
- PageDown = 34,
11
- End = 35,
12
- Home = 36,
13
- ArrowLeft = 37,
14
- ArrowUp = 38,
15
- ArrowRight = 39,
16
- ArrowDown = 40
17
- }
18
- export declare const isDefined: (value: any) => boolean;
19
- export declare class ContentRef {
20
- nodes: any[];
21
- viewRef?: ViewRef;
22
- componentRef?: ComponentRef<any>;
23
- constructor(nodes: any[], viewRef?: ViewRef, componentRef?: ComponentRef<any>);
24
- }
25
- /**
26
- * Returns first and last focusable elements inside of a given element based on specific CSS selector
27
- */
28
- export declare const getFocusableBoundaryElements: (element: HTMLElement) => HTMLElement[];
29
- /**
30
- * Function that enforces browser focus to be trapped inside a DOM element.
31
- *
32
- * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element
33
- *
34
- * @param element The element around which focus will be trapped inside
35
- * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners
36
- * and free internal resources
37
- * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to
38
- * false)
39
- */
40
- export declare const focusTrap: (element: HTMLElement, stopFocusTrap$: Observable<any>, refocusOnClick?: boolean) => void;
1
+ import { ComponentRef, ViewRef } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ export declare const FOCUS = "focus";
4
+ export declare enum Key {
5
+ Tab = 9,
6
+ Enter = 13,
7
+ Escape = 27,
8
+ Space = 32,
9
+ PageUp = 33,
10
+ PageDown = 34,
11
+ End = 35,
12
+ Home = 36,
13
+ ArrowLeft = 37,
14
+ ArrowUp = 38,
15
+ ArrowRight = 39,
16
+ ArrowDown = 40
17
+ }
18
+ export declare const isDefined: (value: any) => boolean;
19
+ export declare class ContentRef {
20
+ nodes: any[];
21
+ viewRef?: ViewRef;
22
+ componentRef?: ComponentRef<any>;
23
+ constructor(nodes: any[], viewRef?: ViewRef, componentRef?: ComponentRef<any>);
24
+ }
25
+ /**
26
+ * Returns first and last focusable elements inside of a given element based on specific CSS selector
27
+ */
28
+ export declare const getFocusableBoundaryElements: (element: HTMLElement) => HTMLElement[];
29
+ /**
30
+ * Function that enforces browser focus to be trapped inside a DOM element.
31
+ *
32
+ * Works only for clicks inside the element and navigation with 'Tab', ignoring clicks outside of the element
33
+ *
34
+ * @param element The element around which focus will be trapped inside
35
+ * @param stopFocusTrap$ The observable stream. When completed the focus trap will clean up listeners
36
+ * and free internal resources
37
+ * @param refocusOnClick Put the focus back to the last focused element whenever a click occurs on element (default to
38
+ * false)
39
+ */
40
+ export declare const focusTrap: (element: HTMLElement, stopFocusTrap$: Observable<any>, refocusOnClick?: boolean) => void;
@@ -1,52 +1,52 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { PaginationInfo } from './pagination';
3
- import * as i0 from "@angular/core";
4
- export declare class PaginationComponent implements OnInit {
5
- literals: {
6
- en: {
7
- first: string;
8
- previous: string;
9
- next: string;
10
- last: string;
11
- };
12
- es: {
13
- first: string;
14
- previous: string;
15
- next: string;
16
- last: string;
17
- };
18
- };
19
- first: string;
20
- previous: string;
21
- next: string;
22
- last: string;
23
- showPagination: boolean;
24
- hidePrevious: boolean;
25
- lastPage: boolean;
26
- totalPages: number;
27
- displayNextEllipsis: boolean;
28
- displayPreviousEllipsis: boolean;
29
- pages: number[];
30
- goToPage: EventEmitter<number>;
31
- pageSizeChange: EventEmitter<number>;
32
- /** Current page, total items and items to show per page */
33
- private paginationInfoValue;
34
- private _lang;
35
- set lang(l: string);
36
- get lang(): string;
37
- set paginationInfo(value: PaginationInfo);
38
- get paginationInfo(): PaginationInfo;
39
- constructor();
40
- ngOnInit(): void;
41
- pageSizeChanged(pageSize: number): void;
42
- onPage(n: number): void;
43
- onFirst(): void;
44
- onLast(): void;
45
- onNext(): void;
46
- onPrevious(): void;
47
- private syncState;
48
- private calculatePages;
49
- private loadLanguage;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
51
- static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "lux-pagination", never, { "lang": { "alias": "lang"; "required": false; }; "paginationInfo": { "alias": "paginationInfo"; "required": false; }; }, { "goToPage": "goToPage"; "pageSizeChange": "pageSizeChange"; }, never, never, false, never>;
52
- }
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { PaginationInfo } from './pagination';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PaginationComponent implements OnInit {
5
+ literals: {
6
+ en: {
7
+ first: string;
8
+ previous: string;
9
+ next: string;
10
+ last: string;
11
+ };
12
+ es: {
13
+ first: string;
14
+ previous: string;
15
+ next: string;
16
+ last: string;
17
+ };
18
+ };
19
+ first: string;
20
+ previous: string;
21
+ next: string;
22
+ last: string;
23
+ showPagination: boolean;
24
+ hidePrevious: boolean;
25
+ lastPage: boolean;
26
+ totalPages: number;
27
+ displayNextEllipsis: boolean;
28
+ displayPreviousEllipsis: boolean;
29
+ pages: number[];
30
+ goToPage: EventEmitter<number>;
31
+ pageSizeChange: EventEmitter<number>;
32
+ /** Current page, total items and items to show per page */
33
+ private paginationInfoValue;
34
+ private _lang;
35
+ set lang(l: string);
36
+ get lang(): string;
37
+ set paginationInfo(value: PaginationInfo);
38
+ get paginationInfo(): PaginationInfo;
39
+ constructor();
40
+ ngOnInit(): void;
41
+ pageSizeChanged(pageSize: number): void;
42
+ onPage(n: number): void;
43
+ onFirst(): void;
44
+ onLast(): void;
45
+ onNext(): void;
46
+ onPrevious(): void;
47
+ private syncState;
48
+ private calculatePages;
49
+ private loadLanguage;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "lux-pagination", never, { "lang": { "alias": "lang"; "required": false; }; "paginationInfo": { "alias": "paginationInfo"; "required": false; }; }, { "goToPage": "goToPage"; "pageSizeChange": "pageSizeChange"; }, never, never, false, never>;
52
+ }
@@ -1,10 +1,10 @@
1
- export interface PaginationInfo {
2
- /** How many total items there are in all pages */
3
- total: number;
4
- /** The current page (0-index) */
5
- page: number;
6
- /** How many items we want to show per page */
7
- pageSize: number;
8
- /** How many pages between next/prev */
9
- pagesToShow: number;
10
- }
1
+ export interface PaginationInfo {
2
+ /** How many total items there are in all pages */
3
+ total: number;
4
+ /** The current page (0-index) */
5
+ page: number;
6
+ /** How many items we want to show per page */
7
+ pageSize: number;
8
+ /** How many pages between next/prev */
9
+ pagesToShow: number;
10
+ }
@@ -1,37 +1,37 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export interface RadioItem {
5
- name?: string;
6
- label: string;
7
- value: any;
8
- }
9
- export declare class RadiogroupComponent implements ControlValueAccessor, Validator {
10
- private touched;
11
- name: string;
12
- disabled: boolean | null;
13
- readonly: boolean | null;
14
- required: boolean | null;
15
- set items(col: RadioItem[]);
16
- get items(): RadioItem[];
17
- itemsChange: EventEmitter<RadioItem[]>;
18
- set value(v: any);
19
- get value(): any;
20
- valueChange: EventEmitter<any>;
21
- private _value;
22
- private _items;
23
- constructor();
24
- onChange: (value: any) => void;
25
- onTouched: () => void;
26
- writeValue(value: any): void;
27
- registerOnChange(onChange: any): void;
28
- registerOnTouched(onTouched: any): void;
29
- markAsTouched(): void;
30
- setDisabledState(disabled: boolean): void;
31
- registerOnValidatorChange(): void;
32
- validate(control: AbstractControl): ValidationErrors | null;
33
- setValue(event: MouseEvent, item: RadioItem): void;
34
- ensureHasUniqueName(item: RadioItem, index: number): RadioItem;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<RadiogroupComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<RadiogroupComponent, "lux-radiogroup", never, { "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "items": { "alias": "items"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "itemsChange": "itemsChange"; "valueChange": "valueChange"; }, never, never, false, never>;
37
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export interface RadioItem {
5
+ name?: string;
6
+ label: string;
7
+ value: any;
8
+ }
9
+ export declare class RadiogroupComponent implements ControlValueAccessor, Validator {
10
+ private touched;
11
+ name: string;
12
+ disabled: boolean | null;
13
+ readonly: boolean | null;
14
+ required: boolean | null;
15
+ set items(col: RadioItem[]);
16
+ get items(): RadioItem[];
17
+ itemsChange: EventEmitter<RadioItem[]>;
18
+ set value(v: any);
19
+ get value(): any;
20
+ valueChange: EventEmitter<any>;
21
+ private _value;
22
+ private _items;
23
+ constructor();
24
+ onChange: (value: any) => void;
25
+ onTouched: () => void;
26
+ writeValue(value: any): void;
27
+ registerOnChange(onChange: any): void;
28
+ registerOnTouched(onTouched: any): void;
29
+ markAsTouched(): void;
30
+ setDisabledState(disabled: boolean): void;
31
+ registerOnValidatorChange(): void;
32
+ validate(control: AbstractControl): ValidationErrors | null;
33
+ setValue(event: MouseEvent, item: RadioItem): void;
34
+ ensureHasUniqueName(item: RadioItem, index: number): RadioItem;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadiogroupComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadiogroupComponent, "lux-radiogroup", never, { "name": { "alias": "name"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "items": { "alias": "items"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "itemsChange": "itemsChange"; "valueChange": "valueChange"; }, never, never, false, never>;
37
+ }
@@ -1,38 +1,38 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectComponent implements ControlValueAccessor, Validator {
5
- id: string;
6
- disabled: boolean;
7
- required: boolean;
8
- /** Allow multiple elements */
9
- multiple: boolean;
10
- value: string[];
11
- valueChange: EventEmitter<string[]>;
12
- placeholder: string;
13
- /** If set, check there is no duplicates in the data. */
14
- unique: boolean;
15
- /** Validation function for new items. Returns error or null if valid */
16
- validateItem: (item: string) => string;
17
- newEntry: string;
18
- error: any;
19
- isValidNewEntry: boolean;
20
- private touched;
21
- constructor();
22
- onChange: (value: any) => void;
23
- onTouched: () => void;
24
- writeValue(value: any): void;
25
- registerOnChange(onChange: any): void;
26
- registerOnTouched(onTouched: any): void;
27
- markAsTouched(): void;
28
- setDisabledState(disabled: boolean): void;
29
- registerOnValidatorChange(): void;
30
- validate(control: AbstractControl): ValidationErrors | null;
31
- get canAdd(): boolean;
32
- add(val: string): void;
33
- remove(index: number): void;
34
- onKeyPress(event: KeyboardEvent): void;
35
- onChangeNewEntry(newValue: string): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "lux-select", never, { "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "unique": { "alias": "unique"; "required": false; }; "validateItem": { "alias": "validateItem"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
38
- }
1
+ import { EventEmitter } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, ValidationErrors, Validator } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SelectComponent implements ControlValueAccessor, Validator {
5
+ id: string;
6
+ disabled: boolean;
7
+ required: boolean;
8
+ /** Allow multiple elements */
9
+ multiple: boolean;
10
+ value: string[];
11
+ valueChange: EventEmitter<string[]>;
12
+ placeholder: string;
13
+ /** If set, check there is no duplicates in the data. */
14
+ unique: boolean;
15
+ /** Validation function for new items. Returns error or null if valid */
16
+ validateItem: (item: string) => string;
17
+ newEntry: string;
18
+ error: any;
19
+ isValidNewEntry: boolean;
20
+ private touched;
21
+ constructor();
22
+ onChange: (value: any) => void;
23
+ onTouched: () => void;
24
+ writeValue(value: any): void;
25
+ registerOnChange(onChange: any): void;
26
+ registerOnTouched(onTouched: any): void;
27
+ markAsTouched(): void;
28
+ setDisabledState(disabled: boolean): void;
29
+ registerOnValidatorChange(): void;
30
+ validate(control: AbstractControl): ValidationErrors | null;
31
+ get canAdd(): boolean;
32
+ add(val: string): void;
33
+ remove(index: number): void;
34
+ onKeyPress(event: KeyboardEvent): void;
35
+ onChangeNewEntry(newValue: string): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "lux-select", never, { "id": { "alias": "id"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "unique": { "alias": "unique"; "required": false; }; "validateItem": { "alias": "validateItem"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
38
+ }
@@ -1,7 +1,7 @@
1
- export declare enum Placement {
2
- Top = "top",
3
- Bottom = "bottom",
4
- Left = "left",
5
- Right = "right"
6
- }
7
- export type PlacementValue = 'left' | 'right' | 'top' | 'bottom';
1
+ export declare enum Placement {
2
+ Top = "top",
3
+ Bottom = "bottom",
4
+ Left = "left",
5
+ Right = "right"
6
+ }
7
+ export type PlacementValue = 'left' | 'right' | 'top' | 'bottom';
@@ -1,3 +1,3 @@
1
- export interface LuxTooltipContext {
2
- message: string;
3
- }
1
+ export interface LuxTooltipContext {
2
+ message: string;
3
+ }
@@ -1,11 +1,11 @@
1
- import { LuxTooltipContext } from './tooltip-context';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Default Tooltip Component
5
- */
6
- export declare class TooltipComponent {
7
- context: LuxTooltipContext;
8
- constructor();
9
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "ng-component", never, { "context": { "alias": "context"; "required": false; }; }, {}, never, never, false, never>;
11
- }
1
+ import { LuxTooltipContext } from './tooltip-context';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Default Tooltip Component
5
+ */
6
+ export declare class TooltipComponent {
7
+ context: LuxTooltipContext;
8
+ constructor();
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "ng-component", never, { "context": { "alias": "context"; "required": false; }; }, {}, never, never, false, never>;
11
+ }
@@ -1,27 +1,27 @@
1
- import { ElementRef } from '@angular/core';
2
- import { TooltipService } from './tooltip.service';
3
- import { PlacementValue } from './placement';
4
- import { TooltipContentRef } from './tooltop-content';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Tooltip directive
8
- */
9
- export declare class LuxTooltipDirective {
10
- private elHost;
11
- private tooltipService;
12
- /** Tooltip title */
13
- luxTooltip: any;
14
- /** Component, TemplateRef or String */
15
- content: any;
16
- /** Placement */
17
- placement: PlacementValue;
18
- tooltipRef: TooltipContentRef;
19
- constructor(elHost: ElementRef, tooltipService: TooltipService);
20
- onMouseEnter(): void;
21
- onMouseLeave(): void;
22
- onClick(): void;
23
- show(component: any, elHost: ElementRef, placement: PlacementValue): TooltipContentRef;
24
- remove(tooltipRef: TooltipContentRef): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<LuxTooltipDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<LuxTooltipDirective, "[luxTooltip]", never, { "luxTooltip": { "alias": "luxTooltip"; "required": false; }; "content": { "alias": "content"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, never, false, never>;
27
- }
1
+ import { ElementRef } from '@angular/core';
2
+ import { TooltipService } from './tooltip.service';
3
+ import { PlacementValue } from './placement';
4
+ import { TooltipContentRef } from './tooltop-content';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Tooltip directive
8
+ */
9
+ export declare class LuxTooltipDirective {
10
+ private elHost;
11
+ private tooltipService;
12
+ /** Tooltip title */
13
+ luxTooltip: any;
14
+ /** Component, TemplateRef or String */
15
+ content: any;
16
+ /** Placement */
17
+ placement: PlacementValue;
18
+ tooltipRef: TooltipContentRef;
19
+ constructor(elHost: ElementRef, tooltipService: TooltipService);
20
+ onMouseEnter(): void;
21
+ onMouseLeave(): void;
22
+ onClick(): void;
23
+ show(component: any, elHost: ElementRef, placement: PlacementValue): TooltipContentRef;
24
+ remove(tooltipRef: TooltipContentRef): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<LuxTooltipDirective, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<LuxTooltipDirective, "[luxTooltip]", never, { "luxTooltip": { "alias": "luxTooltip"; "required": false; }; "content": { "alias": "content"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; }, {}, never, never, false, never>;
27
+ }
@@ -1,20 +1,20 @@
1
- import { Injector, ComponentFactoryResolver, ApplicationRef, ElementRef } from '@angular/core';
2
- import { PlacementValue } from './placement';
3
- import { TooltipContentRef } from './tooltop-content';
4
- import * as i0 from "@angular/core";
5
- export declare class TooltipService {
6
- private _injector;
7
- private _crf;
8
- private _applicationRef;
9
- constructor(_injector: Injector, _crf: ComponentFactoryResolver, _applicationRef: ApplicationRef);
10
- appendComponentToBody(content: any, elHost: ElementRef, placement: PlacementValue): TooltipContentRef;
11
- removeComponentFromBody(tooltipContentRef: TooltipContentRef): void;
12
- private getTooltipContentRef;
13
- private createFromTemplateRef;
14
- private createFromComponent;
15
- private setStyle;
16
- private getTooltipElementFromHTMLElemnt;
17
- private setPosition;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<TooltipService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<TooltipService>;
20
- }
1
+ import { Injector, ComponentFactoryResolver, ApplicationRef, ElementRef } from '@angular/core';
2
+ import { PlacementValue } from './placement';
3
+ import { TooltipContentRef } from './tooltop-content';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TooltipService {
6
+ private _injector;
7
+ private _crf;
8
+ private _applicationRef;
9
+ constructor(_injector: Injector, _crf: ComponentFactoryResolver, _applicationRef: ApplicationRef);
10
+ appendComponentToBody(content: any, elHost: ElementRef, placement: PlacementValue): TooltipContentRef;
11
+ removeComponentFromBody(tooltipContentRef: TooltipContentRef): void;
12
+ private getTooltipContentRef;
13
+ private createFromTemplateRef;
14
+ private createFromComponent;
15
+ private setStyle;
16
+ private getTooltipElementFromHTMLElemnt;
17
+ private setPosition;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipService, never>;
19
+ static ɵprov: i0.ɵɵInjectableDeclaration<TooltipService>;
20
+ }
@@ -1,6 +1,6 @@
1
- import { ViewRef, ComponentRef } from '@angular/core';
2
- export declare class TooltipContentRef {
3
- viewRef?: ViewRef;
4
- componentRef?: ComponentRef<any>;
5
- constructor(viewRef?: ViewRef, componentRef?: ComponentRef<any>);
6
- }
1
+ import { ViewRef, ComponentRef } from '@angular/core';
2
+ export declare class TooltipContentRef {
3
+ viewRef?: ViewRef;
4
+ componentRef?: ComponentRef<any>;
5
+ constructor(viewRef?: ViewRef, componentRef?: ComponentRef<any>);
6
+ }