tg-controls_cli 0.0.82 → 0.0.83
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/myLib.common.js +324 -32
- package/dist/myLib.common.js.map +1 -1
- package/dist/myLib.umd.js +324 -32
- package/dist/myLib.umd.js.map +1 -1
- package/dist/myLib.umd.min.js +5 -5
- package/dist/myLib.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/myLib.common.js
CHANGED
|
@@ -468,6 +468,17 @@ utils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {
|
|
|
468
468
|
module.exports = Axios;
|
|
469
469
|
|
|
470
470
|
|
|
471
|
+
/***/ }),
|
|
472
|
+
|
|
473
|
+
/***/ "0b9c":
|
|
474
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
475
|
+
|
|
476
|
+
"use strict";
|
|
477
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_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_ColorField_vue_vue_type_style_index_0_id_1af2f90b_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("323d");
|
|
478
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_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_ColorField_vue_vue_type_style_index_0_id_1af2f90b_prod_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_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_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_ColorField_vue_vue_type_style_index_0_id_1af2f90b_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
479
|
+
/* unused harmony reexport * */
|
|
480
|
+
|
|
481
|
+
|
|
471
482
|
/***/ }),
|
|
472
483
|
|
|
473
484
|
/***/ "0c64":
|
|
@@ -745,17 +756,6 @@ $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
|
745
756
|
});
|
|
746
757
|
|
|
747
758
|
|
|
748
|
-
/***/ }),
|
|
749
|
-
|
|
750
|
-
/***/ "1560":
|
|
751
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
752
|
-
|
|
753
|
-
"use strict";
|
|
754
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_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_ColorField_vue_vue_type_style_index_0_id_31e7b536_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("af57");
|
|
755
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_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_ColorField_vue_vue_type_style_index_0_id_31e7b536_prod_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_css_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_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_ColorField_vue_vue_type_style_index_0_id_31e7b536_prod_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
756
|
-
/* unused harmony reexport * */
|
|
757
|
-
|
|
758
|
-
|
|
759
759
|
/***/ }),
|
|
760
760
|
|
|
761
761
|
/***/ "1626":
|
|
@@ -1496,6 +1496,13 @@ module.exports = JSON.parse("{\"code\":\"pt_PT\",\"messages\":{\"alpha\":\"O cam
|
|
|
1496
1496
|
|
|
1497
1497
|
/***/ }),
|
|
1498
1498
|
|
|
1499
|
+
/***/ "323d":
|
|
1500
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1501
|
+
|
|
1502
|
+
// extracted by mini-css-extract-plugin
|
|
1503
|
+
|
|
1504
|
+
/***/ }),
|
|
1505
|
+
|
|
1499
1506
|
/***/ "342f":
|
|
1500
1507
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1501
1508
|
|
|
@@ -25210,13 +25217,6 @@ module.exports = DESCRIPTORS && fails(function () {
|
|
|
25210
25217
|
});
|
|
25211
25218
|
|
|
25212
25219
|
|
|
25213
|
-
/***/ }),
|
|
25214
|
-
|
|
25215
|
-
/***/ "af57":
|
|
25216
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
25217
|
-
|
|
25218
|
-
// extracted by mini-css-extract-plugin
|
|
25219
|
-
|
|
25220
25220
|
/***/ }),
|
|
25221
25221
|
|
|
25222
25222
|
/***/ "b047":
|
|
@@ -34661,7 +34661,7 @@ if (typeof window !== 'undefined') {
|
|
|
34661
34661
|
// Indicate to webpack that this file can be concatenated
|
|
34662
34662
|
/* harmony default export */ var setPublicPath = (null);
|
|
34663
34663
|
|
|
34664
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3b5bb7bf-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/DynamicForm.vue?vue&type=template&id=
|
|
34664
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3b5bb7bf-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/DynamicForm.vue?vue&type=template&id=4b8330af&
|
|
34665
34665
|
var render = function render() {
|
|
34666
34666
|
var _vm = this,
|
|
34667
34667
|
_c = _vm._self._c;
|
|
@@ -34720,7 +34720,7 @@ var render = function render() {
|
|
|
34720
34720
|
class: {
|
|
34721
34721
|
'text-danger': true
|
|
34722
34722
|
}
|
|
34723
|
-
}, [_vm._v("*")]) : _vm._e()]) : _vm._e(), field.userGuide && field.userGuide != '' ? _c('a', {
|
|
34723
|
+
}, [_vm._v("* ")]) : _vm._e()]) : _vm._e(), _vm._v(" "), field.userGuide && field.userGuide != '' ? _c('a', {
|
|
34724
34724
|
attrs: {
|
|
34725
34725
|
"href": "javascript:;",
|
|
34726
34726
|
"title": field.userGuide,
|
|
@@ -34826,7 +34826,7 @@ var render = function render() {
|
|
|
34826
34826
|
};
|
|
34827
34827
|
var staticRenderFns = [];
|
|
34828
34828
|
|
|
34829
|
-
// CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=
|
|
34829
|
+
// CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=4b8330af&
|
|
34830
34830
|
|
|
34831
34831
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
34832
34832
|
var es_array_push = __webpack_require__("14d9");
|
|
@@ -38396,6 +38396,287 @@ var TextField_component = normalizeComponent(
|
|
|
38396
38396
|
)
|
|
38397
38397
|
|
|
38398
38398
|
/* harmony default export */ var TextField = (TextField_component.exports);
|
|
38399
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3b5bb7bf-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/PasswordField.vue?vue&type=template&id=7484374a&
|
|
38400
|
+
var PasswordFieldvue_type_template_id_7484374a_render = function render() {
|
|
38401
|
+
var _vm = this,
|
|
38402
|
+
_c = _vm._self._c;
|
|
38403
|
+
return _c('Field', {
|
|
38404
|
+
staticClass: "w-100",
|
|
38405
|
+
attrs: {
|
|
38406
|
+
"disabled": _vm.fieldInfo.disabled,
|
|
38407
|
+
"name": _vm.GetDisplayLabel(_vm.fieldInfo),
|
|
38408
|
+
"rules": _vm.fieldInfo.validationRules
|
|
38409
|
+
},
|
|
38410
|
+
scopedSlots: _vm._u([{
|
|
38411
|
+
key: "default",
|
|
38412
|
+
fn: function ({
|
|
38413
|
+
errors
|
|
38414
|
+
}) {
|
|
38415
|
+
return [_c('span', {
|
|
38416
|
+
class: {
|
|
38417
|
+
'd-flex ': true,
|
|
38418
|
+
'is-invalid': errors[0]
|
|
38419
|
+
}
|
|
38420
|
+
}, [(_vm.showPassword ? 'text' : 'password') === 'checkbox' ? _c('input', {
|
|
38421
|
+
directives: [{
|
|
38422
|
+
name: "model",
|
|
38423
|
+
rawName: "v-model",
|
|
38424
|
+
value: _vm.fieldInfo.value,
|
|
38425
|
+
expression: "fieldInfo.value"
|
|
38426
|
+
}],
|
|
38427
|
+
class: {
|
|
38428
|
+
'form-control w-100': true,
|
|
38429
|
+
'is-invalid': errors[0]
|
|
38430
|
+
},
|
|
38431
|
+
attrs: {
|
|
38432
|
+
"name": _vm.fieldInfo.name,
|
|
38433
|
+
"id": _vm.fieldInfo.name,
|
|
38434
|
+
"placeholder": _vm.fieldInfo.placeholder,
|
|
38435
|
+
"disabled": _vm.fieldInfo.disabled,
|
|
38436
|
+
"type": "checkbox"
|
|
38437
|
+
},
|
|
38438
|
+
domProps: {
|
|
38439
|
+
"checked": Array.isArray(_vm.fieldInfo.value) ? _vm._i(_vm.fieldInfo.value, null) > -1 : _vm.fieldInfo.value
|
|
38440
|
+
},
|
|
38441
|
+
on: {
|
|
38442
|
+
"change": [function ($event) {
|
|
38443
|
+
var $$a = _vm.fieldInfo.value,
|
|
38444
|
+
$$el = $event.target,
|
|
38445
|
+
$$c = $$el.checked ? true : false;
|
|
38446
|
+
if (Array.isArray($$a)) {
|
|
38447
|
+
var $$v = null,
|
|
38448
|
+
$$i = _vm._i($$a, $$v);
|
|
38449
|
+
if ($$el.checked) {
|
|
38450
|
+
$$i < 0 && _vm.$set(_vm.fieldInfo, "value", $$a.concat([$$v]));
|
|
38451
|
+
} else {
|
|
38452
|
+
$$i > -1 && _vm.$set(_vm.fieldInfo, "value", $$a.slice(0, $$i).concat($$a.slice($$i + 1)));
|
|
38453
|
+
}
|
|
38454
|
+
} else {
|
|
38455
|
+
_vm.$set(_vm.fieldInfo, "value", $$c);
|
|
38456
|
+
}
|
|
38457
|
+
}, function ($event) {
|
|
38458
|
+
return _vm.onChange($event);
|
|
38459
|
+
}],
|
|
38460
|
+
"blur": function ($event) {
|
|
38461
|
+
return _vm.onBlur($event);
|
|
38462
|
+
},
|
|
38463
|
+
"keyup": function ($event) {
|
|
38464
|
+
return _vm.onKeyUp($event);
|
|
38465
|
+
}
|
|
38466
|
+
}
|
|
38467
|
+
}) : (_vm.showPassword ? 'text' : 'password') === 'radio' ? _c('input', {
|
|
38468
|
+
directives: [{
|
|
38469
|
+
name: "model",
|
|
38470
|
+
rawName: "v-model",
|
|
38471
|
+
value: _vm.fieldInfo.value,
|
|
38472
|
+
expression: "fieldInfo.value"
|
|
38473
|
+
}],
|
|
38474
|
+
class: {
|
|
38475
|
+
'form-control w-100': true,
|
|
38476
|
+
'is-invalid': errors[0]
|
|
38477
|
+
},
|
|
38478
|
+
attrs: {
|
|
38479
|
+
"name": _vm.fieldInfo.name,
|
|
38480
|
+
"id": _vm.fieldInfo.name,
|
|
38481
|
+
"placeholder": _vm.fieldInfo.placeholder,
|
|
38482
|
+
"disabled": _vm.fieldInfo.disabled,
|
|
38483
|
+
"type": "radio"
|
|
38484
|
+
},
|
|
38485
|
+
domProps: {
|
|
38486
|
+
"checked": _vm._q(_vm.fieldInfo.value, null)
|
|
38487
|
+
},
|
|
38488
|
+
on: {
|
|
38489
|
+
"change": [function ($event) {
|
|
38490
|
+
return _vm.$set(_vm.fieldInfo, "value", null);
|
|
38491
|
+
}, function ($event) {
|
|
38492
|
+
return _vm.onChange($event);
|
|
38493
|
+
}],
|
|
38494
|
+
"blur": function ($event) {
|
|
38495
|
+
return _vm.onBlur($event);
|
|
38496
|
+
},
|
|
38497
|
+
"keyup": function ($event) {
|
|
38498
|
+
return _vm.onKeyUp($event);
|
|
38499
|
+
}
|
|
38500
|
+
}
|
|
38501
|
+
}) : _c('input', {
|
|
38502
|
+
directives: [{
|
|
38503
|
+
name: "model",
|
|
38504
|
+
rawName: "v-model",
|
|
38505
|
+
value: _vm.fieldInfo.value,
|
|
38506
|
+
expression: "fieldInfo.value"
|
|
38507
|
+
}],
|
|
38508
|
+
class: {
|
|
38509
|
+
'form-control w-100': true,
|
|
38510
|
+
'is-invalid': errors[0]
|
|
38511
|
+
},
|
|
38512
|
+
attrs: {
|
|
38513
|
+
"name": _vm.fieldInfo.name,
|
|
38514
|
+
"id": _vm.fieldInfo.name,
|
|
38515
|
+
"placeholder": _vm.fieldInfo.placeholder,
|
|
38516
|
+
"disabled": _vm.fieldInfo.disabled,
|
|
38517
|
+
"type": _vm.showPassword ? 'text' : 'password'
|
|
38518
|
+
},
|
|
38519
|
+
domProps: {
|
|
38520
|
+
"value": _vm.fieldInfo.value
|
|
38521
|
+
},
|
|
38522
|
+
on: {
|
|
38523
|
+
"change": function ($event) {
|
|
38524
|
+
return _vm.onChange($event);
|
|
38525
|
+
},
|
|
38526
|
+
"blur": function ($event) {
|
|
38527
|
+
return _vm.onBlur($event);
|
|
38528
|
+
},
|
|
38529
|
+
"keyup": function ($event) {
|
|
38530
|
+
return _vm.onKeyUp($event);
|
|
38531
|
+
},
|
|
38532
|
+
"input": function ($event) {
|
|
38533
|
+
if ($event.target.composing) return;
|
|
38534
|
+
_vm.$set(_vm.fieldInfo, "value", $event.target.value);
|
|
38535
|
+
}
|
|
38536
|
+
}
|
|
38537
|
+
}), _c('i', {
|
|
38538
|
+
class: {
|
|
38539
|
+
'fa': true,
|
|
38540
|
+
'fa-eye': !_vm.showPassword,
|
|
38541
|
+
'fa-eye-slash': _vm.showPassword
|
|
38542
|
+
},
|
|
38543
|
+
staticStyle: {
|
|
38544
|
+
"position": "absolute",
|
|
38545
|
+
"right": "0",
|
|
38546
|
+
"padding": "8px",
|
|
38547
|
+
"color": "#b7b7b7"
|
|
38548
|
+
},
|
|
38549
|
+
on: {
|
|
38550
|
+
"click": _vm.showPasswordFunc
|
|
38551
|
+
}
|
|
38552
|
+
}), _vm.showAddIcon() ? _c('div', {
|
|
38553
|
+
staticClass: "ml-2 mt-1"
|
|
38554
|
+
}, [_c('a', {
|
|
38555
|
+
class: _vm.addButtonClass()
|
|
38556
|
+
}, [_c('i', {
|
|
38557
|
+
class: _vm.addIconClass(),
|
|
38558
|
+
attrs: {
|
|
38559
|
+
"alt": "+"
|
|
38560
|
+
},
|
|
38561
|
+
on: {
|
|
38562
|
+
"click": function ($event) {
|
|
38563
|
+
return _vm.onAddButtonClick($event);
|
|
38564
|
+
}
|
|
38565
|
+
}
|
|
38566
|
+
})])]) : _vm._e()]), errors[0] ? _c('span', {
|
|
38567
|
+
staticClass: "invalid-feedback",
|
|
38568
|
+
attrs: {
|
|
38569
|
+
"name": _vm.fieldInfo.name
|
|
38570
|
+
}
|
|
38571
|
+
}, [_vm._v(_vm._s(errors[0]))]) : _vm._e()];
|
|
38572
|
+
}
|
|
38573
|
+
}])
|
|
38574
|
+
});
|
|
38575
|
+
};
|
|
38576
|
+
var PasswordFieldvue_type_template_id_7484374a_staticRenderFns = [];
|
|
38577
|
+
|
|
38578
|
+
// CONCATENATED MODULE: ./src/components/PasswordField.vue?vue&type=template&id=7484374a&
|
|
38579
|
+
|
|
38580
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./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/PasswordField.vue?vue&type=script&lang=js&
|
|
38581
|
+
|
|
38582
|
+
/* harmony default export */ var PasswordFieldvue_type_script_lang_js_ = ({
|
|
38583
|
+
components: {
|
|
38584
|
+
Field: ValidationProvider
|
|
38585
|
+
},
|
|
38586
|
+
props: {
|
|
38587
|
+
lang: {
|
|
38588
|
+
type: String,
|
|
38589
|
+
default: 'en'
|
|
38590
|
+
},
|
|
38591
|
+
fieldInfo: {
|
|
38592
|
+
type: Object,
|
|
38593
|
+
required: true
|
|
38594
|
+
}
|
|
38595
|
+
},
|
|
38596
|
+
data: function () {
|
|
38597
|
+
return {
|
|
38598
|
+
showPassword: false
|
|
38599
|
+
};
|
|
38600
|
+
},
|
|
38601
|
+
mounted: function () {
|
|
38602
|
+
this.fieldInfo.validationRules = getValidationRules(this.fieldInfo.validationRules, this.lang);
|
|
38603
|
+
},
|
|
38604
|
+
methods: {
|
|
38605
|
+
GetDisplayLabel(field) {
|
|
38606
|
+
var labelName = '';
|
|
38607
|
+
if (field.hasOwnProperty('label') && field.label) {
|
|
38608
|
+
labelName = field.label;
|
|
38609
|
+
} else if (field.hasOwnProperty('display_name') && field.display_name) {
|
|
38610
|
+
labelName = field.display_name;
|
|
38611
|
+
}
|
|
38612
|
+
return labelName;
|
|
38613
|
+
},
|
|
38614
|
+
onChange: function (e) {
|
|
38615
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
|
|
38616
|
+
this.fieldInfo.config.onChange(e, this.fieldInfo);
|
|
38617
|
+
}
|
|
38618
|
+
},
|
|
38619
|
+
onBlur: function (e) {
|
|
38620
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onBlur) {
|
|
38621
|
+
this.fieldInfo.config.onBlur(e, this.fieldInfo);
|
|
38622
|
+
}
|
|
38623
|
+
},
|
|
38624
|
+
onKeyUp: function (e) {
|
|
38625
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onKeyUp) {
|
|
38626
|
+
this.fieldInfo.config.onKeyUp(e, this.fieldInfo);
|
|
38627
|
+
}
|
|
38628
|
+
},
|
|
38629
|
+
showAddIcon: function () {
|
|
38630
|
+
if (this.fieldInfo.config && this.fieldInfo.config.showAddIcon) {
|
|
38631
|
+
return this.fieldInfo.config.showAddIcon;
|
|
38632
|
+
}
|
|
38633
|
+
},
|
|
38634
|
+
onAddButtonClick: function (e) {
|
|
38635
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onAddButtonClick) {
|
|
38636
|
+
this.fieldInfo.config.onAddButtonClick(e, this.fieldInfo);
|
|
38637
|
+
}
|
|
38638
|
+
},
|
|
38639
|
+
addButtonClass: function () {
|
|
38640
|
+
if (this.fieldInfo.config && this.fieldInfo.config.addIconBackground) {
|
|
38641
|
+
return "round-icon-small theme-primary " + this.fieldInfo.config.addIconBackground;
|
|
38642
|
+
} else {
|
|
38643
|
+
return "round-icon-small btn-dark theme-primary";
|
|
38644
|
+
}
|
|
38645
|
+
},
|
|
38646
|
+
addIconClass: function () {
|
|
38647
|
+
if (this.fieldInfo.config && this.fieldInfo.config.addIcon) {
|
|
38648
|
+
return "fa text-white pt-7 font-18 " + this.fieldInfo.config.addIcon;
|
|
38649
|
+
} else {
|
|
38650
|
+
return "fa fa-plus text-white pt-7 font-18";
|
|
38651
|
+
}
|
|
38652
|
+
},
|
|
38653
|
+
showPasswordFunc: function () {
|
|
38654
|
+
this.showPassword = !this.showPassword;
|
|
38655
|
+
}
|
|
38656
|
+
}
|
|
38657
|
+
});
|
|
38658
|
+
// CONCATENATED MODULE: ./src/components/PasswordField.vue?vue&type=script&lang=js&
|
|
38659
|
+
/* harmony default export */ var components_PasswordFieldvue_type_script_lang_js_ = (PasswordFieldvue_type_script_lang_js_);
|
|
38660
|
+
// CONCATENATED MODULE: ./src/components/PasswordField.vue
|
|
38661
|
+
|
|
38662
|
+
|
|
38663
|
+
|
|
38664
|
+
|
|
38665
|
+
|
|
38666
|
+
/* normalize component */
|
|
38667
|
+
|
|
38668
|
+
var PasswordField_component = normalizeComponent(
|
|
38669
|
+
components_PasswordFieldvue_type_script_lang_js_,
|
|
38670
|
+
PasswordFieldvue_type_template_id_7484374a_render,
|
|
38671
|
+
PasswordFieldvue_type_template_id_7484374a_staticRenderFns,
|
|
38672
|
+
false,
|
|
38673
|
+
null,
|
|
38674
|
+
null,
|
|
38675
|
+
null
|
|
38676
|
+
|
|
38677
|
+
)
|
|
38678
|
+
|
|
38679
|
+
/* harmony default export */ var PasswordField = (PasswordField_component.exports);
|
|
38399
38680
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3b5bb7bf-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/DateField.vue?vue&type=template&id=545551d4&
|
|
38400
38681
|
var DateFieldvue_type_template_id_545551d4_render = function render() {
|
|
38401
38682
|
var _vm = this,
|
|
@@ -39999,8 +40280,8 @@ var TextAreaField_component = normalizeComponent(
|
|
|
39999
40280
|
)
|
|
40000
40281
|
|
|
40001
40282
|
/* harmony default export */ var TextAreaField = (TextAreaField_component.exports);
|
|
40002
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3b5bb7bf-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/ColorField.vue?vue&type=template&id=
|
|
40003
|
-
var
|
|
40283
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3b5bb7bf-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/ColorField.vue?vue&type=template&id=1af2f90b&
|
|
40284
|
+
var ColorFieldvue_type_template_id_1af2f90b_render = function render() {
|
|
40004
40285
|
var _vm = this,
|
|
40005
40286
|
_c = _vm._self._c;
|
|
40006
40287
|
return _c('div', {
|
|
@@ -40058,9 +40339,9 @@ var ColorFieldvue_type_template_id_31e7b536_render = function render() {
|
|
|
40058
40339
|
}])
|
|
40059
40340
|
})], 1);
|
|
40060
40341
|
};
|
|
40061
|
-
var
|
|
40342
|
+
var ColorFieldvue_type_template_id_1af2f90b_staticRenderFns = [];
|
|
40062
40343
|
|
|
40063
|
-
// CONCATENATED MODULE: ./src/components/ColorField.vue?vue&type=template&id=
|
|
40344
|
+
// CONCATENATED MODULE: ./src/components/ColorField.vue?vue&type=template&id=1af2f90b&
|
|
40064
40345
|
|
|
40065
40346
|
// EXTERNAL MODULE: ./node_modules/vue2-color-picker/dist/vue2-color-picker.js
|
|
40066
40347
|
var vue2_color_picker = __webpack_require__("b9d7");
|
|
@@ -40145,7 +40426,7 @@ var vue2_color_picker_default = /*#__PURE__*/__webpack_require__.n(vue2_color_pi
|
|
|
40145
40426
|
togglePicker: function () {
|
|
40146
40427
|
this.displayPicker ? this.hidePicker() : this.showPicker();
|
|
40147
40428
|
},
|
|
40148
|
-
updateFromInput: function () {
|
|
40429
|
+
updateFromInput: function (e) {
|
|
40149
40430
|
var pattern = new RegExp("^#[0-9A-F]{6}$");
|
|
40150
40431
|
var str = this.colorValue;
|
|
40151
40432
|
if (pattern.test(str)) {
|
|
@@ -40153,6 +40434,9 @@ var vue2_color_picker_default = /*#__PURE__*/__webpack_require__.n(vue2_color_pi
|
|
|
40153
40434
|
} else {
|
|
40154
40435
|
return false;
|
|
40155
40436
|
}
|
|
40437
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
|
|
40438
|
+
this.fieldInfo.config.onChange(e, this.fieldInfo);
|
|
40439
|
+
}
|
|
40156
40440
|
},
|
|
40157
40441
|
updateFromPicker(color) {
|
|
40158
40442
|
this.colors = color;
|
|
@@ -40163,12 +40447,18 @@ var vue2_color_picker_default = /*#__PURE__*/__webpack_require__.n(vue2_color_pi
|
|
|
40163
40447
|
this.colorValue = 'rgba(' + color.rgba.r + ', ' + color.rgba.g + ', ' + color.rgba.b + ', ' + color.rgba.a + ')';
|
|
40164
40448
|
this.fieldInfo.value = this.colorValue;
|
|
40165
40449
|
}
|
|
40450
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
|
|
40451
|
+
this.fieldInfo.config.onChange(color, this.fieldInfo);
|
|
40452
|
+
}
|
|
40166
40453
|
},
|
|
40167
40454
|
documentClick: function (e) {
|
|
40168
40455
|
var el = this.$refs.colorpicker,
|
|
40169
40456
|
target = e.target;
|
|
40170
|
-
if (el !== target && !el.contains(target)) {
|
|
40457
|
+
if (el !== target && typeof el != "undefined" && !el.contains(target)) {
|
|
40171
40458
|
this.hidePicker();
|
|
40459
|
+
if (this.fieldInfo && this.fieldInfo.config && this.fieldInfo.config.onChange) {
|
|
40460
|
+
this.fieldInfo.config.onChange(e, this.fieldInfo);
|
|
40461
|
+
}
|
|
40172
40462
|
}
|
|
40173
40463
|
}
|
|
40174
40464
|
},
|
|
@@ -40185,8 +40475,8 @@ var vue2_color_picker_default = /*#__PURE__*/__webpack_require__.n(vue2_color_pi
|
|
|
40185
40475
|
});
|
|
40186
40476
|
// CONCATENATED MODULE: ./src/components/ColorField.vue?vue&type=script&lang=js&
|
|
40187
40477
|
/* harmony default export */ var components_ColorFieldvue_type_script_lang_js_ = (ColorFieldvue_type_script_lang_js_);
|
|
40188
|
-
// EXTERNAL MODULE: ./src/components/ColorField.vue?vue&type=style&index=0&id=
|
|
40189
|
-
var
|
|
40478
|
+
// EXTERNAL MODULE: ./src/components/ColorField.vue?vue&type=style&index=0&id=1af2f90b&prod&lang=css&
|
|
40479
|
+
var ColorFieldvue_type_style_index_0_id_1af2f90b_prod_lang_css_ = __webpack_require__("0b9c");
|
|
40190
40480
|
|
|
40191
40481
|
// CONCATENATED MODULE: ./src/components/ColorField.vue
|
|
40192
40482
|
|
|
@@ -40199,8 +40489,8 @@ var ColorFieldvue_type_style_index_0_id_31e7b536_prod_lang_css_ = __webpack_requ
|
|
|
40199
40489
|
|
|
40200
40490
|
var ColorField_component = normalizeComponent(
|
|
40201
40491
|
components_ColorFieldvue_type_script_lang_js_,
|
|
40202
|
-
|
|
40203
|
-
|
|
40492
|
+
ColorFieldvue_type_template_id_1af2f90b_render,
|
|
40493
|
+
ColorFieldvue_type_template_id_1af2f90b_staticRenderFns,
|
|
40204
40494
|
false,
|
|
40205
40495
|
null,
|
|
40206
40496
|
null,
|
|
@@ -40895,6 +41185,7 @@ var SlotField_component = normalizeComponent(
|
|
|
40895
41185
|
|
|
40896
41186
|
|
|
40897
41187
|
|
|
41188
|
+
|
|
40898
41189
|
//import { getFormValidationRules } from "./validationMessages.vue"
|
|
40899
41190
|
/* harmony default export */ var DynamicFormvue_type_script_lang_js_ = ({
|
|
40900
41191
|
name: 'DynamicForm',
|
|
@@ -40914,7 +41205,8 @@ var SlotField_component = normalizeComponent(
|
|
|
40914
41205
|
ColorField: ColorField,
|
|
40915
41206
|
FileField: FileField,
|
|
40916
41207
|
TreeSelectField: TreeSelectField,
|
|
40917
|
-
SlotField: SlotField
|
|
41208
|
+
SlotField: SlotField,
|
|
41209
|
+
PasswordField: PasswordField
|
|
40918
41210
|
},
|
|
40919
41211
|
data: function () {
|
|
40920
41212
|
return {
|