@indigina/ui-kit 1.1.58 → 1.1.60

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.
@@ -1,7 +1,6 @@
1
1
  import { ElementRef, EventEmitter } from '@angular/core';
2
2
  import { KitSvgIcon } from '../kit-svg-icon/kit-svg-icon.const';
3
3
  import { ControlValueAccessor } from '@angular/forms';
4
- import { PreventableEvent } from '@progress/kendo-angular-common';
5
4
  import { PopupSettings } from '@progress/kendo-angular-dropdowns';
6
5
  import { DatePickerComponent } from '@progress/kendo-angular-dateinputs';
7
6
  import * as i0 from "@angular/core";
@@ -65,7 +64,6 @@ export declare class KitDatepickerComponent implements ControlValueAccessor {
65
64
  onValueChange(value: Date): void;
66
65
  onPopupToggle(): void;
67
66
  onBlur(): void;
68
- onClose(event: PreventableEvent): void;
69
67
  onChange: (value: Date) => void;
70
68
  onTouched: () => void;
71
69
  writeValue(value: string): void;
@@ -27,9 +27,9 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
27
27
  */
28
28
  messageText?: string;
29
29
  /**
30
- * Defines a state whether the component will be valid or not
30
+ * Defines a state whether the component will be invalid
31
31
  */
32
- isValid?: boolean;
32
+ invalid?: boolean;
33
33
  /**
34
34
  * Defines a value that is going to be applied as a datetimepicker format
35
35
  */
@@ -46,6 +46,14 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
46
46
  * Specifies the biggest valid date
47
47
  */
48
48
  max?: Date;
49
+ /**
50
+ * Defines the text of the Apply button in the popup footer of the component, "Apply" by default
51
+ */
52
+ applyButtonText: string;
53
+ /**
54
+ * Defines the text of the Cancel button in the popup footer of the component, "Cancel" by default
55
+ */
56
+ cancelButtonText: string;
49
57
  /**
50
58
  * An action which is emitted when datetimepicker value changed
51
59
  */
@@ -57,11 +65,12 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
57
65
  /**
58
66
  * An icon which will be used in a datetimepicker toggle button
59
67
  */
60
- icon: KitSvgIcon;
68
+ readonly icon: KitSvgIcon;
61
69
  /**
62
70
  * Settings for datetimepicker popup that will be opened
63
71
  */
64
72
  readonly datetimepickerPopupSettings: PopupSettings;
73
+ readonly nowButtonText: string;
65
74
  constructor(cdr: ChangeDetectorRef);
66
75
  /**
67
76
  * Function used to toggle visibility of the datetimepicker popup
@@ -71,10 +80,6 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
71
80
  * Function that is called when datetimepicker lost focus
72
81
  */
73
82
  onBlur(): void;
74
- /**
75
- * Function that is called when datetimepicker popup closes
76
- */
77
- onClose(): void;
78
83
  /**
79
84
  * Function that should be called every time datetimepicker value changes
80
85
  */
@@ -92,5 +97,5 @@ export declare class KitDatetimepickerComponent implements ControlValueAccessor
92
97
  registerOnTouched(fn: () => void): void;
93
98
  setDisabledState(disabled: boolean): void;
94
99
  static ɵfac: i0.ɵɵFactoryDeclaration<KitDatetimepickerComponent, never>;
95
- static ɵcmp: i0.ɵɵComponentDeclaration<KitDatetimepickerComponent, "kit-datetimepicker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "isValid": { "alias": "isValid"; "required": false; }; "format": { "alias": "format"; "required": false; }; "defaultDate": { "alias": "defaultDate"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
100
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitDatetimepickerComponent, "kit-datetimepicker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "format": { "alias": "format"; "required": false; }; "defaultDate": { "alias": "defaultDate"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "applyButtonText": { "alias": "applyButtonText"; "required": false; }; "cancelButtonText": { "alias": "cancelButtonText"; "required": false; }; }, { "changed": "changed"; }, never, never, false, never>;
96
101
  }
@@ -4,22 +4,74 @@ import { ControlValueAccessor } from '@angular/forms';
4
4
  import { PopupSettings } from '@progress/kendo-angular-dropdowns';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class KitTimepickerComponent implements ControlValueAccessor {
7
+ /**
8
+ * Defines a value that is going to be applied as a timepicker label
9
+ */
7
10
  label: string | null;
11
+ /**
12
+ * Defines a value that is going to be applied as a timepicker placeholder
13
+ */
8
14
  placeholder: string | null;
15
+ /**
16
+ * Defines a value that is going to be applied as a default timepicker value
17
+ */
9
18
  defaultValue: Date | null;
19
+ /**
20
+ * Defines whether 24-hour time format will be applied to timepicker component
21
+ */
10
22
  longFormatEnabled: boolean;
23
+ /**
24
+ * Defines whether the component will be in disabled state
25
+ */
11
26
  disabled: boolean;
12
- readonly: boolean;
27
+ /**
28
+ * Defines a state whether the component will be invalid
29
+ */
30
+ invalid: boolean;
31
+ /**
32
+ * Specifies the smallest valid time value
33
+ */
13
34
  min: Date | null;
35
+ /**
36
+ * Specifies the biggest valid time value
37
+ */
14
38
  max: Date | null;
39
+ /**
40
+ * Defines the text of the Apply button in the popup footer of the component, "Apply" by default
41
+ */
42
+ applyButtonText: string;
43
+ /**
44
+ * Defines the text of the Cancel button in the popup footer of the component, "Cancel" by default
45
+ */
46
+ cancelButtonText: string;
47
+ /**
48
+ * Defines an icon which will be used to the left of the info message
49
+ */
50
+ messageIcon?: KitSvgIcon;
51
+ /**
52
+ * Defines a value which going to be an info message text
53
+ */
54
+ messageText?: string;
55
+ /**
56
+ * An action which is emitted when timepicker popup opened
57
+ */
15
58
  popupOpened: EventEmitter<void>;
59
+ /**
60
+ * An action which is emitted when timepicker popup closed
61
+ */
16
62
  popupClosed: EventEmitter<void>;
63
+ /**
64
+ * An action which is emitted when timepicker value changed
65
+ */
17
66
  changed: EventEmitter<Date>;
67
+ /**
68
+ * An action which is emitted when timepicker input field lost focus
69
+ */
18
70
  blured: EventEmitter<void>;
19
71
  readonly KitSvgIcon: typeof KitSvgIcon;
20
72
  readonly longTimeFormat: string;
21
73
  readonly shortTimeFormat: string;
22
- readonly datetimepickerPopupSettings: PopupSettings;
74
+ readonly timepickerPopupSettings: PopupSettings;
23
75
  onChange(value: Date): void;
24
76
  onTouched(): void;
25
77
  onInputBlur(): void;
@@ -29,5 +81,5 @@ export declare class KitTimepickerComponent implements ControlValueAccessor {
29
81
  registerOnTouched(fn: () => void): void;
30
82
  setDisabledState(disabled: boolean): void;
31
83
  static ɵfac: i0.ɵɵFactoryDeclaration<KitTimepickerComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<KitTimepickerComponent, "kit-timepicker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "longFormatEnabled": { "alias": "longFormatEnabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, { "popupOpened": "popupOpened"; "popupClosed": "popupClosed"; "changed": "changed"; "blured": "blured"; }, never, never, false, never>;
84
+ static ɵcmp: i0.ɵɵComponentDeclaration<KitTimepickerComponent, "kit-timepicker", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "longFormatEnabled": { "alias": "longFormatEnabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "applyButtonText": { "alias": "applyButtonText"; "required": false; }; "cancelButtonText": { "alias": "cancelButtonText"; "required": false; }; "messageIcon": { "alias": "messageIcon"; "required": false; }; "messageText": { "alias": "messageText"; "required": false; }; }, { "popupOpened": "popupOpened"; "popupClosed": "popupClosed"; "changed": "changed"; "blured": "blured"; }, never, never, false, never>;
33
85
  }
@@ -3,8 +3,10 @@ import * as i1 from "./kit-timepicker.component";
3
3
  import * as i2 from "@progress/kendo-angular-dateinputs";
4
4
  import * as i3 from "@angular/common";
5
5
  import * as i4 from "../kit-svg-icon/kit-svg-icon.module";
6
+ import * as i5 from "../kit-input-label/kit-input-label.module";
7
+ import * as i6 from "projects/ui-kit/src/lib/components/kit-input-message/kit-input-message.module";
6
8
  export declare class KitTimepickerModule {
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<KitTimepickerModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KitTimepickerModule, [typeof i1.KitTimepickerComponent], [typeof i2.TimePickerModule, typeof i3.CommonModule, typeof i4.KitSvgIconModule], [typeof i1.KitTimepickerComponent]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KitTimepickerModule, [typeof i1.KitTimepickerComponent], [typeof i2.TimePickerModule, typeof i3.CommonModule, typeof i4.KitSvgIconModule, typeof i5.KitInputLabelModule, typeof i2.DateTimePickerModule, typeof i6.KitInputMessageModule], [typeof i1.KitTimepickerComponent]>;
9
11
  static ɵinj: i0.ɵɵInjectorDeclaration<KitTimepickerModule>;
10
12
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.58",
10
+ "version": "1.1.60",
11
11
  "peerDependencies": {
12
12
  "@angular/common": "^17.0.7",
13
13
  "@angular/core": "^17.0.7"