@weni/unnnic-system 1.9.0 → 1.9.1

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.
@@ -9643,6 +9643,17 @@ module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
9643
9643
  })));
9644
9644
 
9645
9645
 
9646
+ /***/ }),
9647
+
9648
+ /***/ "5770":
9649
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
9650
+
9651
+ "use strict";
9652
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatePicker_vue_vue_type_style_index_0_id_09b7df46_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7a01");
9653
+ /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatePicker_vue_vue_type_style_index_0_id_09b7df46_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatePicker_vue_vue_type_style_index_0_id_09b7df46_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
9654
+ /* unused harmony reexport * */
9655
+
9656
+
9646
9657
  /***/ }),
9647
9658
 
9648
9659
  /***/ "5778":
@@ -12910,6 +12921,13 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
12910
12921
 
12911
12922
  /***/ }),
12912
12923
 
12924
+ /***/ "7a01":
12925
+ /***/ (function(module, exports, __webpack_require__) {
12926
+
12927
+ // extracted by mini-css-extract-plugin
12928
+
12929
+ /***/ }),
12930
+
12913
12931
  /***/ "7b0b":
12914
12932
  /***/ (function(module, exports, __webpack_require__) {
12915
12933
 
@@ -15699,13 +15717,6 @@ if (PATCH) {
15699
15717
  module.exports = patchedExec;
15700
15718
 
15701
15719
 
15702
- /***/ }),
15703
-
15704
- /***/ "92d5":
15705
- /***/ (function(module, exports, __webpack_require__) {
15706
-
15707
- // extracted by mini-css-extract-plugin
15708
-
15709
15720
  /***/ }),
15710
15721
 
15711
15722
  /***/ "946f":
@@ -29128,17 +29139,6 @@ module.exports = "<svg viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\
29128
29139
 
29129
29140
  module.exports = "<svg id=\"default\" viewBox=\"0 0 80 40\" xmlns=\"http://www.w3.org/2000/svg\"><style type=\"text/css\"> rect { transition: fill .2s ease; } </style><rect x=\"4.20013\" y=\"2.10046\" width=\"71.6\" height=\"35.8\" rx=\"17.9\" class=\"primary\"></rect><circle id=\"default-circle\" cx=\"22.5\" cy=\"20.0005\" r=\"12.5\" fill=\"white\"></circle></svg>"
29130
29141
 
29131
- /***/ }),
29132
-
29133
- /***/ "dd28":
29134
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
29135
-
29136
- "use strict";
29137
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatePicker_vue_vue_type_style_index_0_id_2825e799_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("92d5");
29138
- /* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatePicker_vue_vue_type_style_index_0_id_2825e799_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_8_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_DatePicker_vue_vue_type_style_index_0_id_2825e799_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
29139
- /* unused harmony reexport * */
29140
-
29141
-
29142
29142
  /***/ }),
29143
29143
 
29144
29144
  /***/ "ddb0":
@@ -40176,20 +40176,36 @@ var Comment_component = normalizeComponent(
40176
40176
  )
40177
40177
 
40178
40178
  /* harmony default export */ var Comment = (Comment_component.exports);
40179
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatePicker/DatePicker.vue?vue&type=template&id=2825e799&scoped=true&
40180
- var DatePickervue_type_template_id_2825e799_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-date-picker"},[_vm._l((_vm.openMonths),function(openMonth,index){return [_c('div',{key:openMonth,staticClass:"month-container"},[_c('div',{class:['header', ("header--" + _vm.size)]},[_c('unnnic-button',{staticClass:"button-space",style:({ gridArea: ((index === 0 ? 'left' : 'right') + "-button") }),attrs:{"size":"small","icon-center":("arrow-" + (index === 0 ? 'left' : 'right') + "-1-1"),"type":_vm.size === 'large' ? 'secondary' : 'terciary'},on:{"click":function($event){_vm.referenceDate = _vm.addMonth(_vm.referenceDate, index === 0 ? -1 : 1)}}}),_c('div',{class:['label', ("label--" + _vm.size)]},[_vm._v(" "+_vm._s(_vm.months[_vm.getMonth(openMonth)])+" "+_vm._s(_vm.getFullYear(openMonth))+" ")])],1),_c('div',{class:['days', ("days--" + _vm.size)]},[_vm._l((_vm.days),function(day,index){return _c('div',{key:index,staticClass:"name"},[_vm._v(_vm._s(day))])}),_vm._l((_vm.getDatesOfTheMonth(openMonth)),function(date,index){return _c('div',{key:(openMonth + "-" + index),class:{
40181
- disabled: !date.properties.includes('inside month'),
40182
- selectable: date.properties.includes('inside month'),
40183
- today: date.properties.includes('today'),
40184
- selected: date.properties.includes('selected'),
40185
- highlighted: date.properties.includes('highlighted'),
40186
- left: date.properties.includes('left-highlighted'),
40187
- right: date.properties.includes('right-highlighted'),
40188
- },on:{"click":function($event){date.properties.includes('inside month') && _vm.selectDate(date)}}},[_vm._v(" "+_vm._s(_vm.getDate(date))+" ")])})],2)]),_c('div',{key:("divider-" + openMonth),staticClass:"divider"})]}),(_vm.size !== 'small')?_c('div',{staticClass:"options-container"},[_c('div',{staticClass:"options"},_vm._l((_vm.options),function(option,index){return _c('div',{key:index,class:['option', { selected: _vm.optionSelected === option.id }],on:{"click":function($event){return _vm.autoSelect(option.id)}}},[_vm._v(" "+_vm._s(option.name)+" ")])}),0),_c('div',{staticClass:"actions"},[_c('unnnic-button',{attrs:{"size":"small","text":_vm.clearLabel,"type":"terciary"},on:{"click":_vm.clear}}),_c('unnnic-button',{attrs:{"size":"small","text":_vm.actionLabel,"type":"secondary"},on:{"click":function($event){return _vm.$emit('submit', _vm.value)}}})],1)]):_vm._e()],2)}
40189
- var DatePickervue_type_template_id_2825e799_scoped_true_staticRenderFns = []
40190
-
40191
-
40192
- // CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=template&id=2825e799&scoped=true&
40179
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"1cea8ebe-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DatePicker/DatePicker.vue?vue&type=template&id=09b7df46&scoped=true&
40180
+ var DatePickervue_type_template_id_09b7df46_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-date-picker"},[(_vm.type === 'day')?[_vm._l((_vm.openMonths),function(openMonth,index){return [_c('div',{key:openMonth,staticClass:"month-container"},[_c('div',{class:['header', ("header--" + _vm.size)]},[_c('unnnic-button',{staticClass:"button-space",style:({ gridArea: ((index === 0 ? 'left' : 'right') + "-button") }),attrs:{"size":"small","icon-center":("arrow-" + (index === 0 ? 'left' : 'right') + "-1-1"),"type":_vm.size === 'large' ? 'secondary' : 'terciary'},on:{"click":function($event){_vm.referenceDate = _vm.addMonth(_vm.referenceDate, index === 0 ? -1 : 1)}}}),_c('div',{class:['label', ("label--" + _vm.size)]},[_vm._v(" "+_vm._s(_vm.months[_vm.getMonth(openMonth)])+" "+_vm._s(_vm.getFullYear(openMonth))+" ")])],1),_c('div',{class:['days', ("days--" + _vm.size)]},[_vm._l((_vm.days),function(day,index){return _c('div',{key:index,staticClass:"name"},[_vm._v(_vm._s(day))])}),_vm._l((_vm.getDatesOfTheMonth(openMonth)),function(date,index){return _c('div',{key:(openMonth + "-" + index),class:{
40181
+ disabled: !date.properties.includes('inside month'),
40182
+ selectable: date.properties.includes('inside month'),
40183
+ today: date.properties.includes('today'),
40184
+ selected: date.properties.includes('selected'),
40185
+ highlighted: date.properties.includes('highlighted'),
40186
+ left: date.properties.includes('left-highlighted'),
40187
+ right: date.properties.includes('right-highlighted'),
40188
+ },on:{"click":function($event){date.properties.includes('inside month') && _vm.selectDate(date)}}},[_vm._v(" "+_vm._s(_vm.getDate(date))+" ")])})],2)]),_c('div',{key:("divider-" + openMonth),staticClass:"divider"})]})]:(_vm.type === 'month')?[_vm._l(([_vm.referenceDate]),function(openMonth){return [_c('div',{key:openMonth,staticClass:"month-container"},[_c('div',{class:['header', ("header--" + _vm.size)]},[_c('unnnic-button',{staticClass:"button-space",style:({ gridArea: 'left-button' }),attrs:{"size":"small","icon-center":"arrow-left-1-1","type":_vm.size === 'large' ? 'secondary' : 'terciary'},on:{"click":function($event){_vm.referenceDate = _vm.addMonth(_vm.referenceDate, -12)}}}),_c('div',{class:['label', ("label--" + _vm.size)]},[_vm._v(" "+_vm._s(_vm.getFullYear(openMonth))+" ")]),_c('unnnic-button',{staticClass:"button-space",style:({ gridArea: 'right-button' }),attrs:{"size":"small","icon-center":"arrow-right-1-1","type":_vm.size === 'large' ? 'secondary' : 'terciary'},on:{"click":function($event){_vm.referenceDate = _vm.addMonth(_vm.referenceDate, 12)}}})],1),_c('div',{class:['days', ("months--" + _vm.size)]},_vm._l((_vm.getMonthsOfTheYear(openMonth)),function(date,index){return _c('div',{key:(openMonth + "-" + index),class:{
40189
+ disabled: !date.properties.includes('inside month'),
40190
+ selectable: date.properties.includes('inside month'),
40191
+ today: date.properties.includes('today'),
40192
+ selected: date.properties.includes('selected'),
40193
+ highlighted: date.properties.includes('highlighted'),
40194
+ left: date.properties.includes('left-highlighted'),
40195
+ right: date.properties.includes('right-highlighted'),
40196
+ },on:{"click":function($event){date.properties.includes('inside month') && _vm.selectDate(date)}}},[_vm._v(" "+_vm._s(_vm.months[_vm.getMonth(date)].substr(0, 3))+" ")])}),0)]),_c('div',{key:("divider-" + openMonth),staticClass:"divider"})]})]:(_vm.type === 'year')?[_vm._l(([_vm.referenceDate]),function(openMonth){return [_c('div',{key:openMonth,staticClass:"month-container"},[_c('div',{class:['header', ("header--" + _vm.size)]},[_c('unnnic-button',{staticClass:"button-space",style:({ gridArea: 'left-button' }),attrs:{"size":"small","icon-center":"arrow-left-1-1","type":_vm.size === 'large' ? 'secondary' : 'terciary'},on:{"click":function($event){_vm.referenceDate = _vm.addMonth(_vm.referenceDate, -12 * 12)}}}),_c('div',{class:['label', ("label--" + _vm.size)]},[_vm._v(" "+_vm._s(_vm.getFullYear(openMonth))+" ")]),_c('unnnic-button',{staticClass:"button-space",style:({ gridArea: 'right-button' }),attrs:{"size":"small","icon-center":"arrow-right-1-1","type":_vm.size === 'large' ? 'secondary' : 'terciary'},on:{"click":function($event){_vm.referenceDate = _vm.addMonth(_vm.referenceDate, 12 * 12)}}})],1),_c('div',{class:['days', ("months--" + _vm.size)]},_vm._l((_vm.getYears(openMonth)),function(date,index){return _c('div',{key:(openMonth + "-" + index),class:{
40197
+ disabled: !date.properties.includes('inside month'),
40198
+ selectable: date.properties.includes('inside month'),
40199
+ today: date.properties.includes('today'),
40200
+ selected: date.properties.includes('selected'),
40201
+ highlighted: date.properties.includes('highlighted'),
40202
+ left: date.properties.includes('left-highlighted'),
40203
+ right: date.properties.includes('right-highlighted'),
40204
+ },on:{"click":function($event){date.properties.includes('inside month') && _vm.selectDate(date)}}},[_vm._v(" "+_vm._s(date.date)+" ")])}),0)]),_c('div',{key:("divider-" + openMonth),staticClass:"divider"})]})]:_vm._e(),(_vm.size !== 'small')?_c('div',{staticClass:"options-container"},[_c('div',{staticClass:"options"},_vm._l((_vm.options),function(option,index){return _c('div',{key:index,class:['option', { selected: _vm.optionSelected === option.id }],on:{"click":function($event){return _vm.autoSelect(option.id)}}},[_vm._v(" "+_vm._s(option.name)+" ")])}),0),_c('div',{staticClass:"actions"},[_c('unnnic-button',{attrs:{"size":"small","text":_vm.clearLabel,"type":"terciary"},on:{"click":_vm.clear}}),_c('unnnic-button',{attrs:{"size":"small","text":_vm.actionLabel,"type":"secondary"},on:{"click":function($event){return _vm.$emit('submit', _vm.value)}}})],1)]):_vm._e()],2)}
40205
+ var DatePickervue_type_template_id_09b7df46_scoped_true_staticRenderFns = []
40206
+
40207
+
40208
+ // CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=template&id=09b7df46&scoped=true&
40193
40209
 
40194
40210
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
40195
40211
  var es_string_match = __webpack_require__("466d");
@@ -40204,6 +40220,110 @@ var es_string_match = __webpack_require__("466d");
40204
40220
 
40205
40221
 
40206
40222
 
40223
+ //
40224
+ //
40225
+ //
40226
+ //
40227
+ //
40228
+ //
40229
+ //
40230
+ //
40231
+ //
40232
+ //
40233
+ //
40234
+ //
40235
+ //
40236
+ //
40237
+ //
40238
+ //
40239
+ //
40240
+ //
40241
+ //
40242
+ //
40243
+ //
40244
+ //
40245
+ //
40246
+ //
40247
+ //
40248
+ //
40249
+ //
40250
+ //
40251
+ //
40252
+ //
40253
+ //
40254
+ //
40255
+ //
40256
+ //
40257
+ //
40258
+ //
40259
+ //
40260
+ //
40261
+ //
40262
+ //
40263
+ //
40264
+ //
40265
+ //
40266
+ //
40267
+ //
40268
+ //
40269
+ //
40270
+ //
40271
+ //
40272
+ //
40273
+ //
40274
+ //
40275
+ //
40276
+ //
40277
+ //
40278
+ //
40279
+ //
40280
+ //
40281
+ //
40282
+ //
40283
+ //
40284
+ //
40285
+ //
40286
+ //
40287
+ //
40288
+ //
40289
+ //
40290
+ //
40291
+ //
40292
+ //
40293
+ //
40294
+ //
40295
+ //
40296
+ //
40297
+ //
40298
+ //
40299
+ //
40300
+ //
40301
+ //
40302
+ //
40303
+ //
40304
+ //
40305
+ //
40306
+ //
40307
+ //
40308
+ //
40309
+ //
40310
+ //
40311
+ //
40312
+ //
40313
+ //
40314
+ //
40315
+ //
40316
+ //
40317
+ //
40318
+ //
40319
+ //
40320
+ //
40321
+ //
40322
+ //
40323
+ //
40324
+ //
40325
+ //
40326
+ //
40207
40327
  //
40208
40328
  //
40209
40329
  //
@@ -40287,6 +40407,10 @@ var es_string_match = __webpack_require__("466d");
40287
40407
  props: {
40288
40408
  initialStartDate: String,
40289
40409
  initialEndDate: String,
40410
+ type: {
40411
+ type: String,
40412
+ default: 'day'
40413
+ },
40290
40414
  size: {
40291
40415
  type: String,
40292
40416
  default: 'large',
@@ -40376,6 +40500,12 @@ var es_string_match = __webpack_require__("466d");
40376
40500
  dateToString: function dateToString(date) {
40377
40501
  return "".concat(date.getMonth() + 1, " ").concat(date.getDate(), " ").concat(date.getFullYear());
40378
40502
  },
40503
+ dateToStringMonth: function dateToStringMonth(date) {
40504
+ return "".concat(date.getMonth() + 1, " ").concat(date.getFullYear());
40505
+ },
40506
+ dateToStringYear: function dateToStringYear(date) {
40507
+ return date.getFullYear();
40508
+ },
40379
40509
  stringToTime: function stringToTime(date) {
40380
40510
  return new Date(date).getTime();
40381
40511
  },
@@ -40406,6 +40536,41 @@ var es_string_match = __webpack_require__("466d");
40406
40536
 
40407
40537
  return false;
40408
40538
  },
40539
+ isDateBetweenMonth: function isDateBetweenMonth(internalDate) {
40540
+ var startDate = new Date(this.startDate);
40541
+ startDate.setDate(1);
40542
+ var startDateTime = startDate.getTime();
40543
+
40544
+ if (this.startDate && this.endDate) {
40545
+ if (internalDate >= startDateTime && internalDate <= this.stringToTime(this.endDate)) {
40546
+ return true;
40547
+ }
40548
+ } else if (this.startDate && internalDate >= startDateTime) {
40549
+ return true;
40550
+ } else if (this.endDate && internalDate <= this.stringToTime(this.endDate)) {
40551
+ return true;
40552
+ }
40553
+
40554
+ return false;
40555
+ },
40556
+ isDateBetweenYear: function isDateBetweenYear(internalDate) {
40557
+ var startDate = new Date(this.startDate);
40558
+ startDate.setDate(1);
40559
+ startDate.setMonth(0);
40560
+ var startDateTime = startDate.getTime();
40561
+
40562
+ if (this.startDate && this.endDate) {
40563
+ if (internalDate >= startDateTime && internalDate <= this.stringToTime(this.endDate)) {
40564
+ return true;
40565
+ }
40566
+ } else if (this.startDate && internalDate >= startDateTime) {
40567
+ return true;
40568
+ } else if (this.endDate && internalDate <= this.stringToTime(this.endDate)) {
40569
+ return true;
40570
+ }
40571
+
40572
+ return false;
40573
+ },
40409
40574
  getDatesOfTheMonth: function getDatesOfTheMonth(referenceDate) {
40410
40575
  var _this = this;
40411
40576
 
@@ -40464,6 +40629,122 @@ var es_string_match = __webpack_require__("466d");
40464
40629
 
40465
40630
  return dates;
40466
40631
  },
40632
+ getMonthsOfTheYear: function getMonthsOfTheYear(referenceDate) {
40633
+ var _this2 = this;
40634
+
40635
+ var date = new Date(referenceDate);
40636
+ date.setMonth(0);
40637
+ var dates = [];
40638
+
40639
+ var _loop2 = function _loop2(i) {
40640
+ var dateString = _this2.dateToString(date);
40641
+
40642
+ var properties = [];
40643
+ properties.push('inside month');
40644
+
40645
+ var dateInTime = _this2.stringToTime(_this2.dateToString(date));
40646
+
40647
+ var monthBefore = new Date(dateInTime);
40648
+ var monthAfter = new Date(dateInTime);
40649
+ monthBefore.setMonth(monthBefore.getMonth() - 1);
40650
+ monthAfter.setMonth(monthAfter.getMonth() + 1);
40651
+ monthBefore = monthBefore.getTime();
40652
+ monthAfter = monthAfter.getTime();
40653
+
40654
+ if (_this2.isDateBetweenMonth(dateInTime)) {
40655
+ properties.push('selected');
40656
+
40657
+ if (!_this2.isDateBetweenMonth(monthBefore)) {
40658
+ properties.push('left-highlighted');
40659
+ }
40660
+
40661
+ if (!_this2.isDateBetweenMonth(monthAfter)) {
40662
+ properties.push('right-highlighted');
40663
+ }
40664
+
40665
+ if (properties.includes('left-highlighted') || properties.includes('right-highlighted')) {
40666
+ properties.push('highlighted');
40667
+ }
40668
+ }
40669
+
40670
+ if (_this2.dateToStringMonth(date) === _this2.dateToStringMonth(new Date())) {
40671
+ properties.push('today');
40672
+ }
40673
+
40674
+ dates.push({
40675
+ properties: properties,
40676
+ date: dateString,
40677
+ toString: function toString() {
40678
+ return dateString;
40679
+ }
40680
+ });
40681
+ date.setMonth(date.getMonth() + 1);
40682
+ };
40683
+
40684
+ for (var i = 0; i < 3 * 4; i += 1) {
40685
+ _loop2(i);
40686
+ }
40687
+
40688
+ return dates;
40689
+ },
40690
+ getYears: function getYears(referenceDate) {
40691
+ var _this3 = this;
40692
+
40693
+ var date = new Date(referenceDate);
40694
+ date.setMonth(0);
40695
+ var dates = [];
40696
+
40697
+ var _loop3 = function _loop3(i) {
40698
+ var dateString = _this3.dateToString(date);
40699
+
40700
+ var properties = [];
40701
+ properties.push('inside month');
40702
+
40703
+ var dateInTime = _this3.stringToTime(_this3.dateToString(date));
40704
+
40705
+ var yearBefore = new Date(dateInTime);
40706
+ var yearAfter = new Date(dateInTime);
40707
+ yearBefore.setMonth(yearBefore.getMonth() - 12);
40708
+ yearAfter.setMonth(yearAfter.getMonth() + 12);
40709
+ yearBefore = yearBefore.getTime();
40710
+ yearAfter = yearAfter.getTime();
40711
+
40712
+ if (_this3.isDateBetweenYear(dateInTime)) {
40713
+ properties.push('selected');
40714
+
40715
+ if (!_this3.isDateBetweenYear(yearBefore)) {
40716
+ properties.push('left-highlighted');
40717
+ }
40718
+
40719
+ if (!_this3.isDateBetweenYear(yearAfter)) {
40720
+ properties.push('right-highlighted');
40721
+ }
40722
+
40723
+ if (properties.includes('left-highlighted') || properties.includes('right-highlighted')) {
40724
+ properties.push('highlighted');
40725
+ }
40726
+ }
40727
+
40728
+ if (_this3.dateToStringYear(date) === _this3.dateToStringYear(new Date())) {
40729
+ properties.push('today');
40730
+ }
40731
+
40732
+ dates.push({
40733
+ properties: properties,
40734
+ date: date.getFullYear(),
40735
+ toString: function toString() {
40736
+ return dateString;
40737
+ }
40738
+ });
40739
+ date.setFullYear(date.getFullYear() + 1);
40740
+ };
40741
+
40742
+ for (var i = 0; i < 3 * 4; i += 1) {
40743
+ _loop3(i);
40744
+ }
40745
+
40746
+ return dates;
40747
+ },
40467
40748
  selectDate: function selectDate(date) {
40468
40749
  if (!this.startDate || !this.endDate) {
40469
40750
  this.startDate = date.toString();
@@ -40493,7 +40774,7 @@ var es_string_match = __webpack_require__("466d");
40493
40774
  this.optionSelected = '';
40494
40775
  },
40495
40776
  autoSelect: function autoSelect(method) {
40496
- var _this2 = this;
40777
+ var _this4 = this;
40497
40778
 
40498
40779
  var today = new Date();
40499
40780
  var days = method.match(/^last-(\d+)-days$/);
@@ -40529,15 +40810,15 @@ var es_string_match = __webpack_require__("466d");
40529
40810
  }
40530
40811
 
40531
40812
  this.$nextTick(function () {
40532
- _this2.optionSelected = method;
40813
+ _this4.optionSelected = method;
40533
40814
  });
40534
40815
  }
40535
40816
  }
40536
40817
  });
40537
40818
  // CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=script&lang=js&
40538
40819
  /* harmony default export */ var DatePicker_DatePickervue_type_script_lang_js_ = (DatePickervue_type_script_lang_js_);
40539
- // EXTERNAL MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=style&index=0&id=2825e799&lang=scss&scoped=true&
40540
- var DatePickervue_type_style_index_0_id_2825e799_lang_scss_scoped_true_ = __webpack_require__("dd28");
40820
+ // EXTERNAL MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=style&index=0&id=09b7df46&lang=scss&scoped=true&
40821
+ var DatePickervue_type_style_index_0_id_09b7df46_lang_scss_scoped_true_ = __webpack_require__("5770");
40541
40822
 
40542
40823
  // CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue
40543
40824
 
@@ -40550,11 +40831,11 @@ var DatePickervue_type_style_index_0_id_2825e799_lang_scss_scoped_true_ = __webp
40550
40831
 
40551
40832
  var DatePicker_component = normalizeComponent(
40552
40833
  DatePicker_DatePickervue_type_script_lang_js_,
40553
- DatePickervue_type_template_id_2825e799_scoped_true_render,
40554
- DatePickervue_type_template_id_2825e799_scoped_true_staticRenderFns,
40834
+ DatePickervue_type_template_id_09b7df46_scoped_true_render,
40835
+ DatePickervue_type_template_id_09b7df46_scoped_true_staticRenderFns,
40555
40836
  false,
40556
40837
  null,
40557
- "2825e799",
40838
+ "09b7df46",
40558
40839
  null
40559
40840
 
40560
40841
  )
@@ -42524,26 +42805,26 @@ var AudioRecordervue_type_script_lang_js_normalizeData = function normalizeData(
42524
42805
  },
42525
42806
  data: function data() {
42526
42807
  return {
42527
- /**
42528
- * @type MediaRecorder
42808
+ /**
42809
+ * @type MediaRecorder
42529
42810
  */
42530
42811
  recorder: null,
42531
42812
 
42532
- /**
42533
- * @type HTMLAudioElement
42813
+ /**
42814
+ * @type HTMLAudioElement
42534
42815
  */
42535
42816
  audio: null,
42536
42817
 
42537
- /**
42538
- * @type MediaStream
42818
+ /**
42819
+ * @type MediaStream
42539
42820
  */
42540
42821
  stream: null,
42541
42822
  audioChunks: [],
42542
42823
  duration: 0,
42543
42824
  currentTime: 0,
42544
42825
 
42545
- /**
42546
- * @type {('idle'|'recording'|'recorded'|'playing'|'paused')}
42826
+ /**
42827
+ * @type {('idle'|'recording'|'recorded'|'playing'|'paused')}
42547
42828
  */
42548
42829
  status: 'idle',
42549
42830
  bars: []