Skip to content

Commit b1384b8

Browse files
committed
refactor(NcDateTimePicker): migrate to @vuepick library
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 0fb8258 commit b1384b8

File tree

13 files changed

+652
-838
lines changed

13 files changed

+652
-838
lines changed

CHANGELOG.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,16 @@ Especially the following are now provided as composables:
116116
- The `count` prop is now required [\#5997](https://github.com/nextcloud-libraries/nextcloud-vue/pull/5997)
117117
- `NcSettingsSection`
118118
- The `limitWidth` was removed (the content is now always limited width) [\#5605](https://github.com/nextcloud-libraries/nextcloud-vue/pull/5605)
119-
* The `isFullscreen`, and `isMobile` mixins were removed. Use the according composables instead.
120-
* The `clickOutsideOptions` mixin is removed
121-
* The `box-sizing: border-box` is now default for following components and its content. This is done to match behaviour of `NcContent` (as they can be mounted directly to `body`):
119+
- The `isFullscreen`, and `isMobile` mixins were removed. Use the according composables instead.
120+
- The `clickOutsideOptions` mixin is removed
121+
- The `box-sizing: border-box` is now default for following components and its content. This is done to match behaviour of `NcContent` (as they can be mounted directly to `body`):
122122
- `NcModal`
123123
- `NcPopover`
124-
124+
- `NcDateTimePicker`
125+
- The `range` property was removed in favor of `type="range"` (datetime ranges) and `type="range-date"` (date only ranges).
126+
- The `lang` property was replaced with the `locale` property.
127+
- The `formatter` property was removed.
128+
125129
### 🚀 Enhancements
126130
* Allow writing components using Typescript and provide type definitions for `NcButton` [\#4525](https://github.com/nextcloud-libraries/nextcloud-vue/pull/4525) \([susnux](https://github.com/susnux)\)
127131

l10n/messages.pot

Lines changed: 114 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ msgstr ""
6363
msgid "busy"
6464
msgstr ""
6565

66+
msgid "Calendar icon"
67+
msgstr ""
68+
69+
msgid "Cancel"
70+
msgstr ""
71+
6672
msgid "Cancel changes"
6773
msgstr ""
6874

@@ -81,6 +87,9 @@ msgstr ""
8187
msgid "Clear text"
8288
msgstr ""
8389

90+
msgid "Clear value"
91+
msgstr ""
92+
8493
msgid "Close"
8594
msgstr ""
8695

@@ -93,6 +102,9 @@ msgstr ""
93102
msgid "Close Smart Picker"
94103
msgstr ""
95104

105+
msgid "Close time Picker"
106+
msgstr ""
107+
96108
msgid "Collapse menu"
97109
msgstr ""
98110

@@ -111,6 +123,21 @@ msgstr ""
111123
msgid "Dark skin tone"
112124
msgstr ""
113125

126+
msgid "Datepicker input"
127+
msgstr ""
128+
129+
msgid "Datepicker menu"
130+
msgstr ""
131+
132+
msgid "Decrement hours"
133+
msgstr ""
134+
135+
msgid "Decrement minutes"
136+
msgstr ""
137+
138+
msgid "Decrement seconds"
139+
msgstr ""
140+
114141
#. TRANSLATORS: A color name for RGB(136, 85, 168)
115142
msgid "Deluge"
116143
msgstr ""
@@ -179,6 +206,15 @@ msgstr ""
179206
msgid "Hide password"
180207
msgstr ""
181208

209+
msgid "Increment hours"
210+
msgstr ""
211+
212+
msgid "Increment minutes"
213+
msgstr ""
214+
215+
msgid "Increment seconds"
216+
msgstr ""
217+
182218
msgid "invisible"
183219
msgstr ""
184220

@@ -211,6 +247,12 @@ msgstr ""
211247
msgid "Message limit of {count} characters reached"
212248
msgstr ""
213249

250+
msgid "Month picker"
251+
msgstr ""
252+
253+
msgid "Month picker overlay"
254+
msgstr ""
255+
214256
msgid "More items …"
215257
msgstr ""
216258

@@ -223,6 +265,12 @@ msgstr ""
223265
msgid "Next"
224266
msgstr ""
225267

268+
msgid "Next month"
269+
msgstr ""
270+
271+
msgid "Next year"
272+
msgstr ""
273+
226274
msgid "Nextcloud blue"
227275
msgstr ""
228276

@@ -235,6 +283,9 @@ msgstr ""
235283
msgid "No results"
236284
msgstr ""
237285

286+
msgid "Now"
287+
msgstr ""
288+
238289
msgid "Objects"
239290
msgstr ""
240291

@@ -248,55 +299,61 @@ msgstr ""
248299
msgid "online"
249300
msgstr ""
250301

302+
msgid "Open hours overlay"
303+
msgstr ""
304+
251305
msgid "Open link to \"{resourceName}\""
252306
msgstr ""
253307

254308
msgid "Open menu"
255309
msgstr ""
256310

257-
msgid "Open navigation"
311+
msgid "Open minutes overlay"
258312
msgstr ""
259313

260-
msgid "Open sidebar"
314+
msgid "Open months overlay"
261315
msgstr ""
262316

263-
msgid "Options"
317+
msgid "Open navigation"
264318
msgstr ""
265319

266-
msgid "Password is secure"
320+
msgid "Open seconds overlay"
267321
msgstr ""
268322

269-
msgid "Pause slideshow"
323+
msgid "Open sidebar"
270324
msgstr ""
271325

272-
msgid "People & Body"
326+
msgid "Open time picker"
273327
msgstr ""
274328

275-
msgid "Pick a date"
329+
msgid "Open years overlay"
276330
msgstr ""
277331

278-
msgid "Pick a date and a time"
332+
msgid "Options"
279333
msgstr ""
280334

281-
msgid "Pick a month"
335+
msgid "Password is secure"
282336
msgstr ""
283337

284-
msgid "Pick a time"
338+
msgid "Pause slideshow"
285339
msgstr ""
286340

287-
msgid "Pick a week"
341+
msgid "People & Body"
288342
msgstr ""
289343

290-
msgid "Pick a year"
344+
msgid "Pick"
291345
msgstr ""
292346

293347
msgid "Pick an emoji"
294348
msgstr ""
295349

296-
msgid "Please select a time zone:"
350+
msgid "Previous"
297351
msgstr ""
298352

299-
msgid "Previous"
353+
msgid "Previous month"
354+
msgstr ""
355+
356+
msgid "Previous year"
300357
msgstr ""
301358

302359
msgid "Provider icon"
@@ -330,7 +387,7 @@ msgstr ""
330387
msgid "Search emoji"
331388
msgstr ""
332389

333-
msgid "Search for time zone"
390+
msgid "Search for timezone"
334391
msgstr ""
335392

336393
msgid "Search results"
@@ -350,9 +407,30 @@ msgstr ""
350407
msgid "Select a tag"
351408
msgstr ""
352409

410+
msgid "Select date"
411+
msgstr ""
412+
413+
msgid "Select date and time"
414+
msgstr ""
415+
416+
msgid "Select month"
417+
msgstr ""
418+
353419
msgid "Select provider"
354420
msgstr ""
355421

422+
msgid "Select time"
423+
msgstr ""
424+
425+
msgid "Select time range"
426+
msgstr ""
427+
428+
msgid "Select week"
429+
msgstr ""
430+
431+
msgid "Select year"
432+
msgstr ""
433+
356434
msgid "Selected"
357435
msgstr ""
358436

@@ -392,9 +470,21 @@ msgstr ""
392470
msgid "Submit"
393471
msgstr ""
394472

473+
msgid "Switch AM/PM mode"
474+
msgstr ""
475+
395476
msgid "Symbols"
396477
msgstr ""
397478

479+
msgid "Time picker"
480+
msgstr ""
481+
482+
msgid "Timezone"
483+
msgstr ""
484+
485+
msgid "Toggle overlay"
486+
msgstr ""
487+
398488
msgid "Travel & Places"
399489
msgstr ""
400490

@@ -416,9 +506,18 @@ msgstr ""
416506
msgid "View team"
417507
msgstr ""
418508

509+
msgid "W"
510+
msgstr ""
511+
419512
#. TRANSLATORS: A color name for RGB(211, 169, 103)
420513
msgid "Whiskey"
421514
msgstr ""
422515

423516
msgid "Write a message …"
424517
msgstr ""
518+
519+
msgid "Year picker"
520+
msgstr ""
521+
522+
msgid "Year picker overlay"
523+
msgstr ""

package-lock.json

Lines changed: 25 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"@nextcloud/router": "^3.0.1",
8484
"@nextcloud/sharing": "^0.2.4",
8585
"@nextcloud/timezones": "^0.1.1",
86+
"@vuepic/vue-datepicker": "^11.0.2",
8687
"@vueuse/components": "^13.0.0",
8788
"@vueuse/core": "^13.0.0",
8889
"blurhash": "^2.0.5",
@@ -110,7 +111,6 @@
110111
"unist-builder": "^4.0.0",
111112
"unist-util-visit": "^5.0.0",
112113
"vue": "^3.5.13",
113-
"vue-datepicker-next": "^1.0.3",
114114
"vue-router": "^4.5.0",
115115
"vue-select": "^4.0.0-beta.6"
116116
},

0 commit comments

Comments
 (0)