ui-core-abv 0.3.29 → 0.3.71

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.
@@ -25,6 +25,8 @@ export declare class UicSelectComponent extends base {
25
25
  tip: string;
26
26
  showSubtitle: boolean;
27
27
  disabled: boolean;
28
+ nonSelectedText: string;
29
+ noneText: string;
28
30
  emptyText: string;
29
31
  loading: boolean;
30
32
  nullable: boolean;
@@ -42,7 +44,7 @@ export declare class UicSelectComponent extends base {
42
44
  closeList(): void;
43
45
  writeValue(value: string | number | null): void;
44
46
  static ɵfac: i0.ɵɵFactoryDeclaration<UicSelectComponent, never>;
45
- static ɵcmp: i0.ɵɵComponentDeclaration<UicSelectComponent, "ui-select", 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; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "nullable": { "alias": "nullable"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSelectComponent, "ui-select", 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; }; "showSubtitle": { "alias": "showSubtitle"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "nonSelectedText": { "alias": "nonSelectedText"; "required": false; }; "noneText": { "alias": "noneText"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "nullable": { "alias": "nullable"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
46
48
  }
47
49
  export interface AppSelectOption {
48
50
  id?: string | number | null;
@@ -2,8 +2,9 @@ import { ButtonColor } from '../button/button.component';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class UicKpiCardComponent {
4
4
  data: UicKpiContet;
5
+ loading: boolean;
5
6
  static ɵfac: i0.ɵɵFactoryDeclaration<UicKpiCardComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<UicKpiCardComponent, "ui-kpi-card", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicKpiCardComponent, "ui-kpi-card", never, { "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; }, {}, never, never, true, never>;
7
8
  }
8
9
  export interface UicKpiContet {
9
10
  label: string;
@@ -0,0 +1,17 @@
1
+ import { ConnectedPosition } from '@angular/cdk/overlay';
2
+ import { TemplateRef } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicOverlayCardComponent {
5
+ menuTemplate: TemplateRef<any>;
6
+ private overlayRef;
7
+ private readonly overlay;
8
+ private readonly vcr;
9
+ private readonly host;
10
+ selectedSet: Set<string | number>;
11
+ allSelected: boolean;
12
+ overlayPositions: ConnectedPosition[];
13
+ openMenu(): void;
14
+ close(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicOverlayCardComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicOverlayCardComponent, "ui-overlay-card", never, {}, {}, never, ["[button]", "[content]"], true, never>;
17
+ }
@@ -0,0 +1,36 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ declare const base: abstract new () => {
4
+ value: Blob | null;
5
+ valueChange: EventEmitter<Blob | null>;
6
+ onChange: (value: Blob | null) => void;
7
+ onTouched: () => void;
8
+ writeValue(obj: Blob | null): void;
9
+ registerOnChange(fn: any): void;
10
+ registerOnTouched(fn: any): void;
11
+ setDisabledState?(isDisabled: boolean): void;
12
+ notifyChange(value: Blob | null): void;
13
+ };
14
+ export declare class UicSignaturePadComponent extends base implements AfterViewInit {
15
+ width: number;
16
+ height: number;
17
+ strokeColor: string;
18
+ strokeWidth: number;
19
+ disabled: boolean;
20
+ imageChange: EventEmitter<Blob | null>;
21
+ canvasRef: ElementRef<HTMLCanvasElement>;
22
+ private ctx;
23
+ private drawing;
24
+ ngAfterViewInit(): void;
25
+ startDraw(event: PointerEvent): void;
26
+ draw(event: PointerEvent): void;
27
+ endDraw(event: PointerEvent): void;
28
+ clear(): void;
29
+ private emitSignature;
30
+ private relativePosition;
31
+ writeValue(value: Blob | null): void;
32
+ private resetCanvas;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicSignaturePadComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSignaturePadComponent, "ui-signature-pad", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "strokeColor": { "alias": "strokeColor"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "imageChange": "imageChange"; }, never, never, true, never>;
35
+ }
36
+ export {};
@@ -7,6 +7,8 @@ export declare class UicTablePaginationComponent {
7
7
  size: number;
8
8
  loading: boolean;
9
9
  showText: boolean;
10
+ nextButtonText: string;
11
+ previousButtonText: string;
10
12
  visiblePages: number;
11
13
  pagesInView: number[];
12
14
  pageChange: EventEmitter<number>;
@@ -14,5 +16,5 @@ export declare class UicTablePaginationComponent {
14
16
  get pages(): (number | string)[];
15
17
  changePage(newPage: number): void;
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTablePaginationComponent, never>;
17
- 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; }; "showText": { "alias": "showText"; "required": false; }; }, { "pageChange": "pageChange"; "sizeChange": "sizeChange"; }, never, never, true, never>;
19
+ 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; }; "showText": { "alias": "showText"; "required": false; }; "nextButtonText": { "alias": "nextButtonText"; "required": false; }; "previousButtonText": { "alias": "previousButtonText"; "required": false; }; }, { "pageChange": "pageChange"; "sizeChange": "sizeChange"; }, never, never, true, never>;
18
20
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter, SimpleChanges } from '@angular/core';
1
+ import { ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
2
2
  import { TableAction, TableColums, TableRow, TableFilters, TableRowData, TableButton } from './table.models';
3
3
  import { ButtonColor } from '../button/button.component';
4
4
  import { ActionMenuOption } from '../uic-action-button/uic-action-button.component';
@@ -28,6 +28,8 @@ export declare class UicTableComponent {
28
28
  showSearchButton: boolean;
29
29
  showTextPagination: boolean;
30
30
  emptyMessage: string;
31
+ nextButtonText: string;
32
+ previousButtonText: string;
31
33
  searcherShowButtonText: boolean;
32
34
  action: EventEmitter<TableAction>;
33
35
  update: EventEmitter<TableFilters>;
@@ -44,6 +46,7 @@ export declare class UicTableComponent {
44
46
  filter: string;
45
47
  page: number;
46
48
  getValue(data: TableRowData[], key: string): string;
49
+ getSubtext(data: TableRowData[], key: string): string;
47
50
  isChecked(data: TableRowData[], key: string): boolean;
48
51
  getMoreActions(actions: TableButton[], row: TableRowData[]): ActionMenuOption[];
49
52
  getFontColor(data: TableRowData[], key: string): string;
@@ -64,6 +67,9 @@ export declare class UicTableComponent {
64
67
  doAction(rowId: string | number, key: string): void;
65
68
  resetCheckedIds(): void;
66
69
  switchHandler(key: string | number, value: boolean, columName: string): void;
70
+ actionsRef?: ElementRef;
71
+ hasActions: boolean;
72
+ ngAfterContentInit(): void;
67
73
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, never>;
68
- 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; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "showTextPagination": { "alias": "showTextPagination"; "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>;
74
+ 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; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; "showEmptyMessage": { "alias": "showEmptyMessage"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "showTextPagination": { "alias": "showTextPagination"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "nextButtonText": { "alias": "nextButtonText"; "required": false; }; "previousButtonText": { "alias": "previousButtonText"; "required": false; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; "switchChange": "switchChange"; }, ["actionsRef"], ["[actions]", "[filters]"], true, never>;
69
75
  }
@@ -29,6 +29,7 @@ export interface TableRow {
29
29
  export interface TableRowData {
30
30
  key: string;
31
31
  value?: string | number;
32
+ subtext?: string | number;
32
33
  checked?: boolean;
33
34
  list?: TableList[];
34
35
  user?: TableUser;
@@ -1,10 +1,15 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class UicTabsButtonComponent {
4
- tabs: string[];
4
+ tabs: UiBtnTab[];
5
5
  activeTab: string;
6
6
  activeTabChange: EventEmitter<string>;
7
7
  selectTab(tab: string): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTabsButtonComponent, never>;
9
9
  static ɵcmp: i0.ɵɵComponentDeclaration<UicTabsButtonComponent, "ui-tabs-button", never, { "tabs": { "alias": "tabs"; "required": false; }; "activeTab": { "alias": "activeTab"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, never, never, true, never>;
10
10
  }
11
+ export interface UiBtnTab {
12
+ key: string;
13
+ text: string;
14
+ icon: string;
15
+ }
@@ -3,6 +3,7 @@ export declare class UicTooltipComponent {
3
3
  tooltip: string;
4
4
  left: number;
5
5
  top: number;
6
+ placement: 'top' | 'bottom';
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTooltipComponent, never>;
7
8
  static ɵcmp: i0.ɵɵComponentDeclaration<UicTooltipComponent, "ui-tooltip", never, {}, {}, never, never, true, never>;
8
9
  }
@@ -1,20 +1,23 @@
1
1
  import { ButtonColor } from '../button/button.component';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class UicPortletCardComponent {
4
+ title: string;
4
5
  data: UicPortletData[];
5
6
  /** Layout mode: horizontal keeps label/value in a row; vertical stacks label over value. */
6
7
  layout: 'horizontal' | 'vertical';
7
8
  /** Columns for vertical grid layout. */
8
9
  cols: number;
10
+ gap: number;
9
11
  get gridTemplateColumns(): string | null;
12
+ copyText(text: string): void;
10
13
  static ɵfac: i0.ɵɵFactoryDeclaration<UicPortletCardComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<UicPortletCardComponent, "ui-portlet-card", never, { "data": { "alias": "data"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicPortletCardComponent, "ui-portlet-card", never, { "title": { "alias": "title"; "required": false; }; "data": { "alias": "data"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; }, {}, never, never, true, never>;
12
15
  }
13
16
  export interface UicPortletData {
14
17
  label: string;
15
18
  value: string | number | boolean;
16
19
  subtext?: string;
17
- type: 'text' | 'money' | 'status' | 'tag' | 'date';
20
+ type: 'text' | 'money' | 'status' | 'tag' | 'date' | 'copy';
18
21
  color?: ButtonColor;
19
22
  icon?: string;
20
23
  currencyCode?: string;
@@ -0,0 +1,53 @@
1
+ import { AfterViewInit, ChangeDetectorRef, ComponentRef, EventEmitter, Type, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface WorkPanelTabConfig {
4
+ id?: string;
5
+ label: string;
6
+ icon?: string;
7
+ componentType: Type<any>;
8
+ componentInputs?: Record<string, any>;
9
+ }
10
+ export declare class UicWorkPanelComponent implements AfterViewInit {
11
+ private cdr;
12
+ host: ViewContainerRef;
13
+ /**
14
+ * Compatibilidad con la version previa (un unico componente inicial).
15
+ * Si se envia, se crea como primera pestana.
16
+ */
17
+ componentType?: Type<any>;
18
+ componentInputs: Record<string, any>;
19
+ /**
20
+ * Lista inicial de pestanas a renderizar.
21
+ */
22
+ tabs: WorkPanelTabConfig[];
23
+ tabsChange: EventEmitter<WorkPanelTabConfig[]>;
24
+ tabClosed: EventEmitter<string>;
25
+ tabSelected: EventEmitter<string>;
26
+ tabAdded: EventEmitter<string>;
27
+ addTabRequest: EventEmitter<void>;
28
+ minPosition: number;
29
+ showAddButton: boolean;
30
+ fullView: boolean;
31
+ isMinimized: boolean;
32
+ activeTabId?: string;
33
+ tabInstances: Array<WorkPanelTabConfig & {
34
+ id: string;
35
+ componentRef: ComponentRef<any>;
36
+ }>;
37
+ private idCounter;
38
+ private initialized;
39
+ constructor(cdr: ChangeDetectorRef);
40
+ ngAfterViewInit(): void;
41
+ private initializeTabs;
42
+ addTab(tabConfig: WorkPanelTabConfig): string;
43
+ requestNewTab(): void;
44
+ selectTab(id: string): void;
45
+ closeTab(id: string): void;
46
+ close(): void;
47
+ minimizePanel(): void;
48
+ private createTab;
49
+ private renderActiveTab;
50
+ private emitTabsChange;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicWorkPanelComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicWorkPanelComponent, "ui-work-panel", never, { "componentType": { "alias": "componentType"; "required": false; }; "componentInputs": { "alias": "componentInputs"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "minPosition": { "alias": "minPosition"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; }, { "tabsChange": "tabsChange"; "tabClosed": "tabClosed"; "tabSelected": "tabSelected"; "tabAdded": "tabAdded"; "addTabRequest": "addTabRequest"; }, never, never, true, never>;
53
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FirstCapitalPipe implements PipeTransform {
4
+ transform(str: string, max?: number): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FirstCapitalPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FirstCapitalPipe, "firstCapital", true>;
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.3.29",
3
+ "version": "0.3.71",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=19.2.0 <21.0.0",
6
6
  "@angular/core": ">=19.2.0 <21.0.0",
package/public-api.d.ts CHANGED
@@ -22,10 +22,13 @@ export * from './lib/components/skeleton-loader/skeleton-loader.component';
22
22
  export * from './lib/components/push-alerts/alert-container/alert-container.component';
23
23
  export * from './lib/components/inputs/ui-slider/ui-slider.component';
24
24
  export * from './lib/components/uic-action-button/uic-action-button.component';
25
+ export * from './lib/components/signature-pad/signature-pad.component';
25
26
  export * from './lib/components/dropdown-container/dropdown-container.component';
26
27
  export * from './lib/components/kpi-card/kpi-card.component';
27
28
  export * from './lib/components/uic-portlet-card/uic-portlet-card.component';
28
29
  export * from './lib/components/tabs-button/tabs-button.component';
30
+ export * from './lib/components/work-panel/work-panel.component';
31
+ export * from './lib/components/overlay-card/overlay-card.component';
29
32
  export * from './lib/animations/animatios.index';
30
33
  export * from './lib/components/dynamic-form/form.models';
31
34
  export * from './lib/services/modal.service';
@@ -35,5 +38,6 @@ export * from './lib/services/tiny-alert.service';
35
38
  export * from './lib/components/tiny-alert/tiny-alert.model';
36
39
  export * from './lib/services/push-alert.service';
37
40
  export * from './lib/pipes/name-inits.pipe';
41
+ export * from './lib/pipes/first-capital.pipe';
38
42
  export * from './lib/directives/tool-tip.directive';
39
43
  export * from './lib/helpers';
@@ -1,5 +1,5 @@
1
- $breakpoint-md: 400px !default;
2
- $breakpoint-tablet: 768px !default;
1
+ $breakpoint-md: 480px !default;
2
+ $breakpoint-tablet: 768px !default;
3
3
 
4
4
  @mixin mobile {
5
5
  @media (max-width: #{$breakpoint-md - 1}) {
@@ -17,4 +17,4 @@ $breakpoint-tablet: 768px !default;
17
17
  @media (min-width: #{$breakpoint-tablet}) {
18
18
  @content;
19
19
  }
20
- }
20
+ }