@corp-products/ui-components 3.2.8 → 3.3.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/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from 'primeng/button';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { TemplateRef, OnInit, EventEmitter, PipeTransform, OnDestroy, Type, EnvironmentInjector, ApplicationRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { TemplateRef, OnInit, EventEmitter, PipeTransform, OnDestroy, Type, EnvironmentInjector, ApplicationRef, ViewContainerRef, ElementRef } from '@angular/core';
|
|
4
4
|
import { Params, Router, ActivatedRoute } from '@angular/router';
|
|
5
5
|
import { DynamicDialogRef, DialogService, DynamicDialogConfig } from 'primeng/dynamicdialog';
|
|
6
6
|
import { FormGroup, FormControl, ValidationErrors, AbstractControl } from '@angular/forms';
|
|
@@ -10,6 +10,8 @@ import { Subject, Observable } from 'rxjs';
|
|
|
10
10
|
import { SelectButtonChangeEvent } from 'primeng/selectbutton';
|
|
11
11
|
import { SelectChangeEvent } from 'primeng/select';
|
|
12
12
|
import { MenuItem } from 'primeng/api';
|
|
13
|
+
import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
14
|
+
import moment from 'moment-hijri';
|
|
13
15
|
|
|
14
16
|
type AppButtonSeverity = 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast';
|
|
15
17
|
type AppButtonSize = 'large' | 'small';
|
|
@@ -365,7 +367,8 @@ declare enum FormFieldTypeEnum {
|
|
|
365
367
|
INPUT = "input",
|
|
366
368
|
SELECT = "select",
|
|
367
369
|
SWITCH = "switch",
|
|
368
|
-
AUTO_COMPLETE = "auto-complete"
|
|
370
|
+
AUTO_COMPLETE = "auto-complete",
|
|
371
|
+
HIJRI_DATE_PICKER = "hijri-date"
|
|
369
372
|
}
|
|
370
373
|
|
|
371
374
|
declare class ConfirmationDialogComponent extends DynamicDialogRef implements OnInit, OnDestroy {
|
|
@@ -621,5 +624,28 @@ declare class DynamicSidebarV2Service {
|
|
|
621
624
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicSidebarV2Service>;
|
|
622
625
|
}
|
|
623
626
|
|
|
624
|
-
|
|
627
|
+
declare class DualCalendarComponent {
|
|
628
|
+
selectedDate: string;
|
|
629
|
+
control: FormControl<any>;
|
|
630
|
+
mode: 'gregorian' | 'hijri';
|
|
631
|
+
gregorianModel: NgbDateStruct;
|
|
632
|
+
hijriModel: NgbDateStruct;
|
|
633
|
+
currentLang: 'ar' | 'en';
|
|
634
|
+
selectButtonChange: EventEmitter<{
|
|
635
|
+
name: string;
|
|
636
|
+
value: any;
|
|
637
|
+
}>;
|
|
638
|
+
isCalendarOpen: boolean;
|
|
639
|
+
calendarContainer: ElementRef;
|
|
640
|
+
constructor();
|
|
641
|
+
onDocumentClick(event: MouseEvent): void;
|
|
642
|
+
onSelectGregorian(date: NgbDateStruct): void;
|
|
643
|
+
onSelectHijri(date: NgbDateStruct): void;
|
|
644
|
+
showCalender(isOpen: boolean): void;
|
|
645
|
+
formatHijri(m: moment.Moment): string;
|
|
646
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DualCalendarComponent, never>;
|
|
647
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DualCalendarComponent, "app-dual-calendar", never, { "control": { "alias": "control"; "required": false; }; }, { "selectButtonChange": "selectButtonChange"; }, never, never, true, never>;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
export { AppAccordionComponent, AppBreadcrumbComponent, AppButtonComponent, AppDropdownMenuComponent, AppTabsComponent, AutoCompleteComponent, BasicErrorKeysEnum, BottomSheetComponent, ConfirmationDialogComponent, ConfirmationDialogService, DatePickerComponent, DualCalendarComponent, DynamicFormComponent, DynamicSidebarService, DynamicSidebarV2Service, ErrorsWithValuesKeysEnum, FormFieldTypeEnum, FormUtils, FormValidationService, IcoMoonIconComponent, InputComponent, ReadMoreComponent, SelectButtonComponent, SelectComponent, SideBarComponent, SidebarConfigDefaults, SwitchComponent, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe };
|
|
625
651
|
export type { AppButtonIconPos, AppButtonSeverity, AppButtonSize, AppButtonVariant, AppTabs, BreadCrumbExtraData, BreadCrumbPosition, BreadcrumbItem, ConfirmationDialogData, DateRangeInterface, Dropdown, DropdownMenuItem, DropdownTextColor, DynamicFormData, DynamicSidebarV2Actions, DynamicSidebarV2Config, InputContentType, InputType, InputsMap, InputsMapData, LabelValue, RoutedTab, SidebarActionConfig, SidebarActionV2Config, SidebarConfig, SidebarV2Actions, TemplateTab };
|