gd-bs 5.8.8 → 5.9.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "5.8.8",
3
+ "version": "5.9.1",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
package/src/bs.scss CHANGED
@@ -1,19 +1,19 @@
1
- /** Core */
1
+ /** Core Bootstrap */
2
2
 
3
3
  @import "./styles/core.scss";
4
4
 
5
- /** Customizations */
5
+ /** TippyJS */
6
6
 
7
- @import "./styles/custom.scss";
7
+ @import "./styles/tippy.scss";
8
8
 
9
9
  /** DataTables.net */
10
10
 
11
11
  @import "./styles/dataTables.scss";
12
12
 
13
- /** Icons */
13
+ /** Customizations */
14
14
 
15
- @import "./styles/icons.scss";
15
+ @import "./styles/custom.scss";
16
16
 
17
- /** TippyJS */
17
+ /** Icons */
18
18
 
19
- @import "./styles/tippy.scss";
19
+ @import "./styles/icons.scss";
@@ -501,6 +501,12 @@ export class FormControl implements IFormControl {
501
501
 
502
502
  // See if this is a textbox
503
503
  if (this._tb) {
504
+ // See if this is a file
505
+ if (this._props.type == FormControlTypes.File) {
506
+ // Return the file information
507
+ return this._tb.getFileInfo();
508
+ }
509
+
504
510
  // Return the value
505
511
  return this._tb.getValue();
506
512
  }
@@ -173,16 +173,16 @@ class _InputGroup extends Base<IInputGroupProps> implements IInputGroup {
173
173
  // See if this is a file
174
174
  if (this.props.type == InputGroupTypes.File) {
175
175
  // Set the change event
176
- (elInput as HTMLInputElement).addEventListener("onchange", (ev) => {
176
+ (elInput as HTMLInputElement).addEventListener("change", (ev) => {
177
177
  // Get the source file
178
178
  let srcFile = ev.target["files"][0];
179
179
  if (srcFile) {
180
180
  let reader = new FileReader();
181
181
 
182
182
  // Set the file loaded event
183
- reader.onloadend = (ev: any) => {
183
+ reader.onloadend = (ev) => {
184
184
  this._fileValue = {
185
- data: ev.target.result,
185
+ data: ev.target.result as any,
186
186
  name: srcFile.name
187
187
  };
188
188
  }
@@ -41,7 +41,8 @@ import { IButtonProps } from "../button/types";
41
41
 
42
42
  /** Input Group File Value */
43
43
  export interface IInputGroupFileValue {
44
-
44
+ data: ArrayBuffer;
45
+ name: string;
45
46
  }
46
47
 
47
48
  /**
@@ -11,13 +11,6 @@ div.dataTables_wrapper div.dataTables_length select {
11
11
  width: 3.75rem;
12
12
  }
13
13
 
14
-
15
- /* Color match colReorder line */
16
-
17
- div.DTCR_pointer {
18
- background-color: #0078d4;
19
- }
20
-
21
14
  /* Be sure to escape any characters, such as # to %23 when specifying hex color values in background-image */
22
15
 
23
16
  /* DataTables sorting with Bootstrap Icons */
@@ -42,4 +35,30 @@ table.dataTable thead .sorting_desc_disabled:after {
42
35
  background-repeat: no-repeat;
43
36
  background-size: 1rem 1rem;
44
37
  content: "" !important;
38
+ }
39
+
40
+ /* Bootstrap Icon: caret-up */
41
+
42
+ table.dataTable thead .sorting {
43
+ background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M3.204 11L8 5.519 12.796 11H3.204zm-.753-.659l4.796-5.48a1 1 0 0 1 1.506 0l4.796 5.48c.566.647.106 1.659-.753 1.659H3.204a1 1 0 0 1-.753-1.659z'/></svg>");
44
+ }
45
+
46
+
47
+ /* Bootstrap Icon: caret-up-fill */
48
+
49
+ table.dataTable thead .sorting_asc {
50
+ background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 4.86l-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/></svg>");
51
+ }
52
+
53
+
54
+ /* Bootstrap Icon: caret-down-fill */
55
+
56
+ table.dataTable thead .sorting_desc {
57
+ background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
58
+ }
59
+
60
+ /* Color match colReorder line */
61
+
62
+ div.DTCR_pointer {
63
+ background-color: #0078d4;
45
64
  }
@@ -1,19 +1 @@
1
- /* Bootstrap Icon: caret-up */
2
-
3
- table.dataTable thead .sorting {
4
- background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M3.204 11L8 5.519 12.796 11H3.204zm-.753-.659l4.796-5.48a1 1 0 0 1 1.506 0l4.796 5.48c.566.647.106 1.659-.753 1.659H3.204a1 1 0 0 1-.753-1.659z'/></svg>");
5
- }
6
-
7
-
8
- /* Bootstrap Icon: caret-up-fill */
9
-
10
- table.dataTable thead .sorting_asc {
11
- background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 4.86l-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/></svg>");
12
- }
13
-
14
-
15
- /* Bootstrap Icon: caret-down-fill */
16
-
17
- table.dataTable thead .sorting_desc {
18
- background-image: url("data:image/svg+xml,<svg viewBox='0 0 16 16' fill='%236c757d' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>");
19
- }
1
+ /** TO DO */