gd-bs 6.3.3 → 6.3.5
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/button/index.js +1 -1
- package/build/components/dropdown/item.js +1 -1
- package/build/components/form/control.js +14 -0
- package/build/components/iconLink/index.js +1 -1
- package/build/components/navbar/item.js +1 -1
- package/dist/gd-bs-icons.js +1 -1
- package/dist/gd-bs-icons.js.LICENSE.txt +293 -297
- 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 +266 -278
- package/dist/gd-bs.min.js +1 -1
- package/package.json +14 -14
- package/pnpm-lock.yaml +1046 -1055
- package/src/bs.scss +10 -6
- package/src/components/button/index.ts +1 -1
- package/src/components/dropdown/item.ts +1 -1
- package/src/components/form/control.ts +14 -0
- package/src/components/form/controlTypes.d.ts +2 -0
- package/src/components/iconLink/index.ts +1 -1
- package/src/components/navbar/item.ts +1 -1
- package/src/styles/_custom.scss +196 -146
- package/src/styles/_dataTables.scss +5 -5
- package/src/styles/_root.scss +47 -0
- package/src/styles/_tippy.scss +65 -50
package/src/bs.scss
CHANGED
|
@@ -2,18 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
@import "./styles/core.scss";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/** Root Theme */
|
|
6
6
|
|
|
7
|
-
@import "./styles/
|
|
7
|
+
@import "./styles/root.scss";
|
|
8
|
+
|
|
9
|
+
/** Customizations */
|
|
10
|
+
|
|
11
|
+
@import "./styles/custom.scss";
|
|
8
12
|
|
|
9
13
|
/** DataTables.net */
|
|
10
14
|
|
|
11
15
|
@import "./styles/dataTables.scss";
|
|
12
16
|
|
|
13
|
-
/**
|
|
17
|
+
/** Icons */
|
|
14
18
|
|
|
15
|
-
@import "./styles/
|
|
19
|
+
@import "./styles/icons.scss";
|
|
16
20
|
|
|
17
|
-
/**
|
|
21
|
+
/** TippyJS */
|
|
18
22
|
|
|
19
|
-
@import "./styles/
|
|
23
|
+
@import "./styles/tippy.scss";
|
|
@@ -125,7 +125,7 @@ class _Button extends Base<IButtonProps> implements IButton {
|
|
|
125
125
|
this.el.prepend((this.props.iconType as Function)(this.props.iconSize, this.props.iconSize, this.props.iconClassName));
|
|
126
126
|
}
|
|
127
127
|
// Else, it's an element
|
|
128
|
-
else if (typeof (this.props.iconType === "object")
|
|
128
|
+
else if (typeof (this.props.iconType) === "object") {
|
|
129
129
|
// Append the icon
|
|
130
130
|
this.el.prepend(this.props.iconType);
|
|
131
131
|
}
|
|
@@ -111,7 +111,7 @@ export class DropdownItem {
|
|
|
111
111
|
elItem.prepend((this.props.iconType as Function)(iconSize, iconSize, this.props.iconClassName));
|
|
112
112
|
}
|
|
113
113
|
// Else, it's an element
|
|
114
|
-
else if (typeof (this.props.iconType === "object")
|
|
114
|
+
else if (typeof (this.props.iconType) === "object") {
|
|
115
115
|
// Append the icon
|
|
116
116
|
elItem.prepend(this.props.iconType);
|
|
117
117
|
}
|
|
@@ -131,12 +131,14 @@ export class FormControl implements IFormControl {
|
|
|
131
131
|
case FormControlTypes.ColorPicker:
|
|
132
132
|
// Add the input
|
|
133
133
|
this._tb = InputGroup({
|
|
134
|
+
appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
|
|
134
135
|
className,
|
|
135
136
|
id: this._props.id,
|
|
136
137
|
isDisabled: this._props.isDisabled,
|
|
137
138
|
isReadonly: this._props.isReadonly,
|
|
138
139
|
onChange: (this._props as IFormControlPropsTextField).onChange,
|
|
139
140
|
placeholder: (this._props as IFormControlPropsTextField).placeholder,
|
|
141
|
+
prependedLabel: (this.props as IFormControlPropsTextField).prependedLabel,
|
|
140
142
|
required: this._props.required,
|
|
141
143
|
title: this._props.title,
|
|
142
144
|
type: InputGroupTypes.ColorPicker,
|
|
@@ -179,12 +181,14 @@ export class FormControl implements IFormControl {
|
|
|
179
181
|
case FormControlTypes.Email:
|
|
180
182
|
// Add the input
|
|
181
183
|
this._tb = InputGroup({
|
|
184
|
+
appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
|
|
182
185
|
className,
|
|
183
186
|
id: this._props.id,
|
|
184
187
|
isDisabled: this._props.isDisabled,
|
|
185
188
|
isReadonly: this._props.isReadonly,
|
|
186
189
|
onChange: (this._props as IFormControlPropsTextField).onChange,
|
|
187
190
|
placeholder: (this._props as IFormControlPropsTextField).placeholder,
|
|
191
|
+
prependedLabel: (this.props as IFormControlPropsTextField).prependedLabel,
|
|
188
192
|
required: this._props.required,
|
|
189
193
|
title: this._props.title,
|
|
190
194
|
type: InputGroupTypes.Email,
|
|
@@ -195,12 +199,14 @@ export class FormControl implements IFormControl {
|
|
|
195
199
|
case FormControlTypes.File:
|
|
196
200
|
// Add the input
|
|
197
201
|
this._tb = InputGroup({
|
|
202
|
+
appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
|
|
198
203
|
className,
|
|
199
204
|
id: this._props.id,
|
|
200
205
|
isDisabled: this._props.isDisabled,
|
|
201
206
|
isReadonly: this._props.isReadonly,
|
|
202
207
|
onChange: (this._props as IFormControlPropsTextField).onChange,
|
|
203
208
|
placeholder: (this._props as IFormControlPropsTextField).placeholder,
|
|
209
|
+
prependedLabel: (this.props as IFormControlPropsTextField).prependedLabel,
|
|
204
210
|
required: this._props.required,
|
|
205
211
|
title: this._props.title,
|
|
206
212
|
type: InputGroupTypes.File,
|
|
@@ -312,12 +318,14 @@ export class FormControl implements IFormControl {
|
|
|
312
318
|
case FormControlTypes.Password:
|
|
313
319
|
// Add the input
|
|
314
320
|
this._tb = InputGroup({
|
|
321
|
+
appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
|
|
315
322
|
className,
|
|
316
323
|
id: this._props.id,
|
|
317
324
|
isDisabled: this._props.isDisabled,
|
|
318
325
|
isReadonly: this._props.isReadonly,
|
|
319
326
|
onChange: (this._props as IFormControlPropsTextField).onChange,
|
|
320
327
|
placeholder: (this._props as IFormControlPropsTextField).placeholder,
|
|
328
|
+
prependedLabel: (this.props as IFormControlPropsTextField).prependedLabel,
|
|
321
329
|
required: this._props.required,
|
|
322
330
|
title: this._props.title,
|
|
323
331
|
type: InputGroupTypes.Password,
|
|
@@ -364,11 +372,13 @@ export class FormControl implements IFormControl {
|
|
|
364
372
|
case FormControlTypes.Readonly:
|
|
365
373
|
// Add the input
|
|
366
374
|
this._tb = InputGroup({
|
|
375
|
+
appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
|
|
367
376
|
className,
|
|
368
377
|
id: this._props.id,
|
|
369
378
|
isReadonly: true,
|
|
370
379
|
onChange: (this._props as IFormControlPropsTextField).onChange,
|
|
371
380
|
placeholder: (this._props as IFormControlPropsTextField).placeholder,
|
|
381
|
+
prependedLabel: (this.props as IFormControlPropsTextField).prependedLabel,
|
|
372
382
|
required: this._props.required,
|
|
373
383
|
title: this._props.title,
|
|
374
384
|
type: InputGroupTypes.TextField,
|
|
@@ -396,12 +406,14 @@ export class FormControl implements IFormControl {
|
|
|
396
406
|
case FormControlTypes.TextArea:
|
|
397
407
|
// Add the input
|
|
398
408
|
this._tb = InputGroup({
|
|
409
|
+
appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
|
|
399
410
|
className,
|
|
400
411
|
id: this._props.id,
|
|
401
412
|
isDisabled: this._props.isDisabled,
|
|
402
413
|
isReadonly: this._props.isReadonly,
|
|
403
414
|
onChange: (this._props as IFormControlPropsTextField).onChange,
|
|
404
415
|
placeholder: (this._props as IFormControlPropsTextField).placeholder,
|
|
416
|
+
prependedLabel: (this.props as IFormControlPropsTextField).prependedLabel,
|
|
405
417
|
required: this._props.required,
|
|
406
418
|
rows: (this._props as IFormControlPropsTextField).rows,
|
|
407
419
|
title: this._props.title,
|
|
@@ -413,12 +425,14 @@ export class FormControl implements IFormControl {
|
|
|
413
425
|
case FormControlTypes.TextField:
|
|
414
426
|
// Add the input
|
|
415
427
|
this._tb = InputGroup({
|
|
428
|
+
appendedLabel: (this.props as IFormControlPropsTextField).appendedLabel,
|
|
416
429
|
className,
|
|
417
430
|
id: this._props.id,
|
|
418
431
|
isDisabled: this._props.isDisabled,
|
|
419
432
|
isReadonly: this._props.isReadonly,
|
|
420
433
|
onChange: (this._props as IFormControlPropsTextField).onChange,
|
|
421
434
|
placeholder: (this._props as IFormControlPropsTextField).placeholder,
|
|
435
|
+
prependedLabel: (this.props as IFormControlPropsTextField).prependedLabel,
|
|
422
436
|
required: this._props.required,
|
|
423
437
|
title: this._props.title,
|
|
424
438
|
type: InputGroupTypes.TextField,
|
|
@@ -202,12 +202,14 @@ export interface IFormControlPropsSwitch extends IFormControlPropsCheckbox { }
|
|
|
202
202
|
* Form Control Properties - TextField
|
|
203
203
|
*/
|
|
204
204
|
export interface IFormControlPropsTextField extends IFormControlProps {
|
|
205
|
+
appendedLabel?: string;
|
|
205
206
|
el?: HTMLInputElement;
|
|
206
207
|
onChange?: (value: string, ev?: Event) => void;
|
|
207
208
|
onControlRendering?: (control: IFormControlPropsTextField) => void | PromiseLike<IFormControlPropsTextField>;
|
|
208
209
|
onGetValue?: (control: IFormControlPropsTextField) => any;
|
|
209
210
|
onValidate?: (control: IFormControlPropsTextField, value: IFormControlValidationResult) => boolean | IFormControlValidationResult;
|
|
210
211
|
placeholder?: string;
|
|
212
|
+
prependedLabel?: string;
|
|
211
213
|
rows?: number;
|
|
212
214
|
}
|
|
213
215
|
|
|
@@ -43,7 +43,7 @@ class _IconLink extends Base<IIconLinkProps> implements IIconLink {
|
|
|
43
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
|
-
else if (typeof (this.props.iconType === "object")
|
|
46
|
+
else if (typeof (this.props.iconType) === "object") {
|
|
47
47
|
// Set the icon
|
|
48
48
|
this._elIcon = this.props.iconType;
|
|
49
49
|
} else { return; }
|
|
@@ -93,7 +93,7 @@ export class NavbarItem {
|
|
|
93
93
|
link.prepend((this._props.iconType as Function)(iconSize, iconSize, this._props.iconClassName));
|
|
94
94
|
}
|
|
95
95
|
// Else, it's an element
|
|
96
|
-
else if (typeof (this._props.iconType === "object")
|
|
96
|
+
else if (typeof (this._props.iconType) === "object") {
|
|
97
97
|
// Append the icon
|
|
98
98
|
link.prepend(this._props.iconType);
|
|
99
99
|
}
|