pui9-components 3.0.7 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pui9-components.common.js +1002 -1011
- package/dist/pui9-components.css +1 -1
- package/package-lock.json +70 -59
- package/package.json +4 -2
|
@@ -1633,6 +1633,21 @@ function getASCIIEncoder(obj) {
|
|
|
1633
1633
|
}
|
|
1634
1634
|
|
|
1635
1635
|
|
|
1636
|
+
/***/ }),
|
|
1637
|
+
|
|
1638
|
+
/***/ "0541":
|
|
1639
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1640
|
+
|
|
1641
|
+
var $ = __webpack_require__("23e7");
|
|
1642
|
+
var hasOwn = __webpack_require__("1a2d");
|
|
1643
|
+
|
|
1644
|
+
// `Object.hasOwn` method
|
|
1645
|
+
// https://github.com/tc39/proposal-accessible-object-hasownproperty
|
|
1646
|
+
$({ target: 'Object', stat: true }, {
|
|
1647
|
+
hasOwn: hasOwn
|
|
1648
|
+
});
|
|
1649
|
+
|
|
1650
|
+
|
|
1636
1651
|
/***/ }),
|
|
1637
1652
|
|
|
1638
1653
|
/***/ "0558":
|
|
@@ -4297,17 +4312,6 @@ module.exports = $documentAll.IS_HTMLDDA ? function (argument) {
|
|
|
4297
4312
|
})));
|
|
4298
4313
|
|
|
4299
4314
|
|
|
4300
|
-
/***/ }),
|
|
4301
|
-
|
|
4302
|
-
/***/ "1719":
|
|
4303
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4304
|
-
|
|
4305
|
-
"use strict";
|
|
4306
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiCauDialog_vue_vue_type_style_index_0_id_e08301ba_prod_lang_postcss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a3c7");
|
|
4307
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiCauDialog_vue_vue_type_style_index_0_id_e08301ba_prod_lang_postcss__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_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiCauDialog_vue_vue_type_style_index_0_id_e08301ba_prod_lang_postcss__WEBPACK_IMPORTED_MODULE_0__);
|
|
4308
|
-
/* unused harmony reexport * */
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
4315
|
/***/ }),
|
|
4312
4316
|
|
|
4313
4317
|
/***/ "17c2":
|
|
@@ -4765,13 +4769,6 @@ if (DESCRIPTORS && getPrototypeOf && setPrototypeOf && !(PROTO in ObjectPrototyp
|
|
|
4765
4769
|
} catch (error) { /* empty */ }
|
|
4766
4770
|
|
|
4767
4771
|
|
|
4768
|
-
/***/ }),
|
|
4769
|
-
|
|
4770
|
-
/***/ "1fa9":
|
|
4771
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4772
|
-
|
|
4773
|
-
// extracted by mini-css-extract-plugin
|
|
4774
|
-
|
|
4775
4772
|
/***/ }),
|
|
4776
4773
|
|
|
4777
4774
|
/***/ "1fb5":
|
|
@@ -5903,17 +5900,6 @@ module.exports = function (CONSTRUCTOR_NAME) {
|
|
|
5903
5900
|
};
|
|
5904
5901
|
|
|
5905
5902
|
|
|
5906
|
-
/***/ }),
|
|
5907
|
-
|
|
5908
|
-
/***/ "26cf":
|
|
5909
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5910
|
-
|
|
5911
|
-
"use strict";
|
|
5912
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiMultiSelect_vue_vue_type_style_index_0_id_0d6adb69_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d3cb");
|
|
5913
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiMultiSelect_vue_vue_type_style_index_0_id_0d6adb69_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_7_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiMultiSelect_vue_vue_type_style_index_0_id_0d6adb69_prod_scoped_true_lang_css__WEBPACK_IMPORTED_MODULE_0__);
|
|
5914
|
-
/* unused harmony reexport * */
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
5903
|
/***/ }),
|
|
5918
5904
|
|
|
5919
5905
|
/***/ "26f9":
|
|
@@ -44049,17 +44035,6 @@ module.exports = function (originalArray, length) {
|
|
|
44049
44035
|
};
|
|
44050
44036
|
|
|
44051
44037
|
|
|
44052
|
-
/***/ }),
|
|
44053
|
-
|
|
44054
|
-
/***/ "6704":
|
|
44055
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
44056
|
-
|
|
44057
|
-
"use strict";
|
|
44058
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiFilterRule_vue_vue_type_style_index_0_id_ee2d529a_prod_lang_postcss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6f38");
|
|
44059
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiFilterRule_vue_vue_type_style_index_0_id_ee2d529a_prod_lang_postcss__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_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiFilterRule_vue_vue_type_style_index_0_id_ee2d529a_prod_lang_postcss__WEBPACK_IMPORTED_MODULE_0__);
|
|
44060
|
-
/* unused harmony reexport * */
|
|
44061
|
-
|
|
44062
|
-
|
|
44063
44038
|
/***/ }),
|
|
44064
44039
|
|
|
44065
44040
|
/***/ "6721":
|
|
@@ -45787,13 +45762,6 @@ Warning.default = Warning
|
|
|
45787
45762
|
})));
|
|
45788
45763
|
|
|
45789
45764
|
|
|
45790
|
-
/***/ }),
|
|
45791
|
-
|
|
45792
|
-
/***/ "6f38":
|
|
45793
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
45794
|
-
|
|
45795
|
-
// extracted by mini-css-extract-plugin
|
|
45796
|
-
|
|
45797
45765
|
/***/ }),
|
|
45798
45766
|
|
|
45799
45767
|
/***/ "6f50":
|
|
@@ -53277,13 +53245,6 @@ module.exports = string => {
|
|
|
53277
53245
|
})));
|
|
53278
53246
|
|
|
53279
53247
|
|
|
53280
|
-
/***/ }),
|
|
53281
|
-
|
|
53282
|
-
/***/ "a3c7":
|
|
53283
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
53284
|
-
|
|
53285
|
-
// extracted by mini-css-extract-plugin
|
|
53286
|
-
|
|
53287
53248
|
/***/ }),
|
|
53288
53249
|
|
|
53289
53250
|
/***/ "a434":
|
|
@@ -73058,13 +73019,6 @@ if (!TO_STRING_TAG_SUPPORT) {
|
|
|
73058
73019
|
}
|
|
73059
73020
|
|
|
73060
73021
|
|
|
73061
|
-
/***/ }),
|
|
73062
|
-
|
|
73063
|
-
/***/ "d3cb":
|
|
73064
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
73065
|
-
|
|
73066
|
-
// extracted by mini-css-extract-plugin
|
|
73067
|
-
|
|
73068
73022
|
/***/ }),
|
|
73069
73023
|
|
|
73070
73024
|
/***/ "d44e":
|
|
@@ -74281,17 +74235,6 @@ var deepmerge_1 = deepmerge;
|
|
|
74281
74235
|
module.exports = deepmerge_1;
|
|
74282
74236
|
|
|
74283
74237
|
|
|
74284
|
-
/***/ }),
|
|
74285
|
-
|
|
74286
|
-
/***/ "d8f6":
|
|
74287
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
74288
|
-
|
|
74289
|
-
"use strict";
|
|
74290
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiFilterGroup_vue_vue_type_style_index_0_id_25bd881e_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1fa9");
|
|
74291
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_8_oneOf_1_0_node_modules_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiFilterGroup_vue_vue_type_style_index_0_id_25bd881e_prod_lang_postcss_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_vue_cli_service_node_modules_css_loader_dist_cjs_js_ref_8_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_cli_service_node_modules_postcss_loader_src_index_js_ref_8_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_PuiFilterGroup_vue_vue_type_style_index_0_id_25bd881e_prod_lang_postcss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
74292
|
-
/* unused harmony reexport * */
|
|
74293
|
-
|
|
74294
|
-
|
|
74295
74238
|
/***/ }),
|
|
74296
74239
|
|
|
74297
74240
|
/***/ "d998":
|
|
@@ -79620,6 +79563,7 @@ CodeMirror.defineMIME("application/typescript", { name: "javascript", typescript
|
|
|
79620
79563
|
__webpack_require__.r(__webpack_exports__);
|
|
79621
79564
|
|
|
79622
79565
|
// EXPORTS
|
|
79566
|
+
__webpack_require__.d(__webpack_exports__, "Components", function() { return /* reexport */ Components; });
|
|
79623
79567
|
__webpack_require__.d(__webpack_exports__, "PuiFormHeaderMixin", function() { return /* reexport */ PuiFormHeaderMixin; });
|
|
79624
79568
|
__webpack_require__.d(__webpack_exports__, "PuiFormMethodsMixin", function() { return /* reexport */ PuiFormMethodsMixin; });
|
|
79625
79569
|
|
|
@@ -79662,7 +79606,7 @@ var esnext_iterator_for_each = __webpack_require__("4e3e");
|
|
|
79662
79606
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
79663
79607
|
var web_dom_collections_for_each = __webpack_require__("159b");
|
|
79664
79608
|
|
|
79665
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiAutocomplete.vue?vue&type=template&id=
|
|
79609
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiAutocomplete.vue?vue&type=template&id=2856a94a
|
|
79666
79610
|
var render = function render() {
|
|
79667
79611
|
var _vm = this,
|
|
79668
79612
|
_c = _vm._self._c;
|
|
@@ -79745,7 +79689,7 @@ var render = function render() {
|
|
|
79745
79689
|
};
|
|
79746
79690
|
var staticRenderFns = [];
|
|
79747
79691
|
|
|
79748
|
-
// CONCATENATED MODULE: ./src/components/PuiAutocomplete.vue?vue&type=template&id=
|
|
79692
|
+
// CONCATENATED MODULE: ./src/components/PuiAutocomplete.vue?vue&type=template&id=2856a94a
|
|
79749
79693
|
|
|
79750
79694
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
|
79751
79695
|
function _arrayWithHoles(r) {
|
|
@@ -80275,7 +80219,8 @@ var sanitize_html = __webpack_require__("5e22");
|
|
|
80275
80219
|
initialValue: '',
|
|
80276
80220
|
internalModel: '',
|
|
80277
80221
|
firstLazyLoad: false,
|
|
80278
|
-
internalError: false
|
|
80222
|
+
internalError: false,
|
|
80223
|
+
firstLoad: true
|
|
80279
80224
|
};
|
|
80280
80225
|
},
|
|
80281
80226
|
computed: {
|
|
@@ -80285,7 +80230,7 @@ var sanitize_html = __webpack_require__("5e22");
|
|
|
80285
80230
|
return _objectSpread2(_objectSpread2({}, this.$attrs), propsWithoutLabel);
|
|
80286
80231
|
},
|
|
80287
80232
|
isMobile: function isMobile() {
|
|
80288
|
-
return this.$store.
|
|
80233
|
+
return this.$store.isMobile;
|
|
80289
80234
|
},
|
|
80290
80235
|
isEdited: function isEdited() {
|
|
80291
80236
|
if (this.noeditable || this.disabled || this.readonly) {
|
|
@@ -80299,7 +80244,7 @@ var sanitize_html = __webpack_require__("5e22");
|
|
|
80299
80244
|
}
|
|
80300
80245
|
},
|
|
80301
80246
|
userLocaleCode: function userLocaleCode() {
|
|
80302
|
-
return this.$store && this.$store
|
|
80247
|
+
return this.$store && this.$store && this.$store.getUserLanguage || navigator.language;
|
|
80303
80248
|
},
|
|
80304
80249
|
getLabel: function getLabel() {
|
|
80305
80250
|
return this.$props.label;
|
|
@@ -80522,9 +80467,9 @@ var PuiAutocomplete_component = normalizeComponent(
|
|
|
80522
80467
|
)
|
|
80523
80468
|
|
|
80524
80469
|
/* harmony default export */ var PuiAutocomplete = (PuiAutocomplete_component.exports);
|
|
80525
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCauDialog.vue?vue&type=template&id=
|
|
80470
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCauDialog.vue?vue&type=template&id=329f22b8
|
|
80526
80471
|
|
|
80527
|
-
var
|
|
80472
|
+
var PuiCauDialogvue_type_template_id_329f22b8_render = function render() {
|
|
80528
80473
|
var _vm = this,
|
|
80529
80474
|
_c = _vm._self._c;
|
|
80530
80475
|
return _c('v-container', {
|
|
@@ -80700,9 +80645,9 @@ var PuiCauDialogvue_type_template_id_e08301ba_render = function render() {
|
|
|
80700
80645
|
}
|
|
80701
80646
|
}, [_vm._v("Enviar")])], 1)], 1)], 1)], 1);
|
|
80702
80647
|
};
|
|
80703
|
-
var
|
|
80648
|
+
var PuiCauDialogvue_type_template_id_329f22b8_staticRenderFns = [];
|
|
80704
80649
|
|
|
80705
|
-
// CONCATENATED MODULE: ./src/components/PuiCauDialog.vue?vue&type=template&id=
|
|
80650
|
+
// CONCATENATED MODULE: ./src/components/PuiCauDialog.vue?vue&type=template&id=329f22b8
|
|
80706
80651
|
|
|
80707
80652
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCauDialog.vue?vue&type=script&lang=js
|
|
80708
80653
|
|
|
@@ -80737,13 +80682,13 @@ var PuiCauDialogvue_type_template_id_e08301ba_staticRenderFns = [];
|
|
|
80737
80682
|
},
|
|
80738
80683
|
computed: {
|
|
80739
80684
|
isIssueTicketActive: function isIssueTicketActive() {
|
|
80740
|
-
return this.$store.
|
|
80685
|
+
return this.$store.isIssueTicketActive;
|
|
80741
80686
|
},
|
|
80742
80687
|
getUser: function getUser() {
|
|
80743
|
-
return this.$store.
|
|
80688
|
+
return this.$store.getSession.name;
|
|
80744
80689
|
},
|
|
80745
80690
|
getEmail: function getEmail() {
|
|
80746
|
-
return this.$store.
|
|
80691
|
+
return this.$store.getSession.email;
|
|
80747
80692
|
},
|
|
80748
80693
|
isLogged: function isLogged() {
|
|
80749
80694
|
return this.getUser != null;
|
|
@@ -80814,22 +80759,18 @@ var PuiCauDialogvue_type_template_id_e08301ba_staticRenderFns = [];
|
|
|
80814
80759
|
});
|
|
80815
80760
|
// CONCATENATED MODULE: ./src/components/PuiCauDialog.vue?vue&type=script&lang=js
|
|
80816
80761
|
/* harmony default export */ var components_PuiCauDialogvue_type_script_lang_js = (PuiCauDialogvue_type_script_lang_js);
|
|
80817
|
-
// EXTERNAL MODULE: ./src/components/PuiCauDialog.vue?vue&type=style&index=0&id=e08301ba&prod&lang=postcss
|
|
80818
|
-
var PuiCauDialogvue_type_style_index_0_id_e08301ba_prod_lang_postcss = __webpack_require__("1719");
|
|
80819
|
-
|
|
80820
80762
|
// CONCATENATED MODULE: ./src/components/PuiCauDialog.vue
|
|
80821
80763
|
|
|
80822
80764
|
|
|
80823
80765
|
|
|
80824
80766
|
|
|
80825
80767
|
|
|
80826
|
-
|
|
80827
80768
|
/* normalize component */
|
|
80828
80769
|
|
|
80829
80770
|
var PuiCauDialog_component = normalizeComponent(
|
|
80830
80771
|
components_PuiCauDialogvue_type_script_lang_js,
|
|
80831
|
-
|
|
80832
|
-
|
|
80772
|
+
PuiCauDialogvue_type_template_id_329f22b8_render,
|
|
80773
|
+
PuiCauDialogvue_type_template_id_329f22b8_staticRenderFns,
|
|
80833
80774
|
false,
|
|
80834
80775
|
null,
|
|
80835
80776
|
null,
|
|
@@ -80838,8 +80779,8 @@ var PuiCauDialog_component = normalizeComponent(
|
|
|
80838
80779
|
)
|
|
80839
80780
|
|
|
80840
80781
|
/* harmony default export */ var PuiCauDialog = (PuiCauDialog_component.exports);
|
|
80841
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCheckbox.vue?vue&type=template&id=
|
|
80842
|
-
var
|
|
80782
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCheckbox.vue?vue&type=template&id=0b717ce0
|
|
80783
|
+
var PuiCheckboxvue_type_template_id_0b717ce0_render = function render() {
|
|
80843
80784
|
var _vm = this,
|
|
80844
80785
|
_c = _vm._self._c;
|
|
80845
80786
|
return _c('v-checkbox', _vm._b({
|
|
@@ -80880,9 +80821,9 @@ var PuiCheckboxvue_type_template_id_0eea49cc_render = function render() {
|
|
|
80880
80821
|
}
|
|
80881
80822
|
}, 'v-checkbox', _vm.allProps, false));
|
|
80882
80823
|
};
|
|
80883
|
-
var
|
|
80824
|
+
var PuiCheckboxvue_type_template_id_0b717ce0_staticRenderFns = [];
|
|
80884
80825
|
|
|
80885
|
-
// CONCATENATED MODULE: ./src/components/PuiCheckbox.vue?vue&type=template&id=
|
|
80826
|
+
// CONCATENATED MODULE: ./src/components/PuiCheckbox.vue?vue&type=template&id=0b717ce0
|
|
80886
80827
|
|
|
80887
80828
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCheckbox.vue?vue&type=script&lang=js
|
|
80888
80829
|
|
|
@@ -81008,8 +80949,8 @@ var PuiCheckboxvue_type_template_id_0eea49cc_staticRenderFns = [];
|
|
|
81008
80949
|
|
|
81009
80950
|
var PuiCheckbox_component = normalizeComponent(
|
|
81010
80951
|
components_PuiCheckboxvue_type_script_lang_js,
|
|
81011
|
-
|
|
81012
|
-
|
|
80952
|
+
PuiCheckboxvue_type_template_id_0b717ce0_render,
|
|
80953
|
+
PuiCheckboxvue_type_template_id_0b717ce0_staticRenderFns,
|
|
81013
80954
|
false,
|
|
81014
80955
|
null,
|
|
81015
80956
|
null,
|
|
@@ -81018,8 +80959,8 @@ var PuiCheckbox_component = normalizeComponent(
|
|
|
81018
80959
|
)
|
|
81019
80960
|
|
|
81020
80961
|
/* harmony default export */ var PuiCheckbox = (PuiCheckbox_component.exports);
|
|
81021
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCodeEditor.vue?vue&type=template&id=
|
|
81022
|
-
var
|
|
80962
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiCodeEditor.vue?vue&type=template&id=544556af
|
|
80963
|
+
var PuiCodeEditorvue_type_template_id_544556af_render = function render() {
|
|
81023
80964
|
var _vm = this,
|
|
81024
80965
|
_c = _vm._self._c;
|
|
81025
80966
|
return _c('v-layout', {
|
|
@@ -81079,9 +81020,9 @@ var PuiCodeEditorvue_type_template_id_1c03f4ef_render = function render() {
|
|
|
81079
81020
|
staticClass: "codemirror-label-error"
|
|
81080
81021
|
}, [_vm._v(_vm._s(_vm.$t('pui9.error.field_selected')))])])], 1)], 1)], 1);
|
|
81081
81022
|
};
|
|
81082
|
-
var
|
|
81023
|
+
var PuiCodeEditorvue_type_template_id_544556af_staticRenderFns = [];
|
|
81083
81024
|
|
|
81084
|
-
// CONCATENATED MODULE: ./src/components/PuiCodeEditor.vue?vue&type=template&id=
|
|
81025
|
+
// CONCATENATED MODULE: ./src/components/PuiCodeEditor.vue?vue&type=template&id=544556af
|
|
81085
81026
|
|
|
81086
81027
|
// EXTERNAL MODULE: ./node_modules/codemirror/lib/codemirror.js
|
|
81087
81028
|
var codemirror = __webpack_require__("56b3");
|
|
@@ -81227,8 +81168,8 @@ var python = __webpack_require__("db91");
|
|
|
81227
81168
|
|
|
81228
81169
|
var PuiCodeEditor_component = normalizeComponent(
|
|
81229
81170
|
components_PuiCodeEditorvue_type_script_lang_js,
|
|
81230
|
-
|
|
81231
|
-
|
|
81171
|
+
PuiCodeEditorvue_type_template_id_544556af_render,
|
|
81172
|
+
PuiCodeEditorvue_type_template_id_544556af_staticRenderFns,
|
|
81232
81173
|
false,
|
|
81233
81174
|
null,
|
|
81234
81175
|
null,
|
|
@@ -81237,8 +81178,8 @@ var PuiCodeEditor_component = normalizeComponent(
|
|
|
81237
81178
|
)
|
|
81238
81179
|
|
|
81239
81180
|
/* harmony default export */ var PuiCodeEditor = (PuiCodeEditor_component.exports);
|
|
81240
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiDateField.vue?vue&type=template&id=
|
|
81241
|
-
var
|
|
81181
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiDateField.vue?vue&type=template&id=e1650a5c
|
|
81182
|
+
var PuiDateFieldvue_type_template_id_e1650a5c_render = function render() {
|
|
81242
81183
|
var _vm = this,
|
|
81243
81184
|
_c = _vm._self._c;
|
|
81244
81185
|
return !_vm.isMobile ? _c('div', [_vm.toplabel ? _c('div', {
|
|
@@ -81799,9 +81740,9 @@ var PuiDateFieldvue_type_template_id_c2888ec8_render = function render() {
|
|
|
81799
81740
|
}
|
|
81800
81741
|
}, 'v-time-picker', _vm.allProps, false)) : _vm._e()], 1) : _vm._e()], 1)], 1)], 1)], 1)], 1);
|
|
81801
81742
|
};
|
|
81802
|
-
var
|
|
81743
|
+
var PuiDateFieldvue_type_template_id_e1650a5c_staticRenderFns = [];
|
|
81803
81744
|
|
|
81804
|
-
// CONCATENATED MODULE: ./src/components/PuiDateField.vue?vue&type=template&id=
|
|
81745
|
+
// CONCATENATED MODULE: ./src/components/PuiDateField.vue?vue&type=template&id=e1650a5c
|
|
81805
81746
|
|
|
81806
81747
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.constructor.js
|
|
81807
81748
|
var es_regexp_constructor = __webpack_require__("4d63");
|
|
@@ -81993,7 +81934,6 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
81993
81934
|
return {
|
|
81994
81935
|
debug: false,
|
|
81995
81936
|
defaultId: "id_".concat(Math.random().toString().replace('.', '')),
|
|
81996
|
-
firstLoad: true,
|
|
81997
81937
|
internalUTCModel: null,
|
|
81998
81938
|
internalDatePickerModel: null,
|
|
81999
81939
|
internalDateFieldModel: null,
|
|
@@ -82059,10 +81999,10 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
82059
81999
|
return this.max ? moment_default()(prefix + this.internalTimePickerModel).isSame(moment_default()(this.maxDateValue + 'T' + this.maxTimeValueForValidation)) || moment_default()(prefix + this.internalTimePickerModel).isBefore(moment_default()(this.maxDateValue + 'T' + this.maxTimeValueForValidation)) : null;
|
|
82060
82000
|
},
|
|
82061
82001
|
ISOdateFormat: function ISOdateFormat() {
|
|
82062
|
-
return this.isoDateFormat || this.$store && this.$store
|
|
82002
|
+
return this.isoDateFormat || this.$store && this.$store && this.$store.dateFormat || 'DD/MM/YYYY';
|
|
82063
82003
|
},
|
|
82064
82004
|
ISOtimeFormat: function ISOtimeFormat() {
|
|
82065
|
-
return this.timesecs ? 'HH:mm:ss' : 'HH:mm'; // (this.$store && this.$store
|
|
82005
|
+
return this.timesecs ? 'HH:mm:ss' : 'HH:mm'; // (this.$store && this.$store && this.$store.timeFormat)
|
|
82066
82006
|
},
|
|
82067
82007
|
getDateRules: function getDateRules() {
|
|
82068
82008
|
var _this = this;
|
|
@@ -82141,22 +82081,14 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
82141
82081
|
if (this.noeditable || this.disabled || this.readonly) {
|
|
82142
82082
|
return false;
|
|
82143
82083
|
} else {
|
|
82144
|
-
|
|
82145
|
-
if (this.initialDateValue !== newDate) {
|
|
82146
|
-
return true;
|
|
82147
|
-
}
|
|
82148
|
-
return false;
|
|
82084
|
+
return this.initialDateValue !== this.internalDateFieldModel;
|
|
82149
82085
|
}
|
|
82150
82086
|
},
|
|
82151
82087
|
isEditedTime: function isEditedTime() {
|
|
82152
82088
|
if (this.noeditable || this.disabled || this.readonly) {
|
|
82153
82089
|
return false;
|
|
82154
82090
|
} else {
|
|
82155
|
-
|
|
82156
|
-
if (this.initialTimeValue !== newTime) {
|
|
82157
|
-
return true;
|
|
82158
|
-
}
|
|
82159
|
-
return false;
|
|
82091
|
+
return this.initialTimeValue !== this.internalTimeFieldModel;
|
|
82160
82092
|
}
|
|
82161
82093
|
},
|
|
82162
82094
|
getDatePlaceholder: function getDatePlaceholder() {
|
|
@@ -82401,9 +82333,9 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
82401
82333
|
validateTime: function validateTime(time) {
|
|
82402
82334
|
this.debug && console.log('validateTime', time);
|
|
82403
82335
|
if (this.showTime) {
|
|
82404
|
-
var timeRegex = new RegExp('^([0-1]
|
|
82336
|
+
var timeRegex = new RegExp('^([0-1]\\d|2[0-3]):([0-5]\\d)$');
|
|
82405
82337
|
if (this.timesecs) {
|
|
82406
|
-
timeRegex = new RegExp('^([0-1]
|
|
82338
|
+
timeRegex = new RegExp('^([0-1]\\d|2[0-3]):([0-5]\\d):([0-5]\\d)$');
|
|
82407
82339
|
}
|
|
82408
82340
|
if (time == null) {
|
|
82409
82341
|
return true;
|
|
@@ -82517,19 +82449,17 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
82517
82449
|
return '+00:00';
|
|
82518
82450
|
}
|
|
82519
82451
|
var hour = offset / 60;
|
|
82520
|
-
if (hour) {
|
|
82521
|
-
if (hour
|
|
82522
|
-
|
|
82523
|
-
|
|
82524
|
-
|
|
82525
|
-
|
|
82526
|
-
|
|
82527
|
-
|
|
82528
|
-
|
|
82529
|
-
|
|
82530
|
-
|
|
82531
|
-
return '-' + hour + ':00';
|
|
82532
|
-
}
|
|
82452
|
+
if (hour.toString().length === 1) {
|
|
82453
|
+
if (hour > 0) {
|
|
82454
|
+
return '+0' + hour + ':00';
|
|
82455
|
+
} else {
|
|
82456
|
+
return '-0' + hour + ':00';
|
|
82457
|
+
}
|
|
82458
|
+
} else if (hour.toString().length === 2) {
|
|
82459
|
+
if (hour > 0) {
|
|
82460
|
+
return '+' + hour + ':00';
|
|
82461
|
+
} else {
|
|
82462
|
+
return '-' + hour + ':00';
|
|
82533
82463
|
}
|
|
82534
82464
|
}
|
|
82535
82465
|
return '';
|
|
@@ -82578,8 +82508,8 @@ var moment_default = /*#__PURE__*/__webpack_require__.n(moment);
|
|
|
82578
82508
|
|
|
82579
82509
|
var PuiDateField_component = normalizeComponent(
|
|
82580
82510
|
components_PuiDateFieldvue_type_script_lang_js,
|
|
82581
|
-
|
|
82582
|
-
|
|
82511
|
+
PuiDateFieldvue_type_template_id_e1650a5c_render,
|
|
82512
|
+
PuiDateFieldvue_type_template_id_e1650a5c_staticRenderFns,
|
|
82583
82513
|
false,
|
|
82584
82514
|
null,
|
|
82585
82515
|
null,
|
|
@@ -82588,8 +82518,8 @@ var PuiDateField_component = normalizeComponent(
|
|
|
82588
82518
|
)
|
|
82589
82519
|
|
|
82590
82520
|
/* harmony default export */ var PuiDateField = (PuiDateField_component.exports);
|
|
82591
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiField.vue?vue&type=template&id=
|
|
82592
|
-
var
|
|
82521
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiField.vue?vue&type=template&id=bb9cafd6
|
|
82522
|
+
var PuiFieldvue_type_template_id_bb9cafd6_render = function render() {
|
|
82593
82523
|
var _vm = this,
|
|
82594
82524
|
_c = _vm._self._c;
|
|
82595
82525
|
return _c('div', [_c('v-layout', [_c('v-flex', {
|
|
@@ -82597,18 +82527,18 @@ var PuiFieldvue_type_template_id_2b9661aa_render = function render() {
|
|
|
82597
82527
|
"xs12": ""
|
|
82598
82528
|
}
|
|
82599
82529
|
}, [_c('span', {
|
|
82600
|
-
|
|
82601
|
-
"font-weight": "600"
|
|
82602
|
-
}
|
|
82530
|
+
staticClass: "puiField__label"
|
|
82603
82531
|
}, [_vm._v(_vm._s(_vm.label))])])], 1), _c('v-layout', [_c('v-flex', {
|
|
82604
82532
|
attrs: {
|
|
82605
82533
|
"xs12": ""
|
|
82606
82534
|
}
|
|
82607
|
-
}, [
|
|
82535
|
+
}, [_c('span', {
|
|
82536
|
+
staticClass: "puiField__value"
|
|
82537
|
+
}, [_vm._v(_vm._s(_vm.value))])])], 1)], 1);
|
|
82608
82538
|
};
|
|
82609
|
-
var
|
|
82539
|
+
var PuiFieldvue_type_template_id_bb9cafd6_staticRenderFns = [];
|
|
82610
82540
|
|
|
82611
|
-
// CONCATENATED MODULE: ./src/components/PuiField.vue?vue&type=template&id=
|
|
82541
|
+
// CONCATENATED MODULE: ./src/components/PuiField.vue?vue&type=template&id=bb9cafd6
|
|
82612
82542
|
|
|
82613
82543
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiField.vue?vue&type=script&lang=js
|
|
82614
82544
|
|
|
@@ -82639,8 +82569,8 @@ var PuiFieldvue_type_template_id_2b9661aa_staticRenderFns = [];
|
|
|
82639
82569
|
|
|
82640
82570
|
var PuiField_component = normalizeComponent(
|
|
82641
82571
|
components_PuiFieldvue_type_script_lang_js,
|
|
82642
|
-
|
|
82643
|
-
|
|
82572
|
+
PuiFieldvue_type_template_id_bb9cafd6_render,
|
|
82573
|
+
PuiFieldvue_type_template_id_bb9cafd6_staticRenderFns,
|
|
82644
82574
|
false,
|
|
82645
82575
|
null,
|
|
82646
82576
|
null,
|
|
@@ -82705,8 +82635,8 @@ var PuiFieldSet_component = normalizeComponent(
|
|
|
82705
82635
|
)
|
|
82706
82636
|
|
|
82707
82637
|
/* harmony default export */ var PuiFieldSet = (PuiFieldSet_component.exports);
|
|
82708
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFileUpload.vue?vue&type=template&id=
|
|
82709
|
-
var
|
|
82638
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFileUpload.vue?vue&type=template&id=21b09be5
|
|
82639
|
+
var PuiFileUploadvue_type_template_id_21b09be5_render = function render() {
|
|
82710
82640
|
var _vm = this,
|
|
82711
82641
|
_c = _vm._self._c;
|
|
82712
82642
|
return _c('v-card', {
|
|
@@ -82850,9 +82780,9 @@ var PuiFileUploadvue_type_template_id_6efb9dfe_render = function render() {
|
|
|
82850
82780
|
}
|
|
82851
82781
|
}, [_c('span', [_vm._v(_vm._s(_vm.$t('form.puidocument.downloadfile')))])]) : _vm._e()], 2)], 1)], 1);
|
|
82852
82782
|
};
|
|
82853
|
-
var
|
|
82783
|
+
var PuiFileUploadvue_type_template_id_21b09be5_staticRenderFns = [];
|
|
82854
82784
|
|
|
82855
|
-
// CONCATENATED MODULE: ./src/components/PuiFileUpload.vue?vue&type=template&id=
|
|
82785
|
+
// CONCATENATED MODULE: ./src/components/PuiFileUpload.vue?vue&type=template&id=21b09be5
|
|
82856
82786
|
|
|
82857
82787
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFileUpload.vue?vue&type=script&lang=js
|
|
82858
82788
|
|
|
@@ -83033,7 +82963,6 @@ var PuiFileUploadvue_type_template_id_6efb9dfe_staticRenderFns = [];
|
|
|
83033
82963
|
});
|
|
83034
82964
|
fr.readAsDataURL(file);
|
|
83035
82965
|
fr.onloadend = function () {
|
|
83036
|
-
//console.log('DONE', fr.readyState); // readyState will be 2
|
|
83037
82966
|
_this.$puiEvents.$emit("onPuiFileUpload_selectedFile", {
|
|
83038
82967
|
id: _this.puiFileUploadId
|
|
83039
82968
|
});
|
|
@@ -83068,8 +82997,8 @@ var PuiFileUploadvue_type_template_id_6efb9dfe_staticRenderFns = [];
|
|
|
83068
82997
|
|
|
83069
82998
|
var PuiFileUpload_component = normalizeComponent(
|
|
83070
82999
|
components_PuiFileUploadvue_type_script_lang_js,
|
|
83071
|
-
|
|
83072
|
-
|
|
83000
|
+
PuiFileUploadvue_type_template_id_21b09be5_render,
|
|
83001
|
+
PuiFileUploadvue_type_template_id_21b09be5_staticRenderFns,
|
|
83073
83002
|
false,
|
|
83074
83003
|
null,
|
|
83075
83004
|
null,
|
|
@@ -83565,8 +83494,8 @@ var PuiFiltervue_type_template_id_6f864da0_staticRenderFns = [];
|
|
|
83565
83494
|
|
|
83566
83495
|
// CONCATENATED MODULE: ./src/components/PuiFilter.vue?vue&type=template&id=6f864da0
|
|
83567
83496
|
|
|
83568
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFilterGroup.vue?vue&type=template&id=
|
|
83569
|
-
var
|
|
83497
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFilterGroup.vue?vue&type=template&id=651d948c
|
|
83498
|
+
var PuiFilterGroupvue_type_template_id_651d948c_render = function render() {
|
|
83570
83499
|
var _vm = this,
|
|
83571
83500
|
_c = _vm._self._c;
|
|
83572
83501
|
return _c('v-container', {
|
|
@@ -83677,7 +83606,7 @@ var PuiFilterGroupvue_type_template_id_25bd881e_scoped_true_render = function re
|
|
|
83677
83606
|
}
|
|
83678
83607
|
});
|
|
83679
83608
|
}), 1) : _vm._e(), _c('v-col', {
|
|
83680
|
-
staticClass: "elevation-0",
|
|
83609
|
+
staticClass: "elevation-0 btnGroupContainer",
|
|
83681
83610
|
class: _vm.isRootGroup && _vm.filterGroupModel.groups.length > 0 ? 'pa-0 pt-0' : 'pa-0 pt-3',
|
|
83682
83611
|
attrs: {
|
|
83683
83612
|
"cols": "12"
|
|
@@ -83711,9 +83640,9 @@ var PuiFilterGroupvue_type_template_id_25bd881e_scoped_true_render = function re
|
|
|
83711
83640
|
}
|
|
83712
83641
|
}, [_vm._v("fa fa-trash-alt")]), _c('span', [_vm._v(_vm._s(_vm.$t('removeGroup')))])], 1) : _vm._e()], 1)], 1);
|
|
83713
83642
|
};
|
|
83714
|
-
var
|
|
83643
|
+
var PuiFilterGroupvue_type_template_id_651d948c_staticRenderFns = [];
|
|
83715
83644
|
|
|
83716
|
-
// CONCATENATED MODULE: ./src/components/PuiFilterGroup.vue?vue&type=template&id=
|
|
83645
|
+
// CONCATENATED MODULE: ./src/components/PuiFilterGroup.vue?vue&type=template&id=651d948c
|
|
83717
83646
|
|
|
83718
83647
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.at.js
|
|
83719
83648
|
var es_array_at = __webpack_require__("33d1");
|
|
@@ -83724,8 +83653,8 @@ var es_array_splice = __webpack_require__("a434");
|
|
|
83724
83653
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.at-alternative.js
|
|
83725
83654
|
var es_string_at_alternative = __webpack_require__("ea98");
|
|
83726
83655
|
|
|
83727
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFilterRule.vue?vue&type=template&id=
|
|
83728
|
-
var
|
|
83656
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFilterRule.vue?vue&type=template&id=64327026
|
|
83657
|
+
var PuiFilterRulevue_type_template_id_64327026_render = function render() {
|
|
83729
83658
|
var _vm = this,
|
|
83730
83659
|
_c = _vm._self._c;
|
|
83731
83660
|
return _c('v-layout', {
|
|
@@ -84082,9 +84011,9 @@ var PuiFilterRulevue_type_template_id_ee2d529a_render = function render() {
|
|
|
84082
84011
|
}])
|
|
84083
84012
|
}, [_c('span', [_vm._v(_vm._s(_vm.$t('puidatatables.caseSensitive')))])])], 1)], 2)]], 2)], 1);
|
|
84084
84013
|
};
|
|
84085
|
-
var
|
|
84014
|
+
var PuiFilterRulevue_type_template_id_64327026_staticRenderFns = [];
|
|
84086
84015
|
|
|
84087
|
-
// CONCATENATED MODULE: ./src/components/PuiFilterRule.vue?vue&type=template&id=
|
|
84016
|
+
// CONCATENATED MODULE: ./src/components/PuiFilterRule.vue?vue&type=template&id=64327026
|
|
84088
84017
|
|
|
84089
84018
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.includes.js
|
|
84090
84019
|
var es_array_includes = __webpack_require__("caad");
|
|
@@ -84274,7 +84203,7 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
84274
84203
|
});
|
|
84275
84204
|
}
|
|
84276
84205
|
filterOperatorsSorted.sort(function (a, b) {
|
|
84277
|
-
return a.text
|
|
84206
|
+
return a.text.localeCompare(b.text);
|
|
84278
84207
|
});
|
|
84279
84208
|
|
|
84280
84209
|
// A la lista de operadores ordenados, si el modelo tiene filterColumnValues (lista de valores permitidos prefijada)
|
|
@@ -84456,7 +84385,7 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
84456
84385
|
var entries = Object.entries(this.filterColumnValues[colName]);
|
|
84457
84386
|
for (var index in entries) {
|
|
84458
84387
|
items.push({
|
|
84459
|
-
text: this.$
|
|
84388
|
+
text: this.$puiI18n.getTranslation(entries[index][0]),
|
|
84460
84389
|
value: entries[index][1]
|
|
84461
84390
|
});
|
|
84462
84391
|
}
|
|
@@ -84473,10 +84402,18 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
84473
84402
|
};
|
|
84474
84403
|
},
|
|
84475
84404
|
toggleTodaySelector: function toggleTodaySelector() {
|
|
84476
|
-
this.todaySelector == 'TODAY'
|
|
84405
|
+
if (this.todaySelector == 'TODAY') {
|
|
84406
|
+
this.todaySelector = 'NOW';
|
|
84407
|
+
} else {
|
|
84408
|
+
this.todaySelector = 'TODAY';
|
|
84409
|
+
}
|
|
84477
84410
|
},
|
|
84478
84411
|
todaySelectorTooltip: function todaySelectorTooltip() {
|
|
84479
|
-
|
|
84412
|
+
if (this.todaySelector == 'TODAY') {
|
|
84413
|
+
return this.$t('puidatatables.todaySelector.today');
|
|
84414
|
+
} else {
|
|
84415
|
+
return this.$t('puidatatables.todaySelector.now');
|
|
84416
|
+
}
|
|
84480
84417
|
},
|
|
84481
84418
|
onTodayOperatorValue2KeyDown: function onTodayOperatorValue2KeyDown(e) {
|
|
84482
84419
|
// prevent -, +, e
|
|
@@ -84488,22 +84425,18 @@ var es_array_sort = __webpack_require__("4e82");
|
|
|
84488
84425
|
});
|
|
84489
84426
|
// CONCATENATED MODULE: ./src/components/PuiFilterRule.vue?vue&type=script&lang=js
|
|
84490
84427
|
/* harmony default export */ var components_PuiFilterRulevue_type_script_lang_js = (PuiFilterRulevue_type_script_lang_js);
|
|
84491
|
-
// EXTERNAL MODULE: ./src/components/PuiFilterRule.vue?vue&type=style&index=0&id=ee2d529a&prod&lang=postcss
|
|
84492
|
-
var PuiFilterRulevue_type_style_index_0_id_ee2d529a_prod_lang_postcss = __webpack_require__("6704");
|
|
84493
|
-
|
|
84494
84428
|
// CONCATENATED MODULE: ./src/components/PuiFilterRule.vue
|
|
84495
84429
|
|
|
84496
84430
|
|
|
84497
84431
|
|
|
84498
84432
|
|
|
84499
84433
|
|
|
84500
|
-
|
|
84501
84434
|
/* normalize component */
|
|
84502
84435
|
|
|
84503
84436
|
var PuiFilterRule_component = normalizeComponent(
|
|
84504
84437
|
components_PuiFilterRulevue_type_script_lang_js,
|
|
84505
|
-
|
|
84506
|
-
|
|
84438
|
+
PuiFilterRulevue_type_template_id_64327026_render,
|
|
84439
|
+
PuiFilterRulevue_type_template_id_64327026_staticRenderFns,
|
|
84507
84440
|
false,
|
|
84508
84441
|
null,
|
|
84509
84442
|
null,
|
|
@@ -84580,9 +84513,15 @@ var PuiFilterRule_component = normalizeComponent(
|
|
|
84580
84513
|
filterGroupProp: function filterGroupProp() {
|
|
84581
84514
|
if (this.filterGroupProp) {
|
|
84582
84515
|
this.filterGroupModel = this.filterGroupProp;
|
|
84583
|
-
|
|
84584
|
-
|
|
84585
|
-
|
|
84516
|
+
if (!this.filterGroupModel.groupOp) {
|
|
84517
|
+
this.filterGroupModel.groupOp = 'and';
|
|
84518
|
+
}
|
|
84519
|
+
if (!this.filterGroupModel.groups) {
|
|
84520
|
+
this.filterGroupModel.groups = [];
|
|
84521
|
+
}
|
|
84522
|
+
if (!this.filterGroupModel.rules) {
|
|
84523
|
+
this.filterGroupModel.rules = [];
|
|
84524
|
+
}
|
|
84586
84525
|
}
|
|
84587
84526
|
},
|
|
84588
84527
|
filterGroupModel: {
|
|
@@ -84596,9 +84535,15 @@ var PuiFilterRule_component = normalizeComponent(
|
|
|
84596
84535
|
this.translateGroupOperators();
|
|
84597
84536
|
if (this.filterGroupProp) {
|
|
84598
84537
|
this.filterGroupModel = this.filterGroupProp;
|
|
84599
|
-
|
|
84600
|
-
|
|
84601
|
-
|
|
84538
|
+
if (!this.filterGroupModel.groupOp) {
|
|
84539
|
+
this.filterGroupModel.groupOp = 'and';
|
|
84540
|
+
}
|
|
84541
|
+
if (!this.filterGroupModel.groups) {
|
|
84542
|
+
this.filterGroupModel.groups = [];
|
|
84543
|
+
}
|
|
84544
|
+
if (!this.filterGroupModel.rules) {
|
|
84545
|
+
this.filterGroupModel.rules = [];
|
|
84546
|
+
}
|
|
84602
84547
|
}
|
|
84603
84548
|
},
|
|
84604
84549
|
mounted: function mounted() {
|
|
@@ -84633,7 +84578,6 @@ var PuiFilterRule_component = normalizeComponent(
|
|
|
84633
84578
|
}
|
|
84634
84579
|
},
|
|
84635
84580
|
onGroupRemoved: function onGroupRemoved(index) {
|
|
84636
|
-
//alert('soy el grupo ' + this.groupName + ` recibo el evento en el grupo ${this.groupName} con el indice ${index}`);
|
|
84637
84581
|
this.filterGroupModel.groups.splice(index, 1);
|
|
84638
84582
|
},
|
|
84639
84583
|
onFilterGroupChanges: function onFilterGroupChanges(index) {
|
|
@@ -84647,7 +84591,6 @@ var PuiFilterRule_component = normalizeComponent(
|
|
|
84647
84591
|
this.filterGroupModel.groups.at(-1).rules.push(PuiFilterRule.methods.getDefaultFilterRuleModel());
|
|
84648
84592
|
},
|
|
84649
84593
|
removeGroup: function removeGroup() {
|
|
84650
|
-
// alert('soy el grupo ' + this.groupName + ` mando el evento al grupo ${this.parentGroupName} con el indice ${this.groupIndexProp}`);
|
|
84651
84594
|
if (!this.isRootGroup) {
|
|
84652
84595
|
this.$puiEvents.$emit("groupRemoved-".concat(this.parentGroupName), this.groupIndexProp);
|
|
84653
84596
|
} else {
|
|
@@ -84671,25 +84614,21 @@ var PuiFilterRule_component = normalizeComponent(
|
|
|
84671
84614
|
});
|
|
84672
84615
|
// CONCATENATED MODULE: ./src/components/PuiFilterGroup.vue?vue&type=script&lang=js
|
|
84673
84616
|
/* harmony default export */ var components_PuiFilterGroupvue_type_script_lang_js = (PuiFilterGroupvue_type_script_lang_js);
|
|
84674
|
-
// EXTERNAL MODULE: ./src/components/PuiFilterGroup.vue?vue&type=style&index=0&id=25bd881e&prod&lang=postcss&scoped=true
|
|
84675
|
-
var PuiFilterGroupvue_type_style_index_0_id_25bd881e_prod_lang_postcss_scoped_true = __webpack_require__("d8f6");
|
|
84676
|
-
|
|
84677
84617
|
// CONCATENATED MODULE: ./src/components/PuiFilterGroup.vue
|
|
84678
84618
|
|
|
84679
84619
|
|
|
84680
84620
|
|
|
84681
84621
|
|
|
84682
84622
|
|
|
84683
|
-
|
|
84684
84623
|
/* normalize component */
|
|
84685
84624
|
|
|
84686
84625
|
var PuiFilterGroup_component = normalizeComponent(
|
|
84687
84626
|
components_PuiFilterGroupvue_type_script_lang_js,
|
|
84688
|
-
|
|
84689
|
-
|
|
84627
|
+
PuiFilterGroupvue_type_template_id_651d948c_render,
|
|
84628
|
+
PuiFilterGroupvue_type_template_id_651d948c_staticRenderFns,
|
|
84690
84629
|
false,
|
|
84691
84630
|
null,
|
|
84692
|
-
|
|
84631
|
+
null,
|
|
84693
84632
|
null
|
|
84694
84633
|
|
|
84695
84634
|
)
|
|
@@ -84904,11 +84843,11 @@ var es_array_flat = __webpack_require__("0481");
|
|
|
84904
84843
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.unscopables.flat.js
|
|
84905
84844
|
var es_array_unscopables_flat = __webpack_require__("4069");
|
|
84906
84845
|
|
|
84907
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiMultiSelect.vue?vue&type=template&id=
|
|
84846
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiMultiSelect.vue?vue&type=template&id=bc5c6de4
|
|
84908
84847
|
|
|
84909
84848
|
|
|
84910
84849
|
|
|
84911
|
-
var
|
|
84850
|
+
var PuiMultiSelectvue_type_template_id_bc5c6de4_render = function render() {
|
|
84912
84851
|
var _vm = this,
|
|
84913
84852
|
_c = _vm._self._c;
|
|
84914
84853
|
return _c('v-layout', {
|
|
@@ -85048,7 +84987,7 @@ var PuiMultiSelectvue_type_template_id_0d6adb69_scoped_true_render = function re
|
|
|
85048
84987
|
}
|
|
85049
84988
|
}
|
|
85050
84989
|
}, [_c('v-icon', [_vm._v("far fa-plus")])], 1), _vm.itemTooltip ? _c('v-tooltip', {
|
|
85051
|
-
staticClass: "overflow-y-hidden",
|
|
84990
|
+
staticClass: "overflow-y-hidden tooltipMultiSelect",
|
|
85052
84991
|
attrs: {
|
|
85053
84992
|
"max-width": "30%",
|
|
85054
84993
|
"max-height": "30%",
|
|
@@ -85293,9 +85232,9 @@ var PuiMultiSelectvue_type_template_id_0d6adb69_scoped_true_render = function re
|
|
|
85293
85232
|
}
|
|
85294
85233
|
}, [_vm._v(_vm._s(_vm.$t('pui9.components.multiSelect.empty')))])], 1)], 1)], 1)], 1)], 1);
|
|
85295
85234
|
};
|
|
85296
|
-
var
|
|
85235
|
+
var PuiMultiSelectvue_type_template_id_bc5c6de4_staticRenderFns = [];
|
|
85297
85236
|
|
|
85298
|
-
// CONCATENATED MODULE: ./src/components/PuiMultiSelect.vue?vue&type=template&id=
|
|
85237
|
+
// CONCATENATED MODULE: ./src/components/PuiMultiSelect.vue?vue&type=template&id=bc5c6de4
|
|
85299
85238
|
|
|
85300
85239
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
85301
85240
|
var es_string_includes = __webpack_require__("2532");
|
|
@@ -85303,8 +85242,8 @@ var es_string_includes = __webpack_require__("2532");
|
|
|
85303
85242
|
// EXTERNAL MODULE: ./node_modules/lodash/lodash.js
|
|
85304
85243
|
var lodash = __webpack_require__("2ef0");
|
|
85305
85244
|
|
|
85306
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiTextField.vue?vue&type=template&id=
|
|
85307
|
-
var
|
|
85245
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiTextField.vue?vue&type=template&id=38e27334
|
|
85246
|
+
var PuiTextFieldvue_type_template_id_38e27334_render = function render() {
|
|
85308
85247
|
var _vm = this,
|
|
85309
85248
|
_c = _vm._self._c;
|
|
85310
85249
|
return !_vm.isMobile ? _c('div', [_vm.toplabel || !_vm.hasLabel ? _c('div', {
|
|
@@ -85406,9 +85345,9 @@ var PuiTextFieldvue_type_template_id_3c3bcceb_render = function render() {
|
|
|
85406
85345
|
}
|
|
85407
85346
|
}, 'v-text-field', _vm.allProps, false), _vm.$listeners))], 1)], 1)], 1);
|
|
85408
85347
|
};
|
|
85409
|
-
var
|
|
85348
|
+
var PuiTextFieldvue_type_template_id_38e27334_staticRenderFns = [];
|
|
85410
85349
|
|
|
85411
|
-
// CONCATENATED MODULE: ./src/components/PuiTextField.vue?vue&type=template&id=
|
|
85350
|
+
// CONCATENATED MODULE: ./src/components/PuiTextField.vue?vue&type=template&id=38e27334
|
|
85412
85351
|
|
|
85413
85352
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.starts-with.js
|
|
85414
85353
|
var es_string_starts_with = __webpack_require__("2ca0");
|
|
@@ -85452,7 +85391,7 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85452
85391
|
placeholder: {
|
|
85453
85392
|
type: String,
|
|
85454
85393
|
required: false,
|
|
85455
|
-
default: '
|
|
85394
|
+
default: ''
|
|
85456
85395
|
},
|
|
85457
85396
|
noLazyModel: {
|
|
85458
85397
|
type: Boolean,
|
|
@@ -85549,7 +85488,7 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85549
85488
|
return true;
|
|
85550
85489
|
}
|
|
85551
85490
|
if (value.length > 0) {
|
|
85552
|
-
var pattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[
|
|
85491
|
+
var pattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
|
85553
85492
|
return pattern.test(value) || _this.$t('form.puialertconfiguration.emails_invalid');
|
|
85554
85493
|
}
|
|
85555
85494
|
return false;
|
|
@@ -85563,7 +85502,7 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85563
85502
|
}
|
|
85564
85503
|
value = value.toUpperCase();
|
|
85565
85504
|
if (value.length > 0) {
|
|
85566
|
-
var pattern = /^(\d{8})([A-Z]
|
|
85505
|
+
var pattern = /^(\d{8})([A-Z])$/;
|
|
85567
85506
|
var letters = "TRWAGMYFPDXBNJZSQVHLCKE";
|
|
85568
85507
|
if (pattern.test(value)) {
|
|
85569
85508
|
console.log("letters.charAt(value.substring(0, 8) % 23)", letters.charAt(value.substring(0, 8) % 23));
|
|
@@ -85588,7 +85527,7 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85588
85527
|
}
|
|
85589
85528
|
value = value.toUpperCase();
|
|
85590
85529
|
if (value.length > 0) {
|
|
85591
|
-
var pattern = /^([XYZ]
|
|
85530
|
+
var pattern = /^([XYZ])(\d{7})([A-Z])$/;
|
|
85592
85531
|
var letters = "TRWAGMYFPDXBNJZSQVHLCKE";
|
|
85593
85532
|
if (pattern.test(value)) {
|
|
85594
85533
|
if (value.startsWith('X')) {
|
|
@@ -85623,7 +85562,6 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85623
85562
|
}
|
|
85624
85563
|
var v1 = new Array(0, 2, 4, 6, 8, 1, 3, 5, 7, 9);
|
|
85625
85564
|
var temp = 0;
|
|
85626
|
-
var dc;
|
|
85627
85565
|
var i;
|
|
85628
85566
|
for (i = 2; i <= 6; i += 2) {
|
|
85629
85567
|
temp = temp + v1[parseInt(value.substr(i - 1, 1))];
|
|
@@ -85634,7 +85572,7 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85634
85572
|
if (temp == 10) {
|
|
85635
85573
|
temp = 0;
|
|
85636
85574
|
}
|
|
85637
|
-
dc = value.toUpperCase().charAt(8);
|
|
85575
|
+
var dc = value.toUpperCase().charAt(8);
|
|
85638
85576
|
if (dc == temp || temp == 1 && dc == 'A' || temp == 2 && dc == 'B' || temp == 3 && dc == 'C' || temp == 4 && dc == 'D' || temp == 5 && dc == 'E' || temp == 6 && dc == 'F' || temp == 7 && dc == 'G' || temp == 8 && dc == 'H' || temp == 9 && dc == 'I' || temp == 0 && dc == 'J') {
|
|
85639
85577
|
return true;
|
|
85640
85578
|
} else {
|
|
@@ -85650,7 +85588,7 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85650
85588
|
}
|
|
85651
85589
|
value = value.toUpperCase();
|
|
85652
85590
|
if (value.length > 0) {
|
|
85653
|
-
var pattern = /[A-Z]{3}
|
|
85591
|
+
var pattern = /[A-Z]{3}\d{6}/;
|
|
85654
85592
|
return pattern.test(value) || _this.$t('form.puialertconfiguration.passports_invalid');
|
|
85655
85593
|
}
|
|
85656
85594
|
return false;
|
|
@@ -85659,12 +85597,6 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85659
85597
|
}
|
|
85660
85598
|
return rules;
|
|
85661
85599
|
},
|
|
85662
|
-
compPlaceholder: function compPlaceholder() {
|
|
85663
|
-
if (this.placeholder && this.placeholder.length > 0) {
|
|
85664
|
-
return this.placeholder;
|
|
85665
|
-
}
|
|
85666
|
-
return ' ';
|
|
85667
|
-
},
|
|
85668
85600
|
showTooltip: function showTooltip() {
|
|
85669
85601
|
if (this.getLabel === '' || this.getLabel === null) {
|
|
85670
85602
|
return false;
|
|
@@ -85754,8 +85686,8 @@ var es_string_starts_with = __webpack_require__("2ca0");
|
|
|
85754
85686
|
|
|
85755
85687
|
var PuiTextField_component = normalizeComponent(
|
|
85756
85688
|
components_PuiTextFieldvue_type_script_lang_js,
|
|
85757
|
-
|
|
85758
|
-
|
|
85689
|
+
PuiTextFieldvue_type_template_id_38e27334_render,
|
|
85690
|
+
PuiTextFieldvue_type_template_id_38e27334_staticRenderFns,
|
|
85759
85691
|
false,
|
|
85760
85692
|
null,
|
|
85761
85693
|
null,
|
|
@@ -86053,8 +85985,8 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
|
|
|
86053
85985
|
this.selectedItems = [];
|
|
86054
85986
|
this.$emit('input', this.selectedItems);
|
|
86055
85987
|
},
|
|
86056
|
-
// due to drag and drop, if searchTextAvailableItems or searchTextSelectedItems have values,
|
|
86057
|
-
// the item selected by the user is not the real item so we need to disapply the operations manually
|
|
85988
|
+
// due to drag and drop, if searchTextAvailableItems or searchTextSelectedItems have values,
|
|
85989
|
+
// the item selected by the user is not the real item so we need to disapply the operations manually
|
|
86058
85990
|
// and apply them again transforming the indexes of the filtered items to the real items
|
|
86059
85991
|
onChangeAvailableItems: function onChangeAvailableItems(event) {
|
|
86060
85992
|
if (event.moved) {
|
|
@@ -86082,13 +86014,11 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
|
|
|
86082
86014
|
for (var index = 0, length = this.availableItems.length; index < length; index++) {
|
|
86083
86015
|
var availableItem = this.availableItems[index];
|
|
86084
86016
|
if (Object(lodash["isEqual"])(availableItem, _realItem)) {
|
|
86085
|
-
console.log('deleting', this.availableItems[index][this.itemValue]);
|
|
86086
86017
|
this.availableItems.splice(index, 1);
|
|
86087
86018
|
break;
|
|
86088
86019
|
}
|
|
86089
86020
|
}
|
|
86090
86021
|
// añadir el verdadero item a partir de la posición guardada previamente (added ejecuta antes que removed)
|
|
86091
|
-
console.log('newIndex', this.newIndex);
|
|
86092
86022
|
var _previousItem = this.filteredSelectedItems[this.newIndex - 1];
|
|
86093
86023
|
var _realNewIndex = this.selectedItems.indexOf(_previousItem) + 1;
|
|
86094
86024
|
this.selectedItems.splice(_realNewIndex, 0, _realItem);
|
|
@@ -86131,7 +86061,6 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
|
|
|
86131
86061
|
for (var index = 0, length = this.selectedItems.length; index < length; index++) {
|
|
86132
86062
|
var selectedItem = this.selectedItems[index];
|
|
86133
86063
|
if (Object(lodash["isEqual"])(selectedItem, _realItem2)) {
|
|
86134
|
-
console.log('deleting', this.selectedItems[index][this.itemValue]);
|
|
86135
86064
|
this.selectedItems.splice(index, 1);
|
|
86136
86065
|
break;
|
|
86137
86066
|
}
|
|
@@ -86167,32 +86096,28 @@ var vuedraggable_umd_default = /*#__PURE__*/__webpack_require__.n(vuedraggable_u
|
|
|
86167
86096
|
});
|
|
86168
86097
|
// CONCATENATED MODULE: ./src/components/PuiMultiSelect.vue?vue&type=script&lang=js
|
|
86169
86098
|
/* harmony default export */ var components_PuiMultiSelectvue_type_script_lang_js = (PuiMultiSelectvue_type_script_lang_js);
|
|
86170
|
-
// EXTERNAL MODULE: ./src/components/PuiMultiSelect.vue?vue&type=style&index=0&id=0d6adb69&prod&scoped=true&lang=css
|
|
86171
|
-
var PuiMultiSelectvue_type_style_index_0_id_0d6adb69_prod_scoped_true_lang_css = __webpack_require__("26cf");
|
|
86172
|
-
|
|
86173
86099
|
// CONCATENATED MODULE: ./src/components/PuiMultiSelect.vue
|
|
86174
86100
|
|
|
86175
86101
|
|
|
86176
86102
|
|
|
86177
86103
|
|
|
86178
86104
|
|
|
86179
|
-
|
|
86180
86105
|
/* normalize component */
|
|
86181
86106
|
|
|
86182
86107
|
var PuiMultiSelect_component = normalizeComponent(
|
|
86183
86108
|
components_PuiMultiSelectvue_type_script_lang_js,
|
|
86184
|
-
|
|
86185
|
-
|
|
86109
|
+
PuiMultiSelectvue_type_template_id_bc5c6de4_render,
|
|
86110
|
+
PuiMultiSelectvue_type_template_id_bc5c6de4_staticRenderFns,
|
|
86186
86111
|
false,
|
|
86187
86112
|
null,
|
|
86188
|
-
|
|
86113
|
+
null,
|
|
86189
86114
|
null
|
|
86190
86115
|
|
|
86191
86116
|
)
|
|
86192
86117
|
|
|
86193
86118
|
/* harmony default export */ var PuiMultiSelect = (PuiMultiSelect_component.exports);
|
|
86194
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiNumberField.vue?vue&type=template&id=
|
|
86195
|
-
var
|
|
86119
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiNumberField.vue?vue&type=template&id=9450f5ac
|
|
86120
|
+
var PuiNumberFieldvue_type_template_id_9450f5ac_render = function render() {
|
|
86196
86121
|
var _vm = this,
|
|
86197
86122
|
_c = _vm._self._c;
|
|
86198
86123
|
return !_vm.isMobile ? _c('div', [_vm.toplabel ? _c('div', {
|
|
@@ -86331,6 +86256,7 @@ var PuiNumberFieldvue_type_template_id_7ec58030_render = function render() {
|
|
|
86331
86256
|
ref: "puiNumberField",
|
|
86332
86257
|
class: _vm.getEditedClass,
|
|
86333
86258
|
attrs: {
|
|
86259
|
+
"required": _vm.required,
|
|
86334
86260
|
"placeholder": _vm.getPlaceholder,
|
|
86335
86261
|
"solo": "",
|
|
86336
86262
|
"outlined": "",
|
|
@@ -86359,6 +86285,7 @@ var PuiNumberFieldvue_type_template_id_7ec58030_render = function render() {
|
|
|
86359
86285
|
class: _vm.getEditedClass,
|
|
86360
86286
|
attrs: {
|
|
86361
86287
|
"id": "".concat(_vm.allProps.id, "_internal"),
|
|
86288
|
+
"required": _vm.required,
|
|
86362
86289
|
"placeholder": _vm.getPlaceholder,
|
|
86363
86290
|
"solo": "",
|
|
86364
86291
|
"outlined": "",
|
|
@@ -86458,9 +86385,9 @@ var PuiNumberFieldvue_type_template_id_7ec58030_render = function render() {
|
|
|
86458
86385
|
}
|
|
86459
86386
|
}, 'v-text-field', _vm.allProps, false))], 1)], 1)], 1);
|
|
86460
86387
|
};
|
|
86461
|
-
var
|
|
86388
|
+
var PuiNumberFieldvue_type_template_id_9450f5ac_staticRenderFns = [];
|
|
86462
86389
|
|
|
86463
|
-
// CONCATENATED MODULE: ./src/components/PuiNumberField.vue?vue&type=template&id=
|
|
86390
|
+
// CONCATENATED MODULE: ./src/components/PuiNumberField.vue?vue&type=template&id=9450f5ac
|
|
86464
86391
|
|
|
86465
86392
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.max-safe-integer.js
|
|
86466
86393
|
var es_number_max_safe_integer = __webpack_require__("aff5");
|
|
@@ -86538,21 +86465,6 @@ var es_string_replace_all = __webpack_require__("5b81");
|
|
|
86538
86465
|
var separator = this.getSeparator(localeCode, 'decimal');
|
|
86539
86466
|
var regexp = new RegExp("^[-]?(\\d*\\".concat(separator, ")?\\d+$"));
|
|
86540
86467
|
return regexp.test(value);
|
|
86541
|
-
},
|
|
86542
|
-
truncateDecimal: function truncateDecimal(number, decimals) {
|
|
86543
|
-
// Limit the number of decimal places to prevent floating point errors
|
|
86544
|
-
// a alguien le pareció bien la idea de poner por defecto 999 y hemos tumbado una máquina de AWS dividiendo Infinity's
|
|
86545
|
-
|
|
86546
|
-
if (decimals > 20) {
|
|
86547
|
-
decimals = 20;
|
|
86548
|
-
}
|
|
86549
|
-
var pow = Math.pow(10, decimals);
|
|
86550
|
-
var multiplied = number * pow;
|
|
86551
|
-
var rounded = Math.round(multiplied);
|
|
86552
|
-
var truncated = rounded / pow;
|
|
86553
|
-
return truncated;
|
|
86554
|
-
|
|
86555
|
-
// return Math.trunc(number * Math.pow(10, decimals)) / Math.pow(10, decimals);
|
|
86556
86468
|
}
|
|
86557
86469
|
}
|
|
86558
86470
|
});
|
|
@@ -86644,7 +86556,6 @@ var es_string_replace_all = __webpack_require__("5b81");
|
|
|
86644
86556
|
decimalSeparator: null,
|
|
86645
86557
|
visibleStringModel: null,
|
|
86646
86558
|
showVisibleStringModel: true,
|
|
86647
|
-
firstLoad: true,
|
|
86648
86559
|
valid: true
|
|
86649
86560
|
};
|
|
86650
86561
|
},
|
|
@@ -86773,13 +86684,11 @@ var es_string_replace_all = __webpack_require__("5b81");
|
|
|
86773
86684
|
this.checkValidations(value);
|
|
86774
86685
|
if (value === null || value === '') {
|
|
86775
86686
|
this.internalNumericModel = null;
|
|
86776
|
-
} else {
|
|
86777
|
-
if (
|
|
86778
|
-
|
|
86779
|
-
|
|
86780
|
-
|
|
86781
|
-
this.internalNumericModel = parseFloat(value);
|
|
86782
|
-
}
|
|
86687
|
+
} else if (!this.internalError) {
|
|
86688
|
+
if (this.integer) {
|
|
86689
|
+
this.internalNumericModel = parseInt(value);
|
|
86690
|
+
} else {
|
|
86691
|
+
this.internalNumericModel = parseFloat(value);
|
|
86783
86692
|
}
|
|
86784
86693
|
}
|
|
86785
86694
|
this.checkValidations(value);
|
|
@@ -86787,16 +86696,12 @@ var es_string_replace_all = __webpack_require__("5b81");
|
|
|
86787
86696
|
this.$emit('input', this.internalNumericModel);
|
|
86788
86697
|
},
|
|
86789
86698
|
checkValidations: function checkValidations(value) {
|
|
86790
|
-
// console.log(value);
|
|
86791
|
-
|
|
86792
86699
|
this.clearMessages();
|
|
86793
86700
|
value && this.numberTypeValidation(value);
|
|
86794
86701
|
value && this.minMaxValidation(value);
|
|
86795
86702
|
value && this.wrongNumberValidation(value);
|
|
86796
86703
|
value && this.decimalsValidation(value);
|
|
86797
86704
|
this.requiredFieldValidation(value);
|
|
86798
|
-
|
|
86799
|
-
// console.log('internalError ', this.internalError);
|
|
86800
86705
|
},
|
|
86801
86706
|
clearMessages: function clearMessages() {
|
|
86802
86707
|
this.internalError = false;
|
|
@@ -86876,8 +86781,8 @@ var es_string_replace_all = __webpack_require__("5b81");
|
|
|
86876
86781
|
|
|
86877
86782
|
var PuiNumberField_component = normalizeComponent(
|
|
86878
86783
|
components_PuiNumberFieldvue_type_script_lang_js,
|
|
86879
|
-
|
|
86880
|
-
|
|
86784
|
+
PuiNumberFieldvue_type_template_id_9450f5ac_render,
|
|
86785
|
+
PuiNumberFieldvue_type_template_id_9450f5ac_staticRenderFns,
|
|
86881
86786
|
false,
|
|
86882
86787
|
null,
|
|
86883
86788
|
null,
|
|
@@ -86886,8 +86791,8 @@ var PuiNumberField_component = normalizeComponent(
|
|
|
86886
86791
|
)
|
|
86887
86792
|
|
|
86888
86793
|
/* harmony default export */ var PuiNumberField = (PuiNumberField_component.exports);
|
|
86889
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiPasswordField.vue?vue&type=template&id=
|
|
86890
|
-
var
|
|
86794
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiPasswordField.vue?vue&type=template&id=4ce523ae
|
|
86795
|
+
var PuiPasswordFieldvue_type_template_id_4ce523ae_render = function render() {
|
|
86891
86796
|
var _vm = this,
|
|
86892
86797
|
_c = _vm._self._c;
|
|
86893
86798
|
return !_vm.isMobile ? _c('div', [_c('div', {
|
|
@@ -86961,9 +86866,9 @@ var PuiPasswordFieldvue_type_template_id_154b2a4c_render = function render() {
|
|
|
86961
86866
|
}
|
|
86962
86867
|
}, 'v-text-field', _vm.allProps, false))], 1)], 1)], 1);
|
|
86963
86868
|
};
|
|
86964
|
-
var
|
|
86869
|
+
var PuiPasswordFieldvue_type_template_id_4ce523ae_staticRenderFns = [];
|
|
86965
86870
|
|
|
86966
|
-
// CONCATENATED MODULE: ./src/components/PuiPasswordField.vue?vue&type=template&id=
|
|
86871
|
+
// CONCATENATED MODULE: ./src/components/PuiPasswordField.vue?vue&type=template&id=4ce523ae
|
|
86967
86872
|
|
|
86968
86873
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiPasswordField.vue?vue&type=script&lang=js
|
|
86969
86874
|
|
|
@@ -87014,7 +86919,7 @@ var PuiPasswordFieldvue_type_template_id_154b2a4c_staticRenderFns = [];
|
|
|
87014
86919
|
}
|
|
87015
86920
|
},
|
|
87016
86921
|
created: function created() {
|
|
87017
|
-
this.isMobile = this.$store.
|
|
86922
|
+
this.isMobile = this.$store.isMobile;
|
|
87018
86923
|
this.internalModel = this.value;
|
|
87019
86924
|
},
|
|
87020
86925
|
watch: {
|
|
@@ -87035,8 +86940,8 @@ var PuiPasswordFieldvue_type_template_id_154b2a4c_staticRenderFns = [];
|
|
|
87035
86940
|
|
|
87036
86941
|
var PuiPasswordField_component = normalizeComponent(
|
|
87037
86942
|
components_PuiPasswordFieldvue_type_script_lang_js,
|
|
87038
|
-
|
|
87039
|
-
|
|
86943
|
+
PuiPasswordFieldvue_type_template_id_4ce523ae_render,
|
|
86944
|
+
PuiPasswordFieldvue_type_template_id_4ce523ae_staticRenderFns,
|
|
87040
86945
|
false,
|
|
87041
86946
|
null,
|
|
87042
86947
|
null,
|
|
@@ -87045,8 +86950,8 @@ var PuiPasswordField_component = normalizeComponent(
|
|
|
87045
86950
|
)
|
|
87046
86951
|
|
|
87047
86952
|
/* harmony default export */ var PuiPasswordField = (PuiPasswordField_component.exports);
|
|
87048
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiRadioGroup.vue?vue&type=template&id=
|
|
87049
|
-
var
|
|
86953
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiRadioGroup.vue?vue&type=template&id=82de7b82
|
|
86954
|
+
var PuiRadioGroupvue_type_template_id_82de7b82_render = function render() {
|
|
87050
86955
|
var _vm = this,
|
|
87051
86956
|
_c = _vm._self._c;
|
|
87052
86957
|
return !_vm.isMobile ? _c('div', [_vm.toplabel ? _c('div', [_c('v-layout', [_c('v-flex', {
|
|
@@ -87127,9 +87032,9 @@ var PuiRadioGroupvue_type_template_id_445927ba_render = function render() {
|
|
|
87127
87032
|
});
|
|
87128
87033
|
}), 1)], 1);
|
|
87129
87034
|
};
|
|
87130
|
-
var
|
|
87035
|
+
var PuiRadioGroupvue_type_template_id_82de7b82_staticRenderFns = [];
|
|
87131
87036
|
|
|
87132
|
-
// CONCATENATED MODULE: ./src/components/PuiRadioGroup.vue?vue&type=template&id=
|
|
87037
|
+
// CONCATENATED MODULE: ./src/components/PuiRadioGroup.vue?vue&type=template&id=82de7b82
|
|
87133
87038
|
|
|
87134
87039
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiRadioGroup.vue?vue&type=script&lang=js
|
|
87135
87040
|
|
|
@@ -87239,8 +87144,8 @@ var PuiRadioGroupvue_type_template_id_445927ba_staticRenderFns = [];
|
|
|
87239
87144
|
|
|
87240
87145
|
var PuiRadioGroup_component = normalizeComponent(
|
|
87241
87146
|
components_PuiRadioGroupvue_type_script_lang_js,
|
|
87242
|
-
|
|
87243
|
-
|
|
87147
|
+
PuiRadioGroupvue_type_template_id_82de7b82_render,
|
|
87148
|
+
PuiRadioGroupvue_type_template_id_82de7b82_staticRenderFns,
|
|
87244
87149
|
false,
|
|
87245
87150
|
null,
|
|
87246
87151
|
null,
|
|
@@ -87249,8 +87154,8 @@ var PuiRadioGroup_component = normalizeComponent(
|
|
|
87249
87154
|
)
|
|
87250
87155
|
|
|
87251
87156
|
/* harmony default export */ var PuiRadioGroup = (PuiRadioGroup_component.exports);
|
|
87252
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiRichTextEditor.vue?vue&type=template&id=
|
|
87253
|
-
var
|
|
87157
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiRichTextEditor.vue?vue&type=template&id=05821bc5
|
|
87158
|
+
var PuiRichTextEditorvue_type_template_id_05821bc5_render = function render() {
|
|
87254
87159
|
var _vm = this,
|
|
87255
87160
|
_c = _vm._self._c;
|
|
87256
87161
|
return _c('div', {
|
|
@@ -87297,9 +87202,9 @@ var PuiRichTextEditorvue_type_template_id_c2faadfe_render = function render() {
|
|
|
87297
87202
|
staticClass: "richtexteditor-label-error"
|
|
87298
87203
|
}, [_vm._v(_vm._s(_vm.$t('pui9.error.field_required')))])])], 1);
|
|
87299
87204
|
};
|
|
87300
|
-
var
|
|
87205
|
+
var PuiRichTextEditorvue_type_template_id_05821bc5_staticRenderFns = [];
|
|
87301
87206
|
|
|
87302
|
-
// CONCATENATED MODULE: ./src/components/PuiRichTextEditor.vue?vue&type=template&id=
|
|
87207
|
+
// CONCATENATED MODULE: ./src/components/PuiRichTextEditor.vue?vue&type=template&id=05821bc5
|
|
87303
87208
|
|
|
87304
87209
|
// EXTERNAL MODULE: ./node_modules/jodit/build/jodit.min.js
|
|
87305
87210
|
var jodit_min = __webpack_require__("c447");
|
|
@@ -87424,8 +87329,8 @@ var build_jodit_min = __webpack_require__("425f");
|
|
|
87424
87329
|
|
|
87425
87330
|
var PuiRichTextEditor_component = normalizeComponent(
|
|
87426
87331
|
components_PuiRichTextEditorvue_type_script_lang_js,
|
|
87427
|
-
|
|
87428
|
-
|
|
87332
|
+
PuiRichTextEditorvue_type_template_id_05821bc5_render,
|
|
87333
|
+
PuiRichTextEditorvue_type_template_id_05821bc5_staticRenderFns,
|
|
87429
87334
|
false,
|
|
87430
87335
|
null,
|
|
87431
87336
|
null,
|
|
@@ -87434,8 +87339,8 @@ var PuiRichTextEditor_component = normalizeComponent(
|
|
|
87434
87339
|
)
|
|
87435
87340
|
|
|
87436
87341
|
/* harmony default export */ var PuiRichTextEditor = (PuiRichTextEditor_component.exports);
|
|
87437
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSpinnerField.vue?vue&type=template&id=
|
|
87438
|
-
var
|
|
87342
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSpinnerField.vue?vue&type=template&id=ef5277ae
|
|
87343
|
+
var PuiSpinnerFieldvue_type_template_id_ef5277ae_render = function render() {
|
|
87439
87344
|
var _vm = this,
|
|
87440
87345
|
_c = _vm._self._c;
|
|
87441
87346
|
return !_vm.isMobile ? _c('div', [_vm.toplabel ? _c('div', {
|
|
@@ -87629,9 +87534,9 @@ var PuiSpinnerFieldvue_type_template_id_60ca1f6e_render = function render() {
|
|
|
87629
87534
|
}
|
|
87630
87535
|
}, [_c('v-icon', [_vm._v("fal fa-plus")])], 1)], 1)], 1);
|
|
87631
87536
|
};
|
|
87632
|
-
var
|
|
87537
|
+
var PuiSpinnerFieldvue_type_template_id_ef5277ae_staticRenderFns = [];
|
|
87633
87538
|
|
|
87634
|
-
// CONCATENATED MODULE: ./src/components/PuiSpinnerField.vue?vue&type=template&id=
|
|
87539
|
+
// CONCATENATED MODULE: ./src/components/PuiSpinnerField.vue?vue&type=template&id=ef5277ae
|
|
87635
87540
|
|
|
87636
87541
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSpinnerField.vue?vue&type=script&lang=js
|
|
87637
87542
|
|
|
@@ -87974,8 +87879,8 @@ var PuiSpinnerFieldvue_type_template_id_60ca1f6e_staticRenderFns = [];
|
|
|
87974
87879
|
|
|
87975
87880
|
var PuiSpinnerField_component = normalizeComponent(
|
|
87976
87881
|
components_PuiSpinnerFieldvue_type_script_lang_js,
|
|
87977
|
-
|
|
87978
|
-
|
|
87882
|
+
PuiSpinnerFieldvue_type_template_id_ef5277ae_render,
|
|
87883
|
+
PuiSpinnerFieldvue_type_template_id_ef5277ae_staticRenderFns,
|
|
87979
87884
|
false,
|
|
87980
87885
|
null,
|
|
87981
87886
|
null,
|
|
@@ -87984,8 +87889,8 @@ var PuiSpinnerField_component = normalizeComponent(
|
|
|
87984
87889
|
)
|
|
87985
87890
|
|
|
87986
87891
|
/* harmony default export */ var PuiSpinnerField = (PuiSpinnerField_component.exports);
|
|
87987
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSwitch.vue?vue&type=template&id=
|
|
87988
|
-
var
|
|
87892
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSwitch.vue?vue&type=template&id=027a110c
|
|
87893
|
+
var PuiSwitchvue_type_template_id_027a110c_render = function render() {
|
|
87989
87894
|
var _vm = this,
|
|
87990
87895
|
_c = _vm._self._c;
|
|
87991
87896
|
return _c('v-switch', _vm._b({
|
|
@@ -88011,9 +87916,9 @@ var PuiSwitchvue_type_template_id_eb9e9794_render = function render() {
|
|
|
88011
87916
|
}
|
|
88012
87917
|
}, 'v-switch', _vm.allProps, false));
|
|
88013
87918
|
};
|
|
88014
|
-
var
|
|
87919
|
+
var PuiSwitchvue_type_template_id_027a110c_staticRenderFns = [];
|
|
88015
87920
|
|
|
88016
|
-
// CONCATENATED MODULE: ./src/components/PuiSwitch.vue?vue&type=template&id=
|
|
87921
|
+
// CONCATENATED MODULE: ./src/components/PuiSwitch.vue?vue&type=template&id=027a110c
|
|
88017
87922
|
|
|
88018
87923
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSwitch.vue?vue&type=script&lang=js
|
|
88019
87924
|
|
|
@@ -88125,8 +88030,8 @@ var PuiSwitchvue_type_template_id_eb9e9794_staticRenderFns = [];
|
|
|
88125
88030
|
|
|
88126
88031
|
var PuiSwitch_component = normalizeComponent(
|
|
88127
88032
|
components_PuiSwitchvue_type_script_lang_js,
|
|
88128
|
-
|
|
88129
|
-
|
|
88033
|
+
PuiSwitchvue_type_template_id_027a110c_render,
|
|
88034
|
+
PuiSwitchvue_type_template_id_027a110c_staticRenderFns,
|
|
88130
88035
|
false,
|
|
88131
88036
|
null,
|
|
88132
88037
|
null,
|
|
@@ -88135,8 +88040,8 @@ var PuiSwitch_component = normalizeComponent(
|
|
|
88135
88040
|
)
|
|
88136
88041
|
|
|
88137
88042
|
/* harmony default export */ var PuiSwitch = (PuiSwitch_component.exports);
|
|
88138
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiTextArea.vue?vue&type=template&id=
|
|
88139
|
-
var
|
|
88043
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiTextArea.vue?vue&type=template&id=3dd9c1ce
|
|
88044
|
+
var PuiTextAreavue_type_template_id_3dd9c1ce_render = function render() {
|
|
88140
88045
|
var _vm = this,
|
|
88141
88046
|
_c = _vm._self._c;
|
|
88142
88047
|
return !_vm.isMobile ? _c('div', [_vm.toplabel ? _c('div', {
|
|
@@ -88233,9 +88138,9 @@ var PuiTextAreavue_type_template_id_4f594ac6_render = function render() {
|
|
|
88233
88138
|
}
|
|
88234
88139
|
}, 'v-textarea', _vm.allProps, false))], 1)], 1)], 1);
|
|
88235
88140
|
};
|
|
88236
|
-
var
|
|
88141
|
+
var PuiTextAreavue_type_template_id_3dd9c1ce_staticRenderFns = [];
|
|
88237
88142
|
|
|
88238
|
-
// CONCATENATED MODULE: ./src/components/PuiTextArea.vue?vue&type=template&id=
|
|
88143
|
+
// CONCATENATED MODULE: ./src/components/PuiTextArea.vue?vue&type=template&id=3dd9c1ce
|
|
88239
88144
|
|
|
88240
88145
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiTextArea.vue?vue&type=script&lang=js
|
|
88241
88146
|
|
|
@@ -88388,8 +88293,8 @@ var PuiTextAreavue_type_template_id_4f594ac6_staticRenderFns = [];
|
|
|
88388
88293
|
|
|
88389
88294
|
var PuiTextArea_component = normalizeComponent(
|
|
88390
88295
|
components_PuiTextAreavue_type_script_lang_js,
|
|
88391
|
-
|
|
88392
|
-
|
|
88296
|
+
PuiTextAreavue_type_template_id_3dd9c1ce_render,
|
|
88297
|
+
PuiTextAreavue_type_template_id_3dd9c1ce_staticRenderFns,
|
|
88393
88298
|
false,
|
|
88394
88299
|
null,
|
|
88395
88300
|
null,
|
|
@@ -88398,8 +88303,8 @@ var PuiTextArea_component = normalizeComponent(
|
|
|
88398
88303
|
)
|
|
88399
88304
|
|
|
88400
88305
|
/* harmony default export */ var PuiTextArea = (PuiTextArea_component.exports);
|
|
88401
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormFooter.vue?vue&type=template&id=
|
|
88402
|
-
var
|
|
88306
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormFooter.vue?vue&type=template&id=4b770039
|
|
88307
|
+
var PuiFormFootervue_type_template_id_4b770039_render = function render() {
|
|
88403
88308
|
var _vm = this,
|
|
88404
88309
|
_c = _vm._self._c;
|
|
88405
88310
|
return !_vm.isMobile ? _c('div', {
|
|
@@ -88411,19 +88316,19 @@ var PuiFormFootervue_type_template_id_376fa034_render = function render() {
|
|
|
88411
88316
|
class: _vm.getComp
|
|
88412
88317
|
}, [_vm._t("default")], 2);
|
|
88413
88318
|
};
|
|
88414
|
-
var
|
|
88319
|
+
var PuiFormFootervue_type_template_id_4b770039_staticRenderFns = [];
|
|
88415
88320
|
|
|
88416
|
-
// CONCATENATED MODULE: ./src/components/PuiFormFooter.vue?vue&type=template&id=
|
|
88321
|
+
// CONCATENATED MODULE: ./src/components/PuiFormFooter.vue?vue&type=template&id=4b770039
|
|
88417
88322
|
|
|
88418
88323
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormFooter.vue?vue&type=script&lang=js
|
|
88419
88324
|
/* harmony default export */ var PuiFormFootervue_type_script_lang_js = ({
|
|
88420
88325
|
name: 'PuiFormFooter',
|
|
88421
88326
|
computed: {
|
|
88422
88327
|
isMobile: function isMobile() {
|
|
88423
|
-
return this.$store.
|
|
88328
|
+
return this.$store.isMobile;
|
|
88424
88329
|
},
|
|
88425
88330
|
menuConf: function menuConf() {
|
|
88426
|
-
return this.$store.
|
|
88331
|
+
return this.$store.getMenuConf;
|
|
88427
88332
|
},
|
|
88428
88333
|
getComp: function getComp() {
|
|
88429
88334
|
return {
|
|
@@ -88442,21 +88347,21 @@ var PuiFormFootervue_type_template_id_376fa034_staticRenderFns = [];
|
|
|
88442
88347
|
var _this$$refs;
|
|
88443
88348
|
var isFooterOnScreen = ((_this$$refs = _this.$refs) === null || _this$$refs === void 0 || (_this$$refs = _this$$refs.puiFormFooter) === null || _this$$refs === void 0 ? void 0 : _this$$refs.getBoundingClientRect().y) != 0;
|
|
88444
88349
|
timeWatching += intervalTimeCheck;
|
|
88445
|
-
if (timeWatching > 1000 || _this.$store.
|
|
88446
|
-
_this.$store.
|
|
88350
|
+
if (timeWatching > 1000 || _this.$store.form.showFooter != isFooterOnScreen) {
|
|
88351
|
+
_this.$store.puiFormShowFooter(isFooterOnScreen || false);
|
|
88447
88352
|
clearInterval(watchFooterInterval);
|
|
88448
88353
|
}
|
|
88449
88354
|
}, intervalTimeCheck);
|
|
88450
88355
|
}
|
|
88451
88356
|
},
|
|
88452
88357
|
mounted: function mounted() {
|
|
88453
|
-
this.$store.
|
|
88358
|
+
this.$store.puiFormShowFooter(true);
|
|
88454
88359
|
},
|
|
88455
88360
|
updated: function updated() {
|
|
88456
88361
|
this.checkFooterIsOnScreen();
|
|
88457
88362
|
},
|
|
88458
88363
|
destroyed: function destroyed() {
|
|
88459
|
-
this.$store.
|
|
88364
|
+
this.$store.puiFormShowFooter(false);
|
|
88460
88365
|
}
|
|
88461
88366
|
});
|
|
88462
88367
|
// CONCATENATED MODULE: ./src/components/PuiFormFooter.vue?vue&type=script&lang=js
|
|
@@ -88471,8 +88376,8 @@ var PuiFormFootervue_type_template_id_376fa034_staticRenderFns = [];
|
|
|
88471
88376
|
|
|
88472
88377
|
var PuiFormFooter_component = normalizeComponent(
|
|
88473
88378
|
components_PuiFormFootervue_type_script_lang_js,
|
|
88474
|
-
|
|
88475
|
-
|
|
88379
|
+
PuiFormFootervue_type_template_id_4b770039_render,
|
|
88380
|
+
PuiFormFootervue_type_template_id_4b770039_staticRenderFns,
|
|
88476
88381
|
false,
|
|
88477
88382
|
null,
|
|
88478
88383
|
null,
|
|
@@ -88481,8 +88386,8 @@ var PuiFormFooter_component = normalizeComponent(
|
|
|
88481
88386
|
)
|
|
88482
88387
|
|
|
88483
88388
|
/* harmony default export */ var PuiFormFooter = (PuiFormFooter_component.exports);
|
|
88484
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormFooterBtns.vue?vue&type=template&id=
|
|
88485
|
-
var
|
|
88389
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormFooterBtns.vue?vue&type=template&id=4c891afc
|
|
88390
|
+
var PuiFormFooterBtnsvue_type_template_id_4c891afc_render = function render() {
|
|
88486
88391
|
var _vm = this,
|
|
88487
88392
|
_c = _vm._self._c;
|
|
88488
88393
|
return !_vm.isMobile ? _c('v-layout', {
|
|
@@ -88629,9 +88534,9 @@ var PuiFormFooterBtnsvue_type_template_id_50c532c2_render = function render() {
|
|
|
88629
88534
|
}
|
|
88630
88535
|
}, [_c('v-icon', [_vm._v("far fa-save")])], 1) : _vm._e();
|
|
88631
88536
|
};
|
|
88632
|
-
var
|
|
88537
|
+
var PuiFormFooterBtnsvue_type_template_id_4c891afc_staticRenderFns = [];
|
|
88633
88538
|
|
|
88634
|
-
// CONCATENATED MODULE: ./src/components/PuiFormFooterBtns.vue?vue&type=template&id=
|
|
88539
|
+
// CONCATENATED MODULE: ./src/components/PuiFormFooterBtns.vue?vue&type=template&id=4c891afc
|
|
88635
88540
|
|
|
88636
88541
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormFooterBtns.vue?vue&type=script&lang=js
|
|
88637
88542
|
/* harmony default export */ var PuiFormFooterBtnsvue_type_script_lang_js = ({
|
|
@@ -88679,14 +88584,14 @@ var PuiFormFooterBtnsvue_type_template_id_50c532c2_staticRenderFns = [];
|
|
|
88679
88584
|
},
|
|
88680
88585
|
computed: {
|
|
88681
88586
|
enableSaveAndNew: function enableSaveAndNew() {
|
|
88682
|
-
return this.$store.
|
|
88587
|
+
return this.$store.form.showSaveAndNew && this.saveAndNew;
|
|
88683
88588
|
},
|
|
88684
88589
|
enableSaveAndUpdate: function enableSaveAndUpdate() {
|
|
88685
|
-
return this.$store.
|
|
88590
|
+
return this.$store.form.showSaveAndUpdate && this.saveAndUpdate;
|
|
88686
88591
|
}
|
|
88687
88592
|
},
|
|
88688
88593
|
created: function created() {
|
|
88689
|
-
this.isMobile = this.$store.
|
|
88594
|
+
this.isMobile = this.$store.isMobile;
|
|
88690
88595
|
}
|
|
88691
88596
|
});
|
|
88692
88597
|
// CONCATENATED MODULE: ./src/components/PuiFormFooterBtns.vue?vue&type=script&lang=js
|
|
@@ -88701,8 +88606,8 @@ var PuiFormFooterBtnsvue_type_template_id_50c532c2_staticRenderFns = [];
|
|
|
88701
88606
|
|
|
88702
88607
|
var PuiFormFooterBtns_component = normalizeComponent(
|
|
88703
88608
|
components_PuiFormFooterBtnsvue_type_script_lang_js,
|
|
88704
|
-
|
|
88705
|
-
|
|
88609
|
+
PuiFormFooterBtnsvue_type_template_id_4c891afc_render,
|
|
88610
|
+
PuiFormFooterBtnsvue_type_template_id_4c891afc_staticRenderFns,
|
|
88706
88611
|
false,
|
|
88707
88612
|
null,
|
|
88708
88613
|
null,
|
|
@@ -88711,8 +88616,8 @@ var PuiFormFooterBtns_component = normalizeComponent(
|
|
|
88711
88616
|
)
|
|
88712
88617
|
|
|
88713
88618
|
/* harmony default export */ var PuiFormFooterBtns = (PuiFormFooterBtns_component.exports);
|
|
88714
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormHeader.vue?vue&type=template&id=
|
|
88715
|
-
var
|
|
88619
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormHeader.vue?vue&type=template&id=36b7e468
|
|
88620
|
+
var PuiFormHeadervue_type_template_id_36b7e468_render = function render() {
|
|
88716
88621
|
var _vm = this,
|
|
88717
88622
|
_c = _vm._self._c;
|
|
88718
88623
|
return _vm.showHeader ? _c('v-layout', {
|
|
@@ -88724,9 +88629,9 @@ var PuiFormHeadervue_type_template_id_7a20d764_render = function render() {
|
|
|
88724
88629
|
}
|
|
88725
88630
|
}, [_vm._t("default")], 2)], 1) : _vm._e();
|
|
88726
88631
|
};
|
|
88727
|
-
var
|
|
88632
|
+
var PuiFormHeadervue_type_template_id_36b7e468_staticRenderFns = [];
|
|
88728
88633
|
|
|
88729
|
-
// CONCATENATED MODULE: ./src/components/PuiFormHeader.vue?vue&type=template&id=
|
|
88634
|
+
// CONCATENATED MODULE: ./src/components/PuiFormHeader.vue?vue&type=template&id=36b7e468
|
|
88730
88635
|
|
|
88731
88636
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormHeader.vue?vue&type=script&lang=js
|
|
88732
88637
|
/* harmony default export */ var PuiFormHeadervue_type_script_lang_js = ({
|
|
@@ -88743,7 +88648,7 @@ var PuiFormHeadervue_type_template_id_7a20d764_staticRenderFns = [];
|
|
|
88743
88648
|
}
|
|
88744
88649
|
},
|
|
88745
88650
|
created: function created() {
|
|
88746
|
-
this.isMobile = this.$store.
|
|
88651
|
+
this.isMobile = this.$store.isMobile;
|
|
88747
88652
|
}
|
|
88748
88653
|
});
|
|
88749
88654
|
// CONCATENATED MODULE: ./src/components/PuiFormHeader.vue?vue&type=script&lang=js
|
|
@@ -88758,8 +88663,8 @@ var PuiFormHeadervue_type_template_id_7a20d764_staticRenderFns = [];
|
|
|
88758
88663
|
|
|
88759
88664
|
var PuiFormHeader_component = normalizeComponent(
|
|
88760
88665
|
components_PuiFormHeadervue_type_script_lang_js,
|
|
88761
|
-
|
|
88762
|
-
|
|
88666
|
+
PuiFormHeadervue_type_template_id_36b7e468_render,
|
|
88667
|
+
PuiFormHeadervue_type_template_id_36b7e468_staticRenderFns,
|
|
88763
88668
|
false,
|
|
88764
88669
|
null,
|
|
88765
88670
|
null,
|
|
@@ -88816,8 +88721,8 @@ var PuiFormLoading_component = normalizeComponent(
|
|
|
88816
88721
|
)
|
|
88817
88722
|
|
|
88818
88723
|
/* harmony default export */ var PuiFormLoading = (PuiFormLoading_component.exports);
|
|
88819
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormMiniAudit.vue?vue&type=template&id=
|
|
88820
|
-
var
|
|
88724
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormMiniAudit.vue?vue&type=template&id=57b1b88d
|
|
88725
|
+
var PuiFormMiniAuditvue_type_template_id_57b1b88d_render = function render() {
|
|
88821
88726
|
var _vm = this,
|
|
88822
88727
|
_c = _vm._self._c;
|
|
88823
88728
|
return _c('v-layout', {
|
|
@@ -88829,15 +88734,15 @@ var PuiFormMiniAuditvue_type_template_id_1207bc70_render = function render() {
|
|
|
88829
88734
|
attrs: {
|
|
88830
88735
|
"xs12": ""
|
|
88831
88736
|
}
|
|
88832
|
-
}, [_c('label', [_vm._v(_vm._s(_vm.$t('form.miniaudit.created')))]), _c('label', [_vm._v(_vm._s(_vm
|
|
88737
|
+
}, [_c('label', [_vm._v(_vm._s(_vm.$t('form.miniaudit.created')) + _vm._s(_vm.getCreateUser()))]), _c('label', [_vm._v(_vm._s(_vm.$t('form.miniaudit.at')) + _vm._s(_vm.getCreateDate()))])]), _c('v-flex', {
|
|
88833
88738
|
attrs: {
|
|
88834
88739
|
"xs12": ""
|
|
88835
88740
|
}
|
|
88836
|
-
}, [_c('label', [_vm._v(_vm._s(_vm.$t('form.miniaudit.modified')))]), _c('label', [_vm._v(_vm._s(_vm
|
|
88741
|
+
}, [_c('label', [_vm._v(_vm._s(_vm.$t('form.miniaudit.modified')) + _vm._s(_vm.getUpdateUser()))]), _c('label', [_vm._v(_vm._s(_vm.$t('form.miniaudit.at')) + _vm._s(_vm.getUpdateDate()))])])], 1);
|
|
88837
88742
|
};
|
|
88838
|
-
var
|
|
88743
|
+
var PuiFormMiniAuditvue_type_template_id_57b1b88d_staticRenderFns = [];
|
|
88839
88744
|
|
|
88840
|
-
// CONCATENATED MODULE: ./src/components/PuiFormMiniAudit.vue?vue&type=template&id=
|
|
88745
|
+
// CONCATENATED MODULE: ./src/components/PuiFormMiniAudit.vue?vue&type=template&id=57b1b88d
|
|
88841
88746
|
|
|
88842
88747
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiFormMiniAudit.vue?vue&type=script&lang=js
|
|
88843
88748
|
|
|
@@ -88849,30 +88754,61 @@ var PuiFormMiniAuditvue_type_template_id_1207bc70_staticRenderFns = [];
|
|
|
88849
88754
|
model: {
|
|
88850
88755
|
type: Object,
|
|
88851
88756
|
required: true
|
|
88757
|
+
},
|
|
88758
|
+
createUser: {
|
|
88759
|
+
type: String,
|
|
88760
|
+
default: 'usralta'
|
|
88761
|
+
},
|
|
88762
|
+
createDate: {
|
|
88763
|
+
type: String,
|
|
88764
|
+
default: 'fecalta'
|
|
88765
|
+
},
|
|
88766
|
+
updateUser: {
|
|
88767
|
+
type: String,
|
|
88768
|
+
default: 'usrmodif'
|
|
88769
|
+
},
|
|
88770
|
+
updateDate: {
|
|
88771
|
+
type: String,
|
|
88772
|
+
default: 'fecmodif'
|
|
88852
88773
|
}
|
|
88853
88774
|
},
|
|
88854
88775
|
data: function data() {
|
|
88855
88776
|
return {
|
|
88856
|
-
internalValue: {}
|
|
88777
|
+
internalValue: {},
|
|
88778
|
+
dateFormat: this.$store.dateFormat,
|
|
88779
|
+
timeFormat: this.$store.timeFormat
|
|
88857
88780
|
};
|
|
88858
88781
|
},
|
|
88859
|
-
|
|
88860
|
-
|
|
88861
|
-
|
|
88862
|
-
|
|
88863
|
-
|
|
88864
|
-
|
|
88865
|
-
}
|
|
88866
|
-
if (this.model.fecalta !== null && this.model.fecalta !== undefined) {
|
|
88867
|
-
this.internalValue.fecalta = dateTimeUtils.getLocalFormattedDate(this.model.fecalta, "".concat(dateFormat, " ").concat(timeFormat));
|
|
88782
|
+
watch: {
|
|
88783
|
+
model: {
|
|
88784
|
+
handler: function handler(newValue) {
|
|
88785
|
+
this.internalValue = _objectSpread2({}, newValue);
|
|
88786
|
+
},
|
|
88787
|
+
deep: true
|
|
88868
88788
|
}
|
|
88869
88789
|
},
|
|
88790
|
+
created: function created() {
|
|
88791
|
+
this.internalValue = _objectSpread2({}, this.model);
|
|
88792
|
+
},
|
|
88870
88793
|
methods: {
|
|
88871
|
-
|
|
88872
|
-
|
|
88873
|
-
|
|
88874
|
-
|
|
88875
|
-
|
|
88794
|
+
getCreateUser: function getCreateUser() {
|
|
88795
|
+
return this.getValue(this.internalValue[this.createUser]);
|
|
88796
|
+
},
|
|
88797
|
+
getCreateDate: function getCreateDate() {
|
|
88798
|
+
var rawValue = this.internalValue[this.createDate];
|
|
88799
|
+
var formattedValue = dateTimeUtils.getLocalFormattedDate(rawValue, "".concat(this.dateFormat, " ").concat(this.timeFormat));
|
|
88800
|
+
return this.getValue(formattedValue);
|
|
88801
|
+
},
|
|
88802
|
+
getUpdateUser: function getUpdateUser() {
|
|
88803
|
+
return this.getValue(this.internalValue[this.updateUser]);
|
|
88804
|
+
},
|
|
88805
|
+
getUpdateDate: function getUpdateDate() {
|
|
88806
|
+
var rawValue = this.internalValue[this.updateDate];
|
|
88807
|
+
var formattedValue = dateTimeUtils.getLocalFormattedDate(rawValue, "".concat(this.dateFormat, " ").concat(this.timeFormat));
|
|
88808
|
+
return this.getValue(formattedValue);
|
|
88809
|
+
},
|
|
88810
|
+
getValue: function getValue(value) {
|
|
88811
|
+
return value ? value : '#####';
|
|
88876
88812
|
}
|
|
88877
88813
|
}
|
|
88878
88814
|
});
|
|
@@ -88888,8 +88824,8 @@ var PuiFormMiniAuditvue_type_template_id_1207bc70_staticRenderFns = [];
|
|
|
88888
88824
|
|
|
88889
88825
|
var PuiFormMiniAudit_component = normalizeComponent(
|
|
88890
88826
|
components_PuiFormMiniAuditvue_type_script_lang_js,
|
|
88891
|
-
|
|
88892
|
-
|
|
88827
|
+
PuiFormMiniAuditvue_type_template_id_57b1b88d_render,
|
|
88828
|
+
PuiFormMiniAuditvue_type_template_id_57b1b88d_staticRenderFns,
|
|
88893
88829
|
false,
|
|
88894
88830
|
null,
|
|
88895
88831
|
null,
|
|
@@ -88898,8 +88834,8 @@ var PuiFormMiniAudit_component = normalizeComponent(
|
|
|
88898
88834
|
)
|
|
88899
88835
|
|
|
88900
88836
|
/* harmony default export */ var PuiFormMiniAudit = (PuiFormMiniAudit_component.exports);
|
|
88901
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiMasterDetail.vue?vue&type=template&id=
|
|
88902
|
-
var
|
|
88837
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiMasterDetail.vue?vue&type=template&id=568d0c29
|
|
88838
|
+
var PuiMasterDetailvue_type_template_id_568d0c29_render = function render() {
|
|
88903
88839
|
var _vm = this,
|
|
88904
88840
|
_c = _vm._self._c;
|
|
88905
88841
|
return _c('div', {
|
|
@@ -88916,6 +88852,7 @@ var PuiMasterDetailvue_type_template_id_b5f08448_render = function render() {
|
|
|
88916
88852
|
"masterDetail": _vm.masterDetail,
|
|
88917
88853
|
"navigableDetail": _vm.navigableDetail,
|
|
88918
88854
|
"showCreateBtn": _vm.showCreateBtn,
|
|
88855
|
+
"showUpdateBtn": _vm.showUpdateBtn,
|
|
88919
88856
|
"showDeleteBtn": _vm.showDeleteBtn,
|
|
88920
88857
|
"showFilterListBtn": _vm.showFilterListBtn,
|
|
88921
88858
|
"showMasterDetailFilterListBtn": _vm.showMasterDetailFilterListBtn,
|
|
@@ -88925,9 +88862,9 @@ var PuiMasterDetailvue_type_template_id_b5f08448_render = function render() {
|
|
|
88925
88862
|
}
|
|
88926
88863
|
}) : _vm._e(), _c('br')], 1);
|
|
88927
88864
|
};
|
|
88928
|
-
var
|
|
88865
|
+
var PuiMasterDetailvue_type_template_id_568d0c29_staticRenderFns = [];
|
|
88929
88866
|
|
|
88930
|
-
// CONCATENATED MODULE: ./src/components/PuiMasterDetail.vue?vue&type=template&id=
|
|
88867
|
+
// CONCATENATED MODULE: ./src/components/PuiMasterDetail.vue?vue&type=template&id=568d0c29
|
|
88931
88868
|
|
|
88932
88869
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiMasterDetail.vue?vue&type=script&lang=js
|
|
88933
88870
|
/* harmony default export */ var PuiMasterDetailvue_type_script_lang_js = ({
|
|
@@ -88976,6 +88913,10 @@ var PuiMasterDetailvue_type_template_id_b5f08448_staticRenderFns = [];
|
|
|
88976
88913
|
type: Boolean,
|
|
88977
88914
|
default: true
|
|
88978
88915
|
},
|
|
88916
|
+
showUpdateBtn: {
|
|
88917
|
+
type: Boolean,
|
|
88918
|
+
default: true
|
|
88919
|
+
},
|
|
88979
88920
|
showDeleteBtn: {
|
|
88980
88921
|
type: Boolean,
|
|
88981
88922
|
default: true
|
|
@@ -89017,8 +88958,8 @@ var PuiMasterDetailvue_type_template_id_b5f08448_staticRenderFns = [];
|
|
|
89017
88958
|
|
|
89018
88959
|
var PuiMasterDetail_component = normalizeComponent(
|
|
89019
88960
|
components_PuiMasterDetailvue_type_script_lang_js,
|
|
89020
|
-
|
|
89021
|
-
|
|
88961
|
+
PuiMasterDetailvue_type_template_id_568d0c29_render,
|
|
88962
|
+
PuiMasterDetailvue_type_template_id_568d0c29_staticRenderFns,
|
|
89022
88963
|
false,
|
|
89023
88964
|
null,
|
|
89024
88965
|
null,
|
|
@@ -89181,8 +89122,8 @@ var PuiModalDialog_component = normalizeComponent(
|
|
|
89181
89122
|
)
|
|
89182
89123
|
|
|
89183
89124
|
/* harmony default export */ var PuiModalDialog = (PuiModalDialog_component.exports);
|
|
89184
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiModalDialogForm.vue?vue&type=template&id=
|
|
89185
|
-
var
|
|
89125
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiModalDialogForm.vue?vue&type=template&id=3c0258e6
|
|
89126
|
+
var PuiModalDialogFormvue_type_template_id_3c0258e6_render = function render() {
|
|
89186
89127
|
var _vm = this,
|
|
89187
89128
|
_c = _vm._self._c;
|
|
89188
89129
|
return _vm.showDialog ? _c('v-layout', {
|
|
@@ -89269,14 +89210,18 @@ var PuiModalDialogFormvue_type_template_id_64e7a4f2_render = function render() {
|
|
|
89269
89210
|
}
|
|
89270
89211
|
}, [_vm._v(_vm._s(_vm.buttonOk))]) : _vm._e()], 1)], 1)], 1)], 1)])], 1) : _vm._e();
|
|
89271
89212
|
};
|
|
89272
|
-
var
|
|
89213
|
+
var PuiModalDialogFormvue_type_template_id_3c0258e6_staticRenderFns = [];
|
|
89273
89214
|
|
|
89274
|
-
// CONCATENATED MODULE: ./src/components/PuiModalDialogForm.vue?vue&type=template&id=
|
|
89215
|
+
// CONCATENATED MODULE: ./src/components/PuiModalDialogForm.vue?vue&type=template&id=3c0258e6
|
|
89216
|
+
|
|
89217
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.has-own.js
|
|
89218
|
+
var es_object_has_own = __webpack_require__("0541");
|
|
89275
89219
|
|
|
89276
89220
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiModalDialogForm.vue?vue&type=script&lang=js
|
|
89277
89221
|
|
|
89278
89222
|
|
|
89279
89223
|
|
|
89224
|
+
|
|
89280
89225
|
/* harmony default export */ var PuiModalDialogFormvue_type_script_lang_js = ({
|
|
89281
89226
|
name: 'PuiModalDialogForm',
|
|
89282
89227
|
props: {
|
|
@@ -89417,7 +89362,7 @@ var PuiModalDialogFormvue_type_template_id_64e7a4f2_staticRenderFns = [];
|
|
|
89417
89362
|
// Clean posible oldData
|
|
89418
89363
|
_this2.modalData = {};
|
|
89419
89364
|
for (var key in data) {
|
|
89420
|
-
if (Object.
|
|
89365
|
+
if (Object.hasOwn(data, key)) {
|
|
89421
89366
|
// For make the container of the data reactive we use $set vue function
|
|
89422
89367
|
_this2.$set(_this2.modalData, key, data[key]);
|
|
89423
89368
|
}
|
|
@@ -89460,8 +89405,8 @@ var PuiModalDialogFormvue_type_template_id_64e7a4f2_staticRenderFns = [];
|
|
|
89460
89405
|
|
|
89461
89406
|
var PuiModalDialogForm_component = normalizeComponent(
|
|
89462
89407
|
components_PuiModalDialogFormvue_type_script_lang_js,
|
|
89463
|
-
|
|
89464
|
-
|
|
89408
|
+
PuiModalDialogFormvue_type_template_id_3c0258e6_render,
|
|
89409
|
+
PuiModalDialogFormvue_type_template_id_3c0258e6_staticRenderFns,
|
|
89465
89410
|
false,
|
|
89466
89411
|
null,
|
|
89467
89412
|
null,
|
|
@@ -89473,14 +89418,14 @@ var PuiModalDialogForm_component = normalizeComponent(
|
|
|
89473
89418
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.search.js
|
|
89474
89419
|
var es_string_search = __webpack_require__("841c");
|
|
89475
89420
|
|
|
89476
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSelect.vue?vue&type=template&id=
|
|
89421
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSelect.vue?vue&type=template&id=57a35849
|
|
89477
89422
|
|
|
89478
89423
|
|
|
89479
89424
|
|
|
89480
89425
|
|
|
89481
89426
|
|
|
89482
89427
|
|
|
89483
|
-
var
|
|
89428
|
+
var PuiSelectvue_type_template_id_57a35849_render = function render() {
|
|
89484
89429
|
var _vm = this,
|
|
89485
89430
|
_c = _vm._self._c;
|
|
89486
89431
|
return !_vm.isMobile ? _c('div', [_vm.toplabel ? _c('div', {
|
|
@@ -89513,7 +89458,9 @@ var PuiSelectvue_type_template_id_7352c664_render = function render() {
|
|
|
89513
89458
|
"x-small": ""
|
|
89514
89459
|
}
|
|
89515
89460
|
}, [_vm._v("far fa-copy")])], 1) : _vm._e()], 1)], 1), _c('v-layout', [_c('v-flex', {
|
|
89516
|
-
|
|
89461
|
+
attrs: {
|
|
89462
|
+
"xs12": ""
|
|
89463
|
+
}
|
|
89517
89464
|
}, [_c('v-autocomplete', _vm._b({
|
|
89518
89465
|
ref: "internalAutocomplete",
|
|
89519
89466
|
staticClass: "pui-select",
|
|
@@ -89656,45 +89603,17 @@ var PuiSelectvue_type_template_id_7352c664_render = function render() {
|
|
|
89656
89603
|
"slot": "no-results"
|
|
89657
89604
|
},
|
|
89658
89605
|
slot: "no-results"
|
|
89659
|
-
})])], 1) : _vm._e()], 2)], 1), _vm.
|
|
89660
|
-
|
|
89661
|
-
"xs1": ""
|
|
89662
|
-
}
|
|
89663
|
-
}, [_vm.prependInnerIconUpdate ? _c('v-btn', {
|
|
89664
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
89606
|
+
})])], 1) : _vm._e()], 2)], 1), _vm.detailComponentName && _vm.detailModelName && _vm.detailComponentPk ? _c('pui-detail-form-buttons', {
|
|
89607
|
+
ref: "detailForm",
|
|
89665
89608
|
attrs: {
|
|
89666
|
-
"
|
|
89667
|
-
|
|
89668
|
-
|
|
89669
|
-
"
|
|
89670
|
-
|
|
89671
|
-
|
|
89672
|
-
}
|
|
89673
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconUpdate))])], 1) : _vm.prependInnerIconRead ? _c('v-btn', {
|
|
89674
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
89675
|
-
attrs: {
|
|
89676
|
-
"icon": ""
|
|
89677
|
-
},
|
|
89678
|
-
on: {
|
|
89679
|
-
"click": function click($event) {
|
|
89680
|
-
return _vm.goToDetail('read');
|
|
89681
|
-
}
|
|
89682
|
-
}
|
|
89683
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconRead))])], 1) : _vm._e()], 1) : _vm._e(), _vm.prependInnerIconInsert ? _c('v-flex', {
|
|
89684
|
-
attrs: {
|
|
89685
|
-
"xs1": ""
|
|
89686
|
-
}
|
|
89687
|
-
}, [_vm.prependInnerIconInsert ? _c('v-btn', {
|
|
89688
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
89689
|
-
attrs: {
|
|
89690
|
-
"icon": ""
|
|
89691
|
-
},
|
|
89692
|
-
on: {
|
|
89693
|
-
"click": function click($event) {
|
|
89694
|
-
return _vm.goToDetail('create');
|
|
89695
|
-
}
|
|
89609
|
+
"parentId": _vm.puiSelectId,
|
|
89610
|
+
"detailComponentLabel": _vm.label,
|
|
89611
|
+
"detailComponentName": _vm.detailComponentName,
|
|
89612
|
+
"detailModelName": _vm.detailModelName,
|
|
89613
|
+
"detailComponentPk": _vm.detailComponentPk,
|
|
89614
|
+
"detailActions": _vm.detailActions
|
|
89696
89615
|
}
|
|
89697
|
-
}
|
|
89616
|
+
}) : _vm._e()], 1)], 1) : _c('div', {
|
|
89698
89617
|
staticClass: "ml-1 mr-1"
|
|
89699
89618
|
}, [_c('v-layout', [_c('v-flex', {
|
|
89700
89619
|
class: _vm.labelColumnStyles ? _vm.labelColumnStyles : 'xs12 sm6 md4 xl3'
|
|
@@ -89722,7 +89641,7 @@ var PuiSelectvue_type_template_id_7352c664_render = function render() {
|
|
|
89722
89641
|
"x-small": ""
|
|
89723
89642
|
}
|
|
89724
89643
|
}, [_vm._v("far fa-copy")])], 1) : _vm._e()], 1), _c('v-flex', {
|
|
89725
|
-
class: _vm.valueColumnStyles ? _vm.valueColumnStyles :
|
|
89644
|
+
class: _vm.valueColumnStyles ? _vm.valueColumnStyles : 'xs12 sm6 md8 xl9'
|
|
89726
89645
|
}, [_c('v-autocomplete', _vm._b({
|
|
89727
89646
|
ref: "internalAutocomplete",
|
|
89728
89647
|
staticClass: "pui-select",
|
|
@@ -89865,54 +89784,17 @@ var PuiSelectvue_type_template_id_7352c664_render = function render() {
|
|
|
89865
89784
|
"slot": "no-results"
|
|
89866
89785
|
},
|
|
89867
89786
|
slot: "no-results"
|
|
89868
|
-
})])], 1) : _vm._e()], 2)], 1), _vm.
|
|
89869
|
-
|
|
89870
|
-
"xs1": ""
|
|
89871
|
-
}
|
|
89872
|
-
}, [_vm.prependInnerIconUpdate ? _c('v-btn', {
|
|
89873
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
89874
|
-
attrs: {
|
|
89875
|
-
"icon": ""
|
|
89876
|
-
},
|
|
89877
|
-
on: {
|
|
89878
|
-
"click": function click($event) {
|
|
89879
|
-
return _vm.goToDetail('update');
|
|
89880
|
-
}
|
|
89881
|
-
}
|
|
89882
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconUpdate))])], 1) : _vm.prependInnerIconRead ? _c('v-btn', {
|
|
89883
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
89884
|
-
attrs: {
|
|
89885
|
-
"icon": ""
|
|
89886
|
-
},
|
|
89887
|
-
on: {
|
|
89888
|
-
"click": function click($event) {
|
|
89889
|
-
return _vm.goToDetail('read');
|
|
89890
|
-
}
|
|
89891
|
-
}
|
|
89892
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconRead))])], 1) : _vm._e()], 1) : _vm._e(), _vm.prependInnerIconInsert ? _c('v-flex', {
|
|
89893
|
-
attrs: {
|
|
89894
|
-
"xs1": ""
|
|
89895
|
-
}
|
|
89896
|
-
}, [_vm.prependInnerIconInsert ? _c('v-btn', {
|
|
89897
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
89898
|
-
attrs: {
|
|
89899
|
-
"icon": ""
|
|
89900
|
-
},
|
|
89901
|
-
on: {
|
|
89902
|
-
"click": function click($event) {
|
|
89903
|
-
return _vm.goToDetail('create');
|
|
89904
|
-
}
|
|
89905
|
-
}
|
|
89906
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconInsert))])], 1) : _vm._e()], 1) : _vm._e()], 1)], 1), _vm.showDetailComponent ? _c('pui-select-detail-dialog', {
|
|
89787
|
+
})])], 1) : _vm._e()], 2)], 1), _vm.detailComponentName && _vm.detailModelName && _vm.detailComponentPk ? _c('pui-detail-form-buttons', {
|
|
89788
|
+
ref: "detailForm",
|
|
89907
89789
|
attrs: {
|
|
89908
89790
|
"parentId": _vm.puiSelectId,
|
|
89909
|
-
"
|
|
89910
|
-
"
|
|
89911
|
-
"
|
|
89912
|
-
"
|
|
89913
|
-
"
|
|
89791
|
+
"detailComponentLabel": _vm.label,
|
|
89792
|
+
"detailComponentName": _vm.detailComponentName,
|
|
89793
|
+
"detailModelName": _vm.detailModelName,
|
|
89794
|
+
"detailComponentPk": _vm.detailComponentPk,
|
|
89795
|
+
"detailActions": _vm.detailActions
|
|
89914
89796
|
}
|
|
89915
|
-
}) : _vm._e()], 1) : _c('div', [_c('v-layout', [_c('v-flex', {
|
|
89797
|
+
}) : _vm._e()], 1)], 1)]) : _c('div', [_c('v-layout', [_c('v-flex', {
|
|
89916
89798
|
attrs: {
|
|
89917
89799
|
"xs12": ""
|
|
89918
89800
|
}
|
|
@@ -89920,7 +89802,9 @@ var PuiSelectvue_type_template_id_7352c664_render = function render() {
|
|
|
89920
89802
|
staticClass: "pui-select__label-mobile",
|
|
89921
89803
|
class: _vm.getLabelRequiredClass
|
|
89922
89804
|
}, [_vm._v(_vm._s(_vm.getLabel))])])], 1), _c('v-layout', [_c('v-flex', {
|
|
89923
|
-
|
|
89805
|
+
attrs: {
|
|
89806
|
+
"xs12": ""
|
|
89807
|
+
}
|
|
89924
89808
|
}, [_c('v-autocomplete', _vm._b({
|
|
89925
89809
|
ref: "internalAutocomplete",
|
|
89926
89810
|
staticClass: "pui-select",
|
|
@@ -90057,58 +89941,21 @@ var PuiSelectvue_type_template_id_7352c664_render = function render() {
|
|
|
90057
89941
|
"slot": "no-results"
|
|
90058
89942
|
},
|
|
90059
89943
|
slot: "no-results"
|
|
90060
|
-
})])], 1) : _vm._e()], 2)], 1), _vm.
|
|
90061
|
-
|
|
90062
|
-
"xs1": ""
|
|
90063
|
-
}
|
|
90064
|
-
}, [_vm.prependInnerIconUpdate ? _c('v-btn', {
|
|
90065
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
90066
|
-
attrs: {
|
|
90067
|
-
"icon": ""
|
|
90068
|
-
},
|
|
90069
|
-
on: {
|
|
90070
|
-
"click": function click($event) {
|
|
90071
|
-
return _vm.goToDetail('update');
|
|
90072
|
-
}
|
|
90073
|
-
}
|
|
90074
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconUpdate))])], 1) : _vm.prependInnerIconRead ? _c('v-btn', {
|
|
90075
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
90076
|
-
attrs: {
|
|
90077
|
-
"icon": ""
|
|
90078
|
-
},
|
|
90079
|
-
on: {
|
|
90080
|
-
"click": function click($event) {
|
|
90081
|
-
return _vm.goToDetail('read');
|
|
90082
|
-
}
|
|
90083
|
-
}
|
|
90084
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconRead))])], 1) : _vm._e()], 1) : _vm._e(), _vm.prependInnerIconInsert ? _c('v-flex', {
|
|
90085
|
-
attrs: {
|
|
90086
|
-
"xs1": ""
|
|
90087
|
-
}
|
|
90088
|
-
}, [_vm.prependInnerIconInsert ? _c('v-btn', {
|
|
90089
|
-
staticClass: "pui-select__prepend-inner-icon--desktop",
|
|
90090
|
-
attrs: {
|
|
90091
|
-
"icon": ""
|
|
90092
|
-
},
|
|
90093
|
-
on: {
|
|
90094
|
-
"click": function click($event) {
|
|
90095
|
-
return _vm.goToDetail('create');
|
|
90096
|
-
}
|
|
90097
|
-
}
|
|
90098
|
-
}, [_c('v-icon', [_vm._v(_vm._s(_vm.prependInnerIconInsert))])], 1) : _vm._e()], 1) : _vm._e()], 1), _vm.showDetailComponent ? _c('pui-select-detail-dialog', {
|
|
89944
|
+
})])], 1) : _vm._e()], 2)], 1), _vm.detailComponentName && _vm.detailModelName && _vm.detailComponentPk ? _c('pui-detail-form-buttons', {
|
|
89945
|
+
ref: "detailForm",
|
|
90099
89946
|
attrs: {
|
|
90100
89947
|
"parentId": _vm.puiSelectId,
|
|
90101
|
-
"
|
|
90102
|
-
"
|
|
90103
|
-
"
|
|
90104
|
-
"
|
|
90105
|
-
"
|
|
89948
|
+
"detailComponentLabel": _vm.label,
|
|
89949
|
+
"detailComponentName": _vm.detailComponentName,
|
|
89950
|
+
"detailModelName": _vm.detailModelName,
|
|
89951
|
+
"detailComponentPk": _vm.detailComponentPk,
|
|
89952
|
+
"detailActions": _vm.detailActions
|
|
90106
89953
|
}
|
|
90107
|
-
}) : _vm._e()], 1);
|
|
89954
|
+
}) : _vm._e()], 1)], 1);
|
|
90108
89955
|
};
|
|
90109
|
-
var
|
|
89956
|
+
var PuiSelectvue_type_template_id_57a35849_staticRenderFns = [];
|
|
90110
89957
|
|
|
90111
|
-
// CONCATENATED MODULE: ./src/components/PuiSelect.vue?vue&type=template&id=
|
|
89958
|
+
// CONCATENATED MODULE: ./src/components/PuiSelect.vue?vue&type=template&id=57a35849
|
|
90112
89959
|
|
|
90113
89960
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
90114
89961
|
var es_array_map = __webpack_require__("d81d");
|
|
@@ -90128,147 +89975,6 @@ var esnext_iterator_map = __webpack_require__("a573");
|
|
|
90128
89975
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.some.js
|
|
90129
89976
|
var esnext_iterator_some = __webpack_require__("9a9a");
|
|
90130
89977
|
|
|
90131
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSelectDetailDialog.vue?vue&type=template&id=78f14e56
|
|
90132
|
-
var PuiSelectDetailDialogvue_type_template_id_78f14e56_render = function render() {
|
|
90133
|
-
var _vm = this,
|
|
90134
|
-
_c = _vm._self._c;
|
|
90135
|
-
return _c('pui-modal-dialog', {
|
|
90136
|
-
ref: "modalForm",
|
|
90137
|
-
attrs: {
|
|
90138
|
-
"titleText": _vm.titleText,
|
|
90139
|
-
"messageText": _vm.messageText,
|
|
90140
|
-
"okText": _vm.okText,
|
|
90141
|
-
"cancelText": _vm.cancelText,
|
|
90142
|
-
"widthDialog": _vm.widthDialog,
|
|
90143
|
-
"dialogName": _vm.dialogName
|
|
90144
|
-
}
|
|
90145
|
-
}, [_c('template', {
|
|
90146
|
-
slot: "message"
|
|
90147
|
-
}, [_c(_vm.componentName, {
|
|
90148
|
-
tag: "component",
|
|
90149
|
-
attrs: {
|
|
90150
|
-
"pk": _vm.componentPk,
|
|
90151
|
-
"method": _vm.componentMethod,
|
|
90152
|
-
"isModalDialog": ""
|
|
90153
|
-
}
|
|
90154
|
-
})], 1)], 2);
|
|
90155
|
-
};
|
|
90156
|
-
var PuiSelectDetailDialogvue_type_template_id_78f14e56_staticRenderFns = [];
|
|
90157
|
-
|
|
90158
|
-
// CONCATENATED MODULE: ./src/components/PuiSelectDetailDialog.vue?vue&type=template&id=78f14e56
|
|
90159
|
-
|
|
90160
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiSelectDetailDialog.vue?vue&type=script&lang=js
|
|
90161
|
-
/* harmony default export */ var PuiSelectDetailDialogvue_type_script_lang_js = ({
|
|
90162
|
-
name: 'PuiSelectDetailDialog',
|
|
90163
|
-
props: {
|
|
90164
|
-
parentId: {
|
|
90165
|
-
type: String,
|
|
90166
|
-
required: true
|
|
90167
|
-
},
|
|
90168
|
-
componentLabel: {
|
|
90169
|
-
type: String,
|
|
90170
|
-
required: true
|
|
90171
|
-
},
|
|
90172
|
-
componentName: {
|
|
90173
|
-
type: String,
|
|
90174
|
-
required: true
|
|
90175
|
-
},
|
|
90176
|
-
componentPk: {
|
|
90177
|
-
type: String,
|
|
90178
|
-
required: true
|
|
90179
|
-
},
|
|
90180
|
-
componentMethod: {
|
|
90181
|
-
type: String,
|
|
90182
|
-
required: true
|
|
90183
|
-
},
|
|
90184
|
-
modelName: {
|
|
90185
|
-
type: String,
|
|
90186
|
-
default: null,
|
|
90187
|
-
required: false
|
|
90188
|
-
}
|
|
90189
|
-
},
|
|
90190
|
-
data: function data() {
|
|
90191
|
-
return {
|
|
90192
|
-
titleText: this.componentLabel,
|
|
90193
|
-
messageText: '',
|
|
90194
|
-
okText: this.componentMethod !== 'read' ? this.$t('form.save') : this.$t('form.ok'),
|
|
90195
|
-
cancelText: this.componentMethod !== 'read' ? this.$t('form.cancel') : null,
|
|
90196
|
-
widthDialog: window.innerWidth * 0.9,
|
|
90197
|
-
dialogName: this.componentName + '_' + this.parentId + '_popup'
|
|
90198
|
-
};
|
|
90199
|
-
},
|
|
90200
|
-
mounted: function mounted() {
|
|
90201
|
-
var _this = this;
|
|
90202
|
-
var self = this;
|
|
90203
|
-
this.$puiEvents.$on("pui-modalDialog-".concat(this.dialogName, "-ok"), function () {
|
|
90204
|
-
if (self.componentMethod === 'read') {
|
|
90205
|
-
_this.$puiEvents.$emit("pui-modalDialog-".concat(self.dialogName, "-hide"));
|
|
90206
|
-
} else {
|
|
90207
|
-
var form = self.getFormComponent(self.$refs.modalForm.$children[0]);
|
|
90208
|
-
if (form) {
|
|
90209
|
-
form.save(true);
|
|
90210
|
-
_this.$puiEvents.$on("onPui-insertRow-dataTable-".concat(self.modelName), function (data) {
|
|
90211
|
-
_this.$puiEvents.$emit("pui-modalDialog-".concat(self.dialogName, "-hide"), data);
|
|
90212
|
-
});
|
|
90213
|
-
_this.$puiEvents.$on("onPui-editRow-dataTable-".concat(self.modelName), function (data) {
|
|
90214
|
-
_this.$puiEvents.$emit("pui-modalDialog-".concat(self.dialogName, "-hide"), data);
|
|
90215
|
-
});
|
|
90216
|
-
} else {
|
|
90217
|
-
_this.$puiEvents.$emit("pui-modalDialog-".concat(self.dialogName, "-hide"));
|
|
90218
|
-
}
|
|
90219
|
-
}
|
|
90220
|
-
});
|
|
90221
|
-
this.$puiEvents.$on("pui-modalDialog-".concat(this.dialogName, "-cancel"), function () {
|
|
90222
|
-
_this.$puiEvents.$emit("pui-modalDialog-".concat(self.dialogName, "-hide"));
|
|
90223
|
-
});
|
|
90224
|
-
},
|
|
90225
|
-
destroyed: function destroyed() {
|
|
90226
|
-
this.$puiEvents.$off("pui-modalDialog-".concat(this.dialogName, "-ok"));
|
|
90227
|
-
this.$puiEvents.$off("pui-modalDialog-".concat(this.dialogName, "-cancel"));
|
|
90228
|
-
if (this.modelName) {
|
|
90229
|
-
this.$puiEvents.$off("onPui-insertRow-dataTable-".concat(this.modelName));
|
|
90230
|
-
this.$puiEvents.$off("onPui-editRow-dataTable-".concat(this.modelName));
|
|
90231
|
-
}
|
|
90232
|
-
},
|
|
90233
|
-
methods: {
|
|
90234
|
-
getFormComponent: function getFormComponent(component) {
|
|
90235
|
-
if (!component) {
|
|
90236
|
-
return null;
|
|
90237
|
-
}
|
|
90238
|
-
if (component.$options && (component.$options._componentTag === "".concat(this.modelName, "form") || component.$options._componentTag === "".concat(this.modelName, "-form"))) {
|
|
90239
|
-
return component;
|
|
90240
|
-
}
|
|
90241
|
-
for (var i = 0, childrenLength = component.$children.length; i < childrenLength; i++) {
|
|
90242
|
-
var child = this.getFormComponent(component.$children[i]);
|
|
90243
|
-
if (child && child.$options && (child.$options._componentTag === "".concat(this.modelName, "form") || child.$options._componentTag === "".concat(this.modelName, "-form"))) {
|
|
90244
|
-
return child;
|
|
90245
|
-
}
|
|
90246
|
-
}
|
|
90247
|
-
}
|
|
90248
|
-
}
|
|
90249
|
-
});
|
|
90250
|
-
// CONCATENATED MODULE: ./src/components/PuiSelectDetailDialog.vue?vue&type=script&lang=js
|
|
90251
|
-
/* harmony default export */ var components_PuiSelectDetailDialogvue_type_script_lang_js = (PuiSelectDetailDialogvue_type_script_lang_js);
|
|
90252
|
-
// CONCATENATED MODULE: ./src/components/PuiSelectDetailDialog.vue
|
|
90253
|
-
|
|
90254
|
-
|
|
90255
|
-
|
|
90256
|
-
|
|
90257
|
-
|
|
90258
|
-
/* normalize component */
|
|
90259
|
-
|
|
90260
|
-
var PuiSelectDetailDialog_component = normalizeComponent(
|
|
90261
|
-
components_PuiSelectDetailDialogvue_type_script_lang_js,
|
|
90262
|
-
PuiSelectDetailDialogvue_type_template_id_78f14e56_render,
|
|
90263
|
-
PuiSelectDetailDialogvue_type_template_id_78f14e56_staticRenderFns,
|
|
90264
|
-
false,
|
|
90265
|
-
null,
|
|
90266
|
-
null,
|
|
90267
|
-
null
|
|
90268
|
-
|
|
90269
|
-
)
|
|
90270
|
-
|
|
90271
|
-
/* harmony default export */ var PuiSelectDetailDialog = (PuiSelectDetailDialog_component.exports);
|
|
90272
89978
|
// EXTERNAL MODULE: ./node_modules/vue-infinite-loading/dist/vue-infinite-loading.js
|
|
90273
89979
|
var vue_infinite_loading = __webpack_require__("e166");
|
|
90274
89980
|
var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infinite_loading);
|
|
@@ -90311,8 +90017,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90311
90017
|
},
|
|
90312
90018
|
components: {
|
|
90313
90019
|
PuiSelectTextService: PuiSelectTextService,
|
|
90314
|
-
|
|
90315
|
-
'infinite-loading': vue_infinite_loading_default.a
|
|
90020
|
+
InfiniteLoading: vue_infinite_loading_default.a
|
|
90316
90021
|
},
|
|
90317
90022
|
/* Properties provided by the pui-select */
|
|
90318
90023
|
props: {
|
|
@@ -90596,7 +90301,6 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90596
90301
|
initialValue: null,
|
|
90597
90302
|
selectedItems: null,
|
|
90598
90303
|
page: 0,
|
|
90599
|
-
showDetailComponent: false,
|
|
90600
90304
|
newDisabled: undefined,
|
|
90601
90305
|
hasBeenFocused: false,
|
|
90602
90306
|
itemTextMultiple: false,
|
|
@@ -90614,11 +90318,12 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90614
90318
|
doingThings: false,
|
|
90615
90319
|
itemManuallySelected: false,
|
|
90616
90320
|
itemProgrammaticallySelected: false,
|
|
90617
|
-
firstLoad: true,
|
|
90618
90321
|
requestDataPromise: undefined,
|
|
90619
90322
|
selectedItemsEventFirstLoad: true,
|
|
90620
90323
|
internalQueryFields: [],
|
|
90621
90324
|
singleItemAutoselectEnabled: false,
|
|
90325
|
+
detailComponentPk: null,
|
|
90326
|
+
firstLoad: true,
|
|
90622
90327
|
valid: true
|
|
90623
90328
|
};
|
|
90624
90329
|
},
|
|
@@ -90631,7 +90336,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90631
90336
|
});
|
|
90632
90337
|
},
|
|
90633
90338
|
theModel: function theModel() {
|
|
90634
|
-
return this.$store.
|
|
90339
|
+
return this.$store.getModelByName(this.modelName);
|
|
90635
90340
|
},
|
|
90636
90341
|
internalController: function internalController() {
|
|
90637
90342
|
return this.controller; // || this.theModel.url.list;
|
|
@@ -90655,10 +90360,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90655
90360
|
return this.disabled;
|
|
90656
90361
|
},
|
|
90657
90362
|
filterServerSide: function filterServerSide() {
|
|
90658
|
-
|
|
90659
|
-
return false;
|
|
90660
|
-
}
|
|
90661
|
-
return true;
|
|
90363
|
+
return !this.items;
|
|
90662
90364
|
},
|
|
90663
90365
|
getLabel: function getLabel() {
|
|
90664
90366
|
return this.label;
|
|
@@ -90683,41 +90385,6 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90683
90385
|
}
|
|
90684
90386
|
return this.placeholder;
|
|
90685
90387
|
},
|
|
90686
|
-
prependInnerIconRead: function prependInnerIconRead() {
|
|
90687
|
-
if (this.detailModelName && this.detailComponentName && this.detailActions.read) {
|
|
90688
|
-
var model = this.$store.getters.getModelByName(this.detailModelName);
|
|
90689
|
-
if (model && model.functionalities) {
|
|
90690
|
-
if (this.$store.getters.hasFunctionality(model.functionalities.get)) {
|
|
90691
|
-
return 'far fa-info-circle';
|
|
90692
|
-
}
|
|
90693
|
-
}
|
|
90694
|
-
}
|
|
90695
|
-
return null;
|
|
90696
|
-
},
|
|
90697
|
-
prependInnerIconUpdate: function prependInnerIconUpdate() {
|
|
90698
|
-
if (this.detailModelName && !this.disabled && this.detailActions.update) {
|
|
90699
|
-
var model = this.$store.getters.getModelByName(this.detailModelName);
|
|
90700
|
-
if (model && model.functionalities) {
|
|
90701
|
-
// eslint-disable-next-line
|
|
90702
|
-
if (this.$store.getters.hasFunctionality(model.functionalities.update)) {
|
|
90703
|
-
return 'far fa-edit';
|
|
90704
|
-
}
|
|
90705
|
-
}
|
|
90706
|
-
}
|
|
90707
|
-
return null;
|
|
90708
|
-
},
|
|
90709
|
-
prependInnerIconInsert: function prependInnerIconInsert() {
|
|
90710
|
-
if (this.detailModelName && !this.disabled && this.detailActions.create) {
|
|
90711
|
-
var model = this.$store.getters.getModelByName(this.detailModelName);
|
|
90712
|
-
if (model && model.functionalities) {
|
|
90713
|
-
// eslint-disable-next-line
|
|
90714
|
-
if (this.$store.getters.hasFunctionality(model.functionalities.insert)) {
|
|
90715
|
-
return 'far fa-plus-circle';
|
|
90716
|
-
}
|
|
90717
|
-
}
|
|
90718
|
-
}
|
|
90719
|
-
return null;
|
|
90720
|
-
},
|
|
90721
90388
|
getRules: function getRules() {
|
|
90722
90389
|
return _toConsumableArray(this.rules);
|
|
90723
90390
|
},
|
|
@@ -90738,7 +90405,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90738
90405
|
return this.tooltipDescription || this.tooltip;
|
|
90739
90406
|
},
|
|
90740
90407
|
copyClipboardEnabled: function copyClipboardEnabled() {
|
|
90741
|
-
return this.copyClipboard != null ? this.copyClipboard : this.$store.
|
|
90408
|
+
return this.copyClipboard != null ? this.copyClipboard : this.$store.components.copyClipboardSelect;
|
|
90742
90409
|
}
|
|
90743
90410
|
},
|
|
90744
90411
|
watch: {
|
|
@@ -90791,6 +90458,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90791
90458
|
this.getItems();
|
|
90792
90459
|
},
|
|
90793
90460
|
selectedItems: function selectedItems(newVal) {
|
|
90461
|
+
var _this = this;
|
|
90794
90462
|
if (this.reactive) {
|
|
90795
90463
|
if (this.firstLoad) {
|
|
90796
90464
|
this.firstLoad = false;
|
|
@@ -90801,6 +90469,9 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90801
90469
|
}
|
|
90802
90470
|
}
|
|
90803
90471
|
this.clearMessages();
|
|
90472
|
+
if (this.multiple && !Array.isArray(newVal)) {
|
|
90473
|
+
newVal = newVal ? [newVal] : [];
|
|
90474
|
+
}
|
|
90804
90475
|
if (this.modelFormMapping) {
|
|
90805
90476
|
this.$emit('input', this.replaceMapping());
|
|
90806
90477
|
} else {
|
|
@@ -90818,6 +90489,21 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90818
90489
|
// Need for browser to recalculate correctly getBoundingClientSelectPosition
|
|
90819
90490
|
document.getElementById(this.puiSelectId).click();
|
|
90820
90491
|
}
|
|
90492
|
+
|
|
90493
|
+
// detailComponentPk
|
|
90494
|
+
if (!this.hasEmptyValue(newVal)) {
|
|
90495
|
+
var detailPk = {};
|
|
90496
|
+
var itemValues = this.itemValue;
|
|
90497
|
+
if (this.itemValueMultiple === false) {
|
|
90498
|
+
itemValues = [this.itemValue];
|
|
90499
|
+
}
|
|
90500
|
+
itemValues.forEach(function (pkProperty) {
|
|
90501
|
+
if (!_this.hasEmptyValue(newVal[pkProperty])) {
|
|
90502
|
+
detailPk[pkProperty] = newVal[pkProperty];
|
|
90503
|
+
}
|
|
90504
|
+
});
|
|
90505
|
+
this.detailComponentPk = this.$puiUtils.utf8ToB64(JSON.stringify(detailPk));
|
|
90506
|
+
}
|
|
90821
90507
|
},
|
|
90822
90508
|
disabled: function disabled(newVal) {
|
|
90823
90509
|
this.newDisabled = newVal;
|
|
@@ -90825,28 +90511,6 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90825
90511
|
this.clearMessages();
|
|
90826
90512
|
}
|
|
90827
90513
|
},
|
|
90828
|
-
detailComponentName: function detailComponentName(newValue, oldValue) {
|
|
90829
|
-
var _this = this;
|
|
90830
|
-
if (!this.hasEmptyValue(oldValue)) {
|
|
90831
|
-
this.$puiEvents.$off("pui-modalDialog-".concat(oldValue, "_").concat(this.puiSelectId, "_popup-hide"));
|
|
90832
|
-
}
|
|
90833
|
-
if (!this.hasEmptyValue(newValue)) {
|
|
90834
|
-
var self = this;
|
|
90835
|
-
this.$puiEvents.$on("pui-modalDialog-".concat(newValue, "_").concat(this.puiSelectId, "_popup-hide"), function (data) {
|
|
90836
|
-
self.showDetailComponent = false;
|
|
90837
|
-
if (data) {
|
|
90838
|
-
var newItem = {};
|
|
90839
|
-
var itemValues = _this.itemValue;
|
|
90840
|
-
itemValues.forEach(function (pkValue) {
|
|
90841
|
-
newItem[pkValue] = data[pkValue];
|
|
90842
|
-
});
|
|
90843
|
-
self.itemsToSelect[0] = newItem;
|
|
90844
|
-
self.onPuiSelectItemsToSelect = [newItem];
|
|
90845
|
-
self.getSelectedItemsFromPuiList();
|
|
90846
|
-
}
|
|
90847
|
-
});
|
|
90848
|
-
}
|
|
90849
|
-
},
|
|
90850
90514
|
theItems: function theItems() {
|
|
90851
90515
|
if (this.singleItemAutoselectEnabled && this.theItems.length == 1) {
|
|
90852
90516
|
this.selectedItems = this.theItems[0];
|
|
@@ -90858,7 +90522,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90858
90522
|
// v-form injected
|
|
90859
90523
|
this.form && this.form.register(this);
|
|
90860
90524
|
this.puiSelectId = this.$attrs.id;
|
|
90861
|
-
this.isMobile = this.$store.
|
|
90525
|
+
this.isMobile = this.$store.isMobile;
|
|
90862
90526
|
|
|
90863
90527
|
//TODO poner itemValues como un array si viene de string, para unificar simplificar donde haya comprobaciones itemValuesMultiple
|
|
90864
90528
|
this.itemsToSelect && this.itemsToSelect.forEach(function (item) {
|
|
@@ -90886,30 +90550,18 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90886
90550
|
_this2.onPuiSelectItemsToSelect = [newVal];
|
|
90887
90551
|
_this2.getSelectedItemsFromPuiList();
|
|
90888
90552
|
});
|
|
90889
|
-
|
|
90890
|
-
|
|
90891
|
-
|
|
90892
|
-
|
|
90893
|
-
|
|
90894
|
-
|
|
90895
|
-
self.showDetailComponent = false;
|
|
90896
|
-
if (data) {
|
|
90897
|
-
var newItem = {};
|
|
90898
|
-
var itemValues = _this3.itemValue;
|
|
90899
|
-
itemValues.forEach(function (pkValue) {
|
|
90900
|
-
newItem[pkValue] = data[pkValue];
|
|
90901
|
-
});
|
|
90902
|
-
self.itemsToSelect[0] = newItem;
|
|
90903
|
-
self.onPuiSelectItemsToSelect = [newItem];
|
|
90904
|
-
self.getSelectedItemsFromPuiList();
|
|
90905
|
-
}
|
|
90906
|
-
});
|
|
90907
|
-
}
|
|
90553
|
+
this.$puiEvents.$on("onPui-insertRow-dataTable-".concat(this.detailModelName), function (data) {
|
|
90554
|
+
_this2.setSelectedItemAfterDetailComponentUpdate(data);
|
|
90555
|
+
});
|
|
90556
|
+
this.$puiEvents.$on("onPui-editRow-dataTable-".concat(this.detailModelName), function (data) {
|
|
90557
|
+
_this2.setSelectedItemAfterDetailComponentUpdate(data);
|
|
90558
|
+
});
|
|
90908
90559
|
},
|
|
90909
90560
|
beforeDestroy: function beforeDestroy() {
|
|
90910
90561
|
// Unsubscribe events
|
|
90911
90562
|
this.$puiEvents.$off("onPuiSelect_".concat(this.puiSelectId));
|
|
90912
|
-
this.$puiEvents.$off("
|
|
90563
|
+
this.$puiEvents.$off("onPui-insertRow-dataTable-".concat(this.modelName, "_").concat(this.puiSelectId, "_modal"));
|
|
90564
|
+
this.$puiEvents.$off("onPui-editRow-dataTable-".concat(this.modelName, "_").concat(this.puiSelectId, "_modal"));
|
|
90913
90565
|
},
|
|
90914
90566
|
methods: {
|
|
90915
90567
|
checkForNestedFields: function checkForNestedFields(stringField) {
|
|
@@ -90938,11 +90590,6 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90938
90590
|
},
|
|
90939
90591
|
selectItems: function selectItems() {
|
|
90940
90592
|
this.selectedItems = this.multiple ? [] : null;
|
|
90941
|
-
if (this.multiple === true) {
|
|
90942
|
-
this.selectedItems = [];
|
|
90943
|
-
}
|
|
90944
|
-
|
|
90945
|
-
// only for multiselect
|
|
90946
90593
|
if (this.hasEmptyValue(this.itemsToSelect)) {
|
|
90947
90594
|
return;
|
|
90948
90595
|
}
|
|
@@ -90954,7 +90601,10 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90954
90601
|
this.selected = true;
|
|
90955
90602
|
},
|
|
90956
90603
|
getSelectedItemsFromPuiList: function getSelectedItemsFromPuiList() {
|
|
90957
|
-
var
|
|
90604
|
+
var _this3 = this;
|
|
90605
|
+
if (!this.modelName) {
|
|
90606
|
+
return;
|
|
90607
|
+
}
|
|
90958
90608
|
var filter = this.getFilterRequest();
|
|
90959
90609
|
if (this.hasEmptyValue(filter.rules) && this.hasEmptyValue(filter.groups)) {
|
|
90960
90610
|
if (this.firstLoad) this.firstLoad = false;
|
|
@@ -90971,27 +90621,27 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
90971
90621
|
}
|
|
90972
90622
|
var itemsToSelectOldValue = JSON.stringify(this.itemsToSelect);
|
|
90973
90623
|
var promise = new Promise(function (resolve) {
|
|
90974
|
-
|
|
90624
|
+
_this3.$puiRequests.postRequest(_this3.internalController, data, function (response) {
|
|
90975
90625
|
if (response && response.data) {
|
|
90976
|
-
if (
|
|
90977
|
-
var itemsToSelectHaveValue =
|
|
90626
|
+
if (_this3.multiple === false) {
|
|
90627
|
+
var itemsToSelectHaveValue = _this3.haveItemsToSelectValue();
|
|
90978
90628
|
if (itemsToSelectHaveValue) {
|
|
90979
|
-
var itemsToSelectNewValue = JSON.stringify(
|
|
90980
|
-
if (itemsToSelectNewValue != itemsToSelectOldValue &&
|
|
90981
|
-
|
|
90982
|
-
|
|
90629
|
+
var itemsToSelectNewValue = JSON.stringify(_this3.itemsToSelect);
|
|
90630
|
+
if (itemsToSelectNewValue != itemsToSelectOldValue && _this3.firstLoad) {
|
|
90631
|
+
_this3.theItems = response.data.data;
|
|
90632
|
+
_this3.selectItem(_this3.itemsToSelect);
|
|
90983
90633
|
} else {
|
|
90984
|
-
|
|
90634
|
+
_this3.selectedItems = response.data.data[0];
|
|
90985
90635
|
}
|
|
90986
90636
|
} else {
|
|
90987
|
-
|
|
90637
|
+
_this3.selectedItems = _this3.multiple ? [] : null;
|
|
90988
90638
|
}
|
|
90989
90639
|
} else {
|
|
90990
|
-
|
|
90640
|
+
_this3.selectedItems = response.data.data;
|
|
90991
90641
|
}
|
|
90992
|
-
|
|
90642
|
+
_this3.checkSelectedItems();
|
|
90993
90643
|
resolve(response.data.data);
|
|
90994
|
-
if (
|
|
90644
|
+
if (_this3.firstLoad) _this3.firstLoad = false;
|
|
90995
90645
|
}
|
|
90996
90646
|
});
|
|
90997
90647
|
});
|
|
@@ -91000,12 +90650,12 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91000
90650
|
}
|
|
91001
90651
|
},
|
|
91002
90652
|
haveItemsToSelectValue: function haveItemsToSelectValue() {
|
|
91003
|
-
var
|
|
90653
|
+
var _this4 = this;
|
|
91004
90654
|
var itemValues = this.itemValueMultiple === false ? [this.itemValue] : this.itemValue;
|
|
91005
90655
|
var itemsToSelectHasValue = true;
|
|
91006
90656
|
this.itemsToSelect.forEach(function (item) {
|
|
91007
90657
|
itemValues.forEach(function (pkProperty) {
|
|
91008
|
-
if (item &&
|
|
90658
|
+
if (item && _this4.hasEmptyValue(item[pkProperty])) {
|
|
91009
90659
|
itemsToSelectHasValue = false;
|
|
91010
90660
|
}
|
|
91011
90661
|
});
|
|
@@ -91014,7 +90664,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91014
90664
|
itemsToSelectHasValue = true;
|
|
91015
90665
|
this.onPuiSelectItemsToSelect.forEach(function (item) {
|
|
91016
90666
|
itemValues.forEach(function (pkProperty) {
|
|
91017
|
-
if (
|
|
90667
|
+
if (_this4.hasEmptyValue(item[pkProperty])) {
|
|
91018
90668
|
itemsToSelectHasValue = false;
|
|
91019
90669
|
}
|
|
91020
90670
|
});
|
|
@@ -91040,7 +90690,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91040
90690
|
* cargará los primeros a theItems y después seleccionará
|
|
91041
90691
|
**/
|
|
91042
90692
|
checkSelectedItems: function checkSelectedItems() {
|
|
91043
|
-
var
|
|
90693
|
+
var _this5 = this;
|
|
91044
90694
|
if (this.modelName) {
|
|
91045
90695
|
if (this.multiple === false) {
|
|
91046
90696
|
// si es la selección inicial y itemsToSelect no esta en theItems, por tanto no se ha seleccionado
|
|
@@ -91048,22 +90698,18 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91048
90698
|
this.selectedItems = this.itemsToSelect[0];
|
|
91049
90699
|
}
|
|
91050
90700
|
this.selectedItems && this.theItems.unshift(this.selectedItems);
|
|
91051
|
-
} else {
|
|
90701
|
+
} else if (this.selected === true) {
|
|
91052
90702
|
// si no es la selección inicial, viene de una selección por un getItems de una búsqueda, ya no utilizamos itemsToSelect
|
|
91053
|
-
|
|
91054
|
-
|
|
91055
|
-
|
|
91056
|
-
|
|
91057
|
-
|
|
91058
|
-
|
|
91059
|
-
|
|
91060
|
-
|
|
91061
|
-
|
|
91062
|
-
|
|
91063
|
-
_this6.selectedItems.push(item);
|
|
91064
|
-
});
|
|
91065
|
-
}
|
|
91066
|
-
}
|
|
90703
|
+
this.selectedItems.forEach(function (item) {
|
|
90704
|
+
_this5.theItems.unshift(item);
|
|
90705
|
+
});
|
|
90706
|
+
} else if (this.selectedItems.length < this.itemsToSelect.length) {
|
|
90707
|
+
// si es la selección inicial
|
|
90708
|
+
this.selectedItems = [];
|
|
90709
|
+
this.itemsToSelect.forEach(function (item) {
|
|
90710
|
+
_this5.theItems.unshift(item);
|
|
90711
|
+
_this5.selectedItems.push(item);
|
|
90712
|
+
});
|
|
91067
90713
|
}
|
|
91068
90714
|
}
|
|
91069
90715
|
},
|
|
@@ -91116,52 +90762,52 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91116
90762
|
}
|
|
91117
90763
|
},
|
|
91118
90764
|
replaceMapping: function replaceMapping() {
|
|
91119
|
-
var
|
|
90765
|
+
var _this6 = this;
|
|
91120
90766
|
var itemValues = this.itemValue;
|
|
91121
90767
|
if (this.itemValueMultiple === false) {
|
|
91122
90768
|
itemValues = [this.itemValue];
|
|
91123
90769
|
}
|
|
91124
90770
|
if (this.multiple !== true) {
|
|
91125
90771
|
itemValues.forEach(function (pkValue) {
|
|
91126
|
-
if (
|
|
91127
|
-
if (
|
|
90772
|
+
if (_this6.hasEmptyValue(_this6.selectedItems)) {
|
|
90773
|
+
if (_this6.filterId && _this6.filterMap) {
|
|
91128
90774
|
var isParentPkValue = false;
|
|
91129
|
-
for (var property in
|
|
90775
|
+
for (var property in _this6.filterMap) {
|
|
91130
90776
|
if (property === pkValue) {
|
|
91131
90777
|
isParentPkValue = true;
|
|
91132
90778
|
break;
|
|
91133
90779
|
}
|
|
91134
90780
|
}
|
|
91135
90781
|
if (!isParentPkValue) {
|
|
91136
|
-
|
|
90782
|
+
_this6.value[_this6.modelFormMapping[pkValue]] = null;
|
|
91137
90783
|
}
|
|
91138
90784
|
} else {
|
|
91139
|
-
|
|
90785
|
+
_this6.value[_this6.modelFormMapping[pkValue]] = null;
|
|
91140
90786
|
}
|
|
91141
90787
|
return;
|
|
91142
90788
|
}
|
|
91143
|
-
|
|
91144
|
-
for (var _property in
|
|
91145
|
-
if (pkValue === _property && !Object.
|
|
91146
|
-
|
|
90789
|
+
_this6.value[_this6.modelFormMapping[pkValue]] = _this6.selectedItems[pkValue];
|
|
90790
|
+
for (var _property in _this6.selectedItems) {
|
|
90791
|
+
if (pkValue === _property && !Object.hasOwn(_this6.value, _property)) {
|
|
90792
|
+
_this6.value[_property] = _this6.selectedItems[_property];
|
|
91147
90793
|
}
|
|
91148
90794
|
}
|
|
91149
|
-
if (
|
|
91150
|
-
var oldMapNull = Object.values(
|
|
90795
|
+
if (_this6.filterId && _this6.filterMap) {
|
|
90796
|
+
var oldMapNull = Object.values(_this6.filterMap).some(function (e) {
|
|
91151
90797
|
return e === null;
|
|
91152
90798
|
});
|
|
91153
|
-
if (oldMapNull && !
|
|
91154
|
-
|
|
90799
|
+
if (oldMapNull && !_this6.firstLoad || !_this6.selectedItemsEventFirstLoad) {
|
|
90800
|
+
_this6.sendDataToParent();
|
|
91155
90801
|
}
|
|
91156
90802
|
}
|
|
91157
90803
|
});
|
|
91158
90804
|
} else {
|
|
91159
90805
|
this.selectedItems.forEach(function (item, index) {
|
|
91160
90806
|
itemValues.forEach(function (pkValue) {
|
|
91161
|
-
|
|
91162
|
-
for (var property in
|
|
91163
|
-
if (pkValue === property && !Object.
|
|
91164
|
-
|
|
90807
|
+
_this6.value[index][_this6.modelFormMapping[pkValue]] = item[pkValue];
|
|
90808
|
+
for (var property in _this6.selectedItems[index]) {
|
|
90809
|
+
if (pkValue === property && !Object.hasOwn(_this6.value[index], property)) {
|
|
90810
|
+
_this6.value[index][property] = _this6.selectedItems[index][property];
|
|
91165
90811
|
}
|
|
91166
90812
|
}
|
|
91167
90813
|
});
|
|
@@ -91175,7 +90821,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91175
90821
|
return this.valid;
|
|
91176
90822
|
},
|
|
91177
90823
|
setSingleItemAutoselectEnabled: function setSingleItemAutoselectEnabled() {
|
|
91178
|
-
if (this.singleItemAutoselect || this.$store.
|
|
90824
|
+
if (this.singleItemAutoselect || this.$store.global.singleItemAutoselectOnRequired && this.required) {
|
|
91179
90825
|
this.singleItemAutoselectEnabled = true;
|
|
91180
90826
|
}
|
|
91181
90827
|
},
|
|
@@ -91195,10 +90841,10 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91195
90841
|
this.setDropDownDirection();
|
|
91196
90842
|
},
|
|
91197
90843
|
setDropDownDirection: function setDropDownDirection() {
|
|
91198
|
-
var
|
|
90844
|
+
var _this7 = this;
|
|
91199
90845
|
if (this.$refs.internalAutocomplete && this.attach) {
|
|
91200
90846
|
setTimeout(function () {
|
|
91201
|
-
var puiSelect =
|
|
90847
|
+
var puiSelect = _this7.$refs.internalAutocomplete.$el;
|
|
91202
90848
|
var puiSelectPositions = puiSelect.getBoundingClientRect();
|
|
91203
90849
|
var heightBrowser = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
|
|
91204
90850
|
var screenAvailableForDropDown = heightBrowser - puiSelectPositions.top;
|
|
@@ -91218,20 +90864,13 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91218
90864
|
},
|
|
91219
90865
|
compareInitialWithCurrentSelected: function compareInitialWithCurrentSelected() {
|
|
91220
90866
|
if (this.multiple) {
|
|
91221
|
-
var _this$selectedItems;
|
|
91222
90867
|
//comprobamos existencias, luego dimensiones y por último contenido de los arrays
|
|
91223
|
-
if (
|
|
91224
|
-
|
|
91225
|
-
return true;
|
|
91226
|
-
} else if (this.selectedItems.length > 0) {
|
|
91227
|
-
return true;
|
|
91228
|
-
}
|
|
91229
|
-
//los dos estan vacios
|
|
91230
|
-
return false;
|
|
90868
|
+
if (this.hasEmptyValue(this.initialItemsToSelect) || this.hasEmptyValue(this.selectedItems)) {
|
|
90869
|
+
return this.initialItemsToSelect || this.selectedItems.length > 0;
|
|
91231
90870
|
}
|
|
91232
90871
|
if (!this.hasEmptyValue(this.itemValue)) {
|
|
91233
|
-
var _this$initialItemsToS, _this$
|
|
91234
|
-
if (((_this$initialItemsToS = this.initialItemsToSelect) === null || _this$initialItemsToS === void 0 ? void 0 : _this$initialItemsToS.length) !== ((_this$
|
|
90872
|
+
var _this$initialItemsToS, _this$selectedItems;
|
|
90873
|
+
if (((_this$initialItemsToS = this.initialItemsToSelect) === null || _this$initialItemsToS === void 0 ? void 0 : _this$initialItemsToS.length) !== ((_this$selectedItems = this.selectedItems) === null || _this$selectedItems === void 0 ? void 0 : _this$selectedItems.length)) {
|
|
91235
90874
|
return true;
|
|
91236
90875
|
} else if (this.itemValueNested === true) {
|
|
91237
90876
|
//TODO
|
|
@@ -91314,11 +90953,11 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91314
90953
|
this.internalErrorMessages = [this.requiredMessage];
|
|
91315
90954
|
},
|
|
91316
90955
|
filterItems: function filterItems(search) {
|
|
91317
|
-
var
|
|
90956
|
+
var _this8 = this;
|
|
91318
90957
|
if (this.modelName) {
|
|
91319
90958
|
clearTimeout(this.delayTimer);
|
|
91320
90959
|
this.delayTimer = setTimeout(function () {
|
|
91321
|
-
|
|
90960
|
+
_this8.getItemsFromPuiList(search);
|
|
91322
90961
|
}, 500);
|
|
91323
90962
|
}
|
|
91324
90963
|
},
|
|
@@ -91326,30 +90965,6 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91326
90965
|
this.$el.children[0].children[0].children[0].children[0].children[0].children[1].setAttribute('disabled', '');
|
|
91327
90966
|
this.disabledInput = true;
|
|
91328
90967
|
},
|
|
91329
|
-
goToDetail: function goToDetail(method) {
|
|
91330
|
-
var _this0 = this;
|
|
91331
|
-
if (!this.hasEmptyValue(this.selectedItems)) {
|
|
91332
|
-
var detailPk = {};
|
|
91333
|
-
var itemValues = this.itemValue;
|
|
91334
|
-
if (this.itemValueMultiple === false) {
|
|
91335
|
-
itemValues = [this.itemValue];
|
|
91336
|
-
}
|
|
91337
|
-
itemValues.forEach(function (pkProperty) {
|
|
91338
|
-
if (!_this0.hasEmptyValue(_this0.selectedItems[pkProperty])) {
|
|
91339
|
-
detailPk[pkProperty] = _this0.selectedItems[pkProperty];
|
|
91340
|
-
}
|
|
91341
|
-
});
|
|
91342
|
-
this.detailComponentMethod = method;
|
|
91343
|
-
this.detailComponentLabel = this.label;
|
|
91344
|
-
this.detailComponentPk = this.$puiUtils.utf8ToB64(JSON.stringify(detailPk));
|
|
91345
|
-
this.showDetailComponent = true;
|
|
91346
|
-
} else if (method === 'create') {
|
|
91347
|
-
this.detailComponentMethod = method;
|
|
91348
|
-
this.detailComponentLabel = this.label;
|
|
91349
|
-
this.detailComponentPk = 'new';
|
|
91350
|
-
this.showDetailComponent = true;
|
|
91351
|
-
}
|
|
91352
|
-
},
|
|
91353
90968
|
sendDataToParent: function sendDataToParent() {
|
|
91354
90969
|
var selectedObject = {};
|
|
91355
90970
|
for (var property in this.filterMap) {
|
|
@@ -91362,47 +90977,50 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91362
90977
|
this.$puiEvents.$emit("onPuiSelect_".concat(this.filterId), selectedObject);
|
|
91363
90978
|
},
|
|
91364
90979
|
getItemsFromPuiList: function getItemsFromPuiList(search) {
|
|
91365
|
-
var
|
|
90980
|
+
var _this9 = this;
|
|
91366
90981
|
this.page = 1;
|
|
91367
90982
|
this.loading = true;
|
|
91368
90983
|
var loadItems = function loadItems(response) {
|
|
91369
|
-
|
|
90984
|
+
_this9.$refs.infiniteLoading && _this9.$refs.infiniteLoading.stateChanger.reset();
|
|
91370
90985
|
if (response && response.data) {
|
|
91371
|
-
|
|
91372
|
-
if (
|
|
91373
|
-
|
|
90986
|
+
_this9.theItems = response.data.data;
|
|
90987
|
+
if (_this9.selected === false) {
|
|
90988
|
+
_this9.selectItems();
|
|
91374
90989
|
} else {
|
|
91375
|
-
|
|
90990
|
+
_this9.checkSelectedItems();
|
|
91376
90991
|
}
|
|
91377
|
-
|
|
90992
|
+
_this9.$refs.infiniteLoading && _this9.$refs.infiniteLoading.stateChanger.loaded();
|
|
91378
90993
|
}
|
|
91379
|
-
if (response.data.totalPages <=
|
|
91380
|
-
|
|
90994
|
+
if (response.data.totalPages <= _this9.page) {
|
|
90995
|
+
_this9.$refs.infiniteLoading && _this9.$refs.infiniteLoading.stateChanger.complete();
|
|
91381
90996
|
}
|
|
91382
|
-
|
|
90997
|
+
_this9.loading = false;
|
|
91383
90998
|
};
|
|
91384
90999
|
var bodyRequest = this.getBodyRequest(search);
|
|
91385
91000
|
this.postRequest(bodyRequest, loadItems);
|
|
91386
91001
|
},
|
|
91387
91002
|
// Metodo llamado por el componente infinteloading al hacer scroll, nadie más lo llama directamente
|
|
91388
91003
|
getMoreItemsFromPuiList: function getMoreItemsFromPuiList(search) {
|
|
91389
|
-
var
|
|
91004
|
+
var _this0 = this;
|
|
91390
91005
|
this.loading = true;
|
|
91391
91006
|
this.page++;
|
|
91392
91007
|
var loadMoreItems = function loadMoreItems(response) {
|
|
91393
91008
|
if (response && response.data) {
|
|
91394
|
-
|
|
91395
|
-
|
|
91396
|
-
if (response.data.totalPages <=
|
|
91397
|
-
|
|
91009
|
+
_this0.theItems = _this0.theItems.concat(response.data.data);
|
|
91010
|
+
_this0.$refs.infiniteLoading.stateChanger.loaded();
|
|
91011
|
+
if (response.data.totalPages <= _this0.page) {
|
|
91012
|
+
_this0.$refs.infiniteLoading.stateChanger.complete();
|
|
91398
91013
|
}
|
|
91399
91014
|
}
|
|
91400
|
-
|
|
91015
|
+
_this0.loading = false;
|
|
91401
91016
|
};
|
|
91402
91017
|
var bodyRequest = this.getBodyRequest(search);
|
|
91403
91018
|
this.postRequest(bodyRequest, loadMoreItems);
|
|
91404
91019
|
},
|
|
91405
91020
|
postRequest: function postRequest(body, successCallback) {
|
|
91021
|
+
if (!this.modelName) {
|
|
91022
|
+
return;
|
|
91023
|
+
}
|
|
91406
91024
|
this.$puiRequests.postRequest(this.internalController, body, successCallback, function (error) {
|
|
91407
91025
|
console.log(error);
|
|
91408
91026
|
});
|
|
@@ -91452,7 +91070,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91452
91070
|
if (this.multiple !== true) {
|
|
91453
91071
|
for (var colmodel in this.filterMap) {
|
|
91454
91072
|
var value = this.filterMap[colmodel];
|
|
91455
|
-
if (Object.
|
|
91073
|
+
if (Object.hasOwn(this.filterMap, colmodel) && !this.hasEmptyValue(value)) {
|
|
91456
91074
|
group.rules.push({
|
|
91457
91075
|
field: colmodel,
|
|
91458
91076
|
op: 'eq',
|
|
@@ -91480,7 +91098,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91480
91098
|
return searchOrder;
|
|
91481
91099
|
},
|
|
91482
91100
|
getFilterRequest: function getFilterRequest(itemsToSelect) {
|
|
91483
|
-
var
|
|
91101
|
+
var _this1 = this;
|
|
91484
91102
|
var filter = {
|
|
91485
91103
|
groupOp: 'and',
|
|
91486
91104
|
rules: [],
|
|
@@ -91490,7 +91108,7 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91490
91108
|
var itemsToSearch = itemsToSelect || this.itemsToSelect;
|
|
91491
91109
|
itemsToSearch.forEach(function (itemToSearch) {
|
|
91492
91110
|
itemValuesToSearch.forEach(function (pkProperty) {
|
|
91493
|
-
if (itemToSearch && !
|
|
91111
|
+
if (itemToSearch && !_this1.hasEmptyValue(itemToSearch[pkProperty])) {
|
|
91494
91112
|
filter.rules.push({
|
|
91495
91113
|
field: pkProperty,
|
|
91496
91114
|
op: 'eq',
|
|
@@ -91530,25 +91148,25 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91530
91148
|
if (!filtersValid || !this.filterMap) this.selectedItems = this.multiple ? [] : null;
|
|
91531
91149
|
},
|
|
91532
91150
|
selectPreviousValidItems: function selectPreviousValidItems() {
|
|
91533
|
-
var
|
|
91151
|
+
var _this10 = this;
|
|
91534
91152
|
if (this.multiple === true) {
|
|
91535
91153
|
this.selectedItems = [];
|
|
91536
91154
|
this.previousSelectedItems.forEach(function (previousItem) {
|
|
91537
|
-
var strPkPrevItem = JSON.stringify(
|
|
91538
|
-
|
|
91539
|
-
var strPkRequestItem = JSON.stringify(
|
|
91155
|
+
var strPkPrevItem = JSON.stringify(_this10.getPkFromItem(previousItem));
|
|
91156
|
+
_this10.theItems.forEach(function (requestItem) {
|
|
91157
|
+
var strPkRequestItem = JSON.stringify(_this10.getPkFromItem(requestItem));
|
|
91540
91158
|
if (strPkPrevItem === strPkRequestItem) {
|
|
91541
|
-
|
|
91159
|
+
_this10.selectedItems.push(previousItem);
|
|
91542
91160
|
}
|
|
91543
91161
|
});
|
|
91544
91162
|
});
|
|
91545
91163
|
} else {
|
|
91546
91164
|
var strPkPrevItem = JSON.stringify(this.getPkFromItem(this.previousSelectedItems));
|
|
91547
91165
|
this.theItems.forEach(function (requestItem) {
|
|
91548
|
-
var strPkRequestItem = JSON.stringify(
|
|
91166
|
+
var strPkRequestItem = JSON.stringify(_this10.getPkFromItem(requestItem));
|
|
91549
91167
|
if (strPkPrevItem === strPkRequestItem) {
|
|
91550
|
-
|
|
91551
|
-
|
|
91168
|
+
_this10.theItems.unshift(requestItem);
|
|
91169
|
+
_this10.selectedItems = requestItem;
|
|
91552
91170
|
}
|
|
91553
91171
|
});
|
|
91554
91172
|
}
|
|
@@ -91562,11 +91180,11 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91562
91180
|
return objectPk;
|
|
91563
91181
|
},
|
|
91564
91182
|
selectItem: function selectItem(itemToSelect) {
|
|
91565
|
-
var
|
|
91183
|
+
var _this11 = this;
|
|
91566
91184
|
this.itemProgrammaticallySelected = true;
|
|
91567
91185
|
var newSelected = this.theItems.find(function (element) {
|
|
91568
91186
|
for (var key in itemToSelect[0]) {
|
|
91569
|
-
if (Object.
|
|
91187
|
+
if (Object.hasOwn(itemToSelect[0], key)) {
|
|
91570
91188
|
if (itemToSelect[0][key] !== element[key]) return false;
|
|
91571
91189
|
}
|
|
91572
91190
|
}
|
|
@@ -91580,10 +91198,10 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91580
91198
|
};
|
|
91581
91199
|
this.postRequest(params, function (response) {
|
|
91582
91200
|
if (response && response.data && response.data.data.length > 0) {
|
|
91583
|
-
|
|
91584
|
-
|
|
91201
|
+
_this11.theItems = _this11.theItems.concat(_this11.multiple === true ? response.data.data : [response.data.data[0]]);
|
|
91202
|
+
_this11.selectedItems = _this11.multiple === true ? response.data.data : response.data.data[0];
|
|
91585
91203
|
} else {
|
|
91586
|
-
|
|
91204
|
+
_this11.selectedItems = undefined;
|
|
91587
91205
|
}
|
|
91588
91206
|
});
|
|
91589
91207
|
} else {
|
|
@@ -91591,8 +91209,11 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91591
91209
|
}
|
|
91592
91210
|
},
|
|
91593
91211
|
reactiveHandler: function reactiveHandler(newValue) {
|
|
91594
|
-
var
|
|
91595
|
-
|
|
91212
|
+
var _this12 = this;
|
|
91213
|
+
// INCOMPATIBILIDAD ENTRE reactive y multiple
|
|
91214
|
+
// revisar si quitar el soporte de reactive
|
|
91215
|
+
|
|
91216
|
+
if (this.reactive && !this.multiple) {
|
|
91596
91217
|
if ((!this.itemManuallySelected || Object.values(newValue[0]).some(function (x) {
|
|
91597
91218
|
return !x;
|
|
91598
91219
|
})) && !this.firstLoad) {
|
|
@@ -91601,11 +91222,11 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91601
91222
|
} else {
|
|
91602
91223
|
if (this.requestDataPromise) {
|
|
91603
91224
|
this.requestDataPromise.then(function (theItems) {
|
|
91604
|
-
if (!
|
|
91605
|
-
|
|
91606
|
-
|
|
91225
|
+
if (!_this12.itemManuallySelected) {
|
|
91226
|
+
_this12.theItems = theItems;
|
|
91227
|
+
_this12.selectItem(newValue);
|
|
91607
91228
|
}
|
|
91608
|
-
delete
|
|
91229
|
+
delete _this12.requestDataPromise;
|
|
91609
91230
|
});
|
|
91610
91231
|
}
|
|
91611
91232
|
this.itemManuallySelected = false;
|
|
@@ -91619,6 +91240,18 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91619
91240
|
}, function () {
|
|
91620
91241
|
// console.error('Failed to copy');
|
|
91621
91242
|
});
|
|
91243
|
+
},
|
|
91244
|
+
setSelectedItemAfterDetailComponentUpdate: function setSelectedItemAfterDetailComponentUpdate(data) {
|
|
91245
|
+
if (data) {
|
|
91246
|
+
var newItem = {};
|
|
91247
|
+
var itemValues = this.itemValue;
|
|
91248
|
+
itemValues.forEach(function (pkValue) {
|
|
91249
|
+
newItem[pkValue] = data[pkValue];
|
|
91250
|
+
});
|
|
91251
|
+
this.itemsToSelect[0] = newItem;
|
|
91252
|
+
this.onPuiSelectItemsToSelect = [newItem];
|
|
91253
|
+
this.getSelectedItemsFromPuiList();
|
|
91254
|
+
}
|
|
91622
91255
|
}
|
|
91623
91256
|
}
|
|
91624
91257
|
});
|
|
@@ -91634,8 +91267,8 @@ var vue_infinite_loading_default = /*#__PURE__*/__webpack_require__.n(vue_infini
|
|
|
91634
91267
|
|
|
91635
91268
|
var PuiSelect_component = normalizeComponent(
|
|
91636
91269
|
components_PuiSelectvue_type_script_lang_js,
|
|
91637
|
-
|
|
91638
|
-
|
|
91270
|
+
PuiSelectvue_type_template_id_57a35849_render,
|
|
91271
|
+
PuiSelectvue_type_template_id_57a35849_staticRenderFns,
|
|
91639
91272
|
false,
|
|
91640
91273
|
null,
|
|
91641
91274
|
null,
|
|
@@ -91644,6 +91277,348 @@ var PuiSelect_component = normalizeComponent(
|
|
|
91644
91277
|
)
|
|
91645
91278
|
|
|
91646
91279
|
/* harmony default export */ var PuiSelect = (PuiSelect_component.exports);
|
|
91280
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiDetailFormButtons.vue?vue&type=template&id=2c7b197d
|
|
91281
|
+
var PuiDetailFormButtonsvue_type_template_id_2c7b197d_render = function render() {
|
|
91282
|
+
var _vm = this,
|
|
91283
|
+
_c = _vm._self._c;
|
|
91284
|
+
return _c('div', [_vm.visibleBtns ? _c('v-layout', [_vm.detailIconUpdate || _vm.detailIconRead ? _c('v-flex', {
|
|
91285
|
+
staticClass: "pl-2 pt-2"
|
|
91286
|
+
}, [_vm.detailIconUpdate ? _c('v-btn', {
|
|
91287
|
+
attrs: {
|
|
91288
|
+
"icon": "",
|
|
91289
|
+
"x-small": ""
|
|
91290
|
+
},
|
|
91291
|
+
on: {
|
|
91292
|
+
"click": function click($event) {
|
|
91293
|
+
return _vm.goToDetail('update');
|
|
91294
|
+
}
|
|
91295
|
+
}
|
|
91296
|
+
}, [_c('v-icon', [_vm._v(_vm._s(_vm.detailIconUpdate))])], 1) : _vm.detailIconRead ? _c('v-btn', {
|
|
91297
|
+
attrs: {
|
|
91298
|
+
"icon": "",
|
|
91299
|
+
"x-small": ""
|
|
91300
|
+
},
|
|
91301
|
+
on: {
|
|
91302
|
+
"click": function click($event) {
|
|
91303
|
+
return _vm.goToDetail('read');
|
|
91304
|
+
}
|
|
91305
|
+
}
|
|
91306
|
+
}, [_c('v-icon', [_vm._v(_vm._s(_vm.detailIconRead))])], 1) : _vm._e()], 1) : _vm._e(), _vm.detailIconInsert ? _c('v-flex', {
|
|
91307
|
+
staticClass: "pl-2 pt-2 mr-0"
|
|
91308
|
+
}, [_c('v-btn', {
|
|
91309
|
+
attrs: {
|
|
91310
|
+
"icon": "",
|
|
91311
|
+
"x-small": ""
|
|
91312
|
+
},
|
|
91313
|
+
on: {
|
|
91314
|
+
"click": function click($event) {
|
|
91315
|
+
return _vm.goToDetail('create');
|
|
91316
|
+
}
|
|
91317
|
+
}
|
|
91318
|
+
}, [_c('v-icon', [_vm._v(_vm._s(_vm.detailIconInsert))])], 1)], 1) : _vm._e()], 1) : _vm._e(), _vm.showDetailComponent ? _c('pui-detail-form-dialog', {
|
|
91319
|
+
attrs: {
|
|
91320
|
+
"dialogName": _vm.getFullId,
|
|
91321
|
+
"componentLabel": _vm.detailComponentLabel,
|
|
91322
|
+
"componentName": _vm.detailComponentName,
|
|
91323
|
+
"componentPk": _vm.getDetailComponentPk,
|
|
91324
|
+
"componentMethod": _vm.detailComponentMethod,
|
|
91325
|
+
"modelName": _vm.detailModelName
|
|
91326
|
+
}
|
|
91327
|
+
}) : _vm._e()], 1);
|
|
91328
|
+
};
|
|
91329
|
+
var PuiDetailFormButtonsvue_type_template_id_2c7b197d_staticRenderFns = [];
|
|
91330
|
+
|
|
91331
|
+
// CONCATENATED MODULE: ./src/components/PuiDetailFormButtons.vue?vue&type=template&id=2c7b197d
|
|
91332
|
+
|
|
91333
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiDetailFormButtons.vue?vue&type=script&lang=js
|
|
91334
|
+
/* harmony default export */ var PuiDetailFormButtonsvue_type_script_lang_js = ({
|
|
91335
|
+
name: 'PuiDetailFormButtons',
|
|
91336
|
+
props: {
|
|
91337
|
+
parentId: {
|
|
91338
|
+
type: String,
|
|
91339
|
+
required: true
|
|
91340
|
+
},
|
|
91341
|
+
visibleBtns: {
|
|
91342
|
+
type: Boolean,
|
|
91343
|
+
default: true
|
|
91344
|
+
},
|
|
91345
|
+
detailComponentLabel: {
|
|
91346
|
+
type: String,
|
|
91347
|
+
required: true
|
|
91348
|
+
},
|
|
91349
|
+
detailModelName: {
|
|
91350
|
+
type: String,
|
|
91351
|
+
required: true
|
|
91352
|
+
},
|
|
91353
|
+
detailComponentName: {
|
|
91354
|
+
type: String,
|
|
91355
|
+
required: true
|
|
91356
|
+
},
|
|
91357
|
+
detailComponentPk: {
|
|
91358
|
+
type: String
|
|
91359
|
+
},
|
|
91360
|
+
detailActions: {
|
|
91361
|
+
type: Object,
|
|
91362
|
+
default: function _default() {
|
|
91363
|
+
return {
|
|
91364
|
+
read: true,
|
|
91365
|
+
create: true,
|
|
91366
|
+
update: true
|
|
91367
|
+
};
|
|
91368
|
+
},
|
|
91369
|
+
required: false
|
|
91370
|
+
}
|
|
91371
|
+
},
|
|
91372
|
+
data: function data() {
|
|
91373
|
+
return {
|
|
91374
|
+
showDetailComponent: false,
|
|
91375
|
+
detailComponentMethod: null,
|
|
91376
|
+
detailPk: null
|
|
91377
|
+
};
|
|
91378
|
+
},
|
|
91379
|
+
computed: {
|
|
91380
|
+
getFullId: function getFullId() {
|
|
91381
|
+
return this.detailComponentName + '_' + this.parentId + '_modal';
|
|
91382
|
+
},
|
|
91383
|
+
getDetailModel: function getDetailModel() {
|
|
91384
|
+
return this.$store.getModelByName(this.detailModelName);
|
|
91385
|
+
},
|
|
91386
|
+
getDetailComponentPk: function getDetailComponentPk() {
|
|
91387
|
+
if (this.detailComponentMethod === 'create') {
|
|
91388
|
+
return 'new';
|
|
91389
|
+
}
|
|
91390
|
+
if (this.detailPk) {
|
|
91391
|
+
return this.detailPk;
|
|
91392
|
+
}
|
|
91393
|
+
return this.detailComponentPk;
|
|
91394
|
+
},
|
|
91395
|
+
detailIconRead: function detailIconRead() {
|
|
91396
|
+
if (this.detailModelName && this.detailComponentName && this.detailActions.read) {
|
|
91397
|
+
if (this.getDetailModel && this.getDetailModel.functionalities) {
|
|
91398
|
+
if (this.$store.hasFunctionality(this.getDetailModel.functionalities.get)) {
|
|
91399
|
+
return 'far fa-info-circle';
|
|
91400
|
+
}
|
|
91401
|
+
}
|
|
91402
|
+
}
|
|
91403
|
+
return null;
|
|
91404
|
+
},
|
|
91405
|
+
detailIconInsert: function detailIconInsert() {
|
|
91406
|
+
if (this.detailModelName && !this.disabled && this.detailActions.create) {
|
|
91407
|
+
if (this.getDetailModel && this.getDetailModel.functionalities) {
|
|
91408
|
+
// eslint-disable-next-line
|
|
91409
|
+
if (this.$store.hasFunctionality(this.getDetailModel.functionalities.insert)) {
|
|
91410
|
+
return 'far fa-plus-circle';
|
|
91411
|
+
}
|
|
91412
|
+
}
|
|
91413
|
+
}
|
|
91414
|
+
return null;
|
|
91415
|
+
},
|
|
91416
|
+
detailIconUpdate: function detailIconUpdate() {
|
|
91417
|
+
if (this.detailModelName && !this.disabled && this.detailActions.update) {
|
|
91418
|
+
if (this.getDetailModel && this.getDetailModel.functionalities) {
|
|
91419
|
+
// eslint-disable-next-line
|
|
91420
|
+
if (this.$store.hasFunctionality(this.getDetailModel.functionalities.update)) {
|
|
91421
|
+
return 'far fa-edit';
|
|
91422
|
+
}
|
|
91423
|
+
}
|
|
91424
|
+
}
|
|
91425
|
+
return null;
|
|
91426
|
+
},
|
|
91427
|
+
availableDetailIcons: function availableDetailIcons() {
|
|
91428
|
+
if (!this.detailIconInsert) {
|
|
91429
|
+
return 0;
|
|
91430
|
+
}
|
|
91431
|
+
if (this.detailIconRead || this.detailIconUpdate) {
|
|
91432
|
+
return 2;
|
|
91433
|
+
}
|
|
91434
|
+
return 1;
|
|
91435
|
+
}
|
|
91436
|
+
},
|
|
91437
|
+
mounted: function mounted() {
|
|
91438
|
+
var _this = this;
|
|
91439
|
+
this.$puiEvents.$on("onPui-insertRow-dataTable-".concat(this.detailModelName), function () {
|
|
91440
|
+
_this.showDetailComponent = false;
|
|
91441
|
+
});
|
|
91442
|
+
this.$puiEvents.$on("onPui-editRow-dataTable-".concat(this.detailModelName), function () {
|
|
91443
|
+
_this.showDetailComponent = false;
|
|
91444
|
+
});
|
|
91445
|
+
this.$puiEvents.$on("pui-modalDialog-".concat(this.getFullId, "-ok"), function () {
|
|
91446
|
+
_this.showDetailComponent = false;
|
|
91447
|
+
});
|
|
91448
|
+
this.$puiEvents.$on("pui-modalDialog-".concat(this.getFullId, "-cancel"), function () {
|
|
91449
|
+
_this.showDetailComponent = false;
|
|
91450
|
+
});
|
|
91451
|
+
},
|
|
91452
|
+
beforeDestroy: function beforeDestroy() {
|
|
91453
|
+
//this.$puiEvents.$off(`onPui-insertRow-dataTable-${this.detailModelName}``);
|
|
91454
|
+
//this.$puiEvents.$off(`onPui-editRow-dataTable-${this.detailModelName}`);
|
|
91455
|
+
//this.$puiEvents.$off(`pui-modalDialog-${this.getFullId}-ok`);
|
|
91456
|
+
//this.$puiEvents.$off(`pui-modalDialog-${this.getFullId}-cancel`);
|
|
91457
|
+
},
|
|
91458
|
+
methods: {
|
|
91459
|
+
goToDetail: function goToDetail(method, pk) {
|
|
91460
|
+
if (pk) {
|
|
91461
|
+
this.detailPk = pk;
|
|
91462
|
+
}
|
|
91463
|
+
this.detailComponentMethod = method;
|
|
91464
|
+
this.showDetailComponent = true;
|
|
91465
|
+
}
|
|
91466
|
+
}
|
|
91467
|
+
});
|
|
91468
|
+
// CONCATENATED MODULE: ./src/components/PuiDetailFormButtons.vue?vue&type=script&lang=js
|
|
91469
|
+
/* harmony default export */ var components_PuiDetailFormButtonsvue_type_script_lang_js = (PuiDetailFormButtonsvue_type_script_lang_js);
|
|
91470
|
+
// CONCATENATED MODULE: ./src/components/PuiDetailFormButtons.vue
|
|
91471
|
+
|
|
91472
|
+
|
|
91473
|
+
|
|
91474
|
+
|
|
91475
|
+
|
|
91476
|
+
/* normalize component */
|
|
91477
|
+
|
|
91478
|
+
var PuiDetailFormButtons_component = normalizeComponent(
|
|
91479
|
+
components_PuiDetailFormButtonsvue_type_script_lang_js,
|
|
91480
|
+
PuiDetailFormButtonsvue_type_template_id_2c7b197d_render,
|
|
91481
|
+
PuiDetailFormButtonsvue_type_template_id_2c7b197d_staticRenderFns,
|
|
91482
|
+
false,
|
|
91483
|
+
null,
|
|
91484
|
+
null,
|
|
91485
|
+
null
|
|
91486
|
+
|
|
91487
|
+
)
|
|
91488
|
+
|
|
91489
|
+
/* harmony default export */ var PuiDetailFormButtons = (PuiDetailFormButtons_component.exports);
|
|
91490
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"25baa24f-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiDetailFormDialog.vue?vue&type=template&id=1a21ecc0
|
|
91491
|
+
var PuiDetailFormDialogvue_type_template_id_1a21ecc0_render = function render() {
|
|
91492
|
+
var _vm = this,
|
|
91493
|
+
_c = _vm._self._c;
|
|
91494
|
+
return _c('pui-modal-dialog', {
|
|
91495
|
+
ref: "modalForm",
|
|
91496
|
+
attrs: {
|
|
91497
|
+
"titleText": _vm.titleText,
|
|
91498
|
+
"messageText": _vm.messageText,
|
|
91499
|
+
"okText": _vm.okText,
|
|
91500
|
+
"cancelText": _vm.cancelText,
|
|
91501
|
+
"widthDialog": _vm.widthDialog,
|
|
91502
|
+
"dialogName": _vm.dialogName
|
|
91503
|
+
}
|
|
91504
|
+
}, [_c('template', {
|
|
91505
|
+
slot: "message"
|
|
91506
|
+
}, [_c(_vm.componentName, {
|
|
91507
|
+
tag: "component",
|
|
91508
|
+
attrs: {
|
|
91509
|
+
"pk": _vm.componentPk,
|
|
91510
|
+
"method": _vm.componentMethod,
|
|
91511
|
+
"isModalDialog": ""
|
|
91512
|
+
}
|
|
91513
|
+
})], 1)], 2);
|
|
91514
|
+
};
|
|
91515
|
+
var PuiDetailFormDialogvue_type_template_id_1a21ecc0_staticRenderFns = [];
|
|
91516
|
+
|
|
91517
|
+
// CONCATENATED MODULE: ./src/components/PuiDetailFormDialog.vue?vue&type=template&id=1a21ecc0
|
|
91518
|
+
|
|
91519
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/PuiDetailFormDialog.vue?vue&type=script&lang=js
|
|
91520
|
+
/* harmony default export */ var PuiDetailFormDialogvue_type_script_lang_js = ({
|
|
91521
|
+
name: 'PuiDetailFormDialog',
|
|
91522
|
+
props: {
|
|
91523
|
+
dialogName: {
|
|
91524
|
+
type: String,
|
|
91525
|
+
required: true
|
|
91526
|
+
},
|
|
91527
|
+
componentLabel: {
|
|
91528
|
+
type: String,
|
|
91529
|
+
required: true
|
|
91530
|
+
},
|
|
91531
|
+
// isForm checks this name; must have PuiFormMethodsMixin to save() changes;
|
|
91532
|
+
componentName: {
|
|
91533
|
+
type: String,
|
|
91534
|
+
required: true
|
|
91535
|
+
},
|
|
91536
|
+
componentPk: {
|
|
91537
|
+
type: String,
|
|
91538
|
+
required: true
|
|
91539
|
+
},
|
|
91540
|
+
componentMethod: {
|
|
91541
|
+
type: String,
|
|
91542
|
+
required: true
|
|
91543
|
+
},
|
|
91544
|
+
modelName: {
|
|
91545
|
+
type: String,
|
|
91546
|
+
default: null,
|
|
91547
|
+
required: false
|
|
91548
|
+
}
|
|
91549
|
+
},
|
|
91550
|
+
data: function data() {
|
|
91551
|
+
return {
|
|
91552
|
+
titleText: this.componentLabel,
|
|
91553
|
+
messageText: '',
|
|
91554
|
+
okText: this.componentMethod !== 'read' ? this.$t('form.save') : this.$t('form.ok'),
|
|
91555
|
+
cancelText: this.componentMethod !== 'read' ? this.$t('form.cancel') : null,
|
|
91556
|
+
widthDialog: window.innerWidth * 0.9,
|
|
91557
|
+
modalForm: null
|
|
91558
|
+
};
|
|
91559
|
+
},
|
|
91560
|
+
mounted: function mounted() {
|
|
91561
|
+
var _this = this;
|
|
91562
|
+
this.modalFormMountedInterval = setInterval(function () {
|
|
91563
|
+
if (_this.$refs && _this.$refs.modalForm) {
|
|
91564
|
+
_this.modalForm = _this.getFormComponent(_this.$refs.modalForm);
|
|
91565
|
+
clearInterval(_this.modalFormMountedInterval);
|
|
91566
|
+
}
|
|
91567
|
+
}, 200);
|
|
91568
|
+
this.$puiEvents.$on("pui-modalDialog-".concat(this.dialogName, "-ok"), function () {
|
|
91569
|
+
if (_this.componentMethod === 'create' || _this.componentMethod === 'update') {
|
|
91570
|
+
_this.modalForm && _this.modalForm.save(true);
|
|
91571
|
+
}
|
|
91572
|
+
});
|
|
91573
|
+
},
|
|
91574
|
+
beforeDestroy: function beforeDestroy() {
|
|
91575
|
+
this.$puiEvents.$off("pui-modalDialog-".concat(this.dialogName, "-ok"));
|
|
91576
|
+
},
|
|
91577
|
+
methods: {
|
|
91578
|
+
getFormComponent: function getFormComponent(component) {
|
|
91579
|
+
if (!component) {
|
|
91580
|
+
return null;
|
|
91581
|
+
}
|
|
91582
|
+
if (this.isForm(component)) {
|
|
91583
|
+
return component;
|
|
91584
|
+
}
|
|
91585
|
+
for (var i = 0, childrenLength = component.$children.length; i < childrenLength; i++) {
|
|
91586
|
+
var child = this.getFormComponent(component.$children[i]);
|
|
91587
|
+
if (this.isForm(child)) {
|
|
91588
|
+
return child;
|
|
91589
|
+
}
|
|
91590
|
+
}
|
|
91591
|
+
},
|
|
91592
|
+
isForm: function isForm(node) {
|
|
91593
|
+
return this.getComponentTag(node) ? this.getComponentTag(node).toLowerCase() === this.componentName.toLowerCase() : false;
|
|
91594
|
+
},
|
|
91595
|
+
getComponentTag: function getComponentTag(node) {
|
|
91596
|
+
return node && node.$options && node.$options._componentTag;
|
|
91597
|
+
}
|
|
91598
|
+
}
|
|
91599
|
+
});
|
|
91600
|
+
// CONCATENATED MODULE: ./src/components/PuiDetailFormDialog.vue?vue&type=script&lang=js
|
|
91601
|
+
/* harmony default export */ var components_PuiDetailFormDialogvue_type_script_lang_js = (PuiDetailFormDialogvue_type_script_lang_js);
|
|
91602
|
+
// CONCATENATED MODULE: ./src/components/PuiDetailFormDialog.vue
|
|
91603
|
+
|
|
91604
|
+
|
|
91605
|
+
|
|
91606
|
+
|
|
91607
|
+
|
|
91608
|
+
/* normalize component */
|
|
91609
|
+
|
|
91610
|
+
var PuiDetailFormDialog_component = normalizeComponent(
|
|
91611
|
+
components_PuiDetailFormDialogvue_type_script_lang_js,
|
|
91612
|
+
PuiDetailFormDialogvue_type_template_id_1a21ecc0_render,
|
|
91613
|
+
PuiDetailFormDialogvue_type_template_id_1a21ecc0_staticRenderFns,
|
|
91614
|
+
false,
|
|
91615
|
+
null,
|
|
91616
|
+
null,
|
|
91617
|
+
null
|
|
91618
|
+
|
|
91619
|
+
)
|
|
91620
|
+
|
|
91621
|
+
/* harmony default export */ var PuiDetailFormDialog = (PuiDetailFormDialog_component.exports);
|
|
91647
91622
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.atob.js
|
|
91648
91623
|
var web_atob = __webpack_require__("81b2");
|
|
91649
91624
|
|
|
@@ -91908,8 +91883,10 @@ var web_url_search_params = __webpack_require__("9861");
|
|
|
91908
91883
|
return;
|
|
91909
91884
|
}
|
|
91910
91885
|
this.$puiRequests.postRequest(this.modelDependency.url.list, data, function (response) {
|
|
91911
|
-
|
|
91912
|
-
|
|
91886
|
+
var _response$data;
|
|
91887
|
+
if ((response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 || (_response$data = _response$data.data) === null || _response$data === void 0 ? void 0 : _response$data.length) > 0) {
|
|
91888
|
+
var _response$data2;
|
|
91889
|
+
_this.model = response === null || response === void 0 || (_response$data2 = response.data) === null || _response$data2 === void 0 || (_response$data2 = _response$data2.data) === null || _response$data2 === void 0 ? void 0 : _response$data2[0];
|
|
91913
91890
|
}
|
|
91914
91891
|
}, function (err) {
|
|
91915
91892
|
if (err) {
|
|
@@ -91919,7 +91896,7 @@ var web_url_search_params = __webpack_require__("9861");
|
|
|
91919
91896
|
}
|
|
91920
91897
|
},
|
|
91921
91898
|
mounted: function mounted() {
|
|
91922
|
-
this.modelDependency = this.$store.
|
|
91899
|
+
this.modelDependency = this.$store.getModelByName(this.modelName);
|
|
91923
91900
|
this.getPkFromUrl();
|
|
91924
91901
|
this.loadInfo();
|
|
91925
91902
|
}
|
|
@@ -92099,6 +92076,7 @@ function _asyncToGenerator(n) {
|
|
|
92099
92076
|
|
|
92100
92077
|
|
|
92101
92078
|
|
|
92079
|
+
|
|
92102
92080
|
/* harmony default export */ var PuiFormMethodsMixin = ({
|
|
92103
92081
|
beforeRouteUpdate: function beforeRouteUpdate(to, from, next) {
|
|
92104
92082
|
// If distinct router with different parameters automatically refresh the router-view
|
|
@@ -92115,7 +92093,7 @@ function _asyncToGenerator(n) {
|
|
|
92115
92093
|
return !!value || _this.$t('pui9.error.field_required');
|
|
92116
92094
|
}
|
|
92117
92095
|
},
|
|
92118
|
-
showDocuments: this.$store.
|
|
92096
|
+
showDocuments: this.$store.hasFunctionality('READ_PUI_DOCUMENT'),
|
|
92119
92097
|
valid: true,
|
|
92120
92098
|
saving: false,
|
|
92121
92099
|
formDisabled: false,
|
|
@@ -92157,7 +92135,7 @@ function _asyncToGenerator(n) {
|
|
|
92157
92135
|
},
|
|
92158
92136
|
computed: {
|
|
92159
92137
|
isMobile: function isMobile() {
|
|
92160
|
-
return this.$store.
|
|
92138
|
+
return this.$store.isMobile;
|
|
92161
92139
|
},
|
|
92162
92140
|
isCreatingElement: function isCreatingElement() {
|
|
92163
92141
|
return this.method === 'create' || this.method === 'copy';
|
|
@@ -92175,10 +92153,10 @@ function _asyncToGenerator(n) {
|
|
|
92175
92153
|
return modelPk;
|
|
92176
92154
|
},
|
|
92177
92155
|
onPuiModelsLoadedAndSaved: function onPuiModelsLoadedAndSaved() {
|
|
92178
|
-
return this.$store.
|
|
92156
|
+
return this.$store.modelsLoadedAndSaved;
|
|
92179
92157
|
},
|
|
92180
92158
|
containerHeaderVisibility: function containerHeaderVisibility() {
|
|
92181
|
-
return this.$store.
|
|
92159
|
+
return this.$store.getContainerHeaderVisibility;
|
|
92182
92160
|
}
|
|
92183
92161
|
},
|
|
92184
92162
|
watch: {
|
|
@@ -92198,20 +92176,23 @@ function _asyncToGenerator(n) {
|
|
|
92198
92176
|
}
|
|
92199
92177
|
},
|
|
92200
92178
|
created: function created() {
|
|
92179
|
+
var _this2 = this;
|
|
92201
92180
|
var self = this;
|
|
92202
|
-
this.modelDependency = this.$store.
|
|
92181
|
+
this.modelDependency = this.$store.getModelByName(this.modelName);
|
|
92203
92182
|
this.$puiEvents.$on("onPuiGotoTableDetail-".concat(this.modelName), function () {
|
|
92204
92183
|
if (self.model && self.pk && self.modelName && !self.isModalDialog) {
|
|
92205
|
-
var
|
|
92206
|
-
var
|
|
92207
|
-
|
|
92208
|
-
user
|
|
92209
|
-
|
|
92210
|
-
|
|
92211
|
-
|
|
92212
|
-
|
|
92184
|
+
var obj = _this2.buildFormTmpDataObject();
|
|
92185
|
+
var tmpFormInfo = _this2.$store.tmpFormInfo;
|
|
92186
|
+
if (!tmpFormInfo[obj.user]) {
|
|
92187
|
+
tmpFormInfo[obj.user] = {};
|
|
92188
|
+
}
|
|
92189
|
+
if (!tmpFormInfo[obj.user][obj.modelName]) {
|
|
92190
|
+
tmpFormInfo[obj.user][obj.modelName] = {};
|
|
92191
|
+
}
|
|
92192
|
+
tmpFormInfo[obj.user][obj.modelName][obj.pk] = {
|
|
92193
|
+
model: obj.model,
|
|
92194
|
+
tabmodel: obj.tabmodel
|
|
92213
92195
|
};
|
|
92214
|
-
self.$store.commit('setFormTmpInfo', obj);
|
|
92215
92196
|
}
|
|
92216
92197
|
});
|
|
92217
92198
|
},
|
|
@@ -92246,17 +92227,17 @@ function _asyncToGenerator(n) {
|
|
|
92246
92227
|
}
|
|
92247
92228
|
},
|
|
92248
92229
|
onShowContainerHeader: function onShowContainerHeader(show) {
|
|
92249
|
-
var
|
|
92230
|
+
var _this3 = this;
|
|
92250
92231
|
if (show && this.getFormHeaderTitle) {
|
|
92251
|
-
if (!this.isMobile && this.$store.
|
|
92232
|
+
if (!this.isMobile && this.$store.global.appContainerHeader) {
|
|
92252
92233
|
setTimeout(function () {
|
|
92253
92234
|
// override puicontainerheader title
|
|
92254
|
-
|
|
92235
|
+
_this3.$parent.$children[1].title = _this3.getFormHeaderTitle();
|
|
92255
92236
|
}, 10);
|
|
92256
92237
|
} else {
|
|
92257
92238
|
setTimeout(function () {
|
|
92258
92239
|
// override puicontainerheader title
|
|
92259
|
-
|
|
92240
|
+
_this3.$parent.$children[0].title = _this3.getFormHeaderTitle();
|
|
92260
92241
|
}, 10);
|
|
92261
92242
|
}
|
|
92262
92243
|
}
|
|
@@ -92268,35 +92249,38 @@ function _asyncToGenerator(n) {
|
|
|
92268
92249
|
if (component.$options && (component.$options._componentTag === 'puidatatable' || component.$options._componentTag === 'puiquickeditiondatatable') && component.modelName === modelName) {
|
|
92269
92250
|
return component;
|
|
92270
92251
|
}
|
|
92252
|
+
var validTags = ['puidatatable', 'puiquickeditiondatatable'];
|
|
92271
92253
|
for (var i = 0, childrenLength = component.$children.length; i < childrenLength; i++) {
|
|
92254
|
+
var _child$$options;
|
|
92272
92255
|
var child = this.getDatatableComponent(component.$children[i], modelName);
|
|
92273
|
-
if (child
|
|
92256
|
+
if (validTags.includes(child === null || child === void 0 || (_child$$options = child.$options) === null || _child$$options === void 0 ? void 0 : _child$$options._componentTag) && (child === null || child === void 0 ? void 0 : child.modelName) === modelName) {
|
|
92274
92257
|
return child;
|
|
92275
92258
|
}
|
|
92276
92259
|
}
|
|
92277
92260
|
},
|
|
92278
92261
|
getStoredTmpData: function getStoredTmpData() {
|
|
92279
|
-
var
|
|
92280
|
-
|
|
92281
|
-
|
|
92282
|
-
if (usr && modelName && pk) {
|
|
92283
|
-
return this.$store.getters.getFormTmpInfo(usr, modelName, pk);
|
|
92262
|
+
var obj = this.buildFormTmpDataObject();
|
|
92263
|
+
if (obj.user && this.$store.tmpFormInfo[obj.user] && obj.modelName && this.$store.tmpFormInfo[obj.user][obj.modelName] && obj.pk) {
|
|
92264
|
+
return this.$store.tmpFormInfo[obj.user][obj.modelName][obj.pk];
|
|
92284
92265
|
}
|
|
92285
|
-
return null;
|
|
92286
92266
|
},
|
|
92287
92267
|
cleanStoredTmpData: function cleanStoredTmpData() {
|
|
92288
|
-
var
|
|
92289
|
-
|
|
92290
|
-
|
|
92291
|
-
|
|
92292
|
-
|
|
92293
|
-
user: usr,
|
|
92294
|
-
pk: pk,
|
|
92295
|
-
modelName: modelName
|
|
92296
|
-
};
|
|
92297
|
-
this.$store.commit('cleanFormTmpInfo', obj);
|
|
92268
|
+
var obj = this.buildFormTmpDataObject();
|
|
92269
|
+
if (obj.user && obj.modelName && obj.pk) {
|
|
92270
|
+
if (obj.user && this.$store.tmpFormInfo[obj.user] && obj.modelName && this.$store.tmpFormInfo[obj.user][obj.modelName] && obj.pk) {
|
|
92271
|
+
delete this.$store.tmpFormInfo[obj.user][obj.modelName][obj.pk];
|
|
92272
|
+
}
|
|
92298
92273
|
}
|
|
92299
92274
|
},
|
|
92275
|
+
buildFormTmpDataObject: function buildFormTmpDataObject() {
|
|
92276
|
+
return {
|
|
92277
|
+
user: this.$store.getUser,
|
|
92278
|
+
modelName: this.modelName,
|
|
92279
|
+
model: JSON.parse(JSON.stringify(this.model)),
|
|
92280
|
+
tabmodel: this.tabmodel,
|
|
92281
|
+
pk: this.pk
|
|
92282
|
+
};
|
|
92283
|
+
},
|
|
92300
92284
|
updateTmpSavedInfo: function updateTmpSavedInfo(savedInfo) {
|
|
92301
92285
|
var me = this;
|
|
92302
92286
|
//setTimeout(() => {
|
|
@@ -92315,7 +92299,7 @@ function _asyncToGenerator(n) {
|
|
|
92315
92299
|
//}, 600);
|
|
92316
92300
|
},
|
|
92317
92301
|
getData: function getData(urlParam) {
|
|
92318
|
-
var
|
|
92302
|
+
var _this4 = this;
|
|
92319
92303
|
if (!this.modelDependency) {
|
|
92320
92304
|
return;
|
|
92321
92305
|
}
|
|
@@ -92337,83 +92321,84 @@ function _asyncToGenerator(n) {
|
|
|
92337
92321
|
controller += urlParam;
|
|
92338
92322
|
}
|
|
92339
92323
|
var params = null;
|
|
92340
|
-
var langStore = this.$store.
|
|
92324
|
+
var langStore = this.$store.getRequestLang;
|
|
92341
92325
|
if (langStore !== null) {
|
|
92342
92326
|
params = {
|
|
92343
92327
|
lang: langStore
|
|
92344
92328
|
};
|
|
92345
92329
|
}
|
|
92346
92330
|
this.$puiRequests.getRequest(controller, params, function (response) {
|
|
92347
|
-
if (response && response.data) {
|
|
92331
|
+
if (response !== null && response !== void 0 && response.data) {
|
|
92348
92332
|
var data = response.data;
|
|
92349
|
-
|
|
92350
|
-
if (
|
|
92351
|
-
if (
|
|
92333
|
+
_this4.model = JSON.parse(JSON.stringify(data));
|
|
92334
|
+
if (_this4.method === 'create') {
|
|
92335
|
+
if (_this4.saveModelTemplate) {
|
|
92352
92336
|
// guardamos en cache la template si estamos en modo Insert
|
|
92353
|
-
|
|
92337
|
+
_this4.modelDependency.template = JSON.parse(JSON.stringify(data));
|
|
92354
92338
|
}
|
|
92355
|
-
|
|
92356
|
-
|
|
92357
|
-
} else if (
|
|
92358
|
-
|
|
92339
|
+
_this4.onCreateGetDataFromFilterCombo();
|
|
92340
|
+
_this4.dtohash = null;
|
|
92341
|
+
} else if (_this4.method === 'update') {
|
|
92342
|
+
_this4.dtohash = response.headers.dtohash;
|
|
92359
92343
|
}
|
|
92360
|
-
if (!
|
|
92361
|
-
var storedTmpData =
|
|
92344
|
+
if (!_this4.isModalDialog) {
|
|
92345
|
+
var storedTmpData = _this4.getStoredTmpData();
|
|
92362
92346
|
if (storedTmpData) {
|
|
92363
|
-
|
|
92347
|
+
_this4.tabmodel = storedTmpData.tabmodel;
|
|
92364
92348
|
if (langStore === null) {
|
|
92365
|
-
|
|
92349
|
+
_this4.updateTmpSavedInfo(storedTmpData.model);
|
|
92366
92350
|
} else {
|
|
92367
|
-
|
|
92351
|
+
_this4.cleanStoredTmpData();
|
|
92368
92352
|
}
|
|
92369
92353
|
}
|
|
92370
92354
|
}
|
|
92371
|
-
|
|
92372
|
-
|
|
92373
|
-
|
|
92355
|
+
_this4.afterGetData();
|
|
92356
|
+
_this4.$puiEvents.$emit("onPui-form-afterGetData-".concat(_this4.modelName), _this4.model);
|
|
92357
|
+
_this4.changeModelLoaded(true);
|
|
92374
92358
|
}
|
|
92375
92359
|
}, function (error) {
|
|
92376
|
-
|
|
92377
|
-
|
|
92378
|
-
|
|
92360
|
+
var _error$response;
|
|
92361
|
+
_this4.onError(error);
|
|
92362
|
+
if ((error === null || error === void 0 || (_error$response = error.response) === null || _error$response === void 0 ? void 0 : _error$response.status) === 403) {
|
|
92363
|
+
_this4.$store.puiRouterGoToDefaultEntryPage(_this4.$router);
|
|
92379
92364
|
} else {
|
|
92380
|
-
|
|
92365
|
+
_this4.modelLoaded = true;
|
|
92381
92366
|
}
|
|
92382
92367
|
});
|
|
92383
92368
|
},
|
|
92384
92369
|
getCopyData: function getCopyData(pk) {
|
|
92385
|
-
var
|
|
92370
|
+
var _this5 = this;
|
|
92386
92371
|
this.$puiRequests.postRequest('/copy/perform?model=' + this.modelName, pk, function (response) {
|
|
92387
|
-
if (response && response.data) {
|
|
92372
|
+
if (response !== null && response !== void 0 && response.data) {
|
|
92388
92373
|
var data = response.data;
|
|
92389
|
-
|
|
92390
|
-
if (!
|
|
92391
|
-
var storedTmpData =
|
|
92374
|
+
_this5.model = JSON.parse(JSON.stringify(data));
|
|
92375
|
+
if (!_this5.isModalDialog) {
|
|
92376
|
+
var storedTmpData = _this5.getStoredTmpData();
|
|
92392
92377
|
if (storedTmpData) {
|
|
92393
|
-
|
|
92394
|
-
|
|
92378
|
+
_this5.tabmodel = storedTmpData.tabmodel;
|
|
92379
|
+
_this5.updateTmpSavedInfo(storedTmpData.model);
|
|
92395
92380
|
}
|
|
92396
92381
|
}
|
|
92397
|
-
|
|
92398
|
-
|
|
92399
|
-
|
|
92382
|
+
_this5.$puiEvents.$emit("onPui-form-afterGetData-".concat(_this5.modelName), _this5.model);
|
|
92383
|
+
_this5.afterGetData();
|
|
92384
|
+
_this5.changeModelLoaded(true);
|
|
92400
92385
|
}
|
|
92401
92386
|
}, function (error) {
|
|
92402
|
-
|
|
92403
|
-
|
|
92387
|
+
_this5.onError(error);
|
|
92388
|
+
_this5.modelLoaded = true;
|
|
92404
92389
|
});
|
|
92405
92390
|
},
|
|
92406
92391
|
onCreateGetDataFromFilterCombo: function onCreateGetDataFromFilterCombo() {
|
|
92407
|
-
var gridFilterComboName = this.$store.
|
|
92392
|
+
var gridFilterComboName = this.$store.getGridFilterComboNameByModelName(this.modelName);
|
|
92408
92393
|
if (!gridFilterComboName) {
|
|
92409
92394
|
return;
|
|
92410
92395
|
}
|
|
92411
|
-
var gridFilterComboModel = this.$store.
|
|
92396
|
+
var gridFilterComboModel = this.$store.getGridFilterComboModelByName(gridFilterComboName);
|
|
92412
92397
|
if (!gridFilterComboModel) {
|
|
92413
92398
|
return;
|
|
92414
92399
|
}
|
|
92415
92400
|
for (var prop in this.model) {
|
|
92416
|
-
if (Object.
|
|
92401
|
+
if (Object.hasOwn(this.model, prop)) {
|
|
92417
92402
|
var value = gridFilterComboModel[prop];
|
|
92418
92403
|
if (value !== null && value !== undefined) {
|
|
92419
92404
|
this.model[prop] = value;
|
|
@@ -92425,7 +92410,7 @@ function _asyncToGenerator(n) {
|
|
|
92425
92410
|
// do nothing by default
|
|
92426
92411
|
},
|
|
92427
92412
|
headerActions: function headerActions(param) {
|
|
92428
|
-
var
|
|
92413
|
+
var _this6 = this;
|
|
92429
92414
|
if (this.isModalDialog) {
|
|
92430
92415
|
return;
|
|
92431
92416
|
}
|
|
@@ -92447,14 +92432,14 @@ function _asyncToGenerator(n) {
|
|
|
92447
92432
|
self.$puiEvents.$emit('onPui-form-showModelLanguage', showModelLanguage);
|
|
92448
92433
|
}, 10);
|
|
92449
92434
|
this.$puiEvents.$on('onPui-form-changedModelLanguage', function () {
|
|
92450
|
-
|
|
92435
|
+
_this6.getData(param);
|
|
92451
92436
|
});
|
|
92452
92437
|
this.$puiEvents.$on('onPui-form-goToElement', function (type) {
|
|
92453
|
-
|
|
92438
|
+
_this6.goToElement(type);
|
|
92454
92439
|
});
|
|
92455
92440
|
},
|
|
92456
92441
|
back: function back() {
|
|
92457
|
-
this.$store.
|
|
92442
|
+
this.$store.puiRouterGoBack();
|
|
92458
92443
|
},
|
|
92459
92444
|
saveAndNew: function saveAndNew() {
|
|
92460
92445
|
this.internal.afterInsertGoToCreate = true;
|
|
@@ -92467,10 +92452,11 @@ function _asyncToGenerator(n) {
|
|
|
92467
92452
|
this.save(false);
|
|
92468
92453
|
},
|
|
92469
92454
|
save: function save(shouldStayInPage) {
|
|
92455
|
+
var _this$beforeSave, _this$$refs$form;
|
|
92470
92456
|
this.setAfterSaveActions();
|
|
92471
|
-
this.beforeSave
|
|
92457
|
+
(_this$beforeSave = this.beforeSave) === null || _this$beforeSave === void 0 || _this$beforeSave.call(this);
|
|
92472
92458
|
this.formValidationErrors = false;
|
|
92473
|
-
if (this.$refs.form &&
|
|
92459
|
+
if ((_this$$refs$form = this.$refs.form) !== null && _this$$refs$form !== void 0 && _this$$refs$form.validate && !this.$refs.form.validate()) {
|
|
92474
92460
|
this.formValidationErrors = true;
|
|
92475
92461
|
this.$puiNotify.error(this.$t('pui9.error.form_errors'));
|
|
92476
92462
|
this.resetAfterSaveActions();
|
|
@@ -92484,65 +92470,69 @@ function _asyncToGenerator(n) {
|
|
|
92484
92470
|
}
|
|
92485
92471
|
},
|
|
92486
92472
|
update: function update(shouldStayInPage, url) {
|
|
92487
|
-
var
|
|
92473
|
+
var _this7 = this;
|
|
92488
92474
|
var updateHeaders = {};
|
|
92489
92475
|
if (this.dtohash) {
|
|
92490
92476
|
updateHeaders.dtohash = this.dtohash;
|
|
92491
92477
|
}
|
|
92492
|
-
var langStore = this.$store.
|
|
92478
|
+
var langStore = this.$store.getRequestLang;
|
|
92493
92479
|
if (langStore !== null) {
|
|
92494
92480
|
updateHeaders.lang = langStore;
|
|
92495
92481
|
}
|
|
92496
92482
|
this.$puiRequests.putRequest(url, this.model, function (response) {
|
|
92497
|
-
|
|
92498
|
-
|
|
92499
|
-
|
|
92500
|
-
|
|
92501
|
-
|
|
92502
|
-
|
|
92483
|
+
var _this7$afterSave;
|
|
92484
|
+
_this7.saving = false;
|
|
92485
|
+
_this7.$puiEvents.$emit("onPui-editRow-dataTable-".concat(_this7.modelDependency.name), response.data);
|
|
92486
|
+
_this7.$puiNotify.success(_this7.$t('pui9.save.success'));
|
|
92487
|
+
(_this7$afterSave = _this7.afterSave) === null || _this7$afterSave === void 0 || _this7$afterSave.call(_this7, response.data);
|
|
92488
|
+
if (shouldStayInPage !== true) {
|
|
92489
|
+
if (_this7.internal.afterUpdateGoToUpdate) {
|
|
92503
92490
|
// Router not allow to go same router with same parameters
|
|
92504
|
-
|
|
92505
|
-
} else if (
|
|
92506
|
-
|
|
92491
|
+
_this7.refreshRouter();
|
|
92492
|
+
} else if (_this7.internal.afterUpdateGoToCreate) {
|
|
92493
|
+
_this7.goToCreate();
|
|
92507
92494
|
} else {
|
|
92508
|
-
|
|
92495
|
+
_this7.back();
|
|
92509
92496
|
}
|
|
92510
92497
|
}
|
|
92511
|
-
|
|
92498
|
+
_this7.resetAfterSaveActions();
|
|
92512
92499
|
}, function (error) {
|
|
92513
|
-
|
|
92514
|
-
|
|
92515
|
-
|
|
92516
|
-
|
|
92517
|
-
|
|
92500
|
+
var _this7$onSaveError, _error$response2;
|
|
92501
|
+
_this7.resetAfterSaveActions();
|
|
92502
|
+
_this7.saving = false;
|
|
92503
|
+
(_this7$onSaveError = _this7.onSaveError) === null || _this7$onSaveError === void 0 || _this7$onSaveError.call(_this7);
|
|
92504
|
+
if (((_error$response2 = error.response) === null || _error$response2 === void 0 || (_error$response2 = _error$response2.data) === null || _error$response2 === void 0 ? void 0 : _error$response2.internalCode) === 807) {
|
|
92505
|
+
_this7.$puiEvents.$emit('onPuiShowConcurrencyErrorModal');
|
|
92518
92506
|
} else {
|
|
92519
|
-
|
|
92507
|
+
_this7.onError(error);
|
|
92520
92508
|
}
|
|
92521
92509
|
}, updateHeaders);
|
|
92522
92510
|
},
|
|
92523
92511
|
insert: function insert(shouldStayInPage, url) {
|
|
92524
|
-
var
|
|
92512
|
+
var _this8 = this;
|
|
92525
92513
|
this.$puiRequests.postRequest(url, this.model, function (response) {
|
|
92526
|
-
|
|
92527
|
-
|
|
92528
|
-
|
|
92529
|
-
|
|
92530
|
-
|
|
92531
|
-
|
|
92532
|
-
|
|
92533
|
-
|
|
92514
|
+
var _this8$afterSave;
|
|
92515
|
+
_this8.saving = false;
|
|
92516
|
+
_this8.$puiEvents.$emit("onPui-insertRow-dataTable-".concat(_this8.modelDependency.name), response.data);
|
|
92517
|
+
_this8.$puiNotify.success(_this8.$t('pui9.save.success'));
|
|
92518
|
+
(_this8$afterSave = _this8.afterSave) === null || _this8$afterSave === void 0 || _this8$afterSave.call(_this8, response.data);
|
|
92519
|
+
if (shouldStayInPage !== true) {
|
|
92520
|
+
if (_this8.internal.afterInsertGoToUpdate) {
|
|
92521
|
+
_this8.goToUpdate(response.data);
|
|
92522
|
+
} else if (_this8.internal.afterInsertGoToCreate) {
|
|
92534
92523
|
// Router not allow to go same router with same parameters
|
|
92535
|
-
|
|
92524
|
+
_this8.refreshRouter();
|
|
92536
92525
|
} else {
|
|
92537
|
-
|
|
92526
|
+
_this8.back();
|
|
92538
92527
|
}
|
|
92539
|
-
|
|
92528
|
+
_this8.resetAfterSaveActions();
|
|
92540
92529
|
}
|
|
92541
92530
|
}, function (error) {
|
|
92542
|
-
|
|
92543
|
-
|
|
92544
|
-
|
|
92545
|
-
|
|
92531
|
+
var _this8$onSaveError;
|
|
92532
|
+
_this8.resetAfterSaveActions();
|
|
92533
|
+
_this8.saving = false;
|
|
92534
|
+
(_this8$onSaveError = _this8.onSaveError) === null || _this8$onSaveError === void 0 || _this8$onSaveError.call(_this8);
|
|
92535
|
+
_this8.onError(error);
|
|
92546
92536
|
});
|
|
92547
92537
|
},
|
|
92548
92538
|
goToUpdate: function goToUpdate(data) {
|
|
@@ -92561,7 +92551,7 @@ function _asyncToGenerator(n) {
|
|
|
92561
92551
|
query: {},
|
|
92562
92552
|
replace: true
|
|
92563
92553
|
};
|
|
92564
|
-
this.$store.
|
|
92554
|
+
this.$store.puiRouterGoToUrl(params);
|
|
92565
92555
|
},
|
|
92566
92556
|
goToCreate: function goToCreate() {
|
|
92567
92557
|
if (this.storedData) this.modelDependency.storedData = this.storedData;
|
|
@@ -92572,7 +92562,7 @@ function _asyncToGenerator(n) {
|
|
|
92572
92562
|
query: {},
|
|
92573
92563
|
replace: true
|
|
92574
92564
|
};
|
|
92575
|
-
this.$store.
|
|
92565
|
+
this.$store.puiRouterGoToUrl(params);
|
|
92576
92566
|
},
|
|
92577
92567
|
getRouteWithOutMyModel: function getRouteWithOutMyModel() {
|
|
92578
92568
|
var currentRouter = this.$router.currentRoute.path;
|
|
@@ -92610,39 +92600,37 @@ function _asyncToGenerator(n) {
|
|
|
92610
92600
|
},
|
|
92611
92601
|
onModelsLoaded: function onModelsLoaded() {
|
|
92612
92602
|
if (!this.modelDependency) {
|
|
92613
|
-
this.modelDependency = this.$store.
|
|
92603
|
+
this.modelDependency = this.$store.getModelByName(this.modelName);
|
|
92614
92604
|
}
|
|
92615
92605
|
},
|
|
92616
92606
|
subscribeToEvents: function subscribeToEvents() {
|
|
92617
|
-
var
|
|
92607
|
+
var _this9 = this;
|
|
92618
92608
|
this.$puiEvents.$on("onPui-action-before-running-".concat(this.modelName), function (obj) {
|
|
92619
|
-
|
|
92609
|
+
_this9.actionRunning = obj.action;
|
|
92620
92610
|
// Run action
|
|
92621
|
-
|
|
92622
|
-
var selectedRows = [
|
|
92623
|
-
|
|
92611
|
+
_this9.actionFooter = false;
|
|
92612
|
+
var selectedRows = [_this9.model];
|
|
92613
|
+
_this9.actionRunning.runAction.call(_this9, _this9.actionRunning, _this9.modelDependency, selectedRows);
|
|
92624
92614
|
});
|
|
92625
92615
|
this.$puiEvents.$on("onPui-action-running-showFormLoading-".concat(this.modelName), function () {
|
|
92626
|
-
|
|
92616
|
+
_this9.modelLoaded = false;
|
|
92627
92617
|
});
|
|
92628
92618
|
this.$puiEvents.$on("onPui-action-running-ended-".concat(this.modelName), function () {
|
|
92629
|
-
|
|
92619
|
+
_this9.onReady();
|
|
92630
92620
|
});
|
|
92631
92621
|
},
|
|
92632
92622
|
onError: function onError(error) {
|
|
92633
|
-
this.$store.
|
|
92634
|
-
error: error
|
|
92635
|
-
});
|
|
92623
|
+
this.$store.puiRequestShowServerError(error);
|
|
92636
92624
|
},
|
|
92637
92625
|
refreshRouter: function refreshRouter() {
|
|
92638
92626
|
if (this.storedData) this.modelDependency.storedData = this.storedData;
|
|
92639
92627
|
this.$puiEvents.$emit('onPuiRouter-sameModelAndComponent-refreshRouter');
|
|
92640
92628
|
},
|
|
92641
92629
|
changeModelLoaded: function changeModelLoaded(value) {
|
|
92642
|
-
var
|
|
92630
|
+
var _this0 = this;
|
|
92643
92631
|
// The watchers for the this.model react to late and we can use this.modelLoaded for stop firstLoad watcher reactivity using "this.modelLoaded" this value
|
|
92644
92632
|
setTimeout(function () {
|
|
92645
|
-
|
|
92633
|
+
_this0.modelLoaded = value;
|
|
92646
92634
|
}, 5);
|
|
92647
92635
|
},
|
|
92648
92636
|
loadStoredData: function loadStoredData() {
|
|
@@ -92663,31 +92651,31 @@ function _asyncToGenerator(n) {
|
|
|
92663
92651
|
this.internal.afterInsertGoToCreate = false;
|
|
92664
92652
|
},
|
|
92665
92653
|
goToElement: function goToElement(type) {
|
|
92666
|
-
var
|
|
92654
|
+
var _this1 = this;
|
|
92667
92655
|
return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
92668
92656
|
var objPk, pkColumns, calcPk;
|
|
92669
92657
|
return _regenerator().w(function (_context) {
|
|
92670
92658
|
while (1) switch (_context.n) {
|
|
92671
92659
|
case 0:
|
|
92672
92660
|
objPk = {};
|
|
92673
|
-
|
|
92661
|
+
_this1.modelDependency.columns.filter(function (c) {
|
|
92674
92662
|
return c.isPk;
|
|
92675
92663
|
}).map(function (c) {
|
|
92676
|
-
return objPk[c.name] =
|
|
92664
|
+
return objPk[c.name] = _this1.model[c.name];
|
|
92677
92665
|
});
|
|
92678
|
-
pkColumns =
|
|
92666
|
+
pkColumns = _this1.modelDependency.columns.filter(function (c) {
|
|
92679
92667
|
return c.isPk;
|
|
92680
92668
|
}).map(function (c) {
|
|
92681
92669
|
return c.name;
|
|
92682
92670
|
});
|
|
92683
92671
|
_context.n = 1;
|
|
92684
|
-
return
|
|
92672
|
+
return _this1.getPkFromList(JSON.stringify(objPk), pkColumns, type);
|
|
92685
92673
|
case 1:
|
|
92686
92674
|
calcPk = _context.v;
|
|
92687
92675
|
if (calcPk) {
|
|
92688
|
-
|
|
92676
|
+
_this1.goToElementFromPk(calcPk);
|
|
92689
92677
|
} else {
|
|
92690
|
-
|
|
92678
|
+
_this1.$puiNotify.warning(_this1.$t('form.prevnextbtns_nomorerecords'));
|
|
92691
92679
|
}
|
|
92692
92680
|
case 2:
|
|
92693
92681
|
return _context.a(2);
|
|
@@ -92696,9 +92684,10 @@ function _asyncToGenerator(n) {
|
|
|
92696
92684
|
}))();
|
|
92697
92685
|
},
|
|
92698
92686
|
getPkFromList: function getPkFromList(currentPk, pkColumns, type, page) {
|
|
92699
|
-
var
|
|
92687
|
+
var _this10 = this;
|
|
92700
92688
|
return _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
92701
|
-
var
|
|
92689
|
+
var _responseData$data;
|
|
92690
|
+
var config, _yield$_this10$$puiRe, responseData, dataLength, index, item, objPk, i, _dataLength, _item, _objPk, _index;
|
|
92702
92691
|
return _regenerator().w(function (_context2) {
|
|
92703
92692
|
while (1) switch (_context2.n) {
|
|
92704
92693
|
case 0:
|
|
@@ -92708,7 +92697,7 @@ function _asyncToGenerator(n) {
|
|
|
92708
92697
|
}
|
|
92709
92698
|
return _context2.a(2);
|
|
92710
92699
|
case 1:
|
|
92711
|
-
config = localStorage.getItem("pui9_datatable_".concat(
|
|
92700
|
+
config = localStorage.getItem("pui9_datatable_".concat(_this10.modelDependency.name));
|
|
92712
92701
|
if (config) {
|
|
92713
92702
|
_context2.n = 2;
|
|
92714
92703
|
break;
|
|
@@ -92718,20 +92707,20 @@ function _asyncToGenerator(n) {
|
|
|
92718
92707
|
config = JSON.parse(config);
|
|
92719
92708
|
if (page != undefined) {
|
|
92720
92709
|
config.page = page;
|
|
92721
|
-
localStorage.setItem("pui9_datatable_".concat(
|
|
92710
|
+
localStorage.setItem("pui9_datatable_".concat(_this10.modelDependency.name), JSON.stringify(config));
|
|
92722
92711
|
}
|
|
92723
92712
|
_context2.n = 3;
|
|
92724
|
-
return
|
|
92713
|
+
return _this10.$puiRequests.postRequest('/puisearch', config);
|
|
92725
92714
|
case 3:
|
|
92726
|
-
_yield$
|
|
92727
|
-
responseData = _yield$
|
|
92728
|
-
if (
|
|
92715
|
+
_yield$_this10$$puiRe = _context2.v;
|
|
92716
|
+
responseData = _yield$_this10$$puiRe.data;
|
|
92717
|
+
if (responseData !== null && responseData !== void 0 && (_responseData$data = responseData.data) !== null && _responseData$data !== void 0 && _responseData$data.length) {
|
|
92729
92718
|
_context2.n = 4;
|
|
92730
92719
|
break;
|
|
92731
92720
|
}
|
|
92732
92721
|
if (page != undefined) {
|
|
92733
92722
|
config.page = page - 1;
|
|
92734
|
-
localStorage.setItem("pui9_datatable_".concat(
|
|
92723
|
+
localStorage.setItem("pui9_datatable_".concat(_this10.modelDependency.name), JSON.stringify(config));
|
|
92735
92724
|
}
|
|
92736
92725
|
return _context2.a(2);
|
|
92737
92726
|
case 4:
|
|
@@ -92742,7 +92731,7 @@ function _asyncToGenerator(n) {
|
|
|
92742
92731
|
dataLength = responseData.data.length;
|
|
92743
92732
|
index = type === 'PREV' ? dataLength - 1 : 0;
|
|
92744
92733
|
item = responseData.data[index];
|
|
92745
|
-
objPk =
|
|
92734
|
+
objPk = _this10.getObjectPk(pkColumns, item);
|
|
92746
92735
|
return _context2.a(2, JSON.stringify(objPk));
|
|
92747
92736
|
case 5:
|
|
92748
92737
|
i = 0, _dataLength = responseData.data.length;
|
|
@@ -92752,7 +92741,7 @@ function _asyncToGenerator(n) {
|
|
|
92752
92741
|
break;
|
|
92753
92742
|
}
|
|
92754
92743
|
_item = responseData.data[i];
|
|
92755
|
-
_objPk =
|
|
92744
|
+
_objPk = _this10.getObjectPk(pkColumns, _item);
|
|
92756
92745
|
if (!(currentPk == JSON.stringify(_objPk))) {
|
|
92757
92746
|
_context2.n = 9;
|
|
92758
92747
|
break;
|
|
@@ -92761,17 +92750,17 @@ function _asyncToGenerator(n) {
|
|
|
92761
92750
|
_context2.n = 7;
|
|
92762
92751
|
break;
|
|
92763
92752
|
}
|
|
92764
|
-
return _context2.a(2,
|
|
92753
|
+
return _context2.a(2, _this10.getPkFromList(currentPk, pkColumns, type, config.page - 1));
|
|
92765
92754
|
case 7:
|
|
92766
92755
|
if (!(i == _dataLength - 1 && type === 'NEXT')) {
|
|
92767
92756
|
_context2.n = 8;
|
|
92768
92757
|
break;
|
|
92769
92758
|
}
|
|
92770
|
-
return _context2.a(2,
|
|
92759
|
+
return _context2.a(2, _this10.getPkFromList(currentPk, pkColumns, type, config.page + 1));
|
|
92771
92760
|
case 8:
|
|
92772
92761
|
_index = type === 'PREV' ? i - 1 : i + 1;
|
|
92773
92762
|
_item = responseData.data[_index];
|
|
92774
|
-
_objPk =
|
|
92763
|
+
_objPk = _this10.getObjectPk(pkColumns, _item);
|
|
92775
92764
|
return _context2.a(2, JSON.stringify(_objPk));
|
|
92776
92765
|
case 9:
|
|
92777
92766
|
i++;
|
|
@@ -92808,7 +92797,7 @@ function _asyncToGenerator(n) {
|
|
|
92808
92797
|
query: {},
|
|
92809
92798
|
replace: true
|
|
92810
92799
|
};
|
|
92811
|
-
this.$store.
|
|
92800
|
+
this.$store.puiRouterGoToUrl(params);
|
|
92812
92801
|
}
|
|
92813
92802
|
}
|
|
92814
92803
|
});
|
|
@@ -92854,7 +92843,6 @@ function _asyncToGenerator(n) {
|
|
|
92854
92843
|
|
|
92855
92844
|
|
|
92856
92845
|
|
|
92857
|
-
|
|
92858
92846
|
|
|
92859
92847
|
|
|
92860
92848
|
var Components = {
|
|
@@ -92889,8 +92877,11 @@ var Components = {
|
|
|
92889
92877
|
PuiModalDialog: PuiModalDialog,
|
|
92890
92878
|
PuiModalDialogForm: PuiModalDialogForm,
|
|
92891
92879
|
PuiSelect: PuiSelect,
|
|
92892
|
-
|
|
92880
|
+
PuiDetailFormButtons: PuiDetailFormButtons,
|
|
92881
|
+
PuiDetailFormDialog: PuiDetailFormDialog
|
|
92893
92882
|
};
|
|
92883
|
+
|
|
92884
|
+
|
|
92894
92885
|
/* harmony default export */ var src_0 = ({
|
|
92895
92886
|
install: function install(Vue) {
|
|
92896
92887
|
Object.keys(Components).forEach(function (name) {
|