@weni/unnnic-system 1.8.1 → 1.9.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.
- package/dist/unnnic.common.js +1175 -563
- package/dist/unnnic.common.js.map +1 -1
- package/dist/unnnic.css +1 -1
- package/dist/unnnic.umd.js +1175 -563
- package/dist/unnnic.umd.js.map +1 -1
- package/dist/unnnic.umd.min.js +26 -26
- package/dist/unnnic.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/icons/delete-2-1.svg +3 -3
- package/src/components/CircleProgressBar/CircleProgressBar.vue +146 -0
- package/src/components/DatePicker/DatePicker.vue +314 -34
- package/src/components/InputDatePicker/InputDatePicker.vue +189 -0
- package/src/components/index.js +6 -0
- package/src/stories/CircleProgressBar.stories.js +36 -0
- package/src/stories/DatePicker.stories.js +6 -0
- package/src/stories/InputDatePicker.stories.js +47 -0
package/dist/unnnic.common.js
CHANGED
|
@@ -6523,6 +6523,17 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
6523
6523
|
})));
|
|
6524
6524
|
|
|
6525
6525
|
|
|
6526
|
+
/***/ }),
|
|
6527
|
+
|
|
6528
|
+
/***/ "3aef":
|
|
6529
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
6530
|
+
|
|
6531
|
+
"use strict";
|
|
6532
|
+
/* 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_4ec880fe_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("519c");
|
|
6533
|
+
/* 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_4ec880fe_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_4ec880fe_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
6534
|
+
/* unused harmony reexport * */
|
|
6535
|
+
|
|
6536
|
+
|
|
6526
6537
|
/***/ }),
|
|
6527
6538
|
|
|
6528
6539
|
/***/ "3b1b":
|
|
@@ -8163,6 +8174,17 @@ module.exports = function (O, defaultConstructor) {
|
|
|
8163
8174
|
})));
|
|
8164
8175
|
|
|
8165
8176
|
|
|
8177
|
+
/***/ }),
|
|
8178
|
+
|
|
8179
|
+
/***/ "488c":
|
|
8180
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8181
|
+
|
|
8182
|
+
"use strict";
|
|
8183
|
+
/* 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_InputDatePicker_vue_vue_type_style_index_0_id_fdd40868_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a97a");
|
|
8184
|
+
/* 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_InputDatePicker_vue_vue_type_style_index_0_id_fdd40868_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_InputDatePicker_vue_vue_type_style_index_0_id_fdd40868_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
8185
|
+
/* unused harmony reexport * */
|
|
8186
|
+
|
|
8187
|
+
|
|
8166
8188
|
/***/ }),
|
|
8167
8189
|
|
|
8168
8190
|
/***/ "4930":
|
|
@@ -8965,6 +8987,13 @@ module.exports = function (it, key) {
|
|
|
8965
8987
|
};
|
|
8966
8988
|
|
|
8967
8989
|
|
|
8990
|
+
/***/ }),
|
|
8991
|
+
|
|
8992
|
+
/***/ "519c":
|
|
8993
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
8994
|
+
|
|
8995
|
+
// extracted by mini-css-extract-plugin
|
|
8996
|
+
|
|
8968
8997
|
/***/ }),
|
|
8969
8998
|
|
|
8970
8999
|
/***/ "5223":
|
|
@@ -15699,13 +15728,6 @@ if (PATCH) {
|
|
|
15699
15728
|
module.exports = patchedExec;
|
|
15700
15729
|
|
|
15701
15730
|
|
|
15702
|
-
/***/ }),
|
|
15703
|
-
|
|
15704
|
-
/***/ "92d5":
|
|
15705
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
15706
|
-
|
|
15707
|
-
// extracted by mini-css-extract-plugin
|
|
15708
|
-
|
|
15709
15731
|
/***/ }),
|
|
15710
15732
|
|
|
15711
15733
|
/***/ "946f":
|
|
@@ -18876,6 +18898,13 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
18876
18898
|
|
|
18877
18899
|
/***/ }),
|
|
18878
18900
|
|
|
18901
|
+
/***/ "a97a":
|
|
18902
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
18903
|
+
|
|
18904
|
+
// extracted by mini-css-extract-plugin
|
|
18905
|
+
|
|
18906
|
+
/***/ }),
|
|
18907
|
+
|
|
18879
18908
|
/***/ "a9e3":
|
|
18880
18909
|
/***/ (function(module, exports, __webpack_require__) {
|
|
18881
18910
|
|
|
@@ -29128,17 +29157,6 @@ module.exports = "<svg viewBox=\"0 0 40 40\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
29128
29157
|
|
|
29129
29158
|
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
29159
|
|
|
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
29160
|
/***/ }),
|
|
29143
29161
|
|
|
29144
29162
|
/***/ "ddb0":
|
|
@@ -29615,6 +29633,17 @@ addToUnscopables('entries');
|
|
|
29615
29633
|
/* unused harmony reexport * */
|
|
29616
29634
|
|
|
29617
29635
|
|
|
29636
|
+
/***/ }),
|
|
29637
|
+
|
|
29638
|
+
/***/ "e291":
|
|
29639
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
29640
|
+
|
|
29641
|
+
"use strict";
|
|
29642
|
+
/* 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_CircleProgressBar_vue_vue_type_style_index_0_id_19c569be_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f01b");
|
|
29643
|
+
/* 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_CircleProgressBar_vue_vue_type_style_index_0_id_19c569be_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_CircleProgressBar_vue_vue_type_style_index_0_id_19c569be_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
29644
|
+
/* unused harmony reexport * */
|
|
29645
|
+
|
|
29646
|
+
|
|
29618
29647
|
/***/ }),
|
|
29619
29648
|
|
|
29620
29649
|
/***/ "e2ae":
|
|
@@ -30751,6 +30780,13 @@ module.exports = "<svg viewBox=\"0 0 40 40\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
30751
30780
|
/* unused harmony reexport * */
|
|
30752
30781
|
|
|
30753
30782
|
|
|
30783
|
+
/***/ }),
|
|
30784
|
+
|
|
30785
|
+
/***/ "f01b":
|
|
30786
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30787
|
+
|
|
30788
|
+
// extracted by mini-css-extract-plugin
|
|
30789
|
+
|
|
30754
30790
|
/***/ }),
|
|
30755
30791
|
|
|
30756
30792
|
/***/ "f069":
|
|
@@ -31382,6 +31418,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
31382
31418
|
|
|
31383
31419
|
// EXPORTS
|
|
31384
31420
|
__webpack_require__.d(__webpack_exports__, "unnnicInput", function() { return /* reexport */ unnnicInput; });
|
|
31421
|
+
__webpack_require__.d(__webpack_exports__, "unnnicInputDatePicker", function() { return /* reexport */ unnnicInputDatePicker; });
|
|
31385
31422
|
__webpack_require__.d(__webpack_exports__, "unnnicButton", function() { return /* reexport */ unnnicButton; });
|
|
31386
31423
|
__webpack_require__.d(__webpack_exports__, "unnnicButtonIcon", function() { return /* reexport */ unnnicButtonIcon; });
|
|
31387
31424
|
__webpack_require__.d(__webpack_exports__, "unnnicSidebar", function() { return /* reexport */ unnnicSidebar; });
|
|
@@ -31440,6 +31477,7 @@ __webpack_require__.d(__webpack_exports__, "unnnicTextEditor", function() { retu
|
|
|
31440
31477
|
__webpack_require__.d(__webpack_exports__, "unnnicMoodRating", function() { return /* reexport */ unnnicMoodRating; });
|
|
31441
31478
|
__webpack_require__.d(__webpack_exports__, "unnnicStarRating", function() { return /* reexport */ unnnicStarRating; });
|
|
31442
31479
|
__webpack_require__.d(__webpack_exports__, "unnnicAudioRecorder", function() { return /* reexport */ unnnicAudioRecorder; });
|
|
31480
|
+
__webpack_require__.d(__webpack_exports__, "unnnicCircleProgressBar", function() { return /* reexport */ unnnicCircleProgressBar; });
|
|
31443
31481
|
|
|
31444
31482
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
31445
31483
|
// This file is imported into lib/wc client bundles.
|
|
@@ -33163,6 +33201,78 @@ var Input_component = normalizeComponent(
|
|
|
33163
33201
|
)
|
|
33164
33202
|
|
|
33165
33203
|
/* harmony default export */ var Input = (Input_component.exports);
|
|
33204
|
+
// 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/InputDatePicker/InputDatePicker.vue?vue&type=template&id=fdd40868&scoped=true&
|
|
33205
|
+
var InputDatePickervue_type_template_id_fdd40868_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"dropdown",class:['dropdown', { active: _vm.showCalendarFilter }]},[_c('unnnic-input',{staticClass:"input",attrs:{"size":_vm.size,"icon-left":"notes-1","readonly":"","value":_vm.filterText},on:{"focus":function($event){_vm.showCalendarFilter = true}}}),_c('div',{staticClass:"dropdown-data"},[(_vm.showCalendarFilter)?_c('unnnic-date-picker',{attrs:{"type":_vm.type,"clearLabel":_vm.clearText,"actionLabel":_vm.actionText,"months":_vm.months,"days":_vm.days,"options":_vm.options,"initial-start-date":_vm.initialStartDate,"initial-end-date":_vm.initialEndDate},on:{"submit":_vm.changeDate}}):_vm._e()],1)],1)}
|
|
33206
|
+
var InputDatePickervue_type_template_id_fdd40868_scoped_true_staticRenderFns = []
|
|
33207
|
+
|
|
33208
|
+
|
|
33209
|
+
// CONCATENATED MODULE: ./src/components/InputDatePicker/InputDatePicker.vue?vue&type=template&id=fdd40868&scoped=true&
|
|
33210
|
+
|
|
33211
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
33212
|
+
var es_array_includes = __webpack_require__("caad");
|
|
33213
|
+
|
|
33214
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
33215
|
+
var es_array_join = __webpack_require__("a15b");
|
|
33216
|
+
|
|
33217
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
33218
|
+
var es_regexp_exec = __webpack_require__("ac1f");
|
|
33219
|
+
|
|
33220
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
33221
|
+
var es_string_includes = __webpack_require__("2532");
|
|
33222
|
+
|
|
33223
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
33224
|
+
var es_string_replace = __webpack_require__("5319");
|
|
33225
|
+
|
|
33226
|
+
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
33227
|
+
var moment = __webpack_require__("c1df");
|
|
33228
|
+
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
33229
|
+
|
|
33230
|
+
// 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=4ec880fe&scoped=true&
|
|
33231
|
+
var DatePickervue_type_template_id_4ec880fe_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:{
|
|
33232
|
+
disabled: !date.properties.includes('inside month'),
|
|
33233
|
+
selectable: date.properties.includes('inside month'),
|
|
33234
|
+
today: date.properties.includes('today'),
|
|
33235
|
+
selected: date.properties.includes('selected'),
|
|
33236
|
+
highlighted: date.properties.includes('highlighted'),
|
|
33237
|
+
left: date.properties.includes('left-highlighted'),
|
|
33238
|
+
right: date.properties.includes('right-highlighted'),
|
|
33239
|
+
},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:{
|
|
33240
|
+
disabled: !date.properties.includes('inside month'),
|
|
33241
|
+
selectable: date.properties.includes('inside month'),
|
|
33242
|
+
today: date.properties.includes('today'),
|
|
33243
|
+
selected: date.properties.includes('selected'),
|
|
33244
|
+
highlighted: date.properties.includes('highlighted'),
|
|
33245
|
+
left: date.properties.includes('left-highlighted'),
|
|
33246
|
+
right: date.properties.includes('right-highlighted'),
|
|
33247
|
+
},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:{
|
|
33248
|
+
disabled: !date.properties.includes('inside month'),
|
|
33249
|
+
selectable: date.properties.includes('inside month'),
|
|
33250
|
+
today: date.properties.includes('today'),
|
|
33251
|
+
selected: date.properties.includes('selected'),
|
|
33252
|
+
highlighted: date.properties.includes('highlighted'),
|
|
33253
|
+
left: date.properties.includes('left-highlighted'),
|
|
33254
|
+
right: date.properties.includes('right-highlighted'),
|
|
33255
|
+
},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)}
|
|
33256
|
+
var DatePickervue_type_template_id_4ec880fe_scoped_true_staticRenderFns = []
|
|
33257
|
+
|
|
33258
|
+
|
|
33259
|
+
// CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=template&id=4ec880fe&scoped=true&
|
|
33260
|
+
|
|
33261
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
33262
|
+
var es_array_concat = __webpack_require__("99af");
|
|
33263
|
+
|
|
33264
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
33265
|
+
var es_number_constructor = __webpack_require__("a9e3");
|
|
33266
|
+
|
|
33267
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
33268
|
+
var es_object_to_string = __webpack_require__("d3b7");
|
|
33269
|
+
|
|
33270
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
33271
|
+
var es_regexp_to_string = __webpack_require__("25f0");
|
|
33272
|
+
|
|
33273
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
33274
|
+
var es_string_match = __webpack_require__("466d");
|
|
33275
|
+
|
|
33166
33276
|
// 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/Button/Button.vue?vue&type=template&id=0c05556c&scoped=true&
|
|
33167
33277
|
var Buttonvue_type_template_id_0c05556c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g(_vm._b({class:[
|
|
33168
33278
|
'unnnic-button',
|
|
@@ -33347,17 +33457,15 @@ var Button_component = normalizeComponent(
|
|
|
33347
33457
|
)
|
|
33348
33458
|
|
|
33349
33459
|
/* harmony default export */ var Button = (Button_component.exports);
|
|
33350
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js
|
|
33351
|
-
|
|
33352
|
-
|
|
33460
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js&
|
|
33461
|
+
|
|
33462
|
+
|
|
33463
|
+
|
|
33464
|
+
|
|
33353
33465
|
|
|
33354
33466
|
|
|
33355
|
-
// CONCATENATED MODULE: ./src/components/Button/ButtonIcon.vue?vue&type=template&id=16b0dec6&scoped=true&
|
|
33356
33467
|
|
|
33357
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
33358
|
-
var es_array_includes = __webpack_require__("caad");
|
|
33359
33468
|
|
|
33360
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Button/ButtonIcon.vue?vue&type=script&lang=js&
|
|
33361
33469
|
|
|
33362
33470
|
//
|
|
33363
33471
|
//
|
|
@@ -33372,72 +33480,6 @@ var es_array_includes = __webpack_require__("caad");
|
|
|
33372
33480
|
//
|
|
33373
33481
|
//
|
|
33374
33482
|
//
|
|
33375
|
-
|
|
33376
|
-
/* harmony default export */ var ButtonIconvue_type_script_lang_js_ = ({
|
|
33377
|
-
components: {
|
|
33378
|
-
UnnnicIcon: Icon
|
|
33379
|
-
},
|
|
33380
|
-
props: {
|
|
33381
|
-
type: {
|
|
33382
|
-
type: String,
|
|
33383
|
-
default: 'secondary'
|
|
33384
|
-
},
|
|
33385
|
-
size: {
|
|
33386
|
-
type: String,
|
|
33387
|
-
required: true,
|
|
33388
|
-
validator: function validator(value) {
|
|
33389
|
-
return ['small', 'large'].includes(value);
|
|
33390
|
-
}
|
|
33391
|
-
},
|
|
33392
|
-
icon: {
|
|
33393
|
-
type: String,
|
|
33394
|
-
required: true
|
|
33395
|
-
}
|
|
33396
|
-
},
|
|
33397
|
-
computed: {
|
|
33398
|
-
iconScheme: function iconScheme() {
|
|
33399
|
-
if (this.type === 'primary') {
|
|
33400
|
-
return 'neutral-snow';
|
|
33401
|
-
}
|
|
33402
|
-
|
|
33403
|
-
return 'neutral-darkest';
|
|
33404
|
-
}
|
|
33405
|
-
}
|
|
33406
|
-
});
|
|
33407
|
-
// CONCATENATED MODULE: ./src/components/Button/ButtonIcon.vue?vue&type=script&lang=js&
|
|
33408
|
-
/* harmony default export */ var Button_ButtonIconvue_type_script_lang_js_ = (ButtonIconvue_type_script_lang_js_);
|
|
33409
|
-
// EXTERNAL MODULE: ./src/components/Button/ButtonIcon.vue?vue&type=style&index=0&id=16b0dec6&lang=scss&scoped=true&
|
|
33410
|
-
var ButtonIconvue_type_style_index_0_id_16b0dec6_lang_scss_scoped_true_ = __webpack_require__("d319");
|
|
33411
|
-
|
|
33412
|
-
// CONCATENATED MODULE: ./src/components/Button/ButtonIcon.vue
|
|
33413
|
-
|
|
33414
|
-
|
|
33415
|
-
|
|
33416
|
-
|
|
33417
|
-
|
|
33418
|
-
|
|
33419
|
-
/* normalize component */
|
|
33420
|
-
|
|
33421
|
-
var ButtonIcon_component = normalizeComponent(
|
|
33422
|
-
Button_ButtonIconvue_type_script_lang_js_,
|
|
33423
|
-
ButtonIconvue_type_template_id_16b0dec6_scoped_true_render,
|
|
33424
|
-
ButtonIconvue_type_template_id_16b0dec6_scoped_true_staticRenderFns,
|
|
33425
|
-
false,
|
|
33426
|
-
null,
|
|
33427
|
-
"16b0dec6",
|
|
33428
|
-
null
|
|
33429
|
-
|
|
33430
|
-
)
|
|
33431
|
-
|
|
33432
|
-
/* harmony default export */ var ButtonIcon = (ButtonIcon_component.exports);
|
|
33433
|
-
// 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/Sidebar/Sidebar.vue?vue&type=template&id=21306aec&
|
|
33434
|
-
var Sidebarvue_type_template_id_21306aec_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{'unnnic-side-bar': true, 'unnnic-side-bar--contracted': !_vm.expanded}},[_c('div',{staticClass:"unnnic-side-bar__header"},[_vm._t("header")],2),_vm._t("default"),_c('div',{staticClass:"unnnic-side-bar__footer"},[_vm._t("footer")],2)],2)}
|
|
33435
|
-
var Sidebarvue_type_template_id_21306aec_staticRenderFns = []
|
|
33436
|
-
|
|
33437
|
-
|
|
33438
|
-
// CONCATENATED MODULE: ./src/components/Sidebar/Sidebar.vue?vue&type=template&id=21306aec&
|
|
33439
|
-
|
|
33440
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Sidebar/Sidebar.vue?vue&type=script&lang=js&
|
|
33441
33483
|
//
|
|
33442
33484
|
//
|
|
33443
33485
|
//
|
|
@@ -33450,65 +33492,928 @@ var Sidebarvue_type_template_id_21306aec_staticRenderFns = []
|
|
|
33450
33492
|
//
|
|
33451
33493
|
//
|
|
33452
33494
|
//
|
|
33453
|
-
|
|
33454
|
-
|
|
33455
|
-
|
|
33456
|
-
|
|
33457
|
-
|
|
33458
|
-
|
|
33459
|
-
|
|
33460
|
-
|
|
33461
|
-
|
|
33462
|
-
//
|
|
33463
|
-
|
|
33464
|
-
//
|
|
33465
|
-
|
|
33466
|
-
|
|
33467
|
-
//
|
|
33468
|
-
|
|
33469
|
-
|
|
33470
|
-
|
|
33471
|
-
|
|
33472
|
-
|
|
33473
|
-
|
|
33474
|
-
|
|
33475
|
-
|
|
33476
|
-
|
|
33477
|
-
|
|
33478
|
-
|
|
33479
|
-
|
|
33480
|
-
|
|
33481
|
-
|
|
33482
|
-
|
|
33483
|
-
|
|
33484
|
-
|
|
33485
|
-
|
|
33486
|
-
|
|
33487
|
-
|
|
33488
|
-
//
|
|
33489
|
-
|
|
33490
|
-
|
|
33491
|
-
|
|
33492
|
-
|
|
33493
|
-
|
|
33494
|
-
|
|
33495
|
-
|
|
33496
|
-
//
|
|
33497
|
-
|
|
33498
|
-
//
|
|
33499
|
-
|
|
33500
|
-
|
|
33501
|
-
|
|
33502
|
-
|
|
33503
|
-
|
|
33504
|
-
|
|
33505
|
-
|
|
33506
|
-
|
|
33507
|
-
|
|
33508
|
-
//
|
|
33509
|
-
|
|
33510
|
-
//
|
|
33511
|
-
|
|
33495
|
+
//
|
|
33496
|
+
//
|
|
33497
|
+
//
|
|
33498
|
+
//
|
|
33499
|
+
//
|
|
33500
|
+
//
|
|
33501
|
+
//
|
|
33502
|
+
//
|
|
33503
|
+
//
|
|
33504
|
+
//
|
|
33505
|
+
//
|
|
33506
|
+
//
|
|
33507
|
+
//
|
|
33508
|
+
//
|
|
33509
|
+
//
|
|
33510
|
+
//
|
|
33511
|
+
//
|
|
33512
|
+
//
|
|
33513
|
+
//
|
|
33514
|
+
//
|
|
33515
|
+
//
|
|
33516
|
+
//
|
|
33517
|
+
//
|
|
33518
|
+
//
|
|
33519
|
+
//
|
|
33520
|
+
//
|
|
33521
|
+
//
|
|
33522
|
+
//
|
|
33523
|
+
//
|
|
33524
|
+
//
|
|
33525
|
+
//
|
|
33526
|
+
//
|
|
33527
|
+
//
|
|
33528
|
+
//
|
|
33529
|
+
//
|
|
33530
|
+
//
|
|
33531
|
+
//
|
|
33532
|
+
//
|
|
33533
|
+
//
|
|
33534
|
+
//
|
|
33535
|
+
//
|
|
33536
|
+
//
|
|
33537
|
+
//
|
|
33538
|
+
//
|
|
33539
|
+
//
|
|
33540
|
+
//
|
|
33541
|
+
//
|
|
33542
|
+
//
|
|
33543
|
+
//
|
|
33544
|
+
//
|
|
33545
|
+
//
|
|
33546
|
+
//
|
|
33547
|
+
//
|
|
33548
|
+
//
|
|
33549
|
+
//
|
|
33550
|
+
//
|
|
33551
|
+
//
|
|
33552
|
+
//
|
|
33553
|
+
//
|
|
33554
|
+
//
|
|
33555
|
+
//
|
|
33556
|
+
//
|
|
33557
|
+
//
|
|
33558
|
+
//
|
|
33559
|
+
//
|
|
33560
|
+
//
|
|
33561
|
+
//
|
|
33562
|
+
//
|
|
33563
|
+
//
|
|
33564
|
+
//
|
|
33565
|
+
//
|
|
33566
|
+
//
|
|
33567
|
+
//
|
|
33568
|
+
//
|
|
33569
|
+
//
|
|
33570
|
+
//
|
|
33571
|
+
//
|
|
33572
|
+
//
|
|
33573
|
+
//
|
|
33574
|
+
//
|
|
33575
|
+
//
|
|
33576
|
+
//
|
|
33577
|
+
//
|
|
33578
|
+
//
|
|
33579
|
+
//
|
|
33580
|
+
//
|
|
33581
|
+
//
|
|
33582
|
+
//
|
|
33583
|
+
//
|
|
33584
|
+
//
|
|
33585
|
+
//
|
|
33586
|
+
//
|
|
33587
|
+
//
|
|
33588
|
+
//
|
|
33589
|
+
//
|
|
33590
|
+
//
|
|
33591
|
+
//
|
|
33592
|
+
//
|
|
33593
|
+
//
|
|
33594
|
+
//
|
|
33595
|
+
//
|
|
33596
|
+
//
|
|
33597
|
+
//
|
|
33598
|
+
//
|
|
33599
|
+
//
|
|
33600
|
+
//
|
|
33601
|
+
//
|
|
33602
|
+
//
|
|
33603
|
+
//
|
|
33604
|
+
//
|
|
33605
|
+
//
|
|
33606
|
+
//
|
|
33607
|
+
//
|
|
33608
|
+
//
|
|
33609
|
+
//
|
|
33610
|
+
//
|
|
33611
|
+
//
|
|
33612
|
+
//
|
|
33613
|
+
//
|
|
33614
|
+
//
|
|
33615
|
+
//
|
|
33616
|
+
//
|
|
33617
|
+
//
|
|
33618
|
+
//
|
|
33619
|
+
//
|
|
33620
|
+
//
|
|
33621
|
+
//
|
|
33622
|
+
//
|
|
33623
|
+
//
|
|
33624
|
+
//
|
|
33625
|
+
//
|
|
33626
|
+
//
|
|
33627
|
+
//
|
|
33628
|
+
//
|
|
33629
|
+
//
|
|
33630
|
+
//
|
|
33631
|
+
//
|
|
33632
|
+
//
|
|
33633
|
+
//
|
|
33634
|
+
//
|
|
33635
|
+
//
|
|
33636
|
+
//
|
|
33637
|
+
//
|
|
33638
|
+
//
|
|
33639
|
+
//
|
|
33640
|
+
//
|
|
33641
|
+
//
|
|
33642
|
+
//
|
|
33643
|
+
//
|
|
33644
|
+
//
|
|
33645
|
+
//
|
|
33646
|
+
//
|
|
33647
|
+
//
|
|
33648
|
+
//
|
|
33649
|
+
|
|
33650
|
+
/* harmony default export */ var DatePickervue_type_script_lang_js_ = ({
|
|
33651
|
+
components: {
|
|
33652
|
+
unnnicButton: Button
|
|
33653
|
+
},
|
|
33654
|
+
props: {
|
|
33655
|
+
initialStartDate: String,
|
|
33656
|
+
initialEndDate: String,
|
|
33657
|
+
type: {
|
|
33658
|
+
type: String,
|
|
33659
|
+
default: 'day',
|
|
33660
|
+
validator: function validator(type) {
|
|
33661
|
+
return ['day', 'month', 'year'].includes(type);
|
|
33662
|
+
}
|
|
33663
|
+
},
|
|
33664
|
+
size: {
|
|
33665
|
+
type: String,
|
|
33666
|
+
default: 'large',
|
|
33667
|
+
validator: function validator(size) {
|
|
33668
|
+
return ['small', 'large'].includes(size);
|
|
33669
|
+
}
|
|
33670
|
+
},
|
|
33671
|
+
clearLabel: {
|
|
33672
|
+
type: String
|
|
33673
|
+
},
|
|
33674
|
+
actionLabel: {
|
|
33675
|
+
type: String
|
|
33676
|
+
},
|
|
33677
|
+
months: {
|
|
33678
|
+
type: Array,
|
|
33679
|
+
default: function _default() {
|
|
33680
|
+
return ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
|
|
33681
|
+
},
|
|
33682
|
+
validator: function validator(months) {
|
|
33683
|
+
return months.length === 12;
|
|
33684
|
+
}
|
|
33685
|
+
},
|
|
33686
|
+
days: {
|
|
33687
|
+
type: Array,
|
|
33688
|
+
default: function _default() {
|
|
33689
|
+
return ['S', 'T', 'Q', 'Q', 'S', 'S', 'D'];
|
|
33690
|
+
},
|
|
33691
|
+
validator: function validator(days) {
|
|
33692
|
+
return days.length === 7;
|
|
33693
|
+
}
|
|
33694
|
+
},
|
|
33695
|
+
options: {
|
|
33696
|
+
type: Array,
|
|
33697
|
+
default: function _default() {
|
|
33698
|
+
return [{
|
|
33699
|
+
name: 'Últimos 7 dias',
|
|
33700
|
+
id: 'last-7-days'
|
|
33701
|
+
}, {
|
|
33702
|
+
name: 'Últimos 14 dias',
|
|
33703
|
+
id: 'last-14-days'
|
|
33704
|
+
}, {
|
|
33705
|
+
name: 'Últimos 30 dias',
|
|
33706
|
+
id: 'last-30-days'
|
|
33707
|
+
}, {
|
|
33708
|
+
name: 'Últimos 12 meses',
|
|
33709
|
+
id: 'last-12-months'
|
|
33710
|
+
}, {
|
|
33711
|
+
name: 'Mês Atual',
|
|
33712
|
+
id: 'current-month'
|
|
33713
|
+
}, {
|
|
33714
|
+
name: 'Personalizar',
|
|
33715
|
+
id: 'custom'
|
|
33716
|
+
}];
|
|
33717
|
+
}
|
|
33718
|
+
}
|
|
33719
|
+
},
|
|
33720
|
+
data: function data() {
|
|
33721
|
+
var today = new Date();
|
|
33722
|
+
var referenceDate = "".concat(today.getMonth() + 1, " 1 ").concat(today.getFullYear());
|
|
33723
|
+
return {
|
|
33724
|
+
referenceDate: referenceDate,
|
|
33725
|
+
startDate: (this.initialStartDate || '').replace(/-/g, ' '),
|
|
33726
|
+
endDate: (this.initialEndDate || '').replace(/-/g, ' '),
|
|
33727
|
+
optionSelected: ''
|
|
33728
|
+
};
|
|
33729
|
+
},
|
|
33730
|
+
computed: {
|
|
33731
|
+
openMonths: function openMonths() {
|
|
33732
|
+
return [this.referenceDate, this.addMonth(this.referenceDate, 1)];
|
|
33733
|
+
},
|
|
33734
|
+
value: function value() {
|
|
33735
|
+
return {
|
|
33736
|
+
startDate: this.startDate.replaceAll(' ', '-'),
|
|
33737
|
+
endDate: this.endDate.replaceAll(' ', '-')
|
|
33738
|
+
};
|
|
33739
|
+
}
|
|
33740
|
+
},
|
|
33741
|
+
watch: {
|
|
33742
|
+
value: function value(_ref) {
|
|
33743
|
+
var startDate = _ref.startDate,
|
|
33744
|
+
endDate = _ref.endDate;
|
|
33745
|
+
this.optionSelected = startDate || endDate ? 'custom' : '';
|
|
33746
|
+
this.$emit('change', this.value);
|
|
33747
|
+
}
|
|
33748
|
+
},
|
|
33749
|
+
methods: {
|
|
33750
|
+
dateToString: function dateToString(date) {
|
|
33751
|
+
return "".concat(date.getMonth() + 1, " ").concat(date.getDate(), " ").concat(date.getFullYear());
|
|
33752
|
+
},
|
|
33753
|
+
dateToStringMonth: function dateToStringMonth(date) {
|
|
33754
|
+
return "".concat(date.getMonth() + 1, " ").concat(date.getFullYear());
|
|
33755
|
+
},
|
|
33756
|
+
dateToStringYear: function dateToStringYear(date) {
|
|
33757
|
+
return date.getFullYear();
|
|
33758
|
+
},
|
|
33759
|
+
stringToTime: function stringToTime(date) {
|
|
33760
|
+
return new Date(date).getTime();
|
|
33761
|
+
},
|
|
33762
|
+
getDate: function getDate(date) {
|
|
33763
|
+
return new Date(date.toString()).getDate();
|
|
33764
|
+
},
|
|
33765
|
+
getMonth: function getMonth(date) {
|
|
33766
|
+
return new Date(date).getMonth();
|
|
33767
|
+
},
|
|
33768
|
+
getFullYear: function getFullYear(date) {
|
|
33769
|
+
return new Date(date).getFullYear();
|
|
33770
|
+
},
|
|
33771
|
+
addMonth: function addMonth(referenceDate, quantity) {
|
|
33772
|
+
var date = new Date(referenceDate);
|
|
33773
|
+
date.setMonth(date.getMonth() + quantity);
|
|
33774
|
+
return this.dateToString(date);
|
|
33775
|
+
},
|
|
33776
|
+
isDateBetween: function isDateBetween(internalDate) {
|
|
33777
|
+
if (this.startDate && this.endDate) {
|
|
33778
|
+
if (internalDate >= this.stringToTime(this.startDate) && internalDate <= this.stringToTime(this.endDate)) {
|
|
33779
|
+
return true;
|
|
33780
|
+
}
|
|
33781
|
+
} else if (this.startDate && internalDate >= this.stringToTime(this.startDate)) {
|
|
33782
|
+
return true;
|
|
33783
|
+
} else if (this.endDate && internalDate <= this.stringToTime(this.endDate)) {
|
|
33784
|
+
return true;
|
|
33785
|
+
}
|
|
33786
|
+
|
|
33787
|
+
return false;
|
|
33788
|
+
},
|
|
33789
|
+
isDateBetweenMonth: function isDateBetweenMonth(internalDate) {
|
|
33790
|
+
var startDate = new Date(this.startDate);
|
|
33791
|
+
startDate.setDate(1);
|
|
33792
|
+
var startDateTime = startDate.getTime();
|
|
33793
|
+
|
|
33794
|
+
if (this.startDate && this.endDate) {
|
|
33795
|
+
if (internalDate >= startDateTime && internalDate <= this.stringToTime(this.endDate)) {
|
|
33796
|
+
return true;
|
|
33797
|
+
}
|
|
33798
|
+
} else if (this.startDate && internalDate >= startDateTime) {
|
|
33799
|
+
return true;
|
|
33800
|
+
} else if (this.endDate && internalDate <= this.stringToTime(this.endDate)) {
|
|
33801
|
+
return true;
|
|
33802
|
+
}
|
|
33803
|
+
|
|
33804
|
+
return false;
|
|
33805
|
+
},
|
|
33806
|
+
isDateBetweenYear: function isDateBetweenYear(internalDate) {
|
|
33807
|
+
var startDate = new Date(this.startDate);
|
|
33808
|
+
startDate.setDate(1);
|
|
33809
|
+
startDate.setMonth(0);
|
|
33810
|
+
var startDateTime = startDate.getTime();
|
|
33811
|
+
|
|
33812
|
+
if (this.startDate && this.endDate) {
|
|
33813
|
+
if (internalDate >= startDateTime && internalDate <= this.stringToTime(this.endDate)) {
|
|
33814
|
+
return true;
|
|
33815
|
+
}
|
|
33816
|
+
} else if (this.startDate && internalDate >= startDateTime) {
|
|
33817
|
+
return true;
|
|
33818
|
+
} else if (this.endDate && internalDate <= this.stringToTime(this.endDate)) {
|
|
33819
|
+
return true;
|
|
33820
|
+
}
|
|
33821
|
+
|
|
33822
|
+
return false;
|
|
33823
|
+
},
|
|
33824
|
+
getDatesOfTheMonth: function getDatesOfTheMonth(referenceDate) {
|
|
33825
|
+
var _this = this;
|
|
33826
|
+
|
|
33827
|
+
var date = new Date(referenceDate);
|
|
33828
|
+
var currentMonth = date.getMonth();
|
|
33829
|
+
var oneDayInSeconds = 86400;
|
|
33830
|
+
date.setDate(1 - date.getDay());
|
|
33831
|
+
var dates = [];
|
|
33832
|
+
|
|
33833
|
+
var _loop = function _loop(i) {
|
|
33834
|
+
var dateString = _this.dateToString(date);
|
|
33835
|
+
|
|
33836
|
+
var properties = [];
|
|
33837
|
+
|
|
33838
|
+
if (currentMonth === date.getMonth()) {
|
|
33839
|
+
properties.push('inside month');
|
|
33840
|
+
|
|
33841
|
+
var dateInTime = _this.stringToTime(_this.dateToString(date));
|
|
33842
|
+
|
|
33843
|
+
var dayBefore = dateInTime - oneDayInSeconds;
|
|
33844
|
+
var dayAfter = dateInTime + oneDayInSeconds;
|
|
33845
|
+
|
|
33846
|
+
if (_this.isDateBetween(dateInTime)) {
|
|
33847
|
+
properties.push('selected');
|
|
33848
|
+
|
|
33849
|
+
if (!_this.isDateBetween(dayBefore)) {
|
|
33850
|
+
properties.push('left-highlighted');
|
|
33851
|
+
}
|
|
33852
|
+
|
|
33853
|
+
if (!_this.isDateBetween(dayAfter)) {
|
|
33854
|
+
properties.push('right-highlighted');
|
|
33855
|
+
}
|
|
33856
|
+
|
|
33857
|
+
if (properties.includes('left-highlighted') || properties.includes('right-highlighted')) {
|
|
33858
|
+
properties.push('highlighted');
|
|
33859
|
+
}
|
|
33860
|
+
}
|
|
33861
|
+
}
|
|
33862
|
+
|
|
33863
|
+
if (_this.dateToString(date) === _this.dateToString(new Date())) {
|
|
33864
|
+
properties.push('today');
|
|
33865
|
+
}
|
|
33866
|
+
|
|
33867
|
+
dates.push({
|
|
33868
|
+
properties: properties,
|
|
33869
|
+
toString: function toString() {
|
|
33870
|
+
return dateString;
|
|
33871
|
+
}
|
|
33872
|
+
});
|
|
33873
|
+
date.setDate(date.getDate() + 1);
|
|
33874
|
+
};
|
|
33875
|
+
|
|
33876
|
+
for (var i = 0; i < 6 * 7; i += 1) {
|
|
33877
|
+
_loop(i);
|
|
33878
|
+
}
|
|
33879
|
+
|
|
33880
|
+
return dates;
|
|
33881
|
+
},
|
|
33882
|
+
getMonthsOfTheYear: function getMonthsOfTheYear(referenceDate) {
|
|
33883
|
+
var _this2 = this;
|
|
33884
|
+
|
|
33885
|
+
var date = new Date(referenceDate);
|
|
33886
|
+
date.setMonth(0);
|
|
33887
|
+
var dates = [];
|
|
33888
|
+
|
|
33889
|
+
var _loop2 = function _loop2(i) {
|
|
33890
|
+
var dateString = _this2.dateToString(date);
|
|
33891
|
+
|
|
33892
|
+
var properties = [];
|
|
33893
|
+
properties.push('inside month');
|
|
33894
|
+
|
|
33895
|
+
var dateInTime = _this2.stringToTime(_this2.dateToString(date));
|
|
33896
|
+
|
|
33897
|
+
var monthBefore = new Date(dateInTime);
|
|
33898
|
+
var monthAfter = new Date(dateInTime);
|
|
33899
|
+
monthBefore.setMonth(monthBefore.getMonth() - 1);
|
|
33900
|
+
monthAfter.setMonth(monthAfter.getMonth() + 1);
|
|
33901
|
+
monthBefore = monthBefore.getTime();
|
|
33902
|
+
monthAfter = monthAfter.getTime();
|
|
33903
|
+
|
|
33904
|
+
if (_this2.isDateBetweenMonth(dateInTime)) {
|
|
33905
|
+
properties.push('selected');
|
|
33906
|
+
|
|
33907
|
+
if (!_this2.isDateBetweenMonth(monthBefore)) {
|
|
33908
|
+
properties.push('left-highlighted');
|
|
33909
|
+
}
|
|
33910
|
+
|
|
33911
|
+
if (!_this2.isDateBetweenMonth(monthAfter)) {
|
|
33912
|
+
properties.push('right-highlighted');
|
|
33913
|
+
}
|
|
33914
|
+
|
|
33915
|
+
if (properties.includes('left-highlighted') || properties.includes('right-highlighted')) {
|
|
33916
|
+
properties.push('highlighted');
|
|
33917
|
+
}
|
|
33918
|
+
}
|
|
33919
|
+
|
|
33920
|
+
if (_this2.dateToStringMonth(date) === _this2.dateToStringMonth(new Date())) {
|
|
33921
|
+
properties.push('today');
|
|
33922
|
+
}
|
|
33923
|
+
|
|
33924
|
+
dates.push({
|
|
33925
|
+
properties: properties,
|
|
33926
|
+
date: dateString,
|
|
33927
|
+
toString: function toString() {
|
|
33928
|
+
return dateString;
|
|
33929
|
+
}
|
|
33930
|
+
});
|
|
33931
|
+
date.setMonth(date.getMonth() + 1);
|
|
33932
|
+
};
|
|
33933
|
+
|
|
33934
|
+
for (var i = 0; i < 3 * 4; i += 1) {
|
|
33935
|
+
_loop2(i);
|
|
33936
|
+
}
|
|
33937
|
+
|
|
33938
|
+
return dates;
|
|
33939
|
+
},
|
|
33940
|
+
getYears: function getYears(referenceDate) {
|
|
33941
|
+
var _this3 = this;
|
|
33942
|
+
|
|
33943
|
+
var date = new Date(referenceDate);
|
|
33944
|
+
date.setMonth(0);
|
|
33945
|
+
var dates = [];
|
|
33946
|
+
|
|
33947
|
+
var _loop3 = function _loop3(i) {
|
|
33948
|
+
var dateString = _this3.dateToString(date);
|
|
33949
|
+
|
|
33950
|
+
var properties = [];
|
|
33951
|
+
properties.push('inside month');
|
|
33952
|
+
|
|
33953
|
+
var dateInTime = _this3.stringToTime(_this3.dateToString(date));
|
|
33954
|
+
|
|
33955
|
+
var yearBefore = new Date(dateInTime);
|
|
33956
|
+
var yearAfter = new Date(dateInTime);
|
|
33957
|
+
yearBefore.setMonth(yearBefore.getMonth() - 12);
|
|
33958
|
+
yearAfter.setMonth(yearAfter.getMonth() + 12);
|
|
33959
|
+
yearBefore = yearBefore.getTime();
|
|
33960
|
+
yearAfter = yearAfter.getTime();
|
|
33961
|
+
|
|
33962
|
+
if (_this3.isDateBetweenYear(dateInTime)) {
|
|
33963
|
+
properties.push('selected');
|
|
33964
|
+
|
|
33965
|
+
if (!_this3.isDateBetweenYear(yearBefore)) {
|
|
33966
|
+
properties.push('left-highlighted');
|
|
33967
|
+
}
|
|
33968
|
+
|
|
33969
|
+
if (!_this3.isDateBetweenYear(yearAfter)) {
|
|
33970
|
+
properties.push('right-highlighted');
|
|
33971
|
+
}
|
|
33972
|
+
|
|
33973
|
+
if (properties.includes('left-highlighted') || properties.includes('right-highlighted')) {
|
|
33974
|
+
properties.push('highlighted');
|
|
33975
|
+
}
|
|
33976
|
+
}
|
|
33977
|
+
|
|
33978
|
+
if (_this3.dateToStringYear(date) === _this3.dateToStringYear(new Date())) {
|
|
33979
|
+
properties.push('today');
|
|
33980
|
+
}
|
|
33981
|
+
|
|
33982
|
+
dates.push({
|
|
33983
|
+
properties: properties,
|
|
33984
|
+
date: date.getFullYear(),
|
|
33985
|
+
toString: function toString() {
|
|
33986
|
+
return dateString;
|
|
33987
|
+
}
|
|
33988
|
+
});
|
|
33989
|
+
date.setFullYear(date.getFullYear() + 1);
|
|
33990
|
+
};
|
|
33991
|
+
|
|
33992
|
+
for (var i = 0; i < 3 * 4; i += 1) {
|
|
33993
|
+
_loop3(i);
|
|
33994
|
+
}
|
|
33995
|
+
|
|
33996
|
+
return dates;
|
|
33997
|
+
},
|
|
33998
|
+
selectDate: function selectDate(date) {
|
|
33999
|
+
if (!this.startDate || !this.endDate) {
|
|
34000
|
+
this.startDate = date.toString();
|
|
34001
|
+
this.endDate = this.startDate;
|
|
34002
|
+
} else {
|
|
34003
|
+
var self = this.stringToTime(date.toString());
|
|
34004
|
+
var startDate = this.stringToTime(this.startDate);
|
|
34005
|
+
var endDate = this.stringToTime(this.endDate);
|
|
34006
|
+
|
|
34007
|
+
if (self > endDate) {
|
|
34008
|
+
this.endDate = date.toString();
|
|
34009
|
+
} else if (self < startDate) {
|
|
34010
|
+
this.startDate = date.toString();
|
|
34011
|
+
} else if (self === startDate || self === endDate) {
|
|
34012
|
+
this.startDate = date.toString();
|
|
34013
|
+
this.endDate = this.startDate;
|
|
34014
|
+
} else if (self - startDate < endDate - self) {
|
|
34015
|
+
this.startDate = date.toString();
|
|
34016
|
+
} else {
|
|
34017
|
+
this.endDate = date.toString();
|
|
34018
|
+
}
|
|
34019
|
+
}
|
|
34020
|
+
},
|
|
34021
|
+
clear: function clear() {
|
|
34022
|
+
this.startDate = '';
|
|
34023
|
+
this.endDate = '';
|
|
34024
|
+
this.optionSelected = '';
|
|
34025
|
+
},
|
|
34026
|
+
autoSelect: function autoSelect(method) {
|
|
34027
|
+
var _this4 = this;
|
|
34028
|
+
|
|
34029
|
+
var today = new Date();
|
|
34030
|
+
var days = method.match(/^last-(\d+)-days$/);
|
|
34031
|
+
var months = method.match(/^last-(\d+)-months$/);
|
|
34032
|
+
|
|
34033
|
+
if (days) {
|
|
34034
|
+
var howMuch = Number(days[1]);
|
|
34035
|
+
this.endDate = this.dateToString(today);
|
|
34036
|
+
today.setDate(today.getDate() - howMuch + 1);
|
|
34037
|
+
this.startDate = this.dateToString(today);
|
|
34038
|
+
} else if (months) {
|
|
34039
|
+
var _howMuch = Number(months[1]);
|
|
34040
|
+
|
|
34041
|
+
this.endDate = this.dateToString(today);
|
|
34042
|
+
today.setDate(today.getDate() + 1);
|
|
34043
|
+
today.setMonth(today.getMonth() - _howMuch);
|
|
34044
|
+
this.startDate = this.dateToString(today);
|
|
34045
|
+
} else if (method === 'current-month') {
|
|
34046
|
+
today.setDate(1);
|
|
34047
|
+
this.startDate = this.dateToString(today);
|
|
34048
|
+
today.setMonth(today.getMonth() + 1);
|
|
34049
|
+
today.setDate(0);
|
|
34050
|
+
this.endDate = this.dateToString(today);
|
|
34051
|
+
}
|
|
34052
|
+
|
|
34053
|
+
if (this.endDate) {
|
|
34054
|
+
var secondMonth = this.addMonth(this.referenceDate, 1);
|
|
34055
|
+
var firstDateOfEndDate = "".concat(this.getMonth(this.endDate) + 1, " 1 ").concat(this.getFullYear(this.endDate));
|
|
34056
|
+
|
|
34057
|
+
if (![this.referenceDate, secondMonth].includes(firstDateOfEndDate)) {
|
|
34058
|
+
this.referenceDate = firstDateOfEndDate;
|
|
34059
|
+
}
|
|
34060
|
+
}
|
|
34061
|
+
|
|
34062
|
+
this.$nextTick(function () {
|
|
34063
|
+
_this4.optionSelected = method;
|
|
34064
|
+
});
|
|
34065
|
+
}
|
|
34066
|
+
}
|
|
34067
|
+
});
|
|
34068
|
+
// CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=script&lang=js&
|
|
34069
|
+
/* harmony default export */ var DatePicker_DatePickervue_type_script_lang_js_ = (DatePickervue_type_script_lang_js_);
|
|
34070
|
+
// EXTERNAL MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=style&index=0&id=4ec880fe&lang=scss&scoped=true&
|
|
34071
|
+
var DatePickervue_type_style_index_0_id_4ec880fe_lang_scss_scoped_true_ = __webpack_require__("3aef");
|
|
34072
|
+
|
|
34073
|
+
// CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue
|
|
34074
|
+
|
|
34075
|
+
|
|
34076
|
+
|
|
34077
|
+
|
|
34078
|
+
|
|
34079
|
+
|
|
34080
|
+
/* normalize component */
|
|
34081
|
+
|
|
34082
|
+
var DatePicker_component = normalizeComponent(
|
|
34083
|
+
DatePicker_DatePickervue_type_script_lang_js_,
|
|
34084
|
+
DatePickervue_type_template_id_4ec880fe_scoped_true_render,
|
|
34085
|
+
DatePickervue_type_template_id_4ec880fe_scoped_true_staticRenderFns,
|
|
34086
|
+
false,
|
|
34087
|
+
null,
|
|
34088
|
+
"4ec880fe",
|
|
34089
|
+
null
|
|
34090
|
+
|
|
34091
|
+
)
|
|
34092
|
+
|
|
34093
|
+
/* harmony default export */ var DatePicker = (DatePicker_component.exports);
|
|
34094
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/InputDatePicker/InputDatePicker.vue?vue&type=script&lang=js&
|
|
34095
|
+
|
|
34096
|
+
|
|
34097
|
+
|
|
34098
|
+
|
|
34099
|
+
|
|
34100
|
+
//
|
|
34101
|
+
//
|
|
34102
|
+
//
|
|
34103
|
+
//
|
|
34104
|
+
//
|
|
34105
|
+
//
|
|
34106
|
+
//
|
|
34107
|
+
//
|
|
34108
|
+
//
|
|
34109
|
+
//
|
|
34110
|
+
//
|
|
34111
|
+
//
|
|
34112
|
+
//
|
|
34113
|
+
//
|
|
34114
|
+
//
|
|
34115
|
+
//
|
|
34116
|
+
//
|
|
34117
|
+
//
|
|
34118
|
+
//
|
|
34119
|
+
//
|
|
34120
|
+
//
|
|
34121
|
+
//
|
|
34122
|
+
//
|
|
34123
|
+
//
|
|
34124
|
+
//
|
|
34125
|
+
//
|
|
34126
|
+
//
|
|
34127
|
+
//
|
|
34128
|
+
|
|
34129
|
+
|
|
34130
|
+
|
|
34131
|
+
/* harmony default export */ var InputDatePickervue_type_script_lang_js_ = ({
|
|
34132
|
+
model: {
|
|
34133
|
+
event: 'changed'
|
|
34134
|
+
},
|
|
34135
|
+
components: {
|
|
34136
|
+
UnnnicInput: Input,
|
|
34137
|
+
UnnnicDatePicker: DatePicker
|
|
34138
|
+
},
|
|
34139
|
+
props: {
|
|
34140
|
+
value: {
|
|
34141
|
+
type: Object
|
|
34142
|
+
},
|
|
34143
|
+
type: {
|
|
34144
|
+
type: String,
|
|
34145
|
+
default: 'day'
|
|
34146
|
+
},
|
|
34147
|
+
size: {
|
|
34148
|
+
type: String,
|
|
34149
|
+
default: 'md'
|
|
34150
|
+
},
|
|
34151
|
+
clearText: {
|
|
34152
|
+
type: String,
|
|
34153
|
+
default: 'Clear'
|
|
34154
|
+
},
|
|
34155
|
+
actionText: {
|
|
34156
|
+
type: String,
|
|
34157
|
+
default: 'Filter'
|
|
34158
|
+
},
|
|
34159
|
+
months: {
|
|
34160
|
+
type: Array
|
|
34161
|
+
},
|
|
34162
|
+
days: {
|
|
34163
|
+
type: Array
|
|
34164
|
+
},
|
|
34165
|
+
options: {
|
|
34166
|
+
type: Array
|
|
34167
|
+
},
|
|
34168
|
+
format: {
|
|
34169
|
+
type: String,
|
|
34170
|
+
default: 'YYYY-MM-DD'
|
|
34171
|
+
},
|
|
34172
|
+
inputFormat: {
|
|
34173
|
+
type: String,
|
|
34174
|
+
default: 'MM-DD-YYYY'
|
|
34175
|
+
}
|
|
34176
|
+
},
|
|
34177
|
+
data: function data() {
|
|
34178
|
+
return {
|
|
34179
|
+
showCalendarFilter: false
|
|
34180
|
+
};
|
|
34181
|
+
},
|
|
34182
|
+
computed: {
|
|
34183
|
+
filterText: function filterText() {
|
|
34184
|
+
var dates = [];
|
|
34185
|
+
|
|
34186
|
+
if (this.value.start) {
|
|
34187
|
+
dates.push(moment_default()(this.value.start, this.format).format(this.inputFormat));
|
|
34188
|
+
}
|
|
34189
|
+
|
|
34190
|
+
if (this.value.end) {
|
|
34191
|
+
dates.push(moment_default()(this.value.end, this.format).format(this.inputFormat));
|
|
34192
|
+
}
|
|
34193
|
+
|
|
34194
|
+
if (!dates.length) {
|
|
34195
|
+
return '—';
|
|
34196
|
+
}
|
|
34197
|
+
|
|
34198
|
+
return dates.join(' ~ ');
|
|
34199
|
+
},
|
|
34200
|
+
initialStartDate: function initialStartDate() {
|
|
34201
|
+
return this.value.start ? moment_default()(this.value.start, this.format).format('MM DD YYYY') : null;
|
|
34202
|
+
},
|
|
34203
|
+
initialEndDate: function initialEndDate() {
|
|
34204
|
+
return this.value.end ? moment_default()(this.value.end, this.format).format('MM DD YYYY') : null;
|
|
34205
|
+
}
|
|
34206
|
+
},
|
|
34207
|
+
mounted: function mounted() {
|
|
34208
|
+
window.document.body.addEventListener('click', this.mouseout);
|
|
34209
|
+
},
|
|
34210
|
+
beforeDestroy: function beforeDestroy() {
|
|
34211
|
+
window.document.body.removeEventListener('click', this.mouseout);
|
|
34212
|
+
},
|
|
34213
|
+
methods: {
|
|
34214
|
+
mouseout: function mouseout(event) {
|
|
34215
|
+
if (event.path.includes(this.$refs.dropdown)) {
|
|
34216
|
+
return;
|
|
34217
|
+
}
|
|
34218
|
+
|
|
34219
|
+
this.showCalendarFilter = false;
|
|
34220
|
+
},
|
|
34221
|
+
changeDate: function changeDate(value) {
|
|
34222
|
+
var startDate = value.startDate.replace(/(\d+)-(\d+)-(\d+)/, '$3-$1-$2');
|
|
34223
|
+
var endDate = value.endDate.replace(/(\d+)-(\d+)-(\d+)/, '$3-$1-$2');
|
|
34224
|
+
this.showCalendarFilter = false;
|
|
34225
|
+
this.$emit('changed', {
|
|
34226
|
+
start: startDate ? moment_default()(startDate, 'YYYY-MM-DD').format(this.format) : null,
|
|
34227
|
+
end: endDate ? moment_default()(endDate, 'YYYY-MM-DD').format(this.format) : null
|
|
34228
|
+
});
|
|
34229
|
+
}
|
|
34230
|
+
}
|
|
34231
|
+
});
|
|
34232
|
+
// CONCATENATED MODULE: ./src/components/InputDatePicker/InputDatePicker.vue?vue&type=script&lang=js&
|
|
34233
|
+
/* harmony default export */ var InputDatePicker_InputDatePickervue_type_script_lang_js_ = (InputDatePickervue_type_script_lang_js_);
|
|
34234
|
+
// EXTERNAL MODULE: ./src/components/InputDatePicker/InputDatePicker.vue?vue&type=style&index=0&id=fdd40868&lang=scss&scoped=true&
|
|
34235
|
+
var InputDatePickervue_type_style_index_0_id_fdd40868_lang_scss_scoped_true_ = __webpack_require__("488c");
|
|
34236
|
+
|
|
34237
|
+
// CONCATENATED MODULE: ./src/components/InputDatePicker/InputDatePicker.vue
|
|
34238
|
+
|
|
34239
|
+
|
|
34240
|
+
|
|
34241
|
+
|
|
34242
|
+
|
|
34243
|
+
|
|
34244
|
+
/* normalize component */
|
|
34245
|
+
|
|
34246
|
+
var InputDatePicker_component = normalizeComponent(
|
|
34247
|
+
InputDatePicker_InputDatePickervue_type_script_lang_js_,
|
|
34248
|
+
InputDatePickervue_type_template_id_fdd40868_scoped_true_render,
|
|
34249
|
+
InputDatePickervue_type_template_id_fdd40868_scoped_true_staticRenderFns,
|
|
34250
|
+
false,
|
|
34251
|
+
null,
|
|
34252
|
+
"fdd40868",
|
|
34253
|
+
null
|
|
34254
|
+
|
|
34255
|
+
)
|
|
34256
|
+
|
|
34257
|
+
/* harmony default export */ var InputDatePicker = (InputDatePicker_component.exports);
|
|
34258
|
+
// 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/Button/ButtonIcon.vue?vue&type=template&id=16b0dec6&scoped=true&
|
|
34259
|
+
var ButtonIconvue_type_template_id_16b0dec6_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('button',_vm._g({class:['button-icon', _vm.size, _vm.type]},_vm.$listeners),[_c('unnnic-icon',{attrs:{"icon":_vm.icon,"scheme":_vm.iconScheme,"size":"ant"}})],1)}
|
|
34260
|
+
var ButtonIconvue_type_template_id_16b0dec6_scoped_true_staticRenderFns = []
|
|
34261
|
+
|
|
34262
|
+
|
|
34263
|
+
// CONCATENATED MODULE: ./src/components/Button/ButtonIcon.vue?vue&type=template&id=16b0dec6&scoped=true&
|
|
34264
|
+
|
|
34265
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Button/ButtonIcon.vue?vue&type=script&lang=js&
|
|
34266
|
+
|
|
34267
|
+
//
|
|
34268
|
+
//
|
|
34269
|
+
//
|
|
34270
|
+
//
|
|
34271
|
+
//
|
|
34272
|
+
//
|
|
34273
|
+
//
|
|
34274
|
+
//
|
|
34275
|
+
//
|
|
34276
|
+
//
|
|
34277
|
+
//
|
|
34278
|
+
//
|
|
34279
|
+
//
|
|
34280
|
+
|
|
34281
|
+
/* harmony default export */ var ButtonIconvue_type_script_lang_js_ = ({
|
|
34282
|
+
components: {
|
|
34283
|
+
UnnnicIcon: Icon
|
|
34284
|
+
},
|
|
34285
|
+
props: {
|
|
34286
|
+
type: {
|
|
34287
|
+
type: String,
|
|
34288
|
+
default: 'secondary'
|
|
34289
|
+
},
|
|
34290
|
+
size: {
|
|
34291
|
+
type: String,
|
|
34292
|
+
required: true,
|
|
34293
|
+
validator: function validator(value) {
|
|
34294
|
+
return ['small', 'large'].includes(value);
|
|
34295
|
+
}
|
|
34296
|
+
},
|
|
34297
|
+
icon: {
|
|
34298
|
+
type: String,
|
|
34299
|
+
required: true
|
|
34300
|
+
}
|
|
34301
|
+
},
|
|
34302
|
+
computed: {
|
|
34303
|
+
iconScheme: function iconScheme() {
|
|
34304
|
+
if (this.type === 'primary') {
|
|
34305
|
+
return 'neutral-snow';
|
|
34306
|
+
}
|
|
34307
|
+
|
|
34308
|
+
return 'neutral-darkest';
|
|
34309
|
+
}
|
|
34310
|
+
}
|
|
34311
|
+
});
|
|
34312
|
+
// CONCATENATED MODULE: ./src/components/Button/ButtonIcon.vue?vue&type=script&lang=js&
|
|
34313
|
+
/* harmony default export */ var Button_ButtonIconvue_type_script_lang_js_ = (ButtonIconvue_type_script_lang_js_);
|
|
34314
|
+
// EXTERNAL MODULE: ./src/components/Button/ButtonIcon.vue?vue&type=style&index=0&id=16b0dec6&lang=scss&scoped=true&
|
|
34315
|
+
var ButtonIconvue_type_style_index_0_id_16b0dec6_lang_scss_scoped_true_ = __webpack_require__("d319");
|
|
34316
|
+
|
|
34317
|
+
// CONCATENATED MODULE: ./src/components/Button/ButtonIcon.vue
|
|
34318
|
+
|
|
34319
|
+
|
|
34320
|
+
|
|
34321
|
+
|
|
34322
|
+
|
|
34323
|
+
|
|
34324
|
+
/* normalize component */
|
|
34325
|
+
|
|
34326
|
+
var ButtonIcon_component = normalizeComponent(
|
|
34327
|
+
Button_ButtonIconvue_type_script_lang_js_,
|
|
34328
|
+
ButtonIconvue_type_template_id_16b0dec6_scoped_true_render,
|
|
34329
|
+
ButtonIconvue_type_template_id_16b0dec6_scoped_true_staticRenderFns,
|
|
34330
|
+
false,
|
|
34331
|
+
null,
|
|
34332
|
+
"16b0dec6",
|
|
34333
|
+
null
|
|
34334
|
+
|
|
34335
|
+
)
|
|
34336
|
+
|
|
34337
|
+
/* harmony default export */ var ButtonIcon = (ButtonIcon_component.exports);
|
|
34338
|
+
// 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/Sidebar/Sidebar.vue?vue&type=template&id=21306aec&
|
|
34339
|
+
var Sidebarvue_type_template_id_21306aec_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{'unnnic-side-bar': true, 'unnnic-side-bar--contracted': !_vm.expanded}},[_c('div',{staticClass:"unnnic-side-bar__header"},[_vm._t("header")],2),_vm._t("default"),_c('div',{staticClass:"unnnic-side-bar__footer"},[_vm._t("footer")],2)],2)}
|
|
34340
|
+
var Sidebarvue_type_template_id_21306aec_staticRenderFns = []
|
|
34341
|
+
|
|
34342
|
+
|
|
34343
|
+
// CONCATENATED MODULE: ./src/components/Sidebar/Sidebar.vue?vue&type=template&id=21306aec&
|
|
34344
|
+
|
|
34345
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Sidebar/Sidebar.vue?vue&type=script&lang=js&
|
|
34346
|
+
//
|
|
34347
|
+
//
|
|
34348
|
+
//
|
|
34349
|
+
//
|
|
34350
|
+
//
|
|
34351
|
+
//
|
|
34352
|
+
//
|
|
34353
|
+
//
|
|
34354
|
+
//
|
|
34355
|
+
//
|
|
34356
|
+
//
|
|
34357
|
+
//
|
|
34358
|
+
/* harmony default export */ var Sidebarvue_type_script_lang_js_ = ({
|
|
34359
|
+
name: 'unnnic-sidebar',
|
|
34360
|
+
props: {
|
|
34361
|
+
expanded: {
|
|
34362
|
+
type: Boolean,
|
|
34363
|
+
default: true
|
|
34364
|
+
}
|
|
34365
|
+
}
|
|
34366
|
+
});
|
|
34367
|
+
// CONCATENATED MODULE: ./src/components/Sidebar/Sidebar.vue?vue&type=script&lang=js&
|
|
34368
|
+
/* harmony default export */ var Sidebar_Sidebarvue_type_script_lang_js_ = (Sidebarvue_type_script_lang_js_);
|
|
34369
|
+
// EXTERNAL MODULE: ./src/components/Sidebar/Sidebar.vue?vue&type=style&index=0&lang=scss&
|
|
34370
|
+
var Sidebarvue_type_style_index_0_lang_scss_ = __webpack_require__("7148");
|
|
34371
|
+
|
|
34372
|
+
// CONCATENATED MODULE: ./src/components/Sidebar/Sidebar.vue
|
|
34373
|
+
|
|
34374
|
+
|
|
34375
|
+
|
|
34376
|
+
|
|
34377
|
+
|
|
34378
|
+
|
|
34379
|
+
/* normalize component */
|
|
34380
|
+
|
|
34381
|
+
var Sidebar_component = normalizeComponent(
|
|
34382
|
+
Sidebar_Sidebarvue_type_script_lang_js_,
|
|
34383
|
+
Sidebarvue_type_template_id_21306aec_render,
|
|
34384
|
+
Sidebarvue_type_template_id_21306aec_staticRenderFns,
|
|
34385
|
+
false,
|
|
34386
|
+
null,
|
|
34387
|
+
null,
|
|
34388
|
+
null
|
|
34389
|
+
|
|
34390
|
+
)
|
|
34391
|
+
|
|
34392
|
+
/* harmony default export */ var Sidebar = (Sidebar_component.exports);
|
|
34393
|
+
// 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/Sidebar/SidebarItem.vue?vue&type=template&id=42247490&
|
|
34394
|
+
var SidebarItemvue_type_template_id_42247490_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:{ 'unnnic-side-bar-item': true,
|
|
34395
|
+
'unnnic-side-bar-item--active': _vm.active,
|
|
34396
|
+
'unnnic--clickable': true,
|
|
34397
|
+
},on:{"click":_vm.onClick}},[_c('tool-tip',{attrs:{"enabled":_vm.enableTooltip,"text":_vm.text,"side":"right"}},[_c('u-icon',{staticClass:"unnnic-side-bar-item__icon",attrs:{"scheme":_vm.active ? 'brand-weni-soft' : 'neutral-cloudy',"size":"sm","icon":_vm.icon}}),_c('span',{staticClass:"unnnic-side-bar-item__label"},[_vm._v(" "+_vm._s(_vm.text)+" "),_vm._t("default")],2)],1)],1)}
|
|
34398
|
+
var SidebarItemvue_type_template_id_42247490_staticRenderFns = []
|
|
34399
|
+
|
|
34400
|
+
|
|
34401
|
+
// CONCATENATED MODULE: ./src/components/Sidebar/SidebarItem.vue?vue&type=template&id=42247490&
|
|
34402
|
+
|
|
34403
|
+
// 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/ToolTip/ToolTip.vue?vue&type=template&id=adb9aa76&scoped=true&
|
|
34404
|
+
var ToolTipvue_type_template_id_adb9aa76_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"tooltip",class:{
|
|
34405
|
+
'unnnic-tooltip': _vm.enabled,
|
|
34406
|
+
'force-open': _vm.forceOpen,
|
|
34407
|
+
},on:{"mouseover":_vm.handleResize}},[_vm._t("default"),_c('span',{directives:[{name:"show",rawName:"v-show",value:(_vm.enabled),expression:"enabled"}],ref:"label",class:[
|
|
34408
|
+
'unnnic-tooltip-label',
|
|
34409
|
+
("unnnic-tooltip-label-" + _vm.side) ],style:({ maxWidth: _vm.maxWidth, left:_vm.leftPos, top:_vm.topPos })},[_vm._v(" "+_vm._s(_vm.text)+" ")])],2)}
|
|
34410
|
+
var ToolTipvue_type_template_id_adb9aa76_scoped_true_staticRenderFns = []
|
|
34411
|
+
|
|
34412
|
+
|
|
34413
|
+
// CONCATENATED MODULE: ./src/components/ToolTip/ToolTip.vue?vue&type=template&id=adb9aa76&scoped=true&
|
|
34414
|
+
|
|
34415
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ToolTip/ToolTip.vue?vue&type=script&lang=js&
|
|
34416
|
+
|
|
33512
34417
|
//
|
|
33513
34418
|
//
|
|
33514
34419
|
//
|
|
@@ -33807,9 +34712,6 @@ var es_symbol_iterator = __webpack_require__("d28b");
|
|
|
33807
34712
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
33808
34713
|
var es_array_iterator = __webpack_require__("e260");
|
|
33809
34714
|
|
|
33810
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
33811
|
-
var es_object_to_string = __webpack_require__("d3b7");
|
|
33812
|
-
|
|
33813
34715
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.iterator.js
|
|
33814
34716
|
var es_string_iterator = __webpack_require__("3ca3");
|
|
33815
34717
|
|
|
@@ -33859,9 +34761,6 @@ var es_array_slice = __webpack_require__("fb6a");
|
|
|
33859
34761
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
33860
34762
|
var es_function_name = __webpack_require__("b0c0");
|
|
33861
34763
|
|
|
33862
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
33863
|
-
var es_regexp_to_string = __webpack_require__("25f0");
|
|
33864
|
-
|
|
33865
34764
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js
|
|
33866
34765
|
function _arrayLikeToArray(arr, len) {
|
|
33867
34766
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -34712,9 +35611,6 @@ var Cardvue_type_template_id_20c1b644_staticRenderFns = []
|
|
|
34712
35611
|
|
|
34713
35612
|
// CONCATENATED MODULE: ./src/components/Card/Card.vue?vue&type=template&id=20c1b644&
|
|
34714
35613
|
|
|
34715
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
34716
|
-
var es_number_constructor = __webpack_require__("a9e3");
|
|
34717
|
-
|
|
34718
35614
|
// 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/Card/DashCard.vue?vue&type=template&id=02744880&scoped=true&
|
|
34719
35615
|
var DashCardvue_type_template_id_02744880_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-card-dash"},[_c('div',{staticClass:"header"},[_c('unnnic-avatar-icon',{attrs:{"size":"sm","scheme":_vm.scheme,"icon":_vm.icon}}),_c('div',{staticClass:"label"},[_vm._v(_vm._s(_vm.title))])],1),_c('div',{staticClass:"content"},[_c('div',{staticClass:"value"},[_vm._v(_vm._s(_vm.value))]),(_vm.percent)?_c('div',{class:['percent', ("unnnic-card-scheme--feedback-" + _vm.color)]},[_c('unnnic-icon',{staticClass:"icon",attrs:{"icon":("graph-stats-" + (_vm.percent >= 0 ? 'ascend' : 'descend') + "-2"),"scheme":("feedback-" + _vm.color),"size":"sm"}}),_c('div',{staticClass:"label"},[_vm._v(" "+_vm._s(_vm.percent >= 0 ? ("+" + _vm.percent + "%") : (_vm.percent + "%"))+" ")])],1):_vm._e()])])}
|
|
34720
35616
|
var DashCardvue_type_template_id_02744880_scoped_true_staticRenderFns = []
|
|
@@ -36979,27 +37875,15 @@ var UploadAreavue_type_template_id_3f95c8e0_scoped_true_staticRenderFns = []
|
|
|
36979
37875
|
|
|
36980
37876
|
// CONCATENATED MODULE: ./src/components/UploadArea/UploadArea.vue?vue&type=template&id=3f95c8e0&scoped=true&
|
|
36981
37877
|
|
|
36982
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
36983
|
-
var es_array_concat = __webpack_require__("99af");
|
|
36984
|
-
|
|
36985
37878
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
36986
37879
|
var es_array_find = __webpack_require__("7db0");
|
|
36987
37880
|
|
|
36988
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
36989
|
-
var es_array_join = __webpack_require__("a15b");
|
|
36990
|
-
|
|
36991
37881
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.splice.js
|
|
36992
37882
|
var es_array_splice = __webpack_require__("a434");
|
|
36993
37883
|
|
|
36994
37884
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
36995
37885
|
var es_number_to_fixed = __webpack_require__("b680");
|
|
36996
37886
|
|
|
36997
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
36998
|
-
var es_regexp_exec = __webpack_require__("ac1f");
|
|
36999
|
-
|
|
37000
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
37001
|
-
var es_string_includes = __webpack_require__("2532");
|
|
37002
|
-
|
|
37003
37887
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
37004
37888
|
var es_string_split = __webpack_require__("1276");
|
|
37005
37889
|
|
|
@@ -38628,9 +39512,6 @@ var Autocompletevue_type_template_id_f12b07ec_staticRenderFns = []
|
|
|
38628
39512
|
|
|
38629
39513
|
// CONCATENATED MODULE: ./src/components/Input/Autocomplete.vue?vue&type=template&id=f12b07ec&
|
|
38630
39514
|
|
|
38631
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
38632
|
-
var es_string_replace = __webpack_require__("5319");
|
|
38633
|
-
|
|
38634
39515
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Input/Autocomplete.vue?vue&type=script&lang=js&
|
|
38635
39516
|
|
|
38636
39517
|
|
|
@@ -40157,390 +41038,6 @@ var Comment_component = normalizeComponent(
|
|
|
40157
41038
|
)
|
|
40158
41039
|
|
|
40159
41040
|
/* harmony default export */ var Comment = (Comment_component.exports);
|
|
40160
|
-
// 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&
|
|
40161
|
-
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:{
|
|
40162
|
-
disabled: !date.properties.includes('inside month'),
|
|
40163
|
-
selectable: date.properties.includes('inside month'),
|
|
40164
|
-
today: date.properties.includes('today'),
|
|
40165
|
-
selected: date.properties.includes('selected'),
|
|
40166
|
-
highlighted: date.properties.includes('highlighted'),
|
|
40167
|
-
left: date.properties.includes('left-highlighted'),
|
|
40168
|
-
right: date.properties.includes('right-highlighted'),
|
|
40169
|
-
},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)}
|
|
40170
|
-
var DatePickervue_type_template_id_2825e799_scoped_true_staticRenderFns = []
|
|
40171
|
-
|
|
40172
|
-
|
|
40173
|
-
// CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=template&id=2825e799&scoped=true&
|
|
40174
|
-
|
|
40175
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
|
|
40176
|
-
var es_string_match = __webpack_require__("466d");
|
|
40177
|
-
|
|
40178
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./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=script&lang=js&
|
|
40179
|
-
|
|
40180
|
-
|
|
40181
|
-
|
|
40182
|
-
|
|
40183
|
-
|
|
40184
|
-
|
|
40185
|
-
|
|
40186
|
-
|
|
40187
|
-
|
|
40188
|
-
//
|
|
40189
|
-
//
|
|
40190
|
-
//
|
|
40191
|
-
//
|
|
40192
|
-
//
|
|
40193
|
-
//
|
|
40194
|
-
//
|
|
40195
|
-
//
|
|
40196
|
-
//
|
|
40197
|
-
//
|
|
40198
|
-
//
|
|
40199
|
-
//
|
|
40200
|
-
//
|
|
40201
|
-
//
|
|
40202
|
-
//
|
|
40203
|
-
//
|
|
40204
|
-
//
|
|
40205
|
-
//
|
|
40206
|
-
//
|
|
40207
|
-
//
|
|
40208
|
-
//
|
|
40209
|
-
//
|
|
40210
|
-
//
|
|
40211
|
-
//
|
|
40212
|
-
//
|
|
40213
|
-
//
|
|
40214
|
-
//
|
|
40215
|
-
//
|
|
40216
|
-
//
|
|
40217
|
-
//
|
|
40218
|
-
//
|
|
40219
|
-
//
|
|
40220
|
-
//
|
|
40221
|
-
//
|
|
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
|
-
/* harmony default export */ var DatePickervue_type_script_lang_js_ = ({
|
|
40265
|
-
components: {
|
|
40266
|
-
unnnicButton: Button
|
|
40267
|
-
},
|
|
40268
|
-
props: {
|
|
40269
|
-
initialStartDate: String,
|
|
40270
|
-
initialEndDate: String,
|
|
40271
|
-
size: {
|
|
40272
|
-
type: String,
|
|
40273
|
-
default: 'large',
|
|
40274
|
-
validator: function validator(size) {
|
|
40275
|
-
return ['small', 'large'].includes(size);
|
|
40276
|
-
}
|
|
40277
|
-
},
|
|
40278
|
-
clearLabel: {
|
|
40279
|
-
type: String
|
|
40280
|
-
},
|
|
40281
|
-
actionLabel: {
|
|
40282
|
-
type: String
|
|
40283
|
-
},
|
|
40284
|
-
months: {
|
|
40285
|
-
type: Array,
|
|
40286
|
-
default: function _default() {
|
|
40287
|
-
return ['Janeiro', 'Fevereiro', 'Março', 'Abril', 'Maio', 'Junho', 'Julho', 'Agosto', 'Setembro', 'Outubro', 'Novembro', 'Dezembro'];
|
|
40288
|
-
},
|
|
40289
|
-
validator: function validator(months) {
|
|
40290
|
-
return months.length === 12;
|
|
40291
|
-
}
|
|
40292
|
-
},
|
|
40293
|
-
days: {
|
|
40294
|
-
type: Array,
|
|
40295
|
-
default: function _default() {
|
|
40296
|
-
return ['S', 'T', 'Q', 'Q', 'S', 'S', 'D'];
|
|
40297
|
-
},
|
|
40298
|
-
validator: function validator(days) {
|
|
40299
|
-
return days.length === 7;
|
|
40300
|
-
}
|
|
40301
|
-
},
|
|
40302
|
-
options: {
|
|
40303
|
-
type: Array,
|
|
40304
|
-
default: function _default() {
|
|
40305
|
-
return [{
|
|
40306
|
-
name: 'Últimos 7 dias',
|
|
40307
|
-
id: 'last-7-days'
|
|
40308
|
-
}, {
|
|
40309
|
-
name: 'Últimos 14 dias',
|
|
40310
|
-
id: 'last-14-days'
|
|
40311
|
-
}, {
|
|
40312
|
-
name: 'Últimos 30 dias',
|
|
40313
|
-
id: 'last-30-days'
|
|
40314
|
-
}, {
|
|
40315
|
-
name: 'Últimos 12 meses',
|
|
40316
|
-
id: 'last-12-months'
|
|
40317
|
-
}, {
|
|
40318
|
-
name: 'Mês Atual',
|
|
40319
|
-
id: 'current-month'
|
|
40320
|
-
}, {
|
|
40321
|
-
name: 'Personalizar',
|
|
40322
|
-
id: 'custom'
|
|
40323
|
-
}];
|
|
40324
|
-
}
|
|
40325
|
-
}
|
|
40326
|
-
},
|
|
40327
|
-
data: function data() {
|
|
40328
|
-
var today = new Date();
|
|
40329
|
-
var referenceDate = "".concat(today.getMonth() + 1, " 1 ").concat(today.getFullYear());
|
|
40330
|
-
return {
|
|
40331
|
-
referenceDate: referenceDate,
|
|
40332
|
-
startDate: (this.initialStartDate || '').replace(/-/g, ' '),
|
|
40333
|
-
endDate: (this.initialEndDate || '').replace(/-/g, ' '),
|
|
40334
|
-
optionSelected: ''
|
|
40335
|
-
};
|
|
40336
|
-
},
|
|
40337
|
-
computed: {
|
|
40338
|
-
openMonths: function openMonths() {
|
|
40339
|
-
return [this.referenceDate, this.addMonth(this.referenceDate, 1)];
|
|
40340
|
-
},
|
|
40341
|
-
value: function value() {
|
|
40342
|
-
return {
|
|
40343
|
-
startDate: this.startDate.replaceAll(' ', '-'),
|
|
40344
|
-
endDate: this.endDate.replaceAll(' ', '-')
|
|
40345
|
-
};
|
|
40346
|
-
}
|
|
40347
|
-
},
|
|
40348
|
-
watch: {
|
|
40349
|
-
value: function value(_ref) {
|
|
40350
|
-
var startDate = _ref.startDate,
|
|
40351
|
-
endDate = _ref.endDate;
|
|
40352
|
-
this.optionSelected = startDate || endDate ? 'custom' : '';
|
|
40353
|
-
this.$emit('change', this.value);
|
|
40354
|
-
}
|
|
40355
|
-
},
|
|
40356
|
-
methods: {
|
|
40357
|
-
dateToString: function dateToString(date) {
|
|
40358
|
-
return "".concat(date.getMonth() + 1, " ").concat(date.getDate(), " ").concat(date.getFullYear());
|
|
40359
|
-
},
|
|
40360
|
-
stringToTime: function stringToTime(date) {
|
|
40361
|
-
return new Date(date).getTime();
|
|
40362
|
-
},
|
|
40363
|
-
getDate: function getDate(date) {
|
|
40364
|
-
return new Date(date.toString()).getDate();
|
|
40365
|
-
},
|
|
40366
|
-
getMonth: function getMonth(date) {
|
|
40367
|
-
return new Date(date).getMonth();
|
|
40368
|
-
},
|
|
40369
|
-
getFullYear: function getFullYear(date) {
|
|
40370
|
-
return new Date(date).getFullYear();
|
|
40371
|
-
},
|
|
40372
|
-
addMonth: function addMonth(referenceDate, quantity) {
|
|
40373
|
-
var date = new Date(referenceDate);
|
|
40374
|
-
date.setMonth(date.getMonth() + quantity);
|
|
40375
|
-
return this.dateToString(date);
|
|
40376
|
-
},
|
|
40377
|
-
isDateBetween: function isDateBetween(internalDate) {
|
|
40378
|
-
if (this.startDate && this.endDate) {
|
|
40379
|
-
if (internalDate >= this.stringToTime(this.startDate) && internalDate <= this.stringToTime(this.endDate)) {
|
|
40380
|
-
return true;
|
|
40381
|
-
}
|
|
40382
|
-
} else if (this.startDate && internalDate >= this.stringToTime(this.startDate)) {
|
|
40383
|
-
return true;
|
|
40384
|
-
} else if (this.endDate && internalDate <= this.stringToTime(this.endDate)) {
|
|
40385
|
-
return true;
|
|
40386
|
-
}
|
|
40387
|
-
|
|
40388
|
-
return false;
|
|
40389
|
-
},
|
|
40390
|
-
getDatesOfTheMonth: function getDatesOfTheMonth(referenceDate) {
|
|
40391
|
-
var _this = this;
|
|
40392
|
-
|
|
40393
|
-
var date = new Date(referenceDate);
|
|
40394
|
-
var currentMonth = date.getMonth();
|
|
40395
|
-
var oneDayInSeconds = 86400;
|
|
40396
|
-
date.setDate(1 - date.getDay());
|
|
40397
|
-
var dates = [];
|
|
40398
|
-
|
|
40399
|
-
var _loop = function _loop(i) {
|
|
40400
|
-
var dateString = _this.dateToString(date);
|
|
40401
|
-
|
|
40402
|
-
var properties = [];
|
|
40403
|
-
|
|
40404
|
-
if (currentMonth === date.getMonth()) {
|
|
40405
|
-
properties.push('inside month');
|
|
40406
|
-
|
|
40407
|
-
var dateInTime = _this.stringToTime(_this.dateToString(date));
|
|
40408
|
-
|
|
40409
|
-
var dayBefore = dateInTime - oneDayInSeconds;
|
|
40410
|
-
var dayAfter = dateInTime + oneDayInSeconds;
|
|
40411
|
-
|
|
40412
|
-
if (_this.isDateBetween(dateInTime)) {
|
|
40413
|
-
properties.push('selected');
|
|
40414
|
-
|
|
40415
|
-
if (!_this.isDateBetween(dayBefore)) {
|
|
40416
|
-
properties.push('left-highlighted');
|
|
40417
|
-
}
|
|
40418
|
-
|
|
40419
|
-
if (!_this.isDateBetween(dayAfter)) {
|
|
40420
|
-
properties.push('right-highlighted');
|
|
40421
|
-
}
|
|
40422
|
-
|
|
40423
|
-
if (properties.includes('left-highlighted') || properties.includes('right-highlighted')) {
|
|
40424
|
-
properties.push('highlighted');
|
|
40425
|
-
}
|
|
40426
|
-
}
|
|
40427
|
-
}
|
|
40428
|
-
|
|
40429
|
-
if (_this.dateToString(date) === _this.dateToString(new Date())) {
|
|
40430
|
-
properties.push('today');
|
|
40431
|
-
}
|
|
40432
|
-
|
|
40433
|
-
dates.push({
|
|
40434
|
-
properties: properties,
|
|
40435
|
-
toString: function toString() {
|
|
40436
|
-
return dateString;
|
|
40437
|
-
}
|
|
40438
|
-
});
|
|
40439
|
-
date.setDate(date.getDate() + 1);
|
|
40440
|
-
};
|
|
40441
|
-
|
|
40442
|
-
for (var i = 0; i < 6 * 7; i += 1) {
|
|
40443
|
-
_loop(i);
|
|
40444
|
-
}
|
|
40445
|
-
|
|
40446
|
-
return dates;
|
|
40447
|
-
},
|
|
40448
|
-
selectDate: function selectDate(date) {
|
|
40449
|
-
if (!this.startDate || !this.endDate) {
|
|
40450
|
-
this.startDate = date.toString();
|
|
40451
|
-
this.endDate = this.startDate;
|
|
40452
|
-
} else {
|
|
40453
|
-
var self = this.stringToTime(date.toString());
|
|
40454
|
-
var startDate = this.stringToTime(this.startDate);
|
|
40455
|
-
var endDate = this.stringToTime(this.endDate);
|
|
40456
|
-
|
|
40457
|
-
if (self > endDate) {
|
|
40458
|
-
this.endDate = date.toString();
|
|
40459
|
-
} else if (self < startDate) {
|
|
40460
|
-
this.startDate = date.toString();
|
|
40461
|
-
} else if (self === startDate || self === endDate) {
|
|
40462
|
-
this.startDate = date.toString();
|
|
40463
|
-
this.endDate = this.startDate;
|
|
40464
|
-
} else if (self - startDate < endDate - self) {
|
|
40465
|
-
this.startDate = date.toString();
|
|
40466
|
-
} else {
|
|
40467
|
-
this.endDate = date.toString();
|
|
40468
|
-
}
|
|
40469
|
-
}
|
|
40470
|
-
},
|
|
40471
|
-
clear: function clear() {
|
|
40472
|
-
this.startDate = '';
|
|
40473
|
-
this.endDate = '';
|
|
40474
|
-
this.optionSelected = '';
|
|
40475
|
-
},
|
|
40476
|
-
autoSelect: function autoSelect(method) {
|
|
40477
|
-
var _this2 = this;
|
|
40478
|
-
|
|
40479
|
-
var today = new Date();
|
|
40480
|
-
var days = method.match(/^last-(\d+)-days$/);
|
|
40481
|
-
var months = method.match(/^last-(\d+)-months$/);
|
|
40482
|
-
|
|
40483
|
-
if (days) {
|
|
40484
|
-
var howMuch = Number(days[1]);
|
|
40485
|
-
this.endDate = this.dateToString(today);
|
|
40486
|
-
today.setDate(today.getDate() - howMuch + 1);
|
|
40487
|
-
this.startDate = this.dateToString(today);
|
|
40488
|
-
} else if (months) {
|
|
40489
|
-
var _howMuch = Number(months[1]);
|
|
40490
|
-
|
|
40491
|
-
this.endDate = this.dateToString(today);
|
|
40492
|
-
today.setDate(today.getDate() + 1);
|
|
40493
|
-
today.setMonth(today.getMonth() - _howMuch);
|
|
40494
|
-
this.startDate = this.dateToString(today);
|
|
40495
|
-
} else if (method === 'current-month') {
|
|
40496
|
-
today.setDate(1);
|
|
40497
|
-
this.startDate = this.dateToString(today);
|
|
40498
|
-
today.setMonth(today.getMonth() + 1);
|
|
40499
|
-
today.setDate(0);
|
|
40500
|
-
this.endDate = this.dateToString(today);
|
|
40501
|
-
}
|
|
40502
|
-
|
|
40503
|
-
if (this.endDate) {
|
|
40504
|
-
var secondMonth = this.addMonth(this.referenceDate, 1);
|
|
40505
|
-
var firstDateOfEndDate = "".concat(this.getMonth(this.endDate) + 1, " 1 ").concat(this.getFullYear(this.endDate));
|
|
40506
|
-
|
|
40507
|
-
if (![this.referenceDate, secondMonth].includes(firstDateOfEndDate)) {
|
|
40508
|
-
this.referenceDate = firstDateOfEndDate;
|
|
40509
|
-
}
|
|
40510
|
-
}
|
|
40511
|
-
|
|
40512
|
-
this.$nextTick(function () {
|
|
40513
|
-
_this2.optionSelected = method;
|
|
40514
|
-
});
|
|
40515
|
-
}
|
|
40516
|
-
}
|
|
40517
|
-
});
|
|
40518
|
-
// CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=script&lang=js&
|
|
40519
|
-
/* harmony default export */ var DatePicker_DatePickervue_type_script_lang_js_ = (DatePickervue_type_script_lang_js_);
|
|
40520
|
-
// EXTERNAL MODULE: ./src/components/DatePicker/DatePicker.vue?vue&type=style&index=0&id=2825e799&lang=scss&scoped=true&
|
|
40521
|
-
var DatePickervue_type_style_index_0_id_2825e799_lang_scss_scoped_true_ = __webpack_require__("dd28");
|
|
40522
|
-
|
|
40523
|
-
// CONCATENATED MODULE: ./src/components/DatePicker/DatePicker.vue
|
|
40524
|
-
|
|
40525
|
-
|
|
40526
|
-
|
|
40527
|
-
|
|
40528
|
-
|
|
40529
|
-
|
|
40530
|
-
/* normalize component */
|
|
40531
|
-
|
|
40532
|
-
var DatePicker_component = normalizeComponent(
|
|
40533
|
-
DatePicker_DatePickervue_type_script_lang_js_,
|
|
40534
|
-
DatePickervue_type_template_id_2825e799_scoped_true_render,
|
|
40535
|
-
DatePickervue_type_template_id_2825e799_scoped_true_staticRenderFns,
|
|
40536
|
-
false,
|
|
40537
|
-
null,
|
|
40538
|
-
"2825e799",
|
|
40539
|
-
null
|
|
40540
|
-
|
|
40541
|
-
)
|
|
40542
|
-
|
|
40543
|
-
/* harmony default export */ var DatePicker = (DatePicker_component.exports);
|
|
40544
41041
|
// 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/Breadcrumb/Breadcrumb.vue?vue&type=template&id=5ee056c5&scoped=true&
|
|
40545
41042
|
var Breadcrumbvue_type_template_id_5ee056c5_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-breadcrumb"},_vm._l((_vm.crumbs),function(crumb,index){return _c('div',{key:crumb.name,staticClass:"unnnic-breadcrumb__container"},[_c('div',{class:{
|
|
40546
41043
|
'unnnic-breadcrumb__container__link': true,
|
|
@@ -41245,10 +41742,6 @@ var DateFiltervue_type_template_id_3b34c644_staticRenderFns = []
|
|
|
41245
41742
|
|
|
41246
41743
|
// CONCATENATED MODULE: ./src/components/DateFilter/DateFilter.vue?vue&type=template&id=3b34c644&
|
|
41247
41744
|
|
|
41248
|
-
// EXTERNAL MODULE: ./node_modules/moment/moment.js
|
|
41249
|
-
var moment = __webpack_require__("c1df");
|
|
41250
|
-
var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
41251
|
-
|
|
41252
41745
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/DateFilter/DateFilter.vue?vue&type=script&lang=js&
|
|
41253
41746
|
|
|
41254
41747
|
|
|
@@ -42830,6 +43323,119 @@ var AudioRecorder_component = normalizeComponent(
|
|
|
42830
43323
|
)
|
|
42831
43324
|
|
|
42832
43325
|
/* harmony default export */ var AudioRecorder = (AudioRecorder_component.exports);
|
|
43326
|
+
// 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/CircleProgressBar/CircleProgressBar.vue?vue&type=template&id=19c569be&scoped=true&
|
|
43327
|
+
var CircleProgressBarvue_type_template_id_19c569be_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"unnnic-circle-progress-bar"},[_c('svg',{staticClass:"semicircle",attrs:{"width":"46","height":"46"}},[_c('circle',{class:['background', _vm.progress === _vm.totalProgress ? 'filled' : ''],attrs:{"cx":"23","cy":"23","r":"21","stroke":"black","stroke-width":"4px"}}),_c('path',{directives:[{name:"show",rawName:"v-show",value:(_vm.progress < _vm.totalProgress && _vm.progress > 0),expression:"progress < totalProgress && progress > 0"}],ref:"background",staticClass:"front",attrs:{"id":"path","fill":"none","stroke-linecap":"round","stroke-width":"4px"}})]),_c('div',{staticClass:"content"},[_vm._v(_vm._s(_vm.progress)+"/"+_vm._s(_vm.totalProgress))])])}
|
|
43328
|
+
var CircleProgressBarvue_type_template_id_19c569be_scoped_true_staticRenderFns = []
|
|
43329
|
+
|
|
43330
|
+
|
|
43331
|
+
// CONCATENATED MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=template&id=19c569be&scoped=true&
|
|
43332
|
+
|
|
43333
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=script&lang=js&
|
|
43334
|
+
|
|
43335
|
+
|
|
43336
|
+
|
|
43337
|
+
|
|
43338
|
+
//
|
|
43339
|
+
//
|
|
43340
|
+
//
|
|
43341
|
+
//
|
|
43342
|
+
//
|
|
43343
|
+
//
|
|
43344
|
+
//
|
|
43345
|
+
//
|
|
43346
|
+
//
|
|
43347
|
+
//
|
|
43348
|
+
//
|
|
43349
|
+
//
|
|
43350
|
+
//
|
|
43351
|
+
//
|
|
43352
|
+
//
|
|
43353
|
+
//
|
|
43354
|
+
//
|
|
43355
|
+
//
|
|
43356
|
+
//
|
|
43357
|
+
//
|
|
43358
|
+
//
|
|
43359
|
+
//
|
|
43360
|
+
//
|
|
43361
|
+
//
|
|
43362
|
+
//
|
|
43363
|
+
//
|
|
43364
|
+
//
|
|
43365
|
+
/* harmony default export */ var CircleProgressBarvue_type_script_lang_js_ = ({
|
|
43366
|
+
components: {},
|
|
43367
|
+
props: {
|
|
43368
|
+
progress: {
|
|
43369
|
+
type: Number
|
|
43370
|
+
},
|
|
43371
|
+
totalProgress: {
|
|
43372
|
+
type: Number
|
|
43373
|
+
}
|
|
43374
|
+
},
|
|
43375
|
+
watch: {
|
|
43376
|
+
progressChange: {
|
|
43377
|
+
immediate: true,
|
|
43378
|
+
handler: function handler() {
|
|
43379
|
+
var _this = this;
|
|
43380
|
+
|
|
43381
|
+
function polarToCartesian(centerX, centerY, radius, angleInDegrees) {
|
|
43382
|
+
var angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
|
|
43383
|
+
return {
|
|
43384
|
+
x: centerX + radius * -Math.cos(angleInRadians),
|
|
43385
|
+
y: centerY + radius * -Math.sin(angleInRadians)
|
|
43386
|
+
};
|
|
43387
|
+
}
|
|
43388
|
+
|
|
43389
|
+
function describeArc(x, y, innerRadius, outerRadius, startAngle, endAngle) {
|
|
43390
|
+
var radius = innerRadius;
|
|
43391
|
+
var spread = outerRadius - innerRadius;
|
|
43392
|
+
var outerStart = polarToCartesian(x, y, radius + spread, endAngle);
|
|
43393
|
+
var outerEnd = polarToCartesian(x, y, radius + spread, startAngle);
|
|
43394
|
+
var largeArcFlag = endAngle - startAngle <= 180 ? '0' : '1';
|
|
43395
|
+
var d = ['M', outerStart.x, outerStart.y, 'A', radius + spread, radius + spread, 0, largeArcFlag, 0, outerEnd.x, outerEnd.y].join(' ');
|
|
43396
|
+
return d;
|
|
43397
|
+
}
|
|
43398
|
+
|
|
43399
|
+
var value = this.progress / this.totalProgress * 360;
|
|
43400
|
+
var path = describeArc(23, 23, 0, 21, 180 - value.toFixed(), 180);
|
|
43401
|
+
this.$nextTick(function () {
|
|
43402
|
+
_this.$refs.background.setAttribute('d', path);
|
|
43403
|
+
});
|
|
43404
|
+
}
|
|
43405
|
+
}
|
|
43406
|
+
},
|
|
43407
|
+
computed: {
|
|
43408
|
+
progressChange: function progressChange() {
|
|
43409
|
+
return "".concat(this.progress, "-").concat(this.totalProgress);
|
|
43410
|
+
}
|
|
43411
|
+
}
|
|
43412
|
+
});
|
|
43413
|
+
// CONCATENATED MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=script&lang=js&
|
|
43414
|
+
/* harmony default export */ var CircleProgressBar_CircleProgressBarvue_type_script_lang_js_ = (CircleProgressBarvue_type_script_lang_js_);
|
|
43415
|
+
// EXTERNAL MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue?vue&type=style&index=0&id=19c569be&lang=scss&scoped=true&
|
|
43416
|
+
var CircleProgressBarvue_type_style_index_0_id_19c569be_lang_scss_scoped_true_ = __webpack_require__("e291");
|
|
43417
|
+
|
|
43418
|
+
// CONCATENATED MODULE: ./src/components/CircleProgressBar/CircleProgressBar.vue
|
|
43419
|
+
|
|
43420
|
+
|
|
43421
|
+
|
|
43422
|
+
|
|
43423
|
+
|
|
43424
|
+
|
|
43425
|
+
/* normalize component */
|
|
43426
|
+
|
|
43427
|
+
var CircleProgressBar_component = normalizeComponent(
|
|
43428
|
+
CircleProgressBar_CircleProgressBarvue_type_script_lang_js_,
|
|
43429
|
+
CircleProgressBarvue_type_template_id_19c569be_scoped_true_render,
|
|
43430
|
+
CircleProgressBarvue_type_template_id_19c569be_scoped_true_staticRenderFns,
|
|
43431
|
+
false,
|
|
43432
|
+
null,
|
|
43433
|
+
"19c569be",
|
|
43434
|
+
null
|
|
43435
|
+
|
|
43436
|
+
)
|
|
43437
|
+
|
|
43438
|
+
/* harmony default export */ var CircleProgressBar = (CircleProgressBar_component.exports);
|
|
42833
43439
|
// CONCATENATED MODULE: ./src/components/index.js
|
|
42834
43440
|
|
|
42835
43441
|
|
|
@@ -42889,11 +43495,14 @@ var AudioRecorder_component = normalizeComponent(
|
|
|
42889
43495
|
|
|
42890
43496
|
|
|
42891
43497
|
|
|
43498
|
+
|
|
43499
|
+
|
|
42892
43500
|
|
|
42893
43501
|
|
|
42894
43502
|
|
|
42895
43503
|
var components = {
|
|
42896
43504
|
unnnicInput: Input,
|
|
43505
|
+
unnnicInputDatePicker: InputDatePicker,
|
|
42897
43506
|
unnnicButton: Button,
|
|
42898
43507
|
unnnicButtonIcon: ButtonIcon,
|
|
42899
43508
|
unnnicSidebar: Sidebar,
|
|
@@ -42949,12 +43558,14 @@ var components = {
|
|
|
42949
43558
|
unnnicTextEditor: TextEditor,
|
|
42950
43559
|
unnnicMoodRating: MoodRating,
|
|
42951
43560
|
unnnicStarRating: StarRating,
|
|
42952
|
-
unnnicAudioRecorder: AudioRecorder
|
|
43561
|
+
unnnicAudioRecorder: AudioRecorder,
|
|
43562
|
+
unnnicCircleProgressBar: CircleProgressBar
|
|
42953
43563
|
};
|
|
42954
43564
|
Object.keys(components).forEach(function (name) {
|
|
42955
43565
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.component(name, components[name]);
|
|
42956
43566
|
});
|
|
42957
43567
|
var unnnicInput = Input;
|
|
43568
|
+
var unnnicInputDatePicker = InputDatePicker;
|
|
42958
43569
|
var unnnicButton = Button;
|
|
42959
43570
|
var unnnicButtonIcon = ButtonIcon;
|
|
42960
43571
|
var unnnicSidebar = Sidebar;
|
|
@@ -43013,6 +43624,7 @@ var unnnicTextEditor = TextEditor;
|
|
|
43013
43624
|
var unnnicMoodRating = MoodRating;
|
|
43014
43625
|
var unnnicStarRating = StarRating;
|
|
43015
43626
|
var unnnicAudioRecorder = AudioRecorder;
|
|
43627
|
+
var unnnicCircleProgressBar = CircleProgressBar;
|
|
43016
43628
|
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib-no-default.js
|
|
43017
43629
|
|
|
43018
43630
|
|