nira-falcon 1.0.6 → 1.0.7

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.
@@ -8,6 +8,7 @@ export declare class CoreCheckboxComponent {
8
8
  onChange: EventEmitter<any>;
9
9
  inputFormControl: FormControl;
10
10
  change(event: any): void;
11
+ handleKey(event: KeyboardEvent): void;
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreCheckboxComponent, never>;
12
13
  static ɵcmp: i0.ɵɵComponentDeclaration<CoreCheckboxComponent, "core-checkbox", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "inputFormControl": { "alias": "inputFormControl"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
13
14
  }
@@ -13,6 +13,7 @@ export declare class CoreDatePickerComponent implements OnInit {
13
13
  date: string;
14
14
  constructor(changeDetectorRef: ChangeDetectorRef);
15
15
  ngOnInit(): void;
16
+ onInput(event: any): void;
16
17
  ngAfterViewInit(): void;
17
18
  onDatePickerResult(result: string): void;
18
19
  onTodayDate(todayDate: string): void;
@@ -23,6 +23,7 @@ export declare class CoreRadioButtonsComponent<T> {
23
23
  changeItemsType(items: any[]): MenuItem<T>[];
24
24
  init(): void;
25
25
  onItemClick(item: MenuItem<T> | undefined): void;
26
+ handleKey(event: KeyboardEvent): void;
26
27
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreRadioButtonsComponent<any>, never>;
27
28
  static ɵcmp: i0.ɵɵComponentDeclaration<CoreRadioButtonsComponent<any>, "core-radio-buttons", never, { "items": { "alias": "items"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": true; }; "titleKey": { "alias": "titleKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "name": { "alias": "name"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
28
29
  }
@@ -9,6 +9,7 @@ export declare class CoreSelectComponent<T> {
9
9
  private cdr;
10
10
  private elRef;
11
11
  selectedItem: MenuItem<T>;
12
+ focusItem: MenuItem<T> | undefined;
12
13
  titleKeyObject: keyof string | number;
13
14
  valueKeyObject: keyof string | number;
14
15
  newItems: MenuItem<T>[];
@@ -33,9 +34,7 @@ export declare class CoreSelectComponent<T> {
33
34
  changeItemsType(items: any[]): MenuItem<T>[];
34
35
  openMenuClick(canFocus: boolean): void;
35
36
  handleKey(event: KeyboardEvent): void;
36
- dropdownItemKeypress(event: any, item: any): void;
37
37
  onItemSelect(selectedItem: MenuItem<T> | undefined, isFromUi: boolean): void;
38
- onEnterPress(e: any): void;
39
38
  focusOut(event: FocusEvent): void;
40
39
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreSelectComponent<any>, never>;
41
40
  static ɵcmp: i0.ɵɵComponentDeclaration<CoreSelectComponent<any>, "core-select", never, { "titleKey": { "alias": "titleKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "size": { "alias": "size"; "required": false; }; "canHighlightBackground": { "alias": "canHighlightBackground"; "required": false; }; "items": { "alias": "items"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputFormControl": { "alias": "inputFormControl"; "required": false; }; }, { "onItemSelected": "onItemSelected"; }, never, never, false, never>;
@@ -4,15 +4,17 @@ import { BehaviorSubject } from 'rxjs';
4
4
  import { MenuItem } from '../falconTypes';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CoreSelectSearchComponent<T> {
7
- private elementRef;
7
+ private elRef;
8
8
  selectedItem: MenuItem<T>;
9
+ focusItem: MenuItem<T> | undefined;
9
10
  titleKeyObject: keyof string | number;
10
11
  valueKeyObject: keyof string | number;
11
12
  newItems: MenuItem<T>[];
12
13
  isOpenMenu: boolean;
13
14
  _items: any;
14
15
  keys: string[];
15
- searchText: string;
16
+ searchText: T;
17
+ currentItemIndex: number;
16
18
  _defaultValue: T;
17
19
  titleKey: string;
18
20
  valueKey: string;
@@ -27,15 +29,19 @@ export declare class CoreSelectSearchComponent<T> {
27
29
  onItemSelected: EventEmitter<any>;
28
30
  inputFormControl: FormControl;
29
31
  filteredItems: BehaviorSubject<any[]>;
30
- constructor(elementRef: ElementRef);
32
+ inputElement: ElementRef<HTMLInputElement>;
33
+ constructor(elRef: ElementRef);
31
34
  init(): void;
32
35
  ngOnInit(): void;
36
+ handleKey(event: KeyboardEvent): void;
37
+ itemSelect(selectedItem: MenuItem<T> | undefined, isFromUi: boolean): void;
38
+ onItemSelect(event: Event, selectedItem: MenuItem<T> | undefined, isFromUi: boolean): void;
33
39
  changeItemsType(items: any[]): MenuItem<T>[];
34
- changeSearchText(): Promise<void>;
40
+ onChangeText(): Promise<void>;
41
+ setInputFocus(): void;
35
42
  openMenuClick(): void;
36
- onItemSelect(selectedItem: MenuItem<T> | undefined, isFromUi: boolean): void;
43
+ private scrollToActive;
37
44
  focusOut(event: FocusEvent): void;
38
- clearText(): void;
39
45
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreSelectSearchComponent<any>, never>;
40
46
  static ɵcmp: i0.ɵɵComponentDeclaration<CoreSelectSearchComponent<any>, "core-select-search", never, { "titleKey": { "alias": "titleKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "size": { "alias": "size"; "required": false; }; "searchKeys": { "alias": "searchKeys"; "required": false; }; "canAddValueKeyAndTitleKeyInSearchKeys": { "alias": "canAddValueKeyAndTitleKeyInSearchKeys"; "required": false; }; "canHighlightBackground": { "alias": "canHighlightBackground"; "required": false; }; "items": { "alias": "items"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "label": { "alias": "label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "inputFormControl": { "alias": "inputFormControl"; "required": false; }; }, { "onItemSelected": "onItemSelected"; }, never, never, false, never>;
41
47
  }
@@ -11,6 +11,7 @@ export declare class CoreSwitchComponent {
11
11
  label: string;
12
12
  set defaultValue(value: string);
13
13
  change(): void;
14
+ handleKey(event: KeyboardEvent): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreSwitchComponent, never>;
15
16
  static ɵcmp: i0.ɵɵComponentDeclaration<CoreSwitchComponent, "core-switch", never, { "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; }, { "value": "value"; }, never, never, false, never>;
16
17
  }
@@ -62,12 +62,13 @@ import * as i60 from "./core-table/core-row-pelak/core-row-pelak.component";
62
62
  import * as i61 from "./core-table/core-table-detail-viewer-for-report/core-table-detail-viewer-for-report.component";
63
63
  import * as i62 from "../svg-icon/calendar-icon/calendar-icon.component";
64
64
  import * as i63 from "../svg-icon/arrow-down-icon/arrow-down-icon.component";
65
- import * as i64 from "@angular/common";
66
- import * as i65 from "@angular/forms";
67
- import * as i66 from "nira-snack-bar";
68
- import * as i67 from "nira-date-picker";
65
+ import * as i64 from "../svg-icon/calendar-today-icon/calendar-today-icon.component";
66
+ import * as i65 from "@angular/common";
67
+ import * as i66 from "@angular/forms";
68
+ import * as i67 from "nira-snack-bar";
69
+ import * as i68 from "nira-date-picker";
69
70
  export declare class FalconLibModule {
70
71
  static ɵfac: i0.ɵɵFactoryDeclaration<FalconLibModule, never>;
71
- static ɵmod: i0.ɵɵNgModuleDeclaration<FalconLibModule, [typeof i1.CoreAutoCompleteComponent, typeof i2.CoreBtnComponent, typeof i3.CoreSearchBoxComponent, typeof i4.CoreTableColorColumnComponent, typeof i5.CoreCheckboxComponent, typeof i6.CoreDatePickerComponent, typeof i7.CoreConfirmDialogComponent, typeof i8.CoreInputComponent, typeof i9.CorePageTitleComponent, typeof i10.CoreRadioButtonsComponent, typeof i3.CoreSearchBoxComponent, typeof i11.CoreCardComponent, typeof i12.CoreSelectSearchComponent, typeof i13.CoreSelectComponent, typeof i14.CoreSpinnerComponent, typeof i15.CoreSwitchComponent, typeof i16.CoreColumnDatePickerComponent, typeof i17.CoreColumnInputComponent, typeof i18.CoreColumnSelectorComponent, typeof i19.CoreTableComponent, typeof i20.CoreTableActionButtonsColumnComponent, typeof i21.CoreTableActionColumnComponent, typeof i22.CoreTableCardManagerComponent, typeof i23.CoreTableColumnManagerComponent, typeof i24.CoreTableFilterDialogComponent, typeof i25.CoreTableTextColumnComponent, typeof i26.CoreTableNumberColumnComponent, typeof i27.CoreTableSelectorColumnComponent, typeof i28.CoreTableNoContentComponent, typeof i29.CoreTableRowSelectorColumnComponent, typeof i30.CoreTableShamsiDateComponent, typeof i31.CoreTableDateComponent, typeof i32.CoreTableStatusColumnComponent, typeof i33.TimePickerModalComponent, typeof i34.CoreTextareaComponent, typeof i35.CoreTimePickerComponent, typeof i36.CoreNumberComponent, typeof i37.PersianDigitsPipe, typeof i38.FormControlPipe, typeof i39.DigitGroupPipe, typeof i40.PriceFormatPipe, typeof i41.TimeFormatPipe, typeof i42.ShamsiDatePipe, typeof i43.WeightPipe, typeof i44.SearchIconComponent, typeof i45.CheckIconComponent, typeof i46.CloseIconComponent, typeof i47.WarningIconComponent, typeof i48.EditSquareIconComponent, typeof i49.SortDownIconComponent, typeof i50.CaretUpIconComponent, typeof i51.TimeIconComponent, typeof i52.SortSolidIconComponent, typeof i53.SortUpIconComponent, typeof i54.PelakIconComponent, typeof i55.CoreMultiSelectComponent, typeof i56.CoreMultiSelectRowComponent, typeof i57.TableDetailViewerManagerDirective, typeof i58.DetailViewerManagerDirective, typeof i59.CoreTableStatusActiveColumnComponent, typeof i60.CoreRowPelakComponent, typeof i61.CoreTableDetailViewerForReportComponent, typeof i62.CalendarIconComponent, typeof i63.ArrowDownIconComponent], [typeof i64.CommonModule, typeof i65.ReactiveFormsModule, typeof i65.FormsModule, typeof i66.NiraSnackBarModule, typeof i67.NiraDatePickerModule], [typeof i1.CoreAutoCompleteComponent, typeof i11.CoreCardComponent, typeof i5.CoreCheckboxComponent, typeof i6.CoreDatePickerComponent, typeof i9.CorePageTitleComponent, typeof i12.CoreSelectSearchComponent, typeof i13.CoreSelectComponent, typeof i10.CoreRadioButtonsComponent, typeof i8.CoreInputComponent, typeof i14.CoreSpinnerComponent, typeof i15.CoreSwitchComponent, typeof i55.CoreMultiSelectComponent, typeof i19.CoreTableComponent, typeof i2.CoreBtnComponent, typeof i35.CoreTimePickerComponent, typeof i36.CoreNumberComponent, typeof i7.CoreConfirmDialogComponent, typeof i37.PersianDigitsPipe, typeof i3.CoreSearchBoxComponent, typeof i38.FormControlPipe, typeof i39.DigitGroupPipe, typeof i40.PriceFormatPipe, typeof i42.ShamsiDatePipe, typeof i41.TimeFormatPipe, typeof i43.WeightPipe]>;
72
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FalconLibModule, [typeof i1.CoreAutoCompleteComponent, typeof i2.CoreBtnComponent, typeof i3.CoreSearchBoxComponent, typeof i4.CoreTableColorColumnComponent, typeof i5.CoreCheckboxComponent, typeof i6.CoreDatePickerComponent, typeof i7.CoreConfirmDialogComponent, typeof i8.CoreInputComponent, typeof i9.CorePageTitleComponent, typeof i10.CoreRadioButtonsComponent, typeof i3.CoreSearchBoxComponent, typeof i11.CoreCardComponent, typeof i12.CoreSelectSearchComponent, typeof i13.CoreSelectComponent, typeof i14.CoreSpinnerComponent, typeof i15.CoreSwitchComponent, typeof i16.CoreColumnDatePickerComponent, typeof i17.CoreColumnInputComponent, typeof i18.CoreColumnSelectorComponent, typeof i19.CoreTableComponent, typeof i20.CoreTableActionButtonsColumnComponent, typeof i21.CoreTableActionColumnComponent, typeof i22.CoreTableCardManagerComponent, typeof i23.CoreTableColumnManagerComponent, typeof i24.CoreTableFilterDialogComponent, typeof i25.CoreTableTextColumnComponent, typeof i26.CoreTableNumberColumnComponent, typeof i27.CoreTableSelectorColumnComponent, typeof i28.CoreTableNoContentComponent, typeof i29.CoreTableRowSelectorColumnComponent, typeof i30.CoreTableShamsiDateComponent, typeof i31.CoreTableDateComponent, typeof i32.CoreTableStatusColumnComponent, typeof i33.TimePickerModalComponent, typeof i34.CoreTextareaComponent, typeof i35.CoreTimePickerComponent, typeof i36.CoreNumberComponent, typeof i37.PersianDigitsPipe, typeof i38.FormControlPipe, typeof i39.DigitGroupPipe, typeof i40.PriceFormatPipe, typeof i41.TimeFormatPipe, typeof i42.ShamsiDatePipe, typeof i43.WeightPipe, typeof i44.SearchIconComponent, typeof i45.CheckIconComponent, typeof i46.CloseIconComponent, typeof i47.WarningIconComponent, typeof i48.EditSquareIconComponent, typeof i49.SortDownIconComponent, typeof i50.CaretUpIconComponent, typeof i51.TimeIconComponent, typeof i52.SortSolidIconComponent, typeof i53.SortUpIconComponent, typeof i54.PelakIconComponent, typeof i55.CoreMultiSelectComponent, typeof i56.CoreMultiSelectRowComponent, typeof i57.TableDetailViewerManagerDirective, typeof i58.DetailViewerManagerDirective, typeof i59.CoreTableStatusActiveColumnComponent, typeof i60.CoreRowPelakComponent, typeof i61.CoreTableDetailViewerForReportComponent, typeof i62.CalendarIconComponent, typeof i63.ArrowDownIconComponent, typeof i64.CalendarTodayIconComponent], [typeof i65.CommonModule, typeof i66.ReactiveFormsModule, typeof i66.FormsModule, typeof i67.NiraSnackBarModule, typeof i68.NiraDatePickerModule], [typeof i1.CoreAutoCompleteComponent, typeof i11.CoreCardComponent, typeof i5.CoreCheckboxComponent, typeof i6.CoreDatePickerComponent, typeof i9.CorePageTitleComponent, typeof i12.CoreSelectSearchComponent, typeof i13.CoreSelectComponent, typeof i10.CoreRadioButtonsComponent, typeof i8.CoreInputComponent, typeof i14.CoreSpinnerComponent, typeof i15.CoreSwitchComponent, typeof i55.CoreMultiSelectComponent, typeof i19.CoreTableComponent, typeof i2.CoreBtnComponent, typeof i35.CoreTimePickerComponent, typeof i36.CoreNumberComponent, typeof i7.CoreConfirmDialogComponent, typeof i37.PersianDigitsPipe, typeof i3.CoreSearchBoxComponent, typeof i38.FormControlPipe, typeof i39.DigitGroupPipe, typeof i40.PriceFormatPipe, typeof i42.ShamsiDatePipe, typeof i41.TimeFormatPipe, typeof i43.WeightPipe]>;
72
73
  static ɵinj: i0.ɵɵInjectorDeclaration<FalconLibModule>;
73
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nira-falcon",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0",
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class CalendarTodayIconComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<CalendarTodayIconComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<CalendarTodayIconComponent, "calendar-today-icon", never, {}, {}, never, never, false, never>;
5
+ }