tg-controls_cli 0.1.3 → 0.1.5
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 +70 -5
- package/dist/myLib.common.js.map +1 -1
- package/dist/myLib.umd.js +70 -5
- package/dist/myLib.umd.js.map +1 -1
- package/dist/myLib.umd.min.js +4 -4
- package/dist/myLib.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/myLib.common.js
CHANGED
|
@@ -36334,7 +36334,7 @@ if (typeof window !== 'undefined') {
|
|
|
36334
36334
|
// Indicate to webpack that this file can be concatenated
|
|
36335
36335
|
/* harmony default export */ var setPublicPath = (null);
|
|
36336
36336
|
|
|
36337
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4289e630-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=
|
|
36337
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4289e630-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=0826dbeb
|
|
36338
36338
|
var render = function render() {
|
|
36339
36339
|
var _vm = this,
|
|
36340
36340
|
_c = _vm._self._c;
|
|
@@ -36455,8 +36455,49 @@ var render = function render() {
|
|
|
36455
36455
|
}
|
|
36456
36456
|
}], null, true)
|
|
36457
36457
|
})] : _vm._e()], 2) : _vm._e()]);
|
|
36458
|
-
})
|
|
36459
|
-
|
|
36458
|
+
}), _vm.buttons != false && _vm.inlinebuttons == true && _vm.schema.length - 1 == parentIndex ? _c('div', {
|
|
36459
|
+
class: _vm.getInlineButtonClasses(group.layoutType, group.Data)
|
|
36460
|
+
}, [_vm.renderButtons(_vm.buttons).length == 0 ? _c('div', {
|
|
36461
|
+
class: _vm.buttonClasses
|
|
36462
|
+
}, [_c('button', {
|
|
36463
|
+
staticClass: "btn btn-success",
|
|
36464
|
+
attrs: {
|
|
36465
|
+
"type": "submit"
|
|
36466
|
+
}
|
|
36467
|
+
}, [_vm._v("Submit")])]) : _vm._e(), _vm.renderButtons(_vm.buttons).length >= 0 ? _c('div', {
|
|
36468
|
+
class: _vm.buttonClasses
|
|
36469
|
+
}, [_vm._l(_vm.buttons, function (button, index) {
|
|
36470
|
+
return [button.type && button.type.toLowerCase() == 'submit' && (button.hasOwnProperty('isVisible') == false || button.hasOwnProperty('isVisible') && button.isVisible == true) ? _c('button', {
|
|
36471
|
+
class: button.class,
|
|
36472
|
+
style: index > 0 ? 'margin-left:5px;' : '',
|
|
36473
|
+
attrs: {
|
|
36474
|
+
"type": button.type
|
|
36475
|
+
},
|
|
36476
|
+
domProps: {
|
|
36477
|
+
"innerHTML": _vm._s(button.text)
|
|
36478
|
+
},
|
|
36479
|
+
on: {
|
|
36480
|
+
"click": function ($event) {
|
|
36481
|
+
return _vm.onButtonClick(button);
|
|
36482
|
+
}
|
|
36483
|
+
}
|
|
36484
|
+
}) : _vm._e(), button.type && button.type.toLowerCase() != 'submit' && (button.hasOwnProperty('isVisible') == false || button.hasOwnProperty('isVisible') && button.isVisible == true) ? _c('button', {
|
|
36485
|
+
class: button.class,
|
|
36486
|
+
style: index > 0 ? 'margin-left:5px;' : '',
|
|
36487
|
+
attrs: {
|
|
36488
|
+
"type": button.type
|
|
36489
|
+
},
|
|
36490
|
+
domProps: {
|
|
36491
|
+
"innerHTML": _vm._s(button.text)
|
|
36492
|
+
},
|
|
36493
|
+
on: {
|
|
36494
|
+
"click": function ($event) {
|
|
36495
|
+
return _vm.onButtonClick(button);
|
|
36496
|
+
}
|
|
36497
|
+
}
|
|
36498
|
+
}) : _vm._e()];
|
|
36499
|
+
})], 2) : _vm._e()]) : _vm._e()], 2)]) : _vm._e();
|
|
36500
|
+
}), 0), _vm.buttons != false && _vm.inlinebuttons == false ? _c('div', {
|
|
36460
36501
|
staticClass: "col-12 mt-3 p-0"
|
|
36461
36502
|
}, [_c('div', {
|
|
36462
36503
|
staticClass: "row flex-row-reverse"
|
|
@@ -36510,7 +36551,7 @@ var render = function render() {
|
|
|
36510
36551
|
};
|
|
36511
36552
|
var staticRenderFns = [];
|
|
36512
36553
|
|
|
36513
|
-
// CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=
|
|
36554
|
+
// CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=0826dbeb
|
|
36514
36555
|
|
|
36515
36556
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
36516
36557
|
var es_array_push = __webpack_require__("14d9");
|
|
@@ -46282,7 +46323,8 @@ var DateRangeField_component = normalizeComponent(
|
|
|
46282
46323
|
return {
|
|
46283
46324
|
//ValidationRules: null,
|
|
46284
46325
|
clickedButton: null,
|
|
46285
|
-
keyForComponentUpdate: 0
|
|
46326
|
+
keyForComponentUpdate: 0,
|
|
46327
|
+
buttonClasses: "col-lg-6 col-md-6 p-0 pt-4"
|
|
46286
46328
|
};
|
|
46287
46329
|
},
|
|
46288
46330
|
props: {
|
|
@@ -46302,6 +46344,10 @@ var DateRangeField_component = normalizeComponent(
|
|
|
46302
46344
|
mandatorytext: {
|
|
46303
46345
|
type: [String, Boolean],
|
|
46304
46346
|
default: false
|
|
46347
|
+
},
|
|
46348
|
+
inlinebuttons: {
|
|
46349
|
+
type: Boolean,
|
|
46350
|
+
default: false
|
|
46305
46351
|
}
|
|
46306
46352
|
},
|
|
46307
46353
|
watch: {
|
|
@@ -46830,6 +46876,25 @@ var DateRangeField_component = normalizeComponent(
|
|
|
46830
46876
|
returnvalue[group.class] = true;
|
|
46831
46877
|
}
|
|
46832
46878
|
return returnvalue;
|
|
46879
|
+
},
|
|
46880
|
+
getInlineButtonClasses: function (layoutType, fields) {
|
|
46881
|
+
var fieldCount = fields.filter(x => {
|
|
46882
|
+
return x.visibility == true || typeof x.visibility == 'undefined';
|
|
46883
|
+
}).length;
|
|
46884
|
+
var rtnValue = "col-sm-12 col-md-12 float-left";
|
|
46885
|
+
if (layoutType == "single") {
|
|
46886
|
+
rtnValue += " col-lg-12 col-xl-12";
|
|
46887
|
+
} else if (layoutType == "double" && fieldCount % 2 != 0) {
|
|
46888
|
+
rtnValue += " col-lg-6 col-xl-6";
|
|
46889
|
+
} else if (layoutType == "triple" && fieldCount % 3 != 0) {
|
|
46890
|
+
rtnValue += " col-lg-4 col-xl-4";
|
|
46891
|
+
} else if (layoutType == "four" && fieldCount % 4 != 0) {
|
|
46892
|
+
rtnValue += " col-lg-3 col-xl-3";
|
|
46893
|
+
} else {
|
|
46894
|
+
buttonClasses = "col-lg-6 col-md-6 pr-0 float-left text-right";
|
|
46895
|
+
rtnValue += " col-lg-12 col-xl-12 text-right";
|
|
46896
|
+
}
|
|
46897
|
+
return rtnValue;
|
|
46833
46898
|
}
|
|
46834
46899
|
},
|
|
46835
46900
|
created: function () {}
|