gd-bs 6.0.2 → 6.0.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.
- package/build/bs.js +1 -1
- package/build/components/popover/index.js +10 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.js.LICENSE.txt +292 -268
- package/dist/gd-bs-icons.min.js +1 -1
- package/dist/gd-bs.d.ts +2 -0
- package/dist/gd-bs.js +1 -1
- package/dist/gd-bs.js.LICENSE.txt +287 -263
- package/dist/gd-bs.min.js +1 -1
- package/package.json +15 -15
- package/pnpm-lock.yaml +630 -643
- package/src/components/common.ts +1 -1
- package/src/components/form/controlTypes.d.ts +2 -0
- package/src/components/popover/index.ts +10 -1
package/src/components/common.ts
CHANGED
|
@@ -8,7 +8,7 @@ export const appendContent = (elParent: Element, content: string | Element | Fun
|
|
|
8
8
|
elParent.innerHTML = content;
|
|
9
9
|
} else {
|
|
10
10
|
// Append the content
|
|
11
|
-
elParent.appendChild(typeof (content) === "function" ? content() : content);
|
|
11
|
+
elParent.appendChild(typeof (content) === "function" ? (content as any)() : content);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -52,6 +52,7 @@ export interface IFormControl {
|
|
|
52
52
|
dropdown: IDropdown;
|
|
53
53
|
el: HTMLElement;
|
|
54
54
|
getValue: () => any;
|
|
55
|
+
hide: () => void;
|
|
55
56
|
isLoaded: () => PromiseLike<void>;
|
|
56
57
|
isRendered: boolean;
|
|
57
58
|
isValid: boolean;
|
|
@@ -61,6 +62,7 @@ export interface IFormControl {
|
|
|
61
62
|
setLabel: (value: string) => void;
|
|
62
63
|
setControl: (control: any) => void;
|
|
63
64
|
setValue: (value: any) => void;
|
|
65
|
+
show: () => void;
|
|
64
66
|
updateValidation: (elControl: Element, validation: IFormControlValidationResult) => void;
|
|
65
67
|
}
|
|
66
68
|
|
|
@@ -186,7 +186,16 @@ class _Popover extends Base<IPopoverProps> implements IPopover {
|
|
|
186
186
|
interactive: true,
|
|
187
187
|
placement,
|
|
188
188
|
plugins: [animateFill, followCursor, inlinePositioning, sticky],
|
|
189
|
-
theme
|
|
189
|
+
theme,
|
|
190
|
+
popperOptions: {
|
|
191
|
+
modifiers: [{
|
|
192
|
+
name: "preventOverflow",
|
|
193
|
+
options: {
|
|
194
|
+
altAxis: true,
|
|
195
|
+
tether: false
|
|
196
|
+
}
|
|
197
|
+
}]
|
|
198
|
+
}
|
|
190
199
|
},
|
|
191
200
|
...this.props.options
|
|
192
201
|
};
|