@masterteam/components 0.0.144 → 0.0.146
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/assets/common.css +1 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +2 -2
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +7 -2
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-confirmation.mjs +2 -2
- package/fesm2022/masterteam-components-confirmation.mjs.map +1 -1
- package/fesm2022/masterteam-components-drawer.mjs +120 -4
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +4 -4
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-page-header.mjs +1 -1
- package/fesm2022/masterteam-components-page-header.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +1 -1
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-tabs.mjs +74 -9
- package/fesm2022/masterteam-components-tabs.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +52 -2
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-client-page.d.ts +2 -0
- package/types/masterteam-components-drawer.d.ts +19 -1
- package/types/masterteam-components-tabs.d.ts +21 -4
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
2
3
|
|
|
3
|
-
declare class Drawer {
|
|
4
|
+
declare class Drawer implements OnDestroy {
|
|
5
|
+
private static nextInstanceId;
|
|
4
6
|
private readonly doc;
|
|
7
|
+
private readonly host;
|
|
8
|
+
private readonly renderer;
|
|
9
|
+
private readonly drawerInstanceClass;
|
|
10
|
+
private customMask;
|
|
11
|
+
private removeMaskClickListener;
|
|
5
12
|
visible: _angular_core.ModelSignal<boolean>;
|
|
6
13
|
visibleChange: _angular_core.OutputEmitterRef<boolean>;
|
|
7
14
|
onShow: _angular_core.OutputEmitterRef<boolean>;
|
|
@@ -19,10 +26,21 @@ declare class Drawer {
|
|
|
19
26
|
appendTo: _angular_core.InputSignal<string | HTMLElement>;
|
|
20
27
|
modal: _angular_core.InputSignal<boolean>;
|
|
21
28
|
protected readonly resolvedAppendTo: _angular_core.Signal<string | HTMLElement>;
|
|
29
|
+
protected readonly resolvedStyleClass: _angular_core.Signal<string>;
|
|
30
|
+
constructor();
|
|
22
31
|
visibleChangeEvent(event: boolean): void;
|
|
23
32
|
onClose(): void;
|
|
24
33
|
onShowEvent(): void;
|
|
25
34
|
onHideEvent(): void;
|
|
35
|
+
ngOnDestroy(): void;
|
|
36
|
+
private syncCustomMask;
|
|
37
|
+
private updateCustomMaskAttributes;
|
|
38
|
+
private resolveMaskParent;
|
|
39
|
+
private getDrawerElement;
|
|
40
|
+
private getMaskStyle;
|
|
41
|
+
private getMaskDataP;
|
|
42
|
+
private bindMaskClickListener;
|
|
43
|
+
private destroyCustomMask;
|
|
26
44
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Drawer, never>;
|
|
27
45
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Drawer, "mt-drawer", never, { "visible": { "alias": "visible"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "fullScreen": { "alias": "fullScreen"; "required": false; "isSignal": true; }; "closeOnEscape": { "alias": "closeOnEscape"; "required": false; "isSignal": true; }; "blockScroll": { "alias": "blockScroll"; "required": false; "isSignal": true; }; "dismissible": { "alias": "dismissible"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "loadingHeader": { "alias": "loadingHeader"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "transitionOptions": { "alias": "transitionOptions"; "required": false; "isSignal": true; }; "appendTo": { "alias": "appendTo"; "required": false; "isSignal": true; }; "modal": { "alias": "modal"; "required": false; "isSignal": true; }; }, { "visible": "visibleChange"; "visibleChange": "visibleChange"; "onShow": "onShow"; "onHide": "onHide"; }, never, ["[content]", "[footer]"], true, never>;
|
|
28
46
|
}
|
|
@@ -1,22 +1,39 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { MTIcon } from '@masterteam/icons';
|
|
2
3
|
|
|
3
4
|
interface OptionItem {
|
|
4
|
-
label
|
|
5
|
-
value
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: any;
|
|
7
|
+
icon?: MTIcon | null;
|
|
8
|
+
badge?: number | string | null;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
[key: string]: unknown;
|
|
6
11
|
}
|
|
7
12
|
declare class Tabs {
|
|
8
|
-
options: _angular_core.InputSignal<
|
|
13
|
+
options: _angular_core.InputSignal<OptionItem[]>;
|
|
9
14
|
optionLabel: _angular_core.InputSignal<string>;
|
|
10
15
|
optionValue: _angular_core.InputSignal<string>;
|
|
11
16
|
active: _angular_core.ModelSignal<any>;
|
|
17
|
+
readonly mode: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
12
18
|
onChange: _angular_core.OutputEmitterRef<any>;
|
|
13
19
|
readonly size: _angular_core.InputSignal<"small" | "large" | undefined>;
|
|
14
20
|
readonly fluid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
15
21
|
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
16
22
|
constructor();
|
|
17
23
|
onTabChange(value: any): void;
|
|
24
|
+
onOptionSelect(option: OptionItem): void;
|
|
25
|
+
resolveLabel(option: OptionItem): string;
|
|
26
|
+
resolveValue(option: OptionItem): unknown;
|
|
27
|
+
resolveIcon(option: OptionItem): MTIcon | null;
|
|
28
|
+
resolveBadge(option: OptionItem): number | string | null;
|
|
29
|
+
hasBadge(option: OptionItem): boolean;
|
|
30
|
+
resolveHorizontalItemSizeClasses(): string;
|
|
31
|
+
resolveHorizontalBadgeClasses(): string;
|
|
32
|
+
isActiveOption(option: OptionItem): boolean;
|
|
33
|
+
isOptionDisabled(option: OptionItem): boolean;
|
|
34
|
+
trackOption(option: OptionItem, index: number): unknown;
|
|
18
35
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tabs, never>;
|
|
19
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tabs, "mt-tabs", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; "onChange": "onChange"; }, never, never, true, never>;
|
|
36
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tabs, "mt-tabs", never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "optionLabel": { "alias": "optionLabel"; "required": false; "isSignal": true; }; "optionValue": { "alias": "optionValue"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "active": "activeChange"; "onChange": "onChange"; }, never, never, true, never>;
|
|
20
37
|
}
|
|
21
38
|
|
|
22
39
|
export { Tabs };
|