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
package/index.d.ts ADDED
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ui-core-abv" />
5
+ export * from './public-api';
@@ -0,0 +1 @@
1
+ export declare const animatedRow: import("@angular/animations").AnimationTriggerMetadata;
@@ -0,0 +1,6 @@
1
+ export * from './animatedRow.animation';
2
+ export * from './fadeAndRise.animation';
3
+ export * from './highlightRow.animation';
4
+ export * from './pushTop.animation';
5
+ export * from './sideModal.animation';
6
+ export * from './simpleFade.animation';
@@ -0,0 +1 @@
1
+ export declare const fadeAndRise: import("@angular/animations").AnimationTriggerMetadata;
@@ -0,0 +1 @@
1
+ export declare const highlightRow: import("@angular/animations").AnimationTriggerMetadata;
@@ -0,0 +1 @@
1
+ export declare const pushTop: import("@angular/animations").AnimationTriggerMetadata;
@@ -0,0 +1,2 @@
1
+ export declare const sideModal: import("@angular/animations").AnimationTriggerMetadata;
2
+ export declare const fadeBackdrop: import("@angular/animations").AnimationTriggerMetadata;
@@ -0,0 +1 @@
1
+ export declare const simpleFade: import("@angular/animations").AnimationTriggerMetadata;
@@ -0,0 +1,11 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { UiBtnTab } from '../tabs-button/tabs-button.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicAccordionComponent {
5
+ tabs: UiBtnTab[];
6
+ activeTab: string;
7
+ activeTabChange: EventEmitter<string>;
8
+ changeTab(key: string): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicAccordionComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicAccordionComponent, "ui-accordion", never, { "tabs": { "alias": "tabs"; "required": false; }; "activeTab": { "alias": "activeTab"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, never, ["*"], true, never>;
11
+ }
@@ -0,0 +1,21 @@
1
+ import { SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicButtonComponent {
4
+ text: string;
5
+ icon: string;
6
+ rightIcon: string;
7
+ iconOnly: boolean;
8
+ disabled: boolean;
9
+ loading: boolean;
10
+ size: ButtonSize;
11
+ type: ButtonType;
12
+ color: ButtonColor;
13
+ buttonTypeClass: string;
14
+ ngOnInit(): void;
15
+ ngOnChange(sc: SimpleChanges): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicButtonComponent, never>;
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>;
18
+ }
19
+ export type ButtonColor = 'primary' | 'secondary' | 'red' | 'green' | 'blue' | 'yellow' | 'black' | 'grey' | 'white';
20
+ export type ButtonSize = 't' | 's' | 'm' | 'l' | 'g';
21
+ export type ButtonType = 'filled' | 'bordered' | 'ghost';
@@ -0,0 +1,7 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class UiDropdownCloseDirective {
3
+ private readonly dropdown;
4
+ handleClick(): void;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiDropdownCloseDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<UiDropdownCloseDirective, "[uiDropdownClose]", never, {}, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,51 @@
1
+ import { ConnectedPosition } from '@angular/cdk/overlay';
2
+ import { EventEmitter, InjectionToken, OnDestroy, TemplateRef } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ export interface DropdownOverlayControls {
5
+ close(): void;
6
+ open(): void;
7
+ toggle(): void;
8
+ readonly isOpen: boolean;
9
+ }
10
+ export declare const DROPDOWN_OVERLAY_CONTROLS: InjectionToken<DropdownOverlayControls>;
11
+ export declare class UicDropdownContainerComponent implements OnDestroy, DropdownOverlayControls {
12
+ private _disabled;
13
+ private readonly host;
14
+ buttonLabel: string;
15
+ get disabled(): boolean;
16
+ set disabled(value: boolean);
17
+ positions: ConnectedPosition[];
18
+ matchTriggerWidth: boolean;
19
+ width?: number | string;
20
+ minWidth?: number | string;
21
+ maxWidth?: number | string;
22
+ backdropClass: string;
23
+ hasBackdrop: boolean;
24
+ closeOnBackdropClick: boolean;
25
+ closeOnEscape: boolean;
26
+ closeOnContentClick: boolean;
27
+ offsetX: number;
28
+ offsetY: number;
29
+ push: boolean;
30
+ flexibleDimensions: boolean;
31
+ closed: EventEmitter<void>;
32
+ contentTemplate?: TemplateRef<unknown>;
33
+ projectedTemplate?: TemplateRef<unknown>;
34
+ private overlayRef?;
35
+ private readonly overlay;
36
+ private readonly vcr;
37
+ private overlaySubscriptions;
38
+ private contentClickHandler?;
39
+ get isOpen(): boolean;
40
+ ngOnDestroy(): void;
41
+ open(): void;
42
+ close(): void;
43
+ toggle(): void;
44
+ onTriggerClick(event: Event): void;
45
+ private createPositionStrategy;
46
+ private destroyOverlay;
47
+ private resolveDimension;
48
+ private bindOverlayEvents;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicDropdownContainerComponent, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicDropdownContainerComponent, "ui-dropdown-container", never, { "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "positions": { "alias": "positions"; "required": false; }; "matchTriggerWidth": { "alias": "matchTriggerWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; }; "closeOnContentClick": { "alias": "closeOnContentClick"; "required": false; }; "offsetX": { "alias": "offsetX"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "push": { "alias": "push"; "required": false; }; "flexibleDimensions": { "alias": "flexibleDimensions"; "required": false; }; }, { "closed": "closed"; }, ["projectedTemplate"], ["[button]", "[content]"], true, never>;
51
+ }
@@ -0,0 +1,12 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ export declare function createValueAccessor<T>(): abstract new () => {
3
+ value: T;
4
+ valueChange: EventEmitter<T>;
5
+ onChange: (value: T) => void;
6
+ onTouched: () => void;
7
+ writeValue(obj: T): void;
8
+ registerOnChange(fn: any): void;
9
+ registerOnTouched(fn: any): void;
10
+ setDisabledState?(isDisabled: boolean): void;
11
+ notifyChange(value: T): void;
12
+ };
@@ -0,0 +1,63 @@
1
+ import { NgZone, OnDestroy } from '@angular/core';
2
+ import { AbstractControl, FormGroup } from '@angular/forms';
3
+ import { Observable } from 'rxjs';
4
+ import { ButtonColor } from '../../button/button.component';
5
+ import { FormField } from '../form.models';
6
+ import * as i0 from "@angular/core";
7
+ interface DynamicFieldState {
8
+ field: FormField;
9
+ control: AbstractControl | null;
10
+ value: any;
11
+ }
12
+ export declare class UicDynamicFormComponent implements OnDestroy {
13
+ private readonly ngZone;
14
+ private readonly fieldsSignal;
15
+ private readonly formSignal;
16
+ private readonly disabledSignal;
17
+ private readonly formState;
18
+ private readonly http;
19
+ private readonly alertS;
20
+ private readonly i18n;
21
+ private readonly fieldVisibilityState;
22
+ private readonly searchFnCache;
23
+ private readonly searchDisplayFnCache;
24
+ private readonly searchIsEnabledFnCache;
25
+ private recognition;
26
+ private voiceStopTimer;
27
+ set fields(value: FormField[]);
28
+ get fields(): FormField[];
29
+ set form(value: FormGroup);
30
+ get form(): FormGroup;
31
+ set disabled(value: boolean);
32
+ get disabled(): boolean;
33
+ voiceToTextSilenceMs: number;
34
+ cols: number;
35
+ fileUidResolverFn?: (fileUid: string) => void;
36
+ listeningField: string | null;
37
+ readonly fieldStates: import("@angular/core").Signal<DynamicFieldState[]>;
38
+ readonly visibleFieldStates: import("@angular/core").Signal<DynamicFieldState[]>;
39
+ private readonly fieldStateSyncEffect;
40
+ readonly colorToIcon: Record<string, string>;
41
+ constructor(ngZone: NgZone);
42
+ ngOnDestroy(): void;
43
+ getGridColumn(field: FormField): string;
44
+ private getValueByFieldName;
45
+ private syncFieldEnabledState;
46
+ private getClearValue;
47
+ private matchesVisibilityRule;
48
+ private parseBooleanLike;
49
+ getControlErrorMessages(control: AbstractControl | null, field: FormField): string[];
50
+ isListening(fieldName: string): boolean;
51
+ private readonly errorMessages;
52
+ getInputColor(field: FormField, value: string | number): ButtonColor;
53
+ getIconByColor(field: FormField, color: string): ButtonColor;
54
+ getSearcherFn(field: FormField): ((query: string) => Observable<any[]>) | undefined;
55
+ getSearcherDisplayFn(field: FormField): ((item: any) => string) | undefined;
56
+ getSearcherIsEnabledFn(field: FormField): ((item: any) => boolean) | undefined;
57
+ private clearVoiceStopTimer;
58
+ private scheduleVoiceStop;
59
+ voiceToText(target: HTMLTextAreaElement, fieldName: string): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicDynamicFormComponent, never>;
61
+ 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; }; "fileUidResolverFn": { "alias": "fileUidResolverFn"; "required": false; }; }, {}, never, never, true, never>;
62
+ }
63
+ export {};
@@ -0,0 +1,16 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ import { uicFormValuesRecord } from './form.models';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicFormStateService {
5
+ private readonly destroyRef;
6
+ private formValueSignal;
7
+ private currentForm;
8
+ private formChangesSub;
9
+ values: import("@angular/core").Signal<uicFormValuesRecord>;
10
+ form: import("@angular/core").Signal<FormGroup<any> | null>;
11
+ setForm(form: FormGroup): void;
12
+ constructor();
13
+ getFieldValue(fieldName: string): any;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicFormStateService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<UicFormStateService>;
16
+ }
@@ -0,0 +1,57 @@
1
+ import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { AppSelectOption } from '../../inputs/select/select.component';
4
+ import { FormField, FormResult, FormSchema, uicFormValuesRecord } from '../form.models';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UicFormWrapperComponent implements OnInit, OnChanges, OnDestroy {
7
+ private readonly fb;
8
+ form: FormGroup;
9
+ effectiveSchema: FormSchema;
10
+ schema?: FormSchema;
11
+ fields: FormField[];
12
+ cols: number;
13
+ externalData: Record<string, AppSelectOption[]>;
14
+ loading: boolean;
15
+ disabled: boolean;
16
+ showButtons: boolean;
17
+ fillSelects: boolean;
18
+ initialValues: uicFormValuesRecord;
19
+ fileUidResolverFn?: (fileUid: string) => void;
20
+ formSubmit: EventEmitter<FormResult>;
21
+ formChange: EventEmitter<uicFormValuesRecord>;
22
+ private formValueSub;
23
+ ngOnInit(): void;
24
+ ngOnChanges(changes: SimpleChanges): void;
25
+ ngOnDestroy(): void;
26
+ private buildForm;
27
+ private updateDisabledState;
28
+ private updateExtenalData;
29
+ private mapValidatorsFromField;
30
+ handleSubmit(): FormResult;
31
+ private handleFormChange;
32
+ private updateFieldOptions;
33
+ private collectAllFields;
34
+ updateFieldValue(name: string, value: any): void;
35
+ updateFieldConfig(name: string, config: Omit<FormField, 'name' | 'type'>): void;
36
+ updateFieldDisabled(name: string, disabled: boolean): void;
37
+ updateFieldLoading(name: string, loading: boolean): void;
38
+ submit(): FormResult;
39
+ clean(hardReset?: boolean): void;
40
+ addFieldControl(field: FormField, after?: string): void;
41
+ removeFieldControl(name: string): void;
42
+ private resolveResetValue;
43
+ private blankValue;
44
+ private newFieldInitialValue;
45
+ private insertField;
46
+ private updateSchemaField;
47
+ private getFieldControl;
48
+ private findFieldByName;
49
+ private resolveInitialValue;
50
+ private normalizeNumericControls;
51
+ private normalizeFieldValue;
52
+ private toNestedValues;
53
+ private setNestedValue;
54
+ private syncEffectiveSchema;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicFormWrapperComponent, never>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicFormWrapperComponent, "ui-form-wrapper", never, { "schema": { "alias": "schema"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "cols": { "alias": "cols"; "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; }; "fileUidResolverFn": { "alias": "fileUidResolverFn"; "required": false; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; }, never, never, true, never>;
57
+ }
@@ -0,0 +1,95 @@
1
+ import { Observable } from "rxjs";
2
+ import { AppSelectOption } from "../inputs/select/select.component";
3
+ import { ButtonColor } from "../button/button.component";
4
+ export interface FormStep {
5
+ title: string;
6
+ form: FormSchema;
7
+ required?: boolean;
8
+ okButtonText?: string;
9
+ cancelButtonText?: string;
10
+ }
11
+ export interface FormSchema {
12
+ cols: number;
13
+ blocks?: FormBlock[];
14
+ }
15
+ export interface FormBlock {
16
+ subtitle?: string;
17
+ title?: string;
18
+ fields: FormField[];
19
+ }
20
+ export interface FormField {
21
+ name: string;
22
+ type: FieldType;
23
+ required?: boolean;
24
+ icon?: string;
25
+ label?: string;
26
+ tip?: string;
27
+ newLine?: boolean;
28
+ colSpan?: number;
29
+ iconColor?: ButtonColor;
30
+ tooltip?: string;
31
+ disabled?: boolean;
32
+ loading?: boolean;
33
+ clearValueOnHide?: boolean;
34
+ internalIcon?: string;
35
+ internalIconColor?: ButtonColor;
36
+ internalColorScale?: number[];
37
+ internalColorScaleOrder?: 'asc' | 'desc';
38
+ selectSearchEnabled?: boolean;
39
+ selectNullable?: boolean;
40
+ placeholder?: string;
41
+ minLength?: number;
42
+ maxLength?: number;
43
+ showCounter?: boolean;
44
+ voiceToTextEnabled?: boolean;
45
+ textareaResize?: boolean;
46
+ resizeMinRows?: number;
47
+ resizeMaxRows?: number;
48
+ min?: number;
49
+ max?: number;
50
+ step?: number;
51
+ sliderInterval?: number;
52
+ sliderMarks?: number;
53
+ monthMode?: boolean;
54
+ monthDay?: 'first' | 'last';
55
+ minDate?: string;
56
+ maxDate?: string;
57
+ timeInterval?: number;
58
+ fileTypes?: string[] | string;
59
+ poolEnabledListView?: boolean;
60
+ poolTitle?: string;
61
+ options?: AppSelectOption[];
62
+ multyEnabled?: boolean;
63
+ searchApi?: string;
64
+ searchFn?: (query: string) => Observable<any[]>;
65
+ searchDisplayFn?: (item: any) => string;
66
+ searchIsEnabledFn?: (item: any) => boolean;
67
+ pattern?: RegExp;
68
+ visibilityRules?: FieldVisibilityRule[] | null;
69
+ iaValidation?: boolean;
70
+ iaValidationPrompt?: string;
71
+ }
72
+ export interface FieldVisibilityRule {
73
+ fieldName: string;
74
+ operator: VisibilityOperators;
75
+ value: any;
76
+ }
77
+ export type VisibilityOperators = 'equals' | 'notEquals' | 'greaterThan' | 'lessThan' | 'includes' | 'notIncludes';
78
+ export interface FieldConfig {
79
+ value: FieldType;
80
+ icon: string;
81
+ detail: string;
82
+ label: string;
83
+ properties: string[];
84
+ }
85
+ export declare const FIELDS_CONFIG: FieldConfig[];
86
+ export type FieldType = 'text' | 'number' | 'phone' | 'date' | 'time' | 'select' | 'radio' | 'checkbox' | 'switch' | 'textarea' | 'pool' | 'file' | 'multyselect' | 'searcher' | 'slider';
87
+ export interface FormResult {
88
+ result: boolean;
89
+ form: uicFormValuesRecord | null;
90
+ }
91
+ export type uicFormValuesRecord = Record<string, any>;
92
+ export declare const BASE_FORM_FIELDS: FormField[];
93
+ export declare const LAYOUT_FORM_FIELDS: FormField[];
94
+ export declare const EXTRA_FORM_FIELDS: FormField[];
95
+ export declare const BRANCH_FORM_FIELDS: FormField[];
@@ -0,0 +1,13 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicStepTabsComponent {
4
+ tabs: string[];
5
+ currentTab: string;
6
+ navigationEnabled: boolean;
7
+ showStepTitle: boolean;
8
+ currentTabChange: EventEmitter<string>;
9
+ currentIndex: number;
10
+ changeTab(newTab: string): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicStepTabsComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicStepTabsComponent, "ui-step-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "currentTab": { "alias": "currentTab"; "required": false; }; "navigationEnabled": { "alias": "navigationEnabled"; "required": false; }; "showStepTitle": { "alias": "showStepTitle"; "required": false; }; }, { "currentTabChange": "currentTabChange"; }, never, never, true, never>;
13
+ }
@@ -0,0 +1,34 @@
1
+ import { EventEmitter, QueryList } from '@angular/core';
2
+ import { FormResult, FormStep } from '../form.models';
3
+ import { ButtonColor } from '../../button/button.component';
4
+ import { UicFormWrapperComponent } from '../form-wrapper/form-wrapper.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class UicStepsFormComponent {
7
+ allForms: QueryList<UicFormWrapperComponent>;
8
+ steps: FormStep[];
9
+ navigationEnabled: boolean;
10
+ showStepTitle: boolean;
11
+ showButtons: boolean;
12
+ buttonsColor: ButtonColor;
13
+ formSubmit: EventEmitter<FormResult>;
14
+ externalData: {};
15
+ formDisabled: boolean;
16
+ loading: boolean;
17
+ tabs: string[];
18
+ completedForms: Map<string, Record<string, any>>;
19
+ currentTabTitle: string;
20
+ ngOnInit(): void;
21
+ private getFormByTitle;
22
+ updateFieldValue(step: string, controlName: string, value: string): void;
23
+ updateFildDisabled(step: string, controlName: string, value: boolean): void;
24
+ updateFildLoading(step: string, controlName: string, value: boolean): void;
25
+ next(): void;
26
+ back(): void;
27
+ private handleStepSubmit;
28
+ private getMergedForm;
29
+ get currentIdx(): number;
30
+ get isFirst(): boolean;
31
+ get isLast(): boolean;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicStepsFormComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicStepsFormComponent, "ui-steps-form", never, { "steps": { "alias": "steps"; "required": false; }; "navigationEnabled": { "alias": "navigationEnabled"; "required": false; }; "showStepTitle": { "alias": "showStepTitle"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "buttonsColor": { "alias": "buttonsColor"; "required": false; }; }, { "formSubmit": "formSubmit"; }, never, never, true, never>;
34
+ }
@@ -0,0 +1,84 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { ActionMenuOption } from '../uic-action-button/uic-action-button.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UicEditableTableComponent {
5
+ private readonly hostElement;
6
+ readonly actionColumnWidth = 30;
7
+ config: import("@angular/core").InputSignal<Partial<EditableTableConfig>>;
8
+ columnsConfig: import("@angular/core").InputSignal<EditableTableColumnsConfig>;
9
+ resolvedConfig: import("@angular/core").Signal<EditableTableConfig>;
10
+ rowActions: import("@angular/core").Signal<ActionMenuOption[]>;
11
+ constructor(hostElement: ElementRef<HTMLElement>);
12
+ private _record;
13
+ private readonly tinyAlert;
14
+ private readonly translateService;
15
+ private readonly _visibleRowsStep;
16
+ private readonly rowsSignal;
17
+ private readonly headersSignal;
18
+ private readonly visibleRowsCountSignal;
19
+ private readonly columnWidthsSignal;
20
+ private readonly columnConfigsSignal;
21
+ set visibleRowsStep(value: number | null | undefined);
22
+ get visibleRowsStep(): number;
23
+ set record(value: Array<Record<string, unknown>> | null | undefined);
24
+ get record(): Array<Record<string, unknown>>;
25
+ get headers(): string[];
26
+ set headers(value: string[]);
27
+ get rows(): Array<Record<string, unknown>>;
28
+ set rows(value: Array<Record<string, unknown>>);
29
+ get visibleRowsCount(): number;
30
+ set visibleRowsCount(value: number);
31
+ get columnWidths(): number[];
32
+ set columnWidths(value: number[]);
33
+ readonly defaultColumnWidth = 160;
34
+ private readonly minColumnWidth;
35
+ private resizingColumn;
36
+ recordChange: EventEmitter<Record<string, unknown>[]>;
37
+ readonly visibleRows: import("@angular/core").Signal<Record<string, unknown>[]>;
38
+ readonly hasMoreRows: import("@angular/core").Signal<boolean>;
39
+ deleteColum(header: string): Promise<void>;
40
+ private hasDataInColumn;
41
+ pendingColumnIndex: number | null;
42
+ pendingColumnName: string;
43
+ private confirmingPendingColumn;
44
+ addColumAfert(idx: number): void;
45
+ onPendingColumnNameBlur(): Promise<void>;
46
+ onPendingColumnCheckMouseDown(): void;
47
+ onPendingColumnNameKeydown(event: KeyboardEvent): void;
48
+ confirmPendingColumnName(): Promise<void>;
49
+ onPendingColumnNameChange(value: string): void;
50
+ cancelPendingColumn(): void;
51
+ startColumnResize(event: PointerEvent, headerIndex: number): void;
52
+ readonly columnInputTypeByHeader: import("@angular/core").Signal<Record<string, EditableTableInputType>>;
53
+ readonly columnDisabledByHeader: import("@angular/core").Signal<Record<string, boolean>>;
54
+ private syncColumnWidths;
55
+ private normalizeProvidedColumnConfig;
56
+ private normalizeColumnInputType;
57
+ onCellBlur(): void;
58
+ onCellKeydown(event: KeyboardEvent, indexRows: number, indexCols: number): void;
59
+ handleRowAction(actionId: string, rowIndex: number): void;
60
+ showMoreRows(): void;
61
+ deleteRow(index: number): Promise<void>;
62
+ private hasDataInRow;
63
+ addEmptyRow(index: number, position: string): void;
64
+ private emitTableDataChanges;
65
+ private focusCell;
66
+ private focusPendingColumnInput;
67
+ private buildHeadersFromRows;
68
+ private syncVisibleRows;
69
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicEditableTableComponent, never>;
70
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicEditableTableComponent, "ui-editable-table", never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; "columnsConfig": { "alias": "columnsConfig"; "required": false; "isSignal": true; }; "visibleRowsStep": { "alias": "visibleRowsStep"; "required": false; }; "record": { "alias": "record"; "required": false; }; }, { "recordChange": "recordChange"; }, never, never, true, never>;
71
+ }
72
+ export type EditableTableConfig = {
73
+ canAddRow: boolean;
74
+ canDeleteRow: boolean;
75
+ canAddColumn: boolean;
76
+ canDeleteColumn: boolean;
77
+ resizeableColumns: boolean;
78
+ };
79
+ export type EditableTableInputType = 'text' | 'number' | 'date' | 'email' | 'password' | 'search' | 'tel' | 'url' | 'time' | 'datetime-local' | 'month';
80
+ export type EditableTableColumnConfig = {
81
+ type?: EditableTableInputType;
82
+ disabled?: boolean;
83
+ };
84
+ export type EditableTableColumnsConfig = Record<string, EditableTableColumnConfig>;
@@ -0,0 +1,21 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UicExcelTableComponent {
4
+ headerFormat: 'lowercase' | 'uppercase' | 'none';
5
+ title: string;
6
+ private _visibleRowsStep;
7
+ private _record;
8
+ set visibleRowsStep(value: number | null | undefined);
9
+ get visibleRowsStep(): number;
10
+ set record(value: Array<Record<string, unknown>> | null | undefined);
11
+ get record(): Array<Record<string, unknown>>;
12
+ fileName: string;
13
+ recordChange: EventEmitter<Record<string, unknown>[]>;
14
+ onFileSelected(event: Event): void;
15
+ onEditableRecordChange(value: Array<Record<string, unknown>>): void;
16
+ resetData(): void;
17
+ private normalizeHeaderFormat;
18
+ private formatHeader;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicExcelTableComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<UicExcelTableComponent, "ui-excel-table", never, { "headerFormat": { "alias": "headerFormat"; "required": false; }; "title": { "alias": "title"; "required": false; }; "visibleRowsStep": { "alias": "visibleRowsStep"; "required": false; }; "record": { "alias": "record"; "required": false; }; }, { "recordChange": "recordChange"; }, never, never, true, never>;
21
+ }
@@ -0,0 +1,28 @@
1
+ import { ButtonColor } from '../../button/button.component';
2
+ import * as i0 from "@angular/core";
3
+ declare const base: abstract new () => {
4
+ value: boolean;
5
+ valueChange: import("@angular/core").EventEmitter<boolean>;
6
+ onChange: (value: boolean) => void;
7
+ onTouched: () => void;
8
+ writeValue(obj: boolean): void;
9
+ registerOnChange(fn: any): void;
10
+ registerOnTouched(fn: any): void;
11
+ setDisabledState?(isDisabled: boolean): void;
12
+ notifyChange(value: boolean): void;
13
+ };
14
+ export declare class UicCheckboxComponent extends base {
15
+ icon: string;
16
+ iconColor: ButtonColor;
17
+ label: string;
18
+ tip: string;
19
+ type: 'checkbox' | 'switch';
20
+ placeholder: string;
21
+ loading: boolean;
22
+ noPadding: boolean;
23
+ disabled: boolean;
24
+ toggle(): void;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<UicCheckboxComponent, never>;
26
+ 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; }; "loading": { "alias": "loading"; "required": false; }; "noPadding": { "alias": "noPadding"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], true, never>;
27
+ }
28
+ export {};