gd-bs 5.5.7 → 5.6.0

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.
@@ -205,7 +205,7 @@ var FormControl = /** @class */ (function () {
205
205
  // Add the checkbox group
206
206
  this._cb = checkboxGroup_1.CheckboxGroup({
207
207
  className: className,
208
- colSize: cbProps.colSize,
208
+ colSize: cbMultiProps.colSize,
209
209
  hideLabel: true,
210
210
  isInline: cbMultiProps.isInline,
211
211
  isReadonly: this._props.isReadonly,
@@ -251,7 +251,7 @@ var FormControl = /** @class */ (function () {
251
251
  // Add the checkbox group
252
252
  this._cb = checkboxGroup_1.CheckboxGroup({
253
253
  className: className,
254
- colSize: cbProps.colSize,
254
+ colSize: this._props.colSize,
255
255
  hideLabel: true,
256
256
  isReadonly: this._props.isReadonly,
257
257
  items: this._props.items,
@@ -267,7 +267,7 @@ var FormControl = /** @class */ (function () {
267
267
  // Add the checkbox group
268
268
  this._cb = checkboxGroup_1.CheckboxGroup({
269
269
  className: className,
270
- colSize: cbProps.colSize,
270
+ colSize: this._props.colSize,
271
271
  hideLabel: true,
272
272
  isReadonly: this._props.isReadonly,
273
273
  items: this._props.items,
@@ -297,7 +297,7 @@ var FormControl = /** @class */ (function () {
297
297
  // Add the checkbox group
298
298
  this._cb = checkboxGroup_1.CheckboxGroup({
299
299
  className: className,
300
- colSize: cbProps.colSize,
300
+ colSize: this._props.colSize,
301
301
  hideLabel: true,
302
302
  isReadonly: this._props.isReadonly,
303
303
  items: this._props.items,
@@ -343,7 +343,7 @@ var FormControl = /** @class */ (function () {
343
343
  // Add the checkbox group
344
344
  this._cb = checkboxGroup_1.CheckboxGroup({
345
345
  className: className,
346
- colSize: cbProps.colSize,
346
+ colSize: this._props.colSize,
347
347
  hideLabel: true,
348
348
  isReadonly: this._props.isReadonly,
349
349
  items: this._props.items,
@@ -169,6 +169,21 @@ var _Form = /** @class */ (function (_super) {
169
169
  // Return the values
170
170
  return values;
171
171
  };
172
+ // Inserts a control into the form
173
+ _Form.prototype.insertControl = function (idx, control) {
174
+ // Create the group
175
+ var group = new group_1.FormGroup(control, this.props);
176
+ this._groups.push(group);
177
+ // Validate the index
178
+ if (idx < this.el.childElementCount) {
179
+ // Insert the control
180
+ this.el.insertBefore(group.el, this.el.childNodes[idx]);
181
+ }
182
+ else {
183
+ // Append the control
184
+ this.el.appendChild(group.el);
185
+ }
186
+ };
172
187
  // Validates the form
173
188
  _Form.prototype.isValid = function () {
174
189
  var isValid = true;