ui-core-abv 0.0.7 → 0.0.90

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.
@@ -19,6 +19,7 @@ export interface FormField {
19
19
  label: string;
20
20
  icon?: string;
21
21
  tooltip?: string;
22
+ tip?: string;
22
23
  colSpan?: number;
23
24
  newLine?: boolean;
24
25
  description?: string;
@@ -26,10 +27,12 @@ export interface FormField {
26
27
  required?: boolean;
27
28
  min?: number;
28
29
  max?: number;
30
+ sliderInterval?: number;
31
+ sliderMarks?: number;
29
32
  pattern?: RegExp;
30
33
  options?: AppSelectOption[];
31
34
  }
32
- export type FieldType = 'text' | 'number' | 'select' | 'date' | 'checkbox';
35
+ export type FieldType = 'text' | 'number' | 'date' | 'select' | 'search' | 'checkbox' | 'switch' | 'slider';
33
36
  export interface FormResult {
34
37
  result: boolean;
35
38
  form: any;
@@ -1,3 +1,4 @@
1
+ import { ButtonColor } from '../../button/button.component';
1
2
  import * as i0 from "@angular/core";
2
3
  declare const base: abstract new () => {
3
4
  value: boolean;
@@ -11,12 +12,16 @@ declare const base: abstract new () => {
11
12
  notifyChange(value: boolean): void;
12
13
  };
13
14
  export declare class UicCheckboxComponent extends base {
15
+ icon: string;
16
+ iconColor: ButtonColor;
14
17
  label: string;
18
+ tip: string;
19
+ type: 'check' | 'switch';
15
20
  placeholder: string;
16
21
  disabled: boolean;
17
22
  loading: boolean;
18
23
  toggle(): void;
19
24
  static ɵfac: i0.ɵɵFactoryDeclaration<UicCheckboxComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<UicCheckboxComponent, "ui-checkbox", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, 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; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
21
26
  }
22
27
  export {};
@@ -0,0 +1,66 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { ConnectedPosition } from '@angular/cdk/overlay';
3
+ import { ButtonColor } from '../../button/button.component';
4
+ import * as i0 from "@angular/core";
5
+ type CalendarView = 'days' | 'months' | 'years';
6
+ declare const base: abstract new () => {
7
+ value: string;
8
+ valueChange: import("@angular/core").EventEmitter<string>;
9
+ onChange: (value: string) => void;
10
+ onTouched: () => void;
11
+ writeValue(obj: string): void;
12
+ registerOnChange(fn: any): void;
13
+ registerOnTouched(fn: any): void;
14
+ setDisabledState?(isDisabled: boolean): void;
15
+ notifyChange(value: string): void;
16
+ };
17
+ export declare class UicDatePickerComponent extends base {
18
+ icon: string;
19
+ iconColor: ButtonColor;
20
+ internalIcon: string;
21
+ label: string;
22
+ error: string;
23
+ tip: string;
24
+ disabled: boolean;
25
+ max: string;
26
+ min: string;
27
+ calendarTemplate: TemplateRef<any>;
28
+ private overlayRef;
29
+ months: string[];
30
+ today: Date;
31
+ currentYear: number;
32
+ maxDate: Date | null;
33
+ minDate: Date | null;
34
+ view: CalendarView;
35
+ paintedDate: Date | null;
36
+ selectedDate: Date;
37
+ selectedYear: number;
38
+ selectedMonth: null;
39
+ monthWeeks: (Date | null)[][];
40
+ decadeRange: number[];
41
+ private readonly overlay;
42
+ private readonly vcr;
43
+ private readonly host;
44
+ ngOnInit(): void;
45
+ overlayPositions: ConnectedPosition[];
46
+ openCalendar(): void;
47
+ closeCalendar(): void;
48
+ get monthName(): string;
49
+ getDecadeRange(): number[];
50
+ getWeeks(): (Date | null)[][];
51
+ prev(): void;
52
+ next(): void;
53
+ changeView(): void;
54
+ selectYear(year: number): void;
55
+ selectMonth(monthIndex: number): void;
56
+ selectDate(date: Date): void;
57
+ isToday(day: Date | null): boolean;
58
+ isPainted(day: Date | null): boolean;
59
+ isThisMonth(m: string): boolean;
60
+ parseDateLimits(date: string): Date | null;
61
+ cleanInput(): void;
62
+ pickToday(): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicDatePickerComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicDatePickerComponent, "ui-date-picker", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "internalIcon": { "alias": "internalIcon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "max": { "alias": "max"; "required": false; }; "min": { "alias": "min"; "required": false; }; }, {}, never, never, true, never>;
65
+ }
66
+ export {};
@@ -1,4 +1,4 @@
1
- import { ElementRef } from '@angular/core';
1
+ import { TemplateRef } from '@angular/core';
2
2
  import { ConnectedPosition } from '@angular/cdk/overlay';
3
3
  import * as i0 from "@angular/core";
4
4
  declare const base: abstract new () => {
@@ -20,23 +20,23 @@ export declare class UicSelectComponent extends base {
20
20
  label: string;
21
21
  error: string;
22
22
  tip: string;
23
+ showSubtitle: boolean;
24
+ emptyText: string;
23
25
  disabled: boolean;
24
26
  nullable: boolean;
25
27
  options: AppSelectOption[];
26
- showSubtitle: boolean;
28
+ dropdownTemplate: TemplateRef<any>;
29
+ private overlayRef;
27
30
  overlayPositions: ConnectedPosition[];
28
- open: boolean;
29
- emptyText: string;
30
- private readonly renderer;
31
- toggleButton: ElementRef;
32
- private unlistener;
31
+ private readonly overlay;
32
+ private readonly vcr;
33
+ private readonly host;
33
34
  ngOnInit(): void;
34
35
  openList(): void;
35
36
  selectOption(option: AppSelectOption | null): void;
36
37
  closeList(): void;
37
- openListOverlay(): void;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<UicSelectComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<UicSelectComponent, "ui-select", 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; }; "nullable": { "alias": "nullable"; "required": false; }; "options": { "alias": "options"; "required": false; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; }, {}, never, never, true, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSelectComponent, "ui-select", 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; }; "nullable": { "alias": "nullable"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
40
40
  }
41
41
  export interface AppSelectOption {
42
42
  id?: string | number | null;
@@ -5,7 +5,8 @@ export declare class UicSwichComponent {
5
5
  checkedChange: EventEmitter<boolean>;
6
6
  disabled: boolean;
7
7
  placeholder: string;
8
+ label: string;
8
9
  toggle(): void;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<UicSwichComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<UicSwichComponent, "ui-switch", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSwichComponent, "ui-switch", never, { "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "checkedChange": "checkedChange"; }, never, never, true, never>;
11
12
  }
@@ -0,0 +1,38 @@
1
+ import { ButtonColor } from '../../button/button.component';
2
+ import * as i0 from "@angular/core";
3
+ declare const base: abstract new () => {
4
+ value: number;
5
+ valueChange: import("@angular/core").EventEmitter<number>;
6
+ onChange: (value: number) => void;
7
+ onTouched: () => void;
8
+ writeValue(obj: number): void;
9
+ registerOnChange(fn: any): void;
10
+ registerOnTouched(fn: any): void;
11
+ setDisabledState?(isDisabled: boolean): void;
12
+ notifyChange(value: number): void;
13
+ };
14
+ export declare class UicSliderComponent extends base {
15
+ icon: string;
16
+ iconColor: ButtonColor;
17
+ label: string;
18
+ error: string;
19
+ tip: string;
20
+ min: number;
21
+ max: number;
22
+ step: number;
23
+ markerCount: number;
24
+ markers: number[];
25
+ disabled: boolean;
26
+ loading: boolean;
27
+ ngOnInit(): void;
28
+ get percent(): number;
29
+ updateFromClientX(clientX: number, el: HTMLElement): void;
30
+ dragging: boolean;
31
+ private activeTrack?;
32
+ onMouseDown(event: MouseEvent, track: HTMLElement): void;
33
+ onMouseMove(event: MouseEvent): void;
34
+ onMouseUp(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicSliderComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSliderComponent, "ui-slider", never, { "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "label": { "alias": "label"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tip": { "alias": "tip"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "markerCount": { "alias": "markerCount"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
37
+ }
38
+ export {};
@@ -2,12 +2,12 @@ import { OnInit } from '@angular/core';
2
2
  import { Alert } from '../alert.model';
3
3
  import { UicPushAlertService } from '../../../services/push-alert.service';
4
4
  import * as i0 from "@angular/core";
5
- export declare class UiAlertContainerComponent implements OnInit {
5
+ export declare class UicAlertContainerComponent implements OnInit {
6
6
  private readonly alertService;
7
7
  alerts: Alert[];
8
8
  constructor(alertService: UicPushAlertService);
9
9
  ngOnInit(): void;
10
10
  dismis(id: number): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertContainerComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<UiAlertContainerComponent, "lib-alert-container", never, {}, {}, never, never, true, never>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicAlertContainerComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicAlertContainerComponent, "ui-alert-container", never, {}, {}, never, never, true, never>;
13
13
  }
@@ -1,13 +1,13 @@
1
1
  export interface Alert {
2
2
  id: number;
3
3
  message: string;
4
+ type: 'success' | 'error' | 'warning' | 'info';
4
5
  title?: string;
5
6
  icon?: string;
6
7
  okButtonText?: string;
7
8
  showProgressBar?: boolean;
8
9
  cancelButtonText?: string;
9
10
  style?: 'filled' | 'bordered';
10
- type?: 'success' | 'error' | 'warning' | 'info';
11
11
  duration?: number;
12
12
  }
13
13
  export type AlertConfigParams = Omit<Alert, 'id'>;
@@ -1,6 +1,7 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class UicTablePaginationComponent {
4
+ buttonSize: 's' | 'm' | 'l';
4
5
  currentPage: number;
5
6
  totalPages: number;
6
7
  size: number;
@@ -12,5 +13,5 @@ export declare class UicTablePaginationComponent {
12
13
  get pages(): (number | string)[];
13
14
  changePage(newPage: number): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTablePaginationComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<UicTablePaginationComponent, "uic-table-pagination", never, { "currentPage": { "alias": "currentPage"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "pageChange": "pageChange"; "sizeChange": "sizeChange"; }, never, never, true, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicTablePaginationComponent, "uic-table-pagination", never, { "buttonSize": { "alias": "buttonSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "totalPages": { "alias": "totalPages"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, { "pageChange": "pageChange"; "sizeChange": "sizeChange"; }, never, never, true, never>;
16
17
  }
@@ -7,6 +7,8 @@ export declare class UicTableComponent {
7
7
  loading: boolean;
8
8
  pages: number;
9
9
  size: number;
10
+ squeletonRows: number;
11
+ buttonSize: 'm' | 'l' | 's';
10
12
  highlightedId: string | number;
11
13
  headerText: string;
12
14
  totalItems: number;
@@ -27,11 +29,11 @@ export declare class UicTableComponent {
27
29
  page: number;
28
30
  getValue(data: TableRowData[], key: string): string | number;
29
31
  getFontColor(data: TableRowData[], key: string): string;
30
- getBackgroundColor(data: TableRowData[], key: string): import("./table.models").BackgroundColors;
32
+ getBackgroundColor(data: TableRowData[], key: string): import("ui-core-abv").BackgroundColors;
31
33
  isValidRule(data: TableRowData[], key: string[] | undefined): boolean;
32
34
  getIcon(data: TableRowData[], key: string): string;
33
- getList(data: TableRowData[], key: string): import("./table.models").TableList[];
34
- getUser(data: TableRowData[], key: string): import("./table.models").TableUser | undefined;
35
+ getList(data: TableRowData[], key: string): import("ui-core-abv").TableList[];
36
+ getUser(data: TableRowData[], key: string): import("ui-core-abv").TableUser | undefined;
35
37
  sortClick(key: string): void;
36
38
  sizeChabge(newSize: number): void;
37
39
  pageChage(newPage: number): void;
@@ -45,5 +47,5 @@ export declare class UicTableComponent {
45
47
  doAction(rowId: string | number, key: string): void;
46
48
  resetCheckedIds(): void;
47
49
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, never>;
48
- 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; }; "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>;
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>;
49
51
  }
@@ -11,5 +11,5 @@ export declare class TinyAlertComponent {
11
11
  response: AlertResponseData;
12
12
  close(value: boolean): void;
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<TinyAlertComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<TinyAlertComponent, "lib-tiny-alert", never, {}, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<TinyAlertComponent, "ui-tiny-alert", never, {}, {}, never, never, true, never>;
15
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.0.7",
3
+ "version": "0.0.90",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.0",
6
6
  "@angular/core": "^19.2.0",
package/public-api.d.ts CHANGED
@@ -1,13 +1,16 @@
1
1
  export * from './lib/components/button/button.component';
2
- export * from './lib/components/checkbox/checkbox.component';
2
+ export * from './lib/components/inputs/checkbox/checkbox.component';
3
+ export * from './lib/components/inputs/toggle-button/toggle-button.component';
3
4
  export * from './lib/components/dynamic-form/form-wrapper/form-wrapper.component';
4
5
  export * from './lib/components/inputs/input/input.component';
6
+ export * from './lib/components/inputs/date-picker/date-picker.component';
5
7
  export * from './lib/components/inputs/searcher/searcher.component';
6
8
  export * from './lib/components/inputs/select/select.component';
7
9
  export * from './lib/components/table/table.component';
8
- export * from './lib/components/toggle-button/toggle-button.component';
10
+ export * from './lib/components/table/table.models';
9
11
  export * from './lib/components/skeleton-loader/skeleton-loader.component';
10
12
  export * from './lib/components/push-alerts/alert-container/alert-container.component';
13
+ export * from './lib/components/inputs/ui-slider/ui-slider.component';
11
14
  export * from './lib/animations/animatios.index';
12
15
  export * from './lib/components/dynamic-form/form.models';
13
16
  export * from './lib/services/modal.service';
@@ -37,8 +37,8 @@
37
37
  @each $shade, $color in $yellow {
38
38
  --yellow-#{$shade}: #{$color};
39
39
  }
40
-
41
40
  --white: #fff;
41
+ --secondary-alpha: #8130c464;
42
42
 
43
43
  --border-radius-sm: 4px;
44
44
  --border-radius-md: 8px;
@@ -50,4 +50,13 @@
50
50
 
51
51
  --border-width-thin: 1px;
52
52
  --border-width-thick: 2px;
53
+
54
+ // CONTEXTUAL
55
+ --table-header-background: var(--grey-200);
56
+ --table-header-color: var(--grey-900);
57
+ --table-border-color: var(--grey-300);
58
+ --table-spacing-ref: 10px;
59
+ --design-size-ref:10px;
60
+ --form-ref: 10px;
61
+
53
62
  }
@@ -1,5 +1,4 @@
1
- $focus-shadow: 0 0 0 3px rgba(var(--secondary-400), .4);
2
-
1
+ $focus-shadow: 0 0 0 3px var(--secondary-alpha);
3
2
 
4
3
  // ========== TYPOGRAPHY ==========
5
4
  $font-family-base: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
@@ -45,4 +44,6 @@ $skeleton-gradient: linear-gradient(
45
44
  var(--grey-100) 25%,
46
45
  var(--grey-200) 50%,
47
46
  var(--grey-100) 75%
48
- );
47
+ );
48
+
49
+ $input-heigth: calc( 4 * var(--form-ref));
File without changes