@wizishop/angular-components 14.3.23 → 14.3.24
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/angular-components.scss +75 -75
- package/esm2020/lib/components/calendar/calendar.component.mjs +90 -116
- package/esm2020/lib/directives/keyboard-events/only-numbers.directive.mjs +45 -0
- package/esm2020/lib/directives/shared-directives.module.mjs +30 -3
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/wizishop-angular-components.mjs +178 -139
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +178 -139
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/calendar/calendar.component.d.ts +22 -23
- package/lib/directives/keyboard-events/only-numbers.directive.d.ts +8 -0
- package/lib/directives/shared-directives.module.d.ts +4 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-14.3.24.tgz +0 -0
- package/wizishop-angular-components-14.3.23.tgz +0 -0
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DatePipe } from '@angular/common';
|
|
2
|
+
import { EventEmitter, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
|
|
2
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
4
|
import { NwbDatePickerEvent, NwbDatePickerOptions } from '@wizishop/ng-wizi-bulma';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class CalendarComponent implements
|
|
6
|
+
export declare class CalendarComponent implements OnChanges, ControlValueAccessor {
|
|
7
|
+
private datePipe;
|
|
8
|
+
minutes: ElementRef;
|
|
9
|
+
hours: ElementRef;
|
|
6
10
|
label: string | null;
|
|
7
11
|
type: 'input' | 'edit' | 'select';
|
|
8
12
|
options: NwbDatePickerOptions;
|
|
9
13
|
position: string;
|
|
10
|
-
_dateSelected: Date;
|
|
11
14
|
set dateSelected(dateSelected: Date);
|
|
12
15
|
get dateSelected(): Date;
|
|
16
|
+
_dateSelected: Date;
|
|
13
17
|
dateSelectedChange: EventEmitter<any>;
|
|
14
18
|
typeDate: 'datetime' | 'datetime-local' | 'date';
|
|
15
19
|
noMargin: boolean;
|
|
@@ -21,36 +25,31 @@ export declare class CalendarComponent implements OnInit, OnChanges, ControlValu
|
|
|
21
25
|
open: boolean;
|
|
22
26
|
startLabel: string;
|
|
23
27
|
endLabel: string;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
set calendarMinutes(calendarMinutes: string);
|
|
29
|
+
get calendarMinutes(): string;
|
|
30
|
+
set calendarHours(calendarHours: string);
|
|
31
|
+
get calendarHours(): string;
|
|
32
|
+
constructor(datePipe: DatePipe);
|
|
29
33
|
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
-
writeValue(date: Date): void;
|
|
31
|
-
registerOnChange(fn: any): void;
|
|
32
|
-
registerOnTouched(fn: any): void;
|
|
33
|
-
setDisabledState(isDisabled: boolean): void;
|
|
34
34
|
onChangeDate(selectedDates: NwbDatePickerEvent): void;
|
|
35
|
-
private
|
|
35
|
+
private triggerDateSelectedChange;
|
|
36
36
|
triggerChange(event: {
|
|
37
37
|
startDate: Date;
|
|
38
38
|
endDate: Date;
|
|
39
39
|
}): void;
|
|
40
40
|
openCalendar(value?: any): void;
|
|
41
|
-
private setCalendarDate;
|
|
42
|
-
private typeDateChange;
|
|
43
41
|
private setCalendarLabel;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
addMinutes(target: any): void;
|
|
50
|
-
removeMinutes(target: any): void;
|
|
51
|
-
private getDateData;
|
|
42
|
+
incrementMinutes(): void;
|
|
43
|
+
decrementsMinutes(): void;
|
|
44
|
+
incrementHours(): void;
|
|
45
|
+
decrementHours(): void;
|
|
46
|
+
private formatTime;
|
|
52
47
|
onChange: (value: Date) => void;
|
|
53
48
|
onTouch: () => void;
|
|
49
|
+
writeValue(date: Date): void;
|
|
50
|
+
registerOnChange(fn: any): void;
|
|
51
|
+
registerOnTouched(fn: any): void;
|
|
52
|
+
setDisabledState(isDisabled: boolean): void;
|
|
54
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalendarComponent, never>;
|
|
55
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<CalendarComponent, "wac-calendar", never, { "label": "label"; "type": "type"; "options": "options"; "position": "position"; "dateSelected": "dateSelected"; "typeDate": "typeDate"; "noMargin": "noMargin"; "disabled": "disabled"; }, { "dateSelectedChange": "dateSelectedChange"; "changeData": "changeData"; }, never, never, false>;
|
|
56
55
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class OnlyNumberDirective {
|
|
3
|
+
constructor();
|
|
4
|
+
wacOnlyNumber: boolean;
|
|
5
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumberDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumberDirective, "[wacOnlyNumber]", never, { "wacOnlyNumber": "wacOnlyNumber"; }, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -7,10 +7,11 @@ import * as i5 from "./ng-var.directive";
|
|
|
7
7
|
import * as i6 from "./keyboard-events/keypress-enter.directive";
|
|
8
8
|
import * as i7 from "../components/selects/option/select-option.directive";
|
|
9
9
|
import * as i8 from "../components/selects/select-test/select.directive";
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "@angular/
|
|
10
|
+
import * as i9 from "./keyboard-events/only-numbers.directive";
|
|
11
|
+
import * as i10 from "@angular/common";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
12
13
|
export declare class SharedDirectives {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDirectives, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectives, [typeof i1.DebounceKeyupDirective, typeof i2.AbstractDebounceDirective, typeof i3.AutoHideDirective, typeof i4.ZindexToggleDirective, typeof i5.VarDirective, typeof i6.KeypressEnterDirective, typeof i7.SelectOptionDirective, typeof i8.SelectDirective], [typeof
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectives, [typeof i1.DebounceKeyupDirective, typeof i2.AbstractDebounceDirective, typeof i3.AutoHideDirective, typeof i4.ZindexToggleDirective, typeof i5.VarDirective, typeof i6.KeypressEnterDirective, typeof i7.SelectOptionDirective, typeof i8.SelectDirective, typeof i9.OnlyNumberDirective], [typeof i10.CommonModule, typeof i11.FormsModule], [typeof i1.DebounceKeyupDirective, typeof i2.AbstractDebounceDirective, typeof i3.AutoHideDirective, typeof i4.ZindexToggleDirective, typeof i5.VarDirective, typeof i6.KeypressEnterDirective, typeof i7.SelectOptionDirective, typeof i8.SelectDirective, typeof i9.OnlyNumberDirective]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedDirectives>;
|
|
16
17
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export * from './lib/directives/abstract-debounce/debounce-keyup.directive';
|
|
|
53
53
|
export * from './lib/directives/abstract-debounce/abstract-debounce.directive';
|
|
54
54
|
export * from './lib/directives/auto-hide/auto-hide.directive';
|
|
55
55
|
export * from './lib/directives/zindex-toggle/zindex-toggle.directive';
|
|
56
|
+
export * from './lib/directives/keyboard-events/only-numbers.directive';
|
|
56
57
|
export * from './lib/directives/ng-var.directive';
|
|
57
58
|
export * from './lib/utils/html-container.class';
|
|
58
59
|
export * from './lib/components/selects/call-to-action.model';
|
|
Binary file
|
|
Binary file
|