You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+44-33Lines changed: 44 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,34 +61,19 @@ All notable changes for each version of this project will be documented in this
61
61
-`onDataPreLoad` -> `dataPreLoad`
62
62
-`IgxInputGroupComponent`
63
63
-**Breaking Change** - `disabled` property removed. Use the underlying `IgxInputDirective.disabled` to control the disabled state of the input group. Please make sure to update via `ng update` to migrate an usage of `disabled` in your template files. Please make sure to check out the [update guide](https://www.infragistics.com/products/ignite-ui-angular/angular/components/general/update-guide#from-111x-to-120x).
64
-
65
64
-`IgxDateTimeEditor`
66
-
-**Feature** - `value` accepts ISO 8601 string format.
67
-
-**Breaking Change** - `value` type could be `Date` or `string`.
68
65
-**Breaking Change** - `onValueChange` event is renamed to `valueChange`.
69
66
-**Breaking Change** - `isSpinLoop` property is renamed to `spinLoop`.
70
-
-**Feature** - `spinDelta` input property which allows a user to provide different delta values that will be used for spinning. All parts default to `1`.
71
-
-`increment` and `decrement` methods now accept an optional `delta` parameter which targets the currently spun date portion. It takes precedence over the values set in `spinDelta`.
72
67
-`IgxDatePicker`
73
-
-**Feature** - `value` accepts ISO 8601 string format.
74
-
-**Feature** - The actions template now exposes the Calendar component as implicit context:
- **Breaking Change** - `value` type could be `Date` or `string`.
83
68
-**Breaking Change** - `onSelection` event is renamed to `valueChange`.
84
-
- **Breaking Change** - new way to define custom elements in the `igx-date-picker` while the following properties are deleted or deprecated: `formatter`, `context`, `labelInternal`, `template`.
69
+
-**Breaking Change** - new way to define custom elements in the `igx-date-picker` while the following properties are deleted or deprecated: `context`, `labelInternal`, `template`.
@@ -99,22 +84,23 @@ All notable changes for each version of this project will be documented in this
99
84
- **Breaking Change** - `monthsViewNumber` is renamed to `displayMonthsCount`.
100
85
- **Breaking Change** - `vertical` is renamed to `headerOrientation`.
101
86
- **Breaking Change** - `displayData` is renamed to `displayFormat`.
102
-
- **Breaking Change** - `dropDownOverlaySettings` and `modalOverlaySettings` are replaced by the `overlaySettings`.
87
+
- **Breaking Change** - `dropDownOverlaySettings` and `modalOverlaySettings` are replaced by `overlaySettings`.
103
88
- **Breaking Change** - `onValidationFailed` event is renamed to `validationFailed`.
104
89
- **Breaking Change** - `onDisabledDate` event is removed.
105
90
- **Breaking Change** - `onOpening`, `onOpened`, `onClosing` and `onClosed` events are renamed respectively to `opening`, `opened`, `closing` and `closed`.
91
+
- **Breaking Change** - `igxDatePickerActions` is renamed to `igxPickerActions`
92
+
- **Behavioral Change** - Upon opening, the focused date will always be the selected/bound date. If there is no selected/bound date, the date picker will focus today's date. If `minValue` and/or `maxValue` are applied and today's date (or the bound date) is outside of the specified range, the focused date will be respectively `minValue` or `maxValue`.
106
93
- `IgxTimePicker`
107
-
- **Feature** - `value` accepts ISO 8601 string format.
108
94
- **Breaking Change** - `value` type could be `Date` or `string`.
109
95
- **Breaking Change** - `onValueChanged` event is renamed to `valueChange`.
110
96
- **Breaking Change** - new way to define custom elements in the `igx-time-picker` while the following properties are deleted or deprecated: `context`, `promptChar`, `displayTime`, `template`.
@@ -125,17 +111,8 @@ All notable changes for each version of this project will be documented in this
125
111
- **Breaking Change** - `vertical` is renamed to `headerOrientation`.
126
112
- **Breaking Change** - `onOpening`, `onOpened`, `onClosing` and `onClosed` events are renamed respectively to `opening`, `opened`, `closing` and `closed`.
127
113
- **Breaking Change** - `onValidationFailed` event is renamed to `validationFailed`.
114
+
- **Behavioral Change** - The dropdown/dialog displays time portions within `minValue` and `maxValue` range if set or time between 00:00 and 24:00 in the provided `inputFormat`. The displayed values for each time portion are calculated based on the items delta always starting from zero. If the `minValue` or `maxValue` does not match the items delta, the displayed values will start/end from the next/last possible value that matches the delta. Upon opening, the selected time will be the bound value. In cases when there is not a bound value, it is outside the min/max range or does not match the items delta, the selected time will be the closest possible time that matches the items delta.
128
115
- `IgxDateRangePicker`
129
-
- **Feature** - `value` start and end accept ISO 8601 string format.
130
-
- **Feature** - The actions template now exposes the Calendar component as implicit context:
- **Breaking Change** - `value` start and end types could be `Date` or `string`.
139
116
- **Breaking Change** - `rangeSelected` event is renamed to `valueChange`.
140
117
- **Breaking Change** - `onOpening`, `onOpened`, `onClosing` and `onClosed` events are renamed respectively to `opening`, `opened`, `closing` and `closed`.
141
118
- **Breaking Change** - `monthsViewNumber` is renamed to `displayMonthsCount`.
@@ -244,6 +221,40 @@ All notable changes for each version of this project will be documented in this
244
221
}
245
222
}
246
223
```
224
+
- `IgxDateTimeEditor`
225
+
- `value` accepts ISO 8601 string format.
226
+
- `spinDelta` input property which allows a user to provide different delta values that will be used for spinning. All parts default to `1`.
227
+
- `increment` and `decrement` methods now accept an optional `delta` parameter which targets the currently spun date portion. It takes precedence over the values set in `spinDelta`.
228
+
- `IgxDatePicker`
229
+
- `value` accepts ISO 8601 string format.
230
+
- The actions template now exposes the Calendar component as implicit context:
Copy file name to clipboardExpand all lines: projects/igniteui-angular/src/lib/date-picker/README.md
+46-47Lines changed: 46 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,54 +91,53 @@ The date picker also supports binding through `ngModel` if two-way date-bind is
91
91
# API
92
92
93
93
###### Inputs
94
-
| Name | Type | Description|
95
-
|:----------|:-------------:|:------|
96
-
|`id`|string | Unique identifier of the component. If not provided it will be automatically generated.|
97
-
|`todayBottonLabel`|`string`| Renders today button with custom content, which selects today date from calendar, and fill the datePicker input.|
98
-
|`cancelButtonLabel`|`string`| Renders cancel button with custom content, which closes the calendar.|
99
-
|`formatter`|`function`| Applied custom formatter on the selected or passed in date.|
100
-
| `formatViews` | `PickersFormatViews` | Determines if `day`, `month` and `year` will be rendered in the calendar. `locale` and `calendarFormat` are taken into account as well, if present.
101
-
|`disabled`|`boolean`| Disables the date picker.|
102
-
|`weekStart`| `Number | WEEKDAYS` | Sets on which day will the week start.|
103
-
|`locale`|`string`| Sets the locale used for formatting and displaying the dates in the calendar. For more information check out [this](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl) page for valid formats. |
104
-
|`displayFormat`|`string`| The format used to display the picker's value when it's not being edited.|
105
-
|`inputFormat`|`string`| The editor's input mask.|
106
-
|`disabledDates`|`DateRangeDescriptor[]`| Configure the disabled dates.|
107
-
|`specialDates`|`DateRangeDescriptor[]`| Configure the special dates.|
108
-
| `calendarFormat` | `PickersFormatOptions` | The calendar's format options for the day view.
109
-
|`value`|`Date | string` | The date picker's value and the selected date in the calendar.|
110
-
|`headerOrientation`|`'horizontal' | 'vertical'` | Determines whether the calendar's header renders in vertical or horizontal state. Applies only in dialog mode.|
111
-
|`mode`| `'dropdown' | 'dialog'` |Sets whether `IgxDatePickerComponent` is in dialog or dropdown mode.|
112
-
|`spinLoop`|`boolean`| Determines if the currently spun date segment should loop over.|
113
-
| `spinDelta` | `DatePartDeltas` | Delta values used to increment or decrement each editor date part on spin actions. All values default to `1`.
114
-
| `type` | `IgxInputGroupType` | Determines how the picker will be styled.
115
-
|`displayMonthsCount`|`number`| Sets the number of displayed month views. Default is `2`.|
116
-
|`hideOutsideDays`|`boolean`| Controls the visibility of the dates that do not belong to the current month.|
117
-
| `overlaySettings` | `OverlaySettings` | Changes the default overlay settings used by the `IgxDatePickerComponent`.
118
-
| `placeholder` | `string` | Sets the placeholder text for empty input.
119
-
| `minValue` | `Date | string` | The minimum value required for the picker to remain valid.
120
-
| `maxValue` | `Date | string` | The maximum value required for the editor to remain valid.
121
-
122
-
94
+
| Name | Description | Type|
95
+
|:-----|:------------|:----|
96
+
|`id`|`attr.id`of the picker. | string |
97
+
|`mode`|Sets whether `IgxDatePickerComponent` is in dialog or dropdown mode. | InteractionMode|
98
+
|`value`|The value of the editor. | Date|
99
+
|`minValue`|The minimum value required for the picker to remain valid. | Date \| string|
100
+
|`maxValue`|The maximum value required for the editor to remain valid. | Date \| string |
101
+
|`displayFormat`|The display value of the editor. | string|
102
+
|`inputFormat`| The format that the editor will use to display the date/time. | string|
103
+
|`calendarFormat`|The calendar's format options for the day view. | PickersFormatOptions |
104
+
|`specialDates`|Dates that will be marked as special in the calendar. | DateRangeDescriptor[]|
105
+
|`disabledDates`|Dates that will be disabled in the calendar. | DateRangeDescriptor[]|
106
+
|`formatViews`|Determines if `day`, `month` and `year` will be rendered in the calendar. `locale` and `formatOptions` are taken into account as well, if present. | PickersFormatViews|
107
+
|`displayMonthsCount`|Sets the number of displayed month views. Default is `2`. | number|
108
+
|`hideOutsideDays`|Sets whether dates that are not part of the current month will be displayed. Default is `false`. | boolean |
109
+
|`showWeekNumbers`|Shows or hides week numbers. | number|
110
+
|`tabindex`|The editor's tabindex. | number|
111
+
|`weekStart`|Sets the start day of the week. | number|
112
+
|`locale`|Locale settings used in `displayFormat` and for localizing the calendar. | string|
113
+
|`overlaySettings`|Changes the default overlay settings used by the `IgxDatePickerComponent`. | OverlaySettings |
114
+
|`placeholder`|Sets the placeholder text for empty input. | string |
115
+
|`disabled`|Disables or enables the picker. | boolean|
116
+
|`outlet`| The container used for the pop up element. | IgxOverlayOutletDirective \| ElementRef|
117
+
|`type`|Determines how the picker will be styled. | IgxInputGroupType |
118
+
|`spinLoop`|Determines if the currently spun date segment should loop over. | boolean |
119
+
|`spinDelta`|Delta values used to increment or decrement each editor date part on spin actions. All values default to `1`. | DatePartDeltas |
120
+
|`cancelButtonLabel`|The label of the `cancel` button. No button is rendered if there is no label provided. | string |
121
+
|`todayButtonLabel`| The label of the `select today` button. No button is rendered if there is no label provided. | string |
122
+
|`headerOrientation`| Determines whether the calendar's header renders in `vertical` or `horizontal` state. Applies only in `dialog` mode. | 'horizontal' \| 'vertical' |
123
123
124
124
### Outputs
125
-
| Name |Return Type | Description|
126
-
|:--:|:---|:---|
127
-
|`opening`|`IBaseCancelableBrowserEventArgs`|Fired when the calendar has started opening, cancelable. |
128
-
|`opened`|`IBaseEventArgs`|Fired after the calendar has opened. |
129
-
|`closing`|`IBaseCancelableBrowserEventArgs`|Fired when the calendar has started closing, cancelable. |
130
-
|`closed`|`IBaseEventArgs`|Fired after the calendar has closed. |
131
-
|`validationFailed`|`IDatePickerValidationFailedEventArgs`|Emitted when a user enters an invalid date string or when the value is not within a min/max range.|
132
-
|`valueChange`|`Date`| Emitted when the picker's value changes. Allows two-way binding of `value`.|
125
+
| Name |Description | Emitted with|
126
+
|:-----|:------------|:----|
127
+
|`opening`|Fired when the calendar has started opening, cancelable.| IBaseCancelableBrowserEventArgs|
128
+
|`opened`|Fired after the calendar has opened.| IBaseEventArgs|
129
+
|`closing`|Fired when the calendar has started closing, cancelable.| IBaseCancelableBrowserEventArgs|
130
+
|`closed`|Fired after the calendar has closed.| IBaseEventArgs|
131
+
|`valueChange`|Emitted when the picker's value changes. Allows two-way binding of `value`. | Date|
132
+
|`validationFailed`|Emitted when a user enters an invalid date string or when the value is not within a min/max range. | IDatePickerValidationFailedEventArgs|
133
133
134
134
### Methods
135
-
| Name | Arguments | Return Type | Description |
136
-
|:----------:|:------|:------|:------|
137
-
|`select`|`Date`|`void`| Accepts a Date object and selects the corresponding date from the calendar. |
138
-
|`clear`| n/a |`void`| Clears the editor's date. |
139
-
|`selectToday`| n/a |`void`| Selects today's date in calendar and changes the input field value. |
140
-
|`open`|`OverlaySettings`|`void`| Opens the calendar. |
141
-
|`close`| n/a |`void`| Closes the calendar. |
142
-
|`toggle`|`OverlaySettings`|`void`| Toggles the calendar between opened and closed states. |
143
-
| `increment` | `DatePart?, number?` | | `void` | Accepts a `DatePart` and increments it by one. If no value is provided, it defaults to the part at the position of the cursor.
144
-
| `decrement` | `DatePart?, number?` | `void` | Accepts a `DatePart` and decrements it by one. If no value is provided, it defaults to the part at the position of the cursor.
135
+
| Name | Description | Return type |
136
+
|:-----|:------------|:----|
137
+
|`select`| Accepts a Date object and selects the corresponding date from the calendar. | void |
138
+
|`clear`| Clears the editor's date. | void |
139
+
|`open`| Opens the calendar. | void |
140
+
|`close`| Closes the calendar. | void |
141
+
|`toggle`| Toggles the calendar between opened and closed states. | void |
142
+
|`increment`| Accepts a `DatePart` and increments it by one. If no value is provided, it defaults to the part at the position of the cursor. | void |
143
+
|`decrement`| Accepts a `DatePart` and decrements it by one. If no value is provided, it defaults to the part at the position of the cursor. | void |
Copy file name to clipboardExpand all lines: projects/igniteui-angular/src/lib/directives/date-time-editor/README.md
+6-7Lines changed: 6 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,14 +94,15 @@ public datePart: typeof DatePart = DatePart;
94
94
### API
95
95
| Name | Type | Description |
96
96
|:-----|:----|:------------|
97
-
|`value`| Date | The value of the editor. |
97
+
|`value`| Date \| string | The value of the editor. |
98
98
|`displayFormat`| string | The display value of the editor. |
99
99
|`inputFormat`| string | The format that the editor will use to display the date/time. |
100
-
|`minValue`| string / Date | Sets the minimum value required for the editor to remain valid. |
101
-
|`maxValue`| string / Date | Sets the maximum value required for the editor to remain valid. |
102
-
|`isSpinLoop`| boolean | Loop over the currently spun segment. |
100
+
|`minValue`| Date \| string | Sets the minimum value required for the editor to remain valid. |
101
+
|`maxValue`| Date \| string | Sets the maximum value required for the editor to remain valid. |
102
+
|`spinLoop`| boolean | Loop over the currently spun segment. |
103
+
| `spinDelta` | DatePartDeltas | Delta values used to increment or decrement each editor date part on spin actions. All values default to `1`.
103
104
|`promptChar`| string | Defines the empty characters in the mask. |
104
-
|`locale`| string | Locale settings used in displayFormat. |
105
+
|`locale`| string | Locale settings used in displayFormat. |
105
106
106
107
#### Methods
107
108
| Name | Type | Description |
@@ -115,5 +116,3 @@ public datePart: typeof DatePart = DatePart;
115
116
|:-----|:----|:------------|
116
117
|`valueChanged`| custom | Fired when the editor's value has changed. |
117
118
|`validationFailed`| custom | Fired when the editor is not within a specified range. Can revert back to a previously valid state by changing the `newValue` property of the `args` parameter. |
0 commit comments