@masterteam/components 0.0.165 → 0.0.166
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/i18n/ar.json +128 -0
- package/assets/i18n/en.json +128 -0
- package/fesm2022/masterteam-components-business-fields.mjs +40 -20
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +6 -4
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-drawer.mjs +4 -2
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +9 -4
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +19 -8
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +52 -14
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-icon-field.mjs +4 -3
- package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-module-summary-card.mjs +4 -2
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +1 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +5 -3
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-runtime-action.mjs +21 -13
- package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -1
- package/fesm2022/masterteam-components-sidebar.mjs +3 -2
- package/fesm2022/masterteam-components-sidebar.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +22 -13
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-tabs.mjs +4 -2
- package/fesm2022/masterteam-components-tabs.mjs.map +1 -1
- package/fesm2022/masterteam-components-text-field.mjs +5 -1
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-topbar.mjs +3 -2
- package/fesm2022/masterteam-components-topbar.mjs.map +1 -1
- package/fesm2022/masterteam-components-upload-field.mjs +4 -3
- package/fesm2022/masterteam-components-upload-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +5 -6
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-business-fields.d.ts +2 -0
- package/types/masterteam-components-client-page.d.ts +2 -1
- package/types/masterteam-components-drawer.d.ts +1 -0
- package/types/masterteam-components-dynamic-drawer.d.ts +2 -0
- package/types/masterteam-components-entities.d.ts +3 -0
- package/types/masterteam-components-formula.d.ts +7 -3
- package/types/masterteam-components-module-summary-card.d.ts +1 -0
- package/types/masterteam-components-pick-list-field.d.ts +1 -0
- package/types/masterteam-components-runtime-action.d.ts +2 -0
- package/types/masterteam-components-table.d.ts +8 -3
- package/types/masterteam-components-tabs.d.ts +1 -0
- package/types/masterteam-components-text-field.d.ts +2 -1
- package/types/masterteam-components-upload-field.d.ts +1 -0
- package/types/masterteam-components-user-search-field.d.ts +0 -1
|
@@ -465,6 +465,7 @@ interface OperatorGroup {
|
|
|
465
465
|
operators: OperatorDefinition[];
|
|
466
466
|
}
|
|
467
467
|
declare class FormulaToolbar {
|
|
468
|
+
private readonly transloco;
|
|
468
469
|
/** Known properties to show in properties tab */
|
|
469
470
|
readonly knownProperties: _angular_core.InputSignal<string[]>;
|
|
470
471
|
/** Custom properties template */
|
|
@@ -497,10 +498,10 @@ declare class FormulaToolbar {
|
|
|
497
498
|
/** Active tab */
|
|
498
499
|
readonly activeTab: _angular_core.WritableSignal<ToolbarTab>;
|
|
499
500
|
/** Tab options */
|
|
500
|
-
readonly tabOptions: {
|
|
501
|
+
readonly tabOptions: _angular_core.Signal<{
|
|
501
502
|
label: string;
|
|
502
503
|
value: ToolbarTab;
|
|
503
|
-
}[]
|
|
504
|
+
}[]>;
|
|
504
505
|
/** Tabs actually rendered */
|
|
505
506
|
readonly resolvedTabOptions: _angular_core.Signal<{
|
|
506
507
|
label: string;
|
|
@@ -531,6 +532,8 @@ declare class FormulaToolbar {
|
|
|
531
532
|
}[]>;
|
|
532
533
|
/** Filtered properties based on search */
|
|
533
534
|
readonly filteredProperties: _angular_core.Signal<string[]>;
|
|
535
|
+
/** Operators translated through the active locale */
|
|
536
|
+
private readonly translatedOperators;
|
|
534
537
|
/** Filtered operators based on search */
|
|
535
538
|
readonly filteredOperators: _angular_core.Signal<OperatorDefinition[]>;
|
|
536
539
|
/** Count of filtered items per tab */
|
|
@@ -567,6 +570,7 @@ declare class FormulaToolbar {
|
|
|
567
570
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormulaToolbar, "mt-formula-toolbar", never, { "knownProperties": { "alias": "knownProperties"; "required": false; "isSignal": true; }; "propertiesTemplate": { "alias": "propertiesTemplate"; "required": false; "isSignal": true; }; "functionCategories": { "alias": "functionCategories"; "required": false; "isSignal": true; }; "operators": { "alias": "operators"; "required": false; "isSignal": true; }; "initialTab": { "alias": "initialTab"; "required": false; "isSignal": true; }; "visibleTabs": { "alias": "visibleTabs"; "required": false; "isSignal": true; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "onBlockInsert": "onBlockInsert"; "onTabChange": "onTabChange"; }, ["projectedPropertiesTemplate"], never, true, never>;
|
|
568
571
|
}
|
|
569
572
|
|
|
573
|
+
declare const OPERATOR_SYMBOL_TO_TRANSLATION_KEY: Record<string, string>;
|
|
570
574
|
declare const DEFAULT_OPERATORS: OperatorDefinition[];
|
|
571
575
|
|
|
572
576
|
type ToolbarItemType = 'function' | 'property' | 'operator';
|
|
@@ -722,5 +726,5 @@ declare class FormulaRuntimeEngine {
|
|
|
722
726
|
private evaluateAst;
|
|
723
727
|
}
|
|
724
728
|
|
|
725
|
-
export { CONDITION_FUNCTION_CATEGORIES, CONDITION_OPERATORS, CONDITION_RUNTIME_CATALOG, DEFAULT_OPERATORS, FormulaEditor, FormulaEditorCode, FormulaRuntimeEngine, FormulaStatusBar, FormulaToolbar, FormulaToolbarItem, VALIDATION_FUNCTION_CATEGORIES, VALIDATION_OPERATORS, VALIDATION_RUNTIME_CATALOG, cloneBlock, cloneToken, cloneTokens, createFunctionBlock, createFunctionTokens, createLiteralBlock, createLiteralToken, createOperatorBlock, createOperatorToken, createPropertyBlock, createPropertyToken, createTextToken, findFunctionRange, generateFunctionId, generateSmartBlockId, generateTokenId, getArgumentIndexAtPosition, getFunctionTokens, isValidDropPosition, parseSignature, recalculateDepths, serializeTokens, tokenizeFormulaTemplate };
|
|
729
|
+
export { CONDITION_FUNCTION_CATEGORIES, CONDITION_OPERATORS, CONDITION_RUNTIME_CATALOG, DEFAULT_OPERATORS, FormulaEditor, FormulaEditorCode, FormulaRuntimeEngine, FormulaStatusBar, FormulaToolbar, FormulaToolbarItem, OPERATOR_SYMBOL_TO_TRANSLATION_KEY, VALIDATION_FUNCTION_CATEGORIES, VALIDATION_OPERATORS, VALIDATION_RUNTIME_CATALOG, cloneBlock, cloneToken, cloneTokens, createFunctionBlock, createFunctionTokens, createLiteralBlock, createLiteralToken, createOperatorBlock, createOperatorToken, createPropertyBlock, createPropertyToken, createTextToken, findFunctionRange, generateFunctionId, generateSmartBlockId, generateTokenId, getArgumentIndexAtPosition, getFunctionTokens, isValidDropPosition, parseSignature, recalculateDepths, serializeTokens, tokenizeFormulaTemplate };
|
|
726
730
|
export type { ApiErrorResponse, ArgumentSlot, AutocompleteContext, AutocompleteRequest, AutocompleteResponse, AutocompleteSuggestion, BlockType, DragBehavior, ExampleItem, FormulaConditionEvaluation, FormulaEvaluationContext, FormulaRuntimeCatalog, FormulaRuntimeDomain, FormulaRuntimeEngineError, FormulaRuntimeEngineErrorCode, FormulaToken, FormulaToolbarPropertiesContext, FormulaValidationEvaluation, FormulaValidationRulesEvaluation, FunctionCategory, FunctionCategoryGroup, FunctionDefinition, FunctionExample, FunctionInfo, OperatorDefinition, ParameterDefinition, SmartBlock, TokenType, ToolbarItemType, ToolbarTab, ValidationError, ValidationRequest, ValidationResult, ValidationSeverity, ValidationWarning };
|
|
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { MTIcon } from '@masterteam/icons';
|
|
3
3
|
|
|
4
4
|
declare class ModuleSummaryCard {
|
|
5
|
+
private readonly transloco;
|
|
5
6
|
readonly icon: _angular_core.InputSignal<MTIcon | undefined>;
|
|
6
7
|
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
7
8
|
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
@@ -5,6 +5,7 @@ import { PickList } from 'primeng/picklist';
|
|
|
5
5
|
import { isInvalid } from '@masterteam/components';
|
|
6
6
|
|
|
7
7
|
declare class PickListField implements ControlValueAccessor, OnInit {
|
|
8
|
+
private readonly transloco;
|
|
8
9
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
9
10
|
readonly class: _angular_core.InputSignal<string>;
|
|
10
11
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -90,10 +90,12 @@ declare class RuntimeActionRunner {
|
|
|
90
90
|
private readonly confirmation;
|
|
91
91
|
private readonly modal;
|
|
92
92
|
private readonly toast;
|
|
93
|
+
private readonly transloco;
|
|
93
94
|
private readonly confirmDialogClass;
|
|
94
95
|
execute(action: RuntimeAction, options?: RuntimeActionExecuteOptions): Promise<RuntimeActionResult>;
|
|
95
96
|
private confirm;
|
|
96
97
|
private run;
|
|
98
|
+
private notExecutableMessage;
|
|
97
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeActionRunner, never>;
|
|
98
100
|
static ɵprov: i0.ɵɵInjectableDeclaration<RuntimeActionRunner>;
|
|
99
101
|
}
|
|
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { TemplateRef, Signal, WritableSignal } from '@angular/core';
|
|
3
3
|
import { MTIcon } from '@masterteam/icons';
|
|
4
4
|
import { ConfirmationConfig, ConfirmationService } from '@masterteam/components/confirmation';
|
|
5
|
+
import { TranslocoService } from '@jsverse/transloco';
|
|
5
6
|
import { TablePageEvent } from 'primeng/table';
|
|
6
7
|
import { EntityData } from '@masterteam/components/entities';
|
|
7
8
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -125,7 +126,9 @@ declare class TableGroupingController {
|
|
|
125
126
|
private readonly groupBy;
|
|
126
127
|
private readonly sortField;
|
|
127
128
|
private readonly sortDirection;
|
|
128
|
-
|
|
129
|
+
private readonly transloco?;
|
|
130
|
+
constructor(columns: Signal<ColumnDef[]>, rows: Signal<unknown[]>, groupBy: WritableSignal<string | null>, sortField: WritableSignal<string | null>, sortDirection: WritableSignal<'asc' | 'desc' | null>, transloco?: TranslocoService | undefined);
|
|
131
|
+
private translate;
|
|
129
132
|
readonly groupableColumns: Signal<ColumnDef[]>;
|
|
130
133
|
/**
|
|
131
134
|
* Row counts per group key — consumed by the group header template so each
|
|
@@ -238,6 +241,7 @@ declare class Table {
|
|
|
238
241
|
sortDirection: _angular_core.WritableSignal<"asc" | "desc" | null>;
|
|
239
242
|
confirmationService: ConfirmationService;
|
|
240
243
|
private readonly exportService;
|
|
244
|
+
private readonly transloco;
|
|
241
245
|
protected readonly grouping: TableGroupingController;
|
|
242
246
|
protected selectedRowKeys: _angular_core.WritableSignal<Set<string>>;
|
|
243
247
|
protected transientSelectedRows: _angular_core.WritableSignal<Set<any>>;
|
|
@@ -455,10 +459,11 @@ declare class TableFilter implements ControlValueAccessor {
|
|
|
455
459
|
declare class TableFilterField {
|
|
456
460
|
readonly column: _angular_core.InputSignal<ColumnDef>;
|
|
457
461
|
readonly value: _angular_core.ModelSignal<any>;
|
|
458
|
-
|
|
462
|
+
private readonly transloco;
|
|
463
|
+
protected readonly booleanOptions: _angular_core.Signal<{
|
|
459
464
|
label: string;
|
|
460
465
|
value: boolean;
|
|
461
|
-
}[]
|
|
466
|
+
}[]>;
|
|
462
467
|
protected getFilterType(): string;
|
|
463
468
|
protected getScalarValue(): any;
|
|
464
469
|
protected getDateRangeValue(part: 'from' | 'to'): Date | null;
|
|
@@ -10,6 +10,7 @@ interface OptionItem {
|
|
|
10
10
|
[key: string]: unknown;
|
|
11
11
|
}
|
|
12
12
|
declare class Tabs {
|
|
13
|
+
private readonly transloco;
|
|
13
14
|
options: _angular_core.InputSignal<OptionItem[]>;
|
|
14
15
|
optionLabel: _angular_core.InputSignal<string>;
|
|
15
16
|
optionValue: _angular_core.InputSignal<string>;
|
|
@@ -30,7 +30,8 @@ declare class TextField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
30
30
|
hasEndActions: _angular_core.Signal<boolean>;
|
|
31
31
|
hasTwoEndActions: _angular_core.Signal<boolean>;
|
|
32
32
|
passwordToggleIcon: _angular_core.Signal<MTIcon>;
|
|
33
|
-
|
|
33
|
+
private readonly transloco;
|
|
34
|
+
passwordToggleLabel: _angular_core.Signal<string>;
|
|
34
35
|
alphaNum: RegExp;
|
|
35
36
|
onTouched: () => void;
|
|
36
37
|
onModelChange: (value: any) => void;
|
|
@@ -5,6 +5,7 @@ import { HttpContext, HttpClient } from '@angular/common/http';
|
|
|
5
5
|
import { DomSanitizer, SafeUrl } from '@angular/platform-browser';
|
|
6
6
|
|
|
7
7
|
declare class UploadField implements ControlValueAccessor {
|
|
8
|
+
private readonly transloco;
|
|
8
9
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
9
10
|
readonly title: _angular_core.InputSignal<string>;
|
|
10
11
|
readonly description: _angular_core.InputSignal<string>;
|
|
@@ -33,7 +33,6 @@ declare class UserSearchField implements ControlValueAccessor, OnInit {
|
|
|
33
33
|
filteredUsers: _angular_core.WritableSignal<User[]>;
|
|
34
34
|
private searchTerms;
|
|
35
35
|
private readonly translocoService;
|
|
36
|
-
translatedPlaceholder: _angular_core.Signal<string>;
|
|
37
36
|
readonly autocomplete: _angular_core.Signal<AutoComplete | undefined>;
|
|
38
37
|
onTouched: () => void;
|
|
39
38
|
onModelChange: (value: any) => void;
|