ui-core-abv 0.2.65 → 0.2.85

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.
@@ -14,6 +14,6 @@ export declare class UicButtonComponent {
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<UicButtonComponent, never>;
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
- export type ButtonColor = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black';
17
+ export type ButtonColor = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey';
18
18
  export type ButtonSize = 't' | 's' | 'm' | 'l' | 'g';
19
19
  export type ButtonType = 'filled' | 'bordered' | 'ghost';
@@ -12,6 +12,7 @@ export declare class UicFormWrapperComponent implements OnChanges {
12
12
  loading: boolean;
13
13
  disabled: boolean;
14
14
  showButtons: boolean;
15
+ fillSelects: boolean;
15
16
  initialValues: uicFormValuesRecord;
16
17
  formSubmit: EventEmitter<FormResult>;
17
18
  formChange: EventEmitter<uicFormValuesRecord>;
@@ -40,5 +41,5 @@ export declare class UicFormWrapperComponent implements OnChanges {
40
41
  private insertField;
41
42
  private updateSchemaField;
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<UicFormWrapperComponent, never>;
43
- static ɵcmp: i0.ɵɵComponentDeclaration<UicFormWrapperComponent, "ui-form-wrapper", never, { "schema": { "alias": "schema"; "required": false; }; "externalData": { "alias": "externalData"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "initialValues": { "alias": "initialValues"; "required": false; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
44
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicFormWrapperComponent, "ui-form-wrapper", never, { "schema": { "alias": "schema"; "required": false; }; "externalData": { "alias": "externalData"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "fillSelects": { "alias": "fillSelects"; "required": false; }; "initialValues": { "alias": "initialValues"; "required": false; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
44
45
  }
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from '@angular/core';
2
2
  import { TableAction, TableColums, TableRow, TableFilters, TableRowData, TableButton } from './table.models';
3
+ import { ButtonColor } from '../button/button.component';
3
4
  import { ActionMenuOption } from '../uic-action-button/uic-action-button.component';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class UicTableComponent {
@@ -13,12 +14,16 @@ export declare class UicTableComponent {
13
14
  highlightedId: string | number;
14
15
  headerText: string;
15
16
  totalItems: number;
17
+ alignment: 'left' | 'center';
16
18
  searchEnabled: boolean;
17
19
  searchLabel: string;
18
20
  searchPlaceholder: string;
21
+ headerClass: string;
22
+ headerBackgroundColor: ButtonColor;
19
23
  striped: boolean;
20
24
  showPagination: boolean;
21
25
  showEmptyMessage: boolean;
26
+ showSearchButton: boolean;
22
27
  emptyMessage: string;
23
28
  searcherShowButtonText: boolean;
24
29
  action: EventEmitter<TableAction>;
@@ -50,5 +55,5 @@ export declare class UicTableComponent {
50
55
  doAction(rowId: string | number, key: string): void;
51
56
  resetCheckedIds(): void;
52
57
  static ɵfac: i0.ɵɵFactoryDeclaration<UicTableComponent, 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; }; "searcherShowButtonText": { "alias": "searcherShowButtonText"; "required": false; }; }, { "action": "action"; "update": "update"; "checkedChange": "checkedChange"; }, never, ["[actions]", "[filters]"], true, 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>;
54
59
  }
@@ -2,8 +2,13 @@ import { ButtonColor } from '../button/button.component';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class UicPortletCardComponent {
4
4
  data: UicPortletData[];
5
+ /** Layout mode: horizontal keeps label/value in a row; vertical stacks label over value. */
6
+ layout: 'horizontal' | 'vertical';
7
+ /** Columns for vertical grid layout. */
8
+ cols: number;
9
+ get gridTemplateColumns(): string | null;
5
10
  static ɵfac: i0.ɵɵFactoryDeclaration<UicPortletCardComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<UicPortletCardComponent, "ui-portlet-card", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, 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>;
7
12
  }
8
13
  export interface UicPortletData {
9
14
  label: string;
@@ -0,0 +1,3 @@
1
+ import { TableColums, TableRowData } from "../public-api";
2
+ export declare function helperTableMapDatoToColums(data: Record<string, any>, headers: TableColums[]): TableRowData[];
3
+ export declare function helperFormMapFormdataToObject<T extends object>(formData: Record<string, any>, defaults: T): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-core-abv",
3
- "version": "0.2.65",
3
+ "version": "0.2.85",
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
@@ -36,3 +36,4 @@ export * from './lib/components/tiny-alert/tiny-alert.model';
36
36
  export * from './lib/services/push-alert.service';
37
37
  export * from './lib/pipes/name-inits.pipe';
38
38
  export * from './lib/directives/tool-tip.directive';
39
+ export * from './lib/helpers';