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.umd.js CHANGED
@@ -36343,7 +36343,7 @@ if (typeof window !== 'undefined') {
36343
36343
  // Indicate to webpack that this file can be concatenated
36344
36344
  /* harmony default export */ var setPublicPath = (null);
36345
36345
 
36346
- // 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
36346
+ // 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
36347
36347
  var render = function render() {
36348
36348
  var _vm = this,
36349
36349
  _c = _vm._self._c;
@@ -36464,8 +36464,49 @@ var render = function render() {
36464
36464
  }
36465
36465
  }], null, true)
36466
36466
  })] : _vm._e()], 2) : _vm._e()]);
36467
- })], 2)]) : _vm._e();
36468
- }), 0), _vm.buttons != false ? _c('div', {
36467
+ }), _vm.buttons != false && _vm.inlinebuttons == true && _vm.schema.length - 1 == parentIndex ? _c('div', {
36468
+ class: _vm.getInlineButtonClasses(group.layoutType, group.Data)
36469
+ }, [_vm.renderButtons(_vm.buttons).length == 0 ? _c('div', {
36470
+ class: _vm.buttonClasses
36471
+ }, [_c('button', {
36472
+ staticClass: "btn btn-success",
36473
+ attrs: {
36474
+ "type": "submit"
36475
+ }
36476
+ }, [_vm._v("Submit")])]) : _vm._e(), _vm.renderButtons(_vm.buttons).length >= 0 ? _c('div', {
36477
+ class: _vm.buttonClasses
36478
+ }, [_vm._l(_vm.buttons, function (button, index) {
36479
+ return [button.type && button.type.toLowerCase() == 'submit' && (button.hasOwnProperty('isVisible') == false || button.hasOwnProperty('isVisible') && button.isVisible == true) ? _c('button', {
36480
+ class: button.class,
36481
+ style: index > 0 ? 'margin-left:5px;' : '',
36482
+ attrs: {
36483
+ "type": button.type
36484
+ },
36485
+ domProps: {
36486
+ "innerHTML": _vm._s(button.text)
36487
+ },
36488
+ on: {
36489
+ "click": function ($event) {
36490
+ return _vm.onButtonClick(button);
36491
+ }
36492
+ }
36493
+ }) : _vm._e(), button.type && button.type.toLowerCase() != 'submit' && (button.hasOwnProperty('isVisible') == false || button.hasOwnProperty('isVisible') && button.isVisible == true) ? _c('button', {
36494
+ class: button.class,
36495
+ style: index > 0 ? 'margin-left:5px;' : '',
36496
+ attrs: {
36497
+ "type": button.type
36498
+ },
36499
+ domProps: {
36500
+ "innerHTML": _vm._s(button.text)
36501
+ },
36502
+ on: {
36503
+ "click": function ($event) {
36504
+ return _vm.onButtonClick(button);
36505
+ }
36506
+ }
36507
+ }) : _vm._e()];
36508
+ })], 2) : _vm._e()]) : _vm._e()], 2)]) : _vm._e();
36509
+ }), 0), _vm.buttons != false && _vm.inlinebuttons == false ? _c('div', {
36469
36510
  staticClass: "col-12 mt-3 p-0"
36470
36511
  }, [_c('div', {
36471
36512
  staticClass: "row flex-row-reverse"
@@ -36519,7 +36560,7 @@ var render = function render() {
36519
36560
  };
36520
36561
  var staticRenderFns = [];
36521
36562
 
36522
- // CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=011b788f
36563
+ // CONCATENATED MODULE: ./src/components/DynamicForm.vue?vue&type=template&id=0826dbeb
36523
36564
 
36524
36565
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
36525
36566
  var es_array_push = __webpack_require__("14d9");
@@ -46291,7 +46332,8 @@ var DateRangeField_component = normalizeComponent(
46291
46332
  return {
46292
46333
  //ValidationRules: null,
46293
46334
  clickedButton: null,
46294
- keyForComponentUpdate: 0
46335
+ keyForComponentUpdate: 0,
46336
+ buttonClasses: "col-lg-6 col-md-6 p-0 pt-4"
46295
46337
  };
46296
46338
  },
46297
46339
  props: {
@@ -46311,6 +46353,10 @@ var DateRangeField_component = normalizeComponent(
46311
46353
  mandatorytext: {
46312
46354
  type: [String, Boolean],
46313
46355
  default: false
46356
+ },
46357
+ inlinebuttons: {
46358
+ type: Boolean,
46359
+ default: false
46314
46360
  }
46315
46361
  },
46316
46362
  watch: {
@@ -46839,6 +46885,25 @@ var DateRangeField_component = normalizeComponent(
46839
46885
  returnvalue[group.class] = true;
46840
46886
  }
46841
46887
  return returnvalue;
46888
+ },
46889
+ getInlineButtonClasses: function (layoutType, fields) {
46890
+ var fieldCount = fields.filter(x => {
46891
+ return x.visibility == true || typeof x.visibility == 'undefined';
46892
+ }).length;
46893
+ var rtnValue = "col-sm-12 col-md-12 float-left";
46894
+ if (layoutType == "single") {
46895
+ rtnValue += " col-lg-12 col-xl-12";
46896
+ } else if (layoutType == "double" && fieldCount % 2 != 0) {
46897
+ rtnValue += " col-lg-6 col-xl-6";
46898
+ } else if (layoutType == "triple" && fieldCount % 3 != 0) {
46899
+ rtnValue += " col-lg-4 col-xl-4";
46900
+ } else if (layoutType == "four" && fieldCount % 4 != 0) {
46901
+ rtnValue += " col-lg-3 col-xl-3";
46902
+ } else {
46903
+ buttonClasses = "col-lg-6 col-md-6 pr-0 float-left text-right";
46904
+ rtnValue += " col-lg-12 col-xl-12 text-right";
46905
+ }
46906
+ return rtnValue;
46842
46907
  }
46843
46908
  },
46844
46909
  created: function () {}