gd-bs 6.6.56 → 6.6.58

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.6.56",
3
+ "version": "6.6.58",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -156,7 +156,7 @@ export class FormControl implements IFormControl {
156
156
  formFl: true,
157
157
  id: this._props.id,
158
158
  isDatalist: true,
159
- isReadonly: this._props.isReadonly,
159
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
160
160
  items: (this._props as IFormControlPropsDropdown).items,
161
161
  onChange: (this._props as IFormControlPropsDropdown).onChange,
162
162
  required: this._props.required,
@@ -171,7 +171,7 @@ export class FormControl implements IFormControl {
171
171
  className,
172
172
  formFl: true,
173
173
  id: this._props.id,
174
- isReadonly: this._props.isReadonly,
174
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
175
175
  items: (this._props as IFormControlPropsDropdown).items,
176
176
  onChange: (this._props as IFormControlPropsDropdown).onChange,
177
177
  onMenuRendering: (this._props as IFormControlPropsDropdown).onMenuRendering,
@@ -187,7 +187,7 @@ export class FormControl implements IFormControl {
187
187
  className,
188
188
  formFl: false,
189
189
  id: this._props.id,
190
- isReadonly: this._props.isReadonly,
190
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
191
191
  items: (this._props as IFormControlPropsDropdownButton).items,
192
192
  label: (this.props as IFormControlPropsDropdownButton).placeholder,
193
193
  onChange: (this._props as IFormControlPropsDropdownButton).onChange,
@@ -206,7 +206,7 @@ export class FormControl implements IFormControl {
206
206
  formFl: false,
207
207
  id: this._props.id,
208
208
  isCheckbox: true,
209
- isReadonly: this._props.isReadonly,
209
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
210
210
  items: (this._props as IFormControlPropsDropdownCheckbox).items,
211
211
  label: (this.props as IFormControlPropsDropdownCheckbox).placeholder,
212
212
  onChange: (this._props as IFormControlPropsDropdownCheckbox).onChange,
@@ -258,7 +258,7 @@ export class FormControl implements IFormControl {
258
258
  // Add the list box
259
259
  this._lb = ListBox({
260
260
  id: this._props.name,
261
- isReadonly: this._props.isReadonly,
261
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
262
262
  items: (this._props as IFormControlPropsListBox).items,
263
263
  onChange: (this._props as IFormControlPropsListBox).onChange,
264
264
  placeholder: (this._props as IFormControlPropsListBox).placeholder,
@@ -294,7 +294,7 @@ export class FormControl implements IFormControl {
294
294
  className,
295
295
  formFl: true,
296
296
  id: this._props.id,
297
- isReadonly: this._props.isReadonly,
297
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
298
298
  items: (this._props as IFormControlPropsMultiDropdown).items,
299
299
  multi: true,
300
300
  onChange: (this._props as IFormControlPropsMultiDropdown).onChange,
@@ -311,7 +311,7 @@ export class FormControl implements IFormControl {
311
311
  className,
312
312
  formFl: false,
313
313
  id: this._props.id,
314
- isReadonly: this._props.isReadonly,
314
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
315
315
  items: (this._props as IFormControlPropsMultiDropdownButton).items,
316
316
  label: (this._props as IFormControlPropsMultiDropdownButton).placeholder,
317
317
  multi: true,
@@ -331,7 +331,7 @@ export class FormControl implements IFormControl {
331
331
  formFl: false,
332
332
  id: this._props.id,
333
333
  isCheckbox: true,
334
- isReadonly: this._props.isReadonly,
334
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
335
335
  items: (this._props as IFormControlPropsMultiDropdownCheckbox).items,
336
336
  label: (this._props as IFormControlPropsMultiDropdownCheckbox).placeholder,
337
337
  multi: true,
@@ -348,7 +348,7 @@ export class FormControl implements IFormControl {
348
348
  // Add the list box
349
349
  this._lb = ListBox({
350
350
  id: this._props.name,
351
- isReadonly: this._props.isReadonly,
351
+ isReadonly: this._props.isReadonly || this._props.isDisabled,
352
352
  items: (this._props as IFormControlPropsMultiListBox).items,
353
353
  multi: true,
354
354
  onChange: (this._props as IFormControlPropsMultiListBox).onChange,
@@ -454,6 +454,7 @@ export class FormControl implements IFormControl {
454
454
  appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
455
455
  className,
456
456
  id: this._props.id,
457
+ isDisabled: this._props.isDisabled,
457
458
  isReadonly: true,
458
459
  onChange: (this._props as IFormControlPropsTextField).onChange,
459
460
  placeholder: (this._props as IFormControlPropsTextField).placeholder,
@@ -67,6 +67,7 @@ export class ListGroupItem extends Base<IListGroupItem> {
67
67
  this.el.id = tabId + "-tab";
68
68
  this.el.setAttribute("href", "#" + tabId);
69
69
  this.el.setAttribute("data-bs-toggle", "list");
70
+ this.el.setAttribute("data-tab-title", this.props.tabName);
70
71
  this.el.setAttribute("aria-controls", tabId);
71
72
  this.el.innerHTML = this.props.tabName;
72
73
 
@@ -97,6 +98,12 @@ export class ListGroupItem extends Base<IListGroupItem> {
97
98
  this.props.onClick ? this.props.onClick(this.el, this.props) : null;
98
99
  });
99
100
 
101
+ // See if there is a render tab event
102
+ if (this.props.onRenderTab) {
103
+ // Execute the render event
104
+ this.props.onRenderTab(this.el, this.props);
105
+ }
106
+
100
107
  // See if there is a render event
101
108
  if (this.props.onRender) {
102
109
  // Execute the render event
@@ -84,6 +84,7 @@ export interface IListGroupItem<T=Element> {
84
84
  isDisabled?: boolean;
85
85
  onClick?: (el?: HTMLElement, item?: IListGroupItem) => void;
86
86
  onRender?: (el?: HTMLElement, item?: IListGroupItem) => void;
87
+ onRenderTab?: (el?: HTMLElement, item?: IListGroupItem) => void;
87
88
  tabName?: string;
88
89
  type?: number;
89
90
  }