ui-core-abv 0.3.0 → 0.3.15

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.
@@ -1,3 +1,4 @@
1
+ import { SimpleChanges } from '@angular/core';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class UicButtonComponent {
3
4
  text: string;
@@ -11,6 +12,7 @@ export declare class UicButtonComponent {
11
12
  color: ButtonColor;
12
13
  buttonTypeClass: string;
13
14
  ngOnInit(): void;
15
+ ngOnChange(sc: SimpleChanges): void;
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<UicButtonComponent, never>;
15
17
  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
18
  }
@@ -8,6 +8,8 @@ export declare class UicDynamicFormComponent {
8
8
  fields: FormField[];
9
9
  form: FormGroup;
10
10
  disabled: boolean;
11
+ voiceToTextSilenceMs: number;
12
+ private readonly alertS;
11
13
  colorToIcon: Record<string, string>;
12
14
  flag: boolean;
13
15
  cols: number;
@@ -19,7 +21,10 @@ export declare class UicDynamicFormComponent {
19
21
  getInputColor(field: FormField, value: string): ButtonColor;
20
22
  getIconByColor(field: FormField, color: string): string;
21
23
  private recognition;
24
+ private voiceStopTimer;
25
+ private clearVoiceStopTimer;
26
+ private scheduleVoiceStop;
22
27
  voiceToText(target: HTMLTextAreaElement, fieldName: string): void;
23
28
  static ɵfac: i0.ɵɵFactoryDeclaration<UicDynamicFormComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<UicDynamicFormComponent, "ui-dynamic-form", never, { "fields": { "alias": "fields"; "required": false; }; "form": { "alias": "form"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicDynamicFormComponent, "ui-dynamic-form", never, { "fields": { "alias": "fields"; "required": false; }; "form": { "alias": "form"; "required": true; }; "disabled": { "alias": "disabled"; "required": false; }; "voiceToTextSilenceMs": { "alias": "voiceToTextSilenceMs"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
25
30
  }
@@ -1,19 +1,20 @@
1
1
  import { ButtonColor } from '../../button/button.component';
2
2
  import * as i0 from "@angular/core";
3
- type FileInputValue = {
3
+ export type UicFileInputValue = {
4
4
  name: string;
5
- blob: Blob;
5
+ blob?: Blob;
6
+ path?: string;
6
7
  };
7
8
  declare const base: abstract new () => {
8
- value: FileInputValue[];
9
- valueChange: import("@angular/core").EventEmitter<FileInputValue[]>;
10
- onChange: (value: FileInputValue[]) => void;
9
+ value: UicFileInputValue[];
10
+ valueChange: import("@angular/core").EventEmitter<UicFileInputValue[]>;
11
+ onChange: (value: UicFileInputValue[]) => void;
11
12
  onTouched: () => void;
12
- writeValue(obj: FileInputValue[]): void;
13
+ writeValue(obj: UicFileInputValue[]): void;
13
14
  registerOnChange(fn: any): void;
14
15
  registerOnTouched(fn: any): void;
15
16
  setDisabledState?(isDisabled: boolean): void;
16
- notifyChange(value: FileInputValue[]): void;
17
+ notifyChange(value: UicFileInputValue[]): void;
17
18
  };
18
19
  export declare class UicFileInputComponent extends base {
19
20
  icon: string;
@@ -29,8 +30,8 @@ export declare class UicFileInputComponent extends base {
29
30
  multy: boolean;
30
31
  fileTypes: string[] | string | null;
31
32
  private fileInput?;
32
- value: FileInputValue[];
33
- files: FileInputValue[];
33
+ value: UicFileInputValue[];
34
+ files: UicFileInputValue[];
34
35
  isDragging: boolean;
35
36
  get acceptAttribute(): string | null;
36
37
  openFileBrowser(): void;
@@ -38,9 +39,9 @@ export declare class UicFileInputComponent extends base {
38
39
  removeFile(index: number): void;
39
40
  onDragOver(event: DragEvent): void;
40
41
  onDragLeave(event: DragEvent): void;
41
- getIcon(file: FileInputValue): string;
42
+ getIcon(file: UicFileInputValue): string;
42
43
  onDrop(event: DragEvent): void;
43
- writeValue(value: FileInputValue[] | null): void;
44
+ writeValue(value: UicFileInputValue[] | null): void;
44
45
  private processIncomingFiles;
45
46
  private mergeFiles;
46
47
  private applyFiles;
@@ -48,6 +49,7 @@ export declare class UicFileInputComponent extends base {
48
49
  private matchesAcceptTokens;
49
50
  private isExcelType;
50
51
  private isWordType;
52
+ downloadFile(item: UicFileInputValue): void;
51
53
  static ɵfac: i0.ɵɵFactoryDeclaration<UicFileInputComponent, never>;
52
54
  static ɵcmp: i0.ɵɵComponentDeclaration<UicFileInputComponent, "ui-file-input", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "internalIconColor": { "alias": "internalIconColor"; "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; }; "fileTypes": { "alias": "fileTypes"; "required": false; }; }, {}, never, never, true, never>;
53
55
  }
@@ -0,0 +1,6 @@
1
+ import { AlertData } from '../tiny-alert/tiny-alert.model';
2
+ export declare function createTinySuccess(body: string, options?: Partial<AlertData>): AlertData;
3
+ export declare function createTinyError(body: string, options?: Partial<AlertData>): AlertData;
4
+ export declare function createTinyDelete(body: string, options?: Partial<AlertData>): AlertData;
5
+ export declare function createTinyWarning(body: string, options?: Partial<AlertData>): AlertData;
6
+ export declare function createTinyInfo(body: string, options?: Partial<AlertData>): AlertData;
@@ -7,6 +7,7 @@ export declare class UicTableComponent {
7
7
  columns: TableColums[];
8
8
  data: TableRow[];
9
9
  loading: boolean;
10
+ disabled: boolean;
10
11
  pages: number;
11
12
  size: number;
12
13
  squeletonRows: number;
@@ -29,6 +30,10 @@ export declare class UicTableComponent {
29
30
  action: EventEmitter<TableAction>;
30
31
  update: EventEmitter<TableFilters>;
31
32
  checkedChange: EventEmitter<(string | number)[]>;
33
+ switchChange: EventEmitter<{
34
+ key: string | number;
35
+ value: boolean;
36
+ }>;
32
37
  allSelected: boolean;
33
38
  checkedIds: Set<string | number>;
34
39
  sortKey: string;
@@ -36,6 +41,7 @@ export declare class UicTableComponent {
36
41
  filter: string;
37
42
  page: number;
38
43
  getValue(data: TableRowData[], key: string): string;
44
+ isChecked(data: TableRowData[], key: string): boolean;
39
45
  getMoreActions(actions: TableButton[], row: TableRowData[]): ActionMenuOption[];
40
46
  getFontColor(data: TableRowData[], key: string): string;
41
47
  getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
@@ -55,5 +61,5 @@ export declare class UicTableComponent {
55
61
  doAction(rowId: string | number, key: string): void;
56
62
  resetCheckedIds(): void;
57
63
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, never>;
58
- 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; }; "alignment": { "alias": "alignment"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "headerBackgroundColor": { "alias": "headerBackgroundColor"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]", "[filters]"], true, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicTableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "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; }; "alignment": { "alias": "alignment"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "headerClass": { "alias": "headerClass"; "required": false; }; "headerBackgroundColor": { "alias": "headerBackgroundColor"; "required": false; }; "striped": { "alias": "striped"; "required": false; }; "showPagination": { "alias": "showPagination"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; "switchChange": "switchChange"; }, never, ["[actions]", "[filters]"], true, never>;
59
65
  }
@@ -29,6 +29,7 @@ export interface TableRow {
29
29
  export interface TableRowData {
30
30
  key: string;
31
31
  value?: string | number;
32
+ checked?: boolean;
32
33
  list?: TableList[];
33
34
  user?: TableUser;
34
35
  icon?: string;
@@ -53,7 +54,7 @@ export interface TableAction {
53
54
  rowId: number | string;
54
55
  key: string;
55
56
  }
56
- export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status';
57
+ export type ColumnTypes = 'actions' | 'text' | 'list' | 'user' | 'checkbox' | 'icon-list' | 'status' | 'switch';
57
58
  export type TableTextColors = 'primary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
58
59
  export type BackgroundColors = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'transparent' | 'white';
59
60
  export interface TableFilters {
@@ -4,6 +4,7 @@ export interface AlertData {
4
4
  body?: string;
5
5
  type?: 'delete' | 'warning' | 'error' | 'info' | 'success';
6
6
  iconPath?: string;
7
+ iconChar?: string;
7
8
  closeOnOutclick?: boolean;
8
9
  okButtonColor?: ButtonColor;
9
10
  okButtonText?: string;
@@ -7,6 +7,7 @@ export declare class UicPushAlertService {
7
7
  show(alertData: AlertConfigParams): void;
8
8
  success(message: string, options?: Partial<Alert>): void;
9
9
  error(message: string, options?: Partial<Alert>): void;
10
+ warning(message: string, options?: Partial<Alert>): void;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<UicPushAlertService, never>;
11
12
  static ɵprov: i0.ɵɵInjectableDeclaration<UicPushAlertService>;
12
13
  }
@@ -3,6 +3,11 @@ import * as i0 from "@angular/core";
3
3
  export declare class UicTinyAlertService {
4
4
  private readonly modal;
5
5
  showAlert(data: AlertData): Promise<AlertResponse>;
6
+ success(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
7
+ error(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
8
+ warning(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
9
+ info(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
10
+ deleteConfirmation(message: string, options?: Partial<AlertData>): Promise<AlertResponse>;
6
11
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTinyAlertService, never>;
7
12
  static ɵprov: i0.ɵɵInjectableDeclaration<UicTinyAlertService>;
8
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.3.0",
3
+ "version": "0.3.15",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.2.0 <21.0.0",
6
6
  "@angular/core": ">=19.2.0 <21.0.0",