@morozeckiy/dd-lib 0.7.87 → 0.7.91

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.
@@ -3,9 +3,13 @@ import * as i0 from "@angular/core";
3
3
  export declare class ClickOutsideDirective {
4
4
  private el;
5
5
  elements: string[] | undefined;
6
+ ignoreOnDrag: boolean;
6
7
  ddClickOutside: EventEmitter<any>;
8
+ private isDragging;
7
9
  constructor(el: ElementRef);
10
+ onDragStart(): void;
11
+ onDragEnd(): void;
8
12
  onClick(targetElement: Event): void;
9
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[ddClickOutside]", never, { "elements": { "alias": "elements"; "required": false; }; }, { "ddClickOutside": "ddClickOutside"; }, never, never, true, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[ddClickOutside]", never, { "elements": { "alias": "elements"; "required": false; }; "ignoreOnDrag": { "alias": "ignoreOnDrag"; "required": false; }; }, { "ddClickOutside": "ddClickOutside"; }, never, never, true, never>;
11
15
  }
@@ -29,7 +29,8 @@ export interface IDaysInMonth {
29
29
  }
30
30
  export declare class DateService {
31
31
  private commonDateDataBy;
32
- private getDateBy;
32
+ getActiveTitle(name: PeriodName): string;
33
+ getDateBy: GetDateBy;
33
34
  getFormattedDate(dateType: keyof GetDateBy, f?: string): string;
34
35
  getPeriodMenuDate(dateType: DateTypes, f?: string): TimeDate & CommonDateData;
35
36
  getPeriodMenuDateRange(dateTypes: DateTypes[], f?: string): PeriodMenuDate[];
@@ -1,4 +1,4 @@
1
- import { AbstractControl, ValidationErrors } from '@angular/forms';
1
+ import { AbstractControl, ValidationErrors, Validators } from '@angular/forms';
2
2
  import { Observable } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class ValidatorsService {
@@ -10,7 +10,7 @@ export declare class ValidatorsService {
10
10
  static wrongLoginOrPswd(): ValidationErrors;
11
11
  static existLogin(): ValidationErrors;
12
12
  /** валидатор имени*/
13
- static getNameValid(): import("@angular/forms").ValidatorFn[];
13
+ static getNameValid(): (typeof Validators.required)[];
14
14
  /** валидатор email*/
15
15
  static getMailValid(el?: AbstractControl): Observable<ValidationErrors | null>;
16
16
  static getErrorText(error: ValidationErrors | null | undefined): string | undefined;
@@ -25,15 +25,19 @@ export declare class LibDateRangeComponent implements ControlValueAccessor, OnIn
25
25
  pressTab(e: KeyboardEvent): void;
26
26
  ngOnInit(): void;
27
27
  get startDateStr(): string;
28
- set startDateStr(value: string);
28
+ set startDateStr(value: string | undefined);
29
29
  get endDateStr(): string;
30
- set endDateStr(value: string);
30
+ set endDateStr(value: string | undefined);
31
31
  private formatDate;
32
32
  private parseDate;
33
33
  openCalendar(): void;
34
34
  closeCalendar(): void;
35
35
  setPeriod($event: IDatePeriod | undefined): void;
36
- changeStrDate($event: string): void;
36
+ dateInput(e: KeyboardEvent, period: 'start' | 'end'): void;
37
+ private handleStartDateInput;
38
+ private handleEndDateInput;
39
+ private handleInvalidDate;
40
+ private onPeriodChange;
37
41
  propagateChange(_value: IDatePeriod | undefined): void;
38
42
  registerOnChange(fn: any): void;
39
43
  registerOnTouched(fn: any): void;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morozeckiy/dd-lib",
3
- "version": "0.7.87",
3
+ "version": "0.7.91",
4
4
  "types": "./src/typings.d.ts",
5
5
  "repository": "https://gitlab.com/Morozeckiy/dd-lib",
6
6
  "publishConfig": {
package/public-api.d.ts CHANGED
@@ -13,7 +13,6 @@ export * from './lib/lib-file-upload/lib-file-upload.component';
13
13
  export * from './lib/lib-filter-button/lib-filter-button.component';
14
14
  export * from './lib/lib-image-loader/lib-image-loader.component';
15
15
  export * from './lib/lib-input/lib-input.component';
16
- export * from './lib/lib-period/lib-period.component';
17
16
  export * from './lib/lib-radio/lib-radio.component';
18
17
  export * from './lib/lib-search-input/lib-search-input.component';
19
18
  export * from './lib/lib-select/lib-select.component';
@@ -1,43 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { DateService, GetDateBy, PeriodMenuDate, PeriodName } from '../core';
4
- import * as i0 from "@angular/core";
5
- export declare class LibPeriodComponent implements OnInit, ControlValueAccessor {
6
- private dateService;
7
- private cdr;
8
- static idCounter: number;
9
- maxDate: Date | undefined;
10
- setPeriodDate: EventEmitter<{
11
- day?: string | undefined;
12
- week?: string | undefined;
13
- month?: string | undefined;
14
- month_3?: string | undefined;
15
- half_year?: string | undefined;
16
- year?: string | undefined;
17
- calendar?: string | undefined;
18
- } | null>;
19
- periodMenu: PeriodMenuDate[] | undefined;
20
- periodIsShown: boolean;
21
- calendarIsShown: boolean;
22
- periodIsSelected: boolean;
23
- calendarIsSelected: boolean;
24
- selectedPeriod: PeriodName | undefined;
25
- selectedDate: Date | undefined;
26
- idPeriod: string;
27
- idCalendar: string;
28
- periodName?: string | undefined;
29
- private onTouchedCallback;
30
- constructor(dateService: DateService, cdr: ChangeDetectorRef);
31
- ngOnInit(): void;
32
- registerOnChange(fn: any): void;
33
- registerOnTouched(fn: any): void;
34
- showPeriod(): void;
35
- clearPeriod(): void;
36
- selectPeriod(type: keyof GetDateBy): void;
37
- writeValue(value: any): void;
38
- selectDate($event: Date | undefined): void;
39
- clickOutside($event: boolean): void;
40
- private propagateChange;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<LibPeriodComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<LibPeriodComponent, "dd-lib-period", never, { "maxDate": { "alias": "maxDate"; "required": false; }; }, { "setPeriodDate": "setPeriodDate"; }, never, never, true, never>;
43
- }
Binary file