@stemy/ngx-utils 19.9.21 → 19.9.22
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/fesm2022/stemy-ngx-utils.mjs +42 -11
- package/fesm2022/stemy-ngx-utils.mjs.map +1 -1
- package/ngx-utils/common-types.d.ts +3 -2
- package/ngx-utils/components/btn/btn.component.d.ts +2 -2
- package/ngx-utils/components/tabs/tabs.component.d.ts +7 -3
- package/ngx-utils/directives/tabs-item.directive.d.ts +3 -1
- package/ngx-utils/ngx-utils.imports.d.ts +2 -2
- package/package.json +1 -1
|
@@ -210,14 +210,15 @@ export interface ButtonProps {
|
|
|
210
210
|
tooltip: string;
|
|
211
211
|
icon: string;
|
|
212
212
|
disabled: boolean;
|
|
213
|
-
path: string
|
|
213
|
+
path: string;
|
|
214
214
|
type: ButtonType;
|
|
215
215
|
size: ButtonSize;
|
|
216
216
|
}
|
|
217
217
|
export type TabValue = string | number;
|
|
218
|
-
export interface TabOption extends Omit<Partial<ButtonProps>, "size" | "state" | "style"> {
|
|
218
|
+
export interface TabOption extends Omit<Partial<ButtonProps>, "size" | "state" | "style" | "path"> {
|
|
219
219
|
value: TabValue;
|
|
220
220
|
classes?: string | string[];
|
|
221
|
+
path?: string | UrlTree;
|
|
221
222
|
}
|
|
222
223
|
export type ChipValue = string | number;
|
|
223
224
|
export type ChipStatus = "valid" | "invalid";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ElementRef } from "@angular/core";
|
|
2
2
|
import { ButtonProps, ButtonSize, ButtonType } from "../../common-types";
|
|
3
|
-
import { UrlTree } from "@angular/router";
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class BtnComponent {
|
|
6
5
|
readonly label: import("@angular/core").InputSignal<string>;
|
|
7
6
|
readonly tooltip: import("@angular/core").InputSignal<string>;
|
|
8
7
|
readonly icon: import("@angular/core").InputSignal<string>;
|
|
9
8
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
10
|
-
readonly path: import("@angular/core").InputSignal<string
|
|
9
|
+
readonly path: import("@angular/core").InputSignal<string>;
|
|
11
10
|
readonly type: import("@angular/core").InputSignal<ButtonType>;
|
|
12
11
|
readonly size: import("@angular/core").InputSignal<ButtonSize>;
|
|
13
12
|
readonly buttonType: import("@angular/core").Type<ButtonProps>;
|
|
14
13
|
readonly element: ElementRef<HTMLElement>;
|
|
15
14
|
readonly buttonProps: import("@angular/core").Signal<ButtonProps>;
|
|
16
15
|
contains(target: EventTarget): boolean;
|
|
16
|
+
onBtnClick(event: MouseEvent): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BtnComponent, never>;
|
|
18
18
|
static ɵcmp: i0.ɵɵComponentDeclaration<BtnComponent, "btn", never, { "label": { "alias": "label"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "path": { "alias": "path"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
19
19
|
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
|
-
import {
|
|
2
|
+
import { Router, UrlSerializer } from "@angular/router";
|
|
3
|
+
import { AsyncMethod, ButtonSize, ButtonType, TabOption, TabValue } from "../../common-types";
|
|
3
4
|
import { TabsItemDirective } from "../../directives/tabs-item.directive";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export interface ExtendedTabOption extends TabOption {
|
|
6
|
+
export interface ExtendedTabOption extends Omit<TabOption, "path"> {
|
|
6
7
|
active?: boolean;
|
|
7
8
|
template?: TemplateRef<any>;
|
|
8
9
|
className?: string;
|
|
10
|
+
path?: string;
|
|
9
11
|
}
|
|
10
12
|
export declare class TabsComponent {
|
|
13
|
+
readonly urlSerializer: UrlSerializer;
|
|
14
|
+
readonly router: Router;
|
|
11
15
|
readonly value: import("@angular/core").ModelSignal<TabValue>;
|
|
12
16
|
readonly options: import("@angular/core").InputSignal<TabOption[]>;
|
|
13
17
|
readonly type: import("@angular/core").InputSignal<ButtonType>;
|
|
@@ -18,8 +22,8 @@ export declare class TabsComponent {
|
|
|
18
22
|
readonly selectedChange: import("@angular/core").OutputEmitterRef<TabOption>;
|
|
19
23
|
readonly template: import("@angular/core").WritableSignal<TemplateRef<any>>;
|
|
20
24
|
readonly tabs: import("@angular/core").Signal<ExtendedTabOption[]>;
|
|
25
|
+
readonly select: AsyncMethod;
|
|
21
26
|
constructor();
|
|
22
|
-
select(option: TabOption): void;
|
|
23
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabsComponent, never>;
|
|
24
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<TabsComponent, "tabs", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "testId": { "alias": "testId"; "required": false; "isSignal": true; }; "tabsClass": { "alias": "tabsClass"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "selectedChange": "selectedChange"; }, ["tabItems"], ["*"], false, never>;
|
|
25
29
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementRef, TemplateRef } from "@angular/core";
|
|
2
|
+
import { UrlTree } from "@angular/router";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class TabsItemDirective {
|
|
4
5
|
readonly value: import("@angular/core").InputSignal<any>;
|
|
@@ -6,9 +7,10 @@ export declare class TabsItemDirective {
|
|
|
6
7
|
readonly tooltip: import("@angular/core").InputSignal<string>;
|
|
7
8
|
readonly icon: import("@angular/core").InputSignal<string>;
|
|
8
9
|
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
readonly path: import("@angular/core").InputSignal<string | UrlTree>;
|
|
9
11
|
readonly classes: import("@angular/core").InputSignal<string | string[]>;
|
|
10
12
|
readonly element: ElementRef<any>;
|
|
11
13
|
readonly template: TemplateRef<any>;
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabsItemDirective, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsItemDirective, "[tabsItem]", never, { "value": { "alias": "tabsItem"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsItemDirective, "[tabsItem]", never, { "value": { "alias": "tabsItem"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "path": { "alias": "path"; "required": false; "isSignal": true; }; "classes": { "alias": "classes"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
14
16
|
}
|
|
@@ -65,9 +65,9 @@ import { UnorderedListComponent } from "./components/unordered-list/unordered-li
|
|
|
65
65
|
import { UploadComponent } from "./components/upload/upload.component";
|
|
66
66
|
import { WysiwygComponent } from "./components/wysiwyg/wysiwyg.component";
|
|
67
67
|
export declare const pipes: (typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe)[];
|
|
68
|
-
export declare const directives: (typeof
|
|
68
|
+
export declare const directives: (typeof AsyncMethodBase | typeof AsyncMethodDirective | typeof AsyncMethodTargetDirective | typeof BackgroundDirective | typeof ComponentLoaderDirective | typeof DynamicTableTemplateDirective | typeof GlobalTemplateDirective | typeof IconDirective | typeof NgxTemplateOutletDirective | typeof PaginationDirective | typeof PaginationItemDirective | typeof ResourceIfDirective | typeof StickyDirective | typeof StickyClassDirective | typeof DropdownDirective | typeof DropdownContentDirective | typeof DropdownToggleDirective | typeof TabsItemDirective | typeof UnorderedListItemDirective | typeof UnorderedListTemplateDirective)[];
|
|
69
69
|
export declare const components: (typeof ChipsComponent | typeof CloseBtnComponent | typeof DropListComponent | typeof DynamicTableComponent | typeof PaginationMenuComponent | typeof UnorderedListComponent | typeof UploadComponent | typeof WysiwygComponent)[];
|
|
70
|
-
export declare const providers: (typeof UniversalService | typeof
|
|
70
|
+
export declare const providers: (typeof UniversalService | typeof StateService | typeof AuthGuard | typeof EventsService | typeof AclService | typeof BaseHttpClient | typeof StorageService | typeof CacheService | typeof BaseHttpService | typeof StaticAuthService | typeof ConfigService | typeof BaseDialogService | typeof ErrorHandlerService | typeof FormatterService | typeof GlobalTemplateService | typeof IconService | typeof StaticLanguageService | typeof OpenApiService | typeof BaseToasterService | typeof ComponentLoaderService | typeof TranslatedUrlSerializer | typeof PromiseService | typeof SocketService | typeof FilterPipe | typeof FormatNumberPipe | typeof GlobalTemplatePipe | typeof IncludesPipe | typeof ReducePipe | typeof RoundPipe | typeof SafeHtmlPipe | typeof SyncAsyncPipe | typeof TranslatePipe | typeof DeviceDetectorService | {
|
|
71
71
|
provide: import("@angular/core").InjectionToken<import("@angular/platform-browser").EventManagerPlugin[]>;
|
|
72
72
|
useClass: typeof DragDropEventPlugin;
|
|
73
73
|
multi: boolean;
|