gd-bs 6.0.9 → 6.1.1
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/build/components/checkboxGroup/index.js +1 -1
- package/build/components/checkboxGroup/item.js +7 -3
- package/build/components/form/control.js +0 -6
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +3 -3
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/index.html +46 -8
- package/package.json +1 -1
- package/src/components/checkboxGroup/index.ts +1 -1
- package/src/components/checkboxGroup/item.ts +8 -3
- package/src/components/checkboxGroup/types.d.ts +0 -1
- package/src/components/form/control.ts +0 -6
- package/src/components/form/controlTypes.d.ts +0 -1
- package/src/components/navbar/types.d.ts +3 -1
|
@@ -49,7 +49,7 @@ var _CheckboxGroup = /** @class */ (function (_super) {
|
|
|
49
49
|
}
|
|
50
50
|
// Configure the card group
|
|
51
51
|
_CheckboxGroup.prototype.configure = function (cbTemplate) {
|
|
52
|
-
var renderRow = typeof (this.props.
|
|
52
|
+
var renderRow = typeof (this.props.colSize) === "number" ? this.props.colSize > 0 : false;
|
|
53
53
|
// See if a label is defined
|
|
54
54
|
var label = this.el.querySelector("legend");
|
|
55
55
|
if (label) {
|
|
@@ -36,9 +36,13 @@ 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
|
-
//
|
|
40
|
-
var
|
|
41
|
-
|
|
39
|
+
// See if we are rendering a row
|
|
40
|
+
var renderRow = typeof (this._parent.colSize) === "number" ? this._parent.colSize > 0 : false;
|
|
41
|
+
if (renderRow) {
|
|
42
|
+
// Set the column size
|
|
43
|
+
var colSize = this._parent.colSize > 0 && this._parent.colSize < 13 ? this._parent.colSize : 12;
|
|
44
|
+
this._el.classList.add("col-" + colSize);
|
|
45
|
+
}
|
|
42
46
|
// See if the title property is defined
|
|
43
47
|
if (this._parent.title) {
|
|
44
48
|
// Set the title
|
|
@@ -114,7 +114,6 @@ var FormControl = /** @class */ (function () {
|
|
|
114
114
|
isReadonly: this._props.isReadonly,
|
|
115
115
|
items: cbProps.items,
|
|
116
116
|
onChange: cbProps.onChange,
|
|
117
|
-
renderRow: cbProps.renderRow,
|
|
118
117
|
title: this._props.title,
|
|
119
118
|
type: checkboxGroup_1.CheckboxGroupTypes.Checkbox,
|
|
120
119
|
value: value
|
|
@@ -221,7 +220,6 @@ var FormControl = /** @class */ (function () {
|
|
|
221
220
|
items: cbMultiProps.items,
|
|
222
221
|
multi: true,
|
|
223
222
|
onChange: cbMultiProps.onChange,
|
|
224
|
-
renderRow: cbMultiProps.renderRow,
|
|
225
223
|
title: this._props.title,
|
|
226
224
|
type: checkboxGroup_1.CheckboxGroupTypes.Checkbox,
|
|
227
225
|
value: value
|
|
@@ -268,7 +266,6 @@ var FormControl = /** @class */ (function () {
|
|
|
268
266
|
items: this._props.items,
|
|
269
267
|
multi: true,
|
|
270
268
|
onChange: this._props.onChange,
|
|
271
|
-
renderRow: this._props.renderRow,
|
|
272
269
|
title: this._props.title,
|
|
273
270
|
type: checkboxGroup_1.CheckboxGroupTypes.Radio,
|
|
274
271
|
value: value
|
|
@@ -286,7 +283,6 @@ var FormControl = /** @class */ (function () {
|
|
|
286
283
|
items: this._props.items,
|
|
287
284
|
multi: true,
|
|
288
285
|
onChange: this._props.onChange,
|
|
289
|
-
renderRow: this._props.renderRow,
|
|
290
286
|
title: this._props.title,
|
|
291
287
|
type: checkboxGroup_1.CheckboxGroupTypes.Switch,
|
|
292
288
|
value: value
|
|
@@ -318,7 +314,6 @@ var FormControl = /** @class */ (function () {
|
|
|
318
314
|
isReadonly: this._props.isReadonly,
|
|
319
315
|
items: this._props.items,
|
|
320
316
|
onChange: this._props.onChange,
|
|
321
|
-
renderRow: this._props.renderRow,
|
|
322
317
|
title: this._props.title,
|
|
323
318
|
type: checkboxGroup_1.CheckboxGroupTypes.Radio,
|
|
324
319
|
value: value
|
|
@@ -367,7 +362,6 @@ var FormControl = /** @class */ (function () {
|
|
|
367
362
|
isReadonly: this._props.isReadonly,
|
|
368
363
|
items: this._props.items,
|
|
369
364
|
onChange: this._props.onChange,
|
|
370
|
-
renderRow: this._props.renderRow,
|
|
371
365
|
title: this._props.title,
|
|
372
366
|
type: checkboxGroup_1.CheckboxGroupTypes.Switch,
|
|
373
367
|
value: value
|