@tlmgo/tui-calendar 2.2.0 → 2.2.2

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,6 +1,6 @@
1
1
  /*!
2
2
  * TOAST UI Calendar 2nd Edition
3
- * @version 2.1.4 | Wed Jan 28 2026
3
+ * @version 2.2.2 | Thu Jan 29 2026
4
4
  * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
5
  * @license MIT
6
6
  */
@@ -11184,11 +11184,11 @@ function toPercent(value) {
11184
11184
  function toPx(value) {
11185
11185
  return "".concat(value, "px");
11186
11186
  }
11187
- /**
11188
- * ex)
11189
- * extractPercentPx('calc(100% - 22px)') // { percent: 100, px: -22 }
11190
- * extractPercentPx('100%') // { percent: 100, px: 0 }
11191
- * extractPercentPx('-22px') // { percent: 0, px: -22 }
11187
+ /**
11188
+ * ex)
11189
+ * extractPercentPx('calc(100% - 22px)') // { percent: 100, px: -22 }
11190
+ * extractPercentPx('100%') // { percent: 100, px: 0 }
11191
+ * extractPercentPx('-22px') // { percent: 0, px: -22 }
11192
11192
  */
11193
11193
 
11194
11194
  function extractPercentPx(value) {
@@ -11704,11 +11704,11 @@ function error_getPrototypeOf(o) { error_getPrototypeOf = Object.setPrototypeOf
11704
11704
 
11705
11705
 
11706
11706
 
11707
- /**
11708
- * Define custom errors for calendar
11709
- * These errors are exposed to the user.
11710
- *
11711
- * We can throw the default `Error` instance for internal errors.
11707
+ /**
11708
+ * Define custom errors for calendar
11709
+ * These errors are exposed to the user.
11710
+ *
11711
+ * We can throw the default `Error` instance for internal errors.
11712
11712
  */
11713
11713
 
11714
11714
  var InvalidTimezoneNameError = /*#__PURE__*/function (_Error) {
@@ -11870,10 +11870,10 @@ function date() {
11870
11870
  function getLocalTimezoneOffset() {
11871
11871
  return -new Date().getTimezoneOffset();
11872
11872
  }
11873
- /**
11874
- * Calculate timezone offset from UTC.
11875
- *
11876
- * Target date is needed for the case when the timezone is applicable to DST.
11873
+ /**
11874
+ * Calculate timezone offset from UTC.
11875
+ *
11876
+ * Target date is needed for the case when the timezone is applicable to DST.
11877
11877
  */
11878
11878
 
11879
11879
  function calculateTimezoneOffset(timezoneName) {
@@ -11911,9 +11911,9 @@ var timezoneNameValidationCache = {};
11911
11911
  function isIntlDateTimeFormatSupported() {
11912
11912
  var _Intl, _Intl$DateTimeFormat, _Intl$DateTimeFormat$;
11913
11913
 
11914
- /**
11915
- * Intl.DateTimeFormat & IANA Timezone Data should be supported.
11916
- * also, hourCycle options should be supported.
11914
+ /**
11915
+ * Intl.DateTimeFormat & IANA Timezone Data should be supported.
11916
+ * also, hourCycle options should be supported.
11917
11917
  */
11918
11918
  return isFunction((_Intl = Intl) === null || _Intl === void 0 ? void 0 : (_Intl$DateTimeFormat = _Intl.DateTimeFormat) === null || _Intl$DateTimeFormat === void 0 ? void 0 : (_Intl$DateTimeFormat$ = _Intl$DateTimeFormat.prototype) === null || _Intl$DateTimeFormat$ === void 0 ? void 0 : _Intl$DateTimeFormat$.formatToParts);
11919
11919
  }
@@ -12012,13 +12012,13 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
12012
12012
  function getTZOffsetMSDifference(offset) {
12013
12013
  return (getLocalTimezoneOffset() - offset) * MS_PER_MINUTES;
12014
12014
  }
12015
- /**
12016
- * Custom Date Class to handle timezone offset.
12017
- *
12018
- * For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/tzdate.md|TZDate} in guide.
12019
- *
12020
- * @class TZDate
12021
- * @param {number|TZDate|Date|string} date - date value to be converted. If date is number or string, it should be eligible to parse by Date constructor.
12015
+ /**
12016
+ * Custom Date Class to handle timezone offset.
12017
+ *
12018
+ * For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/tzdate.md|TZDate} in guide.
12019
+ *
12020
+ * @class TZDate
12021
+ * @param {number|TZDate|Date|string} date - date value to be converted. If date is number or string, it should be eligible to parse by Date constructor.
12022
12022
  */
12023
12023
 
12024
12024
 
@@ -12038,9 +12038,9 @@ var date_TZDate = /*#__PURE__*/function () {
12038
12038
  this.d = date.apply(void 0, args);
12039
12039
  }
12040
12040
  }
12041
- /**
12042
- * Get the string representation of the date.
12043
- * @returns {string} string representation of the date.
12041
+ /**
12042
+ * Get the string representation of the date.
12043
+ * @returns {string} string representation of the date.
12044
12044
  */
12045
12045
 
12046
12046
 
@@ -12049,10 +12049,10 @@ var date_TZDate = /*#__PURE__*/function () {
12049
12049
  value: function toString() {
12050
12050
  return this.d.toString();
12051
12051
  }
12052
- /**
12053
- * Add years to the instance.
12054
- * @param {number} y - number of years to be added.
12055
- * @returns {TZDate} - returns the instance itself.
12052
+ /**
12053
+ * Add years to the instance.
12054
+ * @param {number} y - number of years to be added.
12055
+ * @returns {TZDate} - returns the instance itself.
12056
12056
  */
12057
12057
 
12058
12058
  }, {
@@ -12061,10 +12061,10 @@ var date_TZDate = /*#__PURE__*/function () {
12061
12061
  this.setFullYear(this.getFullYear() + y);
12062
12062
  return this;
12063
12063
  }
12064
- /**
12065
- * Add months to the instance.
12066
- * @param {number} m - number of months to be added.
12067
- * @returns {TZDate} - returns the instance itself.
12064
+ /**
12065
+ * Add months to the instance.
12066
+ * @param {number} m - number of months to be added.
12067
+ * @returns {TZDate} - returns the instance itself.
12068
12068
  */
12069
12069
 
12070
12070
  }, {
@@ -12073,10 +12073,10 @@ var date_TZDate = /*#__PURE__*/function () {
12073
12073
  this.setMonth(this.getMonth() + m);
12074
12074
  return this;
12075
12075
  }
12076
- /**
12077
- * Add dates to the instance.
12078
- * @param {number} d - number of days to be added.
12079
- * @returns {TZDate} - returns the instance itself.
12076
+ /**
12077
+ * Add dates to the instance.
12078
+ * @param {number} d - number of days to be added.
12079
+ * @returns {TZDate} - returns the instance itself.
12080
12080
  */
12081
12081
 
12082
12082
  }, {
@@ -12085,10 +12085,10 @@ var date_TZDate = /*#__PURE__*/function () {
12085
12085
  this.setDate(this.getDate() + d);
12086
12086
  return this;
12087
12087
  }
12088
- /**
12089
- * Add hours to the instance.
12090
- * @param {number} h - number of hours to be added.
12091
- * @returns {TZDate} - returns the instance itself.
12088
+ /**
12089
+ * Add hours to the instance.
12090
+ * @param {number} h - number of hours to be added.
12091
+ * @returns {TZDate} - returns the instance itself.
12092
12092
  */
12093
12093
 
12094
12094
  }, {
@@ -12097,10 +12097,10 @@ var date_TZDate = /*#__PURE__*/function () {
12097
12097
  this.setHours(this.getHours() + h);
12098
12098
  return this;
12099
12099
  }
12100
- /**
12101
- * Add minutes to the instance.
12102
- * @param {number} M - number of minutes to be added.
12103
- * @returns {TZDate} - returns the instance itself.
12100
+ /**
12101
+ * Add minutes to the instance.
12102
+ * @param {number} M - number of minutes to be added.
12103
+ * @returns {TZDate} - returns the instance itself.
12104
12104
  */
12105
12105
 
12106
12106
  }, {
@@ -12109,10 +12109,10 @@ var date_TZDate = /*#__PURE__*/function () {
12109
12109
  this.setMinutes(this.getMinutes() + M);
12110
12110
  return this;
12111
12111
  }
12112
- /**
12113
- * Add seconds to the instance.
12114
- * @param {number} s - number of seconds to be added.
12115
- * @returns {TZDate} - returns the instance itself.
12112
+ /**
12113
+ * Add seconds to the instance.
12114
+ * @param {number} s - number of seconds to be added.
12115
+ * @returns {TZDate} - returns the instance itself.
12116
12116
  */
12117
12117
 
12118
12118
  }, {
@@ -12121,10 +12121,10 @@ var date_TZDate = /*#__PURE__*/function () {
12121
12121
  this.setSeconds(this.getSeconds() + s);
12122
12122
  return this;
12123
12123
  }
12124
- /**
12125
- * Add milliseconds to the instance.
12126
- * @param {number} ms - number of milliseconds to be added.
12127
- * @returns {TZDate} - returns the instance itself.
12124
+ /**
12125
+ * Add milliseconds to the instance.
12126
+ * @param {number} ms - number of milliseconds to be added.
12127
+ * @returns {TZDate} - returns the instance itself.
12128
12128
  */
12129
12129
 
12130
12130
  }, {
@@ -12135,16 +12135,16 @@ var date_TZDate = /*#__PURE__*/function () {
12135
12135
  }
12136
12136
  /* eslint-disable max-params*/
12137
12137
 
12138
- /**
12139
- * Set the date and time all at once.
12140
- * @param {number} y - year
12141
- * @param {number} m - month
12142
- * @param {number} d - date
12143
- * @param {number} h - hours
12144
- * @param {number} M - minutes
12145
- * @param {number} s - seconds
12146
- * @param {number} ms - milliseconds
12147
- * @returns {TZDate} - returns the instance itself.
12138
+ /**
12139
+ * Set the date and time all at once.
12140
+ * @param {number} y - year
12141
+ * @param {number} m - month
12142
+ * @param {number} d - date
12143
+ * @param {number} h - hours
12144
+ * @param {number} M - minutes
12145
+ * @param {number} s - seconds
12146
+ * @param {number} ms - milliseconds
12147
+ * @returns {TZDate} - returns the instance itself.
12148
12148
  */
12149
12149
 
12150
12150
  }, {
@@ -12154,9 +12154,9 @@ var date_TZDate = /*#__PURE__*/function () {
12154
12154
  this.setHours(h, M, s, ms);
12155
12155
  return this;
12156
12156
  }
12157
- /**
12158
- * Convert the instance to the native `Date` object.
12159
- * @returns {Date} - The native `Date` object.
12157
+ /**
12158
+ * Convert the instance to the native `Date` object.
12159
+ * @returns {Date} - The native `Date` object.
12160
12160
  */
12161
12161
 
12162
12162
  }, {
@@ -12164,9 +12164,9 @@ var date_TZDate = /*#__PURE__*/function () {
12164
12164
  value: function toDate() {
12165
12165
  return this.d.toDate();
12166
12166
  }
12167
- /**
12168
- * Get the value of the date. (milliseconds since 1970-01-01 00:00:00 (UTC+0))
12169
- * @returns {number} - value of the date.
12167
+ /**
12168
+ * Get the value of the date. (milliseconds since 1970-01-01 00:00:00 (UTC+0))
12169
+ * @returns {number} - value of the date.
12170
12170
  */
12171
12171
 
12172
12172
  }, {
@@ -12174,9 +12174,9 @@ var date_TZDate = /*#__PURE__*/function () {
12174
12174
  value: function valueOf() {
12175
12175
  return this.getTime();
12176
12176
  }
12177
- /**
12178
- * Get the timezone offset from UTC in minutes.
12179
- * @returns {number} - timezone offset in minutes.
12177
+ /**
12178
+ * Get the timezone offset from UTC in minutes.
12179
+ * @returns {number} - timezone offset in minutes.
12180
12180
  */
12181
12181
 
12182
12182
  }, {
@@ -12187,9 +12187,9 @@ var date_TZDate = /*#__PURE__*/function () {
12187
12187
  return (_this$tzOffset = this.tzOffset) !== null && _this$tzOffset !== void 0 ? _this$tzOffset : this.d.getTimezoneOffset();
12188
12188
  } // Native properties
12189
12189
 
12190
- /**
12191
- * Get milliseconds which is converted by timezone
12192
- * @returns {number} milliseconds
12190
+ /**
12191
+ * Get milliseconds which is converted by timezone
12192
+ * @returns {number} milliseconds
12193
12193
  */
12194
12194
 
12195
12195
  }, {
@@ -12197,9 +12197,9 @@ var date_TZDate = /*#__PURE__*/function () {
12197
12197
  value: function getTime() {
12198
12198
  return this.d.getTime();
12199
12199
  }
12200
- /**
12201
- * Get the year of the instance.
12202
- * @returns {number} - full year
12200
+ /**
12201
+ * Get the year of the instance.
12202
+ * @returns {number} - full year
12203
12203
  */
12204
12204
 
12205
12205
  }, {
@@ -12207,9 +12207,9 @@ var date_TZDate = /*#__PURE__*/function () {
12207
12207
  value: function getFullYear() {
12208
12208
  return this.d.getFullYear();
12209
12209
  }
12210
- /**
12211
- * Get the month of the instance. (zero-based)
12212
- * @returns {number} - month
12210
+ /**
12211
+ * Get the month of the instance. (zero-based)
12212
+ * @returns {number} - month
12213
12213
  */
12214
12214
 
12215
12215
  }, {
@@ -12217,9 +12217,9 @@ var date_TZDate = /*#__PURE__*/function () {
12217
12217
  value: function getMonth() {
12218
12218
  return this.d.getMonth();
12219
12219
  }
12220
- /**
12221
- * Get the date of the instance.
12222
- * @returns {number} - date
12220
+ /**
12221
+ * Get the date of the instance.
12222
+ * @returns {number} - date
12223
12223
  */
12224
12224
 
12225
12225
  }, {
@@ -12227,9 +12227,9 @@ var date_TZDate = /*#__PURE__*/function () {
12227
12227
  value: function getDate() {
12228
12228
  return this.d.getDate();
12229
12229
  }
12230
- /**
12231
- * Get the hours of the instance.
12232
- * @returns {number} - hours
12230
+ /**
12231
+ * Get the hours of the instance.
12232
+ * @returns {number} - hours
12233
12233
  */
12234
12234
 
12235
12235
  }, {
@@ -12237,9 +12237,9 @@ var date_TZDate = /*#__PURE__*/function () {
12237
12237
  value: function getHours() {
12238
12238
  return this.d.getHours();
12239
12239
  }
12240
- /**
12241
- * Get the minutes of the instance.
12242
- * @returns {number} - minutes
12240
+ /**
12241
+ * Get the minutes of the instance.
12242
+ * @returns {number} - minutes
12243
12243
  */
12244
12244
 
12245
12245
  }, {
@@ -12247,9 +12247,9 @@ var date_TZDate = /*#__PURE__*/function () {
12247
12247
  value: function getMinutes() {
12248
12248
  return this.d.getMinutes();
12249
12249
  }
12250
- /**
12251
- * Get the seconds of the instance.
12252
- * @returns {number} - seconds
12250
+ /**
12251
+ * Get the seconds of the instance.
12252
+ * @returns {number} - seconds
12253
12253
  */
12254
12254
 
12255
12255
  }, {
@@ -12257,9 +12257,9 @@ var date_TZDate = /*#__PURE__*/function () {
12257
12257
  value: function getSeconds() {
12258
12258
  return this.d.getSeconds();
12259
12259
  }
12260
- /**
12261
- * Get the milliseconds of the instance.
12262
- * @returns {number} - milliseconds
12260
+ /**
12261
+ * Get the milliseconds of the instance.
12262
+ * @returns {number} - milliseconds
12263
12263
  */
12264
12264
 
12265
12265
  }, {
@@ -12267,9 +12267,9 @@ var date_TZDate = /*#__PURE__*/function () {
12267
12267
  value: function getMilliseconds() {
12268
12268
  return this.d.getMilliseconds();
12269
12269
  }
12270
- /**
12271
- * Get the day of the week of the instance.
12272
- * @returns {number} - day of the week
12270
+ /**
12271
+ * Get the day of the week of the instance.
12272
+ * @returns {number} - day of the week
12273
12273
  */
12274
12274
 
12275
12275
  }, {
@@ -12277,10 +12277,10 @@ var date_TZDate = /*#__PURE__*/function () {
12277
12277
  value: function getDay() {
12278
12278
  return this.d.getDay();
12279
12279
  }
12280
- /**
12281
- * Sets the instance to the time represented by a number of milliseconds since 1970-01-01 00:00:00 (UTC+0).
12282
- * @param {number} t - number of milliseconds
12283
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12280
+ /**
12281
+ * Sets the instance to the time represented by a number of milliseconds since 1970-01-01 00:00:00 (UTC+0).
12282
+ * @param {number} t - number of milliseconds
12283
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12284
12284
  */
12285
12285
 
12286
12286
  }, {
@@ -12288,12 +12288,12 @@ var date_TZDate = /*#__PURE__*/function () {
12288
12288
  value: function setTime(t) {
12289
12289
  return this.d.setTime(t);
12290
12290
  }
12291
- /**
12292
- * Sets the year-month-date of the instance. Equivalent to calling `setFullYear` of `Date` object.
12293
- * @param {number} y - year
12294
- * @param {number} m - month (zero-based)
12295
- * @param {number} d - date
12296
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12291
+ /**
12292
+ * Sets the year-month-date of the instance. Equivalent to calling `setFullYear` of `Date` object.
12293
+ * @param {number} y - year
12294
+ * @param {number} m - month (zero-based)
12295
+ * @param {number} d - date
12296
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12297
12297
  */
12298
12298
 
12299
12299
  }, {
@@ -12303,11 +12303,11 @@ var date_TZDate = /*#__PURE__*/function () {
12303
12303
  var d = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.getDate();
12304
12304
  return this.d.setFullYear(y, m, d);
12305
12305
  }
12306
- /**
12307
- * Sets the month of the instance. Equivalent to calling `setMonth` of `Date` object.
12308
- * @param {number} m - month (zero-based)
12309
- * @param {number} d - date
12310
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12306
+ /**
12307
+ * Sets the month of the instance. Equivalent to calling `setMonth` of `Date` object.
12308
+ * @param {number} m - month (zero-based)
12309
+ * @param {number} d - date
12310
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12311
12311
  */
12312
12312
 
12313
12313
  }, {
@@ -12316,10 +12316,10 @@ var date_TZDate = /*#__PURE__*/function () {
12316
12316
  var d = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getDate();
12317
12317
  return this.d.setMonth(m, d);
12318
12318
  }
12319
- /**
12320
- * Sets the date of the instance. Equivalent to calling `setDate` of `Date` object.
12321
- * @param {number} d - date
12322
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12319
+ /**
12320
+ * Sets the date of the instance. Equivalent to calling `setDate` of `Date` object.
12321
+ * @param {number} d - date
12322
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12323
12323
  */
12324
12324
 
12325
12325
  }, {
@@ -12327,13 +12327,13 @@ var date_TZDate = /*#__PURE__*/function () {
12327
12327
  value: function setDate(d) {
12328
12328
  return this.d.setDate(d);
12329
12329
  }
12330
- /**
12331
- * Sets the hours of the instance. Equivalent to calling `setHours` of `Date` object.
12332
- * @param {number} h - hours
12333
- * @param {number} M - minutes
12334
- * @param {number} s - seconds
12335
- * @param {number} ms - milliseconds
12336
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12330
+ /**
12331
+ * Sets the hours of the instance. Equivalent to calling `setHours` of `Date` object.
12332
+ * @param {number} h - hours
12333
+ * @param {number} M - minutes
12334
+ * @param {number} s - seconds
12335
+ * @param {number} ms - milliseconds
12336
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12337
12337
  */
12338
12338
 
12339
12339
  }, {
@@ -12344,12 +12344,12 @@ var date_TZDate = /*#__PURE__*/function () {
12344
12344
  var ms = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : this.getMilliseconds();
12345
12345
  return this.d.setHours(h, M, s, ms);
12346
12346
  }
12347
- /**
12348
- * Sets the minutes of the instance. Equivalent to calling `setMinutes` of `Date` object.
12349
- * @param {number} M - minutes
12350
- * @param {number} s - seconds
12351
- * @param {number} ms - milliseconds
12352
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12347
+ /**
12348
+ * Sets the minutes of the instance. Equivalent to calling `setMinutes` of `Date` object.
12349
+ * @param {number} M - minutes
12350
+ * @param {number} s - seconds
12351
+ * @param {number} ms - milliseconds
12352
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12353
12353
  */
12354
12354
 
12355
12355
  }, {
@@ -12359,11 +12359,11 @@ var date_TZDate = /*#__PURE__*/function () {
12359
12359
  var ms = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : this.getMilliseconds();
12360
12360
  return this.d.setMinutes(M, s, ms);
12361
12361
  }
12362
- /**
12363
- * Sets the seconds of the instance. Equivalent to calling `setSeconds` of `Date` object.
12364
- * @param {number} s - seconds
12365
- * @param {number} ms - milliseconds
12366
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12362
+ /**
12363
+ * Sets the seconds of the instance. Equivalent to calling `setSeconds` of `Date` object.
12364
+ * @param {number} s - seconds
12365
+ * @param {number} ms - milliseconds
12366
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12367
12367
  */
12368
12368
 
12369
12369
  }, {
@@ -12372,10 +12372,10 @@ var date_TZDate = /*#__PURE__*/function () {
12372
12372
  var ms = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.getMilliseconds();
12373
12373
  return this.d.setSeconds(s, ms);
12374
12374
  }
12375
- /**
12376
- * Sets the milliseconds of the instance. Equivalent to calling `setMilliseconds` of `Date` object.
12377
- * @param {number} ms - milliseconds
12378
- * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12375
+ /**
12376
+ * Sets the milliseconds of the instance. Equivalent to calling `setMilliseconds` of `Date` object.
12377
+ * @param {number} ms - milliseconds
12378
+ * @returns {number} - Passed milliseconds of the instance since 1970-01-01 00:00:00 (UTC+0).
12379
12379
  */
12380
12380
 
12381
12381
  }, {
@@ -12383,10 +12383,10 @@ var date_TZDate = /*#__PURE__*/function () {
12383
12383
  value: function setMilliseconds(ms) {
12384
12384
  return this.d.setMilliseconds(ms);
12385
12385
  }
12386
- /**
12387
- * Set the timezone offset of the instance.
12388
- * @param {string|number} tzValue - The name of timezone(IANA name) or timezone offset(in minutes).
12389
- * @returns {TZDate} - New instance with the timezone offset.
12386
+ /**
12387
+ * Set the timezone offset of the instance.
12388
+ * @param {string|number} tzValue - The name of timezone(IANA name) or timezone offset(in minutes).
12389
+ * @returns {TZDate} - New instance with the timezone offset.
12390
12390
  */
12391
12391
 
12392
12392
  }, {
@@ -12401,15 +12401,15 @@ var date_TZDate = /*#__PURE__*/function () {
12401
12401
  newTZDate.tzOffset = tzOffset;
12402
12402
  return newTZDate;
12403
12403
  }
12404
- /**
12405
- * Get the new instance following the system's timezone.
12406
- * If the system timezone is different from the timezone of the instance,
12407
- * the instance is converted to the system timezone.
12408
- *
12409
- * Instance's `tzOffset` property will be ignored if there is a `tzValue` parameter.
12410
- *
12411
- * @param {string|number} tzValue - The name of timezone(IANA name) or timezone offset(in minutes).
12412
- * @returns {TZDate} - New instance with the system timezone.
12404
+ /**
12405
+ * Get the new instance following the system's timezone.
12406
+ * If the system timezone is different from the timezone of the instance,
12407
+ * the instance is converted to the system timezone.
12408
+ *
12409
+ * Instance's `tzOffset` property will be ignored if there is a `tzValue` parameter.
12410
+ *
12411
+ * @param {string|number} tzValue - The name of timezone(IANA name) or timezone offset(in minutes).
12412
+ * @returns {TZDate} - New instance with the system timezone.
12413
12413
  */
12414
12414
 
12415
12415
  }, {
@@ -12451,27 +12451,27 @@ function pick(obj) {
12451
12451
  return acc;
12452
12452
  }, {});
12453
12453
  }
12454
- /**
12455
- * Clone an instance of a ES6 class.
12456
- *
12457
- * The cloned instance will have the (most of) same properties as the original.
12458
- *
12459
- * Reference: https://stackoverflow.com/a/44782052
12454
+ /**
12455
+ * Clone an instance of a ES6 class.
12456
+ *
12457
+ * The cloned instance will have the (most of) same properties as the original.
12458
+ *
12459
+ * Reference: https://stackoverflow.com/a/44782052
12460
12460
  */
12461
12461
 
12462
12462
  function object_clone(source) {
12463
12463
  return Object.assign(Object.create(Object.getPrototypeOf(source)), source);
12464
12464
  }
12465
- /**
12466
- * Merge two objects together. And It has some pitfalls.
12467
- *
12468
- * For performance reason this function only mutates the target object.
12469
- *
12470
- * Also, it only merges values of nested objects. Array or TZDate instance will be totally replaced.
12471
- *
12472
- * Other non-basic objects are not supported.
12473
- *
12474
- * Since it mutates the target object, avoid using it outside immer `produce` function.
12465
+ /**
12466
+ * Merge two objects together. And It has some pitfalls.
12467
+ *
12468
+ * For performance reason this function only mutates the target object.
12469
+ *
12470
+ * Also, it only merges values of nested objects. Array or TZDate instance will be totally replaced.
12471
+ *
12472
+ * Other non-basic objects are not supported.
12473
+ *
12474
+ * Since it mutates the target object, avoid using it outside immer `produce` function.
12475
12475
  */
12476
12476
 
12477
12477
  function mergeObject(target) {
@@ -12512,81 +12512,81 @@ function eventUIModel_defineProperty(obj, key, value) { if (key in obj) { Object
12512
12512
 
12513
12513
 
12514
12514
  var eventUIPropsKey = ['top', 'left', 'width', 'height', 'exceedLeft', 'exceedRight', 'croppedStart', 'croppedEnd', 'goingDurationHeight', 'modelDurationHeight', 'comingDurationHeight', 'duplicateEvents', 'duplicateEventIndex', 'duplicateStarts', 'duplicateEnds', 'duplicateLeft', 'duplicateWidth', 'collapse', 'isMain'];
12515
- /**
12516
- * Set of UI-related properties for calendar event.
12517
- * @class
12518
- * @param {EventModel} event EventModel instance.
12515
+ /**
12516
+ * Set of UI-related properties for calendar event.
12517
+ * @class
12518
+ * @param {EventModel} event EventModel instance.
12519
12519
  */
12520
12520
 
12521
12521
  var EventUIModel = /*#__PURE__*/function () {
12522
12522
  // If it is one of duplicate events, represents the left value of a group of duplicate events.
12523
12523
  // If it is one of duplicate events, represents the width value of a group of duplicate events.
12524
12524
 
12525
- /**
12526
- * whether the actual start-date is before the render-start-date
12527
- * @type {boolean}
12525
+ /**
12526
+ * whether the actual start-date is before the render-start-date
12527
+ * @type {boolean}
12528
12528
  */
12529
12529
 
12530
- /**
12531
- * whether the actual end-date is after the render-end-date
12532
- * @type {boolean}
12530
+ /**
12531
+ * whether the actual end-date is after the render-end-date
12532
+ * @type {boolean}
12533
12533
  */
12534
12534
 
12535
- /**
12536
- * whether the actual start-date is before the render-start-date for column
12537
- * @type {boolean}
12535
+ /**
12536
+ * whether the actual start-date is before the render-start-date for column
12537
+ * @type {boolean}
12538
12538
  */
12539
12539
 
12540
- /**
12541
- * whether the actual end-date is after the render-end-date for column
12542
- * @type {boolean}
12540
+ /**
12541
+ * whether the actual end-date is after the render-end-date for column
12542
+ * @type {boolean}
12543
12543
  */
12544
12544
 
12545
- /**
12546
- * @type {number} percent
12545
+ /**
12546
+ * @type {number} percent
12547
12547
  */
12548
12548
 
12549
- /**
12550
- * @type {number} percent
12549
+ /**
12550
+ * @type {number} percent
12551
12551
  */
12552
12552
 
12553
- /**
12554
- * @type {number} percent
12553
+ /**
12554
+ * @type {number} percent
12555
12555
  */
12556
12556
 
12557
- /**
12558
- * the sorted list of duplicate events.
12559
- * @type {EventUIModel[]}
12557
+ /**
12558
+ * the sorted list of duplicate events.
12559
+ * @type {EventUIModel[]}
12560
12560
  */
12561
12561
 
12562
- /**
12563
- * the index of this event among the duplicate events.
12564
- * @type {number}
12562
+ /**
12563
+ * the index of this event among the duplicate events.
12564
+ * @type {number}
12565
12565
  */
12566
12566
 
12567
- /**
12568
- * represent the left value of a duplicate event.
12569
- * ex) calc(50% - 24px), calc(50%), ...
12570
- *
12571
- * @type {string}
12567
+ /**
12568
+ * represent the left value of a duplicate event.
12569
+ * ex) calc(50% - 24px), calc(50%), ...
12570
+ *
12571
+ * @type {string}
12572
12572
  */
12573
12573
 
12574
- /**
12575
- * represent the width value of a duplicate event.
12576
- * ex) calc(50% - 24px), 9px, ...
12577
- *
12578
- * @type {string}
12574
+ /**
12575
+ * represent the width value of a duplicate event.
12576
+ * ex) calc(50% - 24px), 9px, ...
12577
+ *
12578
+ * @type {string}
12579
12579
  */
12580
12580
 
12581
- /**
12582
- * whether the event is collapsed or not among the duplicate events.
12583
- * @type {boolean}
12581
+ /**
12582
+ * whether the event is collapsed or not among the duplicate events.
12583
+ * @type {boolean}
12584
12584
  */
12585
12585
 
12586
- /**
12587
- * whether the event is main or not.
12588
- * The main event is expanded on the initial rendering.
12589
- * @type {boolean}
12586
+ /**
12587
+ * whether the event is main or not.
12588
+ * The main event is expanded on the initial rendering.
12589
+ * @type {boolean}
12590
12590
  */
12591
12591
  function EventUIModel(event) {
12592
12592
  eventUIModel_classCallCheck(this, EventUIModel);
@@ -12638,10 +12638,10 @@ var EventUIModel = /*#__PURE__*/function () {
12638
12638
  value: function setUIProps(props) {
12639
12639
  Object.assign(this, props);
12640
12640
  }
12641
- /**
12642
- * return renderStarts property to render properly when specific event that exceed rendering date range.
12643
- *
12644
- * if renderStarts is not set. return model's start property.
12641
+ /**
12642
+ * return renderStarts property to render properly when specific event that exceed rendering date range.
12643
+ *
12644
+ * if renderStarts is not set. return model's start property.
12645
12645
  */
12646
12646
 
12647
12647
  }, {
@@ -12653,10 +12653,10 @@ var EventUIModel = /*#__PURE__*/function () {
12653
12653
 
12654
12654
  return this.model.getStarts();
12655
12655
  }
12656
- /**
12657
- * return renderStarts property to render properly when specific event that exceed rendering date range.
12658
- *
12659
- * if renderEnds is not set. return model's end property.
12656
+ /**
12657
+ * return renderStarts property to render properly when specific event that exceed rendering date range.
12658
+ *
12659
+ * if renderEnds is not set. return model's end property.
12660
12660
  */
12661
12661
 
12662
12662
  }, {
@@ -12668,8 +12668,8 @@ var EventUIModel = /*#__PURE__*/function () {
12668
12668
 
12669
12669
  return this.model.getEnds();
12670
12670
  }
12671
- /**
12672
- * @returns {number} unique number for model.
12671
+ /**
12672
+ * @returns {number} unique number for model.
12673
12673
  */
12674
12674
 
12675
12675
  }, {
@@ -12677,8 +12677,8 @@ var EventUIModel = /*#__PURE__*/function () {
12677
12677
  value: function cid() {
12678
12678
  return this.model.cid();
12679
12679
  }
12680
- /**
12681
- * Shadowing valueOf method for event sorting.
12680
+ /**
12681
+ * Shadowing valueOf method for event sorting.
12682
12682
  */
12683
12683
 
12684
12684
  }, {
@@ -12686,9 +12686,9 @@ var EventUIModel = /*#__PURE__*/function () {
12686
12686
  value: function valueOf() {
12687
12687
  return this.model;
12688
12688
  }
12689
- /**
12690
- * Link duration method
12691
- * @returns {number} EventModel#duration result.
12689
+ /**
12690
+ * Link duration method
12691
+ * @returns {number} EventModel#duration result.
12692
12692
  */
12693
12693
 
12694
12694
  }, {
@@ -12953,8 +12953,8 @@ var memo = {
12953
12953
  millisecondsFrom: {}
12954
12954
  };
12955
12955
  var convByTimeUnit = [24, 60, 60, 1000];
12956
- /**
12957
- * pad left zero characters
12956
+ /**
12957
+ * pad left zero characters
12958
12958
  */
12959
12959
 
12960
12960
  function leadingZero(number, length) {
@@ -13021,22 +13021,22 @@ var tokenFunc = {
13021
13021
  var MS_PER_DAY = 86400000;
13022
13022
  var MS_PER_HOUR = 3600000;
13023
13023
  var MS_PER_MINUTES = 60000;
13024
- /**
13025
- * The number of milliseconds 20 minutes for event min duration
13024
+ /**
13025
+ * The number of milliseconds 20 minutes for event min duration
13026
13026
  */
13027
13027
 
13028
13028
  var MS_EVENT_MIN_DURATION = 20 * MS_PER_MINUTES;
13029
13029
  var MS_PER_THIRTY_MINUTES = 30 * 60 * 1000;
13030
13030
  var SIXTY_SECONDS = 60;
13031
- /**
13032
- * Return formatted string as basis of supplied string.
13033
- *
13034
- * Supported Token Lists.
13035
- *
13036
- * - YYYY => 1988
13037
- * - MM => 01 ~ 12
13038
- * - DD => 01 ~ 31
13039
- * - YYYYMMDD => 19880925
13031
+ /**
13032
+ * Return formatted string as basis of supplied string.
13033
+ *
13034
+ * Supported Token Lists.
13035
+ *
13036
+ * - YYYY => 1988
13037
+ * - MM => 01 ~ 12
13038
+ * - DD => 01 ~ 31
13039
+ * - YYYYMMDD => 19880925
13040
13040
  */
13041
13041
 
13042
13042
  function datetime_toFormat(date, strFormat) {
@@ -13050,8 +13050,8 @@ function datetime_toFormat(date, strFormat) {
13050
13050
  });
13051
13051
  return result;
13052
13052
  }
13053
- /**
13054
- * convert to milliseconds
13053
+ /**
13054
+ * convert to milliseconds
13055
13055
  */
13056
13056
 
13057
13057
  function convMilliseconds(type, value, iteratee) {
@@ -13068,8 +13068,8 @@ function convMilliseconds(type, value, iteratee) {
13068
13068
 
13069
13069
  return [value].concat(convByTimeUnit.slice(index[type])).reduce(iteratee);
13070
13070
  }
13071
- /**
13072
- * Convert value to milliseconds
13071
+ /**
13072
+ * Convert value to milliseconds
13073
13073
  */
13074
13074
 
13075
13075
 
@@ -13092,8 +13092,8 @@ function millisecondsFrom(type, value) {
13092
13092
  cache[key] = result;
13093
13093
  return cache[key];
13094
13094
  }
13095
- /**
13096
- * Return 00:00:00 supplied date
13095
+ /**
13096
+ * Return 00:00:00 supplied date
13097
13097
  */
13098
13098
 
13099
13099
  function toStartOfDay(date) {
@@ -13101,8 +13101,8 @@ function toStartOfDay(date) {
13101
13101
  d.setHours(0, 0, 0, 0);
13102
13102
  return d;
13103
13103
  }
13104
- /**
13105
- * Make date array from supplied parameters
13104
+ /**
13105
+ * Make date array from supplied parameters
13106
13106
  */
13107
13107
 
13108
13108
  function makeDateRange(startDate, endDate, step) {
@@ -13120,19 +13120,19 @@ function makeDateRange(startDate, endDate, step) {
13120
13120
 
13121
13121
  return result;
13122
13122
  }
13123
- /**
13124
- * Clone supplied date
13123
+ /**
13124
+ * Clone supplied date
13125
13125
  */
13126
13126
 
13127
13127
  function datetime_clone(date) {
13128
13128
  return new date_TZDate(date);
13129
13129
  }
13130
- /**
13131
- * Compare two dates.
13132
- *
13133
- * when first date is latest then seconds then return -1.
13134
- *
13135
- * return +1 reverse, and return 0 is same.
13130
+ /**
13131
+ * Compare two dates.
13132
+ *
13133
+ * when first date is latest then seconds then return -1.
13134
+ *
13135
+ * return +1 reverse, and return 0 is same.
13136
13136
  */
13137
13137
 
13138
13138
  function compare(d1, d2) {
@@ -13165,15 +13165,15 @@ function max(d1, d2) {
13165
13165
  function min(d1, d2) {
13166
13166
  return compare(d1, d2) === -1 ? d1 : d2;
13167
13167
  }
13168
- /**
13169
- * Convert date string to date object.
13170
- * Only listed below formats available.
13171
- *
13172
- * - YYYYMMDD
13173
- * - YYYY/MM/DD
13174
- * - YYYY-MM-DD
13175
- * - YYYY/MM/DD HH:mm:SS
13176
- * - YYYY-MM-DD HH:mm:SS
13168
+ /**
13169
+ * Convert date string to date object.
13170
+ * Only listed below formats available.
13171
+ *
13172
+ * - YYYYMMDD
13173
+ * - YYYY/MM/DD
13174
+ * - YYYY-MM-DD
13175
+ * - YYYY/MM/DD HH:mm:SS
13176
+ * - YYYY-MM-DD HH:mm:SS
13177
13177
  */
13178
13178
 
13179
13179
  function parse(str) {
@@ -13207,9 +13207,9 @@ function parse(str) {
13207
13207
 
13208
13208
  return new date_TZDate().setWithRaw(Number(ymd[0]), Number(ymd[1]) + fixMonth, Number(ymd[2]), Number(hms[0]), Number(hms[1]), Number(hms[2]), 0);
13209
13209
  }
13210
- /**
13211
- * Return 23:59:59 supplied date.
13212
- * If you want to use milliseconds, use format 'YYYY-MM-DDTHH:mm:ss.sssZ' based on http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15
13210
+ /**
13211
+ * Return 23:59:59 supplied date.
13212
+ * If you want to use milliseconds, use format 'YYYY-MM-DDTHH:mm:ss.sssZ' based on http://www.ecma-international.org/ecma-262/5.1/#sec-15.9.1.15
13213
13213
  */
13214
13214
 
13215
13215
  function toEndOfDay(date) {
@@ -13226,8 +13226,8 @@ function isSunday(day) {
13226
13226
  function isSaturday(day) {
13227
13227
  return day === Day.SAT;
13228
13228
  }
13229
- /**
13230
- * Whether date is between supplied dates with date value?
13229
+ /**
13230
+ * Whether date is between supplied dates with date value?
13231
13231
  */
13232
13232
 
13233
13233
  function isBetweenWithDate(d, d1, d2) {
@@ -13253,8 +13253,8 @@ function toEndOfMonth(date) {
13253
13253
  endDate.setHours(23, 59, 59, 999);
13254
13254
  return endDate;
13255
13255
  }
13256
- /**
13257
- * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek
13256
+ /**
13257
+ * Calculate grid left(%), width(%) by narrowWeekend, startDayOfWeek, workweek
13258
13258
  */
13259
13259
 
13260
13260
  function getRowStyleInfo(days, narrowWeekend, startDayOfWeek, workweek) {
@@ -13327,10 +13327,10 @@ function subtractDate(d, steps) {
13327
13327
  date.setDate(d.getDate() - steps);
13328
13328
  return date;
13329
13329
  }
13330
- /**
13331
- * Inspired by `date-fns`
13332
- *
13333
- * See more: https://github.com/date-fns/date-fns/blob/master/src/addMonths/index.ts
13330
+ /**
13331
+ * Inspired by `date-fns`
13332
+ *
13333
+ * See more: https://github.com/date-fns/date-fns/blob/master/src/addMonths/index.ts
13334
13334
  */
13335
13335
 
13336
13336
  function addMonths(d) {
@@ -13456,8 +13456,8 @@ function eventModel_defineProperty(obj, key, value) { if (key in obj) { Object.d
13456
13456
 
13457
13457
 
13458
13458
  var EventModel = /*#__PURE__*/function () {
13459
- /**
13460
- * whether the event includes multiple dates
13459
+ /**
13460
+ * whether the event includes multiple dates
13461
13461
  */
13462
13462
  function EventModel() {
13463
13463
  var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
@@ -13640,8 +13640,8 @@ var EventModel = /*#__PURE__*/function () {
13640
13640
 
13641
13641
  this.hasMultiDates = this.end.getTime() - this.start.getTime() > MS_PER_DAY;
13642
13642
  }
13643
- /**
13644
- * @returns {TZDate} render start date.
13643
+ /**
13644
+ * @returns {TZDate} render start date.
13645
13645
  */
13646
13646
 
13647
13647
  }, {
@@ -13649,8 +13649,8 @@ var EventModel = /*#__PURE__*/function () {
13649
13649
  value: function getStarts() {
13650
13650
  return this.start;
13651
13651
  }
13652
- /**
13653
- * @returns {TZDate} render end date.
13652
+ /**
13653
+ * @returns {TZDate} render end date.
13654
13654
  */
13655
13655
 
13656
13656
  }, {
@@ -13658,8 +13658,8 @@ var EventModel = /*#__PURE__*/function () {
13658
13658
  value: function getEnds() {
13659
13659
  return this.end;
13660
13660
  }
13661
- /**
13662
- * @returns {number} instance unique id.
13661
+ /**
13662
+ * @returns {number} instance unique id.
13663
13663
  */
13664
13664
 
13665
13665
  }, {
@@ -13667,10 +13667,10 @@ var EventModel = /*#__PURE__*/function () {
13667
13667
  value: function cid() {
13668
13668
  return stamp(this);
13669
13669
  }
13670
- /**
13671
- * Check two are equals (means title, isAllday, start, end are same)
13672
- * @param {EventModel} event model instance to compare.
13673
- * @returns {boolean} Return false when not same.
13670
+ /**
13671
+ * Check two are equals (means title, isAllday, start, end are same)
13672
+ * @param {EventModel} event model instance to compare.
13673
+ * @returns {boolean} Return false when not same.
13674
13674
  */
13675
13675
  // eslint-disable-next-line complexity
13676
13676
 
@@ -13719,9 +13719,9 @@ var EventModel = /*#__PURE__*/function () {
13719
13719
 
13720
13720
  return true;
13721
13721
  }
13722
- /**
13723
- * return duration between start and end.
13724
- * @returns {number} duration milliseconds (UTC)
13722
+ /**
13723
+ * return duration between start and end.
13724
+ * @returns {number} duration milliseconds (UTC)
13725
13725
  */
13726
13726
 
13727
13727
  }, {
@@ -13744,12 +13744,12 @@ var EventModel = /*#__PURE__*/function () {
13744
13744
  value: function valueOf() {
13745
13745
  return this;
13746
13746
  }
13747
- /**
13748
- * Returns true if the given EventModel coincides with the same time as the
13749
- * calling EventModel.
13750
- * @param {EventModel | EventUIModel} event The other event to compare with this EventModel.
13751
- * @param {boolean = true} usingTravelTime When calculating collision, whether to calculate with travel time.
13752
- * @returns {boolean} If the other event occurs within the same time as the first object.
13747
+ /**
13748
+ * Returns true if the given EventModel coincides with the same time as the
13749
+ * calling EventModel.
13750
+ * @param {EventModel | EventUIModel} event The other event to compare with this EventModel.
13751
+ * @param {boolean = true} usingTravelTime When calculating collision, whether to calculate with travel time.
13752
+ * @returns {boolean} If the other event occurs within the same time as the first object.
13753
13753
  */
13754
13754
 
13755
13755
  }, {
@@ -13877,13 +13877,13 @@ function collection_defineProperty(obj, key, value) { if (key in obj) { Object.d
13877
13877
 
13878
13878
 
13879
13879
 
13880
- /**
13881
- * Generic collection base on ES6 Map.
13882
- *
13883
- * It needs function for get model's unique id.
13884
- *
13885
- * if the function is not supplied then it uses default function {@link Collection#getItemID}
13886
- * @param {function} [getItemIDFn] function for get model's id.
13880
+ /**
13881
+ * Generic collection base on ES6 Map.
13882
+ *
13883
+ * It needs function for get model's unique id.
13884
+ *
13885
+ * if the function is not supplied then it uses default function {@link Collection#getItemID}
13886
+ * @param {function} [getItemIDFn] function for get model's id.
13887
13887
  */
13888
13888
  var Collection = /*#__PURE__*/function () {
13889
13889
  function Collection(getItemIDFn) {
@@ -13895,20 +13895,20 @@ var Collection = /*#__PURE__*/function () {
13895
13895
  this.getItemID = getItemIDFn;
13896
13896
  }
13897
13897
  }
13898
- /**
13899
- * Combine supplied function filters and condition.
13900
- * @param {...Filter} filterFns - function filters
13901
- * @returns {function} combined filter
13898
+ /**
13899
+ * Combine supplied function filters and condition.
13900
+ * @param {...Filter} filterFns - function filters
13901
+ * @returns {function} combined filter
13902
13902
  */
13903
13903
 
13904
13904
 
13905
13905
  collection_createClass(Collection, [{
13906
13906
  key: "getItemID",
13907
13907
  value:
13908
- /**
13909
- * get model's unique id.
13910
- * @param {object} item model instance.
13911
- * @returns {string | number} model unique id.
13908
+ /**
13909
+ * get model's unique id.
13910
+ * @param {object} item model instance.
13911
+ * @returns {string | number} model unique id.
13912
13912
  */
13913
13913
  function getItemID(item) {
13914
13914
  var _item$_id;
@@ -13921,9 +13921,9 @@ var Collection = /*#__PURE__*/function () {
13921
13921
  var iterator = this.internalMap.values();
13922
13922
  return iterator.next().value;
13923
13923
  }
13924
- /**
13925
- * add models.
13926
- * @param {Object[]} items - models to add this collection.
13924
+ /**
13925
+ * add models.
13926
+ * @param {Object[]} items - models to add this collection.
13927
13927
  */
13928
13928
 
13929
13929
  }, {
@@ -13942,9 +13942,9 @@ var Collection = /*#__PURE__*/function () {
13942
13942
  });
13943
13943
  return this;
13944
13944
  }
13945
- /**
13946
- * remove models.
13947
- * @param {Array.<(Object|string|number)>} items model instances or unique ids to delete.
13945
+ /**
13946
+ * remove models.
13947
+ * @param {Array.<(Object|string|number)>} items model instances or unique ids to delete.
13948
13948
  */
13949
13949
 
13950
13950
  }, {
@@ -13971,10 +13971,10 @@ var Collection = /*#__PURE__*/function () {
13971
13971
  });
13972
13972
  return removeResult.length === 1 ? removeResult[0] : removeResult;
13973
13973
  }
13974
- /**
13975
- * check collection has specific model.
13976
- * @param {(object|string|number)} id model instance or id to check
13977
- * @returns {boolean} is has model?
13974
+ /**
13975
+ * check collection has specific model.
13976
+ * @param {(object|string|number)} id model instance or id to check
13977
+ * @returns {boolean} is has model?
13978
13978
  */
13979
13979
 
13980
13980
  }, {
@@ -13991,10 +13991,10 @@ var Collection = /*#__PURE__*/function () {
13991
13991
  var id = isString_default()(item) || isNumber_default()(item) ? item : this.getItemID(item);
13992
13992
  return (_this$internalMap$get = this.internalMap.get(id)) !== null && _this$internalMap$get !== void 0 ? _this$internalMap$get : null;
13993
13993
  }
13994
- /**
13995
- * invoke callback when model exist in collection.
13996
- * @param {(string|number)} id model unique id.
13997
- * @param {function} callback the callback.
13994
+ /**
13995
+ * invoke callback when model exist in collection.
13996
+ * @param {(string|number)} id model unique id.
13997
+ * @param {function} callback the callback.
13998
13998
  */
13999
13999
 
14000
14000
  }, {
@@ -14008,26 +14008,26 @@ var Collection = /*#__PURE__*/function () {
14008
14008
 
14009
14009
  callback(item);
14010
14010
  }
14011
- /**
14012
- * Search model. and return new collection.
14013
- * @param {function} filterFn filter function.
14014
- * @returns {Collection} new collection with filtered models.
14015
- * @example
14016
- * collection.filter(function(item) {
14017
- * return item.edited === true;
14018
- * });
14019
- *
14020
- * function filter1(item) {
14021
- * return item.edited === false;
14022
- * }
14023
- *
14024
- * function filter2(item) {
14025
- * return item.disabled === false;
14026
- * }
14027
- *
14028
- * collection.filter(Collection.and(filter1, filter2));
14029
- *
14030
- * collection.filter(Collection.or(filter1, filter2));
14011
+ /**
14012
+ * Search model. and return new collection.
14013
+ * @param {function} filterFn filter function.
14014
+ * @returns {Collection} new collection with filtered models.
14015
+ * @example
14016
+ * collection.filter(function(item) {
14017
+ * return item.edited === true;
14018
+ * });
14019
+ *
14020
+ * function filter1(item) {
14021
+ * return item.edited === false;
14022
+ * }
14023
+ *
14024
+ * function filter2(item) {
14025
+ * return item.disabled === false;
14026
+ * }
14027
+ *
14028
+ * collection.filter(Collection.and(filter1, filter2));
14029
+ *
14030
+ * collection.filter(Collection.or(filter1, filter2));
14031
14031
  */
14032
14032
 
14033
14033
  }, {
@@ -14046,24 +14046,24 @@ var Collection = /*#__PURE__*/function () {
14046
14046
  });
14047
14047
  return result;
14048
14048
  }
14049
- /**
14050
- * Group element by specific key values.
14051
- *
14052
- * if key parameter is function then invoke it and use returned value.
14053
- * @param {(string|number|function)} groupByFn key property or getter function.
14054
- * @returns {object.<string|number, Collection>} grouped object
14055
- * @example
14056
- * // pass `string`, `number`, `boolean` type value then group by property value.
14057
- * collection.groupBy('gender'); // group by 'gender' property value.
14058
- * collection.groupBy(50); // group by '50' property value.
14059
- *
14060
- * // pass `function` then group by return value. each invocation `function` is called with `(item)`.
14061
- * collection.groupBy(function(item) {
14062
- * if (item.score > 60) {
14063
- * return 'pass';
14064
- * }
14065
- * return 'fail';
14066
- * });
14049
+ /**
14050
+ * Group element by specific key values.
14051
+ *
14052
+ * if key parameter is function then invoke it and use returned value.
14053
+ * @param {(string|number|function)} groupByFn key property or getter function.
14054
+ * @returns {object.<string|number, Collection>} grouped object
14055
+ * @example
14056
+ * // pass `string`, `number`, `boolean` type value then group by property value.
14057
+ * collection.groupBy('gender'); // group by 'gender' property value.
14058
+ * collection.groupBy(50); // group by '50' property value.
14059
+ *
14060
+ * // pass `function` then group by return value. each invocation `function` is called with `(item)`.
14061
+ * collection.groupBy(function(item) {
14062
+ * if (item.score > 60) {
14063
+ * return 'pass';
14064
+ * }
14065
+ * return 'fail';
14066
+ * });
14067
14067
  */
14068
14068
 
14069
14069
  }, {
@@ -14086,10 +14086,10 @@ var Collection = /*#__PURE__*/function () {
14086
14086
  });
14087
14087
  return result;
14088
14088
  }
14089
- /**
14090
- * Return the first item in collection that satisfies the provided function.
14091
- * @param {function} [findFn] - function filter
14092
- * @returns {object|null} item.
14089
+ /**
14090
+ * Return the first item in collection that satisfies the provided function.
14091
+ * @param {function} [findFn] - function filter
14092
+ * @returns {object|null} item.
14093
14093
  */
14094
14094
 
14095
14095
  }, {
@@ -14110,10 +14110,10 @@ var Collection = /*#__PURE__*/function () {
14110
14110
 
14111
14111
  return result;
14112
14112
  }
14113
- /**
14114
- * sort a basis of supplied compare function.
14115
- * @param {function} compareFn compareFunction
14116
- * @returns {array} sorted array.
14113
+ /**
14114
+ * sort a basis of supplied compare function.
14115
+ * @param {function} compareFn compareFunction
14116
+ * @returns {array} sorted array.
14117
14117
  */
14118
14118
 
14119
14119
  }, {
@@ -14121,11 +14121,11 @@ var Collection = /*#__PURE__*/function () {
14121
14121
  value: function sort(compareFn) {
14122
14122
  return this.toArray().sort(compareFn);
14123
14123
  }
14124
- /**
14125
- * iterate each model element.
14126
- *
14127
- * when iteratee return false then break the loop.
14128
- * @param {function} iteratee iteratee(item, index, items)
14124
+ /**
14125
+ * iterate each model element.
14126
+ *
14127
+ * when iteratee return false then break the loop.
14128
+ * @param {function} iteratee iteratee(item, index, items)
14129
14129
  */
14130
14130
 
14131
14131
  }, {
@@ -14146,8 +14146,8 @@ var Collection = /*#__PURE__*/function () {
14146
14146
  next = entries.next();
14147
14147
  }
14148
14148
  }
14149
- /**
14150
- * remove all models in collection.
14149
+ /**
14150
+ * remove all models in collection.
14151
14151
  */
14152
14152
 
14153
14153
  }, {
@@ -14155,9 +14155,9 @@ var Collection = /*#__PURE__*/function () {
14155
14155
  value: function clear() {
14156
14156
  this.internalMap.clear();
14157
14157
  }
14158
- /**
14159
- * return new array with collection items.
14160
- * @returns {array} new array.
14158
+ /**
14159
+ * return new array with collection items.
14160
+ * @returns {array} new array.
14161
14161
  */
14162
14162
 
14163
14163
  }, {
@@ -14188,10 +14188,10 @@ var Collection = /*#__PURE__*/function () {
14188
14188
  return true;
14189
14189
  };
14190
14190
  }
14191
- /**
14192
- * Combine multiple function filters with OR clause.
14193
- * @param {...function} filterFns - function filters
14194
- * @returns {function} combined filter
14191
+ /**
14192
+ * Combine multiple function filters with OR clause.
14193
+ * @param {...function} filterFns - function filters
14194
+ * @returns {function} combined filter
14195
14195
  */
14196
14196
 
14197
14197
  }, {
@@ -14272,9 +14272,9 @@ function base_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
14272
14272
 
14273
14273
 
14274
14274
 
14275
- /**
14276
- * Make a event collection
14277
- * @returns {Collection<EventModel>} instance
14275
+ /**
14276
+ * Make a event collection
14277
+ * @returns {Collection<EventModel>} instance
14278
14278
  */
14279
14279
  function createEventCollection() {
14280
14280
  var collection = new Collection(function (event) {
@@ -14287,11 +14287,11 @@ function createEventCollection() {
14287
14287
 
14288
14288
  return collection;
14289
14289
  }
14290
- /**
14291
- * Calculate contain dates in event.
14292
- * @param {TZDate} start - start date of range
14293
- * @param {TZDate} end - end date of range
14294
- * @returns {array} contain dates.
14290
+ /**
14291
+ * Calculate contain dates in event.
14292
+ * @param {TZDate} start - start date of range
14293
+ * @param {TZDate} end - end date of range
14294
+ * @returns {array} contain dates.
14295
14295
  */
14296
14296
 
14297
14297
  function getDateRange(start, end) {
@@ -14300,11 +14300,11 @@ function getDateRange(start, end) {
14300
14300
  function isAllday(event) {
14301
14301
  return event.isAllday || event.category === 'time' && Number(event.end) - Number(event.start) > MS_PER_DAY;
14302
14302
  }
14303
- /**
14304
- * function for group each event models.
14305
- * @type {function}
14306
- * @param {EventUIModel} uiModel - ui model instance
14307
- * @returns {string} group key
14303
+ /**
14304
+ * function for group each event models.
14305
+ * @type {function}
14306
+ * @param {EventUIModel} uiModel - ui model instance
14307
+ * @returns {string} group key
14308
14308
  */
14309
14309
 
14310
14310
  function filterByCategory(uiModel) {
@@ -14316,14 +14316,14 @@ function filterByCategory(uiModel) {
14316
14316
 
14317
14317
  return model.category;
14318
14318
  }
14319
- /****************
14320
- * Events CRUD
14319
+ /****************
14320
+ * Events CRUD
14321
14321
  ****************/
14322
14322
 
14323
- /**
14324
- * Set date matrix to supplied event model instance.
14325
- * @param {IDS_OF_DAY} idsOfDay - ids of day
14326
- * @param {EventModel} event - instance of event model.
14323
+ /**
14324
+ * Set date matrix to supplied event model instance.
14325
+ * @param {IDS_OF_DAY} idsOfDay - ids of day
14326
+ * @param {EventModel} event - instance of event model.
14327
14327
  */
14328
14328
 
14329
14329
  function addToMatrix(idsOfDay, event) {
@@ -14334,10 +14334,10 @@ function addToMatrix(idsOfDay, event) {
14334
14334
  matrix.push(event.cid());
14335
14335
  });
14336
14336
  }
14337
- /**
14338
- * Remove event's id from matrix.
14339
- * @param {IDS_OF_DAY} idsOfDay - ids of day
14340
- * @param {EventModel} event - instance of event model
14337
+ /**
14338
+ * Remove event's id from matrix.
14339
+ * @param {IDS_OF_DAY} idsOfDay - ids of day
14340
+ * @param {EventModel} event - instance of event model
14341
14341
  */
14342
14342
 
14343
14343
  function removeFromMatrix(idsOfDay, event) {
@@ -14365,13 +14365,13 @@ function base_createEvents(calendarData) {
14365
14365
  return createEvent(calendarData, eventData);
14366
14366
  });
14367
14367
  }
14368
- /**
14369
- * Update an event.
14370
- * @param {CalendarData} calendarData - data of calendar
14371
- * @param {string} eventId - event id
14372
- * @param {string} calendarId - calendar id
14373
- * @param {EventObject} eventData - event data
14374
- * @returns {boolean} success or failure
14368
+ /**
14369
+ * Update an event.
14370
+ * @param {CalendarData} calendarData - data of calendar
14371
+ * @param {string} eventId - event id
14372
+ * @param {string} calendarId - calendar id
14373
+ * @param {EventObject} eventData - event data
14374
+ * @returns {boolean} success or failure
14375
14375
  */
14376
14376
 
14377
14377
  function base_updateEvent(calendarData, eventId, calendarId, eventData) {
@@ -14389,11 +14389,11 @@ function base_updateEvent(calendarData, eventId, calendarId, eventData) {
14389
14389
  addToMatrix(idsOfDay, event);
14390
14390
  return true;
14391
14391
  }
14392
- /**
14393
- * Delete event instance from controller.
14394
- * @param {CalendarData} calendarData - data of calendar
14395
- * @param {EventModel} event - event model instance to delete
14396
- * @returns {EventModel} deleted model instance.
14392
+ /**
14393
+ * Delete event instance from controller.
14394
+ * @param {CalendarData} calendarData - data of calendar
14395
+ * @param {EventModel} event - event model instance to delete
14396
+ * @returns {EventModel} deleted model instance.
14397
14397
  */
14398
14398
 
14399
14399
  function base_deleteEvent(calendarData, event) {
@@ -14405,22 +14405,22 @@ function base_clearEvents(calendarData) {
14405
14405
  calendarData.idsOfDay = {};
14406
14406
  calendarData.events.clear();
14407
14407
  }
14408
- /**
14409
- * Set calendar list
14410
- * @param {CalendarData} calendarData - data of calendar
14411
- * @param {Array.<Calendar>} calendars - calendar list
14408
+ /**
14409
+ * Set calendar list
14410
+ * @param {CalendarData} calendarData - data of calendar
14411
+ * @param {Array.<Calendar>} calendars - calendar list
14412
14412
  */
14413
14413
 
14414
14414
  function setCalendars(calendarData, calendars) {
14415
14415
  calendarData.calendars = calendars;
14416
14416
  }
14417
- /**
14418
- * Return events in supplied date range.
14419
- *
14420
- * available only YMD.
14421
- * @param {CalendarData} calendarData - data of calendar
14422
- * @param {{start: TZDate, end: TZDate}} condition - condition of find range
14423
- * @returns {object.<string, Collection>} event collection grouped by dates.
14417
+ /**
14418
+ * Return events in supplied date range.
14419
+ *
14420
+ * available only YMD.
14421
+ * @param {CalendarData} calendarData - data of calendar
14422
+ * @param {{start: TZDate, end: TZDate}} condition - condition of find range
14423
+ * @returns {object.<string, Collection>} event collection grouped by dates.
14424
14424
  */
14425
14425
 
14426
14426
  function findByDateRange(calendarData, condition) {
@@ -15481,10 +15481,10 @@ function store_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15481
15481
 
15482
15482
 
15483
15483
 
15484
- /**
15485
- * Inspired by Zustand
15486
- *
15487
- * See more: https://github.com/pmndrs/zustand
15484
+ /**
15485
+ * Inspired by Zustand
15486
+ *
15487
+ * See more: https://github.com/pmndrs/zustand
15488
15488
  */
15489
15489
  var isSSR = isUndefined_default()(window) || !window.navigator;
15490
15490
  var useIsomorphicLayoutEffect = isSSR ? hooks_module_ : hooks_module_h;
@@ -15579,9 +15579,9 @@ function createStoreContext() {
15579
15579
  }, []);
15580
15580
  return hasNewStateSlice ? newStateSlice : currentSliceRef.current;
15581
15581
  };
15582
- /**
15583
- * For handling often occurring state changes (Transient updates)
15584
- * See more: https://github.com/pmndrs/zustand/blob/master/readme.md#transient-updates-for-often-occuring-state-changes
15582
+ /**
15583
+ * For handling often occurring state changes (Transient updates)
15584
+ * See more: https://github.com/pmndrs/zustand/blob/master/readme.md#transient-updates-for-often-occuring-state-changes
15585
15585
  */
15586
15586
 
15587
15587
 
@@ -15767,9 +15767,9 @@ var browser_default = /*#__PURE__*/__webpack_require__.n(browser);
15767
15767
  // For temporarily saving original target value
15768
15768
 
15769
15769
  var TEMP_TARGET_ATTRIBUTE = 'data-target-temp';
15770
- /**
15771
- * Add DOMPurify hook to handling exceptional rules for certain HTML attributes.
15772
- * Should be set when the calendar instance is created.
15770
+ /**
15771
+ * Add DOMPurify hook to handling exceptional rules for certain HTML attributes.
15772
+ * Should be set when the calendar instance is created.
15773
15773
  */
15774
15774
 
15775
15775
  function addAttributeHooks() {
@@ -15796,16 +15796,16 @@ function addAttributeHooks() {
15796
15796
  }
15797
15797
  });
15798
15798
  }
15799
- /**
15800
- * Remove all attribute sanitizing hooks.
15801
- * Use it in `Calendar#destroy`.
15799
+ /**
15800
+ * Remove all attribute sanitizing hooks.
15801
+ * Use it in `Calendar#destroy`.
15802
15802
  */
15803
15803
 
15804
15804
  function removeAttributeHooks() {
15805
15805
  browser_default().removeAllHooks();
15806
15806
  }
15807
- /**
15808
- * Prevent XSS attack by sanitizing input string values via DOMPurify
15807
+ /**
15808
+ * Prevent XSS attack by sanitizing input string values via DOMPurify
15809
15809
  */
15810
15810
 
15811
15811
  function sanitize(str) {
@@ -16040,9 +16040,9 @@ function DayName(_ref3) {
16040
16040
  ;// CONCATENATED MODULE: ./src/selectors/theme.ts
16041
16041
 
16042
16042
 
16043
- /**
16044
- * Selectors for the theme state.
16045
- * Use selectors with `useTheme` hooks only.
16043
+ /**
16044
+ * Selectors for the theme state.
16045
+ * Use selectors with `useTheme` hooks only.
16046
16046
  */
16047
16047
  var commonThemeSelector = topLevelStateSelector('common');
16048
16048
  var theme_weekThemeSelector = topLevelStateSelector('week');
@@ -16430,11 +16430,11 @@ var CellBarType;
16430
16430
 
16431
16431
 
16432
16432
 
16433
- /**
16434
- * Calculate collision group.
16435
- * @param {Array<EventModel|EventUIModel>} events list of ui models.
16436
- * @param {boolean} [usingTravelTime = true]
16437
- * @returns {Array<number[]>} Collision Group.
16433
+ /**
16434
+ * Calculate collision group.
16435
+ * @param {Array<EventModel|EventUIModel>} events list of ui models.
16436
+ * @param {boolean} [usingTravelTime = true]
16437
+ * @returns {Array<number[]>} Collision Group.
16438
16438
  */
16439
16439
  function getCollisionGroup(events) {
16440
16440
  var usingTravelTime = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
@@ -16470,11 +16470,11 @@ function getCollisionGroup(events) {
16470
16470
  });
16471
16471
  return collisionGroups;
16472
16472
  }
16473
- /**
16474
- * Get row length by column index in 2d matrix.
16475
- * @param {array[]} matrix Matrix
16476
- * @param {number} col Column index.
16477
- * @returns {number} Last row number in column or -1
16473
+ /**
16474
+ * Get row length by column index in 2d matrix.
16475
+ * @param {array[]} matrix Matrix
16476
+ * @param {number} col Column index.
16477
+ * @returns {number} Last row number in column or -1
16478
16478
  */
16479
16479
 
16480
16480
  function getLastRowInColumn(matrix, col) {
@@ -16490,12 +16490,12 @@ function getLastRowInColumn(matrix, col) {
16490
16490
 
16491
16491
  return -1;
16492
16492
  }
16493
- /**
16494
- * Calculate matrix for appointment block element placing.
16495
- * @param {Collection} collection model collection.
16496
- * @param {Array<number[]>} collisionGroups Collision groups for event set.
16497
- * @param {boolean} [usingTravelTime = true]
16498
- * @returns {array} matrices
16493
+ /**
16494
+ * Calculate matrix for appointment block element placing.
16495
+ * @param {Collection} collection model collection.
16496
+ * @param {Array<number[]>} collisionGroups Collision groups for event set.
16497
+ * @param {boolean} [usingTravelTime = true]
16498
+ * @returns {array} matrices
16499
16499
  */
16500
16500
 
16501
16501
  function getMatrices(collection, collisionGroups) {
@@ -16534,11 +16534,11 @@ function getMatrices(collection, collisionGroups) {
16534
16534
  });
16535
16535
  return result;
16536
16536
  }
16537
- /**
16538
- * Filter that get event model in supplied date ranges.
16539
- * @param {TZDate} start - start date
16540
- * @param {TZDate} end - end date
16541
- * @returns {function} event filter function
16537
+ /**
16538
+ * Filter that get event model in supplied date ranges.
16539
+ * @param {TZDate} start - start date
16540
+ * @param {TZDate} end - end date
16541
+ * @returns {function} event filter function
16542
16542
  */
16543
16543
 
16544
16544
  function getEventInDateRangeFilter(start, end) {
@@ -16553,12 +16553,12 @@ function getEventInDateRangeFilter(start, end) {
16553
16553
  return !(ownEnds < start || ownStarts > end);
16554
16554
  };
16555
16555
  }
16556
- /**
16557
- * Position each ui model for placing into container
16558
- * @param {TZDate} start - start date to render
16559
- * @param {TZDate} end - end date to render
16560
- * @param {Matrix3d} matrices - matrices from controller
16561
- * @param {function} [iteratee] - iteratee function invoke each ui models
16556
+ /**
16557
+ * Position each ui model for placing into container
16558
+ * @param {TZDate} start - start date to render
16559
+ * @param {TZDate} end - end date to render
16560
+ * @param {Matrix3d} matrices - matrices from controller
16561
+ * @param {function} [iteratee] - iteratee function invoke each ui models
16562
16562
  */
16563
16563
 
16564
16564
  function positionUIModels(start, end, matrices, iteratee) {
@@ -16582,12 +16582,12 @@ function positionUIModels(start, end, matrices, iteratee) {
16582
16582
  });
16583
16583
  });
16584
16584
  }
16585
- /**
16586
- * Limit render range for ui models
16587
- * @param {TZDate} start
16588
- * @param {TZDate} end
16589
- * @param {EventUIModel} uiModel - ui model instance
16590
- * @returns {EventUIModel} ui model that limited render range
16585
+ /**
16586
+ * Limit render range for ui models
16587
+ * @param {TZDate} start
16588
+ * @param {TZDate} end
16589
+ * @param {EventUIModel} uiModel - ui model instance
16590
+ * @returns {EventUIModel} ui model that limited render range
16591
16591
  */
16592
16592
 
16593
16593
  function limit(start, end, uiModel) {
@@ -16603,13 +16603,13 @@ function limit(start, end, uiModel) {
16603
16603
 
16604
16604
  return uiModel;
16605
16605
  }
16606
- /**
16607
- * Limit start, end date each ui model for render properly
16608
- * @param {TZDate} start - start date to render
16609
- * @param {TZDate} end - end date to render
16610
- * @param {Collection<EventUIModel>|EventUIModel} uiModelColl - collection of EventUIModel or EventUIModel
16611
- * @returns {?EventUIModel} return ui model when third parameter is
16612
- * ui model
16606
+ /**
16607
+ * Limit start, end date each ui model for render properly
16608
+ * @param {TZDate} start - start date to render
16609
+ * @param {TZDate} end - end date to render
16610
+ * @param {Collection<EventUIModel>|EventUIModel} uiModelColl - collection of EventUIModel or EventUIModel
16611
+ * @returns {?EventUIModel} return ui model when third parameter is
16612
+ * ui model
16613
16613
  */
16614
16614
 
16615
16615
 
@@ -16624,10 +16624,10 @@ function limitRenderRange(start, end, uiModelColl) {
16624
16624
 
16625
16625
  return limit(start, end, uiModelColl);
16626
16626
  }
16627
- /**
16628
- * Convert event model collection to ui model collection.
16629
- * @param {Collection} eventCollection - collection of event model
16630
- * @returns {Collection} collection of event ui model
16627
+ /**
16628
+ * Convert event model collection to ui model collection.
16629
+ * @param {Collection} eventCollection - collection of event model
16630
+ * @returns {Collection} collection of event ui model
16631
16631
  */
16632
16632
 
16633
16633
  function convertToUIModel(eventCollection) {
@@ -16675,28 +16675,28 @@ function month_arrayLikeToArray(arr, len) { if (len == null || len > arr.length)
16675
16675
 
16676
16676
 
16677
16677
 
16678
- /**
16679
- * Filter function for find allday event
16680
- * @param {EventUIModel} uiModel - ui model
16681
- * @returns {boolean} whether model is allday event?
16678
+ /**
16679
+ * Filter function for find allday event
16680
+ * @param {EventUIModel} uiModel - ui model
16681
+ * @returns {boolean} whether model is allday event?
16682
16682
  */
16683
16683
  function _isAllday(_ref) {
16684
16684
  var model = _ref.model;
16685
16685
  return model.isAllday || model.hasMultiDates;
16686
16686
  }
16687
- /**
16688
- * Filter function for find time event
16689
- * @param {EventUIModel} uiModel - ui model
16690
- * @returns {boolean} whether model is time event?
16687
+ /**
16688
+ * Filter function for find time event
16689
+ * @param {EventUIModel} uiModel - ui model
16690
+ * @returns {boolean} whether model is time event?
16691
16691
  */
16692
16692
 
16693
16693
 
16694
16694
  function _isNotAllday(uiModel) {
16695
16695
  return !_isAllday(uiModel);
16696
16696
  }
16697
- /**
16698
- * Weight top value +1 for month view render
16699
- * @param {EventUIModel} uiModel - ui model
16697
+ /**
16698
+ * Weight top value +1 for month view render
16699
+ * @param {EventUIModel} uiModel - ui model
16700
16700
  */
16701
16701
 
16702
16702
 
@@ -16704,14 +16704,14 @@ function _weightTopValue(uiModel) {
16704
16704
  uiModel.top = uiModel.top || 0;
16705
16705
  uiModel.top += 1;
16706
16706
  }
16707
- /**
16708
- * Adjust render range to render properly.
16709
- *
16710
- * Limit start, end for each allday events and expand start, end for
16711
- * each time events
16712
- * @param {TZDate} start - render start date
16713
- * @param {TZDate} end - render end date
16714
- * @param {Collection} uiModelColl - collection of ui model.
16707
+ /**
16708
+ * Adjust render range to render properly.
16709
+ *
16710
+ * Limit start, end for each allday events and expand start, end for
16711
+ * each time events
16712
+ * @param {TZDate} start - render start date
16713
+ * @param {TZDate} end - render end date
16714
+ * @param {Collection} uiModelColl - collection of ui model.
16715
16715
  */
16716
16716
 
16717
16717
 
@@ -16722,12 +16722,12 @@ function _adjustRenderRange(start, end, uiModelColl) {
16722
16722
  }
16723
16723
  });
16724
16724
  }
16725
- /**
16726
- * Get max top index value for allday events in specific date (YMD)
16727
- * @param idsOfDay
16728
- * @param {string} ymd - yyyymmdd formatted value
16729
- * @param {Collection} uiModelAlldayColl - collection of allday events
16730
- * @returns {number} max top index value in date
16725
+ /**
16726
+ * Get max top index value for allday events in specific date (YMD)
16727
+ * @param idsOfDay
16728
+ * @param {string} ymd - yyyymmdd formatted value
16729
+ * @param {Collection} uiModelAlldayColl - collection of allday events
16730
+ * @returns {number} max top index value in date
16731
16731
  */
16732
16732
 
16733
16733
 
@@ -16745,10 +16745,10 @@ function _getAlldayMaxTopIndexAtYMD(idsOfDay, ymd, uiModelAlldayColl) {
16745
16745
 
16746
16746
  return 0;
16747
16747
  }
16748
- /**
16749
- * Adjust time ui model's top index value
16750
- * @param idsOfDay
16751
- * @param {Collection} uiModelColl - collection of ui ui model
16748
+ /**
16749
+ * Adjust time ui model's top index value
16750
+ * @param idsOfDay
16751
+ * @param {Collection} uiModelColl - collection of ui ui model
16752
16752
  */
16753
16753
 
16754
16754
 
@@ -16767,10 +16767,10 @@ function _adjustTimeTopIndex(idsOfDay, uiModelColl) {
16767
16767
  maxIndexInYMD[eventYMD] = timeUIModel.top = alldayMaxTopInYMD + 1;
16768
16768
  });
16769
16769
  }
16770
- /**
16771
- * Adjust time ui model's top index value
16772
- * @param {IDS_OF_DAY} idsOfDay - ids of days
16773
- * @param {Collection} uiModelColl - collection of ui ui model
16770
+ /**
16771
+ * Adjust time ui model's top index value
16772
+ * @param {IDS_OF_DAY} idsOfDay - ids of days
16773
+ * @param {Collection} uiModelColl - collection of ui ui model
16774
16774
  */
16775
16775
 
16776
16776
 
@@ -16806,10 +16806,10 @@ function _stackTimeFromTop(idsOfDay, uiModelColl) {
16806
16806
  topArrayInYMD.push(timeUIModel.top);
16807
16807
  });
16808
16808
  }
16809
- /**
16810
- * Convert multi-date time event to all-day event
16811
- * @param {Collection} uiModelColl - collection of ui models.
16812
- * property.
16809
+ /**
16810
+ * Convert multi-date time event to all-day event
16811
+ * @param {Collection} uiModelColl - collection of ui models.
16812
+ * property.
16813
16813
  */
16814
16814
 
16815
16815
 
@@ -16826,11 +16826,11 @@ function _addMultiDatesInfo(uiModelColl) {
16826
16826
  }
16827
16827
  });
16828
16828
  }
16829
- /**
16830
- * Find event and get ui model for specific month
16831
- * @returns {object} ui model data
16832
- * @param calendarData
16833
- * @param condition
16829
+ /**
16830
+ * Find event and get ui model for specific month
16831
+ * @returns {object} ui model data
16832
+ * @param calendarData
16833
+ * @param condition
16834
16834
  */
16835
16835
 
16836
16836
 
@@ -16921,15 +16921,15 @@ function week_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16921
16921
 
16922
16922
 
16923
16923
 
16924
- /**********
16925
- * TIME GRID VIEW
16924
+ /**********
16925
+ * TIME GRID VIEW
16926
16926
  **********/
16927
16927
 
16928
- /**
16929
- * make a filter function that is not included range of start, end hour
16930
- * @param {number} hStart - hour start
16931
- * @param {number} hEnd - hour end
16932
- * @returns {function} - filtering function
16928
+ /**
16929
+ * make a filter function that is not included range of start, end hour
16930
+ * @param {number} hStart - hour start
16931
+ * @param {number} hEnd - hour end
16932
+ * @returns {function} - filtering function
16933
16933
  */
16934
16934
  function _makeHourRangeFilter(hStart, hEnd) {
16935
16935
  // eslint-disable-next-line complexity
@@ -16946,13 +16946,13 @@ function _makeHourRangeFilter(hStart, hEnd) {
16946
16946
  return ownHourStartTime >= hourStart && ownHourStartTime < hourEnd || ownHourEndTime > hourStart && ownHourEndTime <= hourEnd || ownHourStartTime < hourStart && ownHourEndTime > hourStart || ownHourEndTime > hourEnd && ownHourStartTime < hourEnd;
16947
16947
  };
16948
16948
  }
16949
- /**
16950
- * make ui model function depending on start and end hour
16951
- * if time view options has start or end hour condition
16952
- * it add filter
16953
- * @param {number} hourStart - start hour to be shown
16954
- * @param {number} hourEnd - end hour to be shown
16955
- * @returns {function} function
16949
+ /**
16950
+ * make ui model function depending on start and end hour
16951
+ * if time view options has start or end hour condition
16952
+ * it add filter
16953
+ * @param {number} hourStart - start hour to be shown
16954
+ * @param {number} hourEnd - end hour to be shown
16955
+ * @returns {function} function
16956
16956
  */
16957
16957
 
16958
16958
  function _makeGetUIModelFuncForTimeView(hourStart, hourEnd) {
@@ -16966,13 +16966,13 @@ function _makeGetUIModelFuncForTimeView(hourStart, hourEnd) {
16966
16966
  return uiModelColl.filter(_makeHourRangeFilter(hourStart, hourEnd)).sort(array.compare.event.asc);
16967
16967
  };
16968
16968
  }
16969
- /**
16970
- * split event model by ymd.
16971
- * @param {IDS_OF_DAY} idsOfDay - ids of days
16972
- * @param {TZDate} start - start date
16973
- * @param {TZDate} end - end date
16974
- * @param {Collection<EventUIModel>} uiModelColl - collection of ui models.
16975
- * @returns {object.<string, Collection>} splitted event model collections.
16969
+ /**
16970
+ * split event model by ymd.
16971
+ * @param {IDS_OF_DAY} idsOfDay - ids of days
16972
+ * @param {TZDate} start - start date
16973
+ * @param {TZDate} end - end date
16974
+ * @param {Collection<EventUIModel>} uiModelColl - collection of ui models.
16975
+ * @returns {object.<string, Collection>} splitted event model collections.
16976
16976
  */
16977
16977
 
16978
16978
  function splitEventByDateRange(idsOfDay, start, end, uiModelColl) {
@@ -16995,16 +16995,16 @@ function splitEventByDateRange(idsOfDay, start, end, uiModelColl) {
16995
16995
  }, {});
16996
16996
  return result;
16997
16997
  }
16998
- /**
16999
- * create ui model for time view part
17000
- * @param {IDS_OF_DAY} idsOfDay - model controller
17001
- * @param {object} condition - find options
17002
- * @param {TZDate} condition.start - start date.
17003
- * @param {TZDate} condition.end - end date.
17004
- * @param {Collection} condition.uiModelTimeColl - collection of ui models.
17005
- * @param {number} condition.hourStart - start hour to be shown
17006
- * @param {number} condition.hourEnd - end hour to be shown
17007
- * @returns {object} ui model for time part.
16998
+ /**
16999
+ * create ui model for time view part
17000
+ * @param {IDS_OF_DAY} idsOfDay - model controller
17001
+ * @param {object} condition - find options
17002
+ * @param {TZDate} condition.start - start date.
17003
+ * @param {TZDate} condition.end - end date.
17004
+ * @param {Collection} condition.uiModelTimeColl - collection of ui models.
17005
+ * @param {number} condition.hourStart - start hour to be shown
17006
+ * @param {number} condition.hourEnd - end hour to be shown
17007
+ * @returns {object} ui model for time part.
17008
17008
  */
17009
17009
 
17010
17010
  function getUIModelForTimeView(idsOfDay, condition) {
@@ -17032,13 +17032,13 @@ function getUIModelForTimeView(idsOfDay, condition) {
17032
17032
  });
17033
17033
  return result;
17034
17034
  }
17035
- /**********
17036
- * ALLDAY VIEW
17035
+ /**********
17036
+ * ALLDAY VIEW
17037
17037
  **********/
17038
17038
 
17039
- /**
17040
- * Set hasMultiDates flag to true and set date ranges for rendering
17041
- * @param {Collection} uiModelColl - collection of ui models.
17039
+ /**
17040
+ * Set hasMultiDates flag to true and set date ranges for rendering
17041
+ * @param {Collection} uiModelColl - collection of ui models.
17042
17042
  */
17043
17043
 
17044
17044
  function week_addMultiDatesInfo(uiModelColl) {
@@ -17049,12 +17049,12 @@ function week_addMultiDatesInfo(uiModelColl) {
17049
17049
  uiModel.renderEnds = toEndOfDay(model.getEnds());
17050
17050
  });
17051
17051
  }
17052
- /**
17053
- * create ui model for allday view part
17054
- * @param {TZDate} start start date.
17055
- * @param {TZDate} end end date.
17056
- * @param {Collection} uiModelColl - ui models of allday event.
17057
- * @returns {DayGridEventMatrix} matrix of allday event ui models.
17052
+ /**
17053
+ * create ui model for allday view part
17054
+ * @param {TZDate} start start date.
17055
+ * @param {TZDate} end end date.
17056
+ * @param {Collection} uiModelColl - ui models of allday event.
17057
+ * @returns {DayGridEventMatrix} matrix of allday event ui models.
17058
17058
  */
17059
17059
 
17060
17060
  function getUIModelForAlldayView(start, end, uiModelColl) {
@@ -17072,21 +17072,21 @@ function getUIModelForAlldayView(start, end, uiModelColl) {
17072
17072
  positionUIModels(start, end, matrices);
17073
17073
  return matrices;
17074
17074
  }
17075
- /**********
17076
- * READ
17075
+ /**********
17076
+ * READ
17077
17077
  **********/
17078
17078
 
17079
- /**
17080
- * Populate events in date range.
17081
- * @param {CalendarData} calendarData - data store
17082
- * @param {object} condition - find options
17083
- * @param {IDS_OF_DAY} condition.idsOfDay - model controller
17084
- * @param {TZDate} condition.start start date.
17085
- * @param {TZDate} condition.end end date.
17086
- * @param {Array.<object>} condition.panels - event panels like 'milestone', 'task', 'allday', 'time'
17087
- * @param {function[]} condition.[andFilters] - optional filters to applying search query
17088
- * @param {Object} condition.options - week view options
17089
- * @returns {object} events grouped by dates.
17079
+ /**
17080
+ * Populate events in date range.
17081
+ * @param {CalendarData} calendarData - data store
17082
+ * @param {object} condition - find options
17083
+ * @param {IDS_OF_DAY} condition.idsOfDay - model controller
17084
+ * @param {TZDate} condition.start start date.
17085
+ * @param {TZDate} condition.end end date.
17086
+ * @param {Array.<object>} condition.panels - event panels like 'milestone', 'task', 'allday', 'time'
17087
+ * @param {function[]} condition.[andFilters] - optional filters to applying search query
17088
+ * @param {Object} condition.options - week view options
17089
+ * @returns {object} events grouped by dates.
17090
17090
  */
17091
17091
 
17092
17092
  function week_findByDateRange(calendarData, condition) {
@@ -17159,10 +17159,10 @@ function math_limit(value, minArr, maxArr) {
17159
17159
  var v = Math.max.apply(Math, [value].concat(math_toConsumableArray(minArr)));
17160
17160
  return Math.min.apply(Math, [v].concat(math_toConsumableArray(maxArr)));
17161
17161
  }
17162
- /**
17163
- * a : b = y : x;
17164
- * ==
17165
- * x = (b * y) / a;
17162
+ /**
17163
+ * a : b = y : x;
17164
+ * ==
17165
+ * x = (b * y) / a;
17166
17166
  */
17167
17167
 
17168
17168
  function ratio(a, b, y) {
@@ -18265,10 +18265,10 @@ function useDrag(draggingItemType) {
18265
18265
  return handleMouseDown;
18266
18266
  }
18267
18267
  ;// CONCATENATED MODULE: ./src/utils/preact.ts
18268
- /**
18269
- * Pass the prop to component conditionally.
18270
- * just passing `undefined` violates the ESLint rule, and it's less readable.
18271
- * So let's use this function to pass the conditional prop.
18268
+ /**
18269
+ * Pass the prop to component conditionally.
18270
+ * just passing `undefined` violates the ESLint rule, and it's less readable.
18271
+ * So let's use this function to pass the conditional prop.
18272
18272
  */
18273
18273
  function passConditionalProp(condition, prop) {
18274
18274
  // eslint-disable-next-line no-undefined
@@ -18588,37 +18588,37 @@ function HorizontalEvent(_ref4) {
18588
18588
  }
18589
18589
  ;// CONCATENATED MODULE: ./src/hooks/common/useWhen.ts
18590
18590
 
18591
- /**
18592
- * Check the condition and call the callback if the condition is true.
18593
- * callback is always referencing the latest value
18594
- * so that it doesn't have to register all values in the callback as deps to useEffect.
18595
- * But it's not suitable when you need to keep tracking the value related to condition.
18596
- *
18597
- * @example
18598
- * // when the condition is true, the callback is called.
18599
- * useWhen(() => {
18600
- * if (shouldUpdateEvent) {
18601
- * // update event
18602
- * }
18603
- * }, isDraggingEnd)
18604
- *
18605
- * @example
18606
- * // avoid this when you need to keep updating `setGridDiff` by `currentGridPos` and `initGridPosition`.
18607
- * useWhen(() => {
18608
- * // it will fire once.
18609
- * setGridDiff({
18610
- * columnIndex: currentGridPos.columnIndex - initGridPosition.columnIndex,
18611
- * rowIndex: currentGridPos.rowIndex - initGridPosition.rowIndex,
18612
- * });
18613
- * }, isPresent(currentGridPos) && isPresent(initGridPosition));
18614
- *
18615
- * // You need to use `useEffect` this time.
18616
- * useEffect(() => {
18617
- * setGridDiff({
18618
- * columnIndex: currentGridPos.columnIndex - initGridPosition.columnIndex,
18619
- * rowIndex: currentGridPos.rowIndex - initGridPosition.rowIndex,
18620
- * });
18621
- * }, [currentGridPos, initGridPosition]);
18591
+ /**
18592
+ * Check the condition and call the callback if the condition is true.
18593
+ * callback is always referencing the latest value
18594
+ * so that it doesn't have to register all values in the callback as deps to useEffect.
18595
+ * But it's not suitable when you need to keep tracking the value related to condition.
18596
+ *
18597
+ * @example
18598
+ * // when the condition is true, the callback is called.
18599
+ * useWhen(() => {
18600
+ * if (shouldUpdateEvent) {
18601
+ * // update event
18602
+ * }
18603
+ * }, isDraggingEnd)
18604
+ *
18605
+ * @example
18606
+ * // avoid this when you need to keep updating `setGridDiff` by `currentGridPos` and `initGridPosition`.
18607
+ * useWhen(() => {
18608
+ * // it will fire once.
18609
+ * setGridDiff({
18610
+ * columnIndex: currentGridPos.columnIndex - initGridPosition.columnIndex,
18611
+ * rowIndex: currentGridPos.rowIndex - initGridPosition.rowIndex,
18612
+ * });
18613
+ * }, isPresent(currentGridPos) && isPresent(initGridPosition));
18614
+ *
18615
+ * // You need to use `useEffect` this time.
18616
+ * useEffect(() => {
18617
+ * setGridDiff({
18618
+ * columnIndex: currentGridPos.columnIndex - initGridPosition.columnIndex,
18619
+ * rowIndex: currentGridPos.rowIndex - initGridPosition.rowIndex,
18620
+ * });
18621
+ * }, [currentGridPos, initGridPosition]);
18622
18622
  */
18623
18623
 
18624
18624
  function useWhen(callback, condition) {
@@ -22307,8 +22307,8 @@ function useTimeGridEventResize(_ref) {
22307
22307
 
22308
22308
  var columns = timeGridData.columns,
22309
22309
  rows = timeGridData.rows;
22310
- /**
22311
- * Filter UIModels that are made from the target event.
22310
+ /**
22311
+ * Filter UIModels that are made from the target event.
22312
22312
  */
22313
22313
 
22314
22314
  var resizeTargetUIModelColumns = totalUIModels.map(function (uiModels) {
@@ -23299,11 +23299,11 @@ var TimeColumn = compat_module_g(function TimeColumn(_ref3) {
23299
23299
 
23300
23300
 
23301
23301
 
23302
- /**
23303
- * @param date
23304
- * @param {TZDate} [start] - start time
23305
- * @param {TZDate} [end] - end time
23306
- * @returns {number} The percent value represent current time between start and end
23302
+ /**
23303
+ * @param date
23304
+ * @param {TZDate} [start] - start time
23305
+ * @param {TZDate} [end] - end time
23306
+ * @returns {number} The percent value represent current time between start and end
23307
23307
  */
23308
23308
  function getTopPercentByTime(date, start, end) {
23309
23309
  var startTime = start.getTime();
@@ -23313,19 +23313,19 @@ function getTopPercentByTime(date, start, end) {
23313
23313
  var topPercent = ratio(max, 100, time);
23314
23314
  return math_limit(topPercent, [0], [100]);
23315
23315
  }
23316
- /**
23317
- * @typedef {Object} VerticalPositionsByTime
23318
- * @property {number} top - top percent
23319
- * @property {number} height - height percent
23316
+ /**
23317
+ * @typedef {Object} VerticalPositionsByTime
23318
+ * @property {number} top - top percent
23319
+ * @property {number} height - height percent
23320
23320
  */
23321
23321
 
23322
- /**
23323
- *
23324
- * @param {TZDate} start target time which is converted to percent value
23325
- * @param {TZDate} end target time which is converted to percent value
23326
- * @param {TZDate} minTime start time
23327
- * @param {TZDate} maxTime end time
23328
- * @returns {VerticalPositionsByTime} verticalPositions
23322
+ /**
23323
+ *
23324
+ * @param {TZDate} start target time which is converted to percent value
23325
+ * @param {TZDate} end target time which is converted to percent value
23326
+ * @param {TZDate} minTime start time
23327
+ * @param {TZDate} maxTime end time
23328
+ * @returns {VerticalPositionsByTime} verticalPositions
23329
23329
  */
23330
23330
 
23331
23331
  function getTopHeightByTime(start, end, minTime, maxTime) {
@@ -23356,12 +23356,12 @@ function setValueByUnit(time, value, unit) {
23356
23356
 
23357
23357
  return time;
23358
23358
  }
23359
- /**
23360
- * Get a previous grid time before the time
23361
- * @param {TZDate} time - target time
23362
- * @param slot
23363
- * @param unit
23364
- * @returns {TZDate} - next grid time
23359
+ /**
23360
+ * Get a previous grid time before the time
23361
+ * @param {TZDate} time - target time
23362
+ * @param slot
23363
+ * @param unit
23364
+ * @returns {TZDate} - next grid time
23365
23365
  */
23366
23366
 
23367
23367
 
@@ -23382,12 +23382,12 @@ function getPrevGridTime(time, slot, unit) {
23382
23382
 
23383
23383
  return prevGridTime;
23384
23384
  }
23385
- /**
23386
- * Get a next grid time after the time
23387
- * @param {TZDate} time - target time
23388
- * @param slot
23389
- * @param unit
23390
- * @returns {TZDate} - next grid time
23385
+ /**
23386
+ * Get a next grid time after the time
23387
+ * @param {TZDate} time - target time
23388
+ * @param slot
23389
+ * @param unit
23390
+ * @returns {TZDate} - next grid time
23391
23391
  */
23392
23392
 
23393
23393
  function getNextGridTime(time, slot, unit) {
@@ -23444,11 +23444,11 @@ function controller_column_arrayLikeToArray(arr, len) { if (len == null || len >
23444
23444
 
23445
23445
  var MIN_HEIGHT_PERCENT = 1;
23446
23446
 
23447
- /**
23448
- * Filter that get events in supplied date ranges.
23449
- * @param {TZDate} startColumnTime - start date
23450
- * @param {TZDate} endColumnTime - end date
23451
- * @returns {function} event filter function
23447
+ /**
23448
+ * Filter that get events in supplied date ranges.
23449
+ * @param {TZDate} startColumnTime - start date
23450
+ * @param {TZDate} endColumnTime - end date
23451
+ * @returns {function} event filter function
23452
23452
  */
23453
23453
  function column_isBetween(startColumnTime, endColumnTime) {
23454
23454
  return function (uiModel) {
@@ -23687,11 +23687,11 @@ function setDuplicateEvents(uiModels, options, selectedDuplicateEventCid) {
23687
23687
  });
23688
23688
  return uiModels;
23689
23689
  }
23690
- /**
23691
- * Convert to EventUIModel and make rendering information of events
23692
- * @param {EventUIModel[]} events - event list
23693
- * @param {TZDate} startColumnTime - start date
23694
- * @param {TZDate} endColumnTime - end date
23690
+ /**
23691
+ * Convert to EventUIModel and make rendering information of events
23692
+ * @param {EventUIModel[]} events - event list
23693
+ * @param {TZDate} startColumnTime - start date
23694
+ * @param {TZDate} endColumnTime - end date
23695
23695
  */
23696
23696
 
23697
23697
 
@@ -25355,8 +25355,8 @@ function useDayGridMonthEventResize(_ref) {
25355
25355
  if (type_isNil(resizingStartUIModel)) {
25356
25356
  return null;
25357
25357
  }
25358
- /**
25359
- * Filter UIModels that are made from the target event.
25358
+ /**
25359
+ * Filter UIModels that are made from the target event.
25360
25360
  */
25361
25361
 
25362
25362
 
@@ -25436,8 +25436,8 @@ function useDayGridMonthEventResize(_ref) {
25436
25436
  }, [canCalculateProps, currentGridPos, baseResizingInfo, rowIndex]);
25437
25437
  useWhen(function () {
25438
25438
  if (canCalculateProps) {
25439
- /**
25440
- * Is current grid position is the same or later comparing to the position of the start date?
25439
+ /**
25440
+ * Is current grid position is the same or later comparing to the position of the start date?
25441
25441
  */
25442
25442
  var eventStartDateColumnIndex = baseResizingInfo.eventStartDateColumnIndex,
25443
25443
  eventStartDateRowIndex = baseResizingInfo.eventStartDateRowIndex;
@@ -26236,140 +26236,140 @@ function calendarCore_createClass(Constructor, protoProps, staticProps) { if (pr
26236
26236
 
26237
26237
 
26238
26238
 
26239
- /**
26240
- * {@link https://nhn.github.io/tui.code-snippet/latest/CustomEvents CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet}
26241
- * @typedef {CustomEvents} CustomEvents
26239
+ /**
26240
+ * {@link https://nhn.github.io/tui.code-snippet/latest/CustomEvents CustomEvents} document at {@link https://github.com/nhn/tui.code-snippet tui-code-snippet}
26241
+ * @typedef {CustomEvents} CustomEvents
26242
26242
  */
26243
26243
 
26244
- /**
26245
- * Define Calendars to group events.
26246
- *
26247
- * @typedef {object} CalendarInfo
26248
- * @property {string} id - Calendar id.
26249
- * @property {string} name - Calendar name.
26250
- * @property {string} color - Text color of events.
26251
- * @property {string} borderColor - Left border color of events.
26252
- * @property {string} backgroundColor - Background color of events.
26253
- * @property {string} dragBackgroundColor - Background color of events during dragging.
26244
+ /**
26245
+ * Define Calendars to group events.
26246
+ *
26247
+ * @typedef {object} CalendarInfo
26248
+ * @property {string} id - Calendar id.
26249
+ * @property {string} name - Calendar name.
26250
+ * @property {string} color - Text color of events.
26251
+ * @property {string} borderColor - Left border color of events.
26252
+ * @property {string} backgroundColor - Background color of events.
26253
+ * @property {string} dragBackgroundColor - Background color of events during dragging.
26254
26254
  */
26255
26255
 
26256
- /**
26257
- * Timezone options of the calendar instance.
26258
- *
26259
- * For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md#timezone|Timezone options} in guide.
26260
- *
26261
- * @typedef {object} TimezoneOptions
26262
- * @example
26263
- * const calendar = new Calendar('#container', {
26264
- * timezone: {
26265
- * // @property {string} zones[].timezoneName - Timezone name. it should be one of IANA timezone names.
26266
- * // @property {string} [zones[].displayLabel] - Display label of timezone.
26267
- * // @property {string} [zones[].tooltip] - Tooltip of the element of the display label.
26268
- * zones: [
26269
- * {
26270
- * timezoneName: 'Asia/Seoul',
26271
- * displayLabel: 'UTC+9:00',
26272
- * tooltip: 'Seoul'
26273
- * },
26274
- * {
26275
- * timezoneName: 'Europe/London',
26276
- * displayLabel: 'UTC+1:00',
26277
- * tooltip: 'BST'
26278
- * }
26279
- * ],
26280
- * // This function will be called for rendering components for each timezone.
26281
- * // You don't have to use it if you're able to `Intl.DateTimeFormat` API with `timeZone` option.
26282
- * // this function should return timezone offset from UTC.
26283
- * // for instance, using moment-timezone:
26284
- * customOffsetCalculator: (timezoneName, timestamp) => {
26285
- * return moment.tz(timezoneName).utcOffset(timestamp);
26286
- * }
26287
- * }
26288
- * });
26289
- * @property {Array.<object>} zones - Timezone data.
26290
- * @property {string} zones[].timezoneName - Timezone name. it should be one of IANA timezone names.
26291
- * @property {string} [zones[].displayLabel] - Display label of timezone.
26292
- * @property {string} [zones[].tooltip] - Tooltip of the element of the display label.
26293
- * @property {function} customOffsetCalculator - Custom offset calculator when you're not able to leverage `Intl.DateTimeFormat` API.
26256
+ /**
26257
+ * Timezone options of the calendar instance.
26258
+ *
26259
+ * For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md#timezone|Timezone options} in guide.
26260
+ *
26261
+ * @typedef {object} TimezoneOptions
26262
+ * @example
26263
+ * const calendar = new Calendar('#container', {
26264
+ * timezone: {
26265
+ * // @property {string} zones[].timezoneName - Timezone name. it should be one of IANA timezone names.
26266
+ * // @property {string} [zones[].displayLabel] - Display label of timezone.
26267
+ * // @property {string} [zones[].tooltip] - Tooltip of the element of the display label.
26268
+ * zones: [
26269
+ * {
26270
+ * timezoneName: 'Asia/Seoul',
26271
+ * displayLabel: 'UTC+9:00',
26272
+ * tooltip: 'Seoul'
26273
+ * },
26274
+ * {
26275
+ * timezoneName: 'Europe/London',
26276
+ * displayLabel: 'UTC+1:00',
26277
+ * tooltip: 'BST'
26278
+ * }
26279
+ * ],
26280
+ * // This function will be called for rendering components for each timezone.
26281
+ * // You don't have to use it if you're able to `Intl.DateTimeFormat` API with `timeZone` option.
26282
+ * // this function should return timezone offset from UTC.
26283
+ * // for instance, using moment-timezone:
26284
+ * customOffsetCalculator: (timezoneName, timestamp) => {
26285
+ * return moment.tz(timezoneName).utcOffset(timestamp);
26286
+ * }
26287
+ * }
26288
+ * });
26289
+ * @property {Array.<object>} zones - Timezone data.
26290
+ * @property {string} zones[].timezoneName - Timezone name. it should be one of IANA timezone names.
26291
+ * @property {string} [zones[].displayLabel] - Display label of timezone.
26292
+ * @property {string} [zones[].tooltip] - Tooltip of the element of the display label.
26293
+ * @property {function} customOffsetCalculator - Custom offset calculator when you're not able to leverage `Intl.DateTimeFormat` API.
26294
26294
  */
26295
26295
 
26296
- /**
26297
- * Object to create/modify events.
26298
- * @typedef {object} EventObject
26299
- * @property {string} [id] - Event id.
26300
- * @property {string} [calendarId] - Calendar id.
26301
- * @property {string} [title] - Event title.
26302
- * @property {string} [body] - Body content of the event.
26303
- * @property {string} [isAllday] - Whether the event is all day or not.
26304
- * @property {string|number|Date|TZDate} [start] - Start time of the event.
26305
- * @property {string|number|Date|TZDate} [end] - End time of the event.
26306
- * @property {number} [goingDuration] - Travel time which is taken to go in minutes.
26307
- * @property {number} [comingDuration] - Travel time which is taken to come back in minutes.
26308
- * @property {string} [location] - Location of the event.
26309
- * @property {Array.<string>} [attendees] - Attendees of the event.
26310
- * @property {string} [category] - Category of the event. Available categories are 'milestone', 'task', 'time' and 'allday'.
26311
- * @property {string} [dueDateClass] - Classification of work events. (before work, before lunch, before work)
26312
- * @property {string} [recurrenceRule] - Recurrence rule of the event.
26313
- * @property {string} [state] - State of the event. Available states are 'Busy', 'Free'.
26314
- * @property {boolean} [isVisible] - Whether the event is visible or not.
26315
- * @property {boolean} [isPending] - Whether the event is pending or not.
26316
- * @property {boolean} [isFocused] - Whether the event is focused or not.
26317
- * @property {boolean} [isReadOnly] - Whether the event is read only or not.
26318
- * @property {boolean} [isPrivate] - Whether the event is private or not.
26319
- * @property {string} [color] - Text color of the event.
26320
- * @property {string} [backgroundColor] - Background color of the event.
26321
- * @property {string} [dragBackgroundColor] - Background color of the event during dragging.
26322
- * @property {string} [borderColor] - Left border color of the event.
26323
- * @property {object} [customStyle] - Custom style of the event. The key of CSS property should be camelCase (e.g. {'fontSize': '12px'})
26324
- * @property {*} [raw] - Raw data of the event. it's an arbitrary property for anything.
26296
+ /**
26297
+ * Object to create/modify events.
26298
+ * @typedef {object} EventObject
26299
+ * @property {string} [id] - Event id.
26300
+ * @property {string} [calendarId] - Calendar id.
26301
+ * @property {string} [title] - Event title.
26302
+ * @property {string} [body] - Body content of the event.
26303
+ * @property {string} [isAllday] - Whether the event is all day or not.
26304
+ * @property {string|number|Date|TZDate} [start] - Start time of the event.
26305
+ * @property {string|number|Date|TZDate} [end] - End time of the event.
26306
+ * @property {number} [goingDuration] - Travel time which is taken to go in minutes.
26307
+ * @property {number} [comingDuration] - Travel time which is taken to come back in minutes.
26308
+ * @property {string} [location] - Location of the event.
26309
+ * @property {Array.<string>} [attendees] - Attendees of the event.
26310
+ * @property {string} [category] - Category of the event. Available categories are 'milestone', 'task', 'time' and 'allday'.
26311
+ * @property {string} [dueDateClass] - Classification of work events. (before work, before lunch, before work)
26312
+ * @property {string} [recurrenceRule] - Recurrence rule of the event.
26313
+ * @property {string} [state] - State of the event. Available states are 'Busy', 'Free'.
26314
+ * @property {boolean} [isVisible] - Whether the event is visible or not.
26315
+ * @property {boolean} [isPending] - Whether the event is pending or not.
26316
+ * @property {boolean} [isFocused] - Whether the event is focused or not.
26317
+ * @property {boolean} [isReadOnly] - Whether the event is read only or not.
26318
+ * @property {boolean} [isPrivate] - Whether the event is private or not.
26319
+ * @property {string} [color] - Text color of the event.
26320
+ * @property {string} [backgroundColor] - Background color of the event.
26321
+ * @property {string} [dragBackgroundColor] - Background color of the event during dragging.
26322
+ * @property {string} [borderColor] - Left border color of the event.
26323
+ * @property {object} [customStyle] - Custom style of the event. The key of CSS property should be camelCase (e.g. {'fontSize': '12px'})
26324
+ * @property {*} [raw] - Raw data of the event. it's an arbitrary property for anything.
26325
26325
  */
26326
26326
 
26327
- /**
26328
- * CalendarCore class
26329
- *
26330
- * @class CalendarCore
26331
- * @mixes CustomEvents
26332
- * @param {string|Element} container - container element or selector.
26333
- * @param {object} options - calendar options. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/calendar.md|Calendar options} in guide.
26334
- * @param {string} [options.defaultView="week"] - Initial view type. Available values are: 'day', 'week', 'month'.
26335
- * @param {boolean} [options.useFormPopup=false] - Whether to use the default form popup when creating/modifying events.
26336
- * @param {boolean} [options.useDetailPopup=false] - Whether to use the default detail popup when clicking events.
26337
- * @param {boolean} [options.isReadOnly=false] - Whether the calendar is read-only.
26338
- * @param {boolean} [options.usageStatistics=true] - Whether to allow collect hostname and send the information to google analytics.
26339
- * For more information, check out the {@link https://github.com/nhn/tui.calendar/blob/main/apps/calendar/README.md#collect-statistics-on-the-use-of-open-source|documentation}.
26340
- * @param {function} [options.eventFilter] - A function that returns true if the event should be displayed. The default filter checks if the event's `isVisible` property is true.
26341
- * @param {object} [options.week] - Week option of the calendar instance.
26342
- * @param {number} [options.week.startDayOfWeek=0] - Start day of the week. Available values are 0 (Sunday) to 6 (Saturday).
26343
- * @param {Array.<string>} [options.week.dayNames] - Names of days of the week. Should be 7 items starting from Sunday to Saturday. If not specified, the default names are used.
26344
- * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].
26345
- * @param {boolean} [options.week.workweek=false] - Whether to exclude Saturday and Sunday.
26346
- * @param {boolean} [options.week.showTimezoneCollapseButton=true] - Whether to show the timezone collapse button.
26347
- * @param {boolean} [options.week.timezonesCollapsed=false] - Whether to collapse the timezones.
26348
- * @param {number} [options.week.hourStart=0] - Start hour of the day. Available values are 0 to 24.
26349
- * @param {number} [options.week.hourEnd=24] - End hour of the day. Available values are 0 to 24. Must be greater than `hourStart`.
26350
- * @param {boolean} [options.week.narrowWeekend=false] - Whether to narrow down width of weekends to half.
26351
- * @param {boolean|Array.<string>} [options.week.eventView=true] - Determine which view to display events. Available values are 'allday' and 'time'. set to `false` to disable event view.
26352
- * @param {boolean|Array.<string>} [options.week.taskView=true] - Determine which view to display tasks. Available values are 'milestone' and 'task'. set to `false` to disable task view.
26353
- * @param {boolean|object} [options.week.collapseDuplicateEvents=false] - Whether to collapse duplicate events. If you want to filter duplicate events and choose the main event based on your requirements, set `getDuplicateEvents` and `getMainEvent`. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md#weekcollapseduplicateevents|Options} in guide.
26354
- * @param {object} options.month - Month option of the calendar instance.
26355
- * @param {number} [options.month.startDayOfWeek=0] - Start day of the week. Available values are 0 (Sunday) to 6 (Saturday).
26356
- * @param {Array.<string>} [options.month.dayNames] - Names of days of the week. Should be 7 items starting from Sunday to Saturday. If not specified, the default names are used.
26357
- * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].
26358
- * @param {boolean} [options.month.workweek=false] - Whether to exclude Saturday and Sunday.
26359
- * @param {boolean} [options.month.narrowWeekend=false] - Whether to narrow down width of weekends to half.
26360
- * @param {number} [options.month.visibleWeeksCount=0] - Number of weeks to display. 0 means display all weeks.
26361
- * @param {Array.<CalendarInfo>} [options.calendars] - Calendars to group events.
26362
- * @param {boolean|object} [options.gridSelection=true] - Whether to enable grid selection. or it's option. it's enabled when the value is `true` and object and will be disabled when `isReadOnly` is true.
26363
- * @param {boolean} options.gridSelection.enableDbClick - Whether to enable double click to select area.
26364
- * @param {boolean} options.gridSelection.enableClick - Whether to enable click to select area.
26365
- * @param {TimezoneOptions} options.timezone - Timezone option of the calendar instance. For more information about timezone, check out the {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md|Options} in guide.
26366
- * @param {Theme} options.theme - Theme option of the calendar instance. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/theme.md|Theme} in guide.
26367
- * @param {TemplateConfig} options.template - Template option of the calendar instance. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/template.md|Template} in guide.
26327
+ /**
26328
+ * CalendarCore class
26329
+ *
26330
+ * @class CalendarCore
26331
+ * @mixes CustomEvents
26332
+ * @param {string|Element} container - container element or selector.
26333
+ * @param {object} options - calendar options. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/calendar.md|Calendar options} in guide.
26334
+ * @param {string} [options.defaultView="week"] - Initial view type. Available values are: 'day', 'week', 'month'.
26335
+ * @param {boolean} [options.useFormPopup=false] - Whether to use the default form popup when creating/modifying events.
26336
+ * @param {boolean} [options.useDetailPopup=false] - Whether to use the default detail popup when clicking events.
26337
+ * @param {boolean} [options.isReadOnly=false] - Whether the calendar is read-only.
26338
+ * @param {boolean} [options.usageStatistics=true] - Whether to allow collect hostname and send the information to google analytics.
26339
+ * For more information, check out the {@link https://github.com/nhn/tui.calendar/blob/main/apps/calendar/README.md#collect-statistics-on-the-use-of-open-source|documentation}.
26340
+ * @param {function} [options.eventFilter] - A function that returns true if the event should be displayed. The default filter checks if the event's `isVisible` property is true.
26341
+ * @param {object} [options.week] - Week option of the calendar instance.
26342
+ * @param {number} [options.week.startDayOfWeek=0] - Start day of the week. Available values are 0 (Sunday) to 6 (Saturday).
26343
+ * @param {Array.<string>} [options.week.dayNames] - Names of days of the week. Should be 7 items starting from Sunday to Saturday. If not specified, the default names are used.
26344
+ * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].
26345
+ * @param {boolean} [options.week.workweek=false] - Whether to exclude Saturday and Sunday.
26346
+ * @param {boolean} [options.week.showTimezoneCollapseButton=true] - Whether to show the timezone collapse button.
26347
+ * @param {boolean} [options.week.timezonesCollapsed=false] - Whether to collapse the timezones.
26348
+ * @param {number} [options.week.hourStart=0] - Start hour of the day. Available values are 0 to 24.
26349
+ * @param {number} [options.week.hourEnd=24] - End hour of the day. Available values are 0 to 24. Must be greater than `hourStart`.
26350
+ * @param {boolean} [options.week.narrowWeekend=false] - Whether to narrow down width of weekends to half.
26351
+ * @param {boolean|Array.<string>} [options.week.eventView=true] - Determine which view to display events. Available values are 'allday' and 'time'. set to `false` to disable event view.
26352
+ * @param {boolean|Array.<string>} [options.week.taskView=true] - Determine which view to display tasks. Available values are 'milestone' and 'task'. set to `false` to disable task view.
26353
+ * @param {boolean|object} [options.week.collapseDuplicateEvents=false] - Whether to collapse duplicate events. If you want to filter duplicate events and choose the main event based on your requirements, set `getDuplicateEvents` and `getMainEvent`. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md#weekcollapseduplicateevents|Options} in guide.
26354
+ * @param {object} options.month - Month option of the calendar instance.
26355
+ * @param {number} [options.month.startDayOfWeek=0] - Start day of the week. Available values are 0 (Sunday) to 6 (Saturday).
26356
+ * @param {Array.<string>} [options.month.dayNames] - Names of days of the week. Should be 7 items starting from Sunday to Saturday. If not specified, the default names are used.
26357
+ * Default values are ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'].
26358
+ * @param {boolean} [options.month.workweek=false] - Whether to exclude Saturday and Sunday.
26359
+ * @param {boolean} [options.month.narrowWeekend=false] - Whether to narrow down width of weekends to half.
26360
+ * @param {number} [options.month.visibleWeeksCount=0] - Number of weeks to display. 0 means display all weeks.
26361
+ * @param {Array.<CalendarInfo>} [options.calendars] - Calendars to group events.
26362
+ * @param {boolean|object} [options.gridSelection=true] - Whether to enable grid selection. or it's option. it's enabled when the value is `true` and object and will be disabled when `isReadOnly` is true.
26363
+ * @param {boolean} options.gridSelection.enableDbClick - Whether to enable double click to select area.
26364
+ * @param {boolean} options.gridSelection.enableClick - Whether to enable click to select area.
26365
+ * @param {TimezoneOptions} options.timezone - Timezone option of the calendar instance. For more information about timezone, check out the {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md|Options} in guide.
26366
+ * @param {Theme} options.theme - Theme option of the calendar instance. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/theme.md|Theme} in guide.
26367
+ * @param {TemplateConfig} options.template - Template option of the calendar instance. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/template.md|Template} in guide.
26368
26368
  */
26369
26369
  var CalendarCore = /*#__PURE__*/function () {
26370
- /**
26371
- * start and end date of weekly, monthly
26372
- * @private
26370
+ /**
26371
+ * start and end date of weekly, monthly
26372
+ * @private
26373
26373
  */
26374
26374
  function CalendarCore(container) {
26375
26375
  var _document$querySelect, _document;
@@ -26403,8 +26403,8 @@ var CalendarCore = /*#__PURE__*/function () {
26403
26403
  var dispatchers = this.store.getState().dispatch;
26404
26404
  return group ? dispatchers[group] : dispatchers;
26405
26405
  }
26406
- /**
26407
- * Destroys the instance.
26406
+ /**
26407
+ * Destroys the instance.
26408
26408
  */
26409
26409
 
26410
26410
  }, {
@@ -26494,27 +26494,27 @@ var CalendarCore = /*#__PURE__*/function () {
26494
26494
  }
26495
26495
  };
26496
26496
  }
26497
- /**
26498
- * Move the rendered date to the next/prev range.
26499
- *
26500
- * The range of movement differs depending on the current view, Basically:
26501
- * - In month view, it moves to the next/prev month.
26502
- * - In week view, it moves to the next/prev week.
26503
- * - In day view, it moves to the next/prev day.
26504
- *
26505
- * Also, the range depends on the options like how many visible weeks/months should be rendered.
26506
- *
26507
- * @param {number} offset The offset to move by.
26508
- *
26509
- * @example
26510
- * // Move to the next month in month view.
26511
- * calendar.move(1);
26512
- *
26513
- * // Move to the next year in month view.
26514
- * calendar.move(12);
26515
- *
26516
- * // Move to yesterday in day view.
26517
- * calendar.move(-1);
26497
+ /**
26498
+ * Move the rendered date to the next/prev range.
26499
+ *
26500
+ * The range of movement differs depending on the current view, Basically:
26501
+ * - In month view, it moves to the next/prev month.
26502
+ * - In week view, it moves to the next/prev week.
26503
+ * - In day view, it moves to the next/prev day.
26504
+ *
26505
+ * Also, the range depends on the options like how many visible weeks/months should be rendered.
26506
+ *
26507
+ * @param {number} offset The offset to move by.
26508
+ *
26509
+ * @example
26510
+ * // Move to the next month in month view.
26511
+ * calendar.move(1);
26512
+ *
26513
+ * // Move to the next year in month view.
26514
+ * calendar.move(12);
26515
+ *
26516
+ * // Move to yesterday in day view.
26517
+ * calendar.move(-1);
26518
26518
  */
26519
26519
 
26520
26520
  }, {
@@ -26563,34 +26563,34 @@ var CalendarCore = /*#__PURE__*/function () {
26563
26563
  setRenderDate(calculatedRenderDate.renderDate);
26564
26564
  this.renderRange = calculatedRenderDate.renderRange;
26565
26565
  }
26566
- /**********
26567
- * CRUD Methods
26566
+ /**********
26567
+ * CRUD Methods
26568
26568
  **********/
26569
26569
 
26570
- /**
26571
- * Create events and render calendar.
26572
- * @param {Array.<EventObject>} events - list of {@link EventObject}
26573
- * @example
26574
- * calendar.createEvents([
26575
- * {
26576
- * id: '1',
26577
- * calendarId: '1',
26578
- * title: 'my event',
26579
- * category: 'time',
26580
- * dueDateClass: '',
26581
- * start: '2018-01-18T22:30:00+09:00',
26582
- * end: '2018-01-19T02:30:00+09:00',
26583
- * },
26584
- * {
26585
- * id: '2',
26586
- * calendarId: '1',
26587
- * title: 'second event',
26588
- * category: 'time',
26589
- * dueDateClass: '',
26590
- * start: '2018-01-18T17:30:00+09:00',
26591
- * end: '2018-01-19T17:31:00+09:00',
26592
- * },
26593
- * ]);
26570
+ /**
26571
+ * Create events and render calendar.
26572
+ * @param {Array.<EventObject>} events - list of {@link EventObject}
26573
+ * @example
26574
+ * calendar.createEvents([
26575
+ * {
26576
+ * id: '1',
26577
+ * calendarId: '1',
26578
+ * title: 'my event',
26579
+ * category: 'time',
26580
+ * dueDateClass: '',
26581
+ * start: '2018-01-18T22:30:00+09:00',
26582
+ * end: '2018-01-19T02:30:00+09:00',
26583
+ * },
26584
+ * {
26585
+ * id: '2',
26586
+ * calendarId: '1',
26587
+ * title: 'second event',
26588
+ * category: 'time',
26589
+ * dueDateClass: '',
26590
+ * start: '2018-01-18T17:30:00+09:00',
26591
+ * end: '2018-01-19T17:31:00+09:00',
26592
+ * },
26593
+ * ]);
26594
26594
  */
26595
26595
 
26596
26596
  }, {
@@ -26613,17 +26613,17 @@ var CalendarCore = /*#__PURE__*/function () {
26613
26613
  return id === eventId && eventCalendarId === calendarId;
26614
26614
  });
26615
26615
  }
26616
- /**
26617
- * Get an {@link EventObject} with event's id and calendar's id.
26618
- *
26619
- * @param {string} eventId - event's id
26620
- * @param {string} calendarId - calendar's id of the event
26621
- * @returns {EventObject|null} event. If the event can't be found, it returns null.
26622
- *
26623
- * @example
26624
- * const event = calendar.getEvent(eventId, calendarId);
26625
- *
26626
- * console.log(event.title);
26616
+ /**
26617
+ * Get an {@link EventObject} with event's id and calendar's id.
26618
+ *
26619
+ * @param {string} eventId - event's id
26620
+ * @param {string} calendarId - calendar's id of the event
26621
+ * @returns {EventObject|null} event. If the event can't be found, it returns null.
26622
+ *
26623
+ * @example
26624
+ * const event = calendar.getEvent(eventId, calendarId);
26625
+ *
26626
+ * console.log(event.title);
26627
26627
  */
26628
26628
 
26629
26629
  }, {
@@ -26633,19 +26633,19 @@ var CalendarCore = /*#__PURE__*/function () {
26633
26633
 
26634
26634
  return (_this$getEventModel$t = (_this$getEventModel = this.getEventModel(eventId, calendarId)) === null || _this$getEventModel === void 0 ? void 0 : _this$getEventModel.toEventObject()) !== null && _this$getEventModel$t !== void 0 ? _this$getEventModel$t : null;
26635
26635
  }
26636
- /**
26637
- * Update an event.
26638
- *
26639
- * @param {string} eventId - ID of an event to update
26640
- * @param {string} calendarId - The calendarId of the event to update
26641
- * @param {EventObject} changes - The new {@link EventObject} data to apply to the event
26642
- *
26643
- * @example
26644
- * calendar.on('beforeUpdateEvent', function ({ event, changes }) {
26645
- * const { id, calendarId } = event;
26646
- *
26647
- * calendar.updateEvent(id, calendarId, changes);
26648
- * });
26636
+ /**
26637
+ * Update an event.
26638
+ *
26639
+ * @param {string} eventId - ID of an event to update
26640
+ * @param {string} calendarId - The calendarId of the event to update
26641
+ * @param {EventObject} changes - The new {@link EventObject} data to apply to the event
26642
+ *
26643
+ * @example
26644
+ * calendar.on('beforeUpdateEvent', function ({ event, changes }) {
26645
+ * const { id, calendarId } = event;
26646
+ *
26647
+ * calendar.updateEvent(id, calendarId, changes);
26648
+ * });
26649
26649
  */
26650
26650
 
26651
26651
  }, {
@@ -26663,11 +26663,11 @@ var CalendarCore = /*#__PURE__*/function () {
26663
26663
  });
26664
26664
  }
26665
26665
  }
26666
- /**
26667
- * Delete an event.
26668
- *
26669
- * @param {string} eventId - event's id to delete
26670
- * @param {string} calendarId - The CalendarId of the event to delete
26666
+ /**
26667
+ * Delete an event.
26668
+ *
26669
+ * @param {string} eventId - event's id to delete
26670
+ * @param {string} calendarId - The CalendarId of the event to delete
26671
26671
  */
26672
26672
 
26673
26673
  }, {
@@ -26682,15 +26682,15 @@ var CalendarCore = /*#__PURE__*/function () {
26682
26682
  deleteEvent(event);
26683
26683
  }
26684
26684
  }
26685
- /**********
26686
- * General Methods
26685
+ /**********
26686
+ * General Methods
26687
26687
  **********/
26688
26688
 
26689
- /**
26690
- * Set events' visibility by calendar ID
26691
- *
26692
- * @param {string|Array.<string>} calendarId - The calendar id or ids to change visibility
26693
- * @param {boolean} isVisible - If set to true, show the events. If set to false, hide the events.
26689
+ /**
26690
+ * Set events' visibility by calendar ID
26691
+ *
26692
+ * @param {string|Array.<string>} calendarId - The calendar id or ids to change visibility
26693
+ * @param {boolean} isVisible - If set to true, show the events. If set to false, hide the events.
26694
26694
  */
26695
26695
 
26696
26696
  }, {
@@ -26702,17 +26702,17 @@ var CalendarCore = /*#__PURE__*/function () {
26702
26702
  var calendarIds = Array.isArray(calendarId) ? calendarId : [calendarId];
26703
26703
  setCalendarVisibility(calendarIds, isVisible);
26704
26704
  }
26705
- /**
26706
- * Render the calendar.
26707
- *
26708
- * @example
26709
- * calendar.render();
26710
- *
26711
- * @example
26712
- * // Re-render the calendar when resizing a window.
26713
- * window.addEventListener('resize', () => {
26714
- * calendar.render();
26715
- * });
26705
+ /**
26706
+ * Render the calendar.
26707
+ *
26708
+ * @example
26709
+ * calendar.render();
26710
+ *
26711
+ * @example
26712
+ * // Re-render the calendar when resizing a window.
26713
+ * window.addEventListener('resize', () => {
26714
+ * calendar.render();
26715
+ * });
26716
26716
  */
26717
26717
 
26718
26718
  }, {
@@ -26728,10 +26728,10 @@ var CalendarCore = /*#__PURE__*/function () {
26728
26728
 
26729
26729
  return this;
26730
26730
  }
26731
- /**
26732
- * For SSR(Server Side Rendering), Return the HTML string of the whole calendar.
26733
- *
26734
- * @returns {string} HTML string
26731
+ /**
26732
+ * For SSR(Server Side Rendering), Return the HTML string of the whole calendar.
26733
+ *
26734
+ * @returns {string} HTML string
26735
26735
  */
26736
26736
 
26737
26737
  }, {
@@ -26743,11 +26743,11 @@ var CalendarCore = /*#__PURE__*/function () {
26743
26743
  eventBus: this.eventBus
26744
26744
  }, this.getComponent()));
26745
26745
  }
26746
- /**
26747
- * Delete all events and clear view
26748
- *
26749
- * @example
26750
- * calendar.clear();
26746
+ /**
26747
+ * Delete all events and clear view
26748
+ *
26749
+ * @example
26750
+ * calendar.clear();
26751
26751
  */
26752
26752
 
26753
26753
  }, {
@@ -26758,15 +26758,15 @@ var CalendarCore = /*#__PURE__*/function () {
26758
26758
 
26759
26759
  clearEvents();
26760
26760
  }
26761
- /**
26762
- * Scroll to current time on today in case of daily, weekly view.
26763
- * Nothing happens in the monthly view.
26764
- *
26765
- * @example
26766
- * function onNewEvents(events) {
26767
- * calendar.createEvents(events);
26768
- * calendar.scrollToNow('smooth');
26769
- * }
26761
+ /**
26762
+ * Scroll to current time on today in case of daily, weekly view.
26763
+ * Nothing happens in the monthly view.
26764
+ *
26765
+ * @example
26766
+ * function onNewEvents(events) {
26767
+ * calendar.createEvents(events);
26768
+ * calendar.scrollToNow('smooth');
26769
+ * }
26770
26770
  */
26771
26771
 
26772
26772
  }, {
@@ -26810,13 +26810,13 @@ var CalendarCore = /*#__PURE__*/function () {
26810
26810
 
26811
26811
  return newRenderRange;
26812
26812
  }
26813
- /**
26814
- * Move to today.
26815
- *
26816
- * @example
26817
- * function onClickTodayBtn() {
26818
- * calendar.today();
26819
- * }
26813
+ /**
26814
+ * Move to today.
26815
+ *
26816
+ * @example
26817
+ * function onClickTodayBtn() {
26818
+ * calendar.today();
26819
+ * }
26820
26820
  */
26821
26821
 
26822
26822
  }, {
@@ -26827,19 +26827,19 @@ var CalendarCore = /*#__PURE__*/function () {
26827
26827
  setRenderDate(today);
26828
26828
  this.renderRange = this.calculateRenderRange(today);
26829
26829
  }
26830
- /**
26831
- * Move to specific date.
26832
- *
26833
- * @param {Date|string|number|TZDate} date - The date to move. it should be eligible parameter to create a `Date` instance if `date` is string or number.
26834
- * @example
26835
- * calendar.on('clickDayName', (event) => {
26836
- * if (calendar.getViewName() === 'week') {
26837
- * const dateToMove = new Date(event.date);
26838
- *
26839
- * calendar.setDate(dateToMove);
26840
- * calendar.changeView('day');
26841
- * }
26842
- * });
26830
+ /**
26831
+ * Move to specific date.
26832
+ *
26833
+ * @param {Date|string|number|TZDate} date - The date to move. it should be eligible parameter to create a `Date` instance if `date` is string or number.
26834
+ * @example
26835
+ * calendar.on('clickDayName', (event) => {
26836
+ * if (calendar.getViewName() === 'week') {
26837
+ * const dateToMove = new Date(event.date);
26838
+ *
26839
+ * calendar.setDate(dateToMove);
26840
+ * calendar.changeView('day');
26841
+ * }
26842
+ * });
26843
26843
  */
26844
26844
 
26845
26845
  }, {
@@ -26852,17 +26852,17 @@ var CalendarCore = /*#__PURE__*/function () {
26852
26852
  setRenderDate(dateToChange);
26853
26853
  this.renderRange = this.calculateRenderRange(dateToChange);
26854
26854
  }
26855
- /**
26856
- * Move the calendar forward to the next range.
26857
- *
26858
- * @example
26859
- * function moveToNextOrPrevRange(offset) {
26860
- * if (offset === -1) {
26861
- * calendar.prev();
26862
- * } else if (offset === 1) {
26863
- * calendar.next();
26864
- * }
26865
- * }
26855
+ /**
26856
+ * Move the calendar forward to the next range.
26857
+ *
26858
+ * @example
26859
+ * function moveToNextOrPrevRange(offset) {
26860
+ * if (offset === -1) {
26861
+ * calendar.prev();
26862
+ * } else if (offset === 1) {
26863
+ * calendar.next();
26864
+ * }
26865
+ * }
26866
26866
  */
26867
26867
 
26868
26868
  }, {
@@ -26870,17 +26870,17 @@ var CalendarCore = /*#__PURE__*/function () {
26870
26870
  value: function next() {
26871
26871
  this.move(1);
26872
26872
  }
26873
- /**
26874
- * Move the calendar backward to the previous range.
26875
- *
26876
- * @example
26877
- * function moveToNextOrPrevRange(offset) {
26878
- * if (offset === -1) {
26879
- * calendar.prev();
26880
- * } else if (offset === 1) {
26881
- * calendar.next();
26882
- * }
26883
- * }
26873
+ /**
26874
+ * Move the calendar backward to the previous range.
26875
+ *
26876
+ * @example
26877
+ * function moveToNextOrPrevRange(offset) {
26878
+ * if (offset === -1) {
26879
+ * calendar.prev();
26880
+ * } else if (offset === 1) {
26881
+ * calendar.next();
26882
+ * }
26883
+ * }
26884
26884
  */
26885
26885
 
26886
26886
  }, {
@@ -26888,35 +26888,35 @@ var CalendarCore = /*#__PURE__*/function () {
26888
26888
  value: function prev() {
26889
26889
  this.move(-1);
26890
26890
  }
26891
- /**
26892
- * Change color values of events belong to a certain calendar.
26893
- *
26894
- * @param {string} calendarId - The calendar ID
26895
- * @param {object} colorOptions - The color values of the calendar
26896
- * @param {string} colorOptions.color - The text color of the events
26897
- * @param {string} colorOptions.borderColor - Left border color of events
26898
- * @param {string} colorOptions.backgroundColor - Background color of events
26899
- * @param {string} colorOptions.dragBackgroundColor - Background color of events during dragging
26900
- *
26901
- * @example
26902
- * calendar.setCalendarColor('1', {
26903
- * color: '#e8e8e8',
26904
- * backgroundColor: '#585858',
26905
- * borderColor: '#a1b56c',
26906
- * dragBackgroundColor: '#585858',
26907
- * });
26908
- * calendar.setCalendarColor('2', {
26909
- * color: '#282828',
26910
- * backgroundColor: '#dc9656',
26911
- * borderColor: '#a1b56c',
26912
- * dragBackgroundColor: '#dc9656',
26913
- * });
26914
- * calendar.setCalendarColor('3', {
26915
- * color: '#a16946',
26916
- * backgroundColor: '#ab4642',
26917
- * borderColor: '#a1b56c',
26918
- * dragBackgroundColor: '#ab4642',
26919
- * });
26891
+ /**
26892
+ * Change color values of events belong to a certain calendar.
26893
+ *
26894
+ * @param {string} calendarId - The calendar ID
26895
+ * @param {object} colorOptions - The color values of the calendar
26896
+ * @param {string} colorOptions.color - The text color of the events
26897
+ * @param {string} colorOptions.borderColor - Left border color of events
26898
+ * @param {string} colorOptions.backgroundColor - Background color of events
26899
+ * @param {string} colorOptions.dragBackgroundColor - Background color of events during dragging
26900
+ *
26901
+ * @example
26902
+ * calendar.setCalendarColor('1', {
26903
+ * color: '#e8e8e8',
26904
+ * backgroundColor: '#585858',
26905
+ * borderColor: '#a1b56c',
26906
+ * dragBackgroundColor: '#585858',
26907
+ * });
26908
+ * calendar.setCalendarColor('2', {
26909
+ * color: '#282828',
26910
+ * backgroundColor: '#dc9656',
26911
+ * borderColor: '#a1b56c',
26912
+ * dragBackgroundColor: '#dc9656',
26913
+ * });
26914
+ * calendar.setCalendarColor('3', {
26915
+ * color: '#a16946',
26916
+ * backgroundColor: '#ab4642',
26917
+ * borderColor: '#a1b56c',
26918
+ * dragBackgroundColor: '#ab4642',
26919
+ * });
26920
26920
  */
26921
26921
 
26922
26922
  }, {
@@ -26925,20 +26925,20 @@ var CalendarCore = /*#__PURE__*/function () {
26925
26925
  var setCalendarColor = this.getStoreDispatchers().calendar.setCalendarColor;
26926
26926
  setCalendarColor(calendarId, colorOptions);
26927
26927
  }
26928
- /**
26929
- * Change current view type.
26930
- *
26931
- * @param {string} viewName - The new view name to change to. Available values are 'month', 'week', 'day'.
26932
- *
26933
- * @example
26934
- * // change to daily view
26935
- * calendar.changeView('day');
26936
- *
26937
- * // change to weekly view
26938
- * calendar.changeView('week');
26939
- *
26940
- * // change to monthly view
26941
- * calendar.changeView('month');
26928
+ /**
26929
+ * Change current view type.
26930
+ *
26931
+ * @param {string} viewName - The new view name to change to. Available values are 'month', 'week', 'day'.
26932
+ *
26933
+ * @example
26934
+ * // change to daily view
26935
+ * calendar.changeView('day');
26936
+ *
26937
+ * // change to weekly view
26938
+ * calendar.changeView('week');
26939
+ *
26940
+ * // change to monthly view
26941
+ * calendar.changeView('month');
26942
26942
  */
26943
26943
 
26944
26944
  }, {
@@ -26950,17 +26950,17 @@ var CalendarCore = /*#__PURE__*/function () {
26950
26950
  changeView(viewName);
26951
26951
  this.renderRange = this.calculateRenderRange(this.getDate());
26952
26952
  }
26953
- /**
26954
- * Get the DOM element of the event by event id and calendar id
26955
- *
26956
- * @param {string} eventId - ID of event
26957
- * @param {string} calendarId - calendarId of event
26958
- * @returns {HTMLElement} event element if found or null
26959
- *
26960
- * @example
26961
- * const element = calendar.getElement(eventId, calendarId);
26962
- *
26963
- * console.log(element);
26953
+ /**
26954
+ * Get the DOM element of the event by event id and calendar id
26955
+ *
26956
+ * @param {string} eventId - ID of event
26957
+ * @param {string} calendarId - calendarId of event
26958
+ * @returns {HTMLElement} event element if found or null
26959
+ *
26960
+ * @example
26961
+ * const element = calendar.getElement(eventId, calendarId);
26962
+ *
26963
+ * console.log(element);
26964
26964
  */
26965
26965
 
26966
26966
  }, {
@@ -26974,29 +26974,29 @@ var CalendarCore = /*#__PURE__*/function () {
26974
26974
 
26975
26975
  return null;
26976
26976
  }
26977
- /**
26978
- * Set the theme of the calendar.
26979
- *
26980
- * @param {Theme} theme - The theme object to apply. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/theme.md|Theme} in guide.
26981
- *
26982
- * @example
26983
- * calendar.setTheme({
26984
- * common: {
26985
- * gridSelection: {
26986
- * backgroundColor: '#333',
26987
- * },
26988
- * },
26989
- * week: {
26990
- * nowIndicatorLabel: {
26991
- * color: '#00FF00',
26992
- * },
26993
- * },
26994
- * month: {
26995
- * dayName: {
26996
- * borderLeft: '1px solid #e5e5e5',
26997
- * },
26998
- * },
26999
- * });
26977
+ /**
26978
+ * Set the theme of the calendar.
26979
+ *
26980
+ * @param {Theme} theme - The theme object to apply. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/theme.md|Theme} in guide.
26981
+ *
26982
+ * @example
26983
+ * calendar.setTheme({
26984
+ * common: {
26985
+ * gridSelection: {
26986
+ * backgroundColor: '#333',
26987
+ * },
26988
+ * },
26989
+ * week: {
26990
+ * nowIndicatorLabel: {
26991
+ * color: '#00FF00',
26992
+ * },
26993
+ * },
26994
+ * month: {
26995
+ * dayName: {
26996
+ * borderLeft: '1px solid #e5e5e5',
26997
+ * },
26998
+ * },
26999
+ * });
27000
27000
  */
27001
27001
 
27002
27002
  }, {
@@ -27005,10 +27005,10 @@ var CalendarCore = /*#__PURE__*/function () {
27005
27005
  var setTheme = this.theme.getState().dispatch.setTheme;
27006
27006
  setTheme(theme);
27007
27007
  }
27008
- /**
27009
- * Get current options.
27010
- *
27011
- * @returns {Options} - The current options of the instance
27008
+ /**
27009
+ * Get current options.
27010
+ *
27011
+ * @returns {Options} - The current options of the instance
27012
27012
  */
27013
27013
 
27014
27014
  }, {
@@ -27027,10 +27027,10 @@ var CalendarCore = /*#__PURE__*/function () {
27027
27027
  theme: theme
27028
27028
  });
27029
27029
  }
27030
- /**
27031
- * Set options of calendar. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md|Options} in guide.
27032
- *
27033
- * @param {Options} options - The options to set
27030
+ /**
27031
+ * Set options of calendar. For more information, see {@link https://github.com/nhn/tui.calendar/blob/main/docs/en/apis/options.md|Options} in guide.
27032
+ *
27033
+ * @param {Options} options - The options to set
27034
27034
  */
27035
27035
 
27036
27036
  }, {
@@ -27057,10 +27057,10 @@ var CalendarCore = /*#__PURE__*/function () {
27057
27057
 
27058
27058
  setOptions(restOptions);
27059
27059
  }
27060
- /**
27061
- * Get current rendered date. (see {@link TZDate} for further information)
27062
- *
27063
- * @returns {TZDate}
27060
+ /**
27061
+ * Get current rendered date. (see {@link TZDate} for further information)
27062
+ *
27063
+ * @returns {TZDate}
27064
27064
  */
27065
27065
 
27066
27066
  }, {
@@ -27069,10 +27069,10 @@ var CalendarCore = /*#__PURE__*/function () {
27069
27069
  var renderDate = this.getStoreState().view.renderDate;
27070
27070
  return renderDate;
27071
27071
  }
27072
- /**
27073
- * Start time of rendered date range. (see {@link TZDate} for further information)
27074
- *
27075
- * @returns {TZDate}
27072
+ /**
27073
+ * Start time of rendered date range. (see {@link TZDate} for further information)
27074
+ *
27075
+ * @returns {TZDate}
27076
27076
  */
27077
27077
 
27078
27078
  }, {
@@ -27080,10 +27080,10 @@ var CalendarCore = /*#__PURE__*/function () {
27080
27080
  value: function getDateRangeStart() {
27081
27081
  return this.renderRange.start;
27082
27082
  }
27083
- /**
27084
- * End time of rendered date range. (see {@link TZDate} for further information)
27085
- *
27086
- * @returns {TZDate}
27083
+ /**
27084
+ * End time of rendered date range. (see {@link TZDate} for further information)
27085
+ *
27086
+ * @returns {TZDate}
27087
27087
  */
27088
27088
 
27089
27089
  }, {
@@ -27091,10 +27091,10 @@ var CalendarCore = /*#__PURE__*/function () {
27091
27091
  value: function getDateRangeEnd() {
27092
27092
  return this.renderRange.end;
27093
27093
  }
27094
- /**
27095
- * Get current view name('day', 'week', 'month').
27096
- *
27097
- * @returns {string} current view name ('day', 'week', 'month')
27094
+ /**
27095
+ * Get current view name('day', 'week', 'month').
27096
+ *
27097
+ * @returns {string} current view name ('day', 'week', 'month')
27098
27098
  */
27099
27099
 
27100
27100
  }, {
@@ -27105,10 +27105,10 @@ var CalendarCore = /*#__PURE__*/function () {
27105
27105
 
27106
27106
  return currentView;
27107
27107
  }
27108
- /**
27109
- * Set calendar list.
27110
- *
27111
- * @param {CalendarInfo[]} calendars - list of calendars
27108
+ /**
27109
+ * Set calendar list.
27110
+ *
27111
+ * @param {CalendarInfo[]} calendars - list of calendars
27112
27112
  */
27113
27113
 
27114
27114
  }, {
@@ -27118,10 +27118,10 @@ var CalendarCore = /*#__PURE__*/function () {
27118
27118
  setCalendars(calendars);
27119
27119
  } // TODO: specify position of popup
27120
27120
 
27121
- /**
27122
- * Open event form popup with predefined form values.
27123
- *
27124
- * @param {EventObject} event - The predefined {@link EventObject} data to show in form.
27121
+ /**
27122
+ * Open event form popup with predefined form values.
27123
+ *
27124
+ * @param {EventObject} event - The predefined {@link EventObject} data to show in form.
27125
27125
  */
27126
27126
 
27127
27127
  }, {
@@ -27239,12 +27239,12 @@ function isValidViewType(viewType) {
27239
27239
  return type === viewType;
27240
27240
  });
27241
27241
  }
27242
- /**
27243
- * Calendar class
27244
- *
27245
- * @class Calendar
27246
- * @extends CalendarCore
27247
- * @param {object} options - Calendar options. Check out {@link CalendarCore} for more information.
27242
+ /**
27243
+ * Calendar class
27244
+ *
27245
+ * @class Calendar
27246
+ * @extends CalendarCore
27247
+ * @param {object} options - Calendar options. Check out {@link CalendarCore} for more information.
27248
27248
  */
27249
27249
 
27250
27250