ui-core-abv 0.1.2 → 0.1.4

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.
@@ -6,8 +6,8 @@ export declare class UicButtonComponent {
6
6
  iconOnly: boolean;
7
7
  disabled: boolean;
8
8
  loading: boolean;
9
- size: 't' | 's' | 'm' | 'l' | 'g';
10
- type: 'filled' | 'bordered' | 'ghost';
9
+ size: ButtonSize;
10
+ type: ButtonType;
11
11
  color: ButtonColor;
12
12
  buttonTypeClass: string;
13
13
  ngOnInit(): void;
@@ -15,3 +15,5 @@ export declare class UicButtonComponent {
15
15
  static ɵcmp: i0.ɵɵComponentDeclaration<UicButtonComponent, "ui-button", never, { "text": { "alias": "text"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "rightIcon": { "alias": "rightIcon"; "required": false; }; "iconOnly": { "alias": "iconOnly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "size": { "alias": "size"; "required": false; }; "type": { "alias": "type"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
16
16
  }
17
17
  export type ButtonColor = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black';
18
+ export type ButtonSize = 't' | 's' | 'm' | 'l' | 'g';
19
+ export type ButtonType = 'filled' | 'bordered' | 'ghost';
@@ -1,12 +1,11 @@
1
1
  import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import { FormBlock, FormField, FormResult, FormSchema } from '../form.models';
2
+ import { FormField, FormResult, FormSchema } 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";
6
6
  export declare class UicFormWrapperComponent implements OnChanges {
7
7
  private readonly fb;
8
8
  form: FormGroup;
9
- useSteps: boolean;
10
9
  currentStep: number;
11
10
  schema: FormSchema;
12
11
  externalData: Record<string, AppSelectOption[]>;
@@ -23,14 +22,10 @@ export declare class UicFormWrapperComponent implements OnChanges {
23
22
  private updateDisabledState;
24
23
  private updateExtenalData;
25
24
  private mapValidatorsFromField;
26
- handleSubmit(): void;
25
+ handleSubmit(): FormResult;
27
26
  private handleFormChange;
28
27
  private updateFieldOptions;
29
28
  private collectAllFields;
30
- getCurrentBlocks(): FormBlock[];
31
- nextStep(): void;
32
- prevStep(): void;
33
- getStepTitle(): string;
34
29
  updateFieldValue(name: string, value: any): void;
35
30
  updateFieldDisabled(name: string, disabled: boolean): void;
36
31
  updateFieldLoading(name: string, loading: boolean): void;
@@ -1,14 +1,16 @@
1
+ import { Observable } from "rxjs";
1
2
  import { AppSelectOption } from "../inputs/select/select.component";
3
+ export interface FormStep {
4
+ title: string;
5
+ form: FormSchema;
6
+ required?: boolean;
7
+ okButtonText?: string;
8
+ cancelButtonText?: string;
9
+ }
2
10
  export interface FormSchema {
3
11
  cols: number;
4
- steps?: FormStep[];
5
12
  blocks?: FormBlock[];
6
13
  }
7
- export interface FormStep {
8
- title?: string;
9
- description?: string;
10
- blocks: FormBlock[];
11
- }
12
14
  export interface FormBlock {
13
15
  title?: string;
14
16
  fields: FormField[];
@@ -31,12 +33,18 @@ export interface FormField {
31
33
  max?: number;
32
34
  minLength?: number;
33
35
  maxLength?: number;
36
+ showCounter?: boolean;
34
37
  sliderInterval?: number;
35
38
  sliderMarks?: number;
36
39
  pattern?: RegExp;
37
40
  options?: AppSelectOption[];
41
+ multyoption?: boolean;
42
+ searchIdKey?: string;
43
+ searchFn?: (query: string) => Observable<any[]>;
44
+ searchDisplayFn?: (item: any) => string;
45
+ searchIsEnabledFn?: (item: any) => boolean;
38
46
  }
39
- export type FieldType = 'text' | 'number' | 'date' | 'select' | 'search' | 'checkbox' | 'switch' | 'slider';
47
+ export type FieldType = 'text' | 'number' | 'date' | 'select' | 'checkbox' | 'switch' | 'textarea' | 'pool' | 'searcher' | 'slider';
40
48
  export interface FormResult {
41
49
  result: boolean;
42
50
  form: any;
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class StepTabsComponent {
4
+ tabs: string[];
5
+ currentTab: string;
6
+ navigationEnabled: boolean;
7
+ showStepTitle: boolean;
8
+ currentTabChange: EventEmitter<string>;
9
+ currentIndex: number;
10
+ changeTab(newTab: string): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<StepTabsComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepTabsComponent, "ui-step-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "currentTab": { "alias": "currentTab"; "required": false; }; "navigationEnabled": { "alias": "navigationEnabled"; "required": false; }; "showStepTitle": { "alias": "showStepTitle"; "required": false; }; }, { "currentTabChange": "currentTabChange"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1,34 @@
1
+ import { EventEmitter, QueryList } from '@angular/core';
2
+ import { FormResult, FormStep } from '../form.models';
3
+ import { ButtonColor } from '../../button/button.component';
4
+ import { UicFormWrapperComponent } from '../form-wrapper/form-wrapper.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UicStepsFormComponent {
7
+ allForms: QueryList<UicFormWrapperComponent>;
8
+ steps: FormStep[];
9
+ navigationEnabled: boolean;
10
+ showStepTitle: boolean;
11
+ showButtons: boolean;
12
+ buttonsColor: ButtonColor;
13
+ formSubmit: EventEmitter<FormResult>;
14
+ externalData: {};
15
+ formDisabled: boolean;
16
+ loading: boolean;
17
+ tabs: string[];
18
+ completedForms: Map<string, Record<string, any>>;
19
+ currentTabTitle: string;
20
+ ngOnInit(): void;
21
+ private getFormByTitle;
22
+ updateFieldValue(step: string, controlName: string, value: string): void;
23
+ updateFildDisabled(step: string, controlName: string, value: boolean): void;
24
+ updateFildLoading(step: string, controlName: string, value: boolean): void;
25
+ next(): void;
26
+ back(): void;
27
+ private handleStepSubmit;
28
+ private getMergedForm;
29
+ get currentIdx(): number;
30
+ get isFirst(): boolean;
31
+ get isLast(): boolean;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicStepsFormComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicStepsFormComponent, "ui-steps-form", never, { "steps": { "alias": "steps"; "required": false; }; "navigationEnabled": { "alias": "navigationEnabled"; "required": false; }; "showStepTitle": { "alias": "showStepTitle"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "buttonsColor": { "alias": "buttonsColor"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, never, true, never>;
34
+ }
@@ -19,9 +19,10 @@ export declare class UicCheckboxComponent extends base {
19
19
  type: 'check' | 'switch';
20
20
  placeholder: string;
21
21
  loading: boolean;
22
+ noPadding: boolean;
22
23
  disabled: boolean;
23
24
  toggle(): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<UicCheckboxComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<UicCheckboxComponent, "ui-checkbox", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "label": { "alias": "label"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicCheckboxComponent, "ui-checkbox", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "label": { "alias": "label"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "noPadding": { "alias": "noPadding"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
26
27
  }
27
28
  export {};
@@ -15,5 +15,5 @@ export declare class UicInputComponent {
15
15
  disableBtn: boolean;
16
16
  disableButton(): void;
17
17
  static ɵfac: i0.ɵɵFactoryDeclaration<UicInputComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<UicInputComponent, "ui-input", 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; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "clickButton": "clickButton"; }, never, ["*"], true, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicInputComponent, "ui-input", 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; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "clickButton": "clickButton"; }, never, ["*", "[counter]"], true, never>;
19
19
  }
@@ -0,0 +1,55 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { ConnectedPosition } from '@angular/cdk/overlay';
4
+ import * as i0 from "@angular/core";
5
+ declare const base: abstract new () => {
6
+ value: Record<string, any> | null;
7
+ valueChange: import("@angular/core").EventEmitter<Record<string, any> | null>;
8
+ onChange: (value: Record<string, any> | null) => void;
9
+ onTouched: () => void;
10
+ writeValue(obj: Record<string, any> | null): void;
11
+ registerOnChange(fn: any): void;
12
+ registerOnTouched(fn: any): void;
13
+ setDisabledState?(isDisabled: boolean): void;
14
+ notifyChange(value: Record<string, any> | null): void;
15
+ };
16
+ export declare class UicSearcherComponent extends base {
17
+ icon: string;
18
+ iconColor: 'primary' | 'secondary';
19
+ internalIcon: string;
20
+ size: 's' | 'm' | 'l';
21
+ label: string;
22
+ error: string;
23
+ tip: string;
24
+ showSubtitle: boolean;
25
+ disabled: boolean;
26
+ loading: boolean;
27
+ showSelected: boolean;
28
+ placeholder: string;
29
+ searchFn?: (query: string) => Observable<any[]>;
30
+ itemDisplayFn?: (item: any) => string;
31
+ itemIsEnabledFn?: (item: any) => boolean;
32
+ manualSearch: boolean;
33
+ private readonly searchSubject;
34
+ results$: Observable<any[]>;
35
+ selectedOption: Record<string, any> | null;
36
+ searchText: string;
37
+ watingApi: boolean;
38
+ private readonly overlay;
39
+ private readonly vcr;
40
+ private readonly host;
41
+ onSearchChange(value: string): void;
42
+ triggerSearch(): void;
43
+ selectItem(item: Record<string, any>): void;
44
+ clearSearch(): void;
45
+ unselect(): void;
46
+ dropdownTemplate: TemplateRef<any>;
47
+ private overlayRef;
48
+ overlayPositions: ConnectedPosition[];
49
+ openList(): void;
50
+ closeList(): void;
51
+ writeValue(value: Record<string, any>): void;
52
+ 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>;
54
+ }
55
+ export {};
@@ -23,6 +23,7 @@ export declare class UicSideModalComponent {
23
23
  ngAfterViewInit(): void;
24
24
  closeOuside(): void;
25
25
  close(): void;
26
+ cancel(): void;
26
27
  onAnimationDone(event: any): void;
27
28
  save(): void;
28
29
  static ɵfac: i0.ɵɵFactoryDeclaration<UicSideModalComponent, never>;
@@ -5,7 +5,10 @@ export interface SideModalConfig<T = any> {
5
5
  footerEnabled?: boolean;
6
6
  footerOkButtonText?: string;
7
7
  showCancelButton?: boolean;
8
+ preventCloseOnCancel?: boolean;
8
9
  footerCancelButtonText?: string;
10
+ footerCancelIcon?: string;
11
+ footerOkIcon?: string;
9
12
  headerEnabled?: boolean;
10
13
  width?: string;
11
14
  }
@@ -0,0 +1,32 @@
1
+ import { AppSelectOption } from '../inputs/select/select.component';
2
+ import * as i0 from "@angular/core";
3
+ type selectId = number | string;
4
+ declare const base: abstract new () => {
5
+ value: selectId[];
6
+ valueChange: import("@angular/core").EventEmitter<selectId[]>;
7
+ onChange: (value: selectId[]) => void;
8
+ onTouched: () => void;
9
+ writeValue(obj: selectId[]): void;
10
+ registerOnChange(fn: any): void;
11
+ registerOnTouched(fn: any): void;
12
+ setDisabledState?(isDisabled: boolean): void;
13
+ notifyChange(value: selectId[]): void;
14
+ };
15
+ export declare class UicPoolOptionsComponent extends base {
16
+ icon: string;
17
+ iconColor: 'primary' | 'secondary';
18
+ size: 's' | 'm' | 'l';
19
+ label: string;
20
+ error: string;
21
+ tip: string;
22
+ disabled: boolean;
23
+ loading: boolean;
24
+ multy: boolean;
25
+ options: AppSelectOption[];
26
+ selectedSet: Set<selectId>;
27
+ updateOptions(id: selectId): void;
28
+ writeValue(value: selectId[]): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicPoolOptionsComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicPoolOptionsComponent, "ui-pool-options", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "multy": { "alias": "multy"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
31
+ }
32
+ export {};
@@ -0,0 +1,6 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UicStatusLabelComponent {
3
+ color: string;
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicStatusLabelComponent, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicStatusLabelComponent, "ui-status-label", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], true, never>;
6
+ }
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { TableAction, TableColums, TableRow, TableFilters, TableRowData } from './table.models';
2
+ import { TableAction, TableColums, TableRow, TableFilters, TableRowData, TableButton } from './table.models';
3
+ import { ActionMenuOption } from '../uic-action-button/uic-action-button.component';
3
4
  import * as i0 from "@angular/core";
4
5
  export declare class UicTableComponent {
5
6
  columns: TableColums[];
@@ -22,12 +23,15 @@ export declare class UicTableComponent {
22
23
  action: EventEmitter<TableAction>;
23
24
  update: EventEmitter<TableFilters>;
24
25
  checkedChange: EventEmitter<(string | number)[]>;
26
+ allSelected: boolean;
25
27
  checkedIds: Set<string | number>;
26
28
  sortKey: string;
27
29
  sortAsc: boolean;
28
30
  filter: string;
29
31
  page: number;
30
- getValue(data: TableRowData[], key: string): string | number;
32
+ ngOnInit(): void;
33
+ getValue(data: TableRowData[], key: string): string;
34
+ getMoreActions(actions: TableButton[]): ActionMenuOption[];
31
35
  getFontColor(data: TableRowData[], key: string): string;
32
36
  getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
33
37
  isValidRule(data: TableRowData[], key: string[] | undefined): boolean;
@@ -42,10 +46,9 @@ export declare class UicTableComponent {
42
46
  toggleSelection(id: string | number, checked: boolean): void;
43
47
  toggleAll(checked: boolean): void;
44
48
  areAllSelected(): void;
45
- allSelected: boolean;
46
49
  ngOnChanges(): void;
47
50
  doAction(rowId: string | number, key: string): void;
48
51
  resetCheckedIds(): void;
49
52
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "squeletonRows": { "alias": "squeletonRows"; "required": false; }; "buttonSize": { "alias": "buttonSize"; "required": false; }; "highlightedId": { "alias": "highlightedId"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]"], true, never>;
53
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "squeletonRows": { "alias": "squeletonRows"; "required": false; }; "buttonSize": { "alias": "buttonSize"; "required": false; }; "highlightedId": { "alias": "highlightedId"; "required": false; }; "headerText": { "alias": "headerText"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]", "[filters]"], true, never>;
51
54
  }
@@ -1,16 +1,20 @@
1
- import { ButtonColor } from "../button/button.component";
1
+ import { ButtonColor, ButtonType } from "../button/button.component";
2
2
  export interface TableColums {
3
3
  label: string;
4
4
  key: string;
5
+ width?: number;
6
+ align?: 'flex-start' | 'flex-end' | 'center';
5
7
  type: ColumnTypes;
6
8
  sortEnable?: boolean;
7
9
  actions?: TableButton[];
10
+ moreActions?: TableButton[];
8
11
  }
9
12
  export interface TableButton {
10
13
  key: string;
11
14
  color: ButtonColor;
12
15
  icon?: string;
13
16
  text?: string;
17
+ type?: ButtonType;
14
18
  tooltip?: string;
15
19
  rule?: string[];
16
20
  }
@@ -44,7 +48,7 @@ export interface TableAction {
44
48
  rowId: number | string;
45
49
  key: string;
46
50
  }
47
- export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list';
51
+ export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status';
48
52
  export type TableTextColors = 'primary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
49
53
  export type BackgroundColors = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'transparent' | 'white';
50
54
  export interface TableFilters {
@@ -0,0 +1,36 @@
1
+ import { ConnectedPosition } from '@angular/cdk/overlay';
2
+ import { EventEmitter, TemplateRef } from '@angular/core';
3
+ import { ButtonSize } from '../button/button.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class UicActionButtonComponent {
6
+ icon: string;
7
+ options: ActionMenuOption[];
8
+ multiselect: boolean;
9
+ size: ButtonSize;
10
+ optionSelected: EventEmitter<ActionMenuOption>;
11
+ optionsApplied: EventEmitter<ActionMenuOption[]>;
12
+ menuTemplate: TemplateRef<any>;
13
+ private overlayRef;
14
+ private readonly overlay;
15
+ private readonly vcr;
16
+ private readonly host;
17
+ selectedSet: Set<string | number>;
18
+ allSelected: boolean;
19
+ overlayPositions: ConnectedPosition[];
20
+ openMenu(): void;
21
+ /** SINGLE SELECT MODE */
22
+ selectOption(option: ActionMenuOption): void;
23
+ /** MULTISELECT MODE */
24
+ toggleOption(opt: ActionMenuOption): void;
25
+ toggleAll(checked: boolean): void;
26
+ applySelection(): void;
27
+ updateAllSelected(): void;
28
+ closeMenu(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicActionButtonComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicActionButtonComponent, "ui-action-button", never, { "icon": { "alias": "icon"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiselect": { "alias": "multiselect"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "optionSelected": "optionSelected"; "optionsApplied": "optionsApplied"; }, never, never, true, never>;
31
+ }
32
+ export interface ActionMenuOption {
33
+ id: string;
34
+ label: string;
35
+ icon?: string;
36
+ }
@@ -13,8 +13,8 @@ export declare class UicModalService {
13
13
  close(overlayRef: OverlayRef, result?: any): void;
14
14
  closeFloating(overlayRef: OverlayRef, result?: any): void;
15
15
  private readonly _save$;
16
- save$: import("rxjs").Observable<void>;
17
- triggerSave(): void;
16
+ save$: import("rxjs").Observable<boolean>;
17
+ triggerSave(result?: boolean): void;
18
18
  private createOverlayConfig;
19
19
  private createModalInjector;
20
20
  static ɵfac: i0.ɵɵFactoryDeclaration<UicModalService, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0",
package/public-api.d.ts CHANGED
@@ -2,15 +2,17 @@ export * from './lib/components/button/button.component';
2
2
  export * from './lib/components/inputs/checkbox/checkbox.component';
3
3
  export * from './lib/components/inputs/toggle-button/toggle-button.component';
4
4
  export * from './lib/components/dynamic-form/form-wrapper/form-wrapper.component';
5
+ export * from './lib/components/dynamic-form/steps-form/steps-form.component';
5
6
  export * from './lib/components/inputs/input/input.component';
6
7
  export * from './lib/components/inputs/date-picker/date-picker.component';
7
- export * from './lib/components/inputs/searcher/searcher.component';
8
+ export * from './lib/components/inputs/uic-searcher/uic-searcher.component';
8
9
  export * from './lib/components/inputs/select/select.component';
9
10
  export * from './lib/components/table/table.component';
10
11
  export * from './lib/components/table/table.models';
11
12
  export * from './lib/components/skeleton-loader/skeleton-loader.component';
12
13
  export * from './lib/components/push-alerts/alert-container/alert-container.component';
13
14
  export * from './lib/components/inputs/ui-slider/ui-slider.component';
15
+ export * from './lib/components/uic-action-button/uic-action-button.component';
14
16
  export * from './lib/animations/animatios.index';
15
17
  export * from './lib/components/dynamic-form/form.models';
16
18
  export * from './lib/services/modal.service';
@@ -1,46 +0,0 @@
1
- import { Overlay, OverlayPositionBuilder, OverlayRef } from '@angular/cdk/overlay';
2
- import { ElementRef, EventEmitter, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class UicSearcherComponent {
6
- private readonly renderer;
7
- private readonly overlay;
8
- private readonly positionBuilder;
9
- private readonly vcr;
10
- icon: string;
11
- iconColor: 'primary' | 'secondary' | 'error' | 'light' | 'grey';
12
- internalIcon: string;
13
- size: 's' | 'm' | 'l';
14
- label: string;
15
- error: string;
16
- tip: string;
17
- disabled: boolean;
18
- showSelected: boolean;
19
- placeholder: string;
20
- open: boolean;
21
- searchFn: (query: string) => Observable<any[]>;
22
- itemDisplayFn: (item: any) => string;
23
- itemIsEnabledFn: (item: any) => boolean;
24
- manualSearch: boolean;
25
- selectedItem: any;
26
- selectedItemChange: EventEmitter<any>;
27
- isLoading: boolean;
28
- searchText: string;
29
- private readonly searchSubject;
30
- results$: Observable<any[]>;
31
- toggleButton: ElementRef;
32
- private unlistener;
33
- constructor(renderer: Renderer2, overlay: Overlay, positionBuilder: OverlayPositionBuilder, vcr: ViewContainerRef);
34
- openList(): void;
35
- onSearchChange(value: string): void;
36
- triggerSearch(): void;
37
- selectItem(item: any): void;
38
- clearSearch(): void;
39
- unselect(): void;
40
- dropdownTemplateRef: TemplateRef<any>;
41
- overlayRef: OverlayRef;
42
- closeOverlay(): void;
43
- openOverlay(): void;
44
- static ɵfac: i0.ɵɵFactoryDeclaration<UicSearcherComponent, never>;
45
- 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; }; "disabled": { "alias": "disabled"; "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; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; }, { "selectedItemChange": "selectedItemChange"; }, never, never, true, never>;
46
- }