ui-core-abv 0.0.0-watch

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.
Files changed (103) hide show
  1. package/README.md +63 -0
  2. package/fesm2022/ui-core-abv.mjs +9838 -0
  3. package/fesm2022/ui-core-abv.mjs.map +1 -0
  4. package/index.d.ts +5 -0
  5. package/lib/animations/animatedRow.animation.d.ts +1 -0
  6. package/lib/animations/animatios.index.d.ts +6 -0
  7. package/lib/animations/fadeAndRise.animation.d.ts +1 -0
  8. package/lib/animations/highlightRow.animation.d.ts +1 -0
  9. package/lib/animations/pushTop.animation.d.ts +1 -0
  10. package/lib/animations/sideModal.animation.d.ts +2 -0
  11. package/lib/animations/simpleFade.animation.d.ts +1 -0
  12. package/lib/components/accordion/accordion.component.d.ts +11 -0
  13. package/lib/components/button/button.component.d.ts +21 -0
  14. package/lib/components/dropdown-container/dropdown-close.directive.d.ts +7 -0
  15. package/lib/components/dropdown-container/dropdown-container.component.d.ts +51 -0
  16. package/lib/components/dynamic-form/base-value-accessot.d.ts +12 -0
  17. package/lib/components/dynamic-form/form/dynamic-form.component.d.ts +63 -0
  18. package/lib/components/dynamic-form/form-state.service.d.ts +16 -0
  19. package/lib/components/dynamic-form/form-wrapper/form-wrapper.component.d.ts +57 -0
  20. package/lib/components/dynamic-form/form.models.d.ts +95 -0
  21. package/lib/components/dynamic-form/steps-form/step-tabs/step-tabs.component.d.ts +13 -0
  22. package/lib/components/dynamic-form/steps-form/steps-form.component.d.ts +34 -0
  23. package/lib/components/editable-table/editable-table.component.d.ts +84 -0
  24. package/lib/components/excel-table/excel-table.component.d.ts +21 -0
  25. package/lib/components/inputs/checkbox/checkbox.component.d.ts +28 -0
  26. package/lib/components/inputs/date-picker/date-picker.component.d.ts +89 -0
  27. package/lib/components/inputs/file-input/file-input.component.d.ts +59 -0
  28. package/lib/components/inputs/input/input.component.d.ts +20 -0
  29. package/lib/components/inputs/input-wrapper/input-wrapper.component.d.ts +12 -0
  30. package/lib/components/inputs/multy-searcher/multy-searcher.component.d.ts +11 -0
  31. package/lib/components/inputs/multy-select/multy-select.component.d.ts +59 -0
  32. package/lib/components/inputs/phone-input/phone-countries.data.d.ts +8 -0
  33. package/lib/components/inputs/phone-input/phone-input.component.d.ts +79 -0
  34. package/lib/components/inputs/select/select.component.d.ts +77 -0
  35. package/lib/components/inputs/time-picker/time-picker.component.d.ts +67 -0
  36. package/lib/components/inputs/toggle-button/toggle-button.component.d.ts +12 -0
  37. package/lib/components/inputs/ui-radio/ui-radio.component.d.ts +33 -0
  38. package/lib/components/inputs/ui-slider/ui-slider.component.d.ts +38 -0
  39. package/lib/components/inputs/uic-searcher/uic-searcher.component.d.ts +61 -0
  40. package/lib/components/item-value/item-value.component.d.ts +30 -0
  41. package/lib/components/kpi-card/kpi-card.component.d.ts +15 -0
  42. package/lib/components/modal/floating-modal/modal.component.d.ts +21 -0
  43. package/lib/components/modal/floating-modal/modalconfig.model.d.ts +7 -0
  44. package/lib/components/modal/side-modal/side-modal.component.d.ts +30 -0
  45. package/lib/components/modal/side-modal/sideModalConfig.model.d.ts +16 -0
  46. package/lib/components/overlay-card/overlay-card.component.d.ts +17 -0
  47. package/lib/components/pool-options/pool-options.component.d.ts +46 -0
  48. package/lib/components/progress-bar/progress-bar.component.d.ts +17 -0
  49. package/lib/components/push-alerts/alert/alert.component.d.ts +16 -0
  50. package/lib/components/push-alerts/alert-container/alert-container.component.d.ts +13 -0
  51. package/lib/components/push-alerts/alert.helpers.d.ts +5 -0
  52. package/lib/components/push-alerts/alert.model.d.ts +29 -0
  53. package/lib/components/push-alerts/tynyalert.helpers.d.ts +6 -0
  54. package/lib/components/rule-builder/rule-builder.component.d.ts +111 -0
  55. package/lib/components/rule-builder/rule-definirion/rule-definirion.component.d.ts +55 -0
  56. package/lib/components/short-table/short-table.component.d.ts +15 -0
  57. package/lib/components/signature-pad/signature-pad.component.d.ts +36 -0
  58. package/lib/components/skeleton-cards/skeleton-cards.component.d.ts +13 -0
  59. package/lib/components/skeleton-loader/skeleton-loader.component.d.ts +10 -0
  60. package/lib/components/status-label/status-label.component.d.ts +8 -0
  61. package/lib/components/table/table-list/table-list.component.d.ts +7 -0
  62. package/lib/components/table/table-pagination/table-pagination.component.d.ts +20 -0
  63. package/lib/components/table/table-searcher/table-searcher.component.d.ts +15 -0
  64. package/lib/components/table/table-user/table-user.component.d.ts +7 -0
  65. package/lib/components/table/table.component.d.ts +92 -0
  66. package/lib/components/table/table.models.d.ts +70 -0
  67. package/lib/components/tabs-button/tabs-button.component.d.ts +17 -0
  68. package/lib/components/tag-selector/tag-selector.component.d.ts +52 -0
  69. package/lib/components/tiny-alert/tiny-alert.component.d.ts +15 -0
  70. package/lib/components/tiny-alert/tiny-alert.model.d.ts +33 -0
  71. package/lib/components/tooltip/tooltip.component.d.ts +9 -0
  72. package/lib/components/tree-admin/tree-admin.component.d.ts +81 -0
  73. package/lib/components/uic-action-button/uic-action-button.component.d.ts +36 -0
  74. package/lib/components/uic-portlet-card/uic-portlet-card.component.d.ts +37 -0
  75. package/lib/components/user-formbuilder/block-editor/block-editor.component.d.ts +20 -0
  76. package/lib/components/user-formbuilder/block-editor/field-editor/field-editor.component.d.ts +33 -0
  77. package/lib/components/user-formbuilder/block-editor/field-editor/field-options-editor/field-options-editor.component.d.ts +12 -0
  78. package/lib/components/user-formbuilder/block-editor/field-type-selector/field-type-selector.component.d.ts +9 -0
  79. package/lib/components/user-formbuilder/form-preview/form-preview.component.d.ts +14 -0
  80. package/lib/components/user-formbuilder/user-formbuilder.component.d.ts +61 -0
  81. package/lib/components/work-panel/work-panel.component.d.ts +63 -0
  82. package/lib/directives/textarea-autoresize-max-rows.directive.d.ts +9 -0
  83. package/lib/directives/textarea-autoresize-min-rows.directive.d.ts +9 -0
  84. package/lib/directives/textarea-autoresize.directive.d.ts +29 -0
  85. package/lib/directives/tool-tip.directive.d.ts +18 -0
  86. package/lib/helpers.d.ts +8 -0
  87. package/lib/pipes/first-capital.pipe.d.ts +7 -0
  88. package/lib/pipes/name-inits.pipe.d.ts +7 -0
  89. package/lib/pipes/translate.pipe.d.ts +11 -0
  90. package/lib/services/modaRef.d.ts +15 -0
  91. package/lib/services/modal.constant.d.ts +5 -0
  92. package/lib/services/modal.service.d.ts +22 -0
  93. package/lib/services/push-alert.service.d.ts +13 -0
  94. package/lib/services/tiny-alert.service.d.ts +13 -0
  95. package/lib/services/translate.service.d.ts +22 -0
  96. package/lib/translate/dictionary.en.d.ts +290 -0
  97. package/lib/translate/dictionary.es.d.ts +290 -0
  98. package/package.json +27 -0
  99. package/public-api.d.ts +59 -0
  100. package/src/lib/styles/_default_colors.scss +101 -0
  101. package/src/lib/styles/_mixins.scss +20 -0
  102. package/src/lib/styles/_tokens.scss +73 -0
  103. package/src/lib/styles/_variables.scss +51 -0
@@ -0,0 +1,30 @@
1
+ import { DoCheck, EventEmitter } from '@angular/core';
2
+ import { ColumnTypes, TableRow, TableRowData } from '../table/table.models';
3
+ import { AlertData } from '../tiny-alert/tiny-alert.model';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ItemValueComponent implements DoCheck {
6
+ private readonly alers;
7
+ key: string | number;
8
+ type: ColumnTypes;
9
+ alignment: string;
10
+ row: TableRow;
11
+ disabled: boolean;
12
+ data: TableRowData | null;
13
+ switchValidation: AlertData[];
14
+ switchConfirmed: EventEmitter<boolean>;
15
+ expanded: boolean;
16
+ checked: boolean;
17
+ currentData: TableRowData | null;
18
+ private previousRow?;
19
+ private previousRowData?;
20
+ private previousKey;
21
+ private previousInputData;
22
+ ngDoCheck(): void;
23
+ private syncCurrentData;
24
+ private resolveCurrentData;
25
+ switchHandler(rowId: string | number, value: boolean): void;
26
+ expand(click: MouseEvent): void;
27
+ copyText(text: string, click: MouseEvent): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemValueComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemValueComponent, "ui-item-value", never, { "key": { "alias": "key"; "required": false; }; "type": { "alias": "type"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "row": { "alias": "row"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "data": { "alias": "data"; "required": false; }; "switchValidation": { "alias": "switchValidation"; "required": false; }; }, { "switchConfirmed": "switchConfirmed"; }, never, never, true, never>;
30
+ }
@@ -0,0 +1,15 @@
1
+ import { ButtonColor } from '../button/button.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicKpiCardComponent {
4
+ data: UicKpiContet;
5
+ loading: boolean;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicKpiCardComponent, 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>;
8
+ }
9
+ export interface UicKpiContet {
10
+ label: string;
11
+ value: string;
12
+ icon?: string;
13
+ iconColor?: ButtonColor;
14
+ textColor?: ButtonColor;
15
+ }
@@ -0,0 +1,21 @@
1
+ import { Injector, Type } from '@angular/core';
2
+ import { CdkPortalOutlet } from '@angular/cdk/portal';
3
+ import { ModalConfig } from './modalconfig.model';
4
+ import { UiModalRef } from '../../../services/modaRef';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UicModalComponent {
7
+ private readonly modalRef;
8
+ private readonly component;
9
+ private readonly congif;
10
+ private readonly injector;
11
+ myConfig: ModalConfig;
12
+ ready: boolean;
13
+ title: string;
14
+ portalOutlet: CdkPortalOutlet;
15
+ constructor(modalRef: UiModalRef, component: Type<any>, congif: ModalConfig, injector: Injector);
16
+ ngAfterViewInit(): void;
17
+ closeOuside(): void;
18
+ close(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicModalComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicModalComponent, "ui-modal", never, {}, {}, never, never, true, never>;
21
+ }
@@ -0,0 +1,7 @@
1
+ export interface ModalConfig<T = any> {
2
+ data?: T;
3
+ title?: string;
4
+ preventCloseingOutside?: boolean;
5
+ size?: 'small' | 'medium' | 'large';
6
+ noPadding?: boolean;
7
+ }
@@ -0,0 +1,30 @@
1
+ import { CdkPortalOutlet } from '@angular/cdk/portal';
2
+ import { Injector, Type } from '@angular/core';
3
+ import { OverlayRef } from '@angular/cdk/overlay';
4
+ import { SideModalConfig } from './sideModalConfig.model';
5
+ import { UiModalRef } from '../../../services/modaRef';
6
+ import { UicModalService } from '../../../services/modal.service';
7
+ import * as i0 from "@angular/core";
8
+ export declare class UicSideModalComponent {
9
+ private readonly modalRef;
10
+ private readonly component;
11
+ private readonly congif;
12
+ private readonly injector;
13
+ private readonly modal;
14
+ overlayRef: OverlayRef;
15
+ state: 'visible' | 'hidden';
16
+ show: boolean;
17
+ myConfig: SideModalConfig;
18
+ ready: boolean;
19
+ portalOutlet: CdkPortalOutlet;
20
+ constructor(modalRef: UiModalRef, component: Type<any>, congif: SideModalConfig, injector: Injector, modal: UicModalService);
21
+ ngOnInit(): void;
22
+ ngAfterViewInit(): void;
23
+ closeOuside(): void;
24
+ close(): void;
25
+ cancel(): void;
26
+ onAnimationDone(event: any): void;
27
+ save(): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicSideModalComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSideModalComponent, "ui-side-modal", never, {}, {}, never, never, true, never>;
30
+ }
@@ -0,0 +1,16 @@
1
+ export interface SideModalConfig<T = any> {
2
+ data?: T;
3
+ title?: string;
4
+ subtitle?: string;
5
+ preventCloseingOutside?: boolean;
6
+ footerEnabled?: boolean;
7
+ footerOkButtonText?: string;
8
+ showCancelButton?: boolean;
9
+ preventCloseOnCancel?: boolean;
10
+ footerCancelButtonText?: string;
11
+ footerCancelIcon?: string;
12
+ footerOkIcon?: string;
13
+ headerEnabled?: boolean;
14
+ width?: string;
15
+ noPadding?: boolean;
16
+ }
@@ -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,46 @@
1
+ import { SimpleChanges } from '@angular/core';
2
+ import { AppSelectOption } from '../inputs/select/select.component';
3
+ import * as i0 from "@angular/core";
4
+ type selectId = number | string;
5
+ type selectedDetailed = {
6
+ id: selectId;
7
+ detail?: string;
8
+ };
9
+ declare const base: abstract new () => {
10
+ value: selectedDetailed[];
11
+ valueChange: import("@angular/core").EventEmitter<selectedDetailed[]>;
12
+ onChange: (value: selectedDetailed[]) => void;
13
+ onTouched: () => void;
14
+ writeValue(obj: selectedDetailed[]): void;
15
+ registerOnChange(fn: any): void;
16
+ registerOnTouched(fn: any): void;
17
+ setDisabledState?(isDisabled: boolean): void;
18
+ notifyChange(value: selectedDetailed[]): void;
19
+ };
20
+ export declare class UicPoolOptionsComponent extends base {
21
+ icon: string;
22
+ iconColor: 'primary' | 'secondary';
23
+ size: 's' | 'm' | 'l';
24
+ label: string;
25
+ error: string;
26
+ tip: string;
27
+ disabled: boolean;
28
+ loading: boolean;
29
+ multy: boolean;
30
+ enabledListView: boolean;
31
+ listViewTitle: string;
32
+ options: AppSelectOption[];
33
+ private selectedItems;
34
+ get selectedValues(): selectedDetailed[];
35
+ updateOptions(id: selectId): void;
36
+ updateDetail(id: selectId, detail: string): void;
37
+ writeValue(value?: selectedDetailed[] | selectId[] | null): void;
38
+ ngOnChanges(changes: SimpleChanges): void;
39
+ isSelected(id: selectId): boolean;
40
+ getItemName(id: selectId): selectId;
41
+ private emitSelectionChange;
42
+ private normalizeIncomingValue;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicPoolOptionsComponent, never>;
44
+ 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; }; "enabledListView": { "alias": "enabledListView"; "required": false; }; "listViewTitle": { "alias": "listViewTitle"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
45
+ }
46
+ export {};
@@ -0,0 +1,17 @@
1
+ import { OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
+ import { ButtonColor } from '../button/button.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicProgressBarComponent implements OnChanges, OnDestroy {
5
+ progress: number;
6
+ color: ButtonColor;
7
+ height: number;
8
+ displayProgress: number;
9
+ private rafId;
10
+ get clampedProgress(): number;
11
+ get heightPx(): string;
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ ngOnDestroy(): void;
14
+ private scheduleProgressUpdate;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicProgressBarComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicProgressBarComponent, "ui-progress-bar", never, { "progress": { "alias": "progress"; "required": false; }; "color": { "alias": "color"; "required": false; }; "height": { "alias": "height"; "required": false; }; }, {}, never, never, true, never>;
17
+ }
@@ -0,0 +1,16 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { Alert } from '../alert.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UiAlertComponent implements OnInit {
5
+ alert: Alert;
6
+ closeAlert: EventEmitter<number>;
7
+ interval: any;
8
+ progressValue: number;
9
+ animationIntevalMs: number;
10
+ pauseAnimation: boolean;
11
+ id: number;
12
+ ngOnInit(): void;
13
+ close(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiAlertComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiAlertComponent, "ui-alert", never, { "alert": { "alias": "alert"; "required": false; }; }, { "closeAlert": "closeAlert"; }, never, never, true, never>;
16
+ }
@@ -0,0 +1,13 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { Alert } from '../alert.model';
3
+ import { UicPushAlertService } from '../../../services/push-alert.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class UicAlertContainerComponent implements OnInit {
6
+ private readonly alertService;
7
+ alerts: Alert[];
8
+ constructor(alertService: UicPushAlertService);
9
+ ngOnInit(): void;
10
+ dismis(id: number): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicAlertContainerComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicAlertContainerComponent, "ui-alert-container", never, {}, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { Alert } from './alert.model';
2
+ export declare function createSuccessAlert(message: string, options?: Partial<Alert>): Alert;
3
+ export declare function createErrorAlert(message: string, options?: Partial<Alert>): Alert;
4
+ export declare function createWarningAlert(message: string, options?: Partial<Alert>): Alert;
5
+ export declare function createInfoAlert(message: string, options?: Partial<Alert>): Alert;
@@ -0,0 +1,29 @@
1
+ export interface Alert {
2
+ id: number;
3
+ message: string;
4
+ type: 'success' | 'error' | 'warning' | 'info';
5
+ title?: string;
6
+ icon?: string;
7
+ okButtonText?: string;
8
+ showProgressBar?: boolean;
9
+ cancelButtonText?: string;
10
+ style?: 'filled' | 'bordered';
11
+ duration?: number;
12
+ }
13
+ export type AlertConfigParams = Omit<Alert, 'id'>;
14
+ export type SuccessAlert = Omit<Alert, 'type'> & {
15
+ style: 'filled';
16
+ type: 'success';
17
+ };
18
+ export type ErrorAlert = Omit<Alert, 'type'> & {
19
+ style: 'filled';
20
+ type: 'error';
21
+ };
22
+ export type WarningAlert = Omit<Alert, 'type'> & {
23
+ style: 'filled';
24
+ type: 'warning';
25
+ };
26
+ export type InfoAlert = Omit<Alert, 'type'> & {
27
+ style: 'filled';
28
+ type: 'info';
29
+ };
@@ -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;
@@ -0,0 +1,111 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { AppSelectOption } from '../inputs/select/select.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicRuleBuilderComponent implements OnInit {
5
+ private conditionsInitialized;
6
+ private emitConditionsOnInit;
7
+ private emitRuleDefinitionOnInit;
8
+ private conditionsEmitScheduled;
9
+ private ruleDefinitionEmitScheduled;
10
+ private _conditions;
11
+ disabled: boolean;
12
+ customNamesEnabled: boolean;
13
+ set conditions(value: UicConditionDefinition[] | null | undefined);
14
+ get conditions(): UicConditionDefinition[];
15
+ conditionOperators: AppSelectOption[];
16
+ conditionFields: ConditionField[];
17
+ conditionLabels: Record<string, string>;
18
+ editing: boolean;
19
+ private nextTemporalConditionId;
20
+ private externalRuleDefinition;
21
+ ruleTitle: string;
22
+ set ruleDefinition(value: RuleBuilderValue | null | undefined);
23
+ get ruleDefinition(): RuleBuilderValue;
24
+ ruleDefinitionChange: EventEmitter<RuleBuilderValue>;
25
+ conditionsChange: EventEmitter<UicConditionDefinition[]>;
26
+ editorRules: Rule[];
27
+ private readonly translate;
28
+ private readonly modal;
29
+ get resolvedTitle(): string;
30
+ ngOnInit(): void;
31
+ addRule(rules?: Rule[]): void;
32
+ addGroup(rules?: Rule[]): void;
33
+ changeOperator(rules: Rule[], idx: number): void;
34
+ removeRule(rules: Rule[], idx: number): void;
35
+ manageRules(rules: Rule[], idx: number): void;
36
+ print(): void;
37
+ reset(): void;
38
+ getOutput(): RuleOutput;
39
+ getConditionLabel(value: string | number | null | undefined): string;
40
+ isConditionLabelPending(value: string | number | null | undefined): boolean;
41
+ getConditionDetailTip(value: string | number | null | undefined): string;
42
+ getOperatorLabel(value: Rule['value']): string;
43
+ private appendExpression;
44
+ private syncRuleDefinition;
45
+ private createConditionRule;
46
+ private createGroupRule;
47
+ private collectConditionValues;
48
+ private normalizeRules;
49
+ private cloneRules;
50
+ private buildExpression;
51
+ private isExpression;
52
+ private parseExpression;
53
+ private getRulesFromDefinition;
54
+ private markRulesAsSaved;
55
+ private tokenizeExpression;
56
+ private parseTokens;
57
+ private resolveConditionValue;
58
+ private resolveConditionLabel;
59
+ private hasConditionReference;
60
+ private upsertCondition;
61
+ private buildRuleOutput;
62
+ private emitRuleDefinitionState;
63
+ private emitConditionsState;
64
+ private scheduleRuleDefinitionStateEmit;
65
+ private scheduleConditionsStateEmit;
66
+ private normalizeRuleBuilderValue;
67
+ private createEmptyRuleBuilderValue;
68
+ private areRuleBuilderValuesEqual;
69
+ private refreshAvailableConditions;
70
+ private syncConditionsWithPersistedConditions;
71
+ private replaceConditionReferences;
72
+ private getConditionReference;
73
+ private getNextTemporalConditionId;
74
+ private syncNextTemporalConditionId;
75
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicRuleBuilderComponent, never>;
76
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicRuleBuilderComponent, "ui-rule-builder", never, { "disabled": { "alias": "disabled"; "required": false; }; "customNamesEnabled": { "alias": "customNamesEnabled"; "required": false; }; "conditions": { "alias": "conditions"; "required": false; }; "conditionOperators": { "alias": "conditionOperators"; "required": false; }; "conditionFields": { "alias": "conditionFields"; "required": false; }; "ruleTitle": { "alias": "ruleTitle"; "required": false; }; "ruleDefinition": { "alias": "ruleDefinition"; "required": false; }; }, { "ruleDefinitionChange": "ruleDefinitionChange"; "conditionsChange": "conditionsChange"; }, never, never, true, never>;
77
+ }
78
+ export interface RuleBuilderValue {
79
+ definition: string;
80
+ rulesToCreate: RuleToCreate[];
81
+ }
82
+ export type RuleOutput = RuleBuilderValue;
83
+ export interface RuleToCreate {
84
+ temporalId: string;
85
+ fieldCode: string;
86
+ operatorCode: string;
87
+ value: string;
88
+ description: string;
89
+ }
90
+ export interface Rule {
91
+ type: 'condition' | 'operator' | 'group';
92
+ value?: 'AND' | 'OR' | string | number | null;
93
+ rules?: Rule[];
94
+ unsaved?: boolean;
95
+ }
96
+ export interface UicConditionDefinition {
97
+ id: number;
98
+ fieldName: string;
99
+ fieldCode: string;
100
+ operatorName: string;
101
+ operatorCode: string;
102
+ value: string;
103
+ description: string;
104
+ temporalId?: string;
105
+ }
106
+ export interface ConditionField {
107
+ id: number | string;
108
+ text: string;
109
+ type?: 'number' | 'string' | 'date' | 'catalog';
110
+ options?: AppSelectOption[];
111
+ }
@@ -0,0 +1,55 @@
1
+ import { OnDestroy } from '@angular/core';
2
+ import { AppSelectOption } from '../../inputs/select/select.component';
3
+ import { FormField, FormResult, uicFormValuesRecord } from '../../dynamic-form/form.models';
4
+ import { ConditionField, UicConditionDefinition } from '../rule-builder.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class RuleDefinirionComponent implements OnDestroy {
7
+ data: {
8
+ conditions: UicConditionDefinition[];
9
+ customNamesEnabled: boolean;
10
+ conditionOperators: AppSelectOption[];
11
+ conditionFields: ConditionField[];
12
+ selectedConditionReference?: string | number | null;
13
+ };
14
+ newRule: boolean;
15
+ fields: FormField[];
16
+ conditions: UicConditionDefinition[];
17
+ selectedConditionReference: string | null;
18
+ searchTerm: string;
19
+ currentPage: number;
20
+ readonly pageSize = 5;
21
+ customNamesEnabled: boolean;
22
+ private readonly translate;
23
+ private readonly ref;
24
+ private readonly languageSubscription;
25
+ mainConditionFieldsData: ConditionField[];
26
+ constructor(data: {
27
+ conditions: UicConditionDefinition[];
28
+ customNamesEnabled: boolean;
29
+ conditionOperators: AppSelectOption[];
30
+ conditionFields: ConditionField[];
31
+ selectedConditionReference?: string | number | null;
32
+ });
33
+ ngOnDestroy(): void;
34
+ trackingField: string;
35
+ initialValues: {};
36
+ updateFormNewRule(fr: uicFormValuesRecord): void;
37
+ get filteredConditions(): UicConditionDefinition[];
38
+ get paginatedConditions(): UicConditionDefinition[];
39
+ get totalPages(): number;
40
+ get canGoToPreviousPage(): boolean;
41
+ get canGoToNextPage(): boolean;
42
+ onSearchTermChange(): void;
43
+ goToPreviousPage(): void;
44
+ goToNextPage(): void;
45
+ createAndSelectRule(fr: FormResult): void;
46
+ select(condition: UicConditionDefinition): void;
47
+ isSelected(condition: UicConditionDefinition): boolean;
48
+ highlightSearch(value: string | null | undefined): string;
49
+ private buildFields;
50
+ private normalizeText;
51
+ private escapeHtml;
52
+ private getConditionReference;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<RuleDefinirionComponent, never>;
54
+ static ɵcmp: i0.ɵɵComponentDeclaration<RuleDefinirionComponent, "lib-rule-definirion", never, {}, {}, never, never, true, never>;
55
+ }
@@ -0,0 +1,15 @@
1
+ import { TableColums, TableRow } from '../table/table.models';
2
+ import { UicPortletData } from '../uic-portlet-card/uic-portlet-card.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicShortTableComponent {
5
+ columns: TableColums[];
6
+ data: TableRow;
7
+ loading: boolean;
8
+ disabled: boolean;
9
+ cols: number;
10
+ portlet: UicPortletData[];
11
+ ngOnInit(): void;
12
+ apTableToPortlets(columns: TableColums[], row: TableRow): UicPortletData[];
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicShortTableComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicShortTableComponent, "ui-short-table", never, { "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
@@ -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 {};
@@ -0,0 +1,13 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UicSkeletonCardsComponent {
3
+ cards: number;
4
+ gap: number;
5
+ minCardWidthPx: number;
6
+ get gridStyle(): {
7
+ 'grid-template-columns': string;
8
+ gap: string;
9
+ };
10
+ get cardsCount(): number;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicSkeletonCardsComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSkeletonCardsComponent, "ui-skeleton-cards", never, { "cards": { "alias": "cards"; "required": false; }; "gap": { "alias": "gap"; "required": false; }; "minCardWidthPx": { "alias": "minCardWidthPx"; "required": false; }; }, {}, never, never, true, never>;
13
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UicSkeletonLoaderComponent {
3
+ inputs: number;
4
+ cols: number;
5
+ get gridStyle(): {
6
+ 'grid-template-columns': string;
7
+ };
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicSkeletonLoaderComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicSkeletonLoaderComponent, "ui-skeleton-loader", never, { "inputs": { "alias": "inputs"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; }, {}, never, never, true, never>;
10
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UicStatusLabelComponent {
3
+ color: string;
4
+ type: 'status' | 'tag';
5
+ icon: string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicStatusLabelComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicStatusLabelComponent, "ui-status-label", never, { "color": { "alias": "color"; "required": false; }; "type": { "alias": "type"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, ["*"], true, never>;
8
+ }
@@ -0,0 +1,7 @@
1
+ import { TableList } from '../table.models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicTableListComponent {
4
+ list: TableList[];
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicTableListComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicTableListComponent, "uic-table-list", never, { "list": { "alias": "list"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,20 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicTablePaginationComponent {
4
+ buttonSize: 's' | 'm' | 'l';
5
+ currentPage: number;
6
+ totalPages: number;
7
+ size: number;
8
+ loading: boolean;
9
+ showText: boolean;
10
+ nextButtonText: string;
11
+ previousButtonText: string;
12
+ visiblePages: number;
13
+ pagesInView: number[];
14
+ pageChange: EventEmitter<number>;
15
+ sizeChange: EventEmitter<number>;
16
+ get pages(): (number | string)[];
17
+ changePage(newPage: number): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicTablePaginationComponent, 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>;
20
+ }
@@ -0,0 +1,15 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicTableUicSearcherComponent {
4
+ placeholder: string;
5
+ label: string;
6
+ searchOnKeydown: boolean;
7
+ showButtonText: boolean;
8
+ showSearchButton: boolean;
9
+ filter: EventEmitter<string>;
10
+ text: string;
11
+ reset(): void;
12
+ updateText(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicTableUicSearcherComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicTableUicSearcherComponent, "uic-table-searcher", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "searchOnKeydown": { "alias": "searchOnKeydown"; "required": false; }; "showButtonText": { "alias": "showButtonText"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; }, { "filter": "filter"; }, never, never, true, never>;
15
+ }
@@ -0,0 +1,7 @@
1
+ import { TableUser } from '../table.models';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicTableUserComponent {
4
+ user: TableUser | undefined;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicTableUserComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicTableUserComponent, "uic-table-user", never, { "user": { "alias": "user"; "required": false; }; }, {}, never, never, true, never>;
7
+ }