@bravobit/bb-foundation 0.53.0 → 0.53.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/elements/lib/elements.inject.d.ts +2 -0
- package/elements/lib/elements.interfaces.d.ts +2 -0
- package/elements/lib/elements.module.d.ts +2 -1
- package/elements/lib/file-picker/file-picker.component.d.ts +13 -1
- package/elements/lib/multi-file-control/multi-file-control.component.d.ts +23 -2
- package/elements/lib/pincode-control/pincode-control.component.d.ts +65 -0
- package/elements/lib/pipes/file-size.pipe.d.ts +0 -1
- package/elements/public_api.d.ts +1 -0
- package/fesm2022/bravobit-bb-foundation-elements.mjs +263 -35
- package/fesm2022/bravobit-bb-foundation-elements.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation-localize.mjs +21 -17
- package/fesm2022/bravobit-bb-foundation-localize.mjs.map +1 -1
- package/fesm2022/bravobit-bb-foundation.mjs +14 -12
- package/fesm2022/bravobit-bb-foundation.mjs.map +1 -1
- package/lib/core/functions/format.utils.d.ts +1 -0
- package/localize/lib/localizations/dutch.localization.d.ts +1 -0
- package/localize/lib/localizations/english.localization.d.ts +1 -0
- package/localize/lib/localizations/papiamento.localization.d.ts +1 -0
- package/localize/lib/localizations/spanish.localization.d.ts +1 -0
- package/package.json +16 -16
- package/public_api.d.ts +1 -0
|
@@ -30,9 +30,10 @@ import * as i26 from "./date-picker/date-picker.component";
|
|
|
30
30
|
import * as i27 from "./color-slider/color-slider.component";
|
|
31
31
|
import * as i28 from "./color-picker/color-picker.component";
|
|
32
32
|
import * as i29 from "./image-control/image-control.component";
|
|
33
|
+
import * as i30 from "./pincode-control/pincode-control.component";
|
|
33
34
|
export declare class ElementsModule {
|
|
34
35
|
static forRoot(config?: ElementsConfig): ModuleWithProviders<ElementsModule>;
|
|
35
36
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementsModule, never>;
|
|
36
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementsModule, never, [typeof i1.BbFormError, typeof i2.BbFormSubmit, typeof i3.BbFormSubmitter, typeof i4.BbInput, typeof i5.BbImageUpload, typeof i6.BbExtraErrorControls, typeof i7.BbFileDrop, typeof i8.ColorPickerDirective, typeof i9.BbFileSize, typeof i10.BbFileImage, typeof i11.BbRelativeTime, typeof i12.BbDate, typeof i13.BbButton, typeof i13.BbAnchor, typeof i14.BbSpinner, typeof i15.BbIcon, typeof i16.BbFormControl, typeof i17.BbFormGroup, typeof i18.BbCheckbox, typeof i19.BbCheckboxGroup, typeof i20.BbRadioGroup, typeof i21.BbRadioButton, typeof i22.BbAvatar, typeof i23.BbMultiFileControl, typeof i24.BbFilePicker, typeof i25.BbImagePicker, typeof i26.BbDatePicker, typeof i27.BbColorSlider, typeof i28.BbColorPicker, typeof i29.BbImageControl], [typeof i1.BbFormError, typeof i2.BbFormSubmit, typeof i3.BbFormSubmitter, typeof i4.BbInput, typeof i5.BbImageUpload, typeof i6.BbExtraErrorControls, typeof i7.BbFileDrop, typeof i8.ColorPickerDirective, typeof i9.BbFileSize, typeof i10.BbFileImage, typeof i11.BbRelativeTime, typeof i12.BbDate, typeof i13.BbButton, typeof i13.BbAnchor, typeof i14.BbSpinner, typeof i15.BbIcon, typeof i16.BbFormControl, typeof i17.BbFormGroup, typeof i18.BbCheckbox, typeof i19.BbCheckboxGroup, typeof i20.BbRadioGroup, typeof i21.BbRadioButton, typeof i22.BbAvatar, typeof i23.BbMultiFileControl, typeof i24.BbFilePicker, typeof i25.BbImagePicker, typeof i26.BbDatePicker, typeof i27.BbColorSlider, typeof i28.BbColorPicker, typeof i29.BbImageControl]>;
|
|
37
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ElementsModule, never, [typeof i1.BbFormError, typeof i2.BbFormSubmit, typeof i3.BbFormSubmitter, typeof i4.BbInput, typeof i5.BbImageUpload, typeof i6.BbExtraErrorControls, typeof i7.BbFileDrop, typeof i8.ColorPickerDirective, typeof i9.BbFileSize, typeof i10.BbFileImage, typeof i11.BbRelativeTime, typeof i12.BbDate, typeof i13.BbButton, typeof i13.BbAnchor, typeof i14.BbSpinner, typeof i15.BbIcon, typeof i16.BbFormControl, typeof i17.BbFormGroup, typeof i18.BbCheckbox, typeof i19.BbCheckboxGroup, typeof i20.BbRadioGroup, typeof i21.BbRadioButton, typeof i22.BbAvatar, typeof i23.BbMultiFileControl, typeof i24.BbFilePicker, typeof i25.BbImagePicker, typeof i26.BbDatePicker, typeof i27.BbColorSlider, typeof i28.BbColorPicker, typeof i29.BbImageControl, typeof i30.BbPincodeControl], [typeof i1.BbFormError, typeof i2.BbFormSubmit, typeof i3.BbFormSubmitter, typeof i4.BbInput, typeof i5.BbImageUpload, typeof i6.BbExtraErrorControls, typeof i7.BbFileDrop, typeof i8.ColorPickerDirective, typeof i9.BbFileSize, typeof i10.BbFileImage, typeof i11.BbRelativeTime, typeof i12.BbDate, typeof i13.BbButton, typeof i13.BbAnchor, typeof i14.BbSpinner, typeof i15.BbIcon, typeof i16.BbFormControl, typeof i17.BbFormGroup, typeof i18.BbCheckbox, typeof i19.BbCheckboxGroup, typeof i20.BbRadioGroup, typeof i21.BbRadioButton, typeof i22.BbAvatar, typeof i23.BbMultiFileControl, typeof i24.BbFilePicker, typeof i25.BbImagePicker, typeof i26.BbDatePicker, typeof i27.BbColorSlider, typeof i28.BbColorPicker, typeof i29.BbImageControl, typeof i30.BbPincodeControl]>;
|
|
37
38
|
static ɵinj: i0.ɵɵInjectorDeclaration<ElementsModule>;
|
|
38
39
|
}
|
|
@@ -9,6 +9,7 @@ export declare class BbFilePicker implements ControlValueAccessor {
|
|
|
9
9
|
label: string | TemplateRef<any> | null;
|
|
10
10
|
hint: string | TemplateRef<any> | null;
|
|
11
11
|
accept: string;
|
|
12
|
+
maxFileSize: number;
|
|
12
13
|
showImages: boolean;
|
|
13
14
|
grouped: boolean;
|
|
14
15
|
required: boolean;
|
|
@@ -36,11 +37,22 @@ export declare class BbFilePicker implements ControlValueAccessor {
|
|
|
36
37
|
} | null): void;
|
|
37
38
|
validate({ value }: FormControl<File>): {
|
|
38
39
|
invalidFileType: boolean;
|
|
40
|
+
maxFileSize?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
maxFileSize: {
|
|
43
|
+
maxSize: string;
|
|
44
|
+
};
|
|
45
|
+
invalidFileType?: undefined;
|
|
39
46
|
};
|
|
40
47
|
saveFile(files: File[]): void;
|
|
41
48
|
private getFilesFromEvent;
|
|
49
|
+
private isValidFileType;
|
|
50
|
+
private isValidFileSize;
|
|
51
|
+
private isFileLike;
|
|
42
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<BbFilePicker, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbFilePicker, "bb-file-picker", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "showImages": { "alias": "showImages"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideErrors": { "alias": "hideErrors"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, ["extraTemplate"], never, true, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BbFilePicker, "bb-file-picker", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "showImages": { "alias": "showImages"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideErrors": { "alias": "hideErrors"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, ["extraTemplate"], never, true, never>;
|
|
54
|
+
static ngAcceptInputType_maxFileSize: unknown;
|
|
55
|
+
static ngAcceptInputType_showImages: unknown;
|
|
44
56
|
static ngAcceptInputType_grouped: unknown;
|
|
45
57
|
static ngAcceptInputType_required: unknown;
|
|
46
58
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -9,6 +9,8 @@ export declare class BbMultiFileControl implements ControlValueAccessor {
|
|
|
9
9
|
label: string | TemplateRef<any> | null;
|
|
10
10
|
hint: string | TemplateRef<any> | null;
|
|
11
11
|
accept: string;
|
|
12
|
+
maxFileSize: number;
|
|
13
|
+
maxTotalFileSize: number;
|
|
12
14
|
grouped: boolean;
|
|
13
15
|
required: boolean;
|
|
14
16
|
disabled: boolean;
|
|
@@ -40,13 +42,32 @@ export declare class BbMultiFileControl implements ControlValueAccessor {
|
|
|
40
42
|
token: string;
|
|
41
43
|
data?: any;
|
|
42
44
|
} | null): void;
|
|
43
|
-
validate(
|
|
45
|
+
validate(control: FormControl<File[]>): {
|
|
44
46
|
invalidFiles: Record<number, boolean>;
|
|
47
|
+
maxFileSize?: undefined;
|
|
48
|
+
maxTotalFileSize?: undefined;
|
|
49
|
+
} | {
|
|
50
|
+
maxFileSize: {
|
|
51
|
+
maxSize: string;
|
|
52
|
+
};
|
|
53
|
+
invalidFiles?: undefined;
|
|
54
|
+
maxTotalFileSize?: undefined;
|
|
55
|
+
} | {
|
|
56
|
+
maxTotalFileSize: {
|
|
57
|
+
max: string;
|
|
58
|
+
current: string;
|
|
59
|
+
};
|
|
60
|
+
invalidFiles?: undefined;
|
|
61
|
+
maxFileSize?: undefined;
|
|
45
62
|
};
|
|
46
63
|
addFiles(files: File[]): void;
|
|
64
|
+
private isValidFileSize;
|
|
65
|
+
private isValidFileType;
|
|
47
66
|
private isFileLike;
|
|
48
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<BbMultiFileControl, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BbMultiFileControl, "bb-multi-file-control", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideErrors": { "alias": "hideErrors"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "delete": "delete"; }, never, never, true, never>;
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BbMultiFileControl, "bb-multi-file-control", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "maxTotalFileSize": { "alias": "maxTotalFileSize"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "hideErrors": { "alias": "hideErrors"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "delete": "delete"; }, never, never, true, never>;
|
|
69
|
+
static ngAcceptInputType_maxFileSize: unknown;
|
|
70
|
+
static ngAcceptInputType_maxTotalFileSize: unknown;
|
|
50
71
|
static ngAcceptInputType_grouped: unknown;
|
|
51
72
|
static ngAcceptInputType_required: unknown;
|
|
52
73
|
static ngAcceptInputType_disabled: unknown;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, Validator } from '@angular/forms';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class BbPincodeControl implements OnInit, OnDestroy, ControlValueAccessor, Validator {
|
|
6
|
+
private readonly _platform;
|
|
7
|
+
private readonly _changeDetectorRef;
|
|
8
|
+
htmlInputElementRef: ElementRef<HTMLInputElement>;
|
|
9
|
+
label: string | TemplateRef<any> | null;
|
|
10
|
+
hint: string | TemplateRef<any> | null;
|
|
11
|
+
placeholder: string | null;
|
|
12
|
+
autoFocus: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
grouped: boolean;
|
|
16
|
+
digits: number;
|
|
17
|
+
get value(): string | null;
|
|
18
|
+
valueChange: EventEmitter<string>;
|
|
19
|
+
set value(value: string | null);
|
|
20
|
+
data$: Observable<{
|
|
21
|
+
items?: {
|
|
22
|
+
index: number;
|
|
23
|
+
value: string;
|
|
24
|
+
active: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
}>;
|
|
27
|
+
control: FormControl<string>;
|
|
28
|
+
error: boolean;
|
|
29
|
+
onTouchedCallback: () => void;
|
|
30
|
+
onChangeCallback: (_: string | null) => void;
|
|
31
|
+
private _subscription;
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
writeValue(value: string | null): void;
|
|
35
|
+
registerOnChange(method: (_: string | null) => void): void;
|
|
36
|
+
registerOnTouched(method: () => void): void;
|
|
37
|
+
setDisabledState(isDisabled: boolean): void;
|
|
38
|
+
onErrorChange(error: {
|
|
39
|
+
token: string;
|
|
40
|
+
data?: any;
|
|
41
|
+
} | null): void;
|
|
42
|
+
validate(control: FormControl): {
|
|
43
|
+
maxlength: {
|
|
44
|
+
actualLength: any;
|
|
45
|
+
requiredLength: number;
|
|
46
|
+
};
|
|
47
|
+
minlength?: undefined;
|
|
48
|
+
} | {
|
|
49
|
+
minlength: {
|
|
50
|
+
actualLength: any;
|
|
51
|
+
requiredLength: number;
|
|
52
|
+
};
|
|
53
|
+
maxlength?: undefined;
|
|
54
|
+
};
|
|
55
|
+
private setData;
|
|
56
|
+
private handleValueChanges;
|
|
57
|
+
private handleAutoFocus;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BbPincodeControl, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BbPincodeControl, "bb-pincode-control", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "digits": { "alias": "digits"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
60
|
+
static ngAcceptInputType_autoFocus: unknown;
|
|
61
|
+
static ngAcceptInputType_required: unknown;
|
|
62
|
+
static ngAcceptInputType_readonly: unknown;
|
|
63
|
+
static ngAcceptInputType_grouped: unknown;
|
|
64
|
+
static ngAcceptInputType_digits: unknown;
|
|
65
|
+
}
|
|
@@ -2,7 +2,6 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BbFileSize implements PipeTransform {
|
|
4
4
|
transform(value: number): string;
|
|
5
|
-
private format;
|
|
6
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<BbFileSize, never>;
|
|
7
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<BbFileSize, "bbFileSize", true>;
|
|
8
7
|
}
|
package/elements/public_api.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './lib/date-picker/date-picker.component';
|
|
|
28
28
|
export * from './lib/color-slider/color-slider.component';
|
|
29
29
|
export * from './lib/color-picker/color-picker.component';
|
|
30
30
|
export * from './lib/image-control/image-control.component';
|
|
31
|
+
export * from './lib/pincode-control/pincode-control.component';
|
|
31
32
|
export * from './lib/elements.inject';
|
|
32
33
|
export * from './lib/elements.interfaces';
|
|
33
34
|
export * from './lib/elements.config';
|