Bump @nextcloud/vue to 1.4.0
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
This commit is contained in:
parent
567f695781
commit
fbb6faebee
|
@ -477,15 +477,15 @@
|
|||
}
|
||||
},
|
||||
"@babel/helper-create-class-features-plugin": {
|
||||
"version": "7.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.8.3.tgz",
|
||||
"integrity": "sha512-qmp4pD7zeTxsv0JNecSBsEmG1ei2MqwJq4YQcK3ZWm/0t07QstWfvuV/vm3Qt5xNMFETn2SZqpMx2MQzbtq+KA==",
|
||||
"version": "7.8.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.8.6.tgz",
|
||||
"integrity": "sha512-klTBDdsr+VFFqaDHm5rR69OpEQtO2Qv8ECxHS1mNhJJvaHArR6a1xTf5K/eZW7eZpJbhCx3NW1Yt/sKsLXLblg==",
|
||||
"requires": {
|
||||
"@babel/helper-function-name": "^7.8.3",
|
||||
"@babel/helper-member-expression-to-functions": "^7.8.3",
|
||||
"@babel/helper-optimise-call-expression": "^7.8.3",
|
||||
"@babel/helper-plugin-utils": "^7.8.3",
|
||||
"@babel/helper-replace-supers": "^7.8.3",
|
||||
"@babel/helper-replace-supers": "^7.8.6",
|
||||
"@babel/helper-split-export-declaration": "^7.8.3"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -497,6 +497,17 @@
|
|||
"@babel/highlight": "^7.8.3"
|
||||
}
|
||||
},
|
||||
"@babel/generator": {
|
||||
"version": "7.8.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.8.7.tgz",
|
||||
"integrity": "sha512-DQwjiKJqH4C3qGiyQCAExJHoZssn49JTMJgZ8SANGgVFdkupcUhLOdkAeoC6kmHZCPfoDG5M0b6cFlSN5wW7Ew==",
|
||||
"requires": {
|
||||
"@babel/types": "^7.8.7",
|
||||
"jsesc": "^2.5.1",
|
||||
"lodash": "^4.17.13",
|
||||
"source-map": "^0.5.0"
|
||||
}
|
||||
},
|
||||
"@babel/helper-function-name": {
|
||||
"version": "7.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.8.3.tgz",
|
||||
|
@ -520,6 +531,17 @@
|
|||
"resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.8.3.tgz",
|
||||
"integrity": "sha512-j+fq49Xds2smCUNYmEHF9kGNkhbet6yVIBp4e6oeQpH1RUs/Ir06xUKzDjDkGcaaokPiTNs2JBWHjaE4csUkZQ=="
|
||||
},
|
||||
"@babel/helper-replace-supers": {
|
||||
"version": "7.8.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.8.6.tgz",
|
||||
"integrity": "sha512-PeMArdA4Sv/Wf4zXwBKPqVj7n9UF/xg6slNRtZW84FM7JpE1CbG8B612FyM4cxrf4fMAMGO0kR7voy1ForHHFA==",
|
||||
"requires": {
|
||||
"@babel/helper-member-expression-to-functions": "^7.8.3",
|
||||
"@babel/helper-optimise-call-expression": "^7.8.3",
|
||||
"@babel/traverse": "^7.8.6",
|
||||
"@babel/types": "^7.8.6"
|
||||
}
|
||||
},
|
||||
"@babel/helper-split-export-declaration": {
|
||||
"version": "7.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.8.3.tgz",
|
||||
|
@ -539,24 +561,40 @@
|
|||
}
|
||||
},
|
||||
"@babel/parser": {
|
||||
"version": "7.8.4",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.4.tgz",
|
||||
"integrity": "sha512-0fKu/QqildpXmPVaRBoXOlyBb3MC+J0A66x97qEfLOMkn3u6nfY5esWogQwi/K0BjASYy4DbnsEWnpNL6qT5Mw=="
|
||||
"version": "7.8.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.8.7.tgz",
|
||||
"integrity": "sha512-9JWls8WilDXFGxs0phaXAZgpxTZhSk/yOYH2hTHC0X1yC7Z78IJfvR1vJ+rmJKq3I35td2XzXzN6ZLYlna+r/A=="
|
||||
},
|
||||
"@babel/template": {
|
||||
"version": "7.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.3.tgz",
|
||||
"integrity": "sha512-04m87AcQgAFdvuoyiQ2kgELr2tV8B4fP/xJAVUL3Yb3bkNdMedD3d0rlSQr3PegP0cms3eHjl1F7PWlvWbU8FQ==",
|
||||
"version": "7.8.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/template/-/template-7.8.6.tgz",
|
||||
"integrity": "sha512-zbMsPMy/v0PWFZEhQJ66bqjhH+z0JgMoBWuikXybgG3Gkd/3t5oQ1Rw2WQhnSrsOmsKXnZOx15tkC4qON/+JPg==",
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.8.3",
|
||||
"@babel/parser": "^7.8.3",
|
||||
"@babel/types": "^7.8.3"
|
||||
"@babel/parser": "^7.8.6",
|
||||
"@babel/types": "^7.8.6"
|
||||
}
|
||||
},
|
||||
"@babel/traverse": {
|
||||
"version": "7.8.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.8.6.tgz",
|
||||
"integrity": "sha512-2B8l0db/DPi8iinITKuo7cbPznLCEk0kCxDoB9/N6gGNg/gxOXiR/IcymAFPiBwk5w6TtQ27w4wpElgp9btR9A==",
|
||||
"requires": {
|
||||
"@babel/code-frame": "^7.8.3",
|
||||
"@babel/generator": "^7.8.6",
|
||||
"@babel/helper-function-name": "^7.8.3",
|
||||
"@babel/helper-split-export-declaration": "^7.8.3",
|
||||
"@babel/parser": "^7.8.6",
|
||||
"@babel/types": "^7.8.6",
|
||||
"debug": "^4.1.0",
|
||||
"globals": "^11.1.0",
|
||||
"lodash": "^4.17.13"
|
||||
}
|
||||
},
|
||||
"@babel/types": {
|
||||
"version": "7.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.3.tgz",
|
||||
"integrity": "sha512-jBD+G8+LWpMBBWvVcdr4QysjUE4mU/syrhN17o1u3gx0/WzJB1kwiVZAXRtWbsIPOwW8pF/YJV5+nmetPzepXg==",
|
||||
"version": "7.8.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/types/-/types-7.8.7.tgz",
|
||||
"integrity": "sha512-k2TreEHxFA4CjGkL+GYjRyx35W0Mr7DP5+9q6WMkyKXB+904bYmG40syjMFV0oLlhhFCwWl0vA0DyzTDkwAiJw==",
|
||||
"requires": {
|
||||
"esutils": "^2.0.2",
|
||||
"lodash": "^4.17.13",
|
||||
|
@ -581,11 +619,24 @@
|
|||
"supports-color": "^5.3.0"
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"version": "4.1.1",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz",
|
||||
"integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==",
|
||||
"requires": {
|
||||
"ms": "^2.1.1"
|
||||
}
|
||||
},
|
||||
"js-tokens": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
|
||||
"integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.1.2",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
|
||||
"integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
||||
},
|
||||
"supports-color": {
|
||||
"version": "5.5.0",
|
||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz",
|
||||
|
@ -2910,9 +2961,9 @@
|
|||
}
|
||||
},
|
||||
"@babel/plugin-transform-typescript": {
|
||||
"version": "7.8.3",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.8.3.tgz",
|
||||
"integrity": "sha512-Ebj230AxcrKGZPKIp4g4TdQLrqX95TobLUWKd/CwG7X1XHUH1ZpkpFvXuXqWbtGRWb7uuEWNlrl681wsOArAdQ==",
|
||||
"version": "7.8.7",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.8.7.tgz",
|
||||
"integrity": "sha512-7O0UsPQVNKqpHeHLpfvOG4uXmlw+MOxYvUv6Otc9uH5SYMIxvF6eBdjkWvC3f9G+VXe0RsNExyAQBeTRug/wqQ==",
|
||||
"requires": {
|
||||
"@babel/helper-create-class-features-plugin": "^7.8.3",
|
||||
"@babel/helper-plugin-utils": "^7.8.3",
|
||||
|
@ -5370,6 +5421,22 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"@nextcloud/l10n": {
|
||||
"version": "1.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/l10n/-/l10n-1.1.0.tgz",
|
||||
"integrity": "sha512-MywbaSb31JH5LNUsC98RrMwzHdsjDELf+nL5BVtHBQWq2r0cDP0nPd7Ve+knRVdGMegnigXW+F2VXbxFBLb6mQ==",
|
||||
"requires": {
|
||||
"core-js": "3.6.4",
|
||||
"node-gettext": "^2.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"core-js": {
|
||||
"version": "3.6.4",
|
||||
"resolved": "https://registry.npmjs.org/core-js/-/core-js-3.6.4.tgz",
|
||||
"integrity": "sha512-4paDGScNgZP2IXXilaffL9X7968RuvwlkK3xWtZRVqgd8SYNiVKRJvkFd1aqqEuPfN7E68ZHEp9hDj6lHj4Hyw=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"@nextcloud/router": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/router/-/router-1.0.0.tgz",
|
||||
|
@ -5386,11 +5453,12 @@
|
|||
}
|
||||
},
|
||||
"@nextcloud/vue": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/vue/-/vue-1.3.1.tgz",
|
||||
"integrity": "sha512-9YdE6ryhpHfA416ztWwcK59m8wQKUXlBaJhtLRzh6NGl/OcwGnCZ38Xdki1iPPW7gX6lq4BfNbYkxujw4R3PFg==",
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/vue/-/vue-1.4.0.tgz",
|
||||
"integrity": "sha512-LwwAZGzFIGgILuVJ7o9mGzegucYkEg7FEPEebUac1FvT4ZqBl3LDufUWudY4ETIrNpKp1ij9QINza6fr4szdiw==",
|
||||
"requires": {
|
||||
"@nextcloud/axios": "^1.1.0",
|
||||
"@nextcloud/l10n": "^1.1.0",
|
||||
"@nextcloud/router": "^1.0.0",
|
||||
"core-js": "^3.4.4",
|
||||
"escape-html": "^1.0.3",
|
||||
|
@ -5403,7 +5471,7 @@
|
|||
"vue-color": "^2.7.0",
|
||||
"vue-multiselect": "^2.1.3",
|
||||
"vue-visible": "^1.0.2",
|
||||
"vue2-datepicker": "^2.10.0"
|
||||
"vue2-datepicker": "^3.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"core-js": {
|
||||
|
@ -7810,7 +7878,7 @@
|
|||
},
|
||||
"cdav-library": {
|
||||
"version": "github:nextcloud/cdav-library#5147f253d6f244daa9612bdadeafaa216b434069",
|
||||
"from": "github:nextcloud/cdav-library#5147f253d6f244daa9612bdadeafaa216b434069",
|
||||
"from": "github:nextcloud/cdav-library",
|
||||
"requires": {
|
||||
"core-js": "^3.6.4",
|
||||
"regenerator-runtime": "^0.13.3"
|
||||
|
@ -8798,6 +8866,16 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"date-fns": {
|
||||
"version": "2.10.0",
|
||||
"resolved": "https://registry.npmjs.org/date-fns/-/date-fns-2.10.0.tgz",
|
||||
"integrity": "sha512-EhfEKevYGWhWlZbNeplfhIU/+N+x0iCIx7VzKlXma2EdQyznVlZhCptXUY+BegNpPW2kjdx15Rvq503YcXXrcA=="
|
||||
},
|
||||
"date-format-parse": {
|
||||
"version": "0.2.5",
|
||||
"resolved": "https://registry.npmjs.org/date-format-parse/-/date-format-parse-0.2.5.tgz",
|
||||
"integrity": "sha512-PzvB3p9bTxrGQbz3ZlO/kxgXzKZhMo4l0OQfPqVYjuwixHRS9yHH6cUJI9JG2Hh6iUQgh17T7w95lzQ131dS/g=="
|
||||
},
|
||||
"dateformat": {
|
||||
"version": "3.0.3",
|
||||
"resolved": "https://registry.npmjs.org/dateformat/-/dateformat-3.0.3.tgz",
|
||||
|
@ -19878,6 +19956,11 @@
|
|||
"lodash.isarray": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"lodash.get": {
|
||||
"version": "4.4.2",
|
||||
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
|
||||
"integrity": "sha1-LRd/ZS+jHpObRDjVNBSZ36OCXpk="
|
||||
},
|
||||
"lodash.isarguments": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz",
|
||||
|
@ -20809,6 +20892,14 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"node-gettext": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/node-gettext/-/node-gettext-2.0.0.tgz",
|
||||
"integrity": "sha1-8dwSN83FRvUVk9o0AwS4vrpbhSU=",
|
||||
"requires": {
|
||||
"lodash.get": "^4.4.2"
|
||||
}
|
||||
},
|
||||
"node-gyp": {
|
||||
"version": "3.8.0",
|
||||
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz",
|
||||
|
@ -26294,9 +26385,9 @@
|
|||
}
|
||||
},
|
||||
"vue-color": {
|
||||
"version": "2.7.0",
|
||||
"resolved": "https://registry.npmjs.org/vue-color/-/vue-color-2.7.0.tgz",
|
||||
"integrity": "sha512-fak9oPRL3BsYtakTGmWIS2yNRppRYNlMgGGq78CMH34ipU8fLgi/bT9JiSPcscpdTNLGracuOFuZ8OFeml+SQQ==",
|
||||
"version": "2.7.1",
|
||||
"resolved": "https://registry.npmjs.org/vue-color/-/vue-color-2.7.1.tgz",
|
||||
"integrity": "sha512-u3yl46B2eEej9zfAOIRRSphX1QfeNQzMwO82EIA+aoi0AKX3o1KcfsmMzm4BFkkj2ukCxLVfQ41k7g1gSI7SlA==",
|
||||
"requires": {
|
||||
"clamp": "^1.0.1",
|
||||
"lodash.throttle": "^4.0.0",
|
||||
|
@ -26472,11 +26563,12 @@
|
|||
"integrity": "sha512-yaX2its9XAJKGuQqf7LsiZHHSkxsIK8rmCOQOvEGEoF41blKRK8qr9my4qYoD6ikdLss4n8tKqYBecmaY0+WJg=="
|
||||
},
|
||||
"vue2-datepicker": {
|
||||
"version": "2.13.4",
|
||||
"resolved": "https://registry.npmjs.org/vue2-datepicker/-/vue2-datepicker-2.13.4.tgz",
|
||||
"integrity": "sha512-a2eRLqBSRTFRJ/DVcPArXALpnICj+DTvoJGkvuZTvytO7FD3rmxbGS/DNzK1v+hDbHiOJtHwB7N8pyT1XZtWfw==",
|
||||
"version": "3.4.1",
|
||||
"resolved": "https://registry.npmjs.org/vue2-datepicker/-/vue2-datepicker-3.4.1.tgz",
|
||||
"integrity": "sha512-gCPZAwIyPLeN1P3xDg/Oj/UyQTIqnoFFzXw+yfvmUDxL430u/rHq1/JqFSGISEhTvJJu0brgHHrop3A7VBW6rA==",
|
||||
"requires": {
|
||||
"fecha": "^2.3.3"
|
||||
"date-fns": "^2.0.1",
|
||||
"date-format-parse": "^0.2.5"
|
||||
}
|
||||
},
|
||||
"vuedraggable": {
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
"bugs": "https://github.com/nextcloud/tasks/issues",
|
||||
"contributors": [],
|
||||
"dependencies": {
|
||||
"@nextcloud/vue": "1.3.1",
|
||||
"@nextcloud/vue": "1.4.0",
|
||||
"@vue/test-utils": "^1.0.0-beta.31",
|
||||
"axios": "^0.19.2",
|
||||
"cdav-library": "github:nextcloud/cdav-library",
|
||||
|
|
|
@ -110,7 +110,9 @@ export default {
|
|||
* @param {Object} $event the event
|
||||
*/
|
||||
closeDetails($event) {
|
||||
if (!($event.target.closest('.reactive') || $event.target.classList.contains('reactive'))
|
||||
if (!($event.target.closest('.reactive') || $event.target.classList.contains('reactive')
|
||||
|| $event.target.classList.contains('mx-btn') // For some reason the click-outside handlers fire for the datepicker month and year buttons!?
|
||||
)
|
||||
&& !$event.target.closest('#app-sidebar') && this.$route.params.taskId) {
|
||||
if (this.$route.params.calendarId) {
|
||||
this.$router.push({ name: 'calendars', params: { calendarId: this.$route.params.calendarId } })
|
||||
|
|
|
@ -68,7 +68,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
<li v-show="!readOnly || task.start"
|
||||
:class="{'date': task.startMoment.isValid(), 'editing': edit=='start', 'high': overdue(task.startMoment)}"
|
||||
class="section detail-start">
|
||||
<div v-click-outside="() => finishEditing('start')"
|
||||
<div v-click-outside="($event) => finishEditing('start', $event)"
|
||||
class="section-content"
|
||||
@click="editProperty('start', $event)">
|
||||
<span class="section-icon">
|
||||
|
@ -79,22 +79,21 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
{{ startDateString }}
|
||||
</span>
|
||||
<div v-if="edit=='start'" class="section-edit">
|
||||
<DatetimePicker :value="tmpTask.start"
|
||||
<DatetimePicker :value="tmpTask.start.toDate()"
|
||||
:lang="lang"
|
||||
:format="dateFormat"
|
||||
:clearable="false"
|
||||
:first-day-of-week="firstDay"
|
||||
:type="'date'"
|
||||
type="date"
|
||||
:placeholder="$t('tasks', 'Set start date')"
|
||||
class="date"
|
||||
@change="setStartDate" />
|
||||
<DatetimePicker v-if="!allDay"
|
||||
:value="tmpTask.start"
|
||||
:value="tmpTask.start.toDate()"
|
||||
:lang="lang"
|
||||
:format="timeFormat"
|
||||
:clearable="false"
|
||||
:time-picker-options="timePickerOptions"
|
||||
:type="'time'"
|
||||
type="time"
|
||||
:placeholder="$t('tasks', 'Set start time')"
|
||||
class="time"
|
||||
@change="setStartTime" />
|
||||
|
@ -112,7 +111,7 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
<li v-show="!readOnly || task.due"
|
||||
:class="{'date': task.dueMoment.isValid(), 'editing': edit=='due', 'high': overdue(task.dueMoment)}"
|
||||
class="section detail-date">
|
||||
<div v-click-outside="() => finishEditing('due')"
|
||||
<div v-click-outside="($event) => finishEditing('due', $event)"
|
||||
class="section-content"
|
||||
@click="editProperty('due', $event)">
|
||||
<span class="section-icon">
|
||||
|
@ -123,22 +122,21 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|||
{{ dueDateString }}
|
||||
</span>
|
||||
<div v-if="edit=='due'" class="section-edit">
|
||||
<DatetimePicker :value="tmpTask.due"
|
||||
<DatetimePicker :value="tmpTask.due.toDate()"
|
||||
:lang="lang"
|
||||
:format="dateFormat"
|
||||
:clearable="false"
|
||||
:first-day-of-week="firstDay"
|
||||
:type="'date'"
|
||||
type="date"
|
||||
:placeholder="$t('tasks', 'Set due date')"
|
||||
class="date"
|
||||
@change="setDueDate" />
|
||||
<DatetimePicker v-if="!allDay"
|
||||
:value="tmpTask.due"
|
||||
:value="tmpTask.due.toDate()"
|
||||
:lang="lang"
|
||||
:format="timeFormat"
|
||||
:clearable="false"
|
||||
:time-picker-options="timePickerOptions"
|
||||
:type="'time'"
|
||||
type="time"
|
||||
:placeholder="$t('tasks', 'Set due time')"
|
||||
class="time"
|
||||
@change="setDueTime" />
|
||||
|
@ -419,8 +417,10 @@ export default {
|
|||
complete: '',
|
||||
note: '',
|
||||
},
|
||||
firstDay: window.firstDay, // provided by nextcloud
|
||||
lang: {
|
||||
formatLocale: {
|
||||
firstDayOfWeek: window.firstDay,
|
||||
},
|
||||
days: window.dayNamesShort, // provided by nextcloud
|
||||
months: window.monthNamesShort, // provided by nextcloud
|
||||
},
|
||||
|
@ -791,11 +791,11 @@ export default {
|
|||
// If we edit the due or the start date, inintialize it.
|
||||
if (type === 'due') {
|
||||
this.tmpTask.due = this.initDueDate()
|
||||
this.tmpTask.start = this.task.startMoment
|
||||
this.tmpTask.start = this.task.startMoment.toDate()
|
||||
}
|
||||
if (type === 'start') {
|
||||
this.tmpTask.start = this.initStartDate()
|
||||
this.tmpTask.due = this.task.dueMoment
|
||||
this.tmpTask.due = this.task.dueMoment.toDate()
|
||||
}
|
||||
}
|
||||
if (type === 'summary' || type === 'note') {
|
||||
|
@ -805,7 +805,11 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
finishEditing: function(type) {
|
||||
finishEditing: function(type, $event) {
|
||||
// For some reason the click-outside handlers fire for the datepicker month and year buttons!?
|
||||
if ($event && $event.target.classList.contains('mx-btn')) {
|
||||
return
|
||||
}
|
||||
if (this.edit === type) {
|
||||
this.setProperty(type, this.tmpTask[type])
|
||||
}
|
||||
|
@ -843,7 +847,7 @@ export default {
|
|||
/**
|
||||
* Initializes the start date of a task
|
||||
*
|
||||
* @returns {Moment} The start date moment
|
||||
* @returns {Date} The start date moment
|
||||
*/
|
||||
initStartDate: function() {
|
||||
const start = this.task.startMoment
|
||||
|
@ -862,7 +866,7 @@ export default {
|
|||
/**
|
||||
* Initializes the due date of a task
|
||||
*
|
||||
* @returns {Moment} The due date moment
|
||||
* @returns {Date} The due date moment
|
||||
*/
|
||||
initDueDate: function() {
|
||||
const due = this.task.dueMoment
|
||||
|
@ -880,11 +884,11 @@ export default {
|
|||
},
|
||||
|
||||
setStartDate: function(date) {
|
||||
this.setStartDateTime(date, 'day')
|
||||
this.setStartDateTime(moment(date), 'day')
|
||||
},
|
||||
|
||||
setStartTime: function(time) {
|
||||
this.setStartDateTime(time, 'time')
|
||||
this.setStartDateTime(moment(time), 'time')
|
||||
},
|
||||
|
||||
setStartDateTime: function(datetime, type = null) {
|
||||
|
@ -892,11 +896,11 @@ export default {
|
|||
},
|
||||
|
||||
setDueDate: function(date) {
|
||||
this.setDueDateTime(date, 'day')
|
||||
this.setDueDateTime(moment(date), 'day')
|
||||
},
|
||||
|
||||
setDueTime: function(time) {
|
||||
this.setDueDateTime(time, 'time')
|
||||
this.setDueDateTime(moment(time), 'time')
|
||||
},
|
||||
|
||||
setDueDateTime: function(datetime, type = 'day') {
|
||||
|
|
Loading…
Reference in New Issue