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/build/components/form/control.js +10 -9
- package/build/components/listGroup/item.js +6 -0
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +1 -0
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/form/control.ts +10 -9
- package/src/components/listGroup/item.ts +7 -0
- package/src/components/listGroup/types.d.ts +1 -0
|
@@ -146,7 +146,7 @@ var FormControl = /** @class */ (function () {
|
|
|
146
146
|
formFl: true,
|
|
147
147
|
id: this._props.id,
|
|
148
148
|
isDatalist: true,
|
|
149
|
-
isReadonly: this._props.isReadonly,
|
|
149
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
150
150
|
items: this._props.items,
|
|
151
151
|
onChange: this._props.onChange,
|
|
152
152
|
required: this._props.required,
|
|
@@ -161,7 +161,7 @@ var FormControl = /** @class */ (function () {
|
|
|
161
161
|
className: className,
|
|
162
162
|
formFl: true,
|
|
163
163
|
id: this._props.id,
|
|
164
|
-
isReadonly: this._props.isReadonly,
|
|
164
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
165
165
|
items: this._props.items,
|
|
166
166
|
onChange: this._props.onChange,
|
|
167
167
|
onMenuRendering: this._props.onMenuRendering,
|
|
@@ -177,7 +177,7 @@ var FormControl = /** @class */ (function () {
|
|
|
177
177
|
className: className,
|
|
178
178
|
formFl: false,
|
|
179
179
|
id: this._props.id,
|
|
180
|
-
isReadonly: this._props.isReadonly,
|
|
180
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
181
181
|
items: this._props.items,
|
|
182
182
|
label: this.props.placeholder,
|
|
183
183
|
onChange: this._props.onChange,
|
|
@@ -196,7 +196,7 @@ var FormControl = /** @class */ (function () {
|
|
|
196
196
|
formFl: false,
|
|
197
197
|
id: this._props.id,
|
|
198
198
|
isCheckbox: true,
|
|
199
|
-
isReadonly: this._props.isReadonly,
|
|
199
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
200
200
|
items: this._props.items,
|
|
201
201
|
label: this.props.placeholder,
|
|
202
202
|
onChange: this._props.onChange,
|
|
@@ -248,7 +248,7 @@ var FormControl = /** @class */ (function () {
|
|
|
248
248
|
// Add the list box
|
|
249
249
|
this._lb = (0, listBox_1.ListBox)({
|
|
250
250
|
id: this._props.name,
|
|
251
|
-
isReadonly: this._props.isReadonly,
|
|
251
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
252
252
|
items: this._props.items,
|
|
253
253
|
onChange: this._props.onChange,
|
|
254
254
|
placeholder: this._props.placeholder,
|
|
@@ -283,7 +283,7 @@ var FormControl = /** @class */ (function () {
|
|
|
283
283
|
className: className,
|
|
284
284
|
formFl: true,
|
|
285
285
|
id: this._props.id,
|
|
286
|
-
isReadonly: this._props.isReadonly,
|
|
286
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
287
287
|
items: this._props.items,
|
|
288
288
|
multi: true,
|
|
289
289
|
onChange: this._props.onChange,
|
|
@@ -300,7 +300,7 @@ var FormControl = /** @class */ (function () {
|
|
|
300
300
|
className: className,
|
|
301
301
|
formFl: false,
|
|
302
302
|
id: this._props.id,
|
|
303
|
-
isReadonly: this._props.isReadonly,
|
|
303
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
304
304
|
items: this._props.items,
|
|
305
305
|
label: this._props.placeholder,
|
|
306
306
|
multi: true,
|
|
@@ -320,7 +320,7 @@ var FormControl = /** @class */ (function () {
|
|
|
320
320
|
formFl: false,
|
|
321
321
|
id: this._props.id,
|
|
322
322
|
isCheckbox: true,
|
|
323
|
-
isReadonly: this._props.isReadonly,
|
|
323
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
324
324
|
items: this._props.items,
|
|
325
325
|
label: this._props.placeholder,
|
|
326
326
|
multi: true,
|
|
@@ -337,7 +337,7 @@ var FormControl = /** @class */ (function () {
|
|
|
337
337
|
// Add the list box
|
|
338
338
|
this._lb = (0, listBox_1.ListBox)({
|
|
339
339
|
id: this._props.name,
|
|
340
|
-
isReadonly: this._props.isReadonly,
|
|
340
|
+
isReadonly: this._props.isReadonly || this._props.isDisabled,
|
|
341
341
|
items: this._props.items,
|
|
342
342
|
multi: true,
|
|
343
343
|
onChange: this._props.onChange,
|
|
@@ -443,6 +443,7 @@ var FormControl = /** @class */ (function () {
|
|
|
443
443
|
appendedLabel: this.props.appendedLabel,
|
|
444
444
|
className: className,
|
|
445
445
|
id: this._props.id,
|
|
446
|
+
isDisabled: this._props.isDisabled,
|
|
446
447
|
isReadonly: true,
|
|
447
448
|
onChange: this._props.onChange,
|
|
448
449
|
placeholder: this._props.placeholder,
|
|
@@ -75,6 +75,7 @@ var ListGroupItem = /** @class */ (function (_super) {
|
|
|
75
75
|
this.el.id = tabId + "-tab";
|
|
76
76
|
this.el.setAttribute("href", "#" + tabId);
|
|
77
77
|
this.el.setAttribute("data-bs-toggle", "list");
|
|
78
|
+
this.el.setAttribute("data-tab-title", this.props.tabName);
|
|
78
79
|
this.el.setAttribute("aria-controls", tabId);
|
|
79
80
|
this.el.innerHTML = this.props.tabName;
|
|
80
81
|
// Update the tab
|
|
@@ -100,6 +101,11 @@ var ListGroupItem = /** @class */ (function (_super) {
|
|
|
100
101
|
// Execute the event
|
|
101
102
|
_this.props.onClick ? _this.props.onClick(_this.el, _this.props) : null;
|
|
102
103
|
});
|
|
104
|
+
// See if there is a render tab event
|
|
105
|
+
if (this.props.onRenderTab) {
|
|
106
|
+
// Execute the render event
|
|
107
|
+
this.props.onRenderTab(this.el, this.props);
|
|
108
|
+
}
|
|
103
109
|
// See if there is a render event
|
|
104
110
|
if (this.props.onRender) {
|
|
105
111
|
// Execute the render event
|