ui-core-abv 0.1.96 → 0.2.1
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/ui-core-abv.mjs +187 -77
- package/fesm2022/ui-core-abv.mjs.map +1 -1
- package/lib/components/dropdown-container/dropdown-close.directive.d.ts +7 -0
- package/lib/components/dropdown-container/dropdown-container.component.d.ts +14 -9
- package/lib/components/dynamic-form/form-wrapper/form-wrapper.component.d.ts +4 -3
- package/lib/components/dynamic-form/form.models.d.ts +4 -1
- package/lib/components/inputs/date-picker/date-picker.component.d.ts +4 -3
- package/lib/components/inputs/multy-searcher/multy-searcher.component.d.ts +11 -0
- package/lib/components/inputs/uic-searcher/uic-searcher.component.d.ts +5 -3
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class UiDropdownCloseDirective {
|
|
3
|
+
private readonly dropdown;
|
|
4
|
+
handleClick(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiDropdownCloseDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<UiDropdownCloseDirective, "[uiDropdownClose]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
|
-
import {
|
|
2
|
+
import { EventEmitter, InjectionToken, OnDestroy, TemplateRef } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export
|
|
4
|
+
export interface DropdownOverlayControls {
|
|
5
|
+
close(): void;
|
|
6
|
+
open(): void;
|
|
7
|
+
toggle(): void;
|
|
8
|
+
readonly isOpen: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const DROPDOWN_OVERLAY_CONTROLS: InjectionToken<DropdownOverlayControls>;
|
|
11
|
+
export declare class UicDropdownContainerComponent implements OnDestroy, DropdownOverlayControls {
|
|
5
12
|
private _disabled;
|
|
13
|
+
private readonly host;
|
|
6
14
|
buttonLabel: string;
|
|
7
15
|
get disabled(): boolean;
|
|
8
16
|
set disabled(value: boolean);
|
|
@@ -11,7 +19,6 @@ export declare class UicDropdownContainerComponent implements OnDestroy {
|
|
|
11
19
|
width?: number | string;
|
|
12
20
|
minWidth?: number | string;
|
|
13
21
|
maxWidth?: number | string;
|
|
14
|
-
panelClass?: string | string[];
|
|
15
22
|
backdropClass: string;
|
|
16
23
|
hasBackdrop: boolean;
|
|
17
24
|
closeOnBackdropClick: boolean;
|
|
@@ -21,15 +28,14 @@ export declare class UicDropdownContainerComponent implements OnDestroy {
|
|
|
21
28
|
offsetY: number;
|
|
22
29
|
push: boolean;
|
|
23
30
|
flexibleDimensions: boolean;
|
|
24
|
-
opened: EventEmitter<void>;
|
|
25
31
|
closed: EventEmitter<void>;
|
|
26
|
-
triggerButton?: ElementRef<HTMLButtonElement>;
|
|
27
32
|
contentTemplate?: TemplateRef<unknown>;
|
|
28
33
|
projectedTemplate?: TemplateRef<unknown>;
|
|
29
34
|
private overlayRef?;
|
|
30
35
|
private readonly overlay;
|
|
31
36
|
private readonly vcr;
|
|
32
|
-
private
|
|
37
|
+
private overlaySubscriptions;
|
|
38
|
+
private contentClickHandler?;
|
|
33
39
|
get isOpen(): boolean;
|
|
34
40
|
ngOnDestroy(): void;
|
|
35
41
|
open(): void;
|
|
@@ -37,10 +43,9 @@ export declare class UicDropdownContainerComponent implements OnDestroy {
|
|
|
37
43
|
toggle(): void;
|
|
38
44
|
onTriggerClick(event: Event): void;
|
|
39
45
|
private createPositionStrategy;
|
|
40
|
-
private attachOverlayListeners;
|
|
41
|
-
private readonly overlayContentClick;
|
|
42
46
|
private destroyOverlay;
|
|
43
47
|
private resolveDimension;
|
|
48
|
+
private bindOverlayEvents;
|
|
44
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicDropdownContainerComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicDropdownContainerComponent, "ui-dropdown-container", never, { "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "positions": { "alias": "positions"; "required": false; }; "matchTriggerWidth": { "alias": "matchTriggerWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicDropdownContainerComponent, "ui-dropdown-container", never, { "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "positions": { "alias": "positions"; "required": false; }; "matchTriggerWidth": { "alias": "matchTriggerWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; }; "closeOnContentClick": { "alias": "closeOnContentClick"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "push": { "alias": "push"; "required": false; }; "flexibleDimensions": { "alias": "flexibleDimensions"; "required": false; }; }, { "closed": "closed"; }, ["projectedTemplate"], ["[button]", "[content]"], true, never>;
|
|
46
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormField, FormResult, FormSchema } from '../form.models';
|
|
2
|
+
import { FormField, FormResult, FormSchema, uicFormValuesRecord } from '../form.models';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
4
|
import { AppSelectOption } from '../../inputs/select/select.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -12,9 +12,9 @@ export declare class UicFormWrapperComponent implements OnChanges {
|
|
|
12
12
|
loading: boolean;
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
showButtons: boolean;
|
|
15
|
-
initialValues:
|
|
15
|
+
initialValues: uicFormValuesRecord;
|
|
16
16
|
formSubmit: EventEmitter<FormResult>;
|
|
17
|
-
formChange: EventEmitter<
|
|
17
|
+
formChange: EventEmitter<uicFormValuesRecord>;
|
|
18
18
|
private readonly destroy$;
|
|
19
19
|
ngOnChanges(changes: SimpleChanges): void;
|
|
20
20
|
private handleNgOnChange;
|
|
@@ -28,6 +28,7 @@ export declare class UicFormWrapperComponent implements OnChanges {
|
|
|
28
28
|
private updateFieldOptions;
|
|
29
29
|
private collectAllFields;
|
|
30
30
|
updateFieldValue(name: string, value: any): void;
|
|
31
|
+
updateFieldConfig(name: string, config: Omit<FormField, 'name' | 'type'>): void;
|
|
31
32
|
updateFieldDisabled(name: string, disabled: boolean): void;
|
|
32
33
|
updateFieldLoading(name: string, loading: boolean): void;
|
|
33
34
|
submit(): void;
|
|
@@ -44,6 +44,8 @@ export interface FormField {
|
|
|
44
44
|
sliderMarks?: number;
|
|
45
45
|
monthMode?: boolean;
|
|
46
46
|
monthDay?: 'first' | 'last';
|
|
47
|
+
minDate?: string;
|
|
48
|
+
maxDate?: string;
|
|
47
49
|
timeInterval?: number;
|
|
48
50
|
fileTypes?: string[] | string;
|
|
49
51
|
poolEnabledListView?: boolean;
|
|
@@ -58,5 +60,6 @@ export interface FormField {
|
|
|
58
60
|
export type FieldType = 'text' | 'number' | 'phone' | 'date' | 'time' | 'select' | 'checkbox' | 'switch' | 'textarea' | 'pool' | 'file' | 'multyselect' | 'searcher' | 'slider';
|
|
59
61
|
export interface FormResult {
|
|
60
62
|
result: boolean;
|
|
61
|
-
form:
|
|
63
|
+
form: uicFormValuesRecord | null;
|
|
62
64
|
}
|
|
65
|
+
export type uicFormValuesRecord = Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
1
|
+
import { OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
3
|
import { ButtonColor } from '../../button/button.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -14,7 +14,7 @@ declare const base: abstract new () => {
|
|
|
14
14
|
setDisabledState?(isDisabled: boolean): void;
|
|
15
15
|
notifyChange(value: string): void;
|
|
16
16
|
};
|
|
17
|
-
export declare class UicDatePickerComponent extends base {
|
|
17
|
+
export declare class UicDatePickerComponent extends base implements OnChanges {
|
|
18
18
|
icon: string;
|
|
19
19
|
iconColor: ButtonColor;
|
|
20
20
|
internalIcon: string;
|
|
@@ -47,6 +47,7 @@ export declare class UicDatePickerComponent extends base {
|
|
|
47
47
|
private readonly vcr;
|
|
48
48
|
private readonly host;
|
|
49
49
|
ngOnInit(): void;
|
|
50
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
50
51
|
overlayPositions: ConnectedPosition[];
|
|
51
52
|
openCalendar(): void;
|
|
52
53
|
closeCalendar(): void;
|
|
@@ -62,7 +63,7 @@ export declare class UicDatePickerComponent extends base {
|
|
|
62
63
|
isToday(day: Date | null): boolean;
|
|
63
64
|
isPainted(day: Date | null): boolean;
|
|
64
65
|
isThisMonth(m: string): boolean;
|
|
65
|
-
parseDateLimits(date: string): Date | null;
|
|
66
|
+
parseDateLimits(date: string | Date | null | undefined): Date | null;
|
|
66
67
|
cleanInput(): void;
|
|
67
68
|
pickToday(): void;
|
|
68
69
|
onInputChange(event: Event): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class UicMultySearcherComponent {
|
|
4
|
+
itemDisplayFn?: (item: any) => string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
values: any[];
|
|
7
|
+
valuesChange: EventEmitter<any[]>;
|
|
8
|
+
removeItem(idx: number): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UicMultySearcherComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicMultySearcherComponent, "ui-multy-searcher", never, { "itemDisplayFn": { "alias": "itemDisplayFn"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "values": { "alias": "values"; "required": false; }; }, { "valuesChange": "valuesChange"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
declare const base: abstract new () => {
|
|
6
6
|
value: Record<string, any> | null;
|
|
7
|
-
valueChange:
|
|
7
|
+
valueChange: EventEmitter<Record<string, any> | null>;
|
|
8
8
|
onChange: (value: Record<string, any> | null) => void;
|
|
9
9
|
onTouched: () => void;
|
|
10
10
|
writeValue(obj: Record<string, any> | null): void;
|
|
@@ -30,6 +30,8 @@ export declare class UicSearcherComponent extends base {
|
|
|
30
30
|
itemDisplayFn?: (item: any) => string;
|
|
31
31
|
itemIsEnabledFn?: (item: any) => boolean;
|
|
32
32
|
manualSearch: boolean;
|
|
33
|
+
stateless: boolean;
|
|
34
|
+
pickedItem: EventEmitter<Record<string, any>>;
|
|
33
35
|
private readonly searchSubject;
|
|
34
36
|
results$: Observable<any[]>;
|
|
35
37
|
selectedOption: Record<string, any> | null;
|
|
@@ -50,6 +52,6 @@ export declare class UicSearcherComponent extends base {
|
|
|
50
52
|
closeList(): void;
|
|
51
53
|
writeValue(value: Record<string, any>): void;
|
|
52
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<UicSearcherComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UicSearcherComponent, "ui-searcher", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showSelected": { "alias": "showSelected"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "itemDisplayFn": { "alias": "itemDisplayFn"; "required": false; }; "itemIsEnabledFn": { "alias": "itemIsEnabledFn"; "required": false; }; "manualSearch": { "alias": "manualSearch"; "required": false; }; }, {}, never, never, true, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UicSearcherComponent, "ui-searcher", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "showSelected": { "alias": "showSelected"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "itemDisplayFn": { "alias": "itemDisplayFn"; "required": false; }; "itemIsEnabledFn": { "alias": "itemIsEnabledFn"; "required": false; }; "manualSearch": { "alias": "manualSearch"; "required": false; }; "stateless": { "alias": "stateless"; "required": false; }; }, { "pickedItem": "pickedItem"; }, never, never, true, never>;
|
|
54
56
|
}
|
|
55
57
|
export {};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -6,12 +6,14 @@ export * from './lib/components/dynamic-form/steps-form/steps-form.component';
|
|
|
6
6
|
export * from './lib/components/dynamic-form/steps-form/step-tabs/step-tabs.component';
|
|
7
7
|
export * from './lib/components/inputs/input/input.component';
|
|
8
8
|
export * from './lib/components/inputs/date-picker/date-picker.component';
|
|
9
|
+
export * from './lib/components/inputs/multy-searcher/multy-searcher.component';
|
|
9
10
|
export * from './lib/components/inputs/uic-searcher/uic-searcher.component';
|
|
10
11
|
export * from './lib/components/inputs/file-input/file-input.component';
|
|
11
12
|
export * from './lib/components/inputs/select/select.component';
|
|
12
13
|
export * from './lib/components/inputs/phone-input/phone-input.component';
|
|
13
14
|
export * from './lib/components/inputs/multy-select/multy-select.component';
|
|
14
15
|
export * from './lib/components/dropdown-container/dropdown-container.component';
|
|
16
|
+
export * from './lib/components/dropdown-container/dropdown-close.directive';
|
|
15
17
|
export * from './lib/components/inputs/time-picker/time-picker.component';
|
|
16
18
|
export * from './lib/components/table/table.component';
|
|
17
19
|
export * from './lib/components/table/table.models';
|