@corp-products/ui-components 3.6.1 → 3.6.2
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/fesm2022/corp-products-ui-components.mjs +2267 -0
- package/fesm2022/corp-products-ui-components.mjs.map +1 -0
- package/index.d.ts +724 -0
- package/package.json +36 -22
- package/ng-package.json +0 -7
- package/src/enums/date-formatter.ts +0 -22
- package/src/helper/date-handler.ts +0 -142
- package/src/lib/alert-dialog/alert-dialog.component.html +0 -22
- package/src/lib/alert-dialog/alert-dialog.component.scss +0 -0
- package/src/lib/alert-dialog/alert-dialog.component.spec.ts +0 -22
- package/src/lib/alert-dialog/alert-dialog.component.ts +0 -44
- package/src/lib/alert-dialog/alert-dialog.interface.ts +0 -6
- package/src/lib/alert-dialog/alert-dialog.service.ts +0 -33
- package/src/lib/app-accordion/app-accordion.component.html +0 -15
- package/src/lib/app-accordion/app-accordion.component.scss +0 -0
- package/src/lib/app-accordion/app-accordion.component.spec.ts +0 -21
- package/src/lib/app-accordion/app-accordion.component.ts +0 -21
- package/src/lib/app-accordion/index.ts +0 -2
- package/src/lib/app-breadcrumb/app-breadcrumb.component.html +0 -7
- package/src/lib/app-breadcrumb/app-breadcrumb.component.scss +0 -25
- package/src/lib/app-breadcrumb/app-breadcrumb.component.ts +0 -140
- package/src/lib/app-breadcrumb/app-breadcrumb.interface.ts +0 -15
- package/src/lib/app-button/app-button.component.html +0 -7
- package/src/lib/app-button/app-button.component.scss +0 -0
- package/src/lib/app-button/app-button.component.ts +0 -14
- package/src/lib/app-button/app-button.ts +0 -15
- package/src/lib/app-button/index.ts +0 -2
- package/src/lib/app-dropdown-menu/app-dropdown-menu.component.html +0 -22
- package/src/lib/app-dropdown-menu/app-dropdown-menu.component.scss +0 -39
- package/src/lib/app-dropdown-menu/app-dropdown-menu.component.spec.ts +0 -21
- package/src/lib/app-dropdown-menu/app-dropdown-menu.component.ts +0 -43
- package/src/lib/app-dropdown-menu/app-dropdown-menu.ts +0 -17
- package/src/lib/app-dropdown-menu/index.ts +0 -2
- package/src/lib/app-dropdown-menu/menu-popup.pipe.ts +0 -18
- package/src/lib/app-header/app-header.component.html +0 -26
- package/src/lib/app-header/app-header.component.scss +0 -0
- package/src/lib/app-header/app-header.component.ts +0 -43
- package/src/lib/app-side-menu/app-side-menu.component.html +0 -20
- package/src/lib/app-side-menu/app-side-menu.component.ts +0 -28
- package/src/lib/app-side-menu/routes-names.ts +0 -28
- package/src/lib/app-side-menu/side-menu-items.ts +0 -45
- package/src/lib/app-side-menu/side-menu.ts +0 -12
- package/src/lib/app-tabs/app-tab.interface.ts +0 -27
- package/src/lib/app-tabs/app-tabs.component.html +0 -37
- package/src/lib/app-tabs/app-tabs.component.scss +0 -103
- package/src/lib/app-tabs/app-tabs.component.spec.ts +0 -21
- package/src/lib/app-tabs/app-tabs.component.ts +0 -67
- package/src/lib/app-tabs/index.ts +0 -2
- package/src/lib/bottom-sheet/bottom-sheet.component.html +0 -18
- package/src/lib/bottom-sheet/bottom-sheet.component.scss +0 -31
- package/src/lib/bottom-sheet/bottom-sheet.component.ts +0 -26
- package/src/lib/confirmation-dialog/confirmation-dialog.component.html +0 -37
- package/src/lib/confirmation-dialog/confirmation-dialog.component.scss +0 -0
- package/src/lib/confirmation-dialog/confirmation-dialog.component.spec.ts +0 -22
- package/src/lib/confirmation-dialog/confirmation-dialog.component.ts +0 -64
- package/src/lib/confirmation-dialog/confirmation-dialog.interface.ts +0 -13
- package/src/lib/confirmation-dialog/confirmation-dialog.service.ts +0 -34
- package/src/lib/dual-calender/date-picker-switcher/date-picker-switcher.component.html +0 -27
- package/src/lib/dual-calender/date-picker-switcher/date-picker-switcher.component.scss +0 -22
- package/src/lib/dual-calender/date-picker-switcher/date-picker-switcher.component.ts +0 -64
- package/src/lib/dual-calender/dual-calendar.component.html +0 -32
- package/src/lib/dual-calender/dual-calendar.component.scss +0 -265
- package/src/lib/dual-calender/dual-calendar.component.ts +0 -158
- package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.html +0 -21
- package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.scss +0 -0
- package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.spec.ts +0 -21
- package/src/lib/dual-calender/gregorian-calendar/gregorian-calendar.component.ts +0 -65
- package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.html +0 -10
- package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.scss +0 -0
- package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.spec.ts +0 -21
- package/src/lib/dual-calender/hijri-calendar/hijri-calendar.component.ts +0 -66
- package/src/lib/dual-calender/services/gregorian-i18n.service.ts +0 -123
- package/src/lib/dual-calender/services/islamic-i18n.service.ts +0 -119
- package/src/lib/dual-calender/utils/date-i18n.utils.ts +0 -58
- package/src/lib/dynamic-form/dynamic-form.component.html +0 -84
- package/src/lib/dynamic-form/dynamic-form.component.scss +0 -0
- package/src/lib/dynamic-form/dynamic-form.component.spec.ts +0 -21
- package/src/lib/dynamic-form/dynamic-form.component.ts +0 -58
- package/src/lib/dynamic-form/dynamic-form.interface.ts +0 -96
- package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.component.html +0 -32
- package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.component.scss +0 -3
- package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.component.ts +0 -82
- package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.config.ts +0 -31
- package/src/lib/dynamic-side-bar-v2/dynamic-sidebar.service.ts +0 -41
- package/src/lib/form-components/@utils/form-utils.ts +0 -12
- package/src/lib/form-components/@utils/validations/error-keys.enum.ts +0 -25
- package/src/lib/form-components/@utils/validations/form-validation.service.ts +0 -68
- package/src/lib/form-components/@utils/validations/index.ts +0 -4
- package/src/lib/form-components/@utils/validations/numbers-only.validator.ts +0 -10
- package/src/lib/form-components/@utils/validations/validation-message.pipe.ts +0 -24
- package/src/lib/form-components/components/auto-complete/auto-complete.component.html +0 -35
- package/src/lib/form-components/components/auto-complete/auto-complete.component.scss +0 -12
- package/src/lib/form-components/components/auto-complete/auto-complete.component.spec.ts +0 -21
- package/src/lib/form-components/components/auto-complete/auto-complete.component.ts +0 -82
- package/src/lib/form-components/components/base-input.component.ts +0 -35
- package/src/lib/form-components/components/date-picker/date-picker.component.html +0 -40
- package/src/lib/form-components/components/date-picker/date-picker.component.scss +0 -32
- package/src/lib/form-components/components/date-picker/date-picker.component.spec.ts +0 -21
- package/src/lib/form-components/components/date-picker/date-picker.component.ts +0 -81
- package/src/lib/form-components/components/date-picker/date-picker.validator.ts +0 -38
- package/src/lib/form-components/components/input/input.component.html +0 -80
- package/src/lib/form-components/components/input/input.component.scss +0 -46
- package/src/lib/form-components/components/input/input.component.spec.ts +0 -21
- package/src/lib/form-components/components/input/input.component.ts +0 -56
- package/src/lib/form-components/components/select/select.component.html +0 -123
- package/src/lib/form-components/components/select/select.component.scss +0 -53
- package/src/lib/form-components/components/select/select.component.spec.ts +0 -21
- package/src/lib/form-components/components/select/select.component.ts +0 -87
- package/src/lib/form-components/components/select-button/select-button.component.html +0 -21
- package/src/lib/form-components/components/select-button/select-button.component.scss +0 -0
- package/src/lib/form-components/components/select-button/select-button.component.spec.ts +0 -21
- package/src/lib/form-components/components/select-button/select-button.component.ts +0 -22
- package/src/lib/form-components/components/switcher/switch.component.html +0 -5
- package/src/lib/form-components/components/switcher/switch.component.scss +0 -0
- package/src/lib/form-components/components/switcher/switch.component.spec.ts +0 -21
- package/src/lib/form-components/components/switcher/switch.component.ts +0 -25
- package/src/lib/form-components/index.ts +0 -9
- package/src/lib/form-components/interfaces/index.ts +0 -1
- package/src/lib/form-components/interfaces/label-value.ts +0 -4
- package/src/lib/ico-moon-icon/ico-moon-icon.component.ts +0 -23
- package/src/lib/read-more/read-more.component.html +0 -17
- package/src/lib/read-more/read-more.component.scss +0 -0
- package/src/lib/read-more/read-more.component.spec.ts +0 -21
- package/src/lib/read-more/read-more.component.ts +0 -21
- package/src/lib/side-bar/side-bar.component.html +0 -24
- package/src/lib/side-bar/side-bar.component.scss +0 -22
- package/src/lib/side-bar/side-bar.component.spec.ts +0 -21
- package/src/lib/side-bar/side-bar.component.ts +0 -33
- package/src/lib/side-bar-dynamic/data-injector.pipe.ts +0 -15
- package/src/lib/side-bar-dynamic/dynamic-sidebar.service.ts +0 -116
- package/src/lib/side-bar-dynamic/side-bar-dynamic.component.html +0 -42
- package/src/lib/side-bar-dynamic/side-bar-dynamic.component.scss +0 -5
- package/src/lib/side-bar-dynamic/side-bar-dynamic.component.spec.ts +0 -21
- package/src/lib/side-bar-dynamic/side-bar-dynamic.component.ts +0 -37
- package/src/lib/side-bar-dynamic/side-bar-utils.ts +0 -30
- package/src/lib/side-bar-dynamic/sidebar-config.ts +0 -48
- package/src/lib/user-autocomplete-card/user-autocomplete-card.component.html +0 -20
- package/src/lib/user-autocomplete-card/user-autocomplete-card.component.scss +0 -0
- package/src/lib/user-autocomplete-card/user-autocomplete-card.component.spec.ts +0 -21
- package/src/lib/user-autocomplete-card/user-autocomplete-card.component.ts +0 -21
- package/src/lib/user-info/user-info.component.html +0 -10
- package/src/lib/user-info/user-info.component.ts +0 -11
- package/src/public-api.ts +0 -29
- package/tsconfig.lib.json +0 -18
- package/tsconfig.lib.prod.json +0 -11
- package/tsconfig.spec.json +0 -14
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<p-drawer (onHide)="dynamicSidebarService.close()" [(visible)]="sidebarConfig.visible"
|
|
2
|
-
[closable]="sidebarConfig.closable" [closeOnEscape]="sidebarConfig.closeOnEscape"
|
|
3
|
-
[dismissible]="sidebarConfig.dismissible" [ngClass]="{ show: sidebarConfig.show }" [position]="'left'" appendTo="body"
|
|
4
|
-
id="main-drawer"
|
|
5
|
-
styleClass="p-drawer-{{ sidebarConfig.sidebarSize }} custom-content bg-white {{ sidebarConfig.styleClass }}">
|
|
6
|
-
<ng-template pTemplate="header">{{ sidebarConfig.title }}</ng-template>
|
|
7
|
-
<ng-template pTemplate="content">
|
|
8
|
-
<ng-container [ngComponentOutletInjector]="dynamicSidebarService.contentComponentData | dataInjector"
|
|
9
|
-
[ngComponentOutlet]="dynamicSidebarService.contentComponentRef"></ng-container>
|
|
10
|
-
</ng-template>
|
|
11
|
-
@if (sidebarConfig.showSaveBtn || sidebarConfig.showSaveAndMoreBtn || sidebarConfig.showCancelBtn) {
|
|
12
|
-
<ng-template pTemplate="footer">
|
|
13
|
-
<section class="flex justify-between bg-gray-200 py-4" id="sidebar-footer">
|
|
14
|
-
<div class="flex gap-2">
|
|
15
|
-
@if (sidebarConfig.showSaveBtn) {
|
|
16
|
-
<app-button (clickEmitter)="dynamicSidebarService.submit(true)"
|
|
17
|
-
[disabled]="dynamicSidebarService.isButtonDisabled()"
|
|
18
|
-
[icon]="sidebarConfig!.actions!.save!.icon || 'font-icon-plus'"
|
|
19
|
-
[iconPos]="sidebarConfig!.actions!.save!.iconPos || 'right'"
|
|
20
|
-
[styleClass]="sidebarConfig!.actions!.save!.style || 'danger'"
|
|
21
|
-
[title]="sidebarConfig!.actions!.save!.title || ('actions.save' | translate)"
|
|
22
|
-
[variant]="sidebarConfig!.actions!.save!.variant" />
|
|
23
|
-
}
|
|
24
|
-
@if (sidebarConfig.showSaveAndMoreBtn) {
|
|
25
|
-
<app-button (clickEmitter)="dynamicSidebarService.submit()"
|
|
26
|
-
[disabled]="dynamicSidebarService.isButtonDisabled()"
|
|
27
|
-
[icon]="sidebarConfig!.actions!.saveAndMore!.icon || 'font-icon-plus'"
|
|
28
|
-
[iconPos]="sidebarConfig!.actions!.saveAndMore!.iconPos || 'right'"
|
|
29
|
-
[styleClass]="sidebarConfig!.actions!.saveAndMore!.style || 'danger'"
|
|
30
|
-
[title]="sidebarConfig!.actions!.saveAndMore!.title || ('actions.save_and_and_more' | translate)"
|
|
31
|
-
[variant]="sidebarConfig!.actions!.saveAndMore!.variant" />
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
</div>
|
|
35
|
-
@if (sidebarConfig.showCancelBtn) {
|
|
36
|
-
<app-button (clickEmitter)="dynamicSidebarService.cancel()" [styleClass]="'secondary'"
|
|
37
|
-
[title]="'actions.cancel' | translate" />
|
|
38
|
-
}
|
|
39
|
-
</section>
|
|
40
|
-
</ng-template>
|
|
41
|
-
}
|
|
42
|
-
</p-drawer>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
import { DynamicSideBarComponent } from 'libs/ui-components/src/lib/dynamic-side-bar/dynamic-side-bar.component';
|
|
3
|
-
|
|
4
|
-
describe('SideBarComponent', () => {
|
|
5
|
-
let component: DynamicSideBarComponent;
|
|
6
|
-
let fixture: ComponentFixture<DynamicSideBarComponent>;
|
|
7
|
-
|
|
8
|
-
beforeEach(async () => {
|
|
9
|
-
await TestBed.configureTestingModule({
|
|
10
|
-
imports: [DynamicSideBarComponent],
|
|
11
|
-
}).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(DynamicSideBarComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import {NgClass, NgComponentOutlet} from "@angular/common";
|
|
2
|
-
import {Component, inject, Injector, OnDestroy, OnInit} from '@angular/core';
|
|
3
|
-
import {PrimeTemplate} from "primeng/api";
|
|
4
|
-
import {Drawer} from "primeng/drawer";
|
|
5
|
-
import { Location } from '@angular/common';
|
|
6
|
-
import {TranslatePipe} from "@ngx-translate/core";
|
|
7
|
-
import { DataInjectorPipe } from "./data-injector.pipe";
|
|
8
|
-
import { AppButtonComponent } from "../app-button";
|
|
9
|
-
import { DynamicSidebarService } from "./dynamic-sidebar.service";
|
|
10
|
-
import { createCustomInjector, SIDEBAR_DATA } from "./side-bar-utils";
|
|
11
|
-
@Component({
|
|
12
|
-
selector: "app-side-bar-dynamic",
|
|
13
|
-
templateUrl: "./side-bar-dynamic.component.html",
|
|
14
|
-
styleUrls: ["./side-bar-dynamic.component.scss"],
|
|
15
|
-
standalone: true,
|
|
16
|
-
imports: [Drawer, NgClass, NgComponentOutlet, PrimeTemplate, DataInjectorPipe, AppButtonComponent, TranslatePipe]
|
|
17
|
-
})
|
|
18
|
-
export class SideBarDynamicComponent implements OnInit, OnDestroy {
|
|
19
|
-
dynamicSidebarService = inject(DynamicSidebarService);
|
|
20
|
-
parentInjector = inject(Injector);
|
|
21
|
-
location = inject(Location);
|
|
22
|
-
private popStateListener: any;
|
|
23
|
-
sidebarConfig = this.dynamicSidebarService.sidebarConfig;
|
|
24
|
-
ngOnInit() {
|
|
25
|
-
//To close a sidebar when the browser back button is pressed
|
|
26
|
-
this.popStateListener = this.location.subscribe(() => {
|
|
27
|
-
if (this.dynamicSidebarService.sidebarConfig.visible) {
|
|
28
|
-
this.dynamicSidebarService.close();
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
ngOnDestroy() {
|
|
34
|
-
// reset Sidebar token
|
|
35
|
-
createCustomInjector(this.parentInjector, SIDEBAR_DATA, null);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {InjectionToken, Injector} from "@angular/core";
|
|
2
|
-
|
|
3
|
-
export const SIDEBAR_DATA = new InjectionToken<any>('SIDEBAR_DATA');
|
|
4
|
-
|
|
5
|
-
export function createCustomInjector(parentInjector: Injector, injectionToken: InjectionToken<unknown>, data: unknown): Injector {
|
|
6
|
-
return Injector.create({
|
|
7
|
-
parent: parentInjector,
|
|
8
|
-
providers: [
|
|
9
|
-
{
|
|
10
|
-
provide: injectionToken,
|
|
11
|
-
useValue: data ?? null
|
|
12
|
-
}
|
|
13
|
-
]
|
|
14
|
-
})
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
export enum SidebarActionType {
|
|
19
|
-
SAVE = 'SAVE',
|
|
20
|
-
SaveMore = 'SaveMore',
|
|
21
|
-
CANCEL = 'CANCEL',
|
|
22
|
-
SUBMIT = 'SUBMIT',
|
|
23
|
-
CLOSE = 'CLOSE',
|
|
24
|
-
CloseWithData = 'CloseWithData',
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface SidebarActionEvent {
|
|
28
|
-
type: SidebarActionType;
|
|
29
|
-
payload?: any;
|
|
30
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { AppButtonIconPos, AppButtonSeverity, AppButtonSize, AppButtonVariant } from "../app-button";
|
|
2
|
-
|
|
3
|
-
export interface SidebarActionConfig {
|
|
4
|
-
title?: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
size?: AppButtonSize;
|
|
7
|
-
style?: AppButtonSeverity;
|
|
8
|
-
iconPos?: AppButtonIconPos;
|
|
9
|
-
variant?: AppButtonVariant;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface SidebarConfig {
|
|
13
|
-
title: string;
|
|
14
|
-
show: boolean;
|
|
15
|
-
visible: boolean;
|
|
16
|
-
closable: boolean;
|
|
17
|
-
dismissible: boolean;
|
|
18
|
-
closeOnEscape: boolean;
|
|
19
|
-
sidebarSize: "sm" | "md" | "lg" | "xl";
|
|
20
|
-
styleClass?: string;
|
|
21
|
-
showCancelBtn: boolean;
|
|
22
|
-
showSaveBtn: boolean;
|
|
23
|
-
showSaveAndMoreBtn: boolean;
|
|
24
|
-
actions?: {
|
|
25
|
-
cancel?: SidebarActionConfig;
|
|
26
|
-
save?: SidebarActionConfig;
|
|
27
|
-
saveAndMore?: SidebarActionConfig;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export const SidebarConfigDefaults: SidebarConfig = {
|
|
32
|
-
title: "",
|
|
33
|
-
show: true,
|
|
34
|
-
visible: true,
|
|
35
|
-
closable: true,
|
|
36
|
-
dismissible: false,
|
|
37
|
-
closeOnEscape: false,
|
|
38
|
-
sidebarSize: "md",
|
|
39
|
-
showCancelBtn: false,
|
|
40
|
-
showSaveBtn: false,
|
|
41
|
-
showSaveAndMoreBtn: false,
|
|
42
|
-
actions: {
|
|
43
|
-
save: {},
|
|
44
|
-
saveAndMore: {
|
|
45
|
-
variant: "outlined"
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
<div class="flex gap-2 items-center justify-between p-4 rounded mb-4 border border-dotted border-gray-300 bg-gray-100">
|
|
2
|
-
<div class="flex gap-4 items-center">
|
|
3
|
-
<img [alt]="userData.name" [src]="userData.profileImage" class="rounded-full object-cover w-[48px] h-[48px]" />
|
|
4
|
-
<div class="flex flex-col justify-end">
|
|
5
|
-
<h4 class="font-bold text-[12px] text-gray-800 truncate max-w-[135px] dir-ltr">
|
|
6
|
-
{{ userData.name }}
|
|
7
|
-
</h4>
|
|
8
|
-
<p class="text-[12px] text-gray-700">{{ explicitRole ? explicitRole : userData.position.name }}</p>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="flex-1 flex flex-col items-end">
|
|
12
|
-
<p class="text-[12px] text-purple-700 truncate max-w-[90px] dir-ltr">{{ userData.email }}</p>
|
|
13
|
-
<p class="text-[12px] text-gray-600 dir-ltr">{{ userData.contact.mobile }}</p>
|
|
14
|
-
</div>
|
|
15
|
-
@if (showDeleteAction){
|
|
16
|
-
<div class="flex gap-1 flex-nowrap">
|
|
17
|
-
<app-button (clickEmitter)="onDelete()" [rounded]="true" [size]="'large'" [text]="true" icon="font-icon-trash"/>
|
|
18
|
-
</div>
|
|
19
|
-
}
|
|
20
|
-
</div>
|
|
File without changes
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from "@angular/core/testing";
|
|
2
|
-
import { BaseCardComponent } from "../base-card/base-card.component";
|
|
3
|
-
|
|
4
|
-
describe("BaseCardComponent", () => {
|
|
5
|
-
let component: BaseCardComponent;
|
|
6
|
-
let fixture: ComponentFixture<BaseCardComponent>;
|
|
7
|
-
|
|
8
|
-
beforeEach(async () => {
|
|
9
|
-
await TestBed.configureTestingModule({
|
|
10
|
-
imports: [BaseCardComponent]
|
|
11
|
-
}).compileComponents();
|
|
12
|
-
|
|
13
|
-
fixture = TestBed.createComponent(BaseCardComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it("should create", () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from "@angular/core";
|
|
2
|
-
import { AppButtonComponent } from "../app-button";
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: "app-user-autocomplete-card",
|
|
6
|
-
standalone: true,
|
|
7
|
-
imports: [AppButtonComponent],
|
|
8
|
-
templateUrl: "./user-autocomplete-card.component.html",
|
|
9
|
-
styleUrl: "./user-autocomplete-card.component.scss",
|
|
10
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
11
|
-
})
|
|
12
|
-
export class UserAutocompleteCardComponent {
|
|
13
|
-
@Output() select = new EventEmitter<any>();
|
|
14
|
-
@Output() delete = new EventEmitter<any>();
|
|
15
|
-
@Input({ required: true }) userData: any;
|
|
16
|
-
@Input() explicitRole = "";
|
|
17
|
-
@Input() showDeleteAction = true;
|
|
18
|
-
onDelete() {
|
|
19
|
-
this.delete.emit(this.userData);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from "@angular/core";
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: "user-info",
|
|
5
|
-
templateUrl: "./user-info.component.html",
|
|
6
|
-
standalone: true
|
|
7
|
-
})
|
|
8
|
-
export class UserInfoComponent {
|
|
9
|
-
@Input() profileImage: string;
|
|
10
|
-
@Input() name: string;
|
|
11
|
-
}
|
package/src/public-api.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export * from './lib/app-button';
|
|
2
|
-
export * from './lib/app-tabs';
|
|
3
|
-
export * from './lib/app-dropdown-menu';
|
|
4
|
-
export * from './lib/side-bar/side-bar.component';
|
|
5
|
-
export * from './lib/ico-moon-icon/ico-moon-icon.component';
|
|
6
|
-
export * from './lib/user-info/user-info.component';
|
|
7
|
-
export * from './lib/confirmation-dialog/confirmation-dialog.component';
|
|
8
|
-
export * from './lib/read-more/read-more.component';
|
|
9
|
-
export * from './lib/app-accordion/app-accordion.component';
|
|
10
|
-
export * from './lib/dynamic-form/dynamic-form.interface';
|
|
11
|
-
export * from './lib/dynamic-form/dynamic-form.component';
|
|
12
|
-
export * from './lib/form-components';
|
|
13
|
-
export * from './lib/user-autocomplete-card/user-autocomplete-card.component';
|
|
14
|
-
export * from './lib/app-breadcrumb/app-breadcrumb.component';
|
|
15
|
-
export * from './lib/app-breadcrumb/app-breadcrumb.interface';
|
|
16
|
-
export * from './lib/side-bar-dynamic/dynamic-sidebar.service';
|
|
17
|
-
export * from './lib/side-bar-dynamic/sidebar-config';
|
|
18
|
-
export * from './lib/confirmation-dialog/confirmation-dialog.service';
|
|
19
|
-
export * from './lib/confirmation-dialog/confirmation-dialog.interface';
|
|
20
|
-
export * from './lib/bottom-sheet/bottom-sheet.component';
|
|
21
|
-
export * from './lib/dynamic-side-bar-v2/dynamic-sidebar.service';
|
|
22
|
-
export * from './lib/dynamic-side-bar-v2/dynamic-sidebar.config';
|
|
23
|
-
export * from './lib/dual-calender/dual-calendar.component';
|
|
24
|
-
export * from './lib/dual-calender/utils/date-i18n.utils';
|
|
25
|
-
export * from './lib/alert-dialog/alert-dialog.component';
|
|
26
|
-
export * from './lib/alert-dialog/alert-dialog.service';
|
|
27
|
-
export * from './lib/alert-dialog/alert-dialog.interface';
|
|
28
|
-
export * from './lib/form-components/components/date-picker/date-picker.validator';
|
|
29
|
-
export * from './lib/form-components/@utils/validations/numbers-only.validator';
|
package/tsconfig.lib.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "../../tsconfig.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "../../out-tsc/lib",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"declarationMap": true,
|
|
9
|
-
"inlineSources": true,
|
|
10
|
-
"types": []
|
|
11
|
-
},
|
|
12
|
-
"include": [
|
|
13
|
-
"src/**/*.ts"
|
|
14
|
-
],
|
|
15
|
-
"exclude": [
|
|
16
|
-
"**/*.spec.ts"
|
|
17
|
-
]
|
|
18
|
-
}
|
package/tsconfig.lib.prod.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "./tsconfig.lib.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"declarationMap": false
|
|
7
|
-
},
|
|
8
|
-
"angularCompilerOptions": {
|
|
9
|
-
"compilationMode": "partial"
|
|
10
|
-
}
|
|
11
|
-
}
|
package/tsconfig.spec.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/* To learn more about Typescript configuration file: https://www.typescriptlang.org/docs/handbook/tsconfig-json.html. */
|
|
2
|
-
/* To learn more about Angular compiler options: https://angular.dev/reference/configs/angular-compiler-options. */
|
|
3
|
-
{
|
|
4
|
-
"extends": "../../tsconfig.json",
|
|
5
|
-
"compilerOptions": {
|
|
6
|
-
"outDir": "../../out-tsc/spec",
|
|
7
|
-
"types": [
|
|
8
|
-
"jasmine"
|
|
9
|
-
]
|
|
10
|
-
},
|
|
11
|
-
"include": [
|
|
12
|
-
"src/**/*.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|