gd-bs 6.8.4 → 6.8.6

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,61 +1,61 @@
1
- {
2
- "name": "gd-bs",
3
- "version": "6.8.4",
4
- "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
- "main": "build/index.js",
6
- "typings": "src/index.d.ts",
7
- "scripts": {
8
- "all": "npm run clean && npm run generate-icons && npm run build && npm run build-icons && npm run prod && npm run prod-icons && npm run typings",
9
- "build": "tsc && npm run pre-build && npm run build-bs && webpack --mode=development && npm run post-build",
10
- "build-bs": "webpack --mode=production --config webpack.sass.js",
11
- "build-icons": "webpack --mode=development --config webpack.icons.js",
12
- "pre-build": "node ./pre-build",
13
- "post-build": "node ./post-build",
14
- "clean": "node ./clean.js",
15
- "docs": "typedoc",
16
- "generate-icons": "node ./generateIcons",
17
- "package": "npm run all && npm run docs",
18
- "prod": "webpack --mode=production",
19
- "prod-icons": "webpack --mode=production --config webpack.icons.js",
20
- "typings": "dts-bundle --configJson dts-bundle.json"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "git+https://github.com/gunjandatta/gd-bs.git"
25
- },
26
- "keywords": [
27
- "Bootstrap",
28
- "TypeScript"
29
- ],
30
- "author": "Gunjan Datta <me@dattabase.com> (https://dattabase.com)",
31
- "license": "MIT",
32
- "bugs": {
33
- "url": "https://github.com/gunjandatta/gd-bs/issues"
34
- },
35
- "homepage": "https://dattabase.com/extras/bs",
36
- "dependencies": {
37
- "@floating-ui/dom": "^1.7.1",
38
- "bootstrap": "^5.3.6",
39
- "bootstrap-icons": "^1.13.1",
40
- "core-js": "^3.43.0"
41
- },
42
- "devDependencies": {
43
- "@babel/core": "^7.27.4",
44
- "@babel/preset-env": "^7.27.2",
45
- "@types/node": "^18.19.111",
46
- "autoprefixer": "^10.4.21",
47
- "babel-loader": "^9.2.1",
48
- "css-loader": "^6.11.0",
49
- "dts-bundle": "^0.7.3",
50
- "postcss-loader": "^7.3.4",
51
- "sass": "^1.89.2",
52
- "sass-loader": "^13.3.3",
53
- "style-loader": "^3.3.4",
54
- "terser-webpack-plugin": "^5.3.14",
55
- "ts-loader": "^9.5.2",
56
- "typedoc": "^0.24.8",
57
- "typescript": "4.9.5",
58
- "webpack": "^5.99.9",
59
- "webpack-cli": "^5.1.4"
60
- }
1
+ {
2
+ "name": "gd-bs",
3
+ "version": "6.8.6",
4
+ "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
+ "main": "build/index.js",
6
+ "typings": "src/index.d.ts",
7
+ "scripts": {
8
+ "all": "npm run clean && npm run generate-icons && npm run build && npm run build-icons && npm run prod && npm run prod-icons && npm run typings",
9
+ "build": "tsc && npm run pre-build && npm run build-bs && webpack --mode=development && npm run post-build",
10
+ "build-bs": "webpack --mode=production --config webpack.sass.js",
11
+ "build-icons": "webpack --mode=development --config webpack.icons.js",
12
+ "pre-build": "node ./pre-build",
13
+ "post-build": "node ./post-build",
14
+ "clean": "node ./clean.js",
15
+ "docs": "typedoc",
16
+ "generate-icons": "node ./generateIcons",
17
+ "package": "npm run all && npm run docs",
18
+ "prod": "webpack --mode=production",
19
+ "prod-icons": "webpack --mode=production --config webpack.icons.js",
20
+ "typings": "dts-bundle --configJson dts-bundle.json"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/gunjandatta/gd-bs.git"
25
+ },
26
+ "keywords": [
27
+ "Bootstrap",
28
+ "TypeScript"
29
+ ],
30
+ "author": "Gunjan Datta <me@dattabase.com> (https://dattabase.com)",
31
+ "license": "MIT",
32
+ "bugs": {
33
+ "url": "https://github.com/gunjandatta/gd-bs/issues"
34
+ },
35
+ "homepage": "https://dattabase.com/extras/bs",
36
+ "dependencies": {
37
+ "@floating-ui/dom": "^1.7.2",
38
+ "bootstrap": "^5.3.7",
39
+ "bootstrap-icons": "^1.13.1",
40
+ "core-js": "^3.44.0"
41
+ },
42
+ "devDependencies": {
43
+ "@babel/core": "^7.27.4",
44
+ "@babel/preset-env": "^7.27.2",
45
+ "@types/node": "^18.19.111",
46
+ "autoprefixer": "^10.4.21",
47
+ "babel-loader": "^9.2.1",
48
+ "css-loader": "^6.11.0",
49
+ "dts-bundle": "^0.7.3",
50
+ "postcss-loader": "^7.3.4",
51
+ "sass": "^1.89.2",
52
+ "sass-loader": "^13.3.3",
53
+ "style-loader": "^3.3.4",
54
+ "terser-webpack-plugin": "^5.3.14",
55
+ "ts-loader": "^9.5.2",
56
+ "typedoc": "^0.24.8",
57
+ "typescript": "4.9.5",
58
+ "webpack": "^5.99.9",
59
+ "webpack-cli": "^5.1.4"
60
+ }
61
61
  }
@@ -99,6 +99,9 @@ class _FloatingUI {
99
99
 
100
100
  // Create the event
101
101
  document.addEventListener("click", (ev) => {
102
+ // Do nothing if we do not want to hide on click
103
+ if (this._props.options?.hideOnClick) { return; }
104
+
102
105
  // Do nothing if we toggled this component
103
106
  if (this._elTarget.contains(ev.target as HTMLElement)) { return; }
104
107
 
@@ -22,6 +22,7 @@ export interface IFloatingUIOptions {
22
22
  content?: string | Element;
23
23
  flip?: boolean | any;
24
24
  hide?: boolean | any;
25
+ hideOnClick?: boolean;
25
26
  inline?: boolean | any;
26
27
  offset?: number | any;
27
28
  shift?: boolean | any;
@@ -713,7 +713,7 @@ export class FormControl implements IFormControl {
713
713
  validation.isValid = value;
714
714
  }
715
715
  // Else, see if this is a dropdown and ensure it has a value
716
- else if (this._ddl && value) {
716
+ else if (this._ddl && !this._ddl.isMulti && value) {
717
717
  // Set the flag to ensure a text/value exists
718
718
  validation.isValid = value.text || value.value ? true : false;
719
719
  }