gd-bs 5.7.4 → 5.7.7

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.
@@ -49,19 +49,12 @@ var _CheckboxGroup = /** @class */ (function (_super) {
49
49
  }
50
50
  // Configure the card group
51
51
  _CheckboxGroup.prototype.configure = function (cbTemplate) {
52
- var colSize = this.props.colSize > 0 && this.props.colSize < 13 ? this.props.colSize : (this.props.label ? 10 : 12);
53
52
  var renderRow = typeof (this.props.renderRow) === "boolean" ? this.props.renderRow : true;
54
- // See if we are not rendering a row
55
- if (!renderRow) {
56
- // Remove the row class
57
- this.el.classList.remove("row");
58
- }
59
53
  // See if a label is defined
60
54
  var label = this.el.querySelector("legend");
61
55
  if (label) {
62
56
  if (this.props.label && this.props.hideLabel != true) {
63
57
  // Add the label
64
- renderRow ? label.classList.add("col-" + (12 - colSize)) : null;
65
58
  label.innerHTML = this.props.label;
66
59
  }
67
60
  else {
@@ -72,11 +65,7 @@ var _CheckboxGroup = /** @class */ (function (_super) {
72
65
  // Get the group and configure the size
73
66
  var group = this.el.querySelector("div");
74
67
  if (group) {
75
- if (renderRow) {
76
- // Set the class
77
- group.classList.add("col-" + colSize);
78
- }
79
- else {
68
+ if (!renderRow) {
80
69
  // Remove the group element
81
70
  this.el.removeChild(group);
82
71
  }
@@ -36,6 +36,9 @@ var CheckboxItem = /** @class */ (function () {
36
36
  // Default the title property for the checkbox
37
37
  this._elCheckbox.title = this.props.label || this._parent.title || "";
38
38
  }
39
+ // Set the column size
40
+ var colSize = this._parent.colSize > 0 && this._parent.colSize < 13 ? this._parent.colSize : 12;
41
+ this._el.classList.add("col-" + colSize);
39
42
  // See if the title property is defined
40
43
  if (this._parent.title) {
41
44
  // Set the title
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HTMLSwitch = exports.HTMLRadio = exports.HTMLCheckbox = exports.HTML = void 0;
4
4
  // Checkbox
5
- exports.HTML = "\n<div class=\"row\">\n <legend class=\"col-form-label\"></legend>\n <div></div>\n</div>".trim();
5
+ exports.HTML = "\n<div>\n <legend class=\"col-form-label\"></legend>\n <div class=\"row\"></div>\n</div>".trim();
6
6
  // Checkbox
7
7
  exports.HTMLCheckbox = "\n<div class=\"form-check\">\n <input type=\"checkbox\" class=\"form-check-input\" />\n <label class=\"form-check-label\"></label>\n</div>".trim();
8
8
  // Radio
@@ -111,6 +111,7 @@ var FormControl = /** @class */ (function () {
111
111
  isReadonly: this._props.isReadonly,
112
112
  items: cbProps.items,
113
113
  onChange: cbProps.onChange,
114
+ renderRow: cbProps.renderRow,
114
115
  title: this._props.title,
115
116
  type: checkboxGroup_1.CheckboxGroupTypes.Checkbox,
116
117
  value: this._props.value
@@ -217,6 +218,7 @@ var FormControl = /** @class */ (function () {
217
218
  items: cbMultiProps.items,
218
219
  multi: true,
219
220
  onChange: cbMultiProps.onChange,
221
+ renderRow: cbMultiProps.renderRow,
220
222
  title: this._props.title,
221
223
  type: checkboxGroup_1.CheckboxGroupTypes.Checkbox,
222
224
  value: this._props.value
@@ -263,6 +265,7 @@ var FormControl = /** @class */ (function () {
263
265
  items: this._props.items,
264
266
  multi: true,
265
267
  onChange: this._props.onChange,
268
+ renderRow: this._props.renderRow,
266
269
  title: this._props.title,
267
270
  type: checkboxGroup_1.CheckboxGroupTypes.Radio,
268
271
  value: this._props.value
@@ -280,6 +283,7 @@ var FormControl = /** @class */ (function () {
280
283
  items: this._props.items,
281
284
  multi: true,
282
285
  onChange: this._props.onChange,
286
+ renderRow: this._props.renderRow,
283
287
  title: this._props.title,
284
288
  type: checkboxGroup_1.CheckboxGroupTypes.Switch,
285
289
  value: this._props.value
@@ -311,6 +315,7 @@ var FormControl = /** @class */ (function () {
311
315
  isReadonly: this._props.isReadonly,
312
316
  items: this._props.items,
313
317
  onChange: this._props.onChange,
318
+ renderRow: this._props.renderRow,
314
319
  title: this._props.title,
315
320
  type: checkboxGroup_1.CheckboxGroupTypes.Radio,
316
321
  value: this._props.value
@@ -359,6 +364,7 @@ var FormControl = /** @class */ (function () {
359
364
  isReadonly: this._props.isReadonly,
360
365
  items: this._props.items,
361
366
  onChange: this._props.onChange,
367
+ renderRow: this._props.renderRow,
362
368
  title: this._props.title,
363
369
  type: checkboxGroup_1.CheckboxGroupTypes.Switch,
364
370
  value: this._props.value
@@ -27,7 +27,7 @@ var __assign = (this && this.__assign) || function () {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Popover = exports.PopoverPlacements = exports.PopoverTypes = void 0;
30
- var tippy_js_1 = require("../../tippy.js");
30
+ var tippy_js_1 = require("tippy.js");
31
31
  var button_1 = require("../button");
32
32
  var base_1 = require("../base");
33
33
  var common_1 = require("../common");
@@ -27,7 +27,7 @@ var __assign = (this && this.__assign) || function () {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.Tooltip = exports.TooltipPlacements = exports.TooltipTypes = void 0;
30
- var tippy_js_1 = require("../../tippy.js");
30
+ var tippy_js_1 = require("tippy.js");
31
31
  var base_1 = require("../base");
32
32
  var button_1 = require("../button");
33
33
  var common_1 = require("../common");
@@ -9,7 +9,7 @@ require("./ie");
9
9
  var Components = require("./components");
10
10
  exports.Components = Components;
11
11
  // TippyJS library
12
- var tippy_js_1 = require("./tippy.js");
12
+ var tippy_js_1 = require("tippy.js");
13
13
  exports.tippy = tippy_js_1.default;
14
14
  // Icons
15
15
  var icons_1 = require("./icons");
package/build/index.js CHANGED
@@ -9,7 +9,7 @@ require("./ie");
9
9
  var Components = require("./components");
10
10
  exports.Components = Components;
11
11
  // TippyJS library
12
- var tippy_js_1 = require("./tippy.js");
12
+ var tippy_js_1 = require("tippy.js");
13
13
  exports.tippy = tippy_js_1.default;
14
14
  // Bootstrap Global library
15
15
  var BS = { Components: Components, tippy: tippy_js_1.default };
package/clean.js CHANGED
@@ -36,14 +36,5 @@ deleteDirectory("./src/icons");
36
36
  fs.mkdirSync("./src/icons");
37
37
  fs.mkdirSync("./src/icons/svgs");
38
38
 
39
- // Copy the popper library
40
- var popperConfig = require("./node_modules/@popperjs/core/package.json");
41
- fs.copyFileSync("./node_modules/@popperjs/core/" + popperConfig.main, "./src/tippy.js/popper.js");
42
-
43
- // Copy the tippy.js library
44
- var tippyConfig = require("./node_modules/tippy.js/package.json");
45
- var tippyJS = fs.readFileSync("./node_modules/tippy.js/" + tippyConfig.main).toString();
46
- fs.writeFileSync("./src/tippy.js/tippy.js", tippyJS.replace("var core = require('@popperjs/core');", "var core = require('./popper');"));
47
-
48
39
  // Log
49
40
  console.log("Successfully cleaned the library");