@masterteam/components 0.0.117 → 0.0.119
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 +2 -172
- package/fesm2022/masterteam-components-entities.mjs +5 -4
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-sidebar.mjs +36 -0
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -0
- package/fesm2022/masterteam-components-slider-field.mjs +104 -0
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-statistic-card.mjs +22 -0
- package/fesm2022/masterteam-components-statistic-card.mjs.map +1 -0
- package/fesm2022/masterteam-components-table.mjs +30 -7
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +92 -0
- package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -0
- package/fesm2022/masterteam-components-toast.mjs +75 -0
- package/fesm2022/masterteam-components-toast.mjs.map +1 -0
- package/fesm2022/masterteam-components-topbar.mjs +28 -0
- package/fesm2022/masterteam-components-topbar.mjs.map +1 -0
- package/fesm2022/masterteam-components-tree.mjs +219 -0
- package/fesm2022/masterteam-components-tree.mjs.map +1 -0
- package/package.json +16 -16
- package/types/masterteam-components-entities.d.ts +1 -1
- package/types/masterteam-components-sidebar.d.ts +28 -0
- package/types/masterteam-components-slider-field.d.ts +45 -0
- package/types/masterteam-components-statistic-card.d.ts +18 -0
- package/types/masterteam-components-table.d.ts +1 -0
- package/types/masterteam-components-textarea-field.d.ts +38 -0
- package/types/masterteam-components-toast.d.ts +26 -0
- package/types/masterteam-components-topbar.d.ts +17 -0
- package/types/masterteam-components-tree.d.ts +98 -0
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.119",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/components",
|
|
6
6
|
"linkDirectory": true,
|
|
7
7
|
"access": "public"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@angular/common": "
|
|
11
|
-
"@angular/core": "
|
|
12
|
-
"@angular/forms": "
|
|
13
|
-
"@angular/cdk": "
|
|
14
|
-
"@primeuix/themes": "
|
|
15
|
-
"@tailwindcss/postcss": "
|
|
16
|
-
"@jsverse/transloco": "
|
|
17
|
-
"postcss": "
|
|
18
|
-
"primeng": "
|
|
19
|
-
"tailwindcss": "
|
|
20
|
-
"tailwindcss-primeui": "
|
|
21
|
-
"ngx-quill": "
|
|
22
|
-
"quill": "
|
|
10
|
+
"@angular/common": "^21.0.3",
|
|
11
|
+
"@angular/core": "^21.0.3",
|
|
12
|
+
"@angular/forms": "^21.0.3",
|
|
13
|
+
"@angular/cdk": "^21.0.2",
|
|
14
|
+
"@primeuix/themes": "^2.0.2",
|
|
15
|
+
"@tailwindcss/postcss": "^4.1.17",
|
|
16
|
+
"@jsverse/transloco": "^8.0.2",
|
|
17
|
+
"postcss": "^8.5.6",
|
|
18
|
+
"primeng": "21.0.1",
|
|
19
|
+
"tailwindcss": "^4.1.17",
|
|
20
|
+
"tailwindcss-primeui": "^0.6.1",
|
|
21
|
+
"ngx-quill": "^30.0.1",
|
|
22
|
+
"quill": "^2.0.3",
|
|
23
23
|
"monaco-editor": "^0.52.0",
|
|
24
|
-
"@masterteam/icons": "
|
|
24
|
+
"@masterteam/icons": "^0.0.14"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -251,6 +251,6 @@
|
|
|
251
251
|
"module": "fesm2022/masterteam-components.mjs",
|
|
252
252
|
"typings": "types/masterteam-components.d.ts",
|
|
253
253
|
"dependencies": {
|
|
254
|
-
"tslib": "
|
|
254
|
+
"tslib": "^2.8.1"
|
|
255
255
|
}
|
|
256
256
|
}
|
|
@@ -263,7 +263,7 @@ declare class EntityPreview {
|
|
|
263
263
|
/** Single entity data to display */
|
|
264
264
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
265
265
|
readonly attachmentShape: _angular_core.InputSignal<"default" | "compact">;
|
|
266
|
-
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Percentage" | "
|
|
266
|
+
readonly previewType: _angular_core.Signal<"Text" | "LongText" | "Date" | "DateTime" | "Percentage" | "Currency" | "Checkbox" | "User" | "Lookup" | "Attachment">;
|
|
267
267
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
268
268
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
269
269
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { MTIcon } from '@masterteam/icons';
|
|
3
|
+
|
|
4
|
+
interface SidebarItem {
|
|
5
|
+
id: string | number;
|
|
6
|
+
title: string;
|
|
7
|
+
icon?: MTIcon;
|
|
8
|
+
routerLink?: any[] | string;
|
|
9
|
+
}
|
|
10
|
+
declare class Sidebar {
|
|
11
|
+
items: _angular_core.InputSignal<SidebarItem[]>;
|
|
12
|
+
logo: _angular_core.InputSignal<string | undefined>;
|
|
13
|
+
logoLink: _angular_core.InputSignal<string | any[] | undefined>;
|
|
14
|
+
title: _angular_core.InputSignal<string | undefined>;
|
|
15
|
+
subTitle: _angular_core.InputSignal<string | undefined>;
|
|
16
|
+
bgColor: _angular_core.InputSignal<string | undefined>;
|
|
17
|
+
bgImage: _angular_core.InputSignal<string | undefined>;
|
|
18
|
+
bgRepeat: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
iconsColor: _angular_core.InputSignal<string>;
|
|
20
|
+
expanded: _angular_core.WritableSignal<boolean>;
|
|
21
|
+
expandedChange: _angular_core.OutputEmitterRef<boolean>;
|
|
22
|
+
toggleSidebar(): void;
|
|
23
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Sidebar, never>;
|
|
24
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Sidebar, "mt-sidebar", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "logoLink": { "alias": "logoLink"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; "bgColor": { "alias": "bgColor"; "required": false; "isSignal": true; }; "bgImage": { "alias": "bgImage"; "required": false; "isSignal": true; }; "bgRepeat": { "alias": "bgRepeat"; "required": false; "isSignal": true; }; "iconsColor": { "alias": "iconsColor"; "required": false; "isSignal": true; }; }, { "expandedChange": "expandedChange"; }, never, never, true, never>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { Sidebar };
|
|
28
|
+
export type { SidebarItem };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
|
+
import { Slider, SliderChangeEvent, SliderSlideEndEvent } from 'primeng/slider';
|
|
5
|
+
import { isInvalid } from '@masterteam/components';
|
|
6
|
+
|
|
7
|
+
declare class SliderField implements ControlValueAccessor, OnInit, OnChanges {
|
|
8
|
+
input: Slider;
|
|
9
|
+
readonly field: _angular_core.InputSignal<boolean>;
|
|
10
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
11
|
+
readonly animate: _angular_core.InputSignal<boolean>;
|
|
12
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
13
|
+
readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
14
|
+
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
15
|
+
readonly step: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
16
|
+
readonly hideNumber: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
readonly unit: _angular_core.InputSignal<string>;
|
|
18
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
19
|
+
readonly pInputs: _angular_core.InputSignal<Partial<Slider> | undefined>;
|
|
20
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
21
|
+
onChange: EventEmitter<SliderChangeEvent>;
|
|
22
|
+
onSlideEnd: EventEmitter<SliderSlideEndEvent>;
|
|
23
|
+
styleClass: string;
|
|
24
|
+
requiredValidator: typeof Validators.required;
|
|
25
|
+
value: _angular_core.WritableSignal<number | null>;
|
|
26
|
+
disabled: _angular_core.WritableSignal<boolean>;
|
|
27
|
+
displayValue: _angular_core.Signal<string>;
|
|
28
|
+
onTouched: () => void;
|
|
29
|
+
onModelChange: (value: number | null) => void;
|
|
30
|
+
ngControl: NgControl;
|
|
31
|
+
isInvalid: typeof isInvalid;
|
|
32
|
+
constructor();
|
|
33
|
+
applyInputsToInput(): void;
|
|
34
|
+
ngOnInit(): void;
|
|
35
|
+
onValueChange(value: number | null): void;
|
|
36
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
37
|
+
writeValue(value: number): void;
|
|
38
|
+
registerOnChange(fn: any): void;
|
|
39
|
+
registerOnTouched(fn: any): void;
|
|
40
|
+
setDisabledState(disabled: boolean): void;
|
|
41
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderField, never>;
|
|
42
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderField, "mt-slider-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "animate": { "alias": "animate"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "hideNumber": { "alias": "hideNumber"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; "onSlideEnd": "onSlideEnd"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { SliderField };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { MTIcon } from '@masterteam/icons';
|
|
3
|
+
|
|
4
|
+
interface StatisticCardData {
|
|
5
|
+
title: string;
|
|
6
|
+
subTitle: string;
|
|
7
|
+
icon: MTIcon;
|
|
8
|
+
color: string;
|
|
9
|
+
}
|
|
10
|
+
declare class StatisticCard {
|
|
11
|
+
readonly data: _angular_core.InputSignal<StatisticCardData>;
|
|
12
|
+
readonly cardClass: _angular_core.InputSignal<string>;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StatisticCard, never>;
|
|
14
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatisticCard, "mt-statistic-card", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "cardClass": { "alias": "cardClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { StatisticCard };
|
|
18
|
+
export type { StatisticCardData };
|
|
@@ -181,6 +181,7 @@ declare class Table {
|
|
|
181
181
|
*/
|
|
182
182
|
getEntityColumnData(row: any, col: ColumnDef): EntityData | null;
|
|
183
183
|
protected getStatusEntityAccentColor(row: Record<string, unknown>): string | null;
|
|
184
|
+
private resolveStatusEntityAccentColor;
|
|
184
185
|
protected getBooleanProperty(obj: any, key: string): boolean;
|
|
185
186
|
private setProperty;
|
|
186
187
|
private sortData;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
|
|
4
|
+
import { isInvalid } from '@masterteam/components';
|
|
5
|
+
|
|
6
|
+
declare class TextareaField implements ControlValueAccessor, OnInit, OnChanges {
|
|
7
|
+
textarea: HTMLTextAreaElement;
|
|
8
|
+
readonly field: _angular_core.InputSignal<boolean>;
|
|
9
|
+
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
10
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
11
|
+
readonly class: _angular_core.InputSignal<string>;
|
|
12
|
+
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
13
|
+
readonly noErrorStyle: _angular_core.InputSignal<boolean>;
|
|
14
|
+
readonly pInputs: _angular_core.InputSignal<Partial<HTMLTextAreaElement> | undefined>;
|
|
15
|
+
readonly rows: _angular_core.InputSignal<string>;
|
|
16
|
+
readonly required: _angular_core.InputSignal<boolean>;
|
|
17
|
+
styleClass: string;
|
|
18
|
+
requiredValidator: typeof Validators.required;
|
|
19
|
+
value: _angular_core.WritableSignal<string | null>;
|
|
20
|
+
disabled: _angular_core.WritableSignal<boolean>;
|
|
21
|
+
onTouched: () => void;
|
|
22
|
+
onModelChange: (value: string | null) => void;
|
|
23
|
+
ngControl: NgControl;
|
|
24
|
+
isInvalid: typeof isInvalid;
|
|
25
|
+
constructor();
|
|
26
|
+
applyInputsToTextarea(): void;
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
onValueChange(value: string | null): void;
|
|
29
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
30
|
+
writeValue(value: string): void;
|
|
31
|
+
registerOnChange(fn: any): void;
|
|
32
|
+
registerOnTouched(fn: any): void;
|
|
33
|
+
setDisabledState(disabled: boolean): void;
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaField, never>;
|
|
35
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaField, "mt-textarea-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "noErrorStyle": { "alias": "noErrorStyle"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { TextareaField };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { MessageService, ToastMessageOptions } from 'primeng/api';
|
|
3
|
+
|
|
4
|
+
declare class Toast {
|
|
5
|
+
protected readonly toastPosition = "bottom-right";
|
|
6
|
+
protected readonly toastTransX = "translateX(100%)";
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "mt-toast", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare class ToastService {
|
|
12
|
+
messageService: MessageService;
|
|
13
|
+
add(message: ToastMessageOptions): void;
|
|
14
|
+
addAll(messages: ToastMessageOptions[]): void;
|
|
15
|
+
clear(key?: string): void;
|
|
16
|
+
success(detail?: string, summary?: string): void;
|
|
17
|
+
warn(detail?: string, summary?: string): void;
|
|
18
|
+
error(detail?: string, summary?: string): void;
|
|
19
|
+
info(detail?: string, summary?: string): void;
|
|
20
|
+
secondary(detail?: string, summary?: string): void;
|
|
21
|
+
contrast(detail?: string, summary?: string): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
23
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { Toast, ToastService };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class Topbar {
|
|
4
|
+
logo: _angular_core.InputSignal<string | undefined>;
|
|
5
|
+
logoLink: _angular_core.InputSignal<string | any[] | undefined>;
|
|
6
|
+
bgColor: _angular_core.InputSignal<string>;
|
|
7
|
+
bgImage: _angular_core.InputSignal<string | undefined>;
|
|
8
|
+
bgRepeat: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
9
|
+
textColor: _angular_core.InputSignal<string>;
|
|
10
|
+
title: _angular_core.InputSignal<string | undefined>;
|
|
11
|
+
subTitle: _angular_core.InputSignal<string | undefined>;
|
|
12
|
+
showBranding: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Topbar, never>;
|
|
14
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Topbar, "mt-topbar", never, { "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "logoLink": { "alias": "logoLink"; "required": false; "isSignal": true; }; "bgColor": { "alias": "bgColor"; "required": false; "isSignal": true; }; "bgImage": { "alias": "bgImage"; "required": false; "isSignal": true; }; "bgRepeat": { "alias": "bgRepeat"; "required": false; "isSignal": true; }; "textColor": { "alias": "textColor"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; "showBranding": { "alias": "showBranding"; "required": false; "isSignal": true; }; }, {}, never, ["[start]", "[actions]"], true, never>;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { Topbar };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { Signal } from '@angular/core';
|
|
3
|
+
import { Tree as Tree$1 } from 'primeng/tree';
|
|
4
|
+
import { TreeNode, MenuItem } from 'primeng/api';
|
|
5
|
+
export { TreeNode } from 'primeng/api';
|
|
6
|
+
import { MTIcon } from '@masterteam/icons';
|
|
7
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
8
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Defines an action button for tree nodes
|
|
12
|
+
*/
|
|
13
|
+
interface TreeAction {
|
|
14
|
+
icon?: MTIcon | undefined;
|
|
15
|
+
severity?: 'info' | 'success' | 'warn' | 'danger' | 'secondary' | 'contrast' | 'help' | 'primary';
|
|
16
|
+
variant?: 'text' | 'outlined' | undefined;
|
|
17
|
+
size?: 'small' | 'large' | undefined;
|
|
18
|
+
label?: string;
|
|
19
|
+
tooltip?: string;
|
|
20
|
+
hidden?: (node: any) => boolean;
|
|
21
|
+
action: (node: any) => void;
|
|
22
|
+
loading?: boolean | ((node: any) => boolean);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Defines a context menu action for tree nodes
|
|
26
|
+
*/
|
|
27
|
+
interface TreeContextMenuAction {
|
|
28
|
+
icon?: MTIcon | undefined;
|
|
29
|
+
label: string;
|
|
30
|
+
action: (node: any) => void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Tree action types - all possible events from tree component
|
|
34
|
+
*/
|
|
35
|
+
type TreeActionType = 'selectionChange' | 'nodeSelect' | 'nodeUnselect' | 'nodeExpand' | 'nodeCollapse';
|
|
36
|
+
/**
|
|
37
|
+
* Tree action event interface - unified event structure for all tree actions
|
|
38
|
+
*/
|
|
39
|
+
interface TreeActionEvent {
|
|
40
|
+
action: TreeActionType;
|
|
41
|
+
data: any;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
declare class Tree {
|
|
45
|
+
transloco: TranslocoService;
|
|
46
|
+
dir: Directionality | null;
|
|
47
|
+
readonly primeTree: Signal<Tree$1 | undefined>;
|
|
48
|
+
readonly value: _angular_core.InputSignal<TreeNode<any>[]>;
|
|
49
|
+
readonly selection: _angular_core.ModelSignal<TreeNode<any> | TreeNode<any>[] | null | undefined>;
|
|
50
|
+
readonly selectionMode: _angular_core.InputSignal<"single" | "multiple" | "checkbox" | undefined>;
|
|
51
|
+
readonly nodeIcon: _angular_core.InputSignal<MTIcon | undefined>;
|
|
52
|
+
readonly propagateSelectionUp: _angular_core.InputSignal<boolean>;
|
|
53
|
+
readonly propagateSelectionDown: _angular_core.InputSignal<boolean>;
|
|
54
|
+
readonly checkAllChildren: _angular_core.InputSignal<boolean>;
|
|
55
|
+
readonly loading: _angular_core.InputSignal<boolean>;
|
|
56
|
+
readonly emptyMessage: _angular_core.InputSignal<string>;
|
|
57
|
+
readonly checkAllLabel: _angular_core.InputSignal<string>;
|
|
58
|
+
readonly filterPlaceholder: _angular_core.InputSignal<string>;
|
|
59
|
+
readonly dataKey: _angular_core.InputSignal<"key">;
|
|
60
|
+
readonly filter: _angular_core.InputSignal<boolean>;
|
|
61
|
+
readonly filterMode: _angular_core.InputSignal<"lenient" | "strict">;
|
|
62
|
+
readonly styleClass: _angular_core.InputSignal<string>;
|
|
63
|
+
readonly style: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
64
|
+
readonly pInputs: _angular_core.InputSignal<Partial<Tree$1> | undefined>;
|
|
65
|
+
readonly nodeActions: _angular_core.InputSignal<TreeAction[]>;
|
|
66
|
+
readonly nodeContextmenuActions: _angular_core.InputSignal<TreeContextMenuAction[]>;
|
|
67
|
+
readonly contextMenuSelection: _angular_core.ModelSignal<TreeNode<any> | null>;
|
|
68
|
+
readonly contextMenuItems: Signal<MenuItem[]>;
|
|
69
|
+
readonly action: _angular_core.OutputEmitterRef<TreeActionEvent>;
|
|
70
|
+
CheckAllValue: _angular_core.WritableSignal<boolean>;
|
|
71
|
+
readonly treeValue: Signal<TreeNode[]>;
|
|
72
|
+
constructor();
|
|
73
|
+
private isProcessingBatchSelection;
|
|
74
|
+
onSelectionChange(event: TreeNode | TreeNode[] | null): void;
|
|
75
|
+
onNodeSelect(event: {
|
|
76
|
+
node: TreeNode;
|
|
77
|
+
}): void;
|
|
78
|
+
onNodeUnselect(event: {
|
|
79
|
+
node: TreeNode;
|
|
80
|
+
}): void;
|
|
81
|
+
onNodeExpand(event: {
|
|
82
|
+
node: TreeNode;
|
|
83
|
+
}): void;
|
|
84
|
+
onNodeCollapse(event: {
|
|
85
|
+
node: TreeNode;
|
|
86
|
+
}): void;
|
|
87
|
+
onContextMenuSelect(event: TreeNode): void;
|
|
88
|
+
getCheckAllValue(event: any): void;
|
|
89
|
+
toggleNodeSelection(node: TreeNode, event: MouseEvent): void;
|
|
90
|
+
handleCheckedNodes(): void;
|
|
91
|
+
resolveActionLoading(action: TreeAction, node: any): boolean | undefined;
|
|
92
|
+
nodeAction(action: TreeAction, node: any): void;
|
|
93
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tree, never>;
|
|
94
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tree, "mt-tree", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "nodeIcon": { "alias": "nodeIcon"; "required": false; "isSignal": true; }; "propagateSelectionUp": { "alias": "propagateSelectionUp"; "required": false; "isSignal": true; }; "propagateSelectionDown": { "alias": "propagateSelectionDown"; "required": false; "isSignal": true; }; "checkAllChildren": { "alias": "checkAllChildren"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "checkAllLabel": { "alias": "checkAllLabel"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "nodeActions": { "alias": "nodeActions"; "required": false; "isSignal": true; }; "nodeContextmenuActions": { "alias": "nodeContextmenuActions"; "required": false; "isSignal": true; }; "contextMenuSelection": { "alias": "contextMenuSelection"; "required": false; "isSignal": true; }; }, { "selection": "selectionChange"; "contextMenuSelection": "contextMenuSelectionChange"; "action": "action"; }, never, never, true, never>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export { Tree };
|
|
98
|
+
export type { TreeAction, TreeActionEvent, TreeActionType, TreeContextMenuAction };
|