@bootkit/ng0 0.0.0-alpha.1 → 0.0.0-alpha.11
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 +82 -3
- package/components/accordion/index.d.ts +32 -0
- package/components/backdrop/index.d.ts +8 -0
- package/components/button/index.d.ts +48 -0
- package/components/card/index.d.ts +27 -0
- package/components/code/index.d.ts +35 -0
- package/components/collapse/index.d.ts +59 -0
- package/components/confirmation/index.d.ts +66 -0
- package/components/form-field/index.d.ts +72 -0
- package/components/modal/index.d.ts +29 -0
- package/components/nav/index.d.ts +68 -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 +56 -0
- package/components/popover/index.d.ts +36 -0
- package/components/sidenav/index.d.ts +46 -0
- package/components/stepper/index.d.ts +26 -0
- package/components/table/index.d.ts +211 -0
- package/components/toast/index.d.ts +101 -0
- package/components/tooltip/index.d.ts +30 -0
- package/components/vertical-menu/index.d.ts +61 -0
- package/data/index.d.ts +203 -0
- package/date/index.d.ts +34 -0
- package/fesm2022/bootkit-ng0-common.mjs +38 -3
- package/fesm2022/bootkit-ng0-common.mjs.map +1 -1
- package/fesm2022/{bootkit-ng0-accordion.mjs → bootkit-ng0-components-accordion.mjs} +16 -16
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-backdrop.mjs +41 -0
- package/fesm2022/bootkit-ng0-components-backdrop.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-button.mjs +119 -0
- package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-card.mjs +62 -0
- package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-code.mjs +70 -0
- package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-collapse.mjs → bootkit-ng0-components-collapse.mjs} +16 -16
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-confirmation.mjs +167 -0
- package/fesm2022/bootkit-ng0-components-confirmation.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-components-modal.mjs +68 -0
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-nav.mjs +165 -0
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-offcanvas.mjs → bootkit-ng0-components-offcanvas.mjs} +11 -11
- 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 +120 -0
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-popover.mjs → bootkit-ng0-components-popover.mjs} +12 -12
- package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs +132 -0
- package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-stepper.mjs +91 -0
- package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-table.mjs +358 -0
- package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-toast.mjs → bootkit-ng0-components-toast.mjs} +10 -10
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -0
- package/fesm2022/{bootkit-ng0-tooltip.mjs → bootkit-ng0-components-tooltip.mjs} +10 -10
- package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +161 -0
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-data.mjs +267 -0
- package/fesm2022/bootkit-ng0-data.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-date.mjs +50 -0
- package/fesm2022/bootkit-ng0-date.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-file.mjs +50 -0
- package/fesm2022/bootkit-ng0-file.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-form.mjs +420 -0
- package/fesm2022/bootkit-ng0-form.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-http.mjs +277 -0
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization-locales.mjs +82 -0
- package/fesm2022/bootkit-ng0-localization-locales.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-localization.mjs +419 -0
- package/fesm2022/bootkit-ng0-localization.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-platform-browser.mjs +51 -0
- package/fesm2022/bootkit-ng0-platform-browser.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-script.mjs +59 -0
- package/fesm2022/bootkit-ng0-script.mjs.map +1 -0
- package/fesm2022/bootkit-ng0-security.mjs +132 -0
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -0
- package/file/index.d.ts +22 -0
- package/form/index.d.ts +91 -0
- package/http/index.d.ts +167 -0
- package/index.d.ts +3 -5
- package/localization/index.d.ts +265 -0
- package/localization/locales/index.d.ts +7 -0
- package/package.json +123 -61
- package/platform/browser/index.d.ts +22 -0
- package/script/index.d.ts +27 -0
- package/security/index.d.ts +42 -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 +0 -68
- package/fesm2022/bootkit-ng0-modal.mjs.map +0 -1
- package/fesm2022/bootkit-ng0-nav.mjs +0 -166
- 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,84 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
|
|
4
|
+
type Placement = 'start' | 'end' | 'top' | 'bottom';
|
|
5
|
+
type Alignment = 'start' | 'center' | 'end';
|
|
6
|
+
declare const RTL: InjectionToken<boolean>;
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
|
-
*
|
|
9
|
+
* Represents a claim object that can contain multiple claims.
|
|
3
10
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
11
|
+
interface ClaimObject {
|
|
12
|
+
all?: string[];
|
|
13
|
+
any?: string[];
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Represents a claim that can be a string or an object containing claims.
|
|
17
|
+
* This is useful for defining permissions or roles in a security context.
|
|
18
|
+
* It allows for both simple string claims and more complex claims that can include multiple values.
|
|
19
|
+
* For example:
|
|
20
|
+
* - A simple claim: 'admin'
|
|
21
|
+
* - A complex claim: { all: ['read', 'write']'] }
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
type ClaimLike = string | ClaimObject;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Flips the placement direction.
|
|
28
|
+
* @param placement The placement direction to flip.
|
|
29
|
+
* @returns The flipped placement direction.
|
|
30
|
+
*/
|
|
31
|
+
declare function flipPlacement(placement: Placement): "start" | "end" | "top" | "bottom";
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Formats a string by replacing placeholders with the provided arguments.
|
|
35
|
+
* @param str The string to format, containing placeholders in the form of {0}, {1}, etc.
|
|
36
|
+
* @param args The values to replace the placeholders with.
|
|
37
|
+
* @returns The formatted string.
|
|
38
|
+
*/
|
|
39
|
+
declare function formatString(str: string, ...args: any[]): string;
|
|
40
|
+
|
|
41
|
+
/** Base class of all menu items */
|
|
42
|
+
interface MenuItemBase<DataType = any> {
|
|
43
|
+
type: 'group' | 'text' | 'divider';
|
|
44
|
+
id?: any;
|
|
45
|
+
disabled?: boolean;
|
|
46
|
+
active?: boolean;
|
|
47
|
+
show?: boolean;
|
|
48
|
+
claim?: ClaimLike;
|
|
49
|
+
parent?: MenuItem;
|
|
50
|
+
data?: DataType;
|
|
51
|
+
}
|
|
52
|
+
/** Section Menu Item */
|
|
53
|
+
interface GroupMenuItem<DataType = any> extends MenuItemBase<DataType> {
|
|
54
|
+
type: 'group';
|
|
55
|
+
text: string;
|
|
56
|
+
expanded?: boolean;
|
|
57
|
+
icon?: string;
|
|
58
|
+
children: Array<MenuItem<DataType>>;
|
|
59
|
+
}
|
|
60
|
+
/** Text Menu Item */
|
|
61
|
+
interface TextMenuItem<DataType = any> extends MenuItemBase<DataType> {
|
|
62
|
+
type: 'text';
|
|
63
|
+
text: string;
|
|
64
|
+
routerLink?: string[];
|
|
65
|
+
icon?: string;
|
|
66
|
+
}
|
|
67
|
+
/** Divider Menu Item */
|
|
68
|
+
interface DividerMenuItem<DataType = any> extends MenuItemBase<DataType> {
|
|
69
|
+
type: 'divider';
|
|
70
|
+
}
|
|
71
|
+
type MenuItem<DataType = any> = TextMenuItem<DataType> | DividerMenuItem<DataType> | GroupMenuItem<DataType>;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Converts a value to an Observable.
|
|
75
|
+
* If the value is already an Observable, it returns it directly.
|
|
76
|
+
* If the value is a Promise, it converts it to an Observable.
|
|
77
|
+
* If the value is neither, it wraps it in an Observable using `of`.
|
|
78
|
+
* @param value The value to convert.
|
|
79
|
+
* @returns An Observable that emits the value.
|
|
80
|
+
*/
|
|
81
|
+
declare function toObservable<T>(value: T | Observable<T> | Promise<T>): Observable<T>;
|
|
82
|
+
|
|
83
|
+
export { RTL, flipPlacement, formatString, toObservable };
|
|
84
|
+
export type { Alignment, ClaimLike, ClaimObject, DividerMenuItem, GroupMenuItem, MenuItem, MenuItemBase, Placement, TextMenuItem };
|
|
@@ -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 | undefined>;
|
|
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,8 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class BackdropComponent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BackdropComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BackdropComponent, "ng0-backdrop", never, {}, {}, never, never, true, never>;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export { BackdropComponent };
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef, Renderer2, DestroyRef } from '@angular/core';
|
|
3
|
+
import { HttpService } from '@bootkit/ng0/http';
|
|
4
|
+
|
|
5
|
+
declare class ButtonDirective implements OnInit, OnDestroy {
|
|
6
|
+
private _element;
|
|
7
|
+
private _renderer;
|
|
8
|
+
private _http;
|
|
9
|
+
private _destroyRef;
|
|
10
|
+
private _loadingElement;
|
|
11
|
+
/**
|
|
12
|
+
* The IDs of the HTTP requests that this button listens to.
|
|
13
|
+
* If one of these requests is in progress, it will show a loading indicator or will be disabled based on 'showLoading' and 'disableOnLoading' properties.
|
|
14
|
+
*/
|
|
15
|
+
request: i0.InputSignal<string | string[] | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the button is disabled or not.
|
|
18
|
+
*/
|
|
19
|
+
disabled: i0.ModelSignal<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether to wait for the HTTP response before enabling the button again.
|
|
22
|
+
* If true, the button will remain disabled until the HTTP request completes.
|
|
23
|
+
* This is useful for preventing multiple clicks while waiting for a response.
|
|
24
|
+
* Default is true.
|
|
25
|
+
*/
|
|
26
|
+
disableDuringRequest: i0.InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to show a loading indicator when the HTTP request is in progress.
|
|
29
|
+
* If true, a loading spinner will be displayed on the button while the request is being processed.
|
|
30
|
+
* Default is true.
|
|
31
|
+
*/
|
|
32
|
+
loadingIndicator: i0.InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
constructor(_element: ElementRef, _renderer: Renderer2, _http: HttpService, _destroyRef: DestroyRef);
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
private _showLoading;
|
|
36
|
+
private _hideLoading;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonDirective, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonDirective, "button[ng0Button], a[ng0Button], input[type=button][ng0Button], input[type=submit][ng0Button], input[type=reset][ng0Button]", ["ng0Button"], { "request": { "alias": "request"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "disableDuringRequest": { "alias": "disableDuringRequest"; "required": false; "isSignal": true; }; "loadingIndicator": { "alias": "loadingIndicator"; "required": false; "isSignal": true; }; }, { "disabled": "disabledChange"; }, never, never, true, never>;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare class ButtonModule {
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonModule, never>;
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ButtonModule, never, [typeof ButtonDirective], [typeof ButtonDirective]>;
|
|
45
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ButtonModule>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { ButtonDirective, ButtonModule };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class CardComponent {
|
|
5
|
+
private _element;
|
|
6
|
+
private _renderer;
|
|
7
|
+
header: i0.InputSignal<string | undefined>;
|
|
8
|
+
constructor(_element: ElementRef, _renderer: Renderer2);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "ng0-card", ["ng0Card"], { "header": { "alias": "header"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class CardHeaderComponent {
|
|
14
|
+
private _element;
|
|
15
|
+
private _renderer;
|
|
16
|
+
constructor(_element: ElementRef, _renderer: Renderer2);
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardHeaderComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardHeaderComponent, "ng0-card-header", ["ng0CardHeader"], {}, {}, never, ["*"], true, never>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class CardModule {
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardModule, never>;
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CardModule, never, [typeof CardComponent, typeof CardHeaderComponent], [typeof CardComponent, typeof CardHeaderComponent]>;
|
|
24
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<CardModule>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { CardComponent, CardHeaderComponent, CardModule };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
|
|
5
|
+
type CodeFormatterFunc = (code: string) => string;
|
|
6
|
+
declare class CodeFormatter {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly format: CodeFormatterFunc;
|
|
9
|
+
constructor(name: string, format: CodeFormatterFunc);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class CodeFormatters {
|
|
13
|
+
private _formatters;
|
|
14
|
+
constructor();
|
|
15
|
+
add(name: string, func: CodeFormatterFunc): CodeFormatter;
|
|
16
|
+
find(name: string): CodeFormatter | undefined;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodeFormatters, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CodeFormatters>;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class CodeComponent {
|
|
22
|
+
private formatters;
|
|
23
|
+
private domSanitizer;
|
|
24
|
+
/** Code formatter name */
|
|
25
|
+
formatter: i0.InputSignal<string>;
|
|
26
|
+
/** Code */
|
|
27
|
+
code: i0.InputSignal<string>;
|
|
28
|
+
protected _safeHtml: i0.Signal<_angular_platform_browser.SafeHtml | undefined>;
|
|
29
|
+
constructor(formatters: CodeFormatters, domSanitizer: DomSanitizer);
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodeComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CodeComponent, "ng0-code", ["ng0Code"], { "formatter": { "alias": "formatter"; "required": true; "isSignal": true; }; "code": { "alias": "code"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { CodeComponent, CodeFormatter, CodeFormatters };
|
|
35
|
+
export type { CodeFormatterFunc };
|
|
@@ -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,66 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
3
|
+
import * as rxjs from 'rxjs';
|
|
4
|
+
import { DialogRef, Dialog } from '@angular/cdk/dialog';
|
|
5
|
+
|
|
6
|
+
interface ConfirmationConfig {
|
|
7
|
+
message?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
icon?: 'loading' | 'check';
|
|
10
|
+
/** automaticaly close confirmation after confirmation/cancelation. default is true */
|
|
11
|
+
autoClose?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare class ConfirmationRef {
|
|
14
|
+
private _dialogRef;
|
|
15
|
+
private _config;
|
|
16
|
+
private _configChangeSubject;
|
|
17
|
+
configChanged: rxjs.Observable<ConfirmationConfig>;
|
|
18
|
+
private _confirmSubject;
|
|
19
|
+
confirmed: rxjs.Observable<unknown>;
|
|
20
|
+
private _cancelSubject;
|
|
21
|
+
canceled: rxjs.Observable<unknown>;
|
|
22
|
+
constructor(_dialogRef: DialogRef<any, any>, _config: ConfirmationConfig);
|
|
23
|
+
confirm(): void;
|
|
24
|
+
cancel(): void;
|
|
25
|
+
close(): void;
|
|
26
|
+
update(config: ConfirmationConfig): void;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
declare class ConfirmationComponent implements OnInit {
|
|
30
|
+
confirmationRef: ConfirmationRef;
|
|
31
|
+
_config?: ConfirmationConfig;
|
|
32
|
+
_clicked: boolean;
|
|
33
|
+
constructor();
|
|
34
|
+
_onClick(result: boolean): void;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationComponent, "ng0-confirmation", ["ng0Confirmation"], {}, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
declare class ConfirmationService {
|
|
41
|
+
private dialog;
|
|
42
|
+
constructor(dialog: Dialog);
|
|
43
|
+
open(config?: ConfirmationConfig): ConfirmationRef;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
declare class ConfirmationDirective {
|
|
49
|
+
private confirmationService;
|
|
50
|
+
config?: ConfirmationConfig;
|
|
51
|
+
confirm: EventEmitter<ConfirmationRef>;
|
|
52
|
+
cancel: EventEmitter<ConfirmationRef>;
|
|
53
|
+
constructor(confirmationService: ConfirmationService);
|
|
54
|
+
private _onClick;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDirective, never>;
|
|
56
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmationDirective, "[ng0Confirmation]", ["ng0Confirmation"], { "config": { "alias": "config"; "required": false; }; }, { "confirm": "confirm"; "cancel": "cancel"; }, never, never, true, never>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
declare class ConfirmationModule {
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationModule, never>;
|
|
61
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmationModule, never, [typeof ConfirmationComponent, typeof ConfirmationDirective], [typeof ConfirmationComponent, typeof ConfirmationDirective]>;
|
|
62
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmationModule>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export { ConfirmationComponent, ConfirmationDirective, ConfirmationModule, ConfirmationRef, ConfirmationService };
|
|
66
|
+
export type { ConfirmationConfig };
|
|
@@ -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 | undefined>;
|
|
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 | undefined>;
|
|
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 | undefined;
|
|
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" | undefined>;
|
|
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,68 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, TemplateRef, OnInit, QueryList, Renderer2 } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class NavDirective {
|
|
5
|
+
/**
|
|
6
|
+
* The active item.
|
|
7
|
+
*/
|
|
8
|
+
activeItem: i0.ModelSignal<any>;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the navigation is disabled.
|
|
11
|
+
*/
|
|
12
|
+
disabled: i0.InputSignal<boolean>;
|
|
13
|
+
constructor();
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavDirective, never>;
|
|
15
|
+
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>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class NavItemDirective {
|
|
19
|
+
elementRef: ElementRef;
|
|
20
|
+
id: i0.InputSignal<any>;
|
|
21
|
+
disabled: i0.InputSignal<boolean>;
|
|
22
|
+
constructor(elementRef: ElementRef);
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavItemDirective, never>;
|
|
24
|
+
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>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare class NavLinkDirective {
|
|
28
|
+
elementRef: ElementRef;
|
|
29
|
+
private _nav;
|
|
30
|
+
private _navItem;
|
|
31
|
+
constructor(elementRef: ElementRef, _nav: NavDirective, _navItem: NavItemDirective);
|
|
32
|
+
private _onClick;
|
|
33
|
+
private get _active();
|
|
34
|
+
private get _disabled();
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavLinkDirective, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavLinkDirective, "[ng0NavLink]", ["ng0NavLink"], {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare class NavContentDirective {
|
|
40
|
+
templateRef: TemplateRef<any>;
|
|
41
|
+
id: i0.InputSignal<any>;
|
|
42
|
+
constructor(templateRef: TemplateRef<any>);
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavContentDirective, never>;
|
|
44
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NavContentDirective, "[ng0NavContent]", ["ng0NavContent"], { "id": { "alias": "ng0NavContent"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare class NavContentContainerComponent implements OnInit {
|
|
48
|
+
private _elementRef;
|
|
49
|
+
private _renderer;
|
|
50
|
+
/**
|
|
51
|
+
* The navigation directive that this content belongs to.
|
|
52
|
+
*/
|
|
53
|
+
nav: i0.InputSignal<NavDirective>;
|
|
54
|
+
protected _contents: QueryList<NavContentDirective>;
|
|
55
|
+
protected _activeItem: i0.Signal<any>;
|
|
56
|
+
constructor(_elementRef: ElementRef, _renderer: Renderer2);
|
|
57
|
+
ngOnInit(): void;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavContentContainerComponent, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NavContentContainerComponent, "ng0-navcontent-container", ["ng0Navcontent"], { "nav": { "alias": "nav"; "required": true; "isSignal": true; }; }, {}, ["_contents"], never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class NavModule {
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavModule, never>;
|
|
64
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NavModule, never, [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof NavContentContainerComponent, typeof NavContentDirective], [typeof NavDirective, typeof NavItemDirective, typeof NavLinkDirective, typeof NavContentContainerComponent, typeof NavContentDirective]>;
|
|
65
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NavModule>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { NavContentContainerComponent, NavContentDirective, NavDirective, NavItemDirective, NavLinkDirective, NavModule };
|
|
@@ -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 };
|