gd-bs 6.6.2 → 6.6.4

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.
@@ -156,15 +156,48 @@ var FormControl = /** @class */ (function () {
156
156
  break;
157
157
  // Dropdown
158
158
  case _1.FormControlTypes.Dropdown:
159
+ // Add the dropdown
160
+ this._ddl = (0, dropdown_1.Dropdown)({
161
+ className: className,
162
+ formFl: true,
163
+ id: this._props.id,
164
+ isReadonly: this._props.isReadonly,
165
+ items: this._props.items,
166
+ onChange: this._props.onChange,
167
+ onMenuRendering: this._props.onMenuRendering,
168
+ required: this._props.required,
169
+ title: this._props.title,
170
+ value: value
171
+ });
172
+ break;
173
+ // Dropdown
159
174
  case _1.FormControlTypes.DropdownButton:
175
+ // Add the dropdown
176
+ this._ddl = (0, dropdown_1.Dropdown)({
177
+ className: className,
178
+ formFl: false,
179
+ id: this._props.id,
180
+ isReadonly: this._props.isReadonly,
181
+ items: this._props.items,
182
+ label: this.props.placeholder,
183
+ onChange: this._props.onChange,
184
+ onMenuRendering: this._props.onMenuRendering,
185
+ required: this._props.required,
186
+ title: this._props.title,
187
+ value: value
188
+ });
189
+ break;
190
+ // Dropdown
160
191
  case _1.FormControlTypes.DropdownCheckbox:
161
192
  // Add the dropdown
162
193
  this._ddl = (0, dropdown_1.Dropdown)({
163
194
  className: className,
164
- formFl: true,
195
+ formFl: false,
165
196
  id: this._props.id,
197
+ isCheckbox: true,
166
198
  isReadonly: this._props.isReadonly,
167
199
  items: this._props.items,
200
+ label: this.props.placeholder,
168
201
  onChange: this._props.onChange,
169
202
  onMenuRendering: this._props.onMenuRendering,
170
203
  required: this._props.required,
@@ -258,6 +291,43 @@ var FormControl = /** @class */ (function () {
258
291
  value: value
259
292
  });
260
293
  break;
294
+ // Multi-Dropdown Button
295
+ case _1.FormControlTypes.MultiDropdownButton:
296
+ // Add the dropdown
297
+ this._ddl = (0, dropdown_1.Dropdown)({
298
+ className: className,
299
+ formFl: false,
300
+ id: this._props.id,
301
+ isReadonly: this._props.isReadonly,
302
+ items: this._props.items,
303
+ label: this._props.placeholder,
304
+ multi: true,
305
+ onChange: this._props.onChange,
306
+ onMenuRendering: this._props.onMenuRendering,
307
+ required: this._props.required,
308
+ title: this._props.title,
309
+ value: value
310
+ });
311
+ break;
312
+ // Multi-Dropdown Checkbox
313
+ case _1.FormControlTypes.MultiDropdownCheckbox:
314
+ // Add the dropdown
315
+ this._ddl = (0, dropdown_1.Dropdown)({
316
+ className: className,
317
+ formFl: false,
318
+ id: this._props.id,
319
+ isCheckbox: true,
320
+ isReadonly: this._props.isReadonly,
321
+ items: this._props.items,
322
+ label: this._props.placeholder,
323
+ multi: true,
324
+ onChange: this._props.onChange,
325
+ onMenuRendering: this._props.onMenuRendering,
326
+ required: this._props.required,
327
+ title: this._props.title,
328
+ value: value
329
+ });
330
+ break;
261
331
  // Multi-List Box
262
332
  case _1.FormControlTypes.MultiListBox:
263
333
  // Add the list box