@corp-products/ui-components 1.0.2 → 2.0.0
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.
- package/README.md +63 -2
- package/fesm2022/corp-products-ui-components.mjs +227 -187
- package/fesm2022/corp-products-ui-components.mjs.map +1 -1
- package/index.d.ts +394 -13
- package/package.json +6 -6
- package/esm2022/corp-products-ui-components.mjs +0 -5
- package/esm2022/index.mjs +0 -14
- package/esm2022/lib/app-accordion/app-accordion.component.mjs +0 -35
- package/esm2022/lib/app-button/app-button.component.mjs +0 -43
- package/esm2022/lib/app-button/app-button.mjs +0 -2
- package/esm2022/lib/app-button/index.mjs +0 -3
- package/esm2022/lib/app-dropdown-menu/app-dropdown-menu.component.mjs +0 -54
- package/esm2022/lib/app-dropdown-menu/app-dropdown-menu.mjs +0 -2
- package/esm2022/lib/app-dropdown-menu/index.mjs +0 -3
- package/esm2022/lib/app-dropdown-menu/menu-popup.pipe.mjs +0 -23
- package/esm2022/lib/app-tabs/app-tab.interface.mjs +0 -2
- package/esm2022/lib/app-tabs/app-tabs.component.mjs +0 -57
- package/esm2022/lib/app-tabs/index.mjs +0 -3
- package/esm2022/lib/confirmation-dialog/confirmation-dialog.component.mjs +0 -44
- package/esm2022/lib/dynamic-form/dynamic-form.component.mjs +0 -31
- package/esm2022/lib/dynamic-form/dynamic-form.interface.mjs +0 -6
- package/esm2022/lib/form-components/@utils/form-utils.mjs +0 -11
- package/esm2022/lib/form-components/@utils/validations/error-keys.enum.mjs +0 -27
- package/esm2022/lib/form-components/@utils/validations/form-validation.service.mjs +0 -50
- package/esm2022/lib/form-components/@utils/validations/index.mjs +0 -4
- package/esm2022/lib/form-components/@utils/validations/validation-message.pipe.mjs +0 -30
- package/esm2022/lib/form-components/components/auto-complete/auto-complete.component.mjs +0 -59
- package/esm2022/lib/form-components/components/base-input.component.mjs +0 -57
- package/esm2022/lib/form-components/components/date-picker/date-picker.component.mjs +0 -58
- package/esm2022/lib/form-components/components/input/input.component.mjs +0 -48
- package/esm2022/lib/form-components/components/select/select.component.mjs +0 -72
- package/esm2022/lib/form-components/components/select-button/select-button.component.mjs +0 -29
- package/esm2022/lib/form-components/components/switcher/switch.component.mjs +0 -34
- package/esm2022/lib/form-components/index.mjs +0 -10
- package/esm2022/lib/form-components/interfaces/index.mjs +0 -2
- package/esm2022/lib/form-components/interfaces/label-value.mjs +0 -2
- package/esm2022/lib/ico-moon-icon/ico-moon-icon.component.mjs +0 -41
- package/esm2022/lib/read-more/read-more.component.mjs +0 -30
- package/esm2022/lib/side-bar/side-bar.component.mjs +0 -51
- package/esm2022/lib/user-autocomplete-card/user-autocomplete-card.component.mjs +0 -32
- package/esm2022/lib/user-info/user-info.component.mjs +0 -15
- package/lib/app-accordion/app-accordion.component.d.ts +0 -11
- package/lib/app-button/app-button.component.d.ts +0 -18
- package/lib/app-button/app-button.d.ts +0 -4
- package/lib/app-button/index.d.ts +0 -2
- package/lib/app-dropdown-menu/app-dropdown-menu.component.d.ts +0 -20
- package/lib/app-dropdown-menu/app-dropdown-menu.d.ts +0 -15
- package/lib/app-dropdown-menu/index.d.ts +0 -2
- package/lib/app-dropdown-menu/menu-popup.pipe.d.ts +0 -8
- package/lib/app-tabs/app-tab.interface.d.ts +0 -23
- package/lib/app-tabs/app-tabs.component.d.ts +0 -18
- package/lib/app-tabs/index.d.ts +0 -2
- package/lib/confirmation-dialog/confirmation-dialog.component.d.ts +0 -19
- package/lib/dynamic-form/dynamic-form.component.d.ts +0 -16
- package/lib/dynamic-form/dynamic-form.interface.d.ts +0 -44
- package/lib/form-components/@utils/form-utils.d.ts +0 -4
- package/lib/form-components/@utils/validations/error-keys.enum.d.ts +0 -24
- package/lib/form-components/@utils/validations/form-validation.service.d.ts +0 -11
- package/lib/form-components/@utils/validations/index.d.ts +0 -3
- package/lib/form-components/@utils/validations/validation-message.pipe.d.ts +0 -9
- package/lib/form-components/components/auto-complete/auto-complete.component.d.ts +0 -18
- package/lib/form-components/components/base-input.component.d.ts +0 -21
- package/lib/form-components/components/date-picker/date-picker.component.d.ts +0 -21
- package/lib/form-components/components/input/input.component.d.ts +0 -17
- package/lib/form-components/components/select/select.component.d.ts +0 -23
- package/lib/form-components/components/select-button/select-button.component.d.ts +0 -13
- package/lib/form-components/components/switcher/switch.component.d.ts +0 -11
- package/lib/form-components/index.d.ts +0 -9
- package/lib/form-components/interfaces/index.d.ts +0 -1
- package/lib/form-components/interfaces/label-value.d.ts +0 -4
- package/lib/ico-moon-icon/ico-moon-icon.component.d.ts +0 -9
- package/lib/read-more/read-more.component.d.ts +0 -10
- package/lib/side-bar/side-bar.component.d.ts +0 -18
- package/lib/user-autocomplete-card/user-autocomplete-card.component.d.ts +0 -12
- package/lib/user-info/user-info.component.d.ts +0 -7
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import { SlicePipe } from "@angular/common";
|
|
3
|
-
import { TranslateModule } from "@ngx-translate/core";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@ngx-translate/core";
|
|
6
|
-
export class ReadMoreComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.text = "";
|
|
9
|
-
this.styleClass = "";
|
|
10
|
-
this.maxCharacters = 100;
|
|
11
|
-
this.isExpanded = false;
|
|
12
|
-
}
|
|
13
|
-
toggleReadMore() {
|
|
14
|
-
this.isExpanded = !this.isExpanded;
|
|
15
|
-
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ReadMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: ReadMoreComponent, isStandalone: true, selector: "app-read-more", inputs: { text: "text", styleClass: "styleClass", maxCharacters: "maxCharacters" }, ngImport: i0, template: "<p [class]=\"styleClass\">\r\n {{ isExpanded ? text : (text | slice : 0 : maxCharacters) }}\r\n @if (text.length > maxCharacters && !isExpanded) {\r\n <span>...</span>\r\n }\r\n @if (isExpanded) {\r\n <span>\r\n {{ text | slice : maxCharacters + 1 : text.length }}\r\n </span>\r\n }\r\n <br>\r\n @if (text.length > maxCharacters) {\r\n <span class=\"text-primary_light cursor-pointer\" (click)=\"toggleReadMore()\">\r\n {{ isExpanded ? ('less' | translate) : ('more' | translate) }}\r\n </span>\r\n }\r\n</p>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }, { kind: "pipe", type: SlicePipe, name: "slice" }] }); }
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ReadMoreComponent, decorators: [{
|
|
20
|
-
type: Component,
|
|
21
|
-
args: [{ selector: "app-read-more", standalone: true, imports: [TranslateModule, SlicePipe], template: "<p [class]=\"styleClass\">\r\n {{ isExpanded ? text : (text | slice : 0 : maxCharacters) }}\r\n @if (text.length > maxCharacters && !isExpanded) {\r\n <span>...</span>\r\n }\r\n @if (isExpanded) {\r\n <span>\r\n {{ text | slice : maxCharacters + 1 : text.length }}\r\n </span>\r\n }\r\n <br>\r\n @if (text.length > maxCharacters) {\r\n <span class=\"text-primary_light cursor-pointer\" (click)=\"toggleReadMore()\">\r\n {{ isExpanded ? ('less' | translate) : ('more' | translate) }}\r\n </span>\r\n }\r\n</p>\r\n" }]
|
|
22
|
-
}], propDecorators: { text: [{
|
|
23
|
-
type: Input,
|
|
24
|
-
args: [{ required: true }]
|
|
25
|
-
}], styleClass: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], maxCharacters: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}] } });
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVhZC1tb3JlLmNvbXBvbmVudC5qcyIsInNvd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ENoYXJhY3RlcnMgJiYgIWlzRXhwYW5kZWQpIHtcclxuICAgIDxzcGFuPi4uLjwvc3Bhbj5cclxuICB9XHJcbiAgQGlmIChpc0V4cGFuZGVkKSB7XHJcbiAgICA8c3Bhbj5cclxuICAgIHt7IHRleHQgfCBzbGljZSA6IG1heENoYXJhY3RlcnMgKyAxIDogdGV4dC5sZW5ndGggfX1cclxuICA8L3NwYW4+XHJcbiAgfVxyXG4gIDxicj5cclxuICBAaWYgKHRleHQubGVuZ3RoID4gbWF4Q2hhcmFjdGVycykge1xyXG4gICAgPHNwYW4gY2xhc3M9XCJ0ZXh0LXByaW1hcnlfbGlnaHQgY3Vyc29yLXBvaW50ZXJcIiAoY2xpY2spPVwidG9nZ2xlUmVhZE1vcmUoKVwiPlxyXG4gICAgIHt7IGlzRXhwYW5kZWQgPyAoJ2xlc3MnIHwgdHJhbnNsYXRlKSA6ICgnbW9yZScgfCB0cmFuc2xhdGUpIH19XHJcbiAgICA8L3NwYW4+XHJcbiAgfVxyXG48L3A+XHJcbiJdfQ==
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { NgClass, NgTemplateOutlet } from "@angular/common";
|
|
2
|
-
import { Component, EventEmitter, Input, Output, TemplateRef, ViewEncapsulation } from "@angular/core";
|
|
3
|
-
import { PrimeTemplate } from "primeng/api";
|
|
4
|
-
import { Drawer } from "primeng/drawer";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class SideBarComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.show = false;
|
|
9
|
-
this.closable = false;
|
|
10
|
-
this.dismissible = false;
|
|
11
|
-
this.closeOnEscape = false;
|
|
12
|
-
this.sidebarSize = "sm";
|
|
13
|
-
this.styleClass = "";
|
|
14
|
-
this.hide = new EventEmitter();
|
|
15
|
-
// eslint-disable-next-line @angular-eslint/no-output-on-prefix
|
|
16
|
-
this.onShow = new EventEmitter();
|
|
17
|
-
}
|
|
18
|
-
hideSidebar() {
|
|
19
|
-
this.show = false;
|
|
20
|
-
this.hide.emit(false);
|
|
21
|
-
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SideBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
23
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: SideBarComponent, isStandalone: true, selector: "app-side-bar", inputs: { show: "show", title: "title", closable: "closable", dismissible: "dismissible", closeOnEscape: "closeOnEscape", sidebarSize: "sidebarSize", styleClass: "styleClass", contentTemplate: "contentTemplate", footerTemplate: "footerTemplate" }, outputs: { hide: "hide", onShow: "onShow" }, ngImport: i0, template: "<!-- TODO refactor position sidebar based on html dir-->\r\n<p-drawer\r\n (onHide)=\"hideSidebar()\"\r\n (onShow)=\"onShow.emit($event)\"\r\n [(visible)]=\"show\"\r\n [closable]=\"closable\"\r\n [closeOnEscape]=\"closeOnEscape\"\r\n [dismissible]=\"dismissible\"\r\n [ngClass]=\"{ show: show }\"\r\n [position]=\"'left'\"\r\n appendTo=\"body\"\r\n styleClass=\"p-drawer-{{ sidebarSize }} custom-content bg-white {{ styleClass }}\">\r\n <ng-template pTemplate=\"header\">{{ title }}</ng-template>\r\n @if (contentTemplate) {\r\n <ng-template pTemplate=\"content\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n </ng-template>\r\n <ng-template pTemplate=\"footer\">\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </ng-template>\r\n }\r\n <ng-template pTemplate=\"content\">\r\n <ng-content id=\"side-content\"></ng-content>\r\n </ng-template>\r\n</p-drawer>\r\n", styles: [".sidebar.show{min-width:550px}\n"], dependencies: [{ kind: "directive", type: PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: Drawer, selector: "p-drawer", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "closeButtonProps", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen", "header", "maskStyle", "closable"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
24
|
-
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SideBarComponent, decorators: [{
|
|
26
|
-
type: Component,
|
|
27
|
-
args: [{ selector: "app-side-bar", standalone: true, imports: [PrimeTemplate, Drawer, NgClass, NgTemplateOutlet], encapsulation: ViewEncapsulation.None, template: "<!-- TODO refactor position sidebar based on html dir-->\r\n<p-drawer\r\n (onHide)=\"hideSidebar()\"\r\n (onShow)=\"onShow.emit($event)\"\r\n [(visible)]=\"show\"\r\n [closable]=\"closable\"\r\n [closeOnEscape]=\"closeOnEscape\"\r\n [dismissible]=\"dismissible\"\r\n [ngClass]=\"{ show: show }\"\r\n [position]=\"'left'\"\r\n appendTo=\"body\"\r\n styleClass=\"p-drawer-{{ sidebarSize }} custom-content bg-white {{ styleClass }}\">\r\n <ng-template pTemplate=\"header\">{{ title }}</ng-template>\r\n @if (contentTemplate) {\r\n <ng-template pTemplate=\"content\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n </ng-template>\r\n <ng-template pTemplate=\"footer\">\r\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\r\n </ng-template>\r\n }\r\n <ng-template pTemplate=\"content\">\r\n <ng-content id=\"side-content\"></ng-content>\r\n </ng-template>\r\n</p-drawer>\r\n", styles: [".sidebar.show{min-width:550px}\n"] }]
|
|
28
|
-
}], propDecorators: { show: [{
|
|
29
|
-
type: Input
|
|
30
|
-
}], title: [{
|
|
31
|
-
type: Input
|
|
32
|
-
}], closable: [{
|
|
33
|
-
type: Input
|
|
34
|
-
}], dismissible: [{
|
|
35
|
-
type: Input
|
|
36
|
-
}], closeOnEscape: [{
|
|
37
|
-
type: Input
|
|
38
|
-
}], sidebarSize: [{
|
|
39
|
-
type: Input
|
|
40
|
-
}], styleClass: [{
|
|
41
|
-
type: Input
|
|
42
|
-
}], hide: [{
|
|
43
|
-
type: Output
|
|
44
|
-
}], onShow: [{
|
|
45
|
-
type: Output
|
|
46
|
-
}], contentTemplate: [{
|
|
47
|
-
type: Input
|
|
48
|
-
}], footerTemplate: [{
|
|
49
|
-
type: Input
|
|
50
|
-
}] } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2lkZS1iYXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS1jb21wb25lbnRzL3NyYy9saWIvc2lkZS1iYXIvc2lkZS1iYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS1jb21wb25lbnRzL3NyYy9saWIvc2lkZS1iYXIvc2lkZS1iYXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQzVELE9BQU8sRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBRSxNQUFNLEVBQUUsV0FBVyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3ZHLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDNUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLGdCQUFnQixDQUFDOztB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bcG9zaXRpb25dPVwiJ2xlZnQnXCJcclxuICBhcHBlbmRUbz1cImJvZHlcIlxyXG4gIHN0eWxlQ2xhc3M9XCJwLWRyYXdlci17eyBzaWRlYmFyU2l6ZSB9fSBjdXN0b20tY29udGVudCBiZy13aGl0ZSB7eyBzdHlsZUNsYXNzIH19XCI+XHJcbiAgPG5nLXRlbXBsYXRlIHBUZW1wbGF0ZT1cImhlYWRlclwiPnt7IHRpdGxlIH19PC9uZy10ZW1wbGF0ZT5cclxuICBAaWYgKGNvbnRlbnRUZW1wbGF0ZSkge1xyXG4gICAgPG5nLXRlbXBsYXRlIHBUZW1wbGF0ZT1cImNvbnRlbnRcIj5cclxuICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImNvbnRlbnRUZW1wbGF0ZVwiPjwvbmctY29udGFpbmVyPlxyXG4gICAgPC9uZy10ZW1wbGF0ZT5cclxuICAgIDxuZy10ZW1wbGF0ZSBwVGVtcGxhdGU9XCJmb290ZXJcIj5cclxuICAgICAgPG5nLWNvbnRhaW5lciAqbmdUZW1wbGF0ZU91dGxldD1cImZvb3RlclRlbXBsYXRlXCI+PC9uZy1jb250YWluZXI+XHJcbiAgICA8L25nLXRlbXBsYXRlPlxyXG4gIH1cclxuICA8bmctdGVtcGxhdGUgcFRlbXBsYXRlPVwiY29udGVudFwiPlxyXG4gICAgPG5nLWNvbnRlbnQgaWQ9XCJzaWRlLWNvbnRlbnRcIj48L25nLWNvbnRlbnQ+XHJcbiAgPC9uZy10ZW1wbGF0ZT5cclxuPC9wLWRyYXdlcj5cclxuIl19
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
|
|
2
|
-
import { AppButtonComponent } from "../app-button";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class UserAutocompleteCardComponent {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.select = new EventEmitter();
|
|
7
|
-
this.delete = new EventEmitter();
|
|
8
|
-
this.explicitRole = "";
|
|
9
|
-
this.showDeleteAction = true;
|
|
10
|
-
}
|
|
11
|
-
onDelete() {
|
|
12
|
-
this.delete.emit(this.userData);
|
|
13
|
-
}
|
|
14
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UserAutocompleteCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: UserAutocompleteCardComponent, isStandalone: true, selector: "app-user-autocomplete-card", inputs: { userData: "userData", explicitRole: "explicitRole", showDeleteAction: "showDeleteAction" }, outputs: { select: "select", delete: "delete" }, ngImport: i0, template: "<div class=\"flex gap-2 items-center justify-between p-4 rounded mb-4 border border-dotted border-gray-300 bg-gray-100\">\r\n <div class=\"flex gap-4 items-center\">\r\n <img [alt]=\"userData.name\" [src]=\"userData.profileImage\" class=\"rounded-full object-cover w-[48px] h-[48px]\" />\r\n <div class=\"flex flex-col justify-end\">\r\n <h4 class=\"font-bold text-[12px] text-gray-800 truncate max-w-[135px] dir-ltr\">\r\n {{ userData.name }}\r\n </h4>\r\n <p class=\"text-[12px] text-gray-700\">{{ explicitRole ? explicitRole : userData.position.name }}</p>\r\n </div>\r\n </div>\r\n <div class=\"flex-1 flex flex-col items-end\">\r\n <p class=\"text-[12px] text-purple-700 truncate max-w-[90px] dir-ltr\">{{ userData.email }}</p>\r\n <p class=\"text-[12px] text-gray-600 dir-ltr\">{{ userData.contact.mobile }}</p>\r\n </div>\r\n @if (showDeleteAction){\r\n <div class=\"flex gap-1 flex-nowrap\">\r\n <app-button (clickEmitter)=\"onDelete()\" [rounded]=\"true\" [size]=\"'large'\" [text]=\"true\" icon=\"font-icon-trash\"/>\r\n </div>\r\n }\r\n</div>\r\n", styles: [""], dependencies: [{ kind: "component", type: AppButtonComponent, selector: "app-button", inputs: ["title", "class", "icon", "size", "style", "iconPos", "variant", "disabled", "text", "rounded"], outputs: ["clickEmitter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16
|
-
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UserAutocompleteCardComponent, decorators: [{
|
|
18
|
-
type: Component,
|
|
19
|
-
args: [{ selector: "app-user-autocomplete-card", standalone: true, imports: [AppButtonComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex gap-2 items-center justify-between p-4 rounded mb-4 border border-dotted border-gray-300 bg-gray-100\">\r\n <div class=\"flex gap-4 items-center\">\r\n <img [alt]=\"userData.name\" [src]=\"userData.profileImage\" class=\"rounded-full object-cover w-[48px] h-[48px]\" />\r\n <div class=\"flex flex-col justify-end\">\r\n <h4 class=\"font-bold text-[12px] text-gray-800 truncate max-w-[135px] dir-ltr\">\r\n {{ userData.name }}\r\n </h4>\r\n <p class=\"text-[12px] text-gray-700\">{{ explicitRole ? explicitRole : userData.position.name }}</p>\r\n </div>\r\n </div>\r\n <div class=\"flex-1 flex flex-col items-end\">\r\n <p class=\"text-[12px] text-purple-700 truncate max-w-[90px] dir-ltr\">{{ userData.email }}</p>\r\n <p class=\"text-[12px] text-gray-600 dir-ltr\">{{ userData.contact.mobile }}</p>\r\n </div>\r\n @if (showDeleteAction){\r\n <div class=\"flex gap-1 flex-nowrap\">\r\n <app-button (clickEmitter)=\"onDelete()\" [rounded]=\"true\" [size]=\"'large'\" [text]=\"true\" icon=\"font-icon-trash\"/>\r\n </div>\r\n }\r\n</div>\r\n" }]
|
|
20
|
-
}], propDecorators: { select: [{
|
|
21
|
-
type: Output
|
|
22
|
-
}], delete: [{
|
|
23
|
-
type: Output
|
|
24
|
-
}], userData: [{
|
|
25
|
-
type: Input,
|
|
26
|
-
args: [{ required: true }]
|
|
27
|
-
}], explicitRole: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], showDele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SA/IGV4cGxpY2l0Um9sZSA6IHVzZXJEYXRhLnBvc2l0aW9uLm5hbWUgfX08L3A+XHJcbiAgICA8L2Rpdj5cclxuICA8L2Rpdj5cclxuICA8ZGl2IGNsYXNzPVwiZmxleC0xIGZsZXggZmxleC1jb2wgaXRlbXMtZW5kXCI+XHJcbiAgICA8cCBjbGFzcz1cInRleHQtWzEycHhdIHRleHQtcHVycGxlLTcwMCB0cnVuY2F0ZSBtYXgtdy1bOTBweF0gZGlyLWx0clwiPnt7IHVzZXJEYXRhLmVtYWlsIH19PC9wPlxyXG4gICAgPHAgY2xhc3M9XCJ0ZXh0LVsxMnB4XSB0ZXh0LWdyYXktNjAwIGRpci1sdHJcIj57eyB1c2VyRGF0YS5jb250YWN0Lm1vYmlsZSB9fTwvcD5cclxuICA8L2Rpdj5cclxuICBAaWYgKHNob3dEZWxldGVBY3Rpb24pe1xyXG4gICAgPGRpdiBjbGFzcz1cImZsZXggZ2FwLTEgZmxleC1ub3dyYXBcIj5cclxuICAgICAgPGFwcC1idXR0b24gKGNsaWNrRW1pdHRlcik9XCJvbkRlbGV0ZSgpXCIgW3JvdW5kZWRdPVwidHJ1ZVwiIFtzaXplXT1cIidsYXJnZSdcIiBbdGV4dF09XCJ0cnVlXCIgaWNvbj1cImZvbnQtaWNvbi10cmFzaFwiLz5cclxuICAgIDwvZGl2PlxyXG4gIH1cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class UserInfoComponent {
|
|
4
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UserInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: UserInfoComponent, isStandalone: true, selector: "user-info", inputs: { profileImage: "profileImage", name: "name" }, ngImport: i0, template: "<div class=\"flex items-center gap-2\">\r\n <img\r\n [alt]=\"name\"\r\n [src]=\"profileImage\"\r\n class=\"rounded-full object-cover w-[24px] h-[24px]\"\r\n height=\"24\"\r\n width=\"24\"\r\n />\r\n <p class=\"text-[14px]\">{{ name }}</p>\r\n</div>\r\n" }); }
|
|
6
|
-
}
|
|
7
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: UserInfoComponent, decorators: [{
|
|
8
|
-
type: Component,
|
|
9
|
-
args: [{ selector: "user-info", standalone: true, template: "<div class=\"flex items-center gap-2\">\r\n <img\r\n [alt]=\"name\"\r\n [src]=\"profileImage\"\r\n class=\"rounded-full object-cover w-[24px] h-[24px]\"\r\n height=\"24\"\r\n width=\"24\"\r\n />\r\n <p class=\"text-[14px]\">{{ name }}</p>\r\n</div>\r\n" }]
|
|
10
|
-
}], propDecorators: { profileImage: [{
|
|
11
|
-
type: Input
|
|
12
|
-
}], name: [{
|
|
13
|
-
type: Input
|
|
14
|
-
}] } });
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1pbmZvLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvdWktY29tcG9uZW50cy9zcmMvbGliL3VzZXItaW5mby91c2VyLWluZm8uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vbGlicy91aS1jb21wb25lbnRzL3NyYy9saWIvdXNlci1pbmZvL3VzZXItaW5mby5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFPakQsTUFBTSxPQUFPLGlCQUFpQjs4R0FBakIsaUJBQWlCO2tHQUFqQixpQkFBaUIsNkhDUDlCLGdSQVVBOzsyRkRIYSxpQkFBaUI7a0JBTDdCLFNBQVM7K0JBQ0UsV0FBVyxjQUVULElBQUk7OEJBR1AsWUFBWTtzQkFBcEIsS0FBSztnQkFDRyxJQUFJO3NCQUFaLEtBQUsiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIElucHV0IH0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcclxuXHJcbkBDb21wb25lbnQoe1xyXG4gIHNlbGVjdG9yOiBcInVzZXItaW5mb1wiLFxyXG4gIHRlbXBsYXRlVXJsOiBcIi4vdXNlci1pbmZvLmNvbXBvbmVudC5odG1sXCIsXHJcbiAgc3RhbmRhbG9uZTogdHJ1ZVxyXG59KVxyXG5leHBvcnQgY2xhc3MgVXNlckluZm9Db21wb25lbnQge1xyXG4gIEBJbnB1dCgpIHByb2ZpbGVJbWFnZTogc3RyaW5nO1xyXG4gIEBJbnB1dCgpIG5hbWU6IHN0cmluZztcclxufVxyXG4iLCI8ZGl2IGNsYXNzPVwiZmxleCBpdGVtcy1jZW50ZXIgZ2FwLTJcIj5cclxuICA8aW1nXHJcbiAgICBbYWx0XT1cIm5hbWVcIlxyXG4gICAgW3NyY109XCJwcm9maWxlSW1hZ2VcIlxyXG4gICAgY2xhc3M9XCJyb3VuZGVkLWZ1bGwgb2JqZWN0LWNvdmVyIHctWzI0cHhdIGgtWzI0cHhdXCJcclxuICAgIGhlaWdodD1cIjI0XCJcclxuICAgIHdpZHRoPVwiMjRcIlxyXG4gIC8+XHJcbiAgPHAgY2xhc3M9XCJ0ZXh0LVsxNHB4XVwiPnt7IG5hbWUgfX08L3A+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class AppAccordionComponent {
|
|
3
|
-
iconName: string;
|
|
4
|
-
iconClass: string;
|
|
5
|
-
iconPathCount: number;
|
|
6
|
-
title: string;
|
|
7
|
-
contentBorderTop: boolean;
|
|
8
|
-
accordionPanelBorder: boolean;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppAccordionComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppAccordionComponent, "app-accordion", never, { "iconName": { "alias": "iconName"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; "iconPathCount": { "alias": "iconPathCount"; "required": false; }; "title": { "alias": "title"; "required": true; }; "contentBorderTop": { "alias": "contentBorderTop"; "required": false; }; "accordionPanelBorder": { "alias": "accordionPanelBorder"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
11
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { AppButtonIconPos, AppButtonSeverity, AppButtonSize, AppButtonVariant } from './app-button';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class AppButtonComponent {
|
|
5
|
-
title: string;
|
|
6
|
-
class: string;
|
|
7
|
-
icon: string;
|
|
8
|
-
size: AppButtonSize;
|
|
9
|
-
style: AppButtonSeverity;
|
|
10
|
-
iconPos: AppButtonIconPos;
|
|
11
|
-
variant: AppButtonVariant;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
text: boolean;
|
|
14
|
-
rounded: boolean;
|
|
15
|
-
clickEmitter: EventEmitter<void>;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppButtonComponent, "app-button", never, { "title": { "alias": "title"; "required": false; }; "class": { "alias": "class"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "style": { "alias": "style"; "required": false; }; "iconPos": { "alias": "iconPos"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "text": { "alias": "text"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; }, { "clickEmitter": "clickEmitter"; }, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export type AppButtonSeverity = 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast';
|
|
2
|
-
export type AppButtonSize = 'large' | 'small';
|
|
3
|
-
export type AppButtonIconPos = 'left' | 'right' | 'top' | 'bottom';
|
|
4
|
-
export type AppButtonVariant = 'outlined' | 'text' | undefined;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DropdownMenuItem } from './app-dropdown-menu';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import { AppButtonIconPos, AppButtonSeverity } from '../app-button';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class AppDropdownMenuComponent implements OnInit {
|
|
7
|
-
buttonTitle: string;
|
|
8
|
-
menuItems: DropdownMenuItem[];
|
|
9
|
-
popupMenuStyle: "white" | "purple";
|
|
10
|
-
buttonIcon: string;
|
|
11
|
-
buttonClass: string;
|
|
12
|
-
buttonStyle: AppButtonSeverity;
|
|
13
|
-
buttonIconPosition: AppButtonIconPos;
|
|
14
|
-
router: Router;
|
|
15
|
-
showMenu: boolean;
|
|
16
|
-
ngOnInit(): void;
|
|
17
|
-
onMenuItemClick(item: DropdownMenuItem): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppDropdownMenuComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppDropdownMenuComponent, "app-dropdown-menu", never, { "buttonTitle": { "alias": "buttonTitle"; "required": true; }; "menuItems": { "alias": "menuItems"; "required": true; }; "popupMenuStyle": { "alias": "popupMenuStyle"; "required": false; }; "buttonIcon": { "alias": "buttonIcon"; "required": false; }; "buttonClass": { "alias": "buttonClass"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "buttonIconPosition": { "alias": "buttonIconPosition"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Params } from "@angular/router";
|
|
2
|
-
import { AppButtonIconPos } from "../app-button";
|
|
3
|
-
export interface DropdownMenuItem {
|
|
4
|
-
title: string;
|
|
5
|
-
routerLink?: string;
|
|
6
|
-
queryParams?: Params;
|
|
7
|
-
callback?: () => void;
|
|
8
|
-
icon?: string;
|
|
9
|
-
show?: boolean;
|
|
10
|
-
permissionKey?: string;
|
|
11
|
-
permissionAction?: string;
|
|
12
|
-
iconPosition?: AppButtonIconPos;
|
|
13
|
-
textColor?: DropdownTextColor;
|
|
14
|
-
}
|
|
15
|
-
export type DropdownTextColor = 'white' | 'purple' | 'green';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DropdownTextColor } from "./app-dropdown-menu";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MenuPopupTextColorPipe implements PipeTransform {
|
|
5
|
-
transform(color?: DropdownTextColor): string;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuPopupTextColorPipe, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MenuPopupTextColorPipe, "popupTextColorClass", true>;
|
|
8
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from "@angular/core";
|
|
2
|
-
interface Tab {
|
|
3
|
-
title: string;
|
|
4
|
-
iconName?: string;
|
|
5
|
-
iconPathCount?: number;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
count?: number;
|
|
8
|
-
permissionKey?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface RoutedTab extends Tab {
|
|
11
|
-
link: string;
|
|
12
|
-
}
|
|
13
|
-
export interface TemplateTab extends Tab {
|
|
14
|
-
contentTemplate: TemplateRef<unknown>;
|
|
15
|
-
}
|
|
16
|
-
export type AppTabs = ({
|
|
17
|
-
isRouted: true;
|
|
18
|
-
items: RoutedTab[];
|
|
19
|
-
} | {
|
|
20
|
-
isRouted: false;
|
|
21
|
-
items: TemplateTab[];
|
|
22
|
-
});
|
|
23
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { OnInit } from "@angular/core";
|
|
2
|
-
import { AppTabs } from "./app-tab.interface";
|
|
3
|
-
import { ActivatedRoute, Router } from "@angular/router";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AppTabsComponent implements OnInit {
|
|
6
|
-
private route;
|
|
7
|
-
private router;
|
|
8
|
-
tabs: AppTabs;
|
|
9
|
-
tabsStyle: "basic" | "primary_light" | "primary";
|
|
10
|
-
responsive: boolean;
|
|
11
|
-
activeTabIndex: number;
|
|
12
|
-
constructor(route: ActivatedRoute, router: Router);
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
private updateActiveTab;
|
|
15
|
-
onTabChange(index: number): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppTabsComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppTabsComponent, "app-tabs", never, { "tabs": { "alias": "tabs"; "required": false; }; "tabsStyle": { "alias": "tabsStyle"; "required": false; }; "responsive": { "alias": "responsive"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
-
}
|
package/lib/app-tabs/index.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
-
import { Router } from "@angular/router";
|
|
3
|
-
import { DialogService, DynamicDialogConfig } from "primeng/dynamicdialog";
|
|
4
|
-
import { DynamicFormData } from "../dynamic-form/dynamic-form.interface";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ConfirmationDialogComponent implements OnInit, OnDestroy {
|
|
7
|
-
router: Router;
|
|
8
|
-
dialogService: DialogService;
|
|
9
|
-
dynamicDialogConfig: DynamicDialogConfig<any>;
|
|
10
|
-
private readonly _ref;
|
|
11
|
-
private readonly _subscription;
|
|
12
|
-
dialogFormData: DynamicFormData;
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
ngOnDestroy(): void;
|
|
15
|
-
submit(): void;
|
|
16
|
-
close(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "app-confirm-dialog", never, {}, {}, never, never, true, never>;
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OnInit } from "@angular/core";
|
|
2
|
-
import { FormGroup } from "@angular/forms";
|
|
3
|
-
import { DynamicFormData, FormFieldTypeEnum, InputsMap } from "./dynamic-form.interface";
|
|
4
|
-
import { FormUtils } from "../form-components";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class DynamicFormComponent implements OnInit {
|
|
7
|
-
dynamicFormData: DynamicFormData;
|
|
8
|
-
inputsNames: string[];
|
|
9
|
-
formGroup: FormGroup;
|
|
10
|
-
inputsMap: InputsMap;
|
|
11
|
-
readonly fieldType: typeof FormFieldTypeEnum;
|
|
12
|
-
getFormControl: typeof FormUtils.getFormControl;
|
|
13
|
-
ngOnInit(): void;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "app-dynamic-form", never, { "dynamicFormData": { "alias": "dynamicFormData"; "required": true; }; }, {}, never, never, true, never>;
|
|
16
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { FormGroup } from "@angular/forms";
|
|
2
|
-
import { LabelValue } from "../form-components";
|
|
3
|
-
export type InputType = "text" | "textarea";
|
|
4
|
-
export type InputContentType = "text" | "email" | "password" | "number";
|
|
5
|
-
export interface Dropdown<T = unknown> {
|
|
6
|
-
id?: string;
|
|
7
|
-
keyValue: T;
|
|
8
|
-
label: string;
|
|
9
|
-
hidden?: boolean;
|
|
10
|
-
disabled?: boolean;
|
|
11
|
-
}
|
|
12
|
-
export interface InputsMapData {
|
|
13
|
-
label: string;
|
|
14
|
-
rowSize?: "half" | "full";
|
|
15
|
-
fieldType: FormFieldTypeEnum;
|
|
16
|
-
inputId?: string;
|
|
17
|
-
dateRange?: DateRangeInterface;
|
|
18
|
-
isTimeOnly?: boolean;
|
|
19
|
-
showIcon?: boolean;
|
|
20
|
-
selectButtonOptions?: LabelValue<any>[];
|
|
21
|
-
}
|
|
22
|
-
export interface InputsMap {
|
|
23
|
-
[key: string]: InputsMapData;
|
|
24
|
-
}
|
|
25
|
-
export interface DynamicFormData {
|
|
26
|
-
isActive?: boolean;
|
|
27
|
-
formGroup: FormGroup | null;
|
|
28
|
-
inputsMap: InputsMap | null;
|
|
29
|
-
title?: string;
|
|
30
|
-
isReadOnlyForm?: boolean;
|
|
31
|
-
formValidationErrorsKeys?: string[];
|
|
32
|
-
}
|
|
33
|
-
export interface DateRangeInterface {
|
|
34
|
-
min?: Date | null;
|
|
35
|
-
max?: Date | null;
|
|
36
|
-
notBeforeDateInput?: string;
|
|
37
|
-
notAfterDateInput?: string;
|
|
38
|
-
notBeforeOrSameDateInput?: string;
|
|
39
|
-
notAfterOrSameDateInput?: string;
|
|
40
|
-
}
|
|
41
|
-
export declare enum FormFieldTypeEnum {
|
|
42
|
-
DATE_PICKER = "date-picker",
|
|
43
|
-
SELECT_BUTTON = "select-button"
|
|
44
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export declare enum BasicErrorKeysEnum {
|
|
2
|
-
required = "REQUIRED",
|
|
3
|
-
email = "EMAIL",
|
|
4
|
-
pattern = "PATTERN",
|
|
5
|
-
invalidArFormat = "INVALID_AR_FORMAT",
|
|
6
|
-
invalidLink = "INVALID_LINK",
|
|
7
|
-
endDateBeforeStartDate = "END_DATE_BEFORE_START_DATE",
|
|
8
|
-
startDateEqualsEndDate = "START_DATE_EQUALS_END_DATE",
|
|
9
|
-
endTimeBeforeStartTime = "END_TIME_BEFORE_START_TIME",
|
|
10
|
-
startTimeEqualsEndTime = "START_TIME_EQUALS_END_TIME",
|
|
11
|
-
integer = "INTEGER",
|
|
12
|
-
positiveNumber = "POSITIVE_NUMBER",
|
|
13
|
-
fileSelected = "FILE_SELECTED",
|
|
14
|
-
default = "DEFAULT"
|
|
15
|
-
}
|
|
16
|
-
export declare enum ErrorsWithValuesKeysEnum {
|
|
17
|
-
minlength = "MIN_LENGTH",
|
|
18
|
-
maxlength = "MAX_LENGTH",
|
|
19
|
-
min = "MIN",
|
|
20
|
-
max = "MAX",
|
|
21
|
-
maxSize = "MAX_SIZE",
|
|
22
|
-
maxFiles = "MAX_FILES",
|
|
23
|
-
allowedTypes = "ALLOWED_TYPES"
|
|
24
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class FormValidationService {
|
|
3
|
-
private translate;
|
|
4
|
-
private getTranslation;
|
|
5
|
-
getErrorMessage(errorKey: string, errorValue: any): string;
|
|
6
|
-
private isBasicErrorKey;
|
|
7
|
-
private isErrorWithValueKey;
|
|
8
|
-
private getErrorWithValueMessage;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormValidationService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FormValidationService>;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from "@angular/core";
|
|
2
|
-
import { ValidationErrors } from "@angular/forms";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ValidationErrorsPipe implements PipeTransform {
|
|
5
|
-
private formValidationService;
|
|
6
|
-
transform(errors: ValidationErrors | null, allowedKeys?: string[]): string[];
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorsPipe, never>;
|
|
8
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<ValidationErrorsPipe, "validationErrors", true>;
|
|
9
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
|
-
import { AutoCompleteCompleteEvent, AutoCompleteSelectEvent } from "primeng/autocomplete";
|
|
3
|
-
import { BaseInputComponent } from "../base-input.component";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class AutoCompleteComponent extends BaseInputComponent {
|
|
6
|
-
selectedItemTemplate: TemplateRef<unknown> | null;
|
|
7
|
-
onSearch: EventEmitter<string>;
|
|
8
|
-
selectOption: EventEmitter<AutoCompleteSelectEvent>;
|
|
9
|
-
items: any[];
|
|
10
|
-
minLengthToSearch: number;
|
|
11
|
-
delay: number;
|
|
12
|
-
basicInput: boolean;
|
|
13
|
-
constructor();
|
|
14
|
-
search(event: AutoCompleteCompleteEvent): void;
|
|
15
|
-
onSelect(event: AutoCompleteSelectEvent): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "stc-auto-complete", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "items": { "alias": "items"; "required": false; }; "minLengthToSearch": { "alias": "minLengthToSearch"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; }, { "onSearch": "onSearch"; "selectOption": "selectOption"; }, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from "@angular/core";
|
|
2
|
-
import { FormControl } from "@angular/forms";
|
|
3
|
-
import { Subject } from "rxjs";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare abstract class BaseInputComponent implements OnInit, OnDestroy {
|
|
6
|
-
control: FormControl;
|
|
7
|
-
name: string;
|
|
8
|
-
label?: string;
|
|
9
|
-
placeholder: string;
|
|
10
|
-
inputId: string;
|
|
11
|
-
readonly: boolean;
|
|
12
|
-
disabled: boolean;
|
|
13
|
-
hint?: string;
|
|
14
|
-
protected destroy$: Subject<void>;
|
|
15
|
-
get required(): boolean;
|
|
16
|
-
get isInvalid(): boolean;
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
ngOnDestroy(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseInputComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseInputComponent, "ng-component", never, { "control": { "alias": "control"; "required": true; }; "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, never, false, never>;
|
|
21
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { BaseInputComponent } from "../base-input.component";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DatePickerComponent extends BaseInputComponent {
|
|
5
|
-
showIcon: boolean;
|
|
6
|
-
showClear: boolean;
|
|
7
|
-
basicInput: boolean;
|
|
8
|
-
isTimeOnly: boolean;
|
|
9
|
-
minDate: Date | undefined | null;
|
|
10
|
-
maxDate: Date | undefined | null;
|
|
11
|
-
hourFormat: "12" | "24";
|
|
12
|
-
nowTime: Date;
|
|
13
|
-
selectionMode: "single" | "range";
|
|
14
|
-
onAfterClearDate: EventEmitter<void>;
|
|
15
|
-
constructor();
|
|
16
|
-
selectCurrentTime(e: any): void;
|
|
17
|
-
clearButtonClick(e: any): void;
|
|
18
|
-
afterClearDate(): void;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "stc-date-picker", never, { "showIcon": { "alias": "showIcon"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "isTimeOnly": { "alias": "isTimeOnly"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "hourFormat": { "alias": "hourFormat"; "required": false; }; "selectionMode": { "alias": "selectionMode"; "required": false; }; }, { "onAfterClearDate": "onAfterClearDate"; }, never, never, true, never>;
|
|
21
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BaseInputComponent } from "../base-input.component";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class InputComponent extends BaseInputComponent {
|
|
4
|
-
type: "text" | "textarea";
|
|
5
|
-
contentType: "text" | "email" | "number";
|
|
6
|
-
prefix: string;
|
|
7
|
-
rows: number;
|
|
8
|
-
cols: number;
|
|
9
|
-
autoResize: boolean;
|
|
10
|
-
basicInput: boolean;
|
|
11
|
-
noStyle: boolean;
|
|
12
|
-
hideOptionalLabel: boolean;
|
|
13
|
-
inputDirection: "ltr" | "rtl" | "inherit";
|
|
14
|
-
constructor();
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "stc-input", never, { "type": { "alias": "type"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; "noStyle": { "alias": "noStyle"; "required": false; }; "hideOptionalLabel": { "alias": "hideOptionalLabel"; "required": false; }; "inputDirection": { "alias": "inputDirection"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
-
import { SelectChangeEvent } from "primeng/select";
|
|
3
|
-
import { BaseInputComponent } from "../base-input.component";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SelectComponent extends BaseInputComponent {
|
|
6
|
-
selectedItemTemplate: TemplateRef<unknown> | null;
|
|
7
|
-
optionTemplate: TemplateRef<unknown> | null;
|
|
8
|
-
options: unknown[];
|
|
9
|
-
optionLabel: string;
|
|
10
|
-
checkmark: boolean;
|
|
11
|
-
showClear: boolean;
|
|
12
|
-
editable: boolean;
|
|
13
|
-
filter: boolean;
|
|
14
|
-
multiple: boolean;
|
|
15
|
-
filterBy: string;
|
|
16
|
-
selectedItemsLabel: string;
|
|
17
|
-
basicInput: boolean;
|
|
18
|
-
change: EventEmitter<any>;
|
|
19
|
-
constructor();
|
|
20
|
-
onChange(e: SelectChangeEvent): void;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "stc-select", never, { "selectedItemTemplate": { "alias": "selectedItemTemplate"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "checkmark": { "alias": "checkmark"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "filterBy": { "alias": "filterBy"; "required": false; }; "selectedItemsLabel": { "alias": "selectedItemsLabel"; "required": false; }; "basicInput": { "alias": "basicInput"; "required": false; }; }, { "change": "change"; }, never, never, true, never>;
|
|
23
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import { SelectButtonChangeEvent } from 'primeng/selectbutton';
|
|
3
|
-
import { BaseInputComponent } from "../base-input.component";
|
|
4
|
-
import { LabelValue } from "../../interfaces";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class SelectButtonComponent extends BaseInputComponent {
|
|
7
|
-
onChange: EventEmitter<any>;
|
|
8
|
-
options: LabelValue<any>[];
|
|
9
|
-
title: string;
|
|
10
|
-
changeValue(e: SelectButtonChangeEvent): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SelectButtonComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SelectButtonComponent, "stc-select-button", never, { "options": { "alias": "options"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from "@angular/core";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class SwitchComponent {
|
|
4
|
-
label: string;
|
|
5
|
-
key: string;
|
|
6
|
-
checked: boolean;
|
|
7
|
-
onChange: EventEmitter<string>;
|
|
8
|
-
sendUpdatedValue(value: any): void;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SwitchComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SwitchComponent, "stc-switch", never, { "label": { "alias": "label"; "required": false; }; "key": { "alias": "key"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
|
|
11
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from "./components/input/input.component";
|
|
2
|
-
export * from "./components/select/select.component";
|
|
3
|
-
export * from "./components/date-picker/date-picker.component";
|
|
4
|
-
export * from "./components/auto-complete/auto-complete.component";
|
|
5
|
-
export * from "./components/select-button/select-button.component";
|
|
6
|
-
export * from "./components/switcher/switch.component";
|
|
7
|
-
export * from "./@utils/form-utils";
|
|
8
|
-
export * from "./@utils/validations";
|
|
9
|
-
export * from "./interfaces";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./label-value";
|