gd-bs 5.5.5 → 5.5.8
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 +6 -0
- package/build/components/nav/index.js +10 -3
- package/build/components/navbar/index.js +2 -0
- package/dist/gd-bs-icons.js +3 -3
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +4 -0
- package/dist/gd-bs.js +3 -3
- package/dist/gd-bs.min.js +1 -1
- package/package.json +1 -1
- package/src/components/form/control.ts +6 -0
- package/src/components/form/controlTypes.d.ts +2 -0
- package/src/components/nav/index.ts +12 -3
- package/src/components/nav/types.d.ts +1 -0
- package/src/components/navbar/index.ts +3 -0
- package/src/components/navbar/types.d.ts +1 -0
package/package.json
CHANGED
|
@@ -110,6 +110,7 @@ export class FormControl implements IFormControl {
|
|
|
110
110
|
// Add the checkbox group
|
|
111
111
|
this._cb = CheckboxGroup({
|
|
112
112
|
className,
|
|
113
|
+
colSize: cbProps.colSize,
|
|
113
114
|
hideLabel: true,
|
|
114
115
|
isInline: cbProps.isInline,
|
|
115
116
|
isReadonly: this._props.isReadonly,
|
|
@@ -211,6 +212,7 @@ export class FormControl implements IFormControl {
|
|
|
211
212
|
// Add the checkbox group
|
|
212
213
|
this._cb = CheckboxGroup({
|
|
213
214
|
className,
|
|
215
|
+
colSize: cbMultiProps.colSize,
|
|
214
216
|
hideLabel: true,
|
|
215
217
|
isInline: cbMultiProps.isInline,
|
|
216
218
|
isReadonly: this._props.isReadonly,
|
|
@@ -256,6 +258,7 @@ export class FormControl implements IFormControl {
|
|
|
256
258
|
// Add the checkbox group
|
|
257
259
|
this._cb = CheckboxGroup({
|
|
258
260
|
className,
|
|
261
|
+
colSize: (this._props as IFormControlPropsMultiCheckbox).colSize,
|
|
259
262
|
hideLabel: true,
|
|
260
263
|
isReadonly: this._props.isReadonly,
|
|
261
264
|
items: (this._props as IFormControlPropsMultiCheckbox).items,
|
|
@@ -271,6 +274,7 @@ export class FormControl implements IFormControl {
|
|
|
271
274
|
// Add the checkbox group
|
|
272
275
|
this._cb = CheckboxGroup({
|
|
273
276
|
className,
|
|
277
|
+
colSize: (this._props as IFormControlPropsMultiCheckbox).colSize,
|
|
274
278
|
hideLabel: true,
|
|
275
279
|
isReadonly: this._props.isReadonly,
|
|
276
280
|
items: (this._props as IFormControlPropsMultiCheckbox).items,
|
|
@@ -300,6 +304,7 @@ export class FormControl implements IFormControl {
|
|
|
300
304
|
// Add the checkbox group
|
|
301
305
|
this._cb = CheckboxGroup({
|
|
302
306
|
className,
|
|
307
|
+
colSize: (this._props as IFormControlPropsCheckbox).colSize,
|
|
303
308
|
hideLabel: true,
|
|
304
309
|
isReadonly: this._props.isReadonly,
|
|
305
310
|
items: (this._props as IFormControlPropsCheckbox).items,
|
|
@@ -345,6 +350,7 @@ export class FormControl implements IFormControl {
|
|
|
345
350
|
// Add the checkbox group
|
|
346
351
|
this._cb = CheckboxGroup({
|
|
347
352
|
className,
|
|
353
|
+
colSize: (this._props as IFormControlPropsCheckbox).colSize,
|
|
348
354
|
hideLabel: true,
|
|
349
355
|
isReadonly: this._props.isReadonly,
|
|
350
356
|
items: (this._props as IFormControlPropsCheckbox).items,
|
|
@@ -93,6 +93,7 @@ export interface IFormControlProps extends IBaseProps<IFormControl> {
|
|
|
93
93
|
* Form Control Properties - Checkbox
|
|
94
94
|
*/
|
|
95
95
|
export interface IFormControlPropsCheckbox extends IFormControlProps {
|
|
96
|
+
colSize?: number;
|
|
96
97
|
el?: HTMLInputElement;
|
|
97
98
|
hideLabel?: boolean;
|
|
98
99
|
isInline?: boolean;
|
|
@@ -131,6 +132,7 @@ export interface IFormControlPropsListBox extends IFormControlProps {
|
|
|
131
132
|
* Form Control Properties - Multiple Checkbox
|
|
132
133
|
*/
|
|
133
134
|
export interface IFormControlPropsMultiCheckbox extends IFormControlProps {
|
|
135
|
+
colSize?: number;
|
|
134
136
|
el?: HTMLInputElement;
|
|
135
137
|
hideLabel?: boolean;
|
|
136
138
|
isInline?: boolean;
|
|
@@ -17,6 +17,9 @@ class _Nav extends Base<INavProps> implements INav {
|
|
|
17
17
|
// Configure the collapse
|
|
18
18
|
this.configure(itemTemplate);
|
|
19
19
|
|
|
20
|
+
// Configure the events
|
|
21
|
+
this.configureEvents();
|
|
22
|
+
|
|
20
23
|
// Configure the parent
|
|
21
24
|
this.configureParent();
|
|
22
25
|
}
|
|
@@ -38,8 +41,14 @@ class _Nav extends Base<INavProps> implements INav {
|
|
|
38
41
|
this.renderItems(itemTemplate);
|
|
39
42
|
}
|
|
40
43
|
|
|
41
|
-
//
|
|
42
|
-
private configureEvents(
|
|
44
|
+
// Configure the events
|
|
45
|
+
private configureEvents() {
|
|
46
|
+
// Execute the event(s)
|
|
47
|
+
this.props.onRendered ? this.props.onRendered(this.el) : null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Configures the tab link event
|
|
51
|
+
private configureTabEvents(tab: NavLink) {
|
|
43
52
|
// Add a click event
|
|
44
53
|
tab.el.addEventListener("click", () => {
|
|
45
54
|
let prevTab: INavLink = null;
|
|
@@ -88,7 +97,7 @@ class _Nav extends Base<INavProps> implements INav {
|
|
|
88
97
|
// See if we are rendering tabs
|
|
89
98
|
if (tabs) {
|
|
90
99
|
// Configure the events
|
|
91
|
-
this.
|
|
100
|
+
this.configureTabEvents(link);
|
|
92
101
|
|
|
93
102
|
// Add the tab content
|
|
94
103
|
tabs.appendChild(link.elTabContent);
|
|
@@ -93,6 +93,7 @@ export interface INavProps<T = Element> extends IBaseProps<INav> {
|
|
|
93
93
|
isVertical?: boolean;
|
|
94
94
|
onClick?: (newTab?: INavLink, prevTab?: INavLink) => void;
|
|
95
95
|
onLinkRendered?: (el?: HTMLElement, item?: INavLinkProps) => void;
|
|
96
|
+
onRendered?: (el?: HTMLElement) => void;
|
|
96
97
|
onTabRendered?: (el?: HTMLElement, item?: INavLinkProps) => void;
|
|
97
98
|
}
|
|
98
99
|
|
|
@@ -148,6 +148,7 @@ export interface INavbarProps<T = Element> extends IBaseProps<INavbar> {
|
|
|
148
148
|
itemsEnd?: Array<INavbarItem>;
|
|
149
149
|
onClick?: (item?: INavbarItem, ev?: Event) => void;
|
|
150
150
|
onItemRendered?: (el?: HTMLElement, item?: INavbarItem) => void;
|
|
151
|
+
onRendered?: (el?: HTMLElement) => void;
|
|
151
152
|
searchBox?: INavbarSearchBox;
|
|
152
153
|
type?: number;
|
|
153
154
|
}
|