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.
- package/build/bs.js +1 -1
- package/build/components/form/control.js +5 -5
- package/build/components/form/index.js +15 -0
- package/dist/gd-bs-icons.js +3 -3
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +3 -0
- package/dist/gd-bs.js +3 -3
- package/dist/gd-bs.min.js +1 -1
- package/index.html +15 -10
- package/package.json +1 -1
- package/src/bs.scss +17 -0
- package/src/components/form/control.ts +5 -5
- package/src/components/form/formTypes.d.ts +3 -0
- package/src/components/form/index.ts +16 -0
|
@@ -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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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;
|