@morozeckiy/dd-lib 0.4.26 → 0.5.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/esm2022/lib/core/directives/ban-symbol.directive.mjs +36 -0
- package/esm2022/lib/core/directives/max-num.directive.mjs +56 -0
- package/esm2022/lib/lib-calendar/lib-calendar.component.mjs +25 -5
- package/esm2022/lib/lib-date-range/lib-date-range.component.mjs +2 -2
- package/esm2022/lib/lib-period/lib-period.component.mjs +2 -2
- package/fesm2022/morozeckiy-dd-lib.mjs +109 -5
- package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
- package/lib/core/directives/ban-symbol.directive.d.ts +9 -0
- package/lib/core/directives/max-num.directive.d.ts +12 -0
- package/lib/lib-calendar/lib-calendar.component.d.ts +6 -1
- package/morozeckiy-dd-lib-0.5.0.tgz +0 -0
- package/package.json +1 -1
- package/morozeckiy-dd-lib-0.4.26.tgz +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class BanSymbolDirective {
|
|
3
|
+
ddBanSymbol: string;
|
|
4
|
+
regExp: boolean;
|
|
5
|
+
constructor();
|
|
6
|
+
onKeyPress(e: KeyboardEvent): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BanSymbolDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BanSymbolDirective, "[ddBanSymbol]", never, { "ddBanSymbol": { "alias": "ddBanSymbol"; "required": false; }; "regExp": { "alias": "regExp"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NgModel } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MaxNumDirective {
|
|
4
|
+
model: NgModel;
|
|
5
|
+
ddMaxNum: number;
|
|
6
|
+
curVal: string | number;
|
|
7
|
+
constructor(model: NgModel);
|
|
8
|
+
keydown(e: KeyboardEvent): void;
|
|
9
|
+
keyup(e: KeyboardEvent): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaxNumDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxNumDirective, "[ddMaxNum]", never, { "ddMaxNum": { "alias": "ddMaxNum"; "required": false; }; "curVal": { "alias": "curVal"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -46,6 +46,9 @@ export declare class LibCalendarComponent implements ControlValueAccessor, OnIni
|
|
|
46
46
|
formatDate: string;
|
|
47
47
|
formatTime: string | undefined;
|
|
48
48
|
rangeMode: boolean;
|
|
49
|
+
maxHours: number;
|
|
50
|
+
maxMinutes: number;
|
|
51
|
+
needTime: boolean;
|
|
49
52
|
mode: 'icon' | 'full';
|
|
50
53
|
emitDate: EventEmitter<Date | undefined>;
|
|
51
54
|
emitPeriod: EventEmitter<IDatePeriod | undefined>;
|
|
@@ -66,6 +69,8 @@ export declare class LibCalendarComponent implements ControlValueAccessor, OnIni
|
|
|
66
69
|
dateNow: Date;
|
|
67
70
|
onTouchedCallback: (() => void) | undefined;
|
|
68
71
|
showCalendar: boolean | undefined;
|
|
72
|
+
hours: string;
|
|
73
|
+
minutes: string;
|
|
69
74
|
constructor(dateService: DateService);
|
|
70
75
|
propagateChange(_value: Date | IDatePeriod): void;
|
|
71
76
|
ngOnInit(): void;
|
|
@@ -82,5 +87,5 @@ export declare class LibCalendarComponent implements ControlValueAccessor, OnIni
|
|
|
82
87
|
canselDate(): void;
|
|
83
88
|
checkActiveDay(day: number): boolean;
|
|
84
89
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibCalendarComponent, never>;
|
|
85
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LibCalendarComponent, "dd-lib-calendar", never, { "type": { "alias": "type"; "required": false; }; "formatDate": { "alias": "formatDate"; "required": false; }; "formatTime": { "alias": "formatTime"; "required": false; }; "rangeMode": { "alias": "rangeMode"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; }, { "emitDate": "emitDate"; "emitPeriod": "emitPeriod"; }, never, never, true, never>;
|
|
90
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LibCalendarComponent, "dd-lib-calendar", never, { "type": { "alias": "type"; "required": false; }; "formatDate": { "alias": "formatDate"; "required": false; }; "formatTime": { "alias": "formatTime"; "required": false; }; "rangeMode": { "alias": "rangeMode"; "required": false; }; "maxHours": { "alias": "maxHours"; "required": false; }; "maxMinutes": { "alias": "maxMinutes"; "required": false; }; "needTime": { "alias": "needTime"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; }, { "emitDate": "emitDate"; "emitPeriod": "emitPeriod"; }, never, never, true, never>;
|
|
86
91
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|