@masterteam/components 0.0.184 → 0.0.186
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/README.md +70 -63
- package/assets/common.css +243 -2
- package/fesm2022/masterteam-components-client-page.mjs +2 -2
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +12 -12
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-number-field.mjs +2 -2
- package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +2 -2
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +5 -4
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-text-field.mjs +8 -3
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +80 -21
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +3 -3
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +2 -2
- package/types/masterteam-components-user-search-field.d.ts +9 -0
- package/fesm2022/masterteam-components-color-picker-field.mjs +0 -102
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-drawer.mjs +0 -261
- package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
- package/fesm2022/masterteam-components-editor-field.mjs +0 -99
- package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-formula.mjs +0 -3618
- package/fesm2022/masterteam-components-formula.mjs.map +0 -1
- package/fesm2022/masterteam-components-icon-field.mjs +0 -64
- package/fesm2022/masterteam-components-icon-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-list.mjs +0 -31
- package/fesm2022/masterteam-components-list.mjs.map +0 -1
- package/fesm2022/masterteam-components-location-field.mjs +0 -315
- package/fesm2022/masterteam-components-location-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-menu.mjs +0 -135
- package/fesm2022/masterteam-components-menu.mjs.map +0 -1
- package/fesm2022/masterteam-components-module-summary-card.mjs +0 -34
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-page-header.mjs +0 -42
- package/fesm2022/masterteam-components-page-header.mjs.map +0 -1
- package/fesm2022/masterteam-components-page.mjs +0 -35
- package/fesm2022/masterteam-components-page.mjs.map +0 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +0 -206
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-property-filter-builder.mjs +0 -386
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-button-field.mjs +0 -85
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-cards-field.mjs +0 -126
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-radio-cards.mjs +0 -74
- package/fesm2022/masterteam-components-radio-cards.mjs.map +0 -1
- package/fesm2022/masterteam-components-runtime-action.mjs +0 -406
- package/fesm2022/masterteam-components-runtime-action.mjs.map +0 -1
- package/fesm2022/masterteam-components-sidebar.mjs +0 -37
- package/fesm2022/masterteam-components-sidebar.mjs.map +0 -1
- package/fesm2022/masterteam-components-slider-field.mjs +0 -115
- package/fesm2022/masterteam-components-slider-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-statistic-card.mjs +0 -22
- package/fesm2022/masterteam-components-statistic-card.mjs.map +0 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +0 -122
- package/fesm2022/masterteam-components-textarea-field.mjs.map +0 -1
- package/fesm2022/masterteam-components-toast.mjs +0 -80
- package/fesm2022/masterteam-components-toast.mjs.map +0 -1
- package/fesm2022/masterteam-components-topbar.mjs +0 -32
- package/fesm2022/masterteam-components-topbar.mjs.map +0 -1
- package/fesm2022/masterteam-components-tree.mjs +0 -260
- package/fesm2022/masterteam-components-tree.mjs.map +0 -1
- package/types/masterteam-components-color-picker-field.d.ts +0 -35
- package/types/masterteam-components-drawer.d.ts +0 -61
- package/types/masterteam-components-editor-field.d.ts +0 -35
- package/types/masterteam-components-formula.d.ts +0 -734
- package/types/masterteam-components-icon-field.d.ts +0 -27
- package/types/masterteam-components-list.d.ts +0 -18
- package/types/masterteam-components-location-field.d.ts +0 -95
- package/types/masterteam-components-menu.d.ts +0 -55
- package/types/masterteam-components-module-summary-card.d.ts +0 -18
- package/types/masterteam-components-page-header.d.ts +0 -30
- package/types/masterteam-components-page.d.ts +0 -26
- package/types/masterteam-components-pick-list-field.d.ts +0 -61
- package/types/masterteam-components-property-filter-builder.d.ts +0 -90
- package/types/masterteam-components-radio-button-field.d.ts +0 -41
- package/types/masterteam-components-radio-cards-field.d.ts +0 -35
- package/types/masterteam-components-radio-cards.d.ts +0 -33
- package/types/masterteam-components-runtime-action.d.ts +0 -105
- package/types/masterteam-components-sidebar.d.ts +0 -28
- package/types/masterteam-components-slider-field.d.ts +0 -38
- package/types/masterteam-components-statistic-card.d.ts +0 -18
- package/types/masterteam-components-textarea-field.d.ts +0 -41
- package/types/masterteam-components-toast.d.ts +0 -27
- package/types/masterteam-components-topbar.d.ts +0 -20
- package/types/masterteam-components-tree.d.ts +0 -106
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Type } from '@angular/core';
|
|
3
|
-
|
|
4
|
-
interface RuntimeActionTranslatable {
|
|
5
|
-
display?: string;
|
|
6
|
-
en?: string;
|
|
7
|
-
ar?: string;
|
|
8
|
-
}
|
|
9
|
-
type RuntimeActionAfterSuccess = 'refresh' | 'close';
|
|
10
|
-
interface RuntimeActionReason {
|
|
11
|
-
source?: string;
|
|
12
|
-
code?: string;
|
|
13
|
-
message?: string;
|
|
14
|
-
blocking?: boolean;
|
|
15
|
-
details?: string | null;
|
|
16
|
-
ruleKey?: string | null;
|
|
17
|
-
requestId?: number | null;
|
|
18
|
-
requestStatus?: string | null;
|
|
19
|
-
requestSchemaId?: number | null;
|
|
20
|
-
relatedRequestIds?: number[];
|
|
21
|
-
}
|
|
22
|
-
interface RuntimeAction {
|
|
23
|
-
actionKey: string;
|
|
24
|
-
actionName?: RuntimeActionTranslatable | string | null;
|
|
25
|
-
httpMethod?: string | null;
|
|
26
|
-
url?: string | null;
|
|
27
|
-
isAvailable?: boolean;
|
|
28
|
-
afterSuccess?: RuntimeActionAfterSuccess | null;
|
|
29
|
-
stepIds?: Array<number | string>;
|
|
30
|
-
needConfirmation?: boolean;
|
|
31
|
-
payloadKeys?: string[];
|
|
32
|
-
requiredPayloadKeys?: string[];
|
|
33
|
-
payloadTemplate?: Record<string, unknown> | null;
|
|
34
|
-
formId?: string | number | null;
|
|
35
|
-
targetType?: string;
|
|
36
|
-
targetId?: number;
|
|
37
|
-
moduleKey?: string;
|
|
38
|
-
operationKey?: string;
|
|
39
|
-
primaryReasonCode?: string | null;
|
|
40
|
-
reasons?: RuntimeActionReason[];
|
|
41
|
-
}
|
|
42
|
-
type RuntimeActionStatus = 'success' | 'error' | 'cancelled';
|
|
43
|
-
interface RuntimeActionResult {
|
|
44
|
-
status: RuntimeActionStatus;
|
|
45
|
-
actionKey: string;
|
|
46
|
-
afterSuccess: RuntimeActionAfterSuccess | null;
|
|
47
|
-
response?: unknown;
|
|
48
|
-
error?: unknown;
|
|
49
|
-
}
|
|
50
|
-
interface RuntimeActionExecuteOptions {
|
|
51
|
-
externalPayloadResolvers?: Record<string, () => unknown>;
|
|
52
|
-
defaultAfterSuccess?: RuntimeActionAfterSuccess;
|
|
53
|
-
successMessage?: (response: unknown, action: RuntimeAction) => string;
|
|
54
|
-
errorMessage?: (error: unknown, action: RuntimeAction) => string;
|
|
55
|
-
transformPayload?: (payload: Record<string, unknown> | undefined, action: RuntimeAction) => Record<string, unknown> | undefined;
|
|
56
|
-
silent?: boolean;
|
|
57
|
-
}
|
|
58
|
-
interface RuntimeActionFormValue {
|
|
59
|
-
requestPropertyId?: number;
|
|
60
|
-
propertyKey: string;
|
|
61
|
-
value: unknown;
|
|
62
|
-
}
|
|
63
|
-
interface RuntimeActionFormSource {
|
|
64
|
-
getSubmitValues(): RuntimeActionFormValue[] | undefined;
|
|
65
|
-
}
|
|
66
|
-
declare function resolveActionLabel(action: RuntimeAction): string;
|
|
67
|
-
|
|
68
|
-
declare function buildActionPayload(action: RuntimeAction, formValue: Record<string, unknown> | undefined, externalResolvers?: Record<string, () => unknown>): Record<string, unknown> | undefined;
|
|
69
|
-
declare function normalizePayloadValue(key: string, value: unknown): unknown;
|
|
70
|
-
declare function resolveDefaultPayloadValue(key: string): unknown;
|
|
71
|
-
declare function getMissingRequiredPayloadKeys(action: RuntimeAction, payload: Record<string, unknown> | undefined): string[];
|
|
72
|
-
declare function isMissingPayloadValue(value: unknown): boolean;
|
|
73
|
-
declare function normalizeHttpMethod(value: string | null | undefined): string | null;
|
|
74
|
-
declare function methodSupportsBody(method: string): boolean;
|
|
75
|
-
declare function buildRequestOptions(method: string, payload: Record<string, unknown> | undefined): Record<string, unknown>;
|
|
76
|
-
declare function hasActionFormFields(action: RuntimeAction): boolean;
|
|
77
|
-
declare function hasProgressTemplateField(action: RuntimeAction): boolean;
|
|
78
|
-
|
|
79
|
-
declare class RuntimeActionContextStore {
|
|
80
|
-
private readonly formSource;
|
|
81
|
-
setFormSource(source: RuntimeActionFormSource | null): void;
|
|
82
|
-
resolveFormValues(): RuntimeActionFormValue[];
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeActionContextStore, never>;
|
|
84
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeActionContextStore>;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
declare const RUNTIME_ACTION_CONFIRM_DIALOG: InjectionToken<Type<unknown>>;
|
|
88
|
-
declare class RuntimeActionRunner {
|
|
89
|
-
private readonly http;
|
|
90
|
-
private readonly confirmation;
|
|
91
|
-
private readonly modal;
|
|
92
|
-
private readonly toast;
|
|
93
|
-
private readonly transloco;
|
|
94
|
-
private readonly confirmDialogClass;
|
|
95
|
-
execute(action: RuntimeAction, options?: RuntimeActionExecuteOptions): Promise<RuntimeActionResult>;
|
|
96
|
-
private runWithFormDialog;
|
|
97
|
-
private confirmPlain;
|
|
98
|
-
private run;
|
|
99
|
-
private notExecutableMessage;
|
|
100
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeActionRunner, never>;
|
|
101
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeActionRunner>;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export { RUNTIME_ACTION_CONFIRM_DIALOG, RuntimeActionContextStore, RuntimeActionRunner, buildActionPayload, buildRequestOptions, getMissingRequiredPayloadKeys, hasActionFormFields, hasProgressTemplateField, isMissingPayloadValue, methodSupportsBody, normalizeHttpMethod, normalizePayloadValue, resolveActionLabel, resolveDefaultPayloadValue };
|
|
105
|
-
export type { RuntimeAction, RuntimeActionAfterSuccess, RuntimeActionExecuteOptions, RuntimeActionFormSource, RuntimeActionFormValue, RuntimeActionReason, RuntimeActionResult, RuntimeActionStatus, RuntimeActionTranslatable };
|
|
@@ -1,28 +0,0 @@
|
|
|
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 };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NgControl, Validators } from '@angular/forms';
|
|
3
|
-
import { isInvalid } from '@masterteam/components';
|
|
4
|
-
|
|
5
|
-
declare class SliderField implements ControlValueAccessor {
|
|
6
|
-
readonly field: _angular_core.InputSignal<boolean>;
|
|
7
|
-
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
8
|
-
readonly class: _angular_core.InputSignal<string>;
|
|
9
|
-
readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
10
|
-
readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
11
|
-
readonly step: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
|
|
12
|
-
readonly hideNumber: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
-
readonly unit: _angular_core.InputSignal<string>;
|
|
14
|
-
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
15
|
-
readonly required: _angular_core.InputSignal<boolean>;
|
|
16
|
-
readonly ngControl: NgControl | null;
|
|
17
|
-
readonly hostClass: _angular_core.Signal<string>;
|
|
18
|
-
readonly fieldId: _angular_core.Signal<string>;
|
|
19
|
-
readonly progressBgStyle: _angular_core.Signal<string>;
|
|
20
|
-
readonly requiredValidator: typeof Validators.required;
|
|
21
|
-
readonly value: _angular_core.WritableSignal<number | null>;
|
|
22
|
-
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
23
|
-
onTouched: () => void;
|
|
24
|
-
onModelChange: (value: number | null) => void;
|
|
25
|
-
isInvalid: typeof isInvalid;
|
|
26
|
-
private readonly defaultId;
|
|
27
|
-
constructor();
|
|
28
|
-
onValueChange(value: number | null): void;
|
|
29
|
-
writeValue(value: number | null): void;
|
|
30
|
-
registerOnChange(fn: (value: number | null) => void): void;
|
|
31
|
-
registerOnTouched(fn: () => void): void;
|
|
32
|
-
setDisabledState(disabled: boolean): void;
|
|
33
|
-
private normalizeValue;
|
|
34
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderField, never>;
|
|
35
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderField, "mt-slider-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "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; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { SliderField };
|
|
@@ -1,18 +0,0 @@
|
|
|
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 };
|
|
@@ -1,41 +0,0 @@
|
|
|
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 hint: _angular_core.InputSignal<string | undefined>;
|
|
10
|
-
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
11
|
-
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
12
|
-
readonly class: _angular_core.InputSignal<string>;
|
|
13
|
-
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
14
|
-
readonly noErrorStyle: _angular_core.InputSignal<boolean>;
|
|
15
|
-
readonly pInputs: _angular_core.InputSignal<Partial<HTMLTextAreaElement> | undefined>;
|
|
16
|
-
readonly rows: _angular_core.InputSignal<string>;
|
|
17
|
-
readonly required: _angular_core.InputSignal<boolean>;
|
|
18
|
-
readonly maxLength: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
19
|
-
styleClass: string;
|
|
20
|
-
requiredValidator: typeof Validators.required;
|
|
21
|
-
private maxLengthValidator;
|
|
22
|
-
value: _angular_core.WritableSignal<string | null>;
|
|
23
|
-
disabled: _angular_core.WritableSignal<boolean>;
|
|
24
|
-
onTouched: () => void;
|
|
25
|
-
onModelChange: (value: string | null) => void;
|
|
26
|
-
ngControl: NgControl | null;
|
|
27
|
-
isInvalid: typeof isInvalid;
|
|
28
|
-
constructor();
|
|
29
|
-
applyInputsToTextarea(): void;
|
|
30
|
-
ngOnInit(): void;
|
|
31
|
-
onValueChange(value: string | null): void;
|
|
32
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
33
|
-
writeValue(value: string): void;
|
|
34
|
-
registerOnChange(fn: any): void;
|
|
35
|
-
registerOnTouched(fn: any): void;
|
|
36
|
-
setDisabledState(disabled: boolean): void;
|
|
37
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaField, never>;
|
|
38
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaField, "mt-textarea-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "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; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export { TextareaField };
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
private readonly translocoService;
|
|
14
|
-
add(message: ToastMessageOptions): void;
|
|
15
|
-
addAll(messages: ToastMessageOptions[]): void;
|
|
16
|
-
clear(key?: string): void;
|
|
17
|
-
success(detail?: string, summary?: string): void;
|
|
18
|
-
warn(detail?: string, summary?: string): void;
|
|
19
|
-
error(detail?: string, summary?: string): void;
|
|
20
|
-
info(detail?: string, summary?: string): void;
|
|
21
|
-
secondary(detail?: string, summary?: string): void;
|
|
22
|
-
contrast(detail?: string, summary?: string): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export { Toast, ToastService };
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
logoClass: _angular_core.InputSignal<string | undefined>;
|
|
14
|
-
titleClass: _angular_core.InputSignal<string | undefined>;
|
|
15
|
-
subTitleClass: _angular_core.InputSignal<string | undefined>;
|
|
16
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Topbar, never>;
|
|
17
|
-
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; }; "logoClass": { "alias": "logoClass"; "required": false; "isSignal": true; }; "titleClass": { "alias": "titleClass"; "required": false; "isSignal": true; }; "subTitleClass": { "alias": "subTitleClass"; "required": false; "isSignal": true; }; }, {}, never, ["[start]", "[actions]"], true, never>;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { Topbar };
|
|
@@ -1,106 +0,0 @@
|
|
|
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 virtualScroll: _angular_core.InputSignal<boolean>;
|
|
63
|
-
readonly virtualScrollItemSize: _angular_core.InputSignal<number>;
|
|
64
|
-
readonly scrollHeight: _angular_core.InputSignal<string | undefined>;
|
|
65
|
-
readonly styleClass: _angular_core.InputSignal<string>;
|
|
66
|
-
readonly style: _angular_core.InputSignal<Record<string, string> | undefined>;
|
|
67
|
-
readonly pInputs: _angular_core.InputSignal<Partial<Tree$1> | undefined>;
|
|
68
|
-
readonly nodeActions: _angular_core.InputSignal<TreeAction[]>;
|
|
69
|
-
readonly nodeContextmenuActions: _angular_core.InputSignal<TreeContextMenuAction[]>;
|
|
70
|
-
readonly contextMenuSelection: _angular_core.ModelSignal<TreeNode<any> | null>;
|
|
71
|
-
readonly contextMenuItems: Signal<MenuItem[]>;
|
|
72
|
-
readonly action: _angular_core.OutputEmitterRef<TreeActionEvent>;
|
|
73
|
-
CheckAllValue: _angular_core.WritableSignal<boolean>;
|
|
74
|
-
readonly treeValue: Signal<TreeNode[]>;
|
|
75
|
-
constructor();
|
|
76
|
-
private isProcessingBatchSelection;
|
|
77
|
-
onSelectionChange(event: TreeNode | TreeNode[] | null): void;
|
|
78
|
-
onNodeSelect(event: {
|
|
79
|
-
node: TreeNode;
|
|
80
|
-
}): void;
|
|
81
|
-
onNodeUnselect(event: {
|
|
82
|
-
node: TreeNode;
|
|
83
|
-
}): void;
|
|
84
|
-
onNodeExpand(event: {
|
|
85
|
-
node: TreeNode;
|
|
86
|
-
}): void;
|
|
87
|
-
onNodeCollapse(event: {
|
|
88
|
-
node: TreeNode;
|
|
89
|
-
}): void;
|
|
90
|
-
onContextMenuSelect(event: TreeNode): void;
|
|
91
|
-
getCheckAllValue(event: any): void;
|
|
92
|
-
toggleNodeExpanded(node: TreeNode, event: MouseEvent): void;
|
|
93
|
-
toggleNodeSelection(node: TreeNode, event: MouseEvent): void;
|
|
94
|
-
handleCheckedNodes(): void;
|
|
95
|
-
/**
|
|
96
|
-
* Clears the tree's search/filter input and resets the filtered nodes.
|
|
97
|
-
*/
|
|
98
|
-
resetFilter(): void;
|
|
99
|
-
resolveActionLoading(action: TreeAction, node: any): boolean | undefined;
|
|
100
|
-
nodeAction(action: TreeAction, node: any): void;
|
|
101
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tree, never>;
|
|
102
|
-
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; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "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>;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export { Tree };
|
|
106
|
-
export type { TreeAction, TreeActionEvent, TreeActionType, TreeContextMenuAction };
|