nexheal-lib 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -15
- package/fesm2022/nexheal-lib.mjs +2852 -0
- package/fesm2022/nexheal-lib.mjs.map +1 -0
- package/index.d.ts +501 -0
- package/package.json +23 -47
- package/{projects/nexheal-lib/src → src}/styles/_formcontrols.scss +13 -0
- package/.editorconfig +0 -17
- package/.vscode/extensions.json +0 -4
- package/.vscode/launch.json +0 -20
- package/.vscode/tasks.json +0 -42
- package/angular.json +0 -36
- package/projects/nexheal-lib/README.md +0 -63
- package/projects/nexheal-lib/ng-package.json +0 -9
- package/projects/nexheal-lib/package.json +0 -12
- package/projects/nexheal-lib/src/directives/clickoutside.directive.ts +0 -34
- package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.html +0 -52
- package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.scss +0 -22
- package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/autocomplete-control/autocomplete-control.component.ts +0 -367
- package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.html +0 -152
- package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.scss +0 -194
- package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/calendar-control/calendar-control.component.ts +0 -759
- package/projects/nexheal-lib/src/lib/controls/checkbox-control/checkbox-control.component.html +0 -4
- package/projects/nexheal-lib/src/lib/controls/checkbox-control/checkbox-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/checkbox-control/checkbox-control.component.ts +0 -94
- package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.html +0 -61
- package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.scss +0 -132
- package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/input-control/input-control.component.ts +0 -202
- package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.html +0 -72
- package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.scss +0 -90
- package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/multiselect-control/multiselect-control.component.ts +0 -482
- package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.html +0 -53
- package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.scss +0 -19
- package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/select-control/select-control.component.ts +0 -375
- package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.html +0 -4
- package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.scss +0 -53
- package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/switch-control/switch-control.component.ts +0 -93
- package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.html +0 -88
- package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.scss +0 -122
- package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/text-editor/text-editor.component.ts +0 -314
- package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.html +0 -19
- package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.scss +0 -15
- package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.spec.ts +0 -22
- package/projects/nexheal-lib/src/lib/controls/textarea-control/textarea-control.component.ts +0 -83
- package/projects/nexheal-lib/src/public-api.ts +0 -13
- package/projects/nexheal-lib/tsconfig.lib.json +0 -18
- package/projects/nexheal-lib/tsconfig.lib.prod.json +0 -11
- package/projects/nexheal-lib/tsconfig.spec.json +0 -14
- package/tsconfig.json +0 -39
- /package/{projects/nexheal-lib/src → src}/styles/nexheal.scss +0 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, AfterViewInit, EventEmitter, ElementRef, Renderer2, ChangeDetectorRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
4
|
+
import { DatePipe } from '@angular/common';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
declare class AutocompleteControl implements ControlValueAccessor, OnInit, OnDestroy, AfterViewInit {
|
|
8
|
+
private subscription;
|
|
9
|
+
title: string;
|
|
10
|
+
required: boolean;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
customClass: string;
|
|
13
|
+
clearVal: boolean;
|
|
14
|
+
field: string;
|
|
15
|
+
error: boolean;
|
|
16
|
+
errorMessage: string;
|
|
17
|
+
autocomplete: string;
|
|
18
|
+
inputLoader: boolean;
|
|
19
|
+
isAddNewItem: boolean;
|
|
20
|
+
optionDisplayProperty: string;
|
|
21
|
+
optionSelected: EventEmitter<any>;
|
|
22
|
+
search: EventEmitter<string>;
|
|
23
|
+
selectionCleared: EventEmitter<void>;
|
|
24
|
+
addNewItemClicked: EventEmitter<void>;
|
|
25
|
+
blurEvent: EventEmitter<void>;
|
|
26
|
+
optionPatched: EventEmitter<any>;
|
|
27
|
+
private _disabled;
|
|
28
|
+
private _options;
|
|
29
|
+
set options(value: any[]);
|
|
30
|
+
get options(): any[];
|
|
31
|
+
get disabled(): boolean;
|
|
32
|
+
set disabled(value: boolean);
|
|
33
|
+
private valueBuffer;
|
|
34
|
+
private popperInstance;
|
|
35
|
+
private preventDropdownReopen;
|
|
36
|
+
private preventClearOnBlur;
|
|
37
|
+
private onChange;
|
|
38
|
+
private onTouched;
|
|
39
|
+
inputElement: ElementRef;
|
|
40
|
+
dropdownElement: ElementRef;
|
|
41
|
+
inputControl: FormControl<string | null>;
|
|
42
|
+
isDropdownOpen: boolean;
|
|
43
|
+
hasFocus: boolean;
|
|
44
|
+
selectedItems: any;
|
|
45
|
+
filteredSuggestions: any[];
|
|
46
|
+
highlightedIndex: number | null;
|
|
47
|
+
constructor();
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
ngAfterViewInit(): void;
|
|
50
|
+
ngOnDestroy(): void;
|
|
51
|
+
writeValue(value: any): void;
|
|
52
|
+
private processValueBuffer;
|
|
53
|
+
registerOnChange(fn: any): void;
|
|
54
|
+
registerOnTouched(fn: any): void;
|
|
55
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
56
|
+
filterSuggestions(value: string): void;
|
|
57
|
+
selectSuggestion(suggestion: any): void;
|
|
58
|
+
onFocus(): void;
|
|
59
|
+
onBlur(): void;
|
|
60
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
61
|
+
onOptionMouseDown(): void;
|
|
62
|
+
onMouseOver(index: number): void;
|
|
63
|
+
onAddNewItemClick(): void;
|
|
64
|
+
private createPopperInstance;
|
|
65
|
+
private scrollHighlightedItemIntoView;
|
|
66
|
+
resetInput(): void;
|
|
67
|
+
removeItem(item: any): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteControl, never>;
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteControl, "autocomplete-control", never, { "title": { "alias": "title"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "field": { "alias": "field"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputLoader": { "alias": "inputLoader"; "required": false; }; "isAddNewItem": { "alias": "isAddNewItem"; "required": false; }; "optionDisplayProperty": { "alias": "optionDisplayProperty"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "optionSelected": "optionSelected"; "search": "search"; "selectionCleared": "selectionCleared"; "addNewItemClicked": "addNewItemClicked"; "blurEvent": "blurEvent"; "optionPatched": "optionPatched"; }, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
type ViewMode = "day" | "month" | "yearRange";
|
|
73
|
+
declare class CalendarControl implements ControlValueAccessor, OnInit, OnDestroy {
|
|
74
|
+
datePipe: DatePipe;
|
|
75
|
+
title: string;
|
|
76
|
+
required: boolean;
|
|
77
|
+
customClass: string | object;
|
|
78
|
+
clearVal: boolean;
|
|
79
|
+
deFocus: boolean;
|
|
80
|
+
error: boolean;
|
|
81
|
+
errorMessage: string;
|
|
82
|
+
inputLoader: boolean;
|
|
83
|
+
hourFormat: string;
|
|
84
|
+
selectionMode: string;
|
|
85
|
+
timeOnly: boolean;
|
|
86
|
+
dateFormat: string;
|
|
87
|
+
placeholder: string;
|
|
88
|
+
disabled: boolean;
|
|
89
|
+
readonly: boolean;
|
|
90
|
+
submitted: boolean;
|
|
91
|
+
inputPlaceholder: boolean;
|
|
92
|
+
closeVal: boolean;
|
|
93
|
+
showTime: boolean;
|
|
94
|
+
selectionCleared: EventEmitter<void>;
|
|
95
|
+
blurEvent: EventEmitter<void>;
|
|
96
|
+
dateSelected: EventEmitter<Date | null>;
|
|
97
|
+
private _minDate?;
|
|
98
|
+
private _maxDate?;
|
|
99
|
+
get minDate(): string | undefined;
|
|
100
|
+
set minDate(value: string | undefined);
|
|
101
|
+
get maxDate(): string | undefined;
|
|
102
|
+
set maxDate(value: string | undefined);
|
|
103
|
+
get meridian(): 'AM' | 'PM';
|
|
104
|
+
private static _currentlyOpen?;
|
|
105
|
+
private onChangeFn;
|
|
106
|
+
private onTouchedFn;
|
|
107
|
+
private popperInstance;
|
|
108
|
+
rootElement: ElementRef;
|
|
109
|
+
inputEl: ElementRef<HTMLElement>;
|
|
110
|
+
datePickerEl: ElementRef<HTMLElement>;
|
|
111
|
+
isOpen: boolean;
|
|
112
|
+
focus: boolean;
|
|
113
|
+
displayMonth: number;
|
|
114
|
+
displayYear: number;
|
|
115
|
+
selectedDate: Date | null;
|
|
116
|
+
today: Date;
|
|
117
|
+
todayYear: number;
|
|
118
|
+
todayMonth: number;
|
|
119
|
+
todayDate: number;
|
|
120
|
+
selectedHour: number;
|
|
121
|
+
selectedMinute: number;
|
|
122
|
+
dayClassMap: {
|
|
123
|
+
[day: number]: {
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
selected: boolean;
|
|
126
|
+
today: boolean;
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
inputVal: string | null;
|
|
130
|
+
yearRangeSize: number;
|
|
131
|
+
currentView: ViewMode;
|
|
132
|
+
inputControl: FormControl;
|
|
133
|
+
constructor(datePipe: DatePipe);
|
|
134
|
+
ngOnInit(): void;
|
|
135
|
+
ngAfterViewChecked(): void;
|
|
136
|
+
ngAfterViewInit(): void;
|
|
137
|
+
ngOnDestroy(): void;
|
|
138
|
+
writeValue(value: any): void;
|
|
139
|
+
registerOnChange(fn: (value: string | null) => void): void;
|
|
140
|
+
registerOnTouched(fn: () => void): void;
|
|
141
|
+
setData(config: any): void;
|
|
142
|
+
onBlur(): void;
|
|
143
|
+
onFocus(): void;
|
|
144
|
+
setDisabledState(isDisabled: boolean): void;
|
|
145
|
+
onInputKeydown(event: KeyboardEvent): void;
|
|
146
|
+
selectDay(day: number | null): void;
|
|
147
|
+
get daysInMonth(): (number | null)[];
|
|
148
|
+
parseDate(val: any): Date | null;
|
|
149
|
+
formatOutput(date: Date): string;
|
|
150
|
+
isSelectedDay(day: number | null): boolean;
|
|
151
|
+
isDateDisabled(d: Date): boolean;
|
|
152
|
+
isDayDisabled(day: number | null): boolean;
|
|
153
|
+
goToMonthView(): void;
|
|
154
|
+
months: string[];
|
|
155
|
+
selectMonth(index: number): void;
|
|
156
|
+
get displayMonthName(): string;
|
|
157
|
+
prevMonth(): void;
|
|
158
|
+
nextMonth(): void;
|
|
159
|
+
goToYearRangeView(): void;
|
|
160
|
+
get yearRange(): number[];
|
|
161
|
+
getStartYearForRange(): number;
|
|
162
|
+
selectYear(year: number): void;
|
|
163
|
+
prevYearRange(): void;
|
|
164
|
+
nextYearRange(): void;
|
|
165
|
+
private formatOutputTimeOnly;
|
|
166
|
+
private patchDateWithTime;
|
|
167
|
+
setMeridian(value: "AM" | "PM"): void;
|
|
168
|
+
private buildDateWithTime;
|
|
169
|
+
incrementHour(): void;
|
|
170
|
+
decrementHour(): void;
|
|
171
|
+
incrementMinute(): void;
|
|
172
|
+
decrementMinute(): void;
|
|
173
|
+
initializePopper(): void;
|
|
174
|
+
destroyPopper(): void;
|
|
175
|
+
toggleCalendar(): void;
|
|
176
|
+
openCalendar(): void;
|
|
177
|
+
clickOutside(event: Event): void;
|
|
178
|
+
closeCalendar(): void;
|
|
179
|
+
clearDate(event: Event): void;
|
|
180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarControl, never>;
|
|
181
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarControl, "calendar-control", never, { "title": { "alias": "title"; "required": false; }; "required": { "alias": "required"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "deFocus": { "alias": "deFocus"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "inputLoader": { "alias": "inputLoader"; "required": false; }; "hourFormat": { "alias": "hourFormat"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; "timeOnly": { "alias": "timeOnly"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "inputPlaceholder": { "alias": "inputPlaceholder"; "required": false; }; "closeVal": { "alias": "close-val"; "required": false; }; "showTime": { "alias": "showTime"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "selectionCleared": "selectionCleared"; "blurEvent": "blurEvent"; "dateSelected": "dateSelected"; }, never, never, true, never>;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare class CheckboxControl implements ControlValueAccessor {
|
|
185
|
+
private _renderer;
|
|
186
|
+
private _elementRef;
|
|
187
|
+
title: string;
|
|
188
|
+
customClass: string;
|
|
189
|
+
type: 'boolean' | 'number' | 'string';
|
|
190
|
+
readonly: boolean;
|
|
191
|
+
set disabled(value: boolean);
|
|
192
|
+
checkboxChange: EventEmitter<boolean>;
|
|
193
|
+
blurEvent: EventEmitter<void>;
|
|
194
|
+
checkboxContainer: ElementRef;
|
|
195
|
+
private _disabled;
|
|
196
|
+
checkboxControl: FormControl<boolean | null>;
|
|
197
|
+
private onChange;
|
|
198
|
+
private onTouched;
|
|
199
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
200
|
+
writeValue(value: any): void;
|
|
201
|
+
registerOnChange(fn: any): void;
|
|
202
|
+
registerOnTouched(fn: any): void;
|
|
203
|
+
convertType(value: any): any;
|
|
204
|
+
onFocus(event: FocusEvent): void;
|
|
205
|
+
onBlur(): void;
|
|
206
|
+
setDisabledState(isDisabled: boolean): void;
|
|
207
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxControl, never>;
|
|
208
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxControl, "checkbox-control", never, { "title": { "alias": "title"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "type": { "alias": "type"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "checkboxChange": "checkboxChange"; "blurEvent": "blurEvent"; }, never, never, true, never>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
declare class InputControl implements ControlValueAccessor, OnInit, OnDestroy {
|
|
212
|
+
type: "text" | "password" | "decimal" | "number" | "email" | "search";
|
|
213
|
+
title: string;
|
|
214
|
+
placeholder: string;
|
|
215
|
+
customClass: string;
|
|
216
|
+
clearVal: boolean;
|
|
217
|
+
required: boolean;
|
|
218
|
+
deFocus: boolean;
|
|
219
|
+
error: boolean;
|
|
220
|
+
errorMessage: string;
|
|
221
|
+
autocomplete: string;
|
|
222
|
+
readonly: boolean;
|
|
223
|
+
search: boolean;
|
|
224
|
+
price: boolean;
|
|
225
|
+
maxlength: number;
|
|
226
|
+
ngModel: string;
|
|
227
|
+
advSearch: boolean;
|
|
228
|
+
inputLoader: boolean;
|
|
229
|
+
useReactiveForms: boolean;
|
|
230
|
+
blurEvent: EventEmitter<void>;
|
|
231
|
+
selectionCleared: EventEmitter<void>;
|
|
232
|
+
inputChange: EventEmitter<string>;
|
|
233
|
+
ngModelChange: EventEmitter<string>;
|
|
234
|
+
searchClicked: EventEmitter<void>;
|
|
235
|
+
advSearchClicked: EventEmitter<void>;
|
|
236
|
+
private _disabled;
|
|
237
|
+
set disabled(isDisabled: boolean);
|
|
238
|
+
get disabled(): boolean;
|
|
239
|
+
private valueChangesSubscription;
|
|
240
|
+
private onChange;
|
|
241
|
+
private onTouched;
|
|
242
|
+
isFocused: boolean;
|
|
243
|
+
showPassword: boolean;
|
|
244
|
+
inputControl: FormControl<string | null>;
|
|
245
|
+
ngOnInit(): void;
|
|
246
|
+
ngOnDestroy(): void;
|
|
247
|
+
getInputType(): "number" | "search" | "text" | "password" | "decimal" | "email";
|
|
248
|
+
writeValue(value: any): void;
|
|
249
|
+
registerOnChange(fn: any): void;
|
|
250
|
+
registerOnTouched(fn: any): void;
|
|
251
|
+
onBlur(): void;
|
|
252
|
+
onFocus(): void;
|
|
253
|
+
onKeyPress(event: KeyboardEvent): void;
|
|
254
|
+
setDisabledState(isDisabled: boolean): void;
|
|
255
|
+
passwordVisible(): void;
|
|
256
|
+
onSearchClick(): void;
|
|
257
|
+
onAdvSearchClick(): void;
|
|
258
|
+
showClearButton(): boolean | "" | null;
|
|
259
|
+
resetInput(): void;
|
|
260
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputControl, never>;
|
|
261
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputControl, "input-control", never, { "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "required": { "alias": "required"; "required": false; }; "deFocus": { "alias": "deFocus"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "search": { "alias": "search"; "required": false; }; "price": { "alias": "price"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "ngModel": { "alias": "ngModel"; "required": false; }; "advSearch": { "alias": "advSearch"; "required": false; }; "inputLoader": { "alias": "inputLoader"; "required": false; }; "useReactiveForms": { "alias": "useReactiveForms"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "blurEvent": "blurEvent"; "selectionCleared": "selectionCleared"; "inputChange": "inputChange"; "ngModelChange": "ngModelChange"; "searchClicked": "searchClicked"; "advSearchClicked": "advSearchClicked"; }, never, never, true, never>;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
declare class MultiselectControl implements ControlValueAccessor, OnInit, OnDestroy {
|
|
265
|
+
private cdRef;
|
|
266
|
+
private subscription;
|
|
267
|
+
title: string;
|
|
268
|
+
selectedItems: any[];
|
|
269
|
+
required: boolean;
|
|
270
|
+
placeholder: string;
|
|
271
|
+
customClass: string;
|
|
272
|
+
clearVal: boolean;
|
|
273
|
+
deFocus: boolean;
|
|
274
|
+
optionValueProperty: string;
|
|
275
|
+
inputLoader: boolean;
|
|
276
|
+
error: boolean;
|
|
277
|
+
errorMessage: string;
|
|
278
|
+
autocomplete: string;
|
|
279
|
+
showSearch: boolean;
|
|
280
|
+
optionDisplayProperty: string;
|
|
281
|
+
optionsSelected: EventEmitter<any[]>;
|
|
282
|
+
selectionCleared: EventEmitter<void>;
|
|
283
|
+
blurEvent: EventEmitter<void>;
|
|
284
|
+
inputControl: FormControl;
|
|
285
|
+
private _options;
|
|
286
|
+
set options(arr: any[]);
|
|
287
|
+
get options(): any[];
|
|
288
|
+
private _disabled;
|
|
289
|
+
get disabled(): boolean;
|
|
290
|
+
set disabled(value: boolean);
|
|
291
|
+
private _isPrimitivePatch;
|
|
292
|
+
private _pendingPrimitiveValues;
|
|
293
|
+
private onChange;
|
|
294
|
+
private onTouched;
|
|
295
|
+
dropdown: ElementRef;
|
|
296
|
+
input: ElementRef;
|
|
297
|
+
filteredOptions: any[];
|
|
298
|
+
isDropdownOpen: boolean;
|
|
299
|
+
selectAllChecked: boolean;
|
|
300
|
+
keySearch: string;
|
|
301
|
+
onSearch: Subject<string>;
|
|
302
|
+
selectedItemList: string;
|
|
303
|
+
highlightedIndex: number | null;
|
|
304
|
+
private dropdownInitialized;
|
|
305
|
+
private popperInstance;
|
|
306
|
+
constructor(cdRef: ChangeDetectorRef);
|
|
307
|
+
ngOnInit(): void;
|
|
308
|
+
ngAfterViewChecked(): void;
|
|
309
|
+
ngOnDestroy(): void;
|
|
310
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
311
|
+
writeValue(value: any): void;
|
|
312
|
+
private _mapPrimitivesToObjects;
|
|
313
|
+
registerOnChange(fn: any): void;
|
|
314
|
+
registerOnTouched(fn: any): void;
|
|
315
|
+
isSelected(option: any): boolean;
|
|
316
|
+
onBlur(event: FocusEvent): void;
|
|
317
|
+
setDisabledState(isDisabled: boolean): void;
|
|
318
|
+
handleInput(event: Event): void;
|
|
319
|
+
private _applyFilter;
|
|
320
|
+
private _recomputeSelectAllState;
|
|
321
|
+
onSelectAllChange(event: Event): void;
|
|
322
|
+
private _toggleSelectAll;
|
|
323
|
+
removeSelectedOption(option: any): void;
|
|
324
|
+
toggleCheckbox(option: any): void;
|
|
325
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
326
|
+
handleWindowKeydown(event: KeyboardEvent): void;
|
|
327
|
+
private _highlightNext;
|
|
328
|
+
private _highlightPrevious;
|
|
329
|
+
private _scrollToHighlighted;
|
|
330
|
+
private _createPopperInstance;
|
|
331
|
+
toggleDropdown(): void;
|
|
332
|
+
selectListOutsideClick(): void;
|
|
333
|
+
resetSelection(): void;
|
|
334
|
+
onCloseDropdown(): void;
|
|
335
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MultiselectControl, never>;
|
|
336
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MultiselectControl, "multiselect-control", never, { "title": { "alias": "title"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "deFocus": { "alias": "deFocus"; "required": false; }; "optionValueProperty": { "alias": "optionValueProperty"; "required": false; }; "inputLoader": { "alias": "inputLoader"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "optionDisplayProperty": { "alias": "optionDisplayProperty"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "optionsSelected": "optionsSelected"; "selectionCleared": "selectionCleared"; "blurEvent": "blurEvent"; }, never, never, true, never>;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare class SelectControl implements ControlValueAccessor, OnInit, OnDestroy {
|
|
340
|
+
private subscription;
|
|
341
|
+
optionDisplayProperty: string;
|
|
342
|
+
required: boolean;
|
|
343
|
+
placeholder: string;
|
|
344
|
+
customClass: string;
|
|
345
|
+
clearVal: boolean;
|
|
346
|
+
deFocus: boolean;
|
|
347
|
+
error: boolean;
|
|
348
|
+
errorMessage: string;
|
|
349
|
+
autocomplete: string;
|
|
350
|
+
inputLoader: boolean;
|
|
351
|
+
isAddNewItem: boolean;
|
|
352
|
+
optionSelected: EventEmitter<any>;
|
|
353
|
+
selectionCleared: EventEmitter<void>;
|
|
354
|
+
addNewItemClicked: EventEmitter<void>;
|
|
355
|
+
blurEvent: EventEmitter<void>;
|
|
356
|
+
optionPatched: EventEmitter<any>;
|
|
357
|
+
title: string;
|
|
358
|
+
private _options;
|
|
359
|
+
set options(opts: any[]);
|
|
360
|
+
get options(): any[];
|
|
361
|
+
get disabled(): boolean;
|
|
362
|
+
set disabled(value: boolean);
|
|
363
|
+
dropdown: ElementRef;
|
|
364
|
+
input: ElementRef;
|
|
365
|
+
filteredOptions: any[];
|
|
366
|
+
keySearch: string;
|
|
367
|
+
selectedItem: any;
|
|
368
|
+
onSearch: Subject<string>;
|
|
369
|
+
inputControl: FormControl;
|
|
370
|
+
isDropdownOpen: boolean;
|
|
371
|
+
highlightedIndex: number | null;
|
|
372
|
+
private onChange;
|
|
373
|
+
private onTouched;
|
|
374
|
+
private valueBuffer;
|
|
375
|
+
private _disabled;
|
|
376
|
+
private dropdownInitialized;
|
|
377
|
+
private popperInstance;
|
|
378
|
+
ngOnInit(): void;
|
|
379
|
+
ngAfterViewChecked(): void;
|
|
380
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
381
|
+
ngOnDestroy(): void;
|
|
382
|
+
writeValue(value: any): void;
|
|
383
|
+
processValueBuffer(): void;
|
|
384
|
+
registerOnChange(fn: any): void;
|
|
385
|
+
registerOnTouched(fn: any): void;
|
|
386
|
+
onBlur(): void;
|
|
387
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
388
|
+
setDisabledState(isDisabled: boolean): void;
|
|
389
|
+
selectOption(option: any): void;
|
|
390
|
+
highlightSelectedItem(): void;
|
|
391
|
+
highlightNext(): void;
|
|
392
|
+
highlightPrevious(): void;
|
|
393
|
+
focusOption(value: string): void;
|
|
394
|
+
scrollToHighlighted(): void;
|
|
395
|
+
onAddNewItemClick(): void;
|
|
396
|
+
createPopperInstance(): void;
|
|
397
|
+
toggleDropdown(): void;
|
|
398
|
+
openDropdown(event: KeyboardEvent): void;
|
|
399
|
+
selectListOutsideClick(e: Event): void;
|
|
400
|
+
hideDropdown(): void;
|
|
401
|
+
resetSelection(): void;
|
|
402
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectControl, never>;
|
|
403
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectControl, "select-control", never, { "optionDisplayProperty": { "alias": "optionDisplayProperty"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "deFocus": { "alias": "deFocus"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "inputLoader": { "alias": "inputLoader"; "required": false; }; "isAddNewItem": { "alias": "isAddNewItem"; "required": false; }; "title": { "alias": "title"; "required": false; }; "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "optionSelected": "optionSelected"; "selectionCleared": "selectionCleared"; "addNewItemClicked": "addNewItemClicked"; "blurEvent": "blurEvent"; "optionPatched": "optionPatched"; }, never, never, true, never>;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
declare class SwitchControl implements ControlValueAccessor {
|
|
407
|
+
private _renderer;
|
|
408
|
+
private _elementRef;
|
|
409
|
+
title: string;
|
|
410
|
+
customClass: string;
|
|
411
|
+
readonly: boolean;
|
|
412
|
+
set disabled(value: boolean);
|
|
413
|
+
set checked(value: boolean);
|
|
414
|
+
switchChange: EventEmitter<boolean>;
|
|
415
|
+
blurEvent: EventEmitter<void>;
|
|
416
|
+
switchContainer: ElementRef;
|
|
417
|
+
get checked(): boolean;
|
|
418
|
+
private _checked;
|
|
419
|
+
private _disabled;
|
|
420
|
+
switchControl: FormControl<boolean | null>;
|
|
421
|
+
private onChange;
|
|
422
|
+
private onTouched;
|
|
423
|
+
constructor(_renderer: Renderer2, _elementRef: ElementRef);
|
|
424
|
+
writeValue(value: any): void;
|
|
425
|
+
registerOnChange(fn: any): void;
|
|
426
|
+
registerOnTouched(fn: any): void;
|
|
427
|
+
onFocus(): void;
|
|
428
|
+
onBlur(): void;
|
|
429
|
+
setDisabledState(isDisabled: boolean): void;
|
|
430
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchControl, never>;
|
|
431
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchControl, "switch-control", never, { "title": { "alias": "title"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, { "switchChange": "switchChange"; "blurEvent": "blurEvent"; }, never, never, true, never>;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
declare class TextEditor implements ControlValueAccessor, OnInit, AfterViewInit {
|
|
435
|
+
header: boolean;
|
|
436
|
+
media: boolean;
|
|
437
|
+
link: boolean;
|
|
438
|
+
placeholder: string;
|
|
439
|
+
editorRef: ElementRef<HTMLDivElement>;
|
|
440
|
+
private onChange;
|
|
441
|
+
private onTouch;
|
|
442
|
+
private undoStack;
|
|
443
|
+
private redoStack;
|
|
444
|
+
ngOnInit(): void;
|
|
445
|
+
ngAfterViewInit(): void;
|
|
446
|
+
writeValue(value: string): void;
|
|
447
|
+
registerOnChange(fn: any): void;
|
|
448
|
+
registerOnTouched(fn: any): void;
|
|
449
|
+
onInput(): void;
|
|
450
|
+
onTouched(): void;
|
|
451
|
+
setDisabledState(isDisabled: boolean): void;
|
|
452
|
+
private getSelectionRange;
|
|
453
|
+
private wrapSelection;
|
|
454
|
+
private mergeAdjacentSimilarElements;
|
|
455
|
+
applyInlineStyle(styleType: 'bold' | 'italic' | 'underline'): void;
|
|
456
|
+
applyColor(event: Event): void;
|
|
457
|
+
applyHighlight(event: Event): void;
|
|
458
|
+
applyBlockFormat(blockTag: 'h1' | 'h2' | 'p'): void;
|
|
459
|
+
private findBlockAncestor;
|
|
460
|
+
private isBlockElement;
|
|
461
|
+
applyList(listType: 'ul' | 'ol'): void;
|
|
462
|
+
private splitContentByLine;
|
|
463
|
+
createLink(): void;
|
|
464
|
+
insertImage(): void;
|
|
465
|
+
setAlignment(alignment: 'left' | 'center' | 'right' | 'justify'): void;
|
|
466
|
+
clearFormatting(): void;
|
|
467
|
+
saveState(): void;
|
|
468
|
+
undo(): void;
|
|
469
|
+
redo(): void;
|
|
470
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextEditor, never>;
|
|
471
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEditor, "app-text-editor", never, { "header": { "alias": "header"; "required": false; }; "media": { "alias": "media"; "required": false; }; "link": { "alias": "link"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
declare class TextareaControl {
|
|
475
|
+
title: string;
|
|
476
|
+
placeholder: string;
|
|
477
|
+
customClass: string;
|
|
478
|
+
clearVal: boolean;
|
|
479
|
+
disabled: boolean;
|
|
480
|
+
readonly: boolean;
|
|
481
|
+
required: boolean;
|
|
482
|
+
error: boolean;
|
|
483
|
+
errorMessage: string;
|
|
484
|
+
textareaChange: EventEmitter<string>;
|
|
485
|
+
selectionCleared: EventEmitter<void>;
|
|
486
|
+
blurEvent: EventEmitter<void>;
|
|
487
|
+
private onChange;
|
|
488
|
+
private onTouched;
|
|
489
|
+
textareaControl: FormControl<string | null>;
|
|
490
|
+
constructor();
|
|
491
|
+
writeValue(value: any): void;
|
|
492
|
+
registerOnChange(fn: any): void;
|
|
493
|
+
registerOnTouched(fn: any): void;
|
|
494
|
+
onBlur(): void;
|
|
495
|
+
setDisabledState(isDisabled: boolean): void;
|
|
496
|
+
resetTextarea(): void;
|
|
497
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaControl, never>;
|
|
498
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaControl, "textarea-control", never, { "title": { "alias": "title"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "clearVal": { "alias": "clearVal"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "error": { "alias": "error"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; }, { "textareaChange": "textareaChange"; "selectionCleared": "selectionCleared"; "blurEvent": "blurEvent"; }, never, never, true, never>;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export { AutocompleteControl, CalendarControl, CheckboxControl, InputControl, MultiselectControl, SelectControl, SwitchControl, TextEditor, TextareaControl };
|
package/package.json
CHANGED
|
@@ -1,47 +1,23 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nexheal-lib",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"
|
|
10
|
-
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"@angular/compiler": "^20.0.0",
|
|
25
|
-
"@angular/core": "^20.0.0",
|
|
26
|
-
"@angular/forms": "^20.0.0",
|
|
27
|
-
"@angular/platform-browser": "^20.0.0",
|
|
28
|
-
"@angular/router": "^20.0.0",
|
|
29
|
-
"@popperjs/core": "^2.11.8",
|
|
30
|
-
"rxjs": "~7.8.0",
|
|
31
|
-
"tslib": "^2.3.0"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@angular/build": "^20.1.3",
|
|
35
|
-
"@angular/cli": "^20.0.5",
|
|
36
|
-
"@angular/compiler-cli": "^20.0.0",
|
|
37
|
-
"@types/jasmine": "~5.1.0",
|
|
38
|
-
"jasmine-core": "~5.7.0",
|
|
39
|
-
"karma": "~6.4.0",
|
|
40
|
-
"karma-chrome-launcher": "~3.2.0",
|
|
41
|
-
"karma-coverage": "~2.2.0",
|
|
42
|
-
"karma-jasmine": "~5.1.0",
|
|
43
|
-
"karma-jasmine-html-reporter": "~2.1.0",
|
|
44
|
-
"ng-packagr": "^20.1.0",
|
|
45
|
-
"typescript": "~5.8.2"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nexheal-lib",
|
|
3
|
+
"version": "0.0.5",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^20.1.0",
|
|
6
|
+
"@angular/core": "^20.1.0"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2.3.0"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": false,
|
|
12
|
+
"module": "fesm2022/nexheal-lib.mjs",
|
|
13
|
+
"typings": "index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
"./package.json": {
|
|
16
|
+
"default": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./index.d.ts",
|
|
20
|
+
"default": "./fesm2022/nexheal-lib.mjs"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -369,3 +369,16 @@ input::-webkit-inner-spin-button {
|
|
|
369
369
|
background-color: #cccccc;
|
|
370
370
|
}
|
|
371
371
|
}
|
|
372
|
+
.checkbox-container.readonly {
|
|
373
|
+
cursor: default;
|
|
374
|
+
pointer-events: none;
|
|
375
|
+
.checkmark {
|
|
376
|
+
cursor: default;
|
|
377
|
+
opacity: 0.75;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
.switch-container.readonly {
|
|
381
|
+
cursor: default;
|
|
382
|
+
pointer-events: none;
|
|
383
|
+
opacity: 0.75;
|
|
384
|
+
}
|
package/.editorconfig
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
# Editor configuration, see https://editorconfig.org
|
|
2
|
-
root = true
|
|
3
|
-
|
|
4
|
-
[*]
|
|
5
|
-
charset = utf-8
|
|
6
|
-
indent_style = space
|
|
7
|
-
indent_size = 2
|
|
8
|
-
insert_final_newline = true
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.ts]
|
|
12
|
-
quote_type = single
|
|
13
|
-
ij_typescript_use_double_quotes = false
|
|
14
|
-
|
|
15
|
-
[*.md]
|
|
16
|
-
max_line_length = off
|
|
17
|
-
trim_trailing_whitespace = false
|
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
3
|
-
"version": "0.2.0",
|
|
4
|
-
"configurations": [
|
|
5
|
-
{
|
|
6
|
-
"name": "ng serve",
|
|
7
|
-
"type": "chrome",
|
|
8
|
-
"request": "launch",
|
|
9
|
-
"preLaunchTask": "npm: start",
|
|
10
|
-
"url": "http://localhost:4200/"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "ng test",
|
|
14
|
-
"type": "chrome",
|
|
15
|
-
"request": "launch",
|
|
16
|
-
"preLaunchTask": "npm: test",
|
|
17
|
-
"url": "http://localhost:9876/debug.html"
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|