timepicker-ui-mcp 1.0.1 → 2.0.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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "library": "4.5.0",
3
+ "cssReference": "4.5.0",
4
+ "siteUrl": "https://timepicker-ui.vercel.app"
5
+ }
@@ -0,0 +1,190 @@
1
+ {
2
+ "renamed": [
3
+ {
4
+ "from": "clock.currentTime: true",
5
+ "to": "clock.defaultTime: 'now'",
6
+ "note": "Shows the current time and writes it to the input."
7
+ },
8
+ {
9
+ "from": "clock.currentTime: { time, updateInput }",
10
+ "to": "clock.defaultTime: { time, updateInput }",
11
+ "note": "`time` is a `Date` or `'now'`. `locales` has no effect and has no new name."
12
+ },
13
+ {
14
+ "from": "clock.currentTime.preventClockType: true",
15
+ "to": "clock.type: 'auto'",
16
+ "note": "12h or 24h from the browser locale, with or without `defaultTime`."
17
+ },
18
+ {
19
+ "from": "clock.disabledTime.interval",
20
+ "to": "clock.disabledTime.ranges"
21
+ },
22
+ {
23
+ "from": "clock.smoothHourSnap: false",
24
+ "to": "clock.discreteHourJump: true",
25
+ "note": "Inverted. Smooth movement stays the default."
26
+ },
27
+ {
28
+ "from": "ui.mobile: true",
29
+ "to": "ui.initialView: 'keyboard'"
30
+ },
31
+ {
32
+ "from": "ui.enableSwitchIcon",
33
+ "to": "ui.viewSwitch"
34
+ },
35
+ {
36
+ "from": "ui.enableScrollbar",
37
+ "to": "ui.allowPageScroll"
38
+ },
39
+ {
40
+ "from": "ui.appendModalSelector",
41
+ "to": "ui.appendTo",
42
+ "note": "Also accepts an element."
43
+ },
44
+ {
45
+ "from": "ui.iconTemplate",
46
+ "to": "ui.keyboardIcon"
47
+ },
48
+ {
49
+ "from": "ui.iconTemplateMobile",
50
+ "to": "ui.clockIcon"
51
+ },
52
+ {
53
+ "from": "ui.inline.containerId: 'x'",
54
+ "to": "ui.inline.container: '#x'",
55
+ "note": "A selector or an element."
56
+ },
57
+ {
58
+ "from": "clearBehavior.clearInput",
59
+ "to": "ui.clearButton: { clearInput }",
60
+ "note": "The object form also shows the Clear button."
61
+ },
62
+ {
63
+ "from": "behavior.focusInputAfterClose",
64
+ "to": "behavior.returnFocus",
65
+ "note": "5.0 makes `true` the default."
66
+ },
67
+ {
68
+ "from": "timezone.whitelist",
69
+ "to": "timezone.list"
70
+ },
71
+ {
72
+ "from": "timezone.label",
73
+ "to": "labels.timezone"
74
+ },
75
+ {
76
+ "from": "range.fromLabel",
77
+ "to": "labels.rangeFrom"
78
+ },
79
+ {
80
+ "from": "range.toLabel",
81
+ "to": "labels.rangeTo"
82
+ },
83
+ {
84
+ "from": "labels.time",
85
+ "to": "labels.clockTitle"
86
+ },
87
+ {
88
+ "from": "labels.mobileTime",
89
+ "to": "labels.keyboardTitle"
90
+ },
91
+ {
92
+ "from": "labels.mobileHour, labels.hourLabel, labels.announceHour",
93
+ "to": "labels.hour",
94
+ "note": "One key for the caption, the accessible name and the announcement. An old key set next to it still wins for its own use."
95
+ },
96
+ {
97
+ "from": "labels.mobileMinute, labels.minuteLabel, labels.announceMinute",
98
+ "to": "labels.minute",
99
+ "note": "Same as `labels.hour`."
100
+ },
101
+ {
102
+ "from": "labels.clockLabel",
103
+ "to": "labels.clock"
104
+ },
105
+ {
106
+ "from": "labels.periodLabel",
107
+ "to": "labels.period"
108
+ },
109
+ {
110
+ "from": "labels.timeLabel",
111
+ "to": "labels.timeFields"
112
+ },
113
+ {
114
+ "from": "labels.rangeSelectionLabel",
115
+ "to": "labels.range"
116
+ },
117
+ {
118
+ "from": "labels.switchToKeyboardLabel",
119
+ "to": "labels.switchToKeyboard"
120
+ },
121
+ {
122
+ "from": "labels.switchToClockLabel",
123
+ "to": "labels.switchToClock"
124
+ },
125
+ {
126
+ "from": "callbacks.onSelectAM, callbacks.onSelectPM",
127
+ "to": "callbacks.onSelectPeriod",
128
+ "note": "Receives `{ type: 'AM' | 'PM' }`. The `select:am` and `select:pm` events become `select:period`."
129
+ },
130
+ {
131
+ "from": "picker.update({ options })",
132
+ "to": "picker.setOptions(options)",
133
+ "note": "Method. See [Methods](https://timepicker-ui.vercel.app/docs/api/methods)."
134
+ }
135
+ ],
136
+ "removed": [
137
+ {
138
+ "name": "Old names of the options renamed in 4.5.0, for example `ui.mobile` and `labels.hourLabel`",
139
+ "action": "Use the new names. The [Renamed in 4.5.0](https://timepicker-ui.vercel.app/docs/api/options#renamed) table lists every pair."
140
+ },
141
+ {
142
+ "name": "`select:am` and `select:pm` events, `callbacks.onSelectAM` and `callbacks.onSelectPM`",
143
+ "action": "Use `select:period` or `callbacks.onSelectPeriod`. The payload is `{ type: 'AM' | 'PM' }`."
144
+ },
145
+ {
146
+ "name": "`update({ options, create }, callback)`",
147
+ "action": "Use `setOptions(options)`. If you passed `create: true`, call `picker.create()` after it. Code from the callback can run on the next line."
148
+ },
149
+ {
150
+ "name": "`OptionTypes` type",
151
+ "action": "Use `TimepickerOptions`."
152
+ },
153
+ {
154
+ "name": "`clock.currentTime.locales`",
155
+ "action": "Remove it. It has no effect since 4.5.0, because the library formats the value itself."
156
+ },
157
+ {
158
+ "name": "`getValue().degreesHours`, `getValue().degreesMinutes`",
159
+ "action": "Stop reading them. They are internal clock angles."
160
+ },
161
+ {
162
+ "name": "`labels.toggleLabel`",
163
+ "action": "Remove it."
164
+ },
165
+ {
166
+ "name": "`labels.format24Label`",
167
+ "action": "Remove it. It has no effect."
168
+ },
169
+ {
170
+ "name": "`labels.timezoneSelectorLabel`",
171
+ "action": "It has no effect. Use `labels.timezone`."
172
+ },
173
+ {
174
+ "name": "`focusInputAfterCloseModal` (legacy option)",
175
+ "action": "Use `behavior.returnFocus`. It defaults to `false`; 5.0 makes `true` the default."
176
+ },
177
+ {
178
+ "name": "`hide` event and `HideEventData`",
179
+ "action": "Remove listeners for it. The picker never emits `hide`."
180
+ },
181
+ {
182
+ "name": "`range:get-disabled-time` and `range:update-disabled` events",
183
+ "action": "Remove listeners for them. The picker never emits them."
184
+ },
185
+ {
186
+ "name": "`ErrorEventData.rejectedHour`, `ErrorEventData.rejectedMinute`",
187
+ "action": "Stop reading them. They are always `undefined`."
188
+ }
189
+ ]
190
+ }