gd-bs 6.2.1 → 6.2.2

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.
Files changed (35) hide show
  1. package/dist/gd-bs.d.ts +41 -41
  2. package/package.json +1 -1
  3. package/src/components/accordion/types.d.ts +2 -2
  4. package/src/components/alert/types.d.ts +1 -1
  5. package/src/components/base.ts +1 -1
  6. package/src/components/breadcrumb/types.d.ts +1 -1
  7. package/src/components/button/index.ts +1 -1
  8. package/src/components/button/types.d.ts +1 -1
  9. package/src/components/buttonGroup/types.d.ts +1 -1
  10. package/src/components/card/types.d.ts +1 -1
  11. package/src/components/cardGroup/types.d.ts +1 -1
  12. package/src/components/carousel/types.d.ts +3 -3
  13. package/src/components/collapse/types.d.ts +2 -2
  14. package/src/components/dropdown/item.ts +1 -1
  15. package/src/components/dropdown/types.d.ts +2 -2
  16. package/src/components/form/controlTypes.d.ts +1 -1
  17. package/src/components/iconLink/index.ts +1 -1
  18. package/src/components/iconLink/types.d.ts +2 -2
  19. package/src/components/jumbotron/types.d.ts +1 -1
  20. package/src/components/listBox/types.d.ts +1 -1
  21. package/src/components/listGroup/types.d.ts +1 -1
  22. package/src/components/modal/types.d.ts +2 -2
  23. package/src/components/nav/types.d.ts +2 -2
  24. package/src/components/navbar/item.ts +1 -1
  25. package/src/components/navbar/types.d.ts +2 -2
  26. package/src/components/offcanvas/types.d.ts +2 -2
  27. package/src/components/popover/types.d.ts +2 -2
  28. package/src/components/progress/types.d.ts +1 -1
  29. package/src/components/progressGroup/types.d.ts +1 -1
  30. package/src/components/spinner/types.d.ts +1 -1
  31. package/src/components/toast/types.d.ts +1 -1
  32. package/src/components/toolbar/types.d.ts +1 -1
  33. package/src/components/tooltip/types.d.ts +1 -1
  34. package/src/components/tooltipGroup/types.d.ts +1 -1
  35. package/src/components/types.d.ts +5 -5
package/dist/gd-bs.d.ts CHANGED
@@ -88,7 +88,7 @@ declare module 'gd-bs/components/accordion/types' {
88
88
  /**
89
89
  * Accordion Item
90
90
  */
91
- export interface IAccordionItem<T = Element> {
91
+ export interface IAccordionItem<T = HTMLElement> {
92
92
  data?: any;
93
93
  className?: string;
94
94
  content?: string | T;
@@ -101,7 +101,7 @@ declare module 'gd-bs/components/accordion/types' {
101
101
  /**
102
102
  * Accordion Properties
103
103
  */
104
- export interface IAccordionProps<T = Element> extends IBaseProps<IAccordion> {
104
+ export interface IAccordionProps<T = HTMLElement> extends IBaseProps<IAccordion> {
105
105
  autoCollapse?: boolean;
106
106
  id?: string;
107
107
  items?: Array<IAccordionItem<T>>;
@@ -153,7 +153,7 @@ declare module 'gd-bs/components/alert/types' {
153
153
  /**
154
154
  * Alert Properties
155
155
  */
156
- export interface IAlertProps<T = Element> extends IBaseProps<IAlert> {
156
+ export interface IAlertProps<T = HTMLElement> extends IBaseProps<IAlert> {
157
157
  content?: string | T;
158
158
  data?: any;
159
159
  header?: string;
@@ -271,7 +271,7 @@ declare module 'gd-bs/components/breadcrumb/types' {
271
271
  add: (item: IBreadcrumbItem) => void;
272
272
 
273
273
  /** The element. */
274
- el: Element;
274
+ el: HTMLElement;
275
275
 
276
276
  /** Hides the breadcrumb. */
277
277
  hide: () => void;
@@ -398,7 +398,7 @@ declare module 'gd-bs/components/button/types' {
398
398
  href?: string;
399
399
  iconClassName?: string;
400
400
  iconSize?: number;
401
- iconType?: Function;
401
+ iconType?: HTMLElement | Function;
402
402
  id?: string;
403
403
  isBlock?: boolean;
404
404
  isDisabled?: boolean;
@@ -474,7 +474,7 @@ declare module 'gd-bs/components/buttonGroup/types' {
474
474
  */
475
475
  export interface IButtonGroup {
476
476
  /** The element. */
477
- el: Element;
477
+ el: HTMLElement;
478
478
 
479
479
  /** Adds a button to the group. */
480
480
  add: (props: IButtonProps, btnTemplate?: string) => void;
@@ -541,7 +541,7 @@ declare module 'gd-bs/components/card/types' {
541
541
  */
542
542
  export interface ICard {
543
543
  /** The element. */
544
- el: Element;
544
+ el: HTMLElement;
545
545
 
546
546
  /** Hides the card. */
547
547
  hide: () => void;
@@ -669,7 +669,7 @@ declare module 'gd-bs/components/cardGroup/types' {
669
669
  */
670
670
  export interface ICardGroup {
671
671
  /** The element. */
672
- el: Element;
672
+ el: HTMLElement;
673
673
 
674
674
  /** Hides the card group. */
675
675
  hide: () => void;
@@ -736,7 +736,7 @@ declare module 'gd-bs/components/carousel/types' {
736
736
  cycle: () => void;
737
737
 
738
738
  /** The element. */
739
- el: Element;
739
+ el: HTMLElement;
740
740
 
741
741
  /** Hides the carousel. */
742
742
  hide: () => void;
@@ -769,7 +769,7 @@ declare module 'gd-bs/components/carousel/types' {
769
769
  /**
770
770
  * Carousel Item
771
771
  */
772
- export interface ICarouselItem<T = Element> {
772
+ export interface ICarouselItem<T = HTMLElement> {
773
773
  captions?: string;
774
774
  className?: string;
775
775
  content?: string | T;
@@ -793,7 +793,7 @@ declare module 'gd-bs/components/carousel/types' {
793
793
  /**
794
794
  * Carousel Properties
795
795
  */
796
- export interface ICarouselProps<T = Element> extends IBaseProps<ICarousel> {
796
+ export interface ICarouselProps<T = HTMLElement> extends IBaseProps<ICarousel> {
797
797
  enableControls?: boolean;
798
798
  enableCrossfade?: boolean;
799
799
  enableIndicators?: boolean;
@@ -934,7 +934,7 @@ declare module 'gd-bs/components/collapse/types' {
934
934
  */
935
935
  export interface ICollapse {
936
936
  /** The element. */
937
- el: Element;
937
+ el: HTMLElement;
938
938
 
939
939
  /** Hides a collapsible element. */
940
940
  hide: () => void;
@@ -959,7 +959,7 @@ declare module 'gd-bs/components/collapse/types' {
959
959
  /**
960
960
  * Collapse Properties
961
961
  */
962
- export interface ICollapseProps<T = Element> extends IBaseProps<ICollapse> {
962
+ export interface ICollapseProps<T = HTMLElement> extends IBaseProps<ICollapse> {
963
963
  content?: string | T;
964
964
  data?: any;
965
965
  id?: string;
@@ -1018,7 +1018,7 @@ declare module 'gd-bs/components/dropdown/types' {
1018
1018
  enable: () => void;
1019
1019
 
1020
1020
  /** The element. */
1021
- el: Element;
1021
+ el: HTMLElement;
1022
1022
 
1023
1023
  /** Gets the selected dropdown item(s). */
1024
1024
  getValue: () => IDropdownItem | Array<IDropdownItem>;
@@ -1060,7 +1060,7 @@ declare module 'gd-bs/components/dropdown/types' {
1060
1060
  href?: string;
1061
1061
  iconClassName?: string;
1062
1062
  iconSize?: number;
1063
- iconType?: Function;
1063
+ iconType?: HTMLElement | Function;
1064
1064
  isDisabled?: boolean;
1065
1065
  isDivider?: boolean;
1066
1066
  isHeader?: boolean;
@@ -1153,7 +1153,7 @@ declare module 'gd-bs/components/form/controlTypes' {
1153
1153
  setControl: (control: any) => void;
1154
1154
  setValue: (value: any) => void;
1155
1155
  show: () => void;
1156
- updateValidation: (elControl: Element, validation: IFormControlValidationResult) => void;
1156
+ updateValidation: (elControl: HTMLElement, validation: IFormControlValidationResult) => void;
1157
1157
  }
1158
1158
 
1159
1159
  /**
@@ -1605,7 +1605,7 @@ declare module 'gd-bs/components/jumbotron/types' {
1605
1605
  */
1606
1606
  export interface IJumbotron {
1607
1607
  /** The element. */
1608
- el: Element;
1608
+ el: HTMLElement;
1609
1609
 
1610
1610
  /** Hides the jumbotron. */
1611
1611
  hide: () => void;
@@ -1662,7 +1662,7 @@ declare module 'gd-bs/components/listBox/types' {
1662
1662
  */
1663
1663
  export interface IListBox extends IBase<IListBoxProps> {
1664
1664
  /** The element. */
1665
- el: Element;
1665
+ el: HTMLElement;
1666
1666
 
1667
1667
  /** The selected listbox items. */
1668
1668
  getValue: () => Array<IDropdownItem>;
@@ -1730,7 +1730,7 @@ declare module 'gd-bs/components/listGroup/types' {
1730
1730
  */
1731
1731
  export interface IListGroup {
1732
1732
  /** The element. */
1733
- el: Element;
1733
+ el: HTMLElement;
1734
1734
 
1735
1735
  /** Hides the list group. */
1736
1736
  hide: () => void;
@@ -1835,7 +1835,7 @@ declare module 'gd-bs/components/modal/types' {
1835
1835
  */
1836
1836
  export interface IModal {
1837
1837
  /** The element. */
1838
- el: Element,
1838
+ el: HTMLElement;
1839
1839
 
1840
1840
  /** Manually hides a modal. */
1841
1841
  hide: () => void;
@@ -1906,7 +1906,7 @@ declare module 'gd-bs/components/modal/types' {
1906
1906
  /**
1907
1907
  * Modal Properties
1908
1908
  */
1909
- export interface IModalProps<T = Element> extends IBaseProps<IModal> {
1909
+ export interface IModalProps<T = HTMLElement> extends IBaseProps<IModal> {
1910
1910
  body?: string | T;
1911
1911
  disableFade?: boolean;
1912
1912
  footer?: string | T;
@@ -1994,7 +1994,7 @@ declare module 'gd-bs/components/nav/types' {
1994
1994
  /**
1995
1995
  * Navigation Properties
1996
1996
  */
1997
- export interface INavProps<T = Element> extends IBaseProps<INav> {
1997
+ export interface INavProps<T = HTMLElement> extends IBaseProps<INav> {
1998
1998
  data?: any;
1999
1999
  enableFill?: boolean;
2000
2000
  fadeTabs?: boolean;
@@ -2025,7 +2025,7 @@ declare module 'gd-bs/components/nav/types' {
2025
2025
  /**
2026
2026
  * Navigation Link Properties
2027
2027
  */
2028
- export interface INavLinkProps<T = Element> extends IBaseProps<INavLink> {
2028
+ export interface INavLinkProps<T = HTMLElement> extends IBaseProps<INavLink> {
2029
2029
  isActive?: boolean;
2030
2030
  isDisabled?: boolean;
2031
2031
  className?: string;
@@ -2129,7 +2129,7 @@ declare module 'gd-bs/components/navbar/types' {
2129
2129
  href?: string;
2130
2130
  iconClassName?: string;
2131
2131
  iconSize?: number;
2132
- iconType?: Function;
2132
+ iconType?: HTMLElement | Function;
2133
2133
  isActive?: boolean;
2134
2134
  isButton?: boolean;
2135
2135
  isDisabled?: boolean;
@@ -2146,7 +2146,7 @@ declare module 'gd-bs/components/navbar/types' {
2146
2146
  /**
2147
2147
  * Navbar Properties
2148
2148
  */
2149
- export interface INavbarProps<T = Element> extends IBaseProps<INavbar> {
2149
+ export interface INavbarProps<T = HTMLElement> extends IBaseProps<INavbar> {
2150
2150
  brand?: string | T;
2151
2151
  brandUrl?: string;
2152
2152
  enableScrolling?: boolean;
@@ -2237,7 +2237,7 @@ declare module 'gd-bs/components/offcanvas/types' {
2237
2237
  */
2238
2238
  export interface IOffcanvas {
2239
2239
  /** The element. */
2240
- el: Element;
2240
+ el: HTMLElement;
2241
2241
 
2242
2242
  /** Hides a collapsible element. */
2243
2243
  hide: () => void;
@@ -2264,7 +2264,7 @@ declare module 'gd-bs/components/offcanvas/types' {
2264
2264
  /**
2265
2265
  * Offcanvas Properties
2266
2266
  */
2267
- export interface IOffcanvasProps<T = Element> extends IBaseProps<IOffcanvas> {
2267
+ export interface IOffcanvasProps<T = HTMLElement> extends IBaseProps<IOffcanvas> {
2268
2268
  body?: string | T;
2269
2269
  data?: any;
2270
2270
  id?: string;
@@ -2441,7 +2441,7 @@ declare module 'gd-bs/components/popover/types' {
2441
2441
  */
2442
2442
  export interface IPopover {
2443
2443
  /** The element. */
2444
- el: Element;
2444
+ el: HTMLElement;
2445
2445
 
2446
2446
  /** The tippy instance. */
2447
2447
  tippy: any;
@@ -2472,7 +2472,7 @@ declare module 'gd-bs/components/popover/types' {
2472
2472
  isDismissible?: boolean;
2473
2473
  options?: ITippyProps;
2474
2474
  placement?: number;
2475
- target?: Element,
2475
+ target?: HTMLElement,
2476
2476
  title?: string;
2477
2477
  type?: number;
2478
2478
  }
@@ -2542,7 +2542,7 @@ declare module 'gd-bs/components/progress/types' {
2542
2542
  */
2543
2543
  export interface IProgress {
2544
2544
  /** The element. */
2545
- el: Element;
2545
+ el: HTMLElement;
2546
2546
 
2547
2547
  /** Hides the progress. */
2548
2548
  hide: () => void;
@@ -2606,7 +2606,7 @@ declare module 'gd-bs/components/progressGroup/types' {
2606
2606
  */
2607
2607
  export interface IProgressGroup {
2608
2608
  /** The element. */
2609
- el: Element;
2609
+ el: HTMLElement;
2610
2610
 
2611
2611
  /** Hides the progress group. */
2612
2612
  hide: () => void;
@@ -2655,7 +2655,7 @@ declare module 'gd-bs/components/spinner/types' {
2655
2655
  */
2656
2656
  export interface ISpinner {
2657
2657
  /** The element. */
2658
- el: Element;
2658
+ el: HTMLElement;
2659
2659
 
2660
2660
  /** Hides the spinner. */
2661
2661
  hide: () => void;
@@ -2812,7 +2812,7 @@ declare module 'gd-bs/components/toast/types' {
2812
2812
  /**
2813
2813
  * Toast Properties
2814
2814
  */
2815
- export interface IToastProps<T = Element> extends IBaseProps<IToast> {
2815
+ export interface IToastProps<T = HTMLElement> extends IBaseProps<IToast> {
2816
2816
  body?: string | T;
2817
2817
  data?: any;
2818
2818
  headerImgClass?: string;
@@ -2865,7 +2865,7 @@ declare module 'gd-bs/components/toolbar/types' {
2865
2865
  */
2866
2866
  export interface IToolbar {
2867
2867
  /** The element. */
2868
- el: Element;
2868
+ el: HTMLElement;
2869
2869
 
2870
2870
  /** Hides the toolbar. */
2871
2871
  hide: () => void;
@@ -2970,7 +2970,7 @@ declare module 'gd-bs/components/tooltip/types' {
2970
2970
  content?: string | Element;
2971
2971
  options?: ITippyProps;
2972
2972
  placement?: number;
2973
- target?: Element,
2973
+ target?: HTMLElement;
2974
2974
  type?: number;
2975
2975
  }
2976
2976
 
@@ -3047,7 +3047,7 @@ declare module 'gd-bs/components/tooltipGroup/types' {
3047
3047
  add: (props: ITooltipProps, btnTemplate?: string) => void;
3048
3048
 
3049
3049
  /** The element. */
3050
- el: Element;
3050
+ el: HTMLElement;
3051
3051
 
3052
3052
  /** The tooltips. */
3053
3053
  tooltips: Array<ITooltip>;
@@ -3082,10 +3082,10 @@ declare module 'gd-bs/components/types' {
3082
3082
  */
3083
3083
  export interface IBase<IProps = IBaseProps> {
3084
3084
  /** Internal method to configure the parent element. */
3085
- configureParent(): Element;
3085
+ configureParent(): HTMLElement;
3086
3086
 
3087
3087
  /** The component HTML element */
3088
- el: Element | HTMLElement;
3088
+ el: HTMLElement;
3089
3089
 
3090
3090
  /** Hides the component. */
3091
3091
  hide(): void;
@@ -3108,7 +3108,7 @@ declare module 'gd-bs/components/types' {
3108
3108
  className?: string;
3109
3109
 
3110
3110
  /** The element to render the component to. */
3111
- el?: Element | HTMLElement;
3111
+ el?: HTMLElement;
3112
3112
  }
3113
3113
 
3114
3114
  /** Tippy Options */
@@ -3116,7 +3116,7 @@ declare module 'gd-bs/components/types' {
3116
3116
  allowHTML?: boolean;
3117
3117
  animateFill?: boolean;
3118
3118
  animation?: string | boolean;
3119
- appendTo?: Element;
3119
+ appendTo?: HTMLElement;
3120
3120
  aria?: object;
3121
3121
  arrow?: boolean | string | SVGElement | DocumentFragment;
3122
3122
  content?: string | Element;
@@ -3154,7 +3154,7 @@ declare module 'gd-bs/components/types' {
3154
3154
  theme?: string;
3155
3155
  touch?: boolean | 'hold' | ['hold', number];
3156
3156
  trigger?: string;
3157
- triggerTarget?: Element | Element[] | null;
3157
+ triggerTarget?: HTMLElement | HTMLElement[] | null;
3158
3158
  zIndex?: number;
3159
3159
  }
3160
3160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.2.1",
3
+ "version": "6.2.2",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -68,7 +68,7 @@ export interface IAccordion extends IBase<IAccordionProps> { }
68
68
  /**
69
69
  * Accordion Item
70
70
  */
71
- export interface IAccordionItem<T = Element> {
71
+ export interface IAccordionItem<T = HTMLElement> {
72
72
  data?: any;
73
73
  className?: string;
74
74
  content?: string | T;
@@ -81,7 +81,7 @@ export interface IAccordionItem<T = Element> {
81
81
  /**
82
82
  * Accordion Properties
83
83
  */
84
- export interface IAccordionProps<T = Element> extends IBaseProps<IAccordion> {
84
+ export interface IAccordionProps<T = HTMLElement> extends IBaseProps<IAccordion> {
85
85
  autoCollapse?: boolean;
86
86
  id?: string;
87
87
  items?: Array<IAccordionItem<T>>;
@@ -63,7 +63,7 @@ export interface IAlert extends IBase<IAlertProps> {
63
63
  /**
64
64
  * Alert Properties
65
65
  */
66
- export interface IAlertProps<T = Element> extends IBaseProps<IAlert> {
66
+ export interface IAlertProps<T = HTMLElement> extends IBaseProps<IAlert> {
67
67
  content?: string | T;
68
68
  data?: any;
69
69
  header?: string;
@@ -32,7 +32,7 @@ export class Base<IProps = IBaseProps<IBase>> implements IBase<IProps> {
32
32
  // Configures the parent element
33
33
  configureParent() {
34
34
  // Create the element
35
- let el: Element = document.createElement("div");
35
+ let el: HTMLElement = document.createElement("div");
36
36
  el.appendChild(this._el);
37
37
 
38
38
  // See if the parent element exists
@@ -47,7 +47,7 @@ export interface IBreadcrumb {
47
47
  add: (item: IBreadcrumbItem) => void;
48
48
 
49
49
  /** The element. */
50
- el: Element;
50
+ el: HTMLElement;
51
51
 
52
52
  /** Hides the breadcrumb. */
53
53
  hide: () => void;
@@ -115,7 +115,7 @@ class _Button extends Base<IButtonProps> implements IButton {
115
115
  if (this.props.iconType) {
116
116
  if (typeof (this.props.iconType) === "function") {
117
117
  // Append the icon
118
- this.el.prepend(this.props.iconType(this.props.iconSize, this.props.iconSize, this.props.iconClassName));
118
+ this.el.prepend((this.props.iconType as Function)(this.props.iconSize, this.props.iconSize, this.props.iconClassName));
119
119
 
120
120
  // Update the styling of the button
121
121
  this.el.classList.add("btn-icon");
@@ -90,7 +90,7 @@ export interface IButtonProps extends IBaseProps<IButton> {
90
90
  href?: string;
91
91
  iconClassName?: string;
92
92
  iconSize?: number;
93
- iconType?: Function;
93
+ iconType?: HTMLElement | Function;
94
94
  id?: string;
95
95
  isBlock?: boolean;
96
96
  isDisabled?: boolean;
@@ -47,7 +47,7 @@ import { IButton, IButtonProps } from "../button/types";
47
47
  */
48
48
  export interface IButtonGroup {
49
49
  /** The element. */
50
- el: Element;
50
+ el: HTMLElement;
51
51
 
52
52
  /** Adds a button to the group. */
53
53
  add: (props: IButtonProps, btnTemplate?: string) => void;
@@ -61,7 +61,7 @@ import { INavProps } from "../nav/types";
61
61
  */
62
62
  export interface ICard {
63
63
  /** The element. */
64
- el: Element;
64
+ el: HTMLElement;
65
65
 
66
66
  /** Hides the card. */
67
67
  hide: () => void;
@@ -93,7 +93,7 @@ import { ICardProps } from "../card/types";
93
93
  */
94
94
  export interface ICardGroup {
95
95
  /** The element. */
96
- el: Element;
96
+ el: HTMLElement;
97
97
 
98
98
  /** Hides the card group. */
99
99
  hide: () => void;
@@ -84,7 +84,7 @@ export interface ICarousel {
84
84
  cycle: () => void;
85
85
 
86
86
  /** The element. */
87
- el: Element;
87
+ el: HTMLElement;
88
88
 
89
89
  /** Hides the carousel. */
90
90
  hide: () => void;
@@ -117,7 +117,7 @@ export interface ICarousel {
117
117
  /**
118
118
  * Carousel Item
119
119
  */
120
- export interface ICarouselItem<T = Element> {
120
+ export interface ICarouselItem<T = HTMLElement> {
121
121
  captions?: string;
122
122
  className?: string;
123
123
  content?: string | T;
@@ -141,7 +141,7 @@ export interface ICarouselOptions {
141
141
  /**
142
142
  * Carousel Properties
143
143
  */
144
- export interface ICarouselProps<T = Element> extends IBaseProps<ICarousel> {
144
+ export interface ICarouselProps<T = HTMLElement> extends IBaseProps<ICarousel> {
145
145
  enableControls?: boolean;
146
146
  enableCrossfade?: boolean;
147
147
  enableIndicators?: boolean;
@@ -53,7 +53,7 @@ import { IBaseProps } from "../types";
53
53
  */
54
54
  export interface ICollapse {
55
55
  /** The element. */
56
- el: Element;
56
+ el: HTMLElement;
57
57
 
58
58
  /** Hides a collapsible element. */
59
59
  hide: () => void;
@@ -78,7 +78,7 @@ export interface ICollapseOptions {
78
78
  /**
79
79
  * Collapse Properties
80
80
  */
81
- export interface ICollapseProps<T = Element> extends IBaseProps<ICollapse> {
81
+ export interface ICollapseProps<T = HTMLElement> extends IBaseProps<ICollapse> {
82
82
  content?: string | T;
83
83
  data?: any;
84
84
  id?: string;
@@ -108,7 +108,7 @@ export class DropdownItem {
108
108
  // See if it's a function
109
109
  if (typeof (this.props.iconType) === "function") {
110
110
  // Append the icon
111
- elItem.prepend(this.props.iconType(iconSize, iconSize, this.props.iconClassName));
111
+ elItem.prepend((this.props.iconType as Function)(iconSize, iconSize, this.props.iconClassName));
112
112
  }
113
113
  // Else, it's an element
114
114
  else if (typeof (this.props.iconType === "object")) {
@@ -66,7 +66,7 @@ export interface IDropdown {
66
66
  enable: () => void;
67
67
 
68
68
  /** The element. */
69
- el: Element;
69
+ el: HTMLElement;
70
70
 
71
71
  /** Gets the selected dropdown item(s). */
72
72
  getValue: () => IDropdownItem | Array<IDropdownItem>;
@@ -108,7 +108,7 @@ export interface IDropdownItem {
108
108
  href?: string;
109
109
  iconClassName?: string;
110
110
  iconSize?: number;
111
- iconType?: Function;
111
+ iconType?: HTMLElement | Function;
112
112
  isDisabled?: boolean;
113
113
  isDivider?: boolean;
114
114
  isHeader?: boolean;
@@ -63,7 +63,7 @@ export interface IFormControl {
63
63
  setControl: (control: any) => void;
64
64
  setValue: (value: any) => void;
65
65
  show: () => void;
66
- updateValidation: (elControl: Element, validation: IFormControlValidationResult) => void;
66
+ updateValidation: (elControl: HTMLElement, validation: IFormControlValidationResult) => void;
67
67
  }
68
68
 
69
69
  /**
@@ -40,7 +40,7 @@ class _IconLink extends Base<IIconLinkProps> implements IIconLink {
40
40
  if (this.props.iconType) {
41
41
  if (typeof (this.props.iconType) === "function") {
42
42
  // Set the icon
43
- this._elIcon = this.props.iconType(this.props.iconSize, this.props.iconSize, this.props.iconClassName);
43
+ this._elIcon = (this.props.iconType as Function)(this.props.iconSize, this.props.iconSize, this.props.iconClassName);
44
44
  }
45
45
  // Else, it's an element
46
46
  else if (typeof (this.props.iconType === "object")) {
@@ -49,13 +49,13 @@ export interface IIconLink extends IBase<IIconLinkProps> { }
49
49
  /**
50
50
  * Icon Link Properties
51
51
  */
52
- export interface IIconLinkProps<T = Element> extends IBaseProps<IIconLink> {
52
+ export interface IIconLinkProps<T = HTMLElement> extends IBaseProps<IIconLink> {
53
53
  content?: string | T;
54
54
  data?: any;
55
55
  href?: string;
56
56
  iconClassName?: string;
57
57
  iconSize?: number;
58
- iconType?: Function;
58
+ iconType?: HTMLElement | Function;
59
59
  type?: number;
60
60
  }
61
61
 
@@ -38,7 +38,7 @@ import { IBaseProps } from "../types";
38
38
  */
39
39
  export interface IJumbotron {
40
40
  /** The element. */
41
- el: Element;
41
+ el: HTMLElement;
42
42
 
43
43
  /** Hides the jumbotron. */
44
44
  hide: () => void;
@@ -78,7 +78,7 @@ import { IDropdownItem } from "../dropdown/types";
78
78
  */
79
79
  export interface IListBox extends IBase<IListBoxProps> {
80
80
  /** The element. */
81
- el: Element;
81
+ el: HTMLElement;
82
82
 
83
83
  /** The selected listbox items. */
84
84
  getValue: () => Array<IDropdownItem>;
@@ -59,7 +59,7 @@ import { IBadgeProps } from "../badge/types";
59
59
  */
60
60
  export interface IListGroup {
61
61
  /** The element. */
62
- el: Element;
62
+ el: HTMLElement;
63
63
 
64
64
  /** Hides the list group. */
65
65
  hide: () => void;
@@ -78,7 +78,7 @@ import { IBaseProps } from "../types";
78
78
  */
79
79
  export interface IModal {
80
80
  /** The element. */
81
- el: Element,
81
+ el: HTMLElement;
82
82
 
83
83
  /** Manually hides a modal. */
84
84
  hide: () => void;
@@ -149,7 +149,7 @@ export interface IModalOptions {
149
149
  /**
150
150
  * Modal Properties
151
151
  */
152
- export interface IModalProps<T = Element> extends IBaseProps<IModal> {
152
+ export interface IModalProps<T = HTMLElement> extends IBaseProps<IModal> {
153
153
  body?: string | T;
154
154
  disableFade?: boolean;
155
155
  footer?: string | T;
@@ -81,7 +81,7 @@ export interface INav {
81
81
  /**
82
82
  * Navigation Properties
83
83
  */
84
- export interface INavProps<T = Element> extends IBaseProps<INav> {
84
+ export interface INavProps<T = HTMLElement> extends IBaseProps<INav> {
85
85
  data?: any;
86
86
  enableFill?: boolean;
87
87
  fadeTabs?: boolean;
@@ -112,7 +112,7 @@ export interface INavLink {
112
112
  /**
113
113
  * Navigation Link Properties
114
114
  */
115
- export interface INavLinkProps<T = Element> extends IBaseProps<INavLink> {
115
+ export interface INavLinkProps<T = HTMLElement> extends IBaseProps<INavLink> {
116
116
  isActive?: boolean;
117
117
  isDisabled?: boolean;
118
118
  className?: string;
@@ -90,7 +90,7 @@ export class NavbarItem {
90
90
  // See if it's a function
91
91
  if (typeof (this._props.iconType) === "function") {
92
92
  // Append the icon
93
- link.prepend(this._props.iconType(iconSize, iconSize, this._props.iconClassName));
93
+ link.prepend((this._props.iconType as Function)(iconSize, iconSize, this._props.iconClassName));
94
94
  }
95
95
  // Else, it's an element
96
96
  else if (typeof (this._props.iconType === "object")) {
@@ -124,7 +124,7 @@ export interface INavbarItem {
124
124
  href?: string;
125
125
  iconClassName?: string;
126
126
  iconSize?: number;
127
- iconType?: Function;
127
+ iconType?: HTMLElement | Function;
128
128
  isActive?: boolean;
129
129
  isButton?: boolean;
130
130
  isDisabled?: boolean;
@@ -141,7 +141,7 @@ export interface INavbarItem {
141
141
  /**
142
142
  * Navbar Properties
143
143
  */
144
- export interface INavbarProps<T = Element> extends IBaseProps<INavbar> {
144
+ export interface INavbarProps<T = HTMLElement> extends IBaseProps<INavbar> {
145
145
  brand?: string | T;
146
146
  brandUrl?: string;
147
147
  enableScrolling?: boolean;
@@ -82,7 +82,7 @@ import { IBaseProps } from "../types";
82
82
  */
83
83
  export interface IOffcanvas {
84
84
  /** The element. */
85
- el: Element;
85
+ el: HTMLElement;
86
86
 
87
87
  /** Hides a collapsible element. */
88
88
  hide: () => void;
@@ -109,7 +109,7 @@ export interface IOffcanvas {
109
109
  /**
110
110
  * Offcanvas Properties
111
111
  */
112
- export interface IOffcanvasProps<T = Element> extends IBaseProps<IOffcanvas> {
112
+ export interface IOffcanvasProps<T = HTMLElement> extends IBaseProps<IOffcanvas> {
113
113
  body?: string | T;
114
114
  data?: any;
115
115
  id?: string;
@@ -70,7 +70,7 @@ import { IButtonProps } from "../button/types";
70
70
  */
71
71
  export interface IPopover {
72
72
  /** The element. */
73
- el: Element;
73
+ el: HTMLElement;
74
74
 
75
75
  /** The tippy instance. */
76
76
  tippy: any;
@@ -101,7 +101,7 @@ export interface IPopoverProps extends IBaseProps<IPopover> {
101
101
  isDismissible?: boolean;
102
102
  options?: ITippyProps;
103
103
  placement?: number;
104
- target?: Element,
104
+ target?: HTMLElement,
105
105
  title?: string;
106
106
  type?: number;
107
107
  }
@@ -38,7 +38,7 @@ import { IBaseProps } from "../types";
38
38
  */
39
39
  export interface IProgress {
40
40
  /** The element. */
41
- el: Element;
41
+ el: HTMLElement;
42
42
 
43
43
  /** Hides the progress. */
44
44
  hide: () => void;
@@ -61,7 +61,7 @@ import { IProgressProps } from "../progress/types";
61
61
  */
62
62
  export interface IProgressGroup {
63
63
  /** The element. */
64
- el: Element;
64
+ el: HTMLElement;
65
65
 
66
66
  /** Hides the progress group. */
67
67
  hide: () => void;
@@ -43,7 +43,7 @@ import { IBaseProps } from "../types";
43
43
  */
44
44
  export interface ISpinner {
45
45
  /** The element. */
46
- el: Element;
46
+ el: HTMLElement;
47
47
 
48
48
  /** Hides the spinner. */
49
49
  hide: () => void;
@@ -54,7 +54,7 @@ export interface IToast {
54
54
  /**
55
55
  * Toast Properties
56
56
  */
57
- export interface IToastProps<T = Element> extends IBaseProps<IToast> {
57
+ export interface IToastProps<T = HTMLElement> extends IBaseProps<IToast> {
58
58
  body?: string | T;
59
59
  data?: any;
60
60
  headerImgClass?: string;
@@ -48,7 +48,7 @@ export const Toolbar: (props: IToolbarProps, template?: string) => IToolbar;
48
48
  */
49
49
  export interface IToolbar {
50
50
  /** The element. */
51
- el: Element;
51
+ el: HTMLElement;
52
52
 
53
53
  /** Hides the toolbar. */
54
54
  hide: () => void;
@@ -91,7 +91,7 @@ export interface ITooltipProps extends IBaseProps<ITooltip> {
91
91
  content?: string | Element;
92
92
  options?: ITippyProps;
93
93
  placement?: number;
94
- target?: Element,
94
+ target?: HTMLElement;
95
95
  type?: number;
96
96
  }
97
97
 
@@ -51,7 +51,7 @@ export interface ITooltipGroup {
51
51
  add: (props: ITooltipProps, btnTemplate?: string) => void;
52
52
 
53
53
  /** The element. */
54
- el: Element;
54
+ el: HTMLElement;
55
55
 
56
56
  /** The tooltips. */
57
57
  tooltips: Array<ITooltip>;
@@ -3,10 +3,10 @@
3
3
  */
4
4
  export interface IBase<IProps = IBaseProps> {
5
5
  /** Internal method to configure the parent element. */
6
- configureParent(): Element;
6
+ configureParent(): HTMLElement;
7
7
 
8
8
  /** The component HTML element */
9
- el: Element | HTMLElement;
9
+ el: HTMLElement;
10
10
 
11
11
  /** Hides the component. */
12
12
  hide(): void;
@@ -29,7 +29,7 @@ export interface IBaseProps<IBaseObj = any> {
29
29
  className?: string;
30
30
 
31
31
  /** The element to render the component to. */
32
- el?: Element | HTMLElement;
32
+ el?: HTMLElement;
33
33
  }
34
34
 
35
35
  /** Tippy Options */
@@ -37,7 +37,7 @@ export interface ITippyProps {
37
37
  allowHTML?: boolean;
38
38
  animateFill?: boolean;
39
39
  animation?: string | boolean;
40
- appendTo?: Element;
40
+ appendTo?: HTMLElement;
41
41
  aria?: object;
42
42
  arrow?: boolean | string | SVGElement | DocumentFragment;
43
43
  content?: string | Element;
@@ -75,6 +75,6 @@ export interface ITippyProps {
75
75
  theme?: string;
76
76
  touch?: boolean | 'hold' | ['hold', number];
77
77
  trigger?: string;
78
- triggerTarget?: Element | Element[] | null;
78
+ triggerTarget?: HTMLElement | HTMLElement[] | null;
79
79
  zIndex?: number;
80
80
  }