tg-controls_cli 0.1.3 → 0.1.4

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.
@@ -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=011b788f
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=26a30eca
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
- })], 2)]) : _vm._e();
36459
- }), 0), _vm.buttons != false ? _c('div', {
36458
+ }), _vm.buttons != false && _vm.inlinebuttons == true && _vm.schema.length - 1 == parentIndex ? _c('div', {
36459
+ class: _vm.getInlineButtonClasses(group.layoutType, group.Data.length)
36460
+ }, [_vm.renderButtons(_vm.buttons).length == 0 ? _c('div', {
36461
+ staticClass: "col-lg-6 col-md-6 p-0 pt-4"
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
+ staticClass: "col-lg-6 col-md-6 p-0 pt-4"
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=011b788f
36554
+ // CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=26a30eca
36514
36555
 
36515
36556
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
36516
36557
  var es_array_push = __webpack_require__("14d9");
@@ -46302,6 +46343,10 @@ var DateRangeField_component = normalizeComponent(
46302
46343
  mandatorytext: {
46303
46344
  type: [String, Boolean],
46304
46345
  default: false
46346
+ },
46347
+ inlinebuttons: {
46348
+ type: Boolean,
46349
+ default: false
46305
46350
  }
46306
46351
  },
46307
46352
  watch: {
@@ -46830,6 +46875,21 @@ var DateRangeField_component = normalizeComponent(
46830
46875
  returnvalue[group.class] = true;
46831
46876
  }
46832
46877
  return returnvalue;
46878
+ },
46879
+ getInlineButtonClasses: function (layoutType, fieldCount) {
46880
+ var rtnValue = "col-sm-12 col-md-12 float-left";
46881
+ if (layoutType == "single") {
46882
+ rtnValue += " col-lg-12 col-xl-12";
46883
+ } else if (layoutType == "double" && fieldCount % 2 == 0) {
46884
+ rtnValue += " col-lg-6 col-xl-6";
46885
+ } else if (layoutType == "triple" && fieldCount % 3 == 0) {
46886
+ rtnValue += " col-lg-4 col-xl-4";
46887
+ } else if (layoutType == "four" && fieldCount % 4 == 0) {
46888
+ rtnValue += " col-lg-3 col-xl-3";
46889
+ } else {
46890
+ rtnValue += " col-lg-12 col-xl-12 text-right";
46891
+ }
46892
+ return rtnValue;
46833
46893
  }
46834
46894
  },
46835
46895
  created: function () {}