nira-falcon 0.0.4 → 0.0.6

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.
@@ -6,12 +6,21 @@ export declare class CoreInputComponent {
6
6
  inputType: InputType;
7
7
  isDisable: boolean;
8
8
  set type(value: InputType);
9
+ canShowWordifyFa: boolean;
10
+ canSplitNumber: boolean;
11
+ canHighlightBackground: boolean;
12
+ maxLength: number;
9
13
  inputFormControl: FormControl;
10
14
  set disable(value: boolean);
11
15
  placeholder: string;
12
16
  onChange: EventEmitter<string>;
13
- change(): void;
17
+ onBlurEmit: EventEmitter<string>;
18
+ change(event: any): void;
19
+ onPaste(event: any): void;
20
+ onBlur(): void;
21
+ onKeyPress(): boolean;
22
+ formatPrice(event: any): void;
14
23
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreInputComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<CoreInputComponent, "core-input", never, { "type": { "alias": "type"; "required": false; }; "inputFormControl": { "alias": "inputFormControl"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "onChange": "onChange"; }, never, never, false, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoreInputComponent, "core-input", never, { "type": { "alias": "type"; "required": false; }; "canShowWordifyFa": { "alias": "canShowWordifyFa"; "required": false; }; "canSplitNumber": { "alias": "canSplitNumber"; "required": false; }; "canHighlightBackground": { "alias": "canHighlightBackground"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "inputFormControl": { "alias": "inputFormControl"; "required": false; }; "disable": { "alias": "disable"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "onChange": "onChange"; "onBlurEmit": "onBlurEmit"; }, never, never, false, never>;
16
25
  }
17
26
  export {};
@@ -8,33 +8,29 @@ type MenuItem<T> = {
8
8
  export declare class CoreSelectComponent<T> {
9
9
  private cdr;
10
10
  selectedItem: MenuItem<T>;
11
+ titleKeyObject: keyof string | number;
12
+ valueKeyObject: keyof string | number;
11
13
  newItems: MenuItem<T>[];
12
14
  isOpenMenu: boolean;
13
15
  _items: any;
14
- _defaultValue: undefined;
15
- _titleKey: T;
16
- _valueKey: T;
17
- initCounter: number;
18
- hasTitleKey: boolean;
19
- hasValueKey: boolean;
20
- hasItems: boolean;
21
- hasDefaultValue: boolean;
22
- set titleKey(data: T);
23
- set valueKey(data: T);
16
+ _defaultValue: T;
17
+ titleKey: string;
18
+ valueKey: string;
19
+ canHighlightBackground: boolean;
24
20
  set items(data: any);
25
- set defaultValue(data: any);
21
+ set defaultValue(data: T);
26
22
  label: string;
27
23
  disabled: boolean;
28
24
  onItemSelected: EventEmitter<any>;
29
25
  inputFormControl: FormControl;
30
26
  constructor(cdr: ChangeDetectorRef);
31
27
  init(): void;
32
- ngAfterViewInit(): void;
28
+ ngOnInit(): void;
33
29
  changeItemsType(items: any[]): MenuItem<T>[];
34
30
  openMenuClick(): void;
35
- onItemSelect(selectedItem: MenuItem<T>, isFromUi: boolean): void;
31
+ onItemSelect(selectedItem: MenuItem<T> | undefined, isFromUi: boolean): void;
36
32
  focusOut(): void;
37
33
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreSelectComponent<any>, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<CoreSelectComponent<any>, "core-select", never, { "titleKey": { "alias": "titleKey"; "required": true; }; "valueKey": { "alias": "valueKey"; "required": true; }; "items": { "alias": "items"; "required": true; }; "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>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoreSelectComponent<any>, "core-select", never, { "titleKey": { "alias": "titleKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "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>;
39
35
  }
40
36
  export {};
@@ -8,6 +8,7 @@ export declare class CoreTimePickerComponent {
8
8
  onBlurEmit: EventEmitter<string>;
9
9
  placeholder: string;
10
10
  canHighlightBackground: boolean;
11
+ setCurrentTime: boolean;
11
12
  inputFormControl: FormControl;
12
13
  selectedTime: string;
13
14
  set defaultValue(data: string);
@@ -21,5 +22,5 @@ export declare class CoreTimePickerComponent {
21
22
  onBlur(): void;
22
23
  onKeyPress(): boolean;
23
24
  static ɵfac: i0.ɵɵFactoryDeclaration<CoreTimePickerComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<CoreTimePickerComponent, "core-time-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "canHighlightBackground": { "alias": "canHighlightBackground"; "required": false; }; "inputFormControl": { "alias": "inputFormControl"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; }, { "onSelect": "onSelect"; "onBlurEmit": "onBlurEmit"; }, never, never, false, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoreTimePickerComponent, "core-time-picker", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "canHighlightBackground": { "alias": "canHighlightBackground"; "required": false; }; "setCurrentTime": { "alias": "setCurrentTime"; "required": false; }; "inputFormControl": { "alias": "inputFormControl"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; }, { "onSelect": "onSelect"; "onBlurEmit": "onBlurEmit"; }, never, never, false, never>;
25
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nira-falcon",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9mYWxjb24tbGliL3NyYy91dGlscy90eXBlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHR5cGUgVGhlbWVQYWxldHRlID0gJ3NxdWFyZScgfCAncm91bmQnO1xyXG5leHBvcnQgdHlwZSBDb2xvclN0YXRlID1cclxuICB8ICdkZWZhdWx0J1xyXG4gIHwgJ3ByaW1hcnknXHJcbiAgfCAnc3VjY2VzcydcclxuICB8ICd3YXJuaW5nJ1xyXG4gIHwgJ2Rhbmdlcic7XHJcblxyXG5leHBvcnQgdHlwZSBCdXR0b25UeXBlID0gJ2J1dHRvbic7XHJcblxyXG5leHBvcnQgdHlwZSBMYXlvdXRSYWRpb0J1dHRvbnMgPSAncm93JyB8ICdjb2x1bW4nO1xyXG5cclxuZXhwb3J0IHR5cGUgSW5wdXRUeXBlID0gJ251bWJlcicgfCAncGFzc3dvcmQnIHwgJ3RleHQnO1xyXG5cclxuZXhwb3J0IHR5cGUgTWVudUl0ZW08VD4gPSB7XHJcbiAgdGl0bGU6IFQ7XHJcbiAgdmFsdWU6IFQ7XHJcbn07XHJcblxyXG5leHBvcnQgdHlwZSBCdXR0b25TaXplID0gJ3NtYWxsJyB8ICdtZWRpdW0nO1xyXG4iXX0=
package/utils/types.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export type ThemePalette = 'square' | 'round';
2
- export type ColorState = 'default' | 'primary' | 'success' | 'warning' | 'danger';
3
- export type ButtonType = 'button';
4
- export type LayoutRadioButtons = 'row' | 'column';
5
- export type InputType = 'number' | 'password' | 'text';
6
- export type MenuItem<T> = {
7
- title: T;
8
- value: T;
9
- };
10
- export type ButtonSize = 'small' | 'medium';