gd-bs 6.6.3 → 6.6.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/build/components/dropdown/index.js +5 -3
- package/build/components/form/control.js +8 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +33 -1
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/dropdown/index.ts +4 -2
- package/src/components/dropdown/types.d.ts +7 -1
- package/src/components/form/control.ts +28 -17
- package/src/components/form/controlTypes.d.ts +26 -0
|
@@ -15,7 +15,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.Dropdown = exports.DropdownTypes = void 0;
|
|
18
|
+
exports.Dropdown = exports.DropdownTypes = exports.DropdownPlacements = void 0;
|
|
19
19
|
var base_1 = require("../base");
|
|
20
20
|
var button_1 = require("../button");
|
|
21
21
|
var checkboxGroup_1 = require("../checkboxGroup");
|
|
@@ -26,6 +26,7 @@ var templates_1 = require("./templates");
|
|
|
26
26
|
/**
|
|
27
27
|
* Dropdown Types
|
|
28
28
|
*/
|
|
29
|
+
exports.DropdownPlacements = popover_1.PopoverPlacements;
|
|
29
30
|
exports.DropdownTypes = button_1.ButtonTypes;
|
|
30
31
|
// Gets the template
|
|
31
32
|
var GetHTML = function (props) {
|
|
@@ -268,7 +269,7 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
268
269
|
// Create the props
|
|
269
270
|
var props = {
|
|
270
271
|
target: toggle,
|
|
271
|
-
placement: popover_1.PopoverPlacements.BottomStart,
|
|
272
|
+
placement: typeof (this.props.placement) === "number" ? this.props.placement : popover_1.PopoverPlacements.BottomStart,
|
|
272
273
|
type: popoverType,
|
|
273
274
|
options: {
|
|
274
275
|
arrow: false,
|
|
@@ -405,7 +406,8 @@ var _Dropdown = /** @class */ (function (_super) {
|
|
|
405
406
|
className: "m-2",
|
|
406
407
|
el: menu,
|
|
407
408
|
items: cbItems,
|
|
408
|
-
multi: this.props.multi
|
|
409
|
+
multi: this.props.multi,
|
|
410
|
+
onChange: this.props.onChange
|
|
409
411
|
});
|
|
410
412
|
}
|
|
411
413
|
else {
|
|
@@ -179,8 +179,10 @@ var FormControl = /** @class */ (function () {
|
|
|
179
179
|
id: this._props.id,
|
|
180
180
|
isReadonly: this._props.isReadonly,
|
|
181
181
|
items: this._props.items,
|
|
182
|
+
label: this.props.placeholder,
|
|
182
183
|
onChange: this._props.onChange,
|
|
183
184
|
onMenuRendering: this._props.onMenuRendering,
|
|
185
|
+
placement: this._props.placement,
|
|
184
186
|
required: this._props.required,
|
|
185
187
|
title: this._props.title,
|
|
186
188
|
value: value
|
|
@@ -196,8 +198,10 @@ var FormControl = /** @class */ (function () {
|
|
|
196
198
|
isCheckbox: true,
|
|
197
199
|
isReadonly: this._props.isReadonly,
|
|
198
200
|
items: this._props.items,
|
|
201
|
+
label: this.props.placeholder,
|
|
199
202
|
onChange: this._props.onChange,
|
|
200
203
|
onMenuRendering: this._props.onMenuRendering,
|
|
204
|
+
placement: this._props.placement,
|
|
201
205
|
required: this._props.required,
|
|
202
206
|
title: this._props.title,
|
|
203
207
|
value: value
|
|
@@ -298,9 +302,11 @@ var FormControl = /** @class */ (function () {
|
|
|
298
302
|
id: this._props.id,
|
|
299
303
|
isReadonly: this._props.isReadonly,
|
|
300
304
|
items: this._props.items,
|
|
305
|
+
label: this._props.placeholder,
|
|
301
306
|
multi: true,
|
|
302
307
|
onChange: this._props.onChange,
|
|
303
308
|
onMenuRendering: this._props.onMenuRendering,
|
|
309
|
+
placement: this._props.placement,
|
|
304
310
|
required: this._props.required,
|
|
305
311
|
title: this._props.title,
|
|
306
312
|
value: value
|
|
@@ -316,9 +322,11 @@ var FormControl = /** @class */ (function () {
|
|
|
316
322
|
isCheckbox: true,
|
|
317
323
|
isReadonly: this._props.isReadonly,
|
|
318
324
|
items: this._props.items,
|
|
325
|
+
label: this._props.placeholder,
|
|
319
326
|
multi: true,
|
|
320
327
|
onChange: this._props.onChange,
|
|
321
328
|
onMenuRendering: this._props.onMenuRendering,
|
|
329
|
+
placement: this._props.placement,
|
|
322
330
|
required: this._props.required,
|
|
323
331
|
title: this._props.title,
|
|
324
332
|
value: value
|