@bootkit/ng0 0.0.0-alpha.42 → 0.0.0-alpha.44
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 +30 -6
- package/components/accordion/index.d.ts +8 -8
- package/components/button/index.d.ts +10 -12
- package/components/card/index.d.ts +1 -5
- package/components/collapse/index.d.ts +4 -40
- package/components/confirmation/index.d.ts +14 -16
- package/components/dropdown/index.d.ts +3 -3
- package/components/list/index.d.ts +5 -5
- package/components/modal/index.d.ts +14 -10
- package/components/nav/index.d.ts +13 -15
- package/components/pagination/index.d.ts +7 -7
- package/components/popover/index.d.ts +6 -6
- package/components/sidenav/index.d.ts +17 -21
- package/components/stepper/index.d.ts +3 -4
- package/components/table/index.d.ts +29 -31
- package/components/toast/index.d.ts +14 -8
- package/components/tooltip/index.d.ts +18 -13
- package/components/vertical-menu/index.d.ts +78 -37
- package/fesm2022/bootkit-ng0-components-accordion.mjs +5 -5
- package/fesm2022/bootkit-ng0-components-accordion.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-button.mjs +8 -12
- package/fesm2022/bootkit-ng0-components-button.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-card.mjs +4 -10
- package/fesm2022/bootkit-ng0-components-card.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-code.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-collapse.mjs +15 -123
- package/fesm2022/bootkit-ng0-components-collapse.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-confirmation.mjs +15 -25
- package/fesm2022/bootkit-ng0-components-confirmation.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-dropdown.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-list.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-modal.mjs +13 -11
- package/fesm2022/bootkit-ng0-components-modal.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-nav.mjs +7 -14
- package/fesm2022/bootkit-ng0-components-nav.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-pagination.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-popover.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-sidenav.mjs +50 -43
- package/fesm2022/bootkit-ng0-components-sidenav.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-stepper.mjs +6 -33
- package/fesm2022/bootkit-ng0-components-stepper.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-table.mjs +23 -29
- package/fesm2022/bootkit-ng0-components-table.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-toast.mjs +59 -81
- package/fesm2022/bootkit-ng0-components-toast.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-tooltip.mjs +54 -60
- package/fesm2022/bootkit-ng0-components-tooltip.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs +168 -97
- package/fesm2022/bootkit-ng0-components-vertical-menu.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-http.mjs +22 -30
- package/fesm2022/bootkit-ng0-http.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-layouts-layout1.mjs +1 -1
- package/fesm2022/bootkit-ng0-layouts-layout1.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-security.mjs +46 -30
- package/fesm2022/bootkit-ng0-security.mjs.map +1 -1
- package/fesm2022/bootkit-ng0-utils.mjs +49 -2
- package/fesm2022/bootkit-ng0-utils.mjs.map +1 -1
- package/http/index.d.ts +10 -10
- package/package.json +1 -5
- package/security/index.d.ts +17 -11
- package/utils/index.d.ts +22 -1
- package/components/backdrop/index.d.ts +0 -12
- package/fesm2022/bootkit-ng0-components-backdrop.mjs +0 -46
- package/fesm2022/bootkit-ng0-components-backdrop.mjs.map +0 -1
package/security/index.d.ts
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
|
-
import { ClaimLike } from '@bootkit/ng0/common';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
2
|
import { TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { ClaimLike, ShowCondition } from '@bootkit/ng0/common';
|
|
4
4
|
|
|
5
5
|
/** User */
|
|
6
6
|
declare class User {
|
|
7
|
-
readonly claims: string[]
|
|
7
|
+
readonly claims: i0.WritableSignal<string[]>;
|
|
8
8
|
constructor(claims: string[]);
|
|
9
|
-
|
|
9
|
+
hasAllClaims(claims: string[]): boolean;
|
|
10
10
|
hasAnyClaim(claims: string[]): boolean;
|
|
11
11
|
hasClaim(claim: ClaimLike): boolean;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
declare class UserStore<U extends User = User> {
|
|
15
15
|
readonly user: i0.WritableSignal<U | null | undefined>;
|
|
16
|
-
|
|
16
|
+
checkShowCondition(condition: ShowCondition): boolean;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserStore<any>, never>;
|
|
18
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserStore<any>>;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
declare class
|
|
22
|
-
claim: i0.InputSignal<ClaimLike | null | undefined>;
|
|
21
|
+
declare class ClaimDirective {
|
|
23
22
|
private _viewCreated;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
private _templateRef;
|
|
24
|
+
private _viewContainer;
|
|
25
|
+
private _userStore;
|
|
26
|
+
/**
|
|
27
|
+
* Claim to check
|
|
28
|
+
*/
|
|
29
|
+
readonly claim: i0.InputSignal<ClaimLike | null | undefined>;
|
|
30
|
+
constructor();
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClaimDirective, never>;
|
|
32
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClaimDirective, "[ng0Claim]", ["ng0Claim"], { "claim": { "alias": "ng0Claim"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
33
|
}
|
|
28
34
|
|
|
29
35
|
declare class GuestUserDirective {
|
|
@@ -35,8 +41,8 @@ declare class GuestUserDirective {
|
|
|
35
41
|
|
|
36
42
|
declare class SecurityModule {
|
|
37
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<SecurityModule, never>;
|
|
38
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SecurityModule, never, [typeof
|
|
44
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SecurityModule, never, [typeof ClaimDirective, typeof GuestUserDirective], [typeof ClaimDirective, typeof GuestUserDirective]>;
|
|
39
45
|
static ɵinj: i0.ɵɵInjectorDeclaration<SecurityModule>;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
|
-
export { GuestUserDirective, SecurityModule, User,
|
|
48
|
+
export { ClaimDirective, GuestUserDirective, SecurityModule, User, UserStore };
|
package/utils/index.d.ts
CHANGED
|
@@ -38,5 +38,26 @@ declare const easingFunctions: {
|
|
|
38
38
|
smooth: (t: number) => number;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
declare class StyleManager {
|
|
42
|
+
private readonly _rendererFactory;
|
|
43
|
+
private readonly _document;
|
|
44
|
+
private readonly _renderer;
|
|
45
|
+
private readonly _loadedStyles;
|
|
46
|
+
/**
|
|
47
|
+
* Loads a CSS
|
|
48
|
+
* @param url
|
|
49
|
+
* @returns Promise<HTMLLinkElement>
|
|
50
|
+
*/
|
|
51
|
+
load(url: string): Promise<HTMLLinkElement>;
|
|
52
|
+
/**
|
|
53
|
+
* Unloads a CSS from the DOM
|
|
54
|
+
* @param url
|
|
55
|
+
* @returns void
|
|
56
|
+
*/
|
|
57
|
+
unload(url: string): void;
|
|
58
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StyleManager, never>;
|
|
59
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<StyleManager>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { Counter, StyleManager, easingFunctions };
|
|
42
63
|
export type { EasingFn };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This component is used to display a backdrop behind another component.
|
|
5
|
-
*/
|
|
6
|
-
declare class BackdropComponent {
|
|
7
|
-
readonly fixed: i0.WritableSignal<boolean>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BackdropComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BackdropComponent, "ng0-backdrop", never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { BackdropComponent };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { trigger, transition, style, animate } from '@angular/animations';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* This component is used to display a backdrop behind another component.
|
|
7
|
-
*/
|
|
8
|
-
class BackdropComponent {
|
|
9
|
-
fixed = signal(false, ...(ngDevMode ? [{ debugName: "fixed" }] : []));
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.11", ngImport: i0, type: BackdropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.11", type: BackdropComponent, isStandalone: true, selector: "ng0-backdrop", host: { properties: { "@fade": "", "class.fixed": "fixed()" } }, ngImport: i0, template: '', isInline: true, styles: [":host{--ng0-backdrop-background: rgba(0, 0, 0, .5);position:absolute;inset:0;background:var(--ng0-backdrop-background)}:host.fixed{position:fixed}\n"], animations: [
|
|
12
|
-
trigger('fade', [
|
|
13
|
-
transition(':enter', [
|
|
14
|
-
style({ opacity: 0 }),
|
|
15
|
-
animate('100ms ease', style({ opacity: 1 })),
|
|
16
|
-
]),
|
|
17
|
-
transition(':leave', [
|
|
18
|
-
animate('100ms ease', style({ opacity: 0 })),
|
|
19
|
-
]),
|
|
20
|
-
]),
|
|
21
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22
|
-
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.11", ngImport: i0, type: BackdropComponent, decorators: [{
|
|
24
|
-
type: Component,
|
|
25
|
-
args: [{ selector: 'ng0-backdrop', template: '', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, animations: [
|
|
26
|
-
trigger('fade', [
|
|
27
|
-
transition(':enter', [
|
|
28
|
-
style({ opacity: 0 }),
|
|
29
|
-
animate('100ms ease', style({ opacity: 1 })),
|
|
30
|
-
]),
|
|
31
|
-
transition(':leave', [
|
|
32
|
-
animate('100ms ease', style({ opacity: 0 })),
|
|
33
|
-
]),
|
|
34
|
-
]),
|
|
35
|
-
], host: {
|
|
36
|
-
'[@fade]': '', // Binds the animation trigger to the host
|
|
37
|
-
'[class.fixed]': "fixed()"
|
|
38
|
-
}, styles: [":host{--ng0-backdrop-background: rgba(0, 0, 0, .5);position:absolute;inset:0;background:var(--ng0-backdrop-background)}:host.fixed{position:fixed}\n"] }]
|
|
39
|
-
}] });
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Generated bundle index. Do not edit.
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
export { BackdropComponent };
|
|
46
|
-
//# sourceMappingURL=bootkit-ng0-components-backdrop.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bootkit-ng0-components-backdrop.mjs","sources":["../../../projects/ng0/components/backdrop/backdrop.component.ts","../../../projects/ng0/components/backdrop/bootkit-ng0-components-backdrop.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, signal } from '@angular/core';\nimport {\n trigger,\n transition,\n style,\n animate,\n} from '@angular/animations';\n\n/**\n * This component is used to display a backdrop behind another component.\n */\n@Component({\n selector: 'ng0-backdrop',\n template: '',\n styleUrl: 'backdrop.component.scss',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n animations: [\n trigger('fade', [\n transition(':enter', [\n style({ opacity: 0 }),\n animate('100ms ease', style({ opacity: 1 })),\n ]),\n transition(':leave', [\n animate('100ms ease', style({ opacity: 0 })),\n ]),\n ]),\n ],\n host: {\n '[@fade]': '', // Binds the animation trigger to the host\n '[class.fixed]': \"fixed()\"\n }\n})\nexport class BackdropComponent {\n public readonly fixed = signal(false);\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAQA;;AAEG;MAuBU,iBAAiB,CAAA;AACZ,IAAA,KAAK,GAAG,MAAM,CAAC,KAAK,iDAAC;wGAD1B,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,EAAA,EAAA,aAAA,EAAA,SAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EApBlB,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,sJAAA,CAAA,EAAA,UAAA,EAIA;YACV,OAAO,CAAC,MAAM,EAAE;gBACd,UAAU,CAAC,QAAQ,EAAE;AACnB,oBAAA,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;oBACrB,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;iBAC7C,CAAC;gBACF,UAAU,CAAC,QAAQ,EAAE;oBACnB,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;iBAC7C,CAAC;aACH,CAAC;AACH,SAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAMU,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAtB7B,SAAS;+BACE,cAAc,EAAA,QAAA,EACd,EAAE,EAAA,UAAA,EAEA,IAAI,mBACC,uBAAuB,CAAC,MAAM,EAAA,UAAA,EACnC;wBACV,OAAO,CAAC,MAAM,EAAE;4BACd,UAAU,CAAC,QAAQ,EAAE;AACnB,gCAAA,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;gCACrB,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;6BAC7C,CAAC;4BACF,UAAU,CAAC,QAAQ,EAAE;gCACnB,OAAO,CAAC,YAAY,EAAE,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC,CAAC;6BAC7C,CAAC;yBACH,CAAC;qBACH,EAAA,IAAA,EACK;wBACJ,SAAS,EAAE,EAAE;AACb,wBAAA,eAAe,EAAE;AAClB,qBAAA,EAAA,MAAA,EAAA,CAAA,sJAAA,CAAA,EAAA;;;AC/BH;;AAEG;;;;"}
|