@bootkit/ng0 0.0.0-alpha.1 → 0.0.0-alpha.3
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/common/index.d.ts +12 -5
- package/components/accordion/index.d.ts +32 -0
- package/components/collapse/index.d.ts +59 -0
- package/components/form-field/index.d.ts +72 -0
- package/components/modal/index.d.ts +29 -0
- package/components/nav/index.d.ts +64 -0
- package/{offcanvas/offcanvas.directive.d.ts → components/offcanvas/index.d.ts} +14 -5
- package/components/overlay/index.d.ts +40 -0
- package/components/pagination/index.d.ts +30 -0
- package/components/popover/index.d.ts +36 -0
- package/components/toast/index.d.ts +101 -0
- package/components/tooltip/index.d.ts +30 -0
- package/data/index.d.ts +74 -0
- package/fesm2022/bootkit-ng0-common.mjs +11 -4
- package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
- package/fesm2022/{bootkit-ng0-accordion.mjs → bootkit-ng0-components-accordion.mjs} +13 -13
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-collapse.mjs → bootkit-ng0-components-collapse.mjs} +12 -12
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs +147 -0
- package/fesm2022/bootkit-ng0-components-form-field.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-modal.mjs → bootkit-ng0-components-modal.mjs} +9 -9
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-nav.mjs → bootkit-ng0-components-nav.mjs} +21 -21
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-offcanvas.mjs → bootkit-ng0-components-offcanvas.mjs} +9 -9
- package/fesm2022/bootkit-ng0-components-offcanvas.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-overlay.mjs +99 -0
- package/fesm2022/bootkit-ng0-components-overlay.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-pagination.mjs +85 -0
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-popover.mjs → bootkit-ng0-components-popover.mjs} +8 -8
- package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-toast.mjs → bootkit-ng0-components-toast.mjs} +9 -9
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-tooltip.mjs → bootkit-ng0-components-tooltip.mjs} +8 -8
- package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-data.mjs +153 -0
- package/fesm2022/bootkit-ng0-data.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-http.mjs +229 -0
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization.mjs +301 -0
- package/fesm2022/bootkit-ng0-localization.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-security.mjs +130 -0
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -0
- package/http/index.d.ts +66 -0
- package/index.d.ts +3 -5
- package/localization/index.d.ts +178 -0
- package/package.json +60 -58
- package/security/index.d.ts +48 -0
- package/accordion/accordion-item.component.d.ts +0 -13
- package/accordion/accordion.component.d.ts +0 -13
- package/accordion/accordion.module.d.ts +0 -8
- package/accordion/index.d.ts +0 -5
- package/accordion/public-api.d.ts +0 -3
- package/collapse/collapse.component.d.ts +0 -18
- package/collapse/collapse.directive.d.ts +0 -32
- package/collapse/collapse.module.d.ts +0 -8
- package/collapse/index.d.ts +0 -5
- package/collapse/public-api.d.ts +0 -3
- package/common/public-api.d.ts +0 -2
- package/common/types.d.ts +0 -4
- package/common/utils.d.ts +0 -3
- package/esm2022/accordion/accordion-item.component.mjs +0 -34
- package/esm2022/accordion/accordion.component.mjs +0 -25
- package/esm2022/accordion/accordion.module.mjs +0 -25
- package/esm2022/accordion/bootkit-ng0-accordion.mjs +0 -5
- package/esm2022/accordion/public-api.mjs +0 -4
- package/esm2022/bootkit-ng0.mjs +0 -5
- package/esm2022/collapse/bootkit-ng0-collapse.mjs +0 -5
- package/esm2022/collapse/collapse.component.mjs +0 -46
- package/esm2022/collapse/collapse.directive.mjs +0 -94
- package/esm2022/collapse/collapse.module.mjs +0 -23
- package/esm2022/collapse/public-api.mjs +0 -4
- package/esm2022/common/bootkit-ng0-common.mjs +0 -5
- package/esm2022/common/public-api.mjs +0 -3
- package/esm2022/common/types.mjs +0 -3
- package/esm2022/common/utils.mjs +0 -16
- package/esm2022/lib/index.mjs +0 -3
- package/esm2022/lib/types.mjs +0 -2
- package/esm2022/modal/bootkit-ng0-modal.mjs +0 -5
- package/esm2022/modal/modal.component.mjs +0 -44
- package/esm2022/modal/modal.module.mjs +0 -20
- package/esm2022/modal/public-api.mjs +0 -3
- package/esm2022/modal/types.mjs +0 -3
- package/esm2022/nav/bootkit-ng0-nav.mjs +0 -5
- package/esm2022/nav/nav-item.directive.mjs +0 -26
- package/esm2022/nav/nav-link.directive.mjs +0 -45
- package/esm2022/nav/nav.directive.mjs +0 -23
- package/esm2022/nav/nav.module.mjs +0 -35
- package/esm2022/nav/public-api.mjs +0 -7
- package/esm2022/nav/tab-content.component.mjs +0 -29
- package/esm2022/nav/tab-pane.directive.mjs +0 -20
- package/esm2022/offcanvas/bootkit-ng0-offcanvas.mjs +0 -5
- package/esm2022/offcanvas/offcanvas.directive.mjs +0 -118
- package/esm2022/offcanvas/offcanvas.module.mjs +0 -19
- package/esm2022/offcanvas/public-api.mjs +0 -3
- package/esm2022/overlay/bootkit-ng0-overlay.mjs +0 -5
- package/esm2022/overlay/overlay.directive.mjs +0 -111
- package/esm2022/overlay/overlay.module.mjs +0 -22
- package/esm2022/overlay/private/utils.mjs +0 -58
- package/esm2022/overlay/public-api.mjs +0 -3
- package/esm2022/popover/bootkit-ng0-popover.mjs +0 -5
- package/esm2022/popover/popover-wrapper/popover-wrapper.component.mjs +0 -29
- package/esm2022/popover/popover.directive.mjs +0 -140
- package/esm2022/popover/public-api.mjs +0 -2
- package/esm2022/popover/types.mjs +0 -2
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/toast/bootkit-ng0-toast.mjs +0 -5
- package/esm2022/toast/public-api.mjs +0 -4
- package/esm2022/toast/toast-ref.mjs +0 -27
- package/esm2022/toast/toast.component.mjs +0 -68
- package/esm2022/toast/toast.service.mjs +0 -93
- package/esm2022/toast/types.mjs +0 -2
- package/esm2022/tooltip/bootkit-ng0-tooltip.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -3
- package/esm2022/tooltip/tooltip-wrapper/tooltip-wrapper.component.mjs +0 -44
- package/esm2022/tooltip/tooltip.directive.mjs +0 -93
- package/esm2022/tooltip/types.mjs +0 -2
- package/fesm2022/bootkit-ng0-accordion.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-collapse.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-modal.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-nav.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-offcanvas.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-overlay.mjs +0 -194
- package/fesm2022/bootkit-ng0-overlay.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-popover.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-toast.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-tooltip.mjs.map +0 -1
- package/lib/index.d.ts +0 -2
- package/lib/types.d.ts +0 -1
- package/modal/index.d.ts +0 -5
- package/modal/modal.component.d.ts +0 -18
- package/modal/modal.module.d.ts +0 -7
- package/modal/public-api.d.ts +0 -2
- package/modal/types.d.ts +0 -2
- package/nav/index.d.ts +0 -5
- package/nav/nav-item.directive.d.ts +0 -13
- package/nav/nav-link.directive.d.ts +0 -16
- package/nav/nav.directive.d.ts +0 -11
- package/nav/nav.module.d.ts +0 -11
- package/nav/public-api.d.ts +0 -6
- package/nav/tab-content.component.d.ts +0 -15
- package/nav/tab-pane.directive.d.ts +0 -9
- package/offcanvas/index.d.ts +0 -5
- package/offcanvas/offcanvas.module.d.ts +0 -7
- package/offcanvas/public-api.d.ts +0 -2
- package/overlay/index.d.ts +0 -5
- package/overlay/overlay.directive.d.ts +0 -50
- package/overlay/overlay.module.d.ts +0 -10
- package/overlay/private/utils.d.ts +0 -10
- package/overlay/public-api.d.ts +0 -2
- package/popover/index.d.ts +0 -5
- package/popover/popover-wrapper/popover-wrapper.component.d.ts +0 -15
- package/popover/popover.directive.d.ts +0 -30
- package/popover/public-api.d.ts +0 -1
- package/popover/types.d.ts +0 -4
- package/public-api.d.ts +0 -1
- package/toast/index.d.ts +0 -5
- package/toast/public-api.d.ts +0 -3
- package/toast/toast-ref.d.ts +0 -12
- package/toast/toast.component.d.ts +0 -19
- package/toast/toast.service.d.ts +0 -43
- package/toast/types.d.ts +0 -44
- package/tooltip/index.d.ts +0 -5
- package/tooltip/public-api.d.ts +0 -2
- package/tooltip/tooltip-wrapper/tooltip-wrapper.component.d.ts +0 -19
- package/tooltip/tooltip.directive.d.ts +0 -24
- package/tooltip/types.d.ts +0 -3
package/common/index.d.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
4
|
+
type Alignment = 'start' | 'center' | 'end';
|
|
5
|
+
declare const RTL: InjectionToken<boolean>;
|
|
6
|
+
|
|
7
|
+
declare function numberRange(start: number, end: number): number[];
|
|
8
|
+
declare function fillArray(start: number, end: number): number[];
|
|
9
|
+
declare function flipPlacement(placement: Placement): "start" | "end" | "top" | "bottom";
|
|
10
|
+
|
|
11
|
+
export { RTL, fillArray, flipPlacement, numberRange };
|
|
12
|
+
export type { Alignment, Placement };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, Renderer2, QueryList } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class AccordionItemComponent {
|
|
5
|
+
private _element;
|
|
6
|
+
private _renderer;
|
|
7
|
+
private _accordion;
|
|
8
|
+
header: i0.InputSignal<string>;
|
|
9
|
+
collapsed: i0.ModelSignal<boolean>;
|
|
10
|
+
constructor(_element: ElementRef, _renderer: Renderer2, _accordion: AccordionComponent);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionItemComponent, "ng0-accordion-item", ["ng0AccordionItem"], { "header": { "alias": "header"; "required": false; "isSignal": true; }; "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class AccordionComponent {
|
|
16
|
+
private _element;
|
|
17
|
+
private _renderer;
|
|
18
|
+
/** Items open mode */
|
|
19
|
+
mode: i0.InputSignal<"single" | "multiple">;
|
|
20
|
+
readonly items: QueryList<AccordionItemComponent>;
|
|
21
|
+
constructor(_element: ElementRef, _renderer: Renderer2);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ng0-accordion", ["ng0Accordion"], { "mode": { "alias": "mode"; "required": false; "isSignal": true; }; }, {}, ["items"], ["*"], true, never>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
declare class AccordionModule {
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionModule, never>;
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AccordionModule, never, [typeof AccordionComponent, typeof AccordionItemComponent], [typeof AccordionComponent, typeof AccordionItemComponent]>;
|
|
29
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AccordionModule>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { AccordionComponent, AccordionItemComponent, AccordionModule };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
3
|
+
import { AnimationBuilder } from '@angular/animations';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Directive to handle the collapse and expand functionality of a host element.
|
|
7
|
+
*/
|
|
8
|
+
declare class CollapseDirective implements OnInit, OnDestroy {
|
|
9
|
+
private el;
|
|
10
|
+
private builder;
|
|
11
|
+
private renderer;
|
|
12
|
+
/**
|
|
13
|
+
* Indicates whether the host element is collapsed.
|
|
14
|
+
* @input
|
|
15
|
+
*/
|
|
16
|
+
collapsed: i0.InputSignal<boolean>;
|
|
17
|
+
/** Animation timings for collapse/expand animations.
|
|
18
|
+
* @input
|
|
19
|
+
*/
|
|
20
|
+
timings: i0.InputSignal<string | number>;
|
|
21
|
+
private _player?;
|
|
22
|
+
private _firstExecution;
|
|
23
|
+
constructor(el: ElementRef, builder: AnimationBuilder, renderer: Renderer2);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
private _collapse;
|
|
26
|
+
private _expand;
|
|
27
|
+
private _playAnimation;
|
|
28
|
+
private _addClass;
|
|
29
|
+
private _removeClass;
|
|
30
|
+
ngOnDestroy(): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseDirective, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CollapseDirective, "[ng0Collapse]", ["ng0Collapse"], { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "timings": { "alias": "timings"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* A component that provides collapse and expand functionality.
|
|
37
|
+
*/
|
|
38
|
+
declare class CollapseComponent {
|
|
39
|
+
/**
|
|
40
|
+
* Indicates whether the host element is collapsed.
|
|
41
|
+
* @model
|
|
42
|
+
*/
|
|
43
|
+
collapsed: i0.ModelSignal<boolean>;
|
|
44
|
+
/** Animation timings for collapse/expand animations.
|
|
45
|
+
* @input
|
|
46
|
+
*/
|
|
47
|
+
timings: i0.InputSignal<string | number>;
|
|
48
|
+
private get _collapseExpand();
|
|
49
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseComponent, never>;
|
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollapseComponent, "ng0-collapse", never, { "collapsed": { "alias": "collapsed"; "required": false; "isSignal": true; }; "timings": { "alias": "timings"; "required": false; "isSignal": true; }; }, { "collapsed": "collapsedChange"; }, never, ["*"], true, never>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare class CollapseModule {
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollapseModule, never>;
|
|
55
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CollapseModule, never, [typeof CollapseDirective, typeof CollapseComponent], [typeof CollapseDirective, typeof CollapseComponent]>;
|
|
56
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CollapseModule>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export { CollapseComponent, CollapseDirective, CollapseModule };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, AfterContentInit, OnDestroy, Renderer2, DestroyRef } from '@angular/core';
|
|
3
|
+
import { NgForm } from '@angular/forms';
|
|
4
|
+
import { LocalizationService } from '@bootkit/ng0/localization';
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
|
+
|
|
7
|
+
declare class FormFieldComponent implements OnInit, AfterContentInit, OnDestroy {
|
|
8
|
+
private _renderer;
|
|
9
|
+
private _destroyRef;
|
|
10
|
+
private _form;
|
|
11
|
+
private _ls;
|
|
12
|
+
/**
|
|
13
|
+
* The label text for the form field.
|
|
14
|
+
*/
|
|
15
|
+
label: _angular_core.InputSignal<string>;
|
|
16
|
+
/**
|
|
17
|
+
* The hint text to display below the form field.
|
|
18
|
+
* This is typically used to provide additional information or instructions to the user.
|
|
19
|
+
*/
|
|
20
|
+
hint: _angular_core.InputSignal<string>;
|
|
21
|
+
/**
|
|
22
|
+
* If true, the form-field will show validation errors.
|
|
23
|
+
* This is useful for displaying validation messages when the form control is invalid.
|
|
24
|
+
*/
|
|
25
|
+
showErrors: _angular_core.InputSignal<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* If true, the form-field will show a red asterisk for required fields.
|
|
28
|
+
* This is only a visual indicator and does not enforce validation.
|
|
29
|
+
*/
|
|
30
|
+
showRequiredIndicator: _angular_core.InputSignal<boolean>;
|
|
31
|
+
/**
|
|
32
|
+
* If true, the form-field will show subscripts (e.g. hints, errors) for the field label.
|
|
33
|
+
* This is useful for displaying additional information or validation messages.
|
|
34
|
+
*/
|
|
35
|
+
showSubscripts: _angular_core.InputSignal<boolean>;
|
|
36
|
+
/**
|
|
37
|
+
* If true, the form-field will be rendered inside a ".input-group" element.
|
|
38
|
+
*/
|
|
39
|
+
inputGroup: _angular_core.InputSignal<boolean>;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the first localized error of the control
|
|
42
|
+
*/
|
|
43
|
+
get errorText(): string;
|
|
44
|
+
/** Reports whether the control is touched. */
|
|
45
|
+
get touched(): boolean | null | undefined;
|
|
46
|
+
/** Reports whether the control is dirty. */
|
|
47
|
+
get dirty(): boolean | null | undefined;
|
|
48
|
+
/** Returns true if this form-field is required, otherwise returns false. */
|
|
49
|
+
get isRequired(): boolean;
|
|
50
|
+
private _onFocusOut;
|
|
51
|
+
private _ngControl?;
|
|
52
|
+
private _ngControlElement?;
|
|
53
|
+
private _isRequired;
|
|
54
|
+
private _locale?;
|
|
55
|
+
private _errorText?;
|
|
56
|
+
constructor(_renderer: Renderer2, _destroyRef: DestroyRef, _form: NgForm, _ls: LocalizationService);
|
|
57
|
+
ngOnInit(): void;
|
|
58
|
+
ngAfterContentInit(): void;
|
|
59
|
+
private _validate;
|
|
60
|
+
private _isRequiredField;
|
|
61
|
+
ngOnDestroy(): void;
|
|
62
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldComponent, [null, null, { optional: true; }, null]>;
|
|
63
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldComponent, "ng0-form-field, ng0-field", ["ng0FormField"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "showErrors": { "alias": "showErrors"; "required": false; "isSignal": true; }; "showRequiredIndicator": { "alias": "showRequiredIndicator"; "required": false; "isSignal": true; }; "showSubscripts": { "alias": "showSubscripts"; "required": false; "isSignal": true; }; "inputGroup": { "alias": "inputGroup"; "required": false; "isSignal": true; }; }, {}, ["_ngControl", "_ngControlElement"], ["*"], true, never>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare class FormFieldModule {
|
|
67
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldModule, never>;
|
|
68
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FormFieldModule, never, [typeof i1.CommonModule, typeof FormFieldComponent], [typeof FormFieldComponent]>;
|
|
69
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<FormFieldModule>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export { FormFieldComponent, FormFieldModule };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface ModalCloseRequest {
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
declare class ModalComponent {
|
|
8
|
+
scrollable: _angular_core.InputSignal<boolean>;
|
|
9
|
+
/** Is modal vertically centered? */
|
|
10
|
+
centered: _angular_core.InputSignal<boolean>;
|
|
11
|
+
size: _angular_core.InputSignal<"sm" | "default" | "lg" | "xl">;
|
|
12
|
+
fullscreen: _angular_core.InputSignal<"sm" | "lg" | "xl" | "always" | "md" | "xxl">;
|
|
13
|
+
closeRequest: EventEmitter<ModalCloseRequest>;
|
|
14
|
+
backdropClick: EventEmitter<any>;
|
|
15
|
+
protected _modalStatic: _angular_core.WritableSignal<boolean>;
|
|
16
|
+
constructor();
|
|
17
|
+
protected _onBackdropClick(): void;
|
|
18
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
20
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ModalComponent, "ng0-modal", ["ng0Modal"], { "scrollable": { "alias": "scrollable"; "required": false; "isSignal": true; }; "centered": { "alias": "centered"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fullscreen": { "alias": "fullscreen"; "required": false; "isSignal": true; }; }, { "closeRequest": "closeRequest"; "backdropClick": "backdropClick"; }, never, ["*"], true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class ModalModule {
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ModalModule, never>;
|
|
25
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ModalModule, never, [typeof ModalComponent], [typeof ModalComponent]>;
|
|
26
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<ModalModule>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { ModalComponent, ModalModule };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, Renderer2, TemplateRef, OnInit, QueryList } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class NavDirective {
|
|
5
|
+
private _elementRef;
|
|
6
|
+
private _renderer;
|
|
7
|
+
activeItem: i0.ModelSignal<any>;
|
|
8
|
+
disabled: i0.InputSignal<boolean>;
|
|
9
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavDirective, "[ng0Nav]", ["ng0Nav"], { "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "activeItem": "activeItemChange"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
declare class NavItemDirective {
|
|
15
|
+
elementRef: ElementRef;
|
|
16
|
+
private _renderer;
|
|
17
|
+
private _nav;
|
|
18
|
+
id: i0.InputSignal<any>;
|
|
19
|
+
disabled: i0.InputSignal<boolean>;
|
|
20
|
+
constructor(elementRef: ElementRef, _renderer: Renderer2, _nav: NavDirective);
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavItemDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavItemDirective, "[ng0NavItem]", ["ng0NavItem"], { "id": { "alias": "ng0NavItem"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
declare class NavLinkDirective {
|
|
26
|
+
elementRef: ElementRef;
|
|
27
|
+
private _renderer;
|
|
28
|
+
private _nav;
|
|
29
|
+
private _navItem;
|
|
30
|
+
constructor(elementRef: ElementRef, _renderer: Renderer2, _nav: NavDirective, _navItem: NavItemDirective);
|
|
31
|
+
private _onClick;
|
|
32
|
+
private get _active();
|
|
33
|
+
private get _disabled();
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavLinkDirective, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavLinkDirective, "[ng0NavLink]", ["ng0NavLink"], {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class TabPaneDirective {
|
|
39
|
+
templateRef: TemplateRef<any>;
|
|
40
|
+
id: i0.InputSignal<any>;
|
|
41
|
+
constructor(templateRef: TemplateRef<any>);
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabPaneDirective, never>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabPaneDirective, "[ng0TabPane]", ["ng0TabPane"], { "id": { "alias": "ng0TabPane"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class TabContentComponent implements OnInit {
|
|
47
|
+
private _elementRef;
|
|
48
|
+
private _renderer;
|
|
49
|
+
nav: i0.InputSignal<NavDirective>;
|
|
50
|
+
protected _panes: QueryList<TabPaneDirective>;
|
|
51
|
+
disabled: i0.InputSignal<boolean>;
|
|
52
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
|
53
|
+
ngOnInit(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabContentComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabContentComponent, "ng0-tab-content", ["ng0TabContent"], { "nav": { "alias": "nav"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["_panes"], never, true, never>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare class NavModule {
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavModule, never>;
|
|
60
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NavModule, never, [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof TabContentComponent, typeof TabPaneDirective], [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof TabContentComponent, typeof TabPaneDirective]>;
|
|
61
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NavModule>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { NavDirective, NavItemDirective, NavLinkDirective, NavModule, TabContentComponent, TabPaneDirective };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, EventEmitter, ElementRef, Renderer2 } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class OffcanvasDirective implements OnInit, OnDestroy {
|
|
4
5
|
private _el;
|
|
5
6
|
private _renderer;
|
|
6
|
-
show:
|
|
7
|
-
hasBackdrop:
|
|
7
|
+
show: i0.InputSignal<boolean>;
|
|
8
|
+
hasBackdrop: i0.InputSignal<boolean>;
|
|
8
9
|
backdropClick: EventEmitter<MouseEvent>;
|
|
9
10
|
private _firstShowEffectRun;
|
|
10
11
|
private _firstBackdropEffectRun;
|
|
@@ -22,3 +23,11 @@ export declare class OffcanvasDirective implements OnInit, OnDestroy {
|
|
|
22
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasDirective, never>;
|
|
23
24
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OffcanvasDirective, "[ng0Offcanvas]", ["ng0Offcanvas"], { "show": { "alias": "show"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; }, { "backdropClick": "backdropClick"; }, never, never, true, never>;
|
|
24
25
|
}
|
|
26
|
+
|
|
27
|
+
declare class OffcanvasModule {
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OffcanvasModule, never>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<OffcanvasModule, never, [typeof OffcanvasDirective], [typeof OffcanvasDirective]>;
|
|
30
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<OffcanvasModule>;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { OffcanvasDirective, OffcanvasModule };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
3
|
+
import { Placement, Alignment } from '@bootkit/ng0/common';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Get the overlay position based on the provided placement and alignment.
|
|
7
|
+
*
|
|
8
|
+
* @param placement - The placement of the overlay (e.g., 'bottom', 'top', 'start', 'end').
|
|
9
|
+
* @param alignment - The alignment of the overlay (e.g., 'start', 'center', 'end').
|
|
10
|
+
* @returns The connected position for the overlay.
|
|
11
|
+
*/
|
|
12
|
+
declare function getConnectedPosition(placement: Placement, alignment: Alignment): ConnectedPosition;
|
|
13
|
+
declare function getConnectedPositions(placement: Placement, alignment: Alignment, includeFlippedPlacement?: boolean): ConnectedPosition[];
|
|
14
|
+
|
|
15
|
+
declare const START_START_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
16
|
+
declare const START_CENTER_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
17
|
+
declare const START_END_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
18
|
+
declare const END_START_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
19
|
+
declare const END_CENTER_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
20
|
+
declare const END_END_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
21
|
+
declare const TOP_START_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
22
|
+
declare const TOP_END_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
23
|
+
declare const TOP_CENTER_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
24
|
+
declare const BOTTOM_START_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
25
|
+
declare const BOTTOM_CENTER_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
26
|
+
declare const BOTTOM_END_POS: _angular_cdk_overlay.ConnectedPosition;
|
|
27
|
+
declare const START_START_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
28
|
+
declare const START_CENTER_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
29
|
+
declare const START_END_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
30
|
+
declare const END_START_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
31
|
+
declare const END_CENTER_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
32
|
+
declare const END_END_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
33
|
+
declare const TOP_START_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
34
|
+
declare const TOP_END_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
35
|
+
declare const TOP_CENTER_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
36
|
+
declare const BOTTOM_START_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
37
|
+
declare const BOTTOM_CENTER_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
38
|
+
declare const BOTTOM_END_FLIPPED_POS: _angular_cdk_overlay.ConnectedPosition[];
|
|
39
|
+
|
|
40
|
+
export { BOTTOM_CENTER_FLIPPED_POS, BOTTOM_CENTER_POS, BOTTOM_END_FLIPPED_POS, BOTTOM_END_POS, BOTTOM_START_FLIPPED_POS, BOTTOM_START_POS, END_CENTER_FLIPPED_POS, END_CENTER_POS, END_END_FLIPPED_POS, END_END_POS, END_START_FLIPPED_POS, END_START_POS, START_CENTER_FLIPPED_POS, START_CENTER_POS, START_END_FLIPPED_POS, START_END_POS, START_START_FLIPPED_POS, START_START_POS, TOP_CENTER_FLIPPED_POS, TOP_CENTER_POS, TOP_END_FLIPPED_POS, TOP_END_POS, TOP_START_FLIPPED_POS, TOP_START_POS, getConnectedPosition, getConnectedPositions };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class PaginationComponent {
|
|
5
|
+
itemClick: EventEmitter<number>;
|
|
6
|
+
totalRecords: _angular_core.InputSignal<number>;
|
|
7
|
+
pageSize: _angular_core.InputSignal<number>;
|
|
8
|
+
/**
|
|
9
|
+
* Selected page. starts from 1.
|
|
10
|
+
*/
|
|
11
|
+
selectedPage: _angular_core.InputSignal<number>;
|
|
12
|
+
maxVisiblePages: _angular_core.InputSignal<number>;
|
|
13
|
+
showNextButton: _angular_core.InputSignal<boolean>;
|
|
14
|
+
showPreviousButton: _angular_core.InputSignal<boolean>;
|
|
15
|
+
showFirstButton: _angular_core.InputSignal<boolean>;
|
|
16
|
+
showLastButton: _angular_core.InputSignal<boolean>;
|
|
17
|
+
get totalPagesCount(): number;
|
|
18
|
+
protected _totalPagesCount: number;
|
|
19
|
+
protected _visiblePages: _angular_core.Signal<any[]>;
|
|
20
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "ng0-pagination", ["ng0Pagination"], { "totalRecords": { "alias": "totalRecords"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "selectedPage": { "alias": "selectedPage"; "required": false; "isSignal": true; }; "maxVisiblePages": { "alias": "maxVisiblePages"; "required": false; "isSignal": true; }; "showNextButton": { "alias": "showNextButton"; "required": false; "isSignal": true; }; "showPreviousButton": { "alias": "showPreviousButton"; "required": false; "isSignal": true; }; "showFirstButton": { "alias": "showFirstButton"; "required": false; "isSignal": true; }; "showLastButton": { "alias": "showLastButton"; "required": false; "isSignal": true; }; }, { "itemClick": "itemClick"; }, never, ["first", "previous", "next", "last"], true, never>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare class PaginationModule {
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationModule, never>;
|
|
26
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<PaginationModule, never, [typeof PaginationComponent], [typeof PaginationComponent]>;
|
|
27
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<PaginationModule>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { PaginationComponent, PaginationModule };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnInit, OnDestroy, ElementRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
4
|
+
|
|
5
|
+
type PopoverPlacement = 'top' | 'bottom' | 'start' | 'end';
|
|
6
|
+
type PopoverTrigger = 'click' | 'dblclick' | 'hover' | 'focus';
|
|
7
|
+
type PopoverContent = string | TemplateRef<any> | undefined | null;
|
|
8
|
+
|
|
9
|
+
declare class PopoverDirective implements OnInit, OnDestroy {
|
|
10
|
+
private _overlayService;
|
|
11
|
+
private _elementRef;
|
|
12
|
+
private _viewRef;
|
|
13
|
+
header: _angular_core.InputSignal<string>;
|
|
14
|
+
content: _angular_core.InputSignal<PopoverContent>;
|
|
15
|
+
placement: _angular_core.InputSignal<PopoverPlacement>;
|
|
16
|
+
triggerBy: _angular_core.InputSignal<PopoverTrigger>;
|
|
17
|
+
private _portal;
|
|
18
|
+
private _overlayRef?;
|
|
19
|
+
constructor(_overlayService: Overlay, _elementRef: ElementRef, _viewRef: ViewContainerRef);
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
private _createOverlay;
|
|
22
|
+
private _disposeOverlay;
|
|
23
|
+
private _toggleOverlay;
|
|
24
|
+
private _getPositions;
|
|
25
|
+
private _onClick;
|
|
26
|
+
private _onDblclick;
|
|
27
|
+
private _onMouseEnter;
|
|
28
|
+
private _onMouseLeave;
|
|
29
|
+
private _onFocus;
|
|
30
|
+
private _onFocusout;
|
|
31
|
+
ngOnDestroy(): void;
|
|
32
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopoverDirective, never>;
|
|
33
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PopoverDirective, "[ng0Popover]", ["ng0Popover"], { "header": { "alias": "header"; "required": false; "isSignal": true; }; "content": { "alias": "ng0Popover"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "triggerBy": { "alias": "triggerBy"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export { PopoverDirective };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, Injector } from '@angular/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import { OverlayRef, Overlay } from '@angular/cdk/overlay';
|
|
5
|
+
|
|
6
|
+
type ToastHorizontalPosition = 'start' | 'center' | 'end';
|
|
7
|
+
type ToastVerticalPosition = 'top' | 'bottom';
|
|
8
|
+
/**
|
|
9
|
+
* Configuration interface for toast notifications
|
|
10
|
+
*/
|
|
11
|
+
interface ToastConfig {
|
|
12
|
+
/**
|
|
13
|
+
* Main content of the toast. Can be a string, number, boolean or template reference
|
|
14
|
+
*/
|
|
15
|
+
body?: string | number | boolean | TemplateRef<any>;
|
|
16
|
+
/**
|
|
17
|
+
* Header content of the toast. Can be a string, number, boolean or template reference
|
|
18
|
+
*/
|
|
19
|
+
header?: string | number | boolean | TemplateRef<any>;
|
|
20
|
+
/**
|
|
21
|
+
* Additional hint text for the toast. Accepts string, number or boolean
|
|
22
|
+
*/
|
|
23
|
+
hint?: string | number | boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Icon to be displayed in the toast. Expects a string reference to the icon
|
|
26
|
+
*/
|
|
27
|
+
icon?: string;
|
|
28
|
+
/**
|
|
29
|
+
* toast style: primary, secondary, danger, ...
|
|
30
|
+
*/
|
|
31
|
+
style?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Duration in milliseconds for how long the toast should be displayed
|
|
34
|
+
*/
|
|
35
|
+
duration?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Whether to show a close button on the toast
|
|
38
|
+
*/
|
|
39
|
+
closeButton?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Horizontal alignment of the toast. Can be 'start', 'center', or 'end'
|
|
42
|
+
*/
|
|
43
|
+
horizontalPosition?: ToastHorizontalPosition;
|
|
44
|
+
/**
|
|
45
|
+
* Vertical alignment of the toast. Can be 'top' or 'bottom'
|
|
46
|
+
*/
|
|
47
|
+
verticalPosition?: ToastVerticalPosition;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare class ToastRef {
|
|
51
|
+
readonly config: ToastConfig;
|
|
52
|
+
private overlayRef;
|
|
53
|
+
private _isOpen;
|
|
54
|
+
private _closedSubject;
|
|
55
|
+
closed: rxjs.Observable<any>;
|
|
56
|
+
constructor(config: ToastConfig, overlayRef: OverlayRef);
|
|
57
|
+
get isOpen(): boolean;
|
|
58
|
+
close(): void;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Service for displaying toast notifications in the application.
|
|
63
|
+
*
|
|
64
|
+
* The `ToastService` provides methods to open toast messages with customizable content,
|
|
65
|
+
* header, style, position, and duration. It manages the lifecycle of toast notifications,
|
|
66
|
+
* ensuring only one toast is visible at a time.
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* // Open a simple toast
|
|
70
|
+
* toastService.open('Message body', 'Header', 'success');
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* // Open a toast with configuration
|
|
74
|
+
* toastService.open({
|
|
75
|
+
* body: 'Message body',
|
|
76
|
+
* header: 'Header',
|
|
77
|
+
* style: 'success',
|
|
78
|
+
* verticalPosition: 'bottom',
|
|
79
|
+
* horizontalPosition: 'end',
|
|
80
|
+
* duration: 5000
|
|
81
|
+
* });
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
* - Only one toast can be displayed at a time; opening a new toast closes the previous one.
|
|
85
|
+
* - The toast will automatically close after the specified duration (default: 3000ms).
|
|
86
|
+
*
|
|
87
|
+
* @publicApi
|
|
88
|
+
*/
|
|
89
|
+
declare class ToastService {
|
|
90
|
+
private _overlayService;
|
|
91
|
+
private _injector;
|
|
92
|
+
private _toastRef;
|
|
93
|
+
constructor(_overlayService: Overlay, _injector: Injector);
|
|
94
|
+
open(body: string, header?: string, style?: string): ToastRef;
|
|
95
|
+
open(config: ToastConfig): ToastRef;
|
|
96
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
97
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export { ToastRef, ToastService };
|
|
101
|
+
export type { ToastConfig, ToastHorizontalPosition, ToastVerticalPosition };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, OnInit, OnDestroy, ElementRef, DestroyRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
4
|
+
|
|
5
|
+
type TooltipPlacement = 'top' | 'bottom' | 'start' | 'end';
|
|
6
|
+
type TooltipContent = string | TemplateRef<any>;
|
|
7
|
+
|
|
8
|
+
declare class TooltipDirective implements OnInit, OnDestroy {
|
|
9
|
+
private overlayService;
|
|
10
|
+
private elementRef;
|
|
11
|
+
private destroyRef;
|
|
12
|
+
private viewRef;
|
|
13
|
+
content: _angular_core.InputSignal<string | TemplateRef<any>>;
|
|
14
|
+
placement: _angular_core.InputSignal<TooltipPlacement>;
|
|
15
|
+
private portal;
|
|
16
|
+
private overlayRef?;
|
|
17
|
+
constructor(overlayService: Overlay, elementRef: ElementRef, destroyRef: DestroyRef, viewRef: ViewContainerRef);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
private onMouseEnter;
|
|
20
|
+
private onMouseLeave;
|
|
21
|
+
private createOverlay;
|
|
22
|
+
private disposeOverlay;
|
|
23
|
+
private getPositions;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipDirective, never>;
|
|
26
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TooltipDirective, "[ng0Tooltip]", ["ng0Tooltip"], { "content": { "alias": "ng0Tooltip"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { TooltipDirective };
|
|
30
|
+
export type { TooltipContent, TooltipPlacement };
|
package/data/index.d.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Subject, Observable } from 'rxjs';
|
|
3
|
+
|
|
4
|
+
declare class DataRequest {
|
|
5
|
+
pageIndex: number;
|
|
6
|
+
pageSize: number;
|
|
7
|
+
computeTotal: boolean;
|
|
8
|
+
filters: DataRequestFilter[];
|
|
9
|
+
sort?: DataRequestSort;
|
|
10
|
+
constructor(pageIndex?: number, pageSize?: number, computeTotal?: boolean, filters?: DataRequestFilter[], sort?: DataRequestSort);
|
|
11
|
+
addFilter(field: string, value: string, operator?: DataRequestFilterOperator): this;
|
|
12
|
+
sortDescending(field: string): this;
|
|
13
|
+
sortAscending(field: string): this;
|
|
14
|
+
static all(): DataRequest;
|
|
15
|
+
}
|
|
16
|
+
declare class DataRequestSort {
|
|
17
|
+
field: string;
|
|
18
|
+
asc: boolean;
|
|
19
|
+
constructor(field: string, asc?: boolean);
|
|
20
|
+
}
|
|
21
|
+
declare class DataRequestFilter {
|
|
22
|
+
field: string;
|
|
23
|
+
value?: string;
|
|
24
|
+
operator: DataRequestFilterOperator;
|
|
25
|
+
constructor(field: string, value?: string, operator?: DataRequestFilterOperator);
|
|
26
|
+
}
|
|
27
|
+
declare enum DataRequestFilterOperator {
|
|
28
|
+
EQ = 0,
|
|
29
|
+
NEQ = 1,
|
|
30
|
+
LT = 2,
|
|
31
|
+
LTE = 3,
|
|
32
|
+
GT = 4,
|
|
33
|
+
GTE = 5,
|
|
34
|
+
LI = 6,
|
|
35
|
+
SW = 7
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare class DataResult<T = any> {
|
|
39
|
+
readonly request: DataRequest;
|
|
40
|
+
readonly data: T[];
|
|
41
|
+
readonly total?: number;
|
|
42
|
+
constructor(request: DataRequest, data: T[], total?: number);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare abstract class DataSource<T = any> {
|
|
46
|
+
protected _loading: boolean;
|
|
47
|
+
protected changeSubject: Subject<unknown>;
|
|
48
|
+
readonly change: Observable<unknown>;
|
|
49
|
+
constructor();
|
|
50
|
+
get loading(): boolean;
|
|
51
|
+
protected setLoading(value: boolean): void;
|
|
52
|
+
abstract load(request: DataRequest): Observable<DataResult>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type DataLoaderFunc = (request: DataRequest) => Observable<DataResult>;
|
|
56
|
+
declare class AsyncDataSource extends DataSource {
|
|
57
|
+
private readonly loader;
|
|
58
|
+
constructor(loader: DataLoaderFunc);
|
|
59
|
+
load(request: DataRequest): Observable<DataResult<any>>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class ArrayDataSource extends DataSource {
|
|
63
|
+
private items;
|
|
64
|
+
constructor(items: any[]);
|
|
65
|
+
load(request: DataRequest): rxjs.Observable<DataResult<any>>;
|
|
66
|
+
remove(item: any): void;
|
|
67
|
+
insert(item: any): void;
|
|
68
|
+
set(items: any[]): void;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare function toDataResult<T = any>(dr: DataRequest): (source: Observable<any>) => Observable<DataResult<T>>;
|
|
72
|
+
|
|
73
|
+
export { ArrayDataSource, AsyncDataSource, DataRequest, DataRequestFilter, DataRequestFilterOperator, DataRequestSort, DataResult, DataSource, toDataResult };
|
|
74
|
+
export type { DataLoaderFunc };
|
|
@@ -2,6 +2,16 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
|
|
3
3
|
const RTL = new InjectionToken('RTL Direction');
|
|
4
4
|
|
|
5
|
+
function numberRange(start, end) {
|
|
6
|
+
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
7
|
+
}
|
|
8
|
+
function fillArray(start, end) {
|
|
9
|
+
const result = [];
|
|
10
|
+
for (let i = start; i <= end; i++) {
|
|
11
|
+
result.push(i);
|
|
12
|
+
}
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
5
15
|
function flipPlacement(placement) {
|
|
6
16
|
switch (placement) {
|
|
7
17
|
case 'bottom':
|
|
@@ -14,13 +24,10 @@ function flipPlacement(placement) {
|
|
|
14
24
|
return 'start';
|
|
15
25
|
}
|
|
16
26
|
}
|
|
17
|
-
function numberRange(start, end) {
|
|
18
|
-
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
19
|
-
}
|
|
20
27
|
|
|
21
28
|
/**
|
|
22
29
|
* Generated bundle index. Do not edit.
|
|
23
30
|
*/
|
|
24
31
|
|
|
25
|
-
export { RTL, flipPlacement, numberRange };
|
|
32
|
+
export { RTL, fillArray, flipPlacement, numberRange };
|
|
26
33
|
//# sourceMappingURL=bootkit-ng0-common.mjs.map
|