@corp-products/ui-components 3.3.0 → 3.3.3

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
@@ -10,8 +10,7 @@ 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
+ import { NgbDateStruct, NgbCalendarIslamicUmalqura, NgbDate } from '@ng-bootstrap/ng-bootstrap';
15
14
 
16
15
  type AppButtonSeverity = 'success' | 'info' | 'warn' | 'danger' | 'help' | 'primary' | 'secondary' | 'contrast';
17
16
  type AppButtonSize = 'large' | 'small';
@@ -301,6 +300,8 @@ interface Dropdown<T = unknown> {
301
300
  id?: string;
302
301
  keyValue: T;
303
302
  label: string;
303
+ labelAr?: string;
304
+ labelEn?: string;
304
305
  icon?: string;
305
306
  hidden?: boolean;
306
307
  disabled?: boolean;
@@ -627,25 +628,41 @@ declare class DynamicSidebarV2Service {
627
628
  declare class DualCalendarComponent {
628
629
  selectedDate: string;
629
630
  control: FormControl<any>;
631
+ label: string;
630
632
  mode: 'gregorian' | 'hijri';
631
633
  gregorianModel: NgbDateStruct;
632
634
  hijriModel: NgbDateStruct;
633
635
  currentLang: 'ar' | 'en';
634
- selectButtonChange: EventEmitter<{
635
- name: string;
636
- value: any;
637
- }>;
636
+ gregorianUTC: EventEmitter<string>;
638
637
  isCalendarOpen: boolean;
639
638
  calendarContainer: ElementRef;
639
+ hijriCal: NgbCalendarIslamicUmalqura;
640
640
  constructor();
641
641
  onDocumentClick(event: MouseEvent): void;
642
+ private structToNgbDate;
642
643
  onSelectGregorian(date: NgbDateStruct): void;
643
644
  onSelectHijri(date: NgbDateStruct): void;
644
645
  showCalender(isOpen: boolean): void;
645
- formatHijri(m: moment.Moment): string;
646
+ formatHijri(h: NgbDate): string;
646
647
  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 };
648
+ static ɵcmp: i0.ɵɵComponentDeclaration<DualCalendarComponent, "app-dual-calendar", never, { "control": { "alias": "control"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, { "gregorianUTC": "gregorianUTC"; }, never, never, true, never>;
649
+ }
650
+
651
+ declare const WEEKDAYS: {
652
+ ar: string[];
653
+ en: string[];
654
+ };
655
+ declare const MONTHS_GREGORIAN: {
656
+ ar: string[];
657
+ en: string[];
658
+ };
659
+ declare const MONTHS_HIJRI: {
660
+ ar: string[];
661
+ en: string[];
662
+ };
663
+ declare function getGregorianMonthName(lang: 'ar' | 'en', month: number): string;
664
+ declare function getHijriMonthName(lang: 'ar' | 'en', month: number): string;
665
+ declare function getWeekdayName(lang: 'ar' | 'en', weekday: number): string;
666
+
667
+ export { AppAccordionComponent, AppBreadcrumbComponent, AppButtonComponent, AppDropdownMenuComponent, AppTabsComponent, AutoCompleteComponent, BasicErrorKeysEnum, BottomSheetComponent, ConfirmationDialogComponent, ConfirmationDialogService, DatePickerComponent, DualCalendarComponent, DynamicFormComponent, DynamicSidebarService, DynamicSidebarV2Service, ErrorsWithValuesKeysEnum, FormFieldTypeEnum, FormUtils, FormValidationService, IcoMoonIconComponent, InputComponent, MONTHS_GREGORIAN, MONTHS_HIJRI, ReadMoreComponent, SelectButtonComponent, SelectComponent, SideBarComponent, SidebarConfigDefaults, SwitchComponent, UserAutocompleteCardComponent, UserInfoComponent, ValidationErrorsPipe, WEEKDAYS, getGregorianMonthName, getHijriMonthName, getWeekdayName };
651
668
  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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corp-products/ui-components",
3
- "version": "3.3.0",
3
+ "version": "3.3.3",
4
4
  "author": "shireen Omar",
5
5
  "description": "shared UI components across our apps",
6
6
  "peerDependencies": {