@bootkit/ng0 0.0.0-alpha.5 → 0.0.0-alpha.51
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/README.md +2 -2
- package/common/index.d.ts +288 -28
- package/components/accordion/index.d.ts +20 -10
- package/components/button/index.d.ts +7 -10
- package/components/card/index.d.ts +2 -6
- package/components/code/index.d.ts +2 -4
- package/components/collapse/index.d.ts +4 -41
- package/components/confirmation/index.d.ts +14 -16
- package/components/dropdown/index.d.ts +156 -0
- package/components/form-field/index.d.ts +24 -41
- package/components/list/index.d.ts +260 -0
- package/components/modal/index.d.ts +33 -11
- package/components/nav/index.d.ts +34 -32
- package/components/offcanvas/index.d.ts +13 -5
- package/components/pagination/index.d.ts +39 -13
- package/components/popover/index.d.ts +6 -6
- package/components/select/index.d.ts +160 -0
- package/components/sidenav/index.d.ts +122 -0
- package/components/stepper/index.d.ts +3 -4
- package/components/table/index.d.ts +205 -72
- package/components/toast/index.d.ts +14 -8
- package/components/tooltip/index.d.ts +36 -22
- package/components/vertical-menu/index.d.ts +79 -42
- package/data/index.d.ts +98 -38
- package/date/index.d.ts +34 -0
- package/fesm2022/bootkit-ng0-common.mjs +289 -12
- package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-accordion.mjs +38 -33
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-button.mjs +21 -29
- package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-card.mjs +18 -26
- package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-code.mjs +16 -20
- package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-collapse.mjs +20 -132
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-confirmation.mjs +24 -34
- package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-dropdown.mjs +308 -0
- package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs +62 -84
- package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-list.mjs +564 -0
- package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-modal.mjs +48 -29
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-nav.mjs +60 -68
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-offcanvas.mjs +20 -13
- package/fesm2022/bootkit-ng0-components-offcanvas.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-overlay.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-pagination.mjs +61 -26
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-popover.mjs +12 -12
- package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-select.mjs +448 -0
- package/fesm2022/bootkit-ng0-components-select.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs +296 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-stepper.mjs +15 -42
- package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-table.mjs +323 -165
- package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-toast.mjs +62 -84
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-tooltip.mjs +87 -74
- package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +171 -114
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-data.mjs +152 -39
- package/fesm2022/bootkit-ng0-data.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-date.mjs +50 -0
- package/fesm2022/bootkit-ng0-date.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-file.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-form.mjs +575 -264
- package/fesm2022/bootkit-ng0-form.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-http.mjs +61 -34
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-layouts-layout1.mjs +317 -0
- package/fesm2022/bootkit-ng0-layouts-layout1.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization-locales.mjs +103 -0
- package/fesm2022/bootkit-ng0-localization-locales.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization.mjs +431 -105
- package/fesm2022/bootkit-ng0-localization.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-platform-browser.mjs +179 -0
- package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-routing.mjs +80 -0
- package/fesm2022/bootkit-ng0-routing.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-script.mjs +3 -3
- package/fesm2022/bootkit-ng0-script.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-security.mjs +175 -40
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-utils.mjs +122 -0
- package/fesm2022/bootkit-ng0-utils.mjs.map +1 -0
- package/fesm2022/bootkit-ng0.mjs +2 -2
- package/fesm2022/bootkit-ng0.mjs.map +1 -1
- package/form/index.d.ts +153 -56
- package/http/index.d.ts +45 -14
- package/index.d.ts +2 -2
- package/layouts/layout1/index.d.ts +201 -0
- package/localization/index.d.ts +231 -42
- package/localization/locales/index.d.ts +7 -0
- package/package.json +57 -17
- package/platform/browser/index.d.ts +88 -0
- package/routing/index.d.ts +124 -0
- package/security/index.d.ts +76 -11
- package/utils/index.d.ts +63 -0
package/form/index.d.ts
CHANGED
|
@@ -1,6 +1,142 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, ElementRef, SimpleChanges
|
|
3
|
-
import { Validator, AbstractControl,
|
|
2
|
+
import { OnInit, OnChanges, ElementRef, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors, FormControl, ValidatorFn } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
declare class FocusDirective implements OnInit, OnChanges {
|
|
6
|
+
private elementRef;
|
|
7
|
+
/**
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
focusOnLoad: boolean;
|
|
11
|
+
focusWhen?: boolean;
|
|
12
|
+
private focused;
|
|
13
|
+
constructor(elementRef: ElementRef);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FocusDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusDirective, "[ng0Focus]", ["ng0Focus"], { "focusOnLoad": { "alias": "focusOnLoad"; "required": false; }; "focusWhen": { "alias": "focusWhen"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Directive to allow only number input in text fields.
|
|
22
|
+
* It supports integer and decimal numbers, negative numbers, min/max values, thousands separator.
|
|
23
|
+
*/
|
|
24
|
+
declare class NumberDirective implements ControlValueAccessor {
|
|
25
|
+
private _value?;
|
|
26
|
+
private _isDisabled?;
|
|
27
|
+
private _decimalSeparator;
|
|
28
|
+
private _thousandsSeparator;
|
|
29
|
+
private _onChangeCallback?;
|
|
30
|
+
private _onTouchedCallback?;
|
|
31
|
+
private _elmRef;
|
|
32
|
+
private _renderer;
|
|
33
|
+
/**
|
|
34
|
+
* The minimum number of digits to display after the decimal point.
|
|
35
|
+
* Applied only when 'numberType' is set to 'decimal'.
|
|
36
|
+
* @default 1
|
|
37
|
+
*/
|
|
38
|
+
minFractionDigits: i0.InputSignalWithTransform<number, unknown>;
|
|
39
|
+
/**
|
|
40
|
+
* The maximum number of digits to display after the decimal point.
|
|
41
|
+
* Applied only when 'numberType' is set to 'decimal'.
|
|
42
|
+
* @default 2
|
|
43
|
+
*/
|
|
44
|
+
maxFractionDigits: i0.InputSignalWithTransform<number, unknown>;
|
|
45
|
+
/**
|
|
46
|
+
* Whether to use grouping separators, such as thousands separators
|
|
47
|
+
* @default false
|
|
48
|
+
*/
|
|
49
|
+
useGrouping: i0.InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
/**
|
|
51
|
+
* Type of numbers to allow
|
|
52
|
+
* 'decimal' - allow decimal numbers
|
|
53
|
+
* 'integer' - allow integer numbers only
|
|
54
|
+
* @default 'integer'
|
|
55
|
+
*/
|
|
56
|
+
numberType: i0.InputSignal<"integer" | "decimal">;
|
|
57
|
+
constructor();
|
|
58
|
+
ngOnInit(): void;
|
|
59
|
+
registerOnChange(fn: any): void;
|
|
60
|
+
registerOnTouched(fn: any): void;
|
|
61
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
62
|
+
writeValue(value: any): void;
|
|
63
|
+
protected _onKeyDown(event: KeyboardEvent): void;
|
|
64
|
+
protected _onInput(value: string): void;
|
|
65
|
+
private _formatIntegerPart;
|
|
66
|
+
protected _onBlur(): void;
|
|
67
|
+
protected _onPaste(event: ClipboardEvent): void;
|
|
68
|
+
private _getInputState;
|
|
69
|
+
private _formatNumber;
|
|
70
|
+
private _isKeyAllowed;
|
|
71
|
+
private _setProperty;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDirective, never>;
|
|
73
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberDirective, "[ng0Number]", never, { "minFractionDigits": { "alias": "minFractionDigits"; "required": false; "isSignal": true; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; "isSignal": true; }; "useGrouping": { "alias": "useGrouping"; "required": false; "isSignal": true; }; "numberType": { "alias": "numberType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* A ControlValueAccessor for file input elements. It supports both single and multiple file selection.
|
|
78
|
+
* It assigns the selected file(s) to the form control's value and handles disabled state.
|
|
79
|
+
* @see https://angular.dev/api/forms/ControlValueAccessor
|
|
80
|
+
*/
|
|
81
|
+
declare class FileValueAccessor implements ControlValueAccessor {
|
|
82
|
+
private readonly _renderer;
|
|
83
|
+
private readonly _elementRef;
|
|
84
|
+
protected _changeFn: (value: any) => {};
|
|
85
|
+
protected _touchedFn: () => {};
|
|
86
|
+
writeValue(value?: any): void;
|
|
87
|
+
registerOnChange(fn: any): void;
|
|
88
|
+
registerOnTouched(fn: any): void;
|
|
89
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
90
|
+
protected _onChange(e: Event): void;
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileValueAccessor, never>;
|
|
92
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileValueAccessor, "input[type=file][ngModel][ng0File]", never, {}, {}, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/** Min validator */
|
|
96
|
+
declare class MinValidatorDirective implements Validator {
|
|
97
|
+
min: i0.InputSignalWithTransform<number, string | number | null | undefined>;
|
|
98
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MinValidatorDirective, never>;
|
|
100
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MinValidatorDirective, "input[type=text][ng0Number][min]", ["ng0Min"], { "min": { "alias": "min"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/** Max validator */
|
|
104
|
+
declare class MaxValidatorDirective implements Validator {
|
|
105
|
+
max: i0.InputSignalWithTransform<number, string | number | null | undefined>;
|
|
106
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
107
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaxValidatorDirective, never>;
|
|
108
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxValidatorDirective, "input[type=text][ng0Number][max]", ["ng0Max"], { "max": { "alias": "max"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
declare class FileMinSizeValidatorDirective implements Validator {
|
|
112
|
+
/**
|
|
113
|
+
* Minimum file size in bytes.
|
|
114
|
+
*/
|
|
115
|
+
readonly fileMinSize: i0.InputSignalWithTransform<number, unknown>;
|
|
116
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileMinSizeValidatorDirective, never>;
|
|
118
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileMinSizeValidatorDirective, "[ngModel][ng0File][ng0FileMinSize]", ["ng0FileMinSize"], { "fileMinSize": { "alias": "ng0FileMinSize"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
declare class FileMaxSizeValidatorDirective implements Validator {
|
|
122
|
+
/**
|
|
123
|
+
* Maximum file size in bytes.
|
|
124
|
+
*/
|
|
125
|
+
readonly fileMaxSize: i0.InputSignalWithTransform<number, unknown>;
|
|
126
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
127
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileMaxSizeValidatorDirective, never>;
|
|
128
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileMaxSizeValidatorDirective, "[ngModel][ng0File][ng0FileMaxSize]", ["ng0FileMaxSize"], { "fileMaxSize": { "alias": "ng0FileMaxSize"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
declare class FileExtensionValidatorDirective implements Validator {
|
|
132
|
+
/**
|
|
133
|
+
* Allowed file extensions.
|
|
134
|
+
*/
|
|
135
|
+
readonly allowedExtensions: i0.InputSignal<string[]>;
|
|
136
|
+
validate(control: AbstractControl): ValidationErrors | null;
|
|
137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileExtensionValidatorDirective, never>;
|
|
138
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FileExtensionValidatorDirective, "[ngModel][ng0File][ng0FileExtension]", ["ng0MaxFileSize"], { "allowedExtensions": { "alias": "ng0FileExtension"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
139
|
+
}
|
|
4
140
|
|
|
5
141
|
declare class EqualWithValidatorDirective implements Validator {
|
|
6
142
|
targetValue?: string;
|
|
@@ -31,65 +167,26 @@ declare class CustomValidatorDirective implements Validator {
|
|
|
31
167
|
|
|
32
168
|
declare class ValidationModule {
|
|
33
169
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ValidationModule, never, [typeof EqualWithValidatorDirective, typeof UrlValidatorDirective, typeof CustomValidatorDirective], [typeof EqualWithValidatorDirective, typeof UrlValidatorDirective, typeof CustomValidatorDirective]>;
|
|
170
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ValidationModule, never, [typeof MinValidatorDirective, typeof MaxValidatorDirective, typeof FileMinSizeValidatorDirective, typeof FileMaxSizeValidatorDirective, typeof FileExtensionValidatorDirective, typeof EqualWithValidatorDirective, typeof UrlValidatorDirective, typeof CustomValidatorDirective], [typeof MinValidatorDirective, typeof MaxValidatorDirective, typeof FileMinSizeValidatorDirective, typeof FileMaxSizeValidatorDirective, typeof FileExtensionValidatorDirective, typeof EqualWithValidatorDirective, typeof UrlValidatorDirective, typeof CustomValidatorDirective]>;
|
|
35
171
|
static ɵinj: i0.ɵɵInjectorDeclaration<ValidationModule>;
|
|
36
172
|
}
|
|
37
173
|
|
|
174
|
+
/**
|
|
175
|
+
* FormModule
|
|
176
|
+
*
|
|
177
|
+
*/
|
|
178
|
+
declare class FormModule {
|
|
179
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormModule, never>;
|
|
180
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormModule, never, [typeof ValidationModule, typeof NumberDirective, typeof FileValueAccessor], [typeof ValidationModule, typeof NumberDirective, typeof FileValueAccessor]>;
|
|
181
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormModule>;
|
|
182
|
+
}
|
|
183
|
+
|
|
38
184
|
declare function equalWithValidator(targetValue?: string, inequalityMessage?: string): ValidatorFn;
|
|
39
185
|
|
|
40
|
-
declare
|
|
41
|
-
private elementRef;
|
|
42
|
-
focusOnLoad: boolean;
|
|
43
|
-
focusWhen?: boolean;
|
|
44
|
-
private focused;
|
|
45
|
-
constructor(elementRef: ElementRef);
|
|
46
|
-
ngOnInit(): void;
|
|
47
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FocusDirective, never>;
|
|
49
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<FocusDirective, "[ng0Focus]", ["ng0Focus"], { "focusOnLoad": { "alias": "focusOnLoad"; "required": false; }; "focusWhen": { "alias": "focusWhen"; "required": false; }; }, {}, never, never, true, never>;
|
|
50
|
-
}
|
|
186
|
+
declare function fileMinSizeValidator(size: number): ValidatorFn;
|
|
51
187
|
|
|
52
|
-
declare
|
|
53
|
-
private elementRef;
|
|
54
|
-
constructor(elementRef: ElementRef);
|
|
55
|
-
private onKeyDown;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DigitsOnlyDirective, never>;
|
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DigitsOnlyDirective, "[iscDigitsOnly]", ["iscDigitsOnly"], {}, {}, never, never, true, never>;
|
|
58
|
-
}
|
|
188
|
+
declare function fileMaxSizeValidator(size: number): ValidatorFn;
|
|
59
189
|
|
|
60
|
-
declare
|
|
61
|
-
private el;
|
|
62
|
-
private renderer;
|
|
63
|
-
minFractionDigits: i0.InputSignal<number | undefined>;
|
|
64
|
-
maxFractionDigits: i0.InputSignal<number | undefined>;
|
|
65
|
-
useGrouping: i0.InputSignal<boolean>;
|
|
66
|
-
numberType: i0.InputSignal<"decimal" | "integer">;
|
|
67
|
-
private onChange;
|
|
68
|
-
private onTouched;
|
|
69
|
-
private decimalSeparator;
|
|
70
|
-
private thousandsSeparator;
|
|
71
|
-
private selectionStart;
|
|
72
|
-
private selectionEnd;
|
|
73
|
-
private isCursorInsideIntegerPart;
|
|
74
|
-
private decimalSeparatorPosition;
|
|
75
|
-
private value?;
|
|
76
|
-
private setProperty;
|
|
77
|
-
constructor(el: ElementRef<HTMLInputElement>, renderer: Renderer2);
|
|
78
|
-
ngOnInit(): void;
|
|
79
|
-
registerOnChange(fn: any): void;
|
|
80
|
-
registerOnTouched(fn: any): void;
|
|
81
|
-
setDisabledState?(isDisabled: boolean): void;
|
|
82
|
-
writeValue(value: any): void;
|
|
83
|
-
private onKeyDown;
|
|
84
|
-
private onInput;
|
|
85
|
-
private formatIntegerPart;
|
|
86
|
-
private onBlur;
|
|
87
|
-
private onPaste;
|
|
88
|
-
private updateCursorInfo;
|
|
89
|
-
private formatNumber;
|
|
90
|
-
private isKeyAllowed;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NumberDirective, never>;
|
|
92
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NumberDirective, "[ng0Number]", never, { "minFractionDigits": { "alias": "minFractionDigits"; "required": false; "isSignal": true; }; "maxFractionDigits": { "alias": "maxFractionDigits"; "required": false; "isSignal": true; }; "useGrouping": { "alias": "useGrouping"; "required": false; "isSignal": true; }; "numberType": { "alias": "numberType"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
93
|
-
}
|
|
190
|
+
declare function fileExtensionValidator(allowedExtensions: string[]): ValidatorFn;
|
|
94
191
|
|
|
95
|
-
export { CustomValidatorDirective,
|
|
192
|
+
export { CustomValidatorDirective, EqualWithValidatorDirective, FileExtensionValidatorDirective, FileMaxSizeValidatorDirective, FileMinSizeValidatorDirective, FileValueAccessor, FocusDirective, FormModule, MaxValidatorDirective, MinValidatorDirective, NumberDirective, UrlValidatorDirective, ValidationModule, equalWithValidator, fileExtensionValidator, fileMaxSizeValidator, fileMinSizeValidator };
|
package/http/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { HttpParams, HttpHeaders
|
|
1
|
+
import { HttpParams, HttpHeaders } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DataRequest, DataResult } from '@bootkit/ng0/data';
|
|
4
4
|
import * as i0 from '@angular/core';
|
|
5
|
-
import {
|
|
5
|
+
import { InjectionToken, Provider, EnvironmentProviders } from '@angular/core';
|
|
6
6
|
|
|
7
7
|
interface HttpRequestOptions {
|
|
8
8
|
/** Http request ID */
|
|
@@ -18,10 +18,6 @@ interface HttpRequestOptions {
|
|
|
18
18
|
* Additional data to associate with this object.
|
|
19
19
|
*/
|
|
20
20
|
tag?: Record<string, string | number | boolean | ReadonlyArray<string | number | boolean>>;
|
|
21
|
-
/**
|
|
22
|
-
* HttpDataRequestResolver
|
|
23
|
-
*/
|
|
24
|
-
dataRequestResolver?: HttpDataRequestResolver;
|
|
25
21
|
/**
|
|
26
22
|
* Save response in transfer state
|
|
27
23
|
*
|
|
@@ -72,20 +68,55 @@ type HttpRequestEvent = HttpRequestSendEvent | HttpRequestCompleteEvent | HttpRe
|
|
|
72
68
|
* It can also handle multipart/form-data requests.
|
|
73
69
|
*/
|
|
74
70
|
declare class HttpService {
|
|
75
|
-
private
|
|
76
|
-
private
|
|
77
|
-
private
|
|
78
|
-
private
|
|
79
|
-
private
|
|
71
|
+
private readonly _config;
|
|
72
|
+
private readonly _http;
|
|
73
|
+
private readonly _transferState;
|
|
74
|
+
private readonly _injector;
|
|
75
|
+
private readonly _platformId;
|
|
76
|
+
private readonly _eventsSubject;
|
|
80
77
|
private _baseUrl?;
|
|
81
|
-
events: Observable<HttpRequestEvent>;
|
|
78
|
+
readonly events: Observable<HttpRequestEvent>;
|
|
82
79
|
defaultHeaders?: HttpHeaders;
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
constructor();
|
|
81
|
+
/**
|
|
82
|
+
* Sends a GET request to the specified URL.
|
|
83
|
+
* @param url The URL to send the request to.
|
|
84
|
+
* @param options The options for the request.
|
|
85
|
+
* @returns An observable of the response.
|
|
86
|
+
*/
|
|
85
87
|
get<T>(url: string, options?: HttpRequestOptions): Observable<T>;
|
|
88
|
+
/**
|
|
89
|
+
* Sends a DataRequest to the specified URL and returns a DataResult.
|
|
90
|
+
* This method is used for paginated or filtered data requests.
|
|
91
|
+
* It uses the configured DataRequestResolver to handle the request.
|
|
92
|
+
* @param url The URL to send the request to.
|
|
93
|
+
* @param request The DataRequest object containing the request parameters.
|
|
94
|
+
* @param options The options for the request.
|
|
95
|
+
* @returns An observable of DataResult<T>.
|
|
96
|
+
*/
|
|
86
97
|
getDataResult<T>(url: string, request: DataRequest, options?: HttpRequestOptions): Observable<DataResult<T>>;
|
|
98
|
+
/**
|
|
99
|
+
* Sends a POST request to the specified URL with the given body.
|
|
100
|
+
* @param url The URL to send the request to.
|
|
101
|
+
* @param body The body of the request.
|
|
102
|
+
* @param options The options for the request.
|
|
103
|
+
* @returns An observable of the response.
|
|
104
|
+
*/
|
|
87
105
|
post<T>(url: string, body: any, options?: HttpRequestOptions): Observable<T>;
|
|
106
|
+
/**
|
|
107
|
+
* Sends a PUT request to the specified URL with the given body.
|
|
108
|
+
* @param url The URL to send the request to.
|
|
109
|
+
* @param body The body of the request.
|
|
110
|
+
* @param options The options for the request.
|
|
111
|
+
* @returns An observable of the response.
|
|
112
|
+
*/
|
|
88
113
|
put<T>(url: string, body: any, options?: HttpRequestOptions): Observable<T>;
|
|
114
|
+
/**
|
|
115
|
+
* Sends a DELETE request to the specified URL.
|
|
116
|
+
* @param url The URL to send the request to.
|
|
117
|
+
* @param options The options for the request.
|
|
118
|
+
* @returns An observable of the response.
|
|
119
|
+
*/
|
|
89
120
|
delete<T>(url: string, options?: HttpRequestOptions): Observable<T>;
|
|
90
121
|
private _makeUrl;
|
|
91
122
|
private _makeBody;
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const libName = "bootkit/ng0";
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { libName };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, EventEmitter, WritableSignal, QueryList } from '@angular/core';
|
|
3
|
+
import { SidenavMode, SidenavPosition, SidenavSize } from '@bootkit/ng0/components/sidenav';
|
|
4
|
+
import { CssClass } from '@bootkit/ng0/common';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Directive to define a sidenav within Layout1Component.
|
|
9
|
+
*/
|
|
10
|
+
declare class Layout1SidenavDirective {
|
|
11
|
+
readonly template: TemplateRef<any>;
|
|
12
|
+
readonly open: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
readonly mode: _angular_core.InputSignal<SidenavMode>;
|
|
14
|
+
readonly hasBackdrop: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
readonly zIndex: _angular_core.InputSignal<number | undefined>;
|
|
16
|
+
readonly position: _angular_core.InputSignal<SidenavPosition>;
|
|
17
|
+
readonly size: _angular_core.InputSignal<SidenavSize>;
|
|
18
|
+
readonly css: _angular_core.InputSignal<CssClass>;
|
|
19
|
+
backdropClick: EventEmitter<PointerEvent>;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1SidenavDirective, never>;
|
|
21
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Layout1SidenavDirective, "[ng0Layout1Sidenav]", ["ng0Layout1Sidenav"], { "open": { "alias": "open"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "zIndex": { "alias": "zIndex"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "css": { "alias": "css"; "required": false; "isSignal": true; }; }, { "backdropClick": "backdropClick"; }, never, never, true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Represents a secondary sidenav options in the Layout1Component.
|
|
26
|
+
*/
|
|
27
|
+
interface Layout1SecondarySidenavOptions {
|
|
28
|
+
size?: SidenavSize;
|
|
29
|
+
zIndex?: number;
|
|
30
|
+
position?: SidenavPosition;
|
|
31
|
+
mode?: SidenavMode;
|
|
32
|
+
fixedInViewport?: boolean;
|
|
33
|
+
hasBackdrop?: boolean;
|
|
34
|
+
css?: CssClass;
|
|
35
|
+
closeOnBackdropClick?: boolean;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Reference to a secondary sidenav in the Layout1Component.
|
|
39
|
+
*/
|
|
40
|
+
declare class Layout1SecondarySidenav {
|
|
41
|
+
private _disposedSubject;
|
|
42
|
+
private _isDisposed;
|
|
43
|
+
/**
|
|
44
|
+
* Observable that emits when the sidenav is disposed.
|
|
45
|
+
*/
|
|
46
|
+
readonly disposed: rxjs.Observable<any>;
|
|
47
|
+
/**
|
|
48
|
+
* template of the sidenav content.
|
|
49
|
+
*/
|
|
50
|
+
readonly template: TemplateRef<any>;
|
|
51
|
+
/**
|
|
52
|
+
* Z-Index of the sidenav.
|
|
53
|
+
*/
|
|
54
|
+
readonly zIndex: WritableSignal<number | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Sidenav css classes.
|
|
57
|
+
*/
|
|
58
|
+
readonly css: WritableSignal<CssClass>;
|
|
59
|
+
/**
|
|
60
|
+
* Size of the sidenav.
|
|
61
|
+
*/
|
|
62
|
+
readonly size: WritableSignal<SidenavSize>;
|
|
63
|
+
/**
|
|
64
|
+
* Position of the sidenav.
|
|
65
|
+
*/
|
|
66
|
+
readonly position: WritableSignal<SidenavPosition>;
|
|
67
|
+
/**
|
|
68
|
+
* Mode of the sidenav.
|
|
69
|
+
*/
|
|
70
|
+
readonly mode: WritableSignal<SidenavMode>;
|
|
71
|
+
/**
|
|
72
|
+
* Whether the sidenav has a backdrop.
|
|
73
|
+
*/
|
|
74
|
+
readonly hasBackdrop: WritableSignal<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the sidenav should close on backdrop click.
|
|
77
|
+
*/
|
|
78
|
+
readonly closeOnBackdropClick: WritableSignal<boolean>;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the sidenav is disposed.
|
|
81
|
+
*/
|
|
82
|
+
get isDisposed(): boolean;
|
|
83
|
+
constructor(template: TemplateRef<any>, options?: Layout1SecondarySidenavOptions);
|
|
84
|
+
/**
|
|
85
|
+
* Close and dispose the sidenav.
|
|
86
|
+
* @param result Optional result to emit when the sidenav is closed.
|
|
87
|
+
*/
|
|
88
|
+
dispose(result?: any): void;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Layout1 component that provides a layout with sidenavs.
|
|
93
|
+
*/
|
|
94
|
+
declare class Layout1Component {
|
|
95
|
+
private _zIndexCounter;
|
|
96
|
+
private readonly _manager;
|
|
97
|
+
protected readonly _sidenavs?: QueryList<Layout1SidenavDirective>;
|
|
98
|
+
protected readonly _secondarySidenavs: _angular_core.WritableSignal<Layout1SecondarySidenav[]>;
|
|
99
|
+
protected readonly _openSecondarySidenavs: Set<Layout1SecondarySidenav>;
|
|
100
|
+
private readonly _changeDetectorRef;
|
|
101
|
+
/**
|
|
102
|
+
* Default position for secondary sidenavs.
|
|
103
|
+
*/
|
|
104
|
+
defaultSidenavPosition: _angular_core.InputSignal<SidenavPosition>;
|
|
105
|
+
/**
|
|
106
|
+
* Default size for secondary sidenavs.
|
|
107
|
+
*/
|
|
108
|
+
defaultSidenavSize: _angular_core.InputSignal<SidenavSize>;
|
|
109
|
+
/**
|
|
110
|
+
* Default mode for secondary sidenavs.
|
|
111
|
+
*/
|
|
112
|
+
defaultSidenavMode: _angular_core.InputSignal<SidenavMode>;
|
|
113
|
+
/**
|
|
114
|
+
* Default hasBackdrop value for secondary sidenavs.
|
|
115
|
+
*/
|
|
116
|
+
defaultSidenavHasBackdrop: _angular_core.InputSignal<boolean>;
|
|
117
|
+
/**
|
|
118
|
+
* Default closeOnBackdropClick value for secondary sidenavs.
|
|
119
|
+
*/
|
|
120
|
+
defaultSidenavCloseOnBackdropClick: _angular_core.InputSignal<boolean>;
|
|
121
|
+
constructor();
|
|
122
|
+
/**
|
|
123
|
+
* Push a secondary sidenav.
|
|
124
|
+
* @param template The template for the secondary sidenav.
|
|
125
|
+
* @param options Options for the secondary sidenav.
|
|
126
|
+
* @returns The reference to the pushed secondary sidenav.
|
|
127
|
+
*/
|
|
128
|
+
pushSidenav(template: TemplateRef<any>, options?: Layout1SecondarySidenavOptions): Layout1SecondarySidenav;
|
|
129
|
+
/**
|
|
130
|
+
* Close the last secondary sidenav and dispose it.
|
|
131
|
+
* @param result The result to pass when closing the sidenav.
|
|
132
|
+
* @return The reference to the closed secondary sidenav.
|
|
133
|
+
*/
|
|
134
|
+
popSidenav(result?: any): Layout1SecondarySidenav | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* Get the list of secondary sidenavs.
|
|
137
|
+
*/
|
|
138
|
+
get secondarySidenavs(): ReadonlyArray<Layout1SecondarySidenav>;
|
|
139
|
+
protected _onSecondarySidenavTransitionEnd(sidenav: Layout1SecondarySidenav): void;
|
|
140
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1Component, never>;
|
|
141
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Layout1Component, "ng0-layout1", never, { "defaultSidenavPosition": { "alias": "defaultSidenavPosition"; "required": false; "isSignal": true; }; "defaultSidenavSize": { "alias": "defaultSidenavSize"; "required": false; "isSignal": true; }; "defaultSidenavMode": { "alias": "defaultSidenavMode"; "required": false; "isSignal": true; }; "defaultSidenavHasBackdrop": { "alias": "defaultSidenavHasBackdrop"; "required": false; "isSignal": true; }; "defaultSidenavCloseOnBackdropClick": { "alias": "defaultSidenavCloseOnBackdropClick"; "required": false; "isSignal": true; }; }, {}, ["_sidenavs"], ["ng0-layout1-header", "ng0-layout1-content"], true, never>;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Layout1 header component.
|
|
146
|
+
*/
|
|
147
|
+
declare class Layout1HeaderComponent {
|
|
148
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1HeaderComponent, never>;
|
|
149
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Layout1HeaderComponent, "ng0-layout1-header", never, {}, {}, never, ["*"], true, never>;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Layout1 content component.
|
|
154
|
+
*/
|
|
155
|
+
declare class Layout1ContentComponent {
|
|
156
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1ContentComponent, never>;
|
|
157
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Layout1ContentComponent, "ng0-layout1-content", never, {}, {}, never, ["*"], true, never>;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Layout1Module
|
|
162
|
+
*/
|
|
163
|
+
declare class Layout1Module {
|
|
164
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1Module, never>;
|
|
165
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<Layout1Module, never, [typeof Layout1Component, typeof Layout1SidenavDirective, typeof Layout1HeaderComponent, typeof Layout1ContentComponent], [typeof Layout1Component, typeof Layout1SidenavDirective, typeof Layout1HeaderComponent, typeof Layout1ContentComponent]>;
|
|
166
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<Layout1Module>;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Service to manage the configuration and state of Layout1Component.
|
|
171
|
+
*/
|
|
172
|
+
declare class Layout1Manager {
|
|
173
|
+
/**
|
|
174
|
+
* The Layout1Component instance associated with this manager.
|
|
175
|
+
*/
|
|
176
|
+
component: Layout1Component;
|
|
177
|
+
/**
|
|
178
|
+
* Push a secondary sidenav.
|
|
179
|
+
* @param content The template for the secondary sidenav.
|
|
180
|
+
* @param options Options for the secondary sidenav.
|
|
181
|
+
* @returns The reference to the pushed secondary sidenav.
|
|
182
|
+
*/
|
|
183
|
+
pushSidenav(content: TemplateRef<any>, options?: Layout1SecondarySidenavOptions): Layout1SecondarySidenav;
|
|
184
|
+
/**
|
|
185
|
+
* Close the last secondary sidenav and dispose it.
|
|
186
|
+
*/
|
|
187
|
+
popSidenav(result?: any): Layout1SecondarySidenav | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* Get the list of secondary sidenavs.
|
|
190
|
+
*/
|
|
191
|
+
get secondarySidenavs(): ReadonlyArray<Layout1SecondarySidenav>;
|
|
192
|
+
/**
|
|
193
|
+
* Get the last secondary sidenav.
|
|
194
|
+
*/
|
|
195
|
+
get last(): Layout1SecondarySidenav | undefined;
|
|
196
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Layout1Manager, never>;
|
|
197
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<Layout1Manager>;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export { Layout1Component, Layout1ContentComponent, Layout1HeaderComponent, Layout1Manager, Layout1Module, Layout1SecondarySidenav, Layout1SidenavDirective };
|
|
201
|
+
export type { Layout1SecondarySidenavOptions };
|