@masterteam/components 0.0.206 → 0.0.208
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-entities.mjs +27 -6
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +164 -18
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-multi-select-field.mjs +31 -2
- package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +64 -2
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/package.json +4 -4
- package/types/masterteam-components-entities.d.ts +4 -0
- package/types/masterteam-components-formula.d.ts +17 -4
- package/types/masterteam-components-multi-select-field.d.ts +11 -0
- package/types/masterteam-components-table.d.ts +7 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.208",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/components",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"@angular/core": "^21.2.8",
|
|
13
13
|
"@angular/forms": "^21.2.8",
|
|
14
14
|
"@jsverse/transloco": "^8.3.0",
|
|
15
|
-
"@masterteam/icons": "^0.0.17",
|
|
16
15
|
"@primeuix/themes": "^2.0.3",
|
|
17
16
|
"@tailwindcss/postcss": "^4.2.2",
|
|
18
17
|
"monaco-editor": "^0.52.0",
|
|
@@ -21,7 +20,8 @@
|
|
|
21
20
|
"primeng": "21.1.5",
|
|
22
21
|
"quill": "^2.0.3",
|
|
23
22
|
"tailwindcss": "^4.2.2",
|
|
24
|
-
"tailwindcss-primeui": "^0.6.1"
|
|
23
|
+
"tailwindcss-primeui": "^0.6.1",
|
|
24
|
+
"@masterteam/icons": "^0.0.17"
|
|
25
25
|
},
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
@@ -267,4 +267,4 @@
|
|
|
267
267
|
"module": "fesm2022/masterteam-components.mjs",
|
|
268
268
|
"typings": "types/masterteam-components.d.ts",
|
|
269
269
|
"type": "module"
|
|
270
|
-
}
|
|
270
|
+
}
|
|
@@ -494,10 +494,14 @@ declare class EntityScheduleItem {
|
|
|
494
494
|
|
|
495
495
|
interface RenderedProp {
|
|
496
496
|
key: string;
|
|
497
|
+
/** Humanized property key for display (the raw stored key has no label). */
|
|
498
|
+
label: string;
|
|
497
499
|
value: string;
|
|
498
500
|
}
|
|
499
501
|
interface RenderedItem {
|
|
500
502
|
lookupKey: string;
|
|
503
|
+
/** Humanized lookup key for display. */
|
|
504
|
+
lookupLabel: string;
|
|
501
505
|
props: RenderedProp[];
|
|
502
506
|
}
|
|
503
507
|
declare class EntityLookupModuleCheckList {
|
|
@@ -82,7 +82,7 @@ declare function createOperatorToken(symbol: string, depth?: number, functionId?
|
|
|
82
82
|
/**
|
|
83
83
|
* Create a literal token
|
|
84
84
|
*/
|
|
85
|
-
declare function createLiteralToken(value: string | number | boolean, depth?: number, functionId?: string, argIndex?: number): FormulaToken;
|
|
85
|
+
declare function createLiteralToken(value: string | number | boolean, depth?: number, functionId?: string, argIndex?: number, display?: string): FormulaToken;
|
|
86
86
|
/**
|
|
87
87
|
* Create a raw text token for identifiers or syntax fragments that are not
|
|
88
88
|
* properties, literals, or operators.
|
|
@@ -103,9 +103,22 @@ declare function getFunctionTokens(tokens: FormulaToken[], functionId: string):
|
|
|
103
103
|
*/
|
|
104
104
|
declare function isValidDropPosition(tokens: FormulaToken[], dropIndex: number, draggedTokens: FormulaToken[]): boolean;
|
|
105
105
|
/**
|
|
106
|
-
* Serialize tokens to formula string
|
|
106
|
+
* Serialize tokens to the canonical, executable formula string.
|
|
107
|
+
* Uses each token's `value` (e.g. `@Current::startdate`) — never `display` —
|
|
108
|
+
* so the produced expression is stable and engine/back-end compatible.
|
|
107
109
|
*/
|
|
108
110
|
declare function serializeTokens(tokens: FormulaToken[]): string;
|
|
111
|
+
/**
|
|
112
|
+
* Serialize tokens to a human-readable preview string using each token's
|
|
113
|
+
* `display` label (the friendly property name) when present, falling back to
|
|
114
|
+
* its `value`. Spacing is computed from the canonical `value`/`type` so that a
|
|
115
|
+
* friendly name containing spaces (e.g. "Start Date") does not corrupt
|
|
116
|
+
* function/paren/separator spacing. This output is for display/preview ONLY
|
|
117
|
+
* (e.g. `formulaText`) — never feed it to the validator or persist it as the
|
|
118
|
+
* executable expression.
|
|
119
|
+
*/
|
|
120
|
+
declare function serializeTokensForDisplay(tokens: FormulaToken[]): string;
|
|
121
|
+
declare function shouldInsertSpace(previousType: TokenType | null, previousValue: string, current: FormulaToken): boolean;
|
|
109
122
|
/**
|
|
110
123
|
* Clone a token with new ID
|
|
111
124
|
*/
|
|
@@ -166,7 +179,7 @@ declare function createPropertyBlock(propertyKey: string, propertyType?: 'curren
|
|
|
166
179
|
/** Create an operator block */
|
|
167
180
|
declare function createOperatorBlock(symbol: string): SmartBlock;
|
|
168
181
|
/** Create a literal block */
|
|
169
|
-
declare function createLiteralBlock(value: string | number | boolean): SmartBlock;
|
|
182
|
+
declare function createLiteralBlock(value: string | number | boolean, display?: string): SmartBlock;
|
|
170
183
|
/** Deep clone a block with new IDs */
|
|
171
184
|
declare function cloneBlock(block: SmartBlock): SmartBlock;
|
|
172
185
|
|
|
@@ -742,5 +755,5 @@ declare class FormulaRuntimeEngine {
|
|
|
742
755
|
private evaluateAst;
|
|
743
756
|
}
|
|
744
757
|
|
|
745
|
-
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 };
|
|
758
|
+
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, serializeTokensForDisplay, shouldInsertSpace, tokenizeFormulaTemplate };
|
|
746
759
|
export type { ApiErrorResponse, ArgumentSlot, AutocompleteContext, AutocompleteRequest, AutocompleteResponse, AutocompleteSuggestion, BlockType, DragBehavior, ExampleItem, FormulaConditionEvaluation, FormulaEvaluationContext, FormulaRuntimeCatalog, FormulaRuntimeDomain, FormulaRuntimeEngineError, FormulaRuntimeEngineErrorCode, FormulaToken, FormulaToolbarPropertiesContext, FormulaToolbarPropertyItem, FormulaValidationEvaluation, FormulaValidationRulesEvaluation, FunctionCategory, FunctionCategoryGroup, FunctionDefinition, FunctionExample, FunctionInfo, OperatorDefinition, ParameterDefinition, SmartBlock, TokenType, ToolbarItemType, ToolbarTab, ValidationError, ValidationRequest, ValidationResult, ValidationSeverity, ValidationWarning };
|
|
@@ -51,6 +51,17 @@ declare class MultiSelectField implements ControlValueAccessor, OnInit, OnChange
|
|
|
51
51
|
applyInputsToMultiSelect(): void;
|
|
52
52
|
ngOnInit(): void;
|
|
53
53
|
onValueChange(value: any): void;
|
|
54
|
+
/**
|
|
55
|
+
* Remove a selected chip explicitly.
|
|
56
|
+
*
|
|
57
|
+
* PrimeNG's template-context `removeChip` callback does not propagate back
|
|
58
|
+
* through our fully-custom chip template when `optionValue` is set, so the
|
|
59
|
+
* chip visually disappears but the model snaps back on the next change
|
|
60
|
+
* detection. We compute the next value array ourselves and push it through
|
|
61
|
+
* `onValueChange` so the control value, NgModel/form control, and emitted
|
|
62
|
+
* `onChange` all stay in sync.
|
|
63
|
+
*/
|
|
64
|
+
removeSelected(selected: any, event: Event): void;
|
|
54
65
|
ngOnChanges(changes: SimpleChanges): void;
|
|
55
66
|
writeValue(value: any): void;
|
|
56
67
|
registerOnChange(fn: any): void;
|
|
@@ -695,6 +695,13 @@ declare class TableExportService {
|
|
|
695
695
|
*/
|
|
696
696
|
private buildLabeledRows;
|
|
697
697
|
private buildPrintRegion;
|
|
698
|
+
/**
|
|
699
|
+
* Normalises a resolved cell value for export. Rich-text columns surface their
|
|
700
|
+
* value as an HTML string, so string cells are stripped to plain text (tags
|
|
701
|
+
* removed, entities decoded) before they reach an Excel cell or a PDF table
|
|
702
|
+
* cell. Non-string values (numbers, booleans, dates) pass through untouched.
|
|
703
|
+
*/
|
|
704
|
+
private toPlainExportValue;
|
|
698
705
|
private normalizeFilename;
|
|
699
706
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableExportService, never>;
|
|
700
707
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableExportService>;
|